@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; /* обязательно для absolute потомков */
  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);
}
/* ---------- ПРАВКА: фиксируем location внизу hero-секции ---------- */
.location {
  position: absolute;
  bottom: 32px;
  left: 0;
  width: 100%;
  text-align: center;
  color: white;
  font-size: 1.3vw;
  font-weight: 400;
  z-index: 10;
  text-shadow: 0 1px 12px rgba(0,0,0,0.35);
}
/* Остальной код без изменений */

/* 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;
}
.button.btn-4 {
  position: relative;
  overflow: hidden;
  border: 1.5px solid #000000;
  background: #ffffff;
  color: #000000;
  border-radius: 8px;
  font-weight: 600;
  padding: 6px 28px;
  font-size: 15px;
  display: inline-block;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 3px 12px 0 rgba(100, 20, 20, 0.15);
  width: 200px; /* или auto, если хочется по ширине контента */
  transition: background 0.2s, box-shadow 0.2s;
}

.button.btn-4 span {
  position: relative;
  z-index: 2;
  pointer-events: none;
}

.button.btn-4::after {
  content: "";
  position: absolute;
  left: -75px;
  top: -50px;
  height: 155px;
  width: 50px;
  background: #fff;
  opacity: 0.20;
  transform: rotate(35deg);
  transition: all 550ms cubic-bezier(0.19, 1, 0.22, 1);
  z-index: 1;
  pointer-events: none;
}

.button.btn-4:hover::after,
.button.btn-4:focus::after {
  left: 120%;
  transition: all 550ms cubic-bezier(0.19, 1, 0.22, 1);
}

.button.btn-4:hover,
.button.btn-4:focus {
  background: #000000;
  box-shadow: 0 6px 16px rgba(120, 20, 20, 0.30);
  outline: none;
}

/* 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;}
  .location {
    font-size: 2.8vw;
    bottom: 20px;
  }
}

@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;}
  .location {
    font-size: 4vw;
    bottom: 12px;
  }
}
.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, sans-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);}
}
.slide {
  position: relative;
  width: 100%;
  height: 600px;
  background: #f5f5f5;
  box-shadow: 0 30px 50px #dbdbdb;
  overflow: hidden;
  margin: 0px 0;
}

.slide .item {
  width: 200px;
  height: 300px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 20px;
  box-shadow: 0 30px 50px #505050;
  background-position: center;
  background-size: cover;
  display: inline-block;
  transition: 0.5s;
}

.slide .item:nth-child(1) {
  top: 0;
  left: 0;
  transform: none;
  border-radius: 0;
  width: 100%;
  height: 100%;
}

.slide .item:nth-child(2) {
  left: 50%
}

.slide .item:nth-child(3) {
  left: calc(50% + 220px);
}

.slide .item:nth-child(4) {
  left: calc(50% + 440px);
}

/*.slide .item:nth-child(5) {
  left: calc(50% + 660px);
}*/

.slide .item:nth-child(n + 5) {
  left: calc(50% + 660px);
  opacity: 0;
}

.item .content {
  position: absolute;
  top: 50%;
  left: 100px;
  width: 300px;
  text-align: left;
  color: #eee;
  transform: translateY(-50%);
  font-family: system-ui;
  display: none;
}

.slide .item:nth-child(1) .content {
  display: block;
}

.content .name {
  font-size: 40px;
  text-transform: uppercase;
  font-weight: bold;
  opacity: 0;
  animation: animate 1s ease-in-out 1 forwards;
}

.content .des {
  margin-top: 10px;
  margin-bottom: 20px;
  opacity: 0;
  animation: animate 1s ease-in-out 0.3s 1 forwards;
}

.content button {
  padding: 10px 20px;
  border: none;
  cursor: pointer;
  opacity: 0;
  animation: animate 1s ease-in-out 0.6s 1 forwards;
}

@keyframes animate {
  from {
    opacity: 0;
    transform: translateY(100px);
    filter: blur(33px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

.button {
  width: 100%;
  text-align: center;
  position: relative;
  margin-top: 20px;
}

.button button {
  width: 52px;
  height: 52px;
  margin: 0 16px;
  background: #18191a;
  color: #fff;
  border: none;
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(30, 30, 30, 0.10);
  font-size: 2.1em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .25s, box-shadow .25s, transform .1s;
  cursor: pointer;
  outline: none;
  position: relative;
}

.button button:active {
  transform: scale(0.94);
}
.button button:hover {
  background: #5292f7;
  color: #fff;
  box-shadow: 0 8px 24px rgba(82,146,247,0.18);
}

.button i {
  pointer-events: none;
}

@media (max-width: 600px){
  .button button { width: 42px; height: 42px; font-size: 1.4em; }
}
.slide {
  position: relative;
  width: 100%;
  height: 600px;
  background: #f5f5f5;
  box-shadow: 0 30px 50px #dbdbdb;
  overflow: hidden;
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* --- Стрелки внутри .slide --- */
.nav-buttons {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 16px; /* регулируйте как нужно, чтобы располагать кнопки выше/ниже */
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  pointer-events: none;
}

.nav-btn {
  width: 40px;       /* Меньше ширина */
  height: 40px;      /* Меньше высота */
  border-radius: 12px; /* Скругление тоже уменьшается пропорционально */
  background: #222;
  box-shadow: 0 3px 14px rgba(70,70,70,0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: background .18s, transform .18s, box-shadow .18s;
  pointer-events: auto;
  z-index: 3;
  border: none;
}
.nav-btn:hover {
  background: #5292f7;
  transform: translateY(-4px) scale(1.11);
  box-shadow: 0 10px 44px rgba(82,146,247,0.17);
}
.nav-btn:active {
  transform: scale(0.96);
}
.nav-btn::before {
  content: '';
  display: block;
  width: 12px;
  height: 12px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) rotate(135deg);
  transition: border-color .15s;
}
.nav-btn.next::before {
  transform: translate(-50%, -50%) rotate(-45deg);
  margin-left: -3px;
}
.nav-btn.prev::before {
  margin-left: 3px;
}

@media (max-width:900px){
  .represented-section {margin-bottom: 0 !important; padding-bottom: 0 !important;}
  .slide {max-width: 95vw; min-height: 350px;}
  .nav-buttons{gap:22px; bottom: 8px;}
  .nav-btn{width:42px;height:42px;}
  .nav-btn::before{width:13px;height:13px;border-width:0 2px 2px 0;}
}
@media (max-width:600px){
  .nav-buttons{bottom: 2px;}
  .nav-btn{width:32px;height:32px;}
  .nav-btn::before{width:8px;height:8px;border-width:0 2px 2px 0;}
}
