@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 400;
  src: url('/static/fonts/Oswald-Regular.ttf') format('truetype');
  font-display: swap;
}

body {
  background: #fff;
  color: #222;
  font-family: 'Oswald', Arial, sans-serif;
  margin: 0;
}
h1, .main-title {
  font-size: 3em;
  margin-bottom: 0.5em;
}
h2 {
  font-size: 1.2em;
  color: #888;
  font-weight: 400;
}
button, .button, a.button {
  padding: .8em 2em;
  font-size: 1em;
  background: none;
  color: #222;
  border: 1.2px solid #222;
  border-radius: 2px;
  cursor: pointer;
  text-decoration: none;
  transition: background .2s, color .2s;
  display: inline-block;
}
.button:hover, a.button:hover, button:hover {
  background: #222;
  color: #fff;
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  background: center center/cover no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  text-shadow: 0 1px 12px rgba(0,0,0,0.35);
  position: relative;
  padding: 0 4vw;
}
.main-title,
.subtitle,
.social {
  opacity: 0;
  transform: translateY(200px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.main-title.visible,
.subtitle.visible,
.social.visible {
  opacity: 1;
  transform: translateY(0);
}
.subtitle {
  font-size: 2vw;
  font-weight: 400;
  margin-bottom: 3vw;
}
.social {
  display: flex;
  gap: 2vw;
  margin-top: 2vw;
}
.social a {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid white;
  border-radius: 50%;
  color: white;
  text-decoration: none;
  font-size: 2vw;
  transition: background .2s;
  background: none;
}
.social a:hover {
  background: rgba(255,255,255,0.15);
}

/* About Section */
.about-section {
  display: flex;
  min-height: 100vh;
  width: 100%;
}
.about-left {
  flex-basis: 42%;
  max-width: 42%;
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 5vw 4vw 5vw 6vw;
}
.about-left h1 {
  font-weight: 400;
  font-size: 2.8vw;
  margin-bottom: 2vw;
  letter-spacing: 1px;
}
.about-left p, .about-left ul {
  font-size: 1.15vw;
  line-height: 1.65;
  margin-bottom: 2vw;
}
.about-left ul {
  list-style: none;
  padding: 0;
  margin-bottom: 2vw;
}
.about-left ul li {
  margin-bottom: 0.7vw;
}
.stats-title {
  font-size: 1.4vw;
  letter-spacing: .5px;
  margin-bottom: 0.5vw;
  margin-top: 2vw;
  font-weight: 400;
}
.about-right {
  flex-basis: 58%;
  max-width: 58%;
  background: center center/cover no-repeat;
  min-height: 40vw;
}

/* Represented Section */
.represented-section {
  display: flex;
  min-height: 100vh;
  width: 100%;
  background: #fff;
}
.represented-left {
  flex-basis: 50%;
  max-width: 50%;
  background: center center/cover no-repeat;
  min-height: 40vw;
}
.represented-right {
  flex-basis: 50%;
  max-width: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6vw 4vw;
}
.represented-title {
  font-size: 2vw;
  font-family: 'Oswald', Arial, sans-serif;
  font-weight: 400;
  margin-bottom: 2vw;
  color: #222;
}
.represented-list {
  list-style: none;
  padding: 0;
  margin-bottom: 3vw;
}
.represented-list li {
  font-size: 1.35vw;
  margin-bottom: 1vw;
  color: #222;
}

/* Разделитель */
.section-divider {
  width: 100%;
  height: 2px;
  background: #222;
  opacity: 0.08;
  margin: 0 0 0 0;
}

/* Gallery Section */
.gallery-section {
  width: 100%;
  min-height: 50vh;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2vw;
  width: 100%;
  max-width: 1200px;
  margin: 30px auto;
}

.gallery-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 12px rgba(0,0,0,0.09);
  background: #222;
  transition: transform .21s cubic-bezier(.3,.7,.38,1.15);
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-item img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform .21s cubic-bezier(.3,.7,.38,1.15);
}

.gallery-caption {
  position: absolute;
  left: 16px;
  bottom: 16px;
  color: white;
  background: rgba(20,20,20,0.7);
  padding: 6px 14px;
  border-radius: 7px;
  font-size: 1.08rem;
  font-family: 'Oswald', Arial, sans-serif;
}
/*************** МОБИЛЬНЫЕ ***************/
@media (max-width: 900px) {
  .hero-section {
    padding: 0 2vw;
    min-height: 72vh;
  }
  .main-title {
    font-size: 9vw;
    margin-bottom: 2vw;
  }
  .subtitle {
    font-size: 3.4vw;
    margin-bottom: 4vw;
  }
  .social a {font-size: 5vw; width:36px; height:36px;}
  .about-section {flex-direction: column;}
  .about-left, .about-right {
    padding: 8vw 5vw;
    max-width: 100%;
    flex-basis: 100%;
    min-height: unset;
  }
  .about-left h1 {font-size: 6vw;}
  .about-left p, .about-left ul {font-size: 2vw;}
  .stats-title {font-size:2.6vw;}
  .about-right {min-height: 44vw;}
  .represented-section {flex-direction: column; min-height: auto;}
  .represented-left, .represented-right {
    max-width: 100%;
    flex-basis: 100%;
    padding: 6vw 4vw;
    min-height: 44vw;
  }
  .represented-title {font-size: 3vw;}
  .represented-list li {font-size: 2vw;}
  .gallery-section {min-height:30vh;}
  .gallery-grid {gap: 3vw;}
  .gallery-item {
    flex: 0 0 54vw;
    height: 32vw;
  }
  .gallery-caption {font-size:2.8vw;}
}

@media (max-width:600px){
  .main-title {font-size: 12vw;}
  .subtitle {font-size: 6vw; margin-bottom:8vw;}
  .about-left h1 {font-size:8vw;}
  .gallery-section {min-height:22vh;}
  .gallery-grid {gap: 5vw;}
  .gallery-item {
    flex: 0 0 80vw;
    height: 35vw;
  }
  .gallery-caption {font-size:3vw;}
  .about-left p, .about-left ul {font-size: 3vw;}
  footer{font-size:1.2em;}
}
.contact-final-section {
  width: 100vw;
  min-height: 32vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 0 0 0;
  padding: 0 0 40px 0;
}
.contact-caption {
  font-size: 1.2em;
  color: #444;
  font-family: inherit;
  margin-bottom: 1.8em;
  margin-top: 2em;
  font-weight: 400;
  letter-spacing: .1em;
  text-align: center;
}
.contact-mail {
  font-family: 'Oswald', Arial, sens-serif;
  font-size: clamp(2.6rem, 9vw, 6.3rem);
  color: #222;
  border-bottom: 2px solid #444;
  text-align: center;
  margin-top: 0.5em;
  text-decoration: none;
  display: block;
  width: fit-content;
  font-weight: 400;
  line-height: 1.08;
  transition: color .2s, border .2s;
}
.contact-mail:hover {
  color: #5292f7;
  border-bottom: 2px solid #5292f7;
}
@media (max-width: 900px) {
  .contact-final-section {
    min-height: 22vh;
    padding: 20px 0 24px 0;
  }
  .contact-mail {
    font-size: clamp(1.9rem, 10vw, 4.2rem);
  }
  .contact-caption {
    font-size: 1.04em;
    margin-bottom: 1.1em;
  }
}
@media (max-width: 600px){
  .contact-final-section {min-height: 16vh;}
  .contact-mail { font-size: clamp(1.3rem, 11vw, 2.7rem);}
}