/* ===================================================
   DESIGN TOKENS
=================================================== */
:root {
  --color-bg: #F7F6F2;
  --color-card: #E8E2D8;
  --color-text: #000000;
  --color-accent: #52756D;
  --font-heading: 'DM Sans', sans-serif;
  --font-body: 'Inter', sans-serif;
  --gap-section: 200px;

  --container-max: 1920px;
  --container-padding: 120px;
}

/* 1. Поддержка Firefox */
html {
  scrollbar-width: thin;
  scrollbar-color: var(--color-accent) var(--color-bg);
}

/* 2. Поддержка WebKit (Chrome, Safari, Edge, Opera) */
::-webkit-scrollbar {
  width: 12px; /* Общая ширина полосы прокрутки */
  height: 12px; /* Высота для горизонтального скролла */
}

/* Фон полосы прокрутки */
::-webkit-scrollbar-track {
  background: var(--color-bg);
}

/* Ползунок прокрутки */
::-webkit-scrollbar-thumb {
  background-color: var(--color-accent);
  border-radius: 10px;
  /* Рамка цвета фона создает отступы вокруг ползунка */
  border: 3px solid var(--color-bg); 
}

/* Ползунок при наведении */
::-webkit-scrollbar-thumb:hover {
  background-color: var(--color-text); /* Усиливаем контраст при взаимодействии */
}

/* Уголок между вертикальным и горизонтальным скроллом */
::-webkit-scrollbar-corner {
  background: var(--color-bg);
}

/* ===================================================
   COMPONENTS — layout-agnostic, reusable anywhere
=================================================== */

/* Container */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 50px;
}

@media (max-width: 1023px) {
  .container {
    padding: 0 30px;
  }
}

@media (max-width: 767px) {
  .container {
    padding: 0 15px;
  }
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  padding: 15px 25px;
  border-radius: 100px;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.button--primary {
  background-color: var(--color-accent);
  color: var(--color-bg);
  border: 1px solid var(--color-accent);
}

.button--primary:hover {
  background-color: #435f58;
  border-color: #435f58;
}

.button--primary:active {
  transform: scale(0.98);
}

.button--secondary {
  background-color: transparent;
  color: var(--color-accent);
  border: 1px solid var(--color-accent);
}

.button--secondary:hover {
  background-color: var(--color-accent);
  color: var(--color-bg);
}

.button--secondary:active {
  transform: scale(0.98);
}

/* ===================================================
   RESET
=================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.no-scroll {
  overflow-y: hidden;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

/* ===================================================
   HEADER
=================================================== */
.header {
  width: 100%;
  padding: 30px 0;
  position: relative;
  z-index: 100;
}

.header__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 35px;
}

.header__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.header__logo svg {
  width: 70px;
  height: 70px;
}

.header__nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.header__nav-list {
  display: flex;
  align-items: center;
  gap: 50px;
}

.header__nav-link {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text);
  transition: color 0.2s ease !important;
}

.header__nav-link:hover {
  color: var(--color-accent);
}

.header__cta {
  flex-shrink: 0;
}

/* Duplicate CTA shown inside the mobile nav panel only (see 768px breakpoint) */
.header__nav-cta {
  display: none;
}

/* Burger button — hidden until the 768px breakpoint */
.header__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: 32px;
  height: 24px;
  flex-shrink: 0;
}

.header__burger-line {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease !important;
}

.header__burger.is-active .header__burger-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.header__burger.is-active .header__burger-line:nth-child(2) {
  opacity: 0;
}

.header__burger.is-active .header__burger-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ===================================================
   HERO
=================================================== */
.hero {
  width: 100%;
  padding-bottom: var(--gap-section);
}

.hero__container {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 35px;
  align-items: center;
}

.hero__content {
  grid-column: 1 / 7;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: 60px;
  font-weight: 600;
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--color-text);
}

.hero__description {
  font-family: var(--font-body);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--color-text);
  margin-top: 30px;
  padding: 0 0 0 70px;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 25px;
  margin-top: 100px;
}

.hero__media {
  grid-column: 7 / 13;
}
.hero__media video {
   max-width: 80%;
   margin: 0 0 0 auto;
}

.hero__image {
  width: 100%;
  height: auto;
}

/* ===================================================
   RESPONSIVE — 1440px (laptops)
=================================================== */
@media (max-width: 1440px) {
  :root {
    --container-padding: 80px;
    --gap-section: 160px;
  }

  .hero__title {
    font-size: 52px;
  }

  .hero__description {
    font-size: 20px;
    padding: 0 0 0 70px;
  }

  .header__nav-link {
    font-size: 20px;
  }

  .header__nav-list {
    gap: 36px;
  }

  .hero__actions {
   margin-top: 50px;
  }
}

@media (max-width: 1200px) {
   .header__nav-link {
      font-size: 16px;
   }
   .hero__title {
      font-size: 44px;
   }
   .hero__description {
      font-size: 16px;
      padding: 0 0 0 50px;
   }
   .hero__media video {
      max-width: 100%;
      margin: 0;
   }
}

/* ===================================================
   RESPONSIVE — 1024px (tablets landscape)
=================================================== */
@media (max-width: 1024px) {
  :root {
    --container-padding: 50px;
    --gap-section: 130px;
  }

  .header__logo svg {
   width: 50px;
   height: 50px;
  }

  .hero__actions {
      margin-top: 30px;
      gap: 15px;
  }

  .hero__title {
    font-size: 32px;
  }

  .hero__description {
     margin-top: 15px;
    font-size: 16px;
    max-width: 100%;
   padding: 0;
  }

  .header__nav-list {
    gap: 24px;
  }

  .header__nav-link {
    font-size: 12px;
  }

  .button {
    font-size: 16px;
    padding: 15px 24px;
  }
}

/* ===================================================
   RESPONSIVE — 768px (tablets portrait) — burger menu kicks in
=================================================== */
@media (max-width: 768px) {
  :root {
    --container-padding: 30px;
    --gap-section: 100px;
  }

  .header__container {
    flex-wrap: nowrap;
  }

  /* Nav becomes a full-width dropdown panel, closed by default */
  .header__nav {
    display: none;
    order: 4;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--color-bg);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
  }

  .header__nav.is-open {
    display: flex;
  }

  .header__nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    width: 100%;
    padding: 10px 30px 30px;
  }

  .header__nav-item {
    width: 100%;
  }

  .header__nav-link {
    display: block;
    width: 100%;
    padding: 14px 0;
    font-size: 18px;
    border-bottom: 1px solid var(--color-card);
  }

  /* Primary CTA hides behind the burger; it reappears at the foot of the nav panel */
  .header__cta {
    display: none;
  }

  .header__nav-cta {
    display: flex;
    width: calc(100% - 60px);
    margin: 10px 10px 30px 10px;
  }

  .header__burger {
    display: flex;
  }

  .hero__container {
    grid-template-columns: 1fr;
    row-gap: 50px;
  }

  .hero__content {
    grid-column: 1 / -1;
    align-items: flex-start;
  }

  .hero__media {
    grid-column: 1 / -1;
    order: -1;
  }

  .hero__actions {
    flex-wrap: wrap;
  }
}

/* ===================================================
   RESPONSIVE — 480px (mobile phones)
=================================================== */
@media (max-width: 480px) {
  :root {
    --container-padding: 20px;
    --gap-section: 70px;
  }

  .header {
    padding: 20px 0;
  }

  .header__logo svg {
    width: 44px;
    height: 44px;
  }

  .header__nav-list {
    gap: 16px;
  }

  .header__nav-link {
    font-size: 15px;
  }

  .hero__title {
    font-size: 24px;
  }

  .hero__description {
    margin-top: 20px;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
    margin-top: 30px;
    width: 100%;
  }

  .hero__button {
    width: 100%;
  }

  .button {
    padding: 18px 25px;
    font-size: 16px;
  }
}

/* ===================================================
   RESPONSIVE — 320px (minimum width)
=================================================== */
@media (max-width: 320px) {
  :root {
    --container-padding: 16px;
  }

  .hero__title {
    font-size: 28px;
  }

  .header__nav-list {
    gap: 12px;
  }

  .header__nav-link {
    font-size: 13px;
  }
}

/* ===================================================
   BLOCK: services
=================================================== */
.services {
  background-color: var(--color-bg);
  padding: 100px 0;
}

/* ---- Header row ---- */
.services__header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 60px;
  margin-bottom: 70px;
}

.services__header-left {
  display: flex;
  flex-direction: column;
  max-width: 900px;
}

.services__header-right {
  max-width: 420px;
  padding-top: 12px;
  flex-shrink: 0;
}

.services__eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 20px;
}

.services__title {
  font-family: var(--font-heading);
  font-size: 64px;
  font-weight: 600;
  line-height: 1.15;
  text-transform: uppercase;
  color: var(--color-text);
  margin: 0;
}

.services__description {
  font-family: var(--font-body);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--color-text);
  margin: 0;
}

/* ---- Cards grid (staggered) ---- */
.services__grid {
  display: flex;
  align-items: flex-start;
  gap: 35px;
}

.services-card {
  flex: 1 1 0;
  min-width: 0;
  background-color: var(--color-card);
  border-radius: 25px;
  padding: 35px 30px;
  display: flex;
  flex-direction: column;
  transition: all 0.1 ease !important;
}

/* .services-card--1 { margin-top: 0; }
.services-card--2 { margin-top: 80px; }
.services-card--3 { margin-top: 160px; }
.services-card--4 { margin-top: 240px; } */

.services-card__icon {
  width: 60px;
  height: 60px;
  margin-bottom: 45px;
}

.services-card__icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.services-card__title {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--color-text);
  margin: 0 0 20px 0;
}

.services-card__text {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-text);
  margin: 0;
}

/* ===================================================
   SCROLLYTELLING INTEGRATION
=================================================== */

/* ---- Десктоп: sticky-контейнер + запас высоты под скролл ---- */
@media (min-width: 1025px) {

  /* Даёт "простір для скролу". Подберите множитель под кол-во карточек:
     чем больше карточек, тем больше нужно высоты для плавного stagger. */
  .services.js-scrolly-section, .team.js-scrolly-section {
    height: 250vh;
    padding: 0;
  }

  .services.js-scrolly-section.scrollytelling-active > .container,   .team.js-scrolly-section.scrollytelling-active > .container {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }


  .services .js-scrolly-card.is-revealed {
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
  }

  .services .js-scrolly-card.is-revealed:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  }
}

/* ---- Мобильные/планшеты: обычный статичный блок, только fade-in-up ---- */
@media (max-width: 1024px) {
  .services.js-scrolly-section {
    height: auto;
  }
}

/* ===================================================
   RESPONSIVE
=================================================== */

@media (max-width: 1440px) {
  .services { padding: 80px 0; }
  .services__title { font-size: 52px; }
  .services__description { font-size: 20px; }
  .services__header { margin-bottom: 55px; }
  /* .services-card--2 { margin-top: 60px; }
  .services-card--3 { margin-top: 120px; }
  .services-card--4 { margin-top: 180px; } */
}

@media (max-width: 1200px) {
  .container { padding: 0 40px; }
  .services__title { font-size: 44px; }
  .services__description { font-size: 18px; }
  .services-card { padding: 20px; }
  .services-card__title { font-size: 20px; }
  /* .services-card--2 { margin-top: 45px; }
  .services-card--3 { margin-top: 90px; }
  .services-card--4 { margin-top: 135px; } */
}

@media (max-width: 1024px) {
  .services { padding: 70px 0; }
  .services__header {
    flex-direction: column;
    align-items: start;
    gap: 25px;
  }
  .services__header-right {
    max-width: 100%;
    padding-top: 0;
  }
  .services__grid {
    flex-wrap: wrap;
    gap: 25px;
  }
  .services-card {
    flex: 1 1 calc(50% - 13px);
    margin-top: 0 !important;
  }
}

@media (max-width: 768px) {
  .services { padding: 60px 0; }
  .services__title { font-size: 36px; }
  .services__description { font-size: 16px; }
  .services__header { margin-bottom: 40px; gap: 20px; }
  .services__grid { gap: 10px; }
  .services-card { flex: 1 1 calc(50% - 10px); padding: 15px; }
  .services-card__icon { margin-bottom: 30px; }
}

@media (max-width: 480px) {
  .services { padding: 50px 0; }
  .container { padding: 0 15px; }
  .services__eyebrow { font-size: 14px; margin-bottom: 12px; }
  .services__title { font-size: 24px; }
  .services__description { font-size: 15px; }
  .services__grid { flex-direction: column; gap: 20px; }
  .services-card { flex: 1 1 100%; width: 100%; }
  .services-card__icon { width: 50px; height: 50px; margin-bottom: 25px; }
  .services-card__title { font-size: 18px; }
  .services-card__text { font-size: 15px; }
}


/* ===================================================
   BLOCK: approach
=================================================== */

.approach {
  background-color: var(--color-bg);
  padding: var(--gap-section) 0;
}

.approach__container {
  display: grid;
  grid-template-columns: minmax(0, 620px) 1fr;
  gap: 100px;
  align-items: start; /* Важно для работы sticky */
}

/* ---------- Intro column ---------- */

.approach__intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: sticky;     /* Включаем прилипание для десктопа (от 1200px) */
  top: 40px;            /* Отступ сверху при прокрутке */
  height: fit-content;  /* Высота по содержимому */
}

.approach__eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 24px;
}

.approach__title {
  font-family: var(--font-heading);
  font-size: 64px;
  font-weight: 600;
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--color-text);
  margin: 0 0 32px;
}

.approach__description {
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-text);
  margin: 0 0 48px;
  padding: 0 0 0 70px;
}

.approach__button {
  min-width: 190px;
}

/* ---------- Feature grid ---------- */

.approach__grid {
  display: flex;
  gap: 60px;
}

.approach__column {
  display: flex;
  flex-direction: column;
  gap: 170px;
  flex: 1;
  min-width: 0;
}

.approach__column--offset {
  margin-top: 147px;
}

.approach__feature {
  display: flex;
  flex-direction: column;
}

.approach__feature-title {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 600;
  text-transform: uppercase;
  line-height: 1.2;
  color: var(--color-text);
  margin: 0 0 16px;
}

.approach__feature-number {
  color: var(--color-accent);
}

.approach__feature-text {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-text);
  margin: 0;
  max-width: 400px;
}

/* ===================================================
   RESPONSIVE
=================================================== */

@media (max-width: 1440px) {
  .container {
    padding: 0 80px;
  }

  .approach {
    padding: 140px 0;
  }

  .approach__container {
    grid-template-columns: minmax(0, 520px) 1fr;
    gap: 70px;
  }

  .approach__title {
    font-size: 52px;
  }

  .approach__column {
    gap: 130px;
  }

  .approach__column--offset {
    margin-top: 110px;
  }
}

@media (max-width: 1200px) {
  /* Отключаем sticky для планшетов и мобильных (менее 1200px) */
  .approach__intro {
    position: static;
    height: auto;
  }

  .approach__container {
    grid-template-columns: minmax(0, 440px) 1fr;
    gap: 35px;
    align-items: center;
  }

  .approach__grid {
    gap: 20px;
  }
  
  .approach__column--offset { 
    margin-top: 0 !important; 
  }
  
  .approach__column { 
    gap: 35px; 
    justify-content: space-between;
  }

  .approach__title {
    font-size: 44px;
  }

  .approach__description {
    font-size: 16px;
    padding: 0 50px 0 0;
  }

  .approach__feature-title {
    font-size: 18px;
  }
  
  .approach__feature-text {
    font-size: 12px;
  }
}

@media (max-width: 1024px) {
  .container {
    padding: 0 40px;
  }

  .approach {
    padding: 100px 0;
  }

  .approach__container {
    grid-template-columns: 1fr;
    gap: 80px;
    align-items: start;
  }

  .approach__grid {
    gap: 40px;
  }

  .approach__column {
    gap: 60px;
    justify-content: start;
   }

  .approach__column--offset {
    margin-top: 0;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 24px;
  }

  .approach {
    padding: 80px 0;
  }

  .approach__container {
    gap: 56px;
  }

  .approach__title {
    font-size: 34px;
  }

  .approach__description {
    font-size: 18px;
    margin-bottom: 36px;
  }

  .approach__grid {
    gap: 48px;
  }

  .approach__column {
    gap: 48px;
  }

  .approach__button {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .approach {
    padding: 70px 0;
  }

  .approach__eyebrow {
    font-size: 14px;
  }

  .approach__title {
    font-size: 24px;
    margin-bottom: 20px;
  }

  .approach__description {
    font-size: 16px;
    margin-bottom: 28px;
  }

  .approach__feature-title {
    font-size: 20px;
    margin-bottom: 10px;
  }

  .approach__feature-text {
    font-size: 16px;
  }

  .approach__column {
    gap: 32px;
  }

  .approach__grid {
    flex-direction: column;
    gap: 32px;
  }
}


/* ===================================================
   BLOCK: team
=================================================== */
.team {
  background-color: var(--color-bg);
  padding: 100px 0;
}

/* ---- Header row (identical pattern to services__header) ---- */
.team__header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 60px;
  margin-bottom: 70px;
}

.team__header-left {
  display: flex;
  flex-direction: column;
  max-width: 900px;
}

.team__header-right {
  max-width: 520px;
  padding-top: 12px;
  flex-shrink: 0;
}

.team__eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 20px;
}

.team__title {
  font-family: var(--font-heading);
  font-size: 64px;
  font-weight: 600;
  line-height: 1.15;
  text-transform: uppercase;
  color: var(--color-text);
  margin: 0;
}

.team__description {
  font-family: var(--font-body);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--color-text);
  margin: 0;
}

/* ---- Cards grid (staggered, same offset system as services) ---- */
.team__grid {
  display: flex;
  align-items: flex-start;
  gap: 35px;
}

.team-card {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.team-card__image {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 428 / 440;
  border-radius: 25px;
  overflow: hidden;
  margin-bottom: 25px;
}

.team-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease  !important;
}

.team-card__image:hover img {
  transform: scale(1.04);
}

.team-card__image:active {
  transform: scale(0.98);
}

.team-card__image:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

.team-card__badge {
  position: absolute;
  right: 20px;
  bottom: 20px;
  background-color: var(--color-accent);
  color: var(--color-bg);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1;
  padding: 10px 18px;
  border-radius: 100px;
}

.team-card__name {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--color-text);
  margin: 0 0 12px 0;
}

.team-card__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.team-card__item {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--color-text);
}

.team-card__item::before {
  content: "– ";
}

/* ===================================================
   RESPONSIVE
=================================================== */

/* 1440px — laptops */
@media (max-width: 1440px) {
  .team { padding: 80px 0; }
  .team__title { font-size: 52px; }
  .team__description { font-size: 20px; }
  .team__header { margin-bottom: 55px; }
}

/* 1200px */
@media (max-width: 1200px) {
  .team__title { font-size: 44px; }
  .team__description { font-size: 18px; }
  .team-card__name { font-size: 18px; }

  .team__header-right {
   max-width: 400px;
   padding-top: 12px;
   flex-shrink: 0;
   }
}

/* 1024px — tablets landscape */
@media (max-width: 1024px) {
  .team { padding: 70px 0; }
  .team__header {
    flex-direction: column;
    align-items: start;
    gap: 25px;
  }
  .team__header-right {
    max-width: 100%;
    padding-top: 0;
  }
  .team__grid {
    flex-wrap: wrap;
    gap: 25px;
  }
  .team-card {
    flex: 1 1 calc(50% - 13px);
    margin-top: 0 !important;
  }
  .team-card__image {
    aspect-ratio: 1 / 1;
  }
}

/* 768px — tablets portrait */
@media (max-width: 768px) {
  .team { padding: 60px 0; }
  .team__title { font-size: 36px; }
  .team__description { font-size: 16px; }
  .team__header { margin-bottom: 40px; gap: 20px; }
  .team__grid { gap: 15px; }
  .team-card { flex: 1 1 calc(50% - 8px); }
  .team-card__image { margin-bottom: 18px; }
  .team-card__badge { font-size: 12px; padding: 8px 14px; right: 14px; bottom: 14px; }
}

/* 480px / 320px — mobile */
@media (max-width: 480px) {
  .team { padding: 50px 0; }
  .team__eyebrow { font-size: 14px; margin-bottom: 12px; }
  .team__title { font-size: 24px; }
  .team__description { font-size: 15px; }
  .team__grid { flex-direction: column; gap: 30px; }
  .team-card { flex: 1 1 100%; width: 100%; }
  .team-card__image { aspect-ratio: 428 / 440; }
  .team-card__name { font-size: 18px; }
  .team-card__item { font-size: 15px; }
}



/* ===================================================
   BLOCK: results
=================================================== */

.results {
  background-color: var(--color-bg);
  padding: var(--gap-section) 0;
}

.results__container {
  display: flex;
  gap: 35px;
  align-items: center;
}

/* ---------- Intro column ---------- */

.results__intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 50%;
}

.results__eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 24px;
}

.results__title {
  font-family: var(--font-heading);
  font-size: 64px;
  font-weight: 600;
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--color-text);
  margin: 0 0 32px;
}

.results__description {
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-text);
  margin: 0 0 48px;
  max-width: 460px;
  padding: 0 0 0 70px;
}

.results__button {
  min-width: 190px;
}

/* ---------- Media column ---------- */

.results__media {
  width: 50%;
}

.results__slide {
  display: none;
  
  border-radius: 30px;
  max-height: 500px;
  overflow: hidden;
}

.results__slide.is-active {
  display: block;
}

.results__compare {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background-color: var(--color-card);
  cursor: ew-resize;
}

.results__compare-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  pointer-events: none;
}

.results__compare-image--before {
  clip-path: inset(0 calc(100% - var(--split, 50%)) 0 0);
}

.results__compare-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--split, 50%);
  width: 2px;
  background-color: var(--color-bg);
  transform: translateX(-50%);
  cursor: ew-resize;
  touch-action: none;
}

.results__compare-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background-color: var(--color-accent);
  color: var(--color-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: ew-resize;
  transition: background-color 0.2s ease, transform 0.2s ease !important;
}

.results__compare-handle:hover {
  background-color: #435f58;
}

.results__compare-handle:active {
  transform: translate(-50%, -50%) scale(0.94);
}

.results__compare-handle:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

/* ---------- Carousel nav ---------- */

.results__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
}

.results__nav-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--color-accent);
  border-radius: 50%;
  background-color: transparent;
  color: var(--color-accent);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease !important;
}

.results__nav-arrow:hover {
  background-color: var(--color-accent);
  color: var(--color-bg);
}

.results__nav-arrow:active {
  transform: scale(0.94);
}

.results__nav-arrow:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

.results__nav-dots {
  display: flex;
  align-items: center;
  gap: 10px;
}

.results__nav-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 1px solid var(--color-accent);
  border-radius: 50%;
  background-color: transparent;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease !important;
}

.results__nav-dot.is-active {
  background-color: var(--color-accent);
}

.results__nav-dot:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

/* ===================================================
   RESPONSIVE
=================================================== */

@media (max-width: 1440px) {
  .results {
    padding: 140px 0;
  }

  .results__title {
    font-size: 52px;
  }

  .results__slide {
    display: none;  
    
    border-radius: 30px;
    max-height: 400px;
    overflow: hidden;
  }
}

@media (max-width: 1200px) {

  .results__title {
    font-size: 44px;
  }

  .results__description {
    font-size: 16px;
    padding: 0 0 0 50px;
  }
}

@media (max-width: 1024px) {
  .results {
    padding: 100px 0;
  }

  .results__container {
    flex-direction: column;
  }
  .results__intro, .results__media {
    width: 100%;
  }

  .results__description {
    max-width: 100%;
    padding: 0;
  }

  .results__slide {
    display: none;  
    
    border-radius: 30px;
    max-height: 100%;
  }
}

@media (max-width: 768px) {
  .results {
    padding: 80px 0;
  }

  .results__title {
    font-size: 34px;
  }

  .results__description {
    font-size: 18px;
    margin-bottom: 36px;
  }

  .results__button {
    width: 100%;
  }

  .results__compare-handle {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 480px) {
  .results {
    padding: 70px 0;
  }

  .results__eyebrow {
    font-size: 14px;
  }

  .results__title {
    font-size: 26px;
    margin-bottom: 20px;
  }

  .results__description {
    font-size: 16px;
    margin-bottom: 28px;
  }

  .results__nav-arrow {
    width: 38px;
    height: 38px;
  }
}




  /* ===================================================
     BLOCK: reviews
  =================================================== */
 
  .reviews {
    padding: 140px 0 var(--gap-section);
    overflow: hidden;
  }
 
  .reviews__head {
    padding: 0 var(--container-padding);
    margin-bottom: 64px;
  }
 
  .reviews__eyebrow {
    display: block;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin: 0 0 20px;
  }
 
  .reviews__title {
    font-family: var(--font-heading);
    font-size: 64px;
    font-weight: 600;
    line-height: 1.1;
    text-transform: uppercase;
    margin: 0;
  }
 
  /* Track rows */
  .reviews__row {
    overflow: hidden;
    width: 100%;
  }
 
  .reviews__row + .reviews__row {
    margin-top: 24px;
  }
 
  .reviews__track {
    display: flex;
    gap: 24px;
    width: max-content;
    will-change: transform;
  }
 
  /* ===================================================
     BLOCK: review-card
  =================================================== */
 
  .review-card {
    flex: 0 0 auto;
    width: 520px;
    background: var(--color-card);
    border-radius: 30px;
    padding: 28px 28px 32px;
  }
 
  .review-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
  }
 
  .review-card__author {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin: 0;
    white-space: nowrap;
  }
 
  .review-card__rating {
    display: flex;
    align-items: center;
    gap: 3px;
    flex-shrink: 0;
  }
 
  .review-card__rating svg {
    width: 18px;
    height: 18px;
  }
 
  .review-card__rating svg.is-filled path {
    fill: var(--color-accent);
  }
 
  .review-card__rating svg.is-empty path {
    fill: none;
    stroke: var(--color-accent);
    stroke-width: 1.4;
  }
 
  .review-card__text {
    font-family: var(--font-body);
    font-size: 17px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--color-text);
    margin: 0;
  }
 
  /* ===================================================
     RESPONSIVE
  =================================================== */
 
  @media (max-width: 1440px) {
    :root { --container-padding: 80px; }
    .reviews__title { font-size: 52px; }
  }
 
  @media (max-width: 1200px) {
    :root { --container-padding: 60px; --gap-section: 140px; }
  }
 
  @media (max-width: 1024px) {
    :root { --container-padding: 40px; --gap-section: 100px; }
    .reviews { padding-top: 100px; }
    .reviews__title { font-size: 40px; }
    .review-card { width: 320px; }
  }
 
  @media (max-width: 767px) {
    :root { --container-padding: 20px; --gap-section: 70px; }
    .reviews__head { margin-bottom: 40px; }
    .reviews__eyebrow { font-size: 14px; }
    .reviews__title { font-size: 30px; }
    .reviews__track { gap: 16px; }
    .reviews__row + .reviews__row { margin-top: 16px; }
    .review-card { width: 260px; padding: 15px; border-radius: 16px; }
    .review-card__text { font-size: 12px; }
    .review-card__header {
      flex-direction: column;
      align-items: start;
    }
  }
 
  @media (max-width: 480px) {
    .reviews__title { font-size: 24px; }
    .review-card { width: 230px; }
  }



  /* ===================================================
   HERO SECTION
=================================================== */
.about {
  background-color: var(--color-bg);
  padding-top: 120px;
  padding-bottom: var(--gap-section);
}

.about__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 80px;
}

/* -------- Content column -------- */
.about__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.about__eyebrow {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 24px;
}

.about__title {
  font-family: var(--font-heading);
  font-size: 64px;
  font-weight: 600;
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--color-text);
  margin: 0 0 32px;
}

.about__text {
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-text);
  margin: 0 0 48px;
  padding: 0 0 0 70px;
}

.about__button:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

/* -------- Gallery column -------- */
.about__gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.about__gallery-col {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.about__gallery-col--stack {
  gap: 24px;
}

.about__image {
  overflow: hidden;
  border-radius: 16px;
  background-color: var(--color-card);
}

.about__image img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
}

.about__gallery-col--stack .about__image {
  flex: 1 1 50%;
}

.about__gallery-col--tall {
  height: 100%;
}

.about__gallery-col--tall .about__image--3 {
  height: 100%;
}

/* ===================================================
   RESPONSIVE
=================================================== */

/* 1440px — laptops */
@media (max-width: 1440px) {
  .about {
    padding-top: 100px;
    padding-bottom: 160px;
  }

  .about__row {
    gap: 60px;
  }

  .about__title {
    font-size: 52px;
  }

  .about__text {
    padding: 0 0 0 50px;
  }
}

/* 1200px — grid adaptation */
@media (max-width: 1200px) {
  .about__row {
    gap: 40px;
  }

  .about__title {
    font-size: 44px;
  }

  .about__text {
    font-size: 16px;
    max-width: 440px;
  }
}

/* 1024px — tablets landscape: 2-column simplification */
@media (max-width: 1024px) {
  .about {
    padding-top: 80px;
    padding-bottom: 120px;
  }

  .about__row {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about__content {
    align-items: flex-start;
    max-width: 100%;
  }

  .about__title,
  .about__text {
    max-width: 100%;
  }

  .about__text {
    padding: 0;
  }
}

/* 768px — tablets vertical: vertical stacking */
@media (max-width: 768px) {
  .about {
    padding-top: 60px;
    padding-bottom: 90px;
  }

  .about__title {
    font-size: 36px;
  }

  .about__text {
    font-size: 16px;
    margin-bottom: 36px;
  }

  .about__gallery {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .about__gallery-col--stack {
    gap: 16px;
  }

  .about__image {
    border-radius: 12px;
  }
}

/* 480px / 320px — mobile: single column cards */
@media (max-width: 480px) {
  .about {
    padding-top: 40px;
    padding-bottom: 70px;
  }

  .about__row {
    gap: 32px;
  }

  .about__eyebrow {
    font-size: 14px;
    margin-bottom: 16px;
  }

  .about__title {
    font-size: 24px;
    line-height: 1.15;
    margin-bottom: 20px;
  }

  .about__text {
    font-size: 15px;
    margin-bottom: 28px;
  }

  .about__button {
    width: 100%;
  }

  .about__gallery {
    grid-template-columns: 1fr;
    height: auto;
    gap: 12px;
  }

  .about__gallery-col--stack {
    flex-direction: row;
    gap: 12px;
    height: 160px;
  }

  .about__gallery-col--stack .about__image {
    flex: 1 1 50%;
    height: 100%;
  }

  .about__gallery-col--tall {
    height: 260px;
  }

  .about__image {
    border-radius: 10px;
  }
}

/* ===================================================
   FAQ SECTION
=================================================== */

.faq {
  background-color: var(--color-bg);
  padding: var(--gap-section) 0;
}

.faq__grid {
  display: flex;
  gap: 35px;
  align-items: start;
}

/* ---------------------------------------------------
   Left column — accordion list
--------------------------------------------------- */

.faq__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background-color: var(--color-card);
  border-radius: 24px;
  padding: 32px 40px;
  transition: background-color 0.2s ease !important;
  cursor: pointer;
}

.faq-item__header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: none;
  border: none;
  padding: 0;
  text-align: left;
  font-family: inherit;
}

.faq-item__header:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
  border-radius: 8px;
}

.faq-item__question {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-text);
}

.faq-item__icon {
  flex-shrink: 0;
  color: var(--color-text);
  transition: transform 0.2s ease !important;
}

.faq-item.is-active .faq-item__icon {
  transform: rotate(90deg);
}

.faq-item__body {
  display: grid;
  grid-template-rows: 0fr;
  overflow: hidden;
  transition: grid-template-rows 0.3s ease !important;
}

.faq-item__body > .faq-item__text {
  min-height: 0;
  overflow: hidden;
}

.faq-item.is-active .faq-item__body {
  grid-template-rows: 1fr;
  margin-top: 16px;
}

.faq-item__text {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-text);
}

/* ---------------------------------------------------
   Right column — heading + CTA
--------------------------------------------------- */

.faq__side {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: sticky;
  top: 40px;
}

.faq__eyebrow {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 20px;
}

.faq__title {
  font-family: var(--font-heading);
  font-size: 64px;
  font-weight: 600;
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--color-text);
  margin-bottom: 40px;
}

.faq__cta {
  margin-top: 0;
}

/* ===================================================
   RESPONSIVE
=================================================== */

@media (max-width: 1440px) {
  .faq {
    padding: 150px 0;
  }
  .faq__title {
    font-size: 52px;
  }
  .faq-item {
    padding: 28px 32px;
  }
  .faq-item__question {
    font-size: 22px;
  }
}

@media (max-width: 1200px) {
  .faq__title {
    font-size: 44px;
  }
}

@media (max-width: 1024px) {
  .faq {
    padding: 100px 0;
  }
  .faq__grid {
    flex-direction: column;
  }
  .faq__list {
    order: 2;
  }
  .faq__side {
    order: 1;
  }
  .faq__side {
    position: static;
  }
  .faq__title {
    font-size: 40px;
  }
}

@media (max-width: 767px) {
  .faq {
    padding: 80px 0;
  }
  .faq__grid {
    gap: 40px;
  }
  .faq-item {
    padding: 22px 24px;
    border-radius: 18px;
  }
  .faq-item__question {
    font-size: 18px;
  }
  .faq-item__text {
    font-size: 16px;
  }
  .faq__title {
    font-size: 32px;
  }
  .faq__cta {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .faq-item {
    padding: 18px 20px;
    border-radius: 16px;
  }
  .faq-item__question {
    font-size: 16px;
  }
  .faq__title {
    font-size: 24px;
  }
  .faq__eyebrow {
    font-size: 14px;
  }
}


:root {
  --color-accent-hover: #435F58;
  --color-muted: rgba(0, 0, 0, 0.55);
  --radius-card: 32px;
  --radius-pill: 100px;
}


/* ===================================================
   contacts SECTION
=================================================== */
.contacts {
  padding: 100px 0;
}
 
.contacts__container {
  display: flex;
  align-items: center;
  gap: 35px;
}
 
.contacts__content {
  max-width: 50%;
}
 
.contacts__title {
  margin: 0 0 32px;
  font-family: var(--font-heading);
  font-size: 64px;
  font-weight: 600;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}
 
.contacts__text {
  margin: 0 0 40px;
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-muted);
  padding: 0 0 0 70px;
}
 
.contacts__submit {
  width: calc(50% - 10px);
  margin-top: 4px;
}
 
.contacts__media {
  border-radius: var(--radius-card);
  overflow: hidden;
  width: 50%;
}
 
.contacts__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-card);
}
 
/* ===================================================
   FORM
=================================================== */
/* ===================================================
   FORM & BUTTON SYNC
=================================================== */
.form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form__field {
  position: relative;
}

/* Базовые стили полей ввода (синхронизированы с базовой кнопкой) */
.form__input,
.form__select {
  width: 100%;
  /* Используем те же вертикальные отступы, что и у .button (15px + 15px + 16px font = ~46px) */
  padding: 15px 24px;
  background-color: transparent;
  border: 1px solid var(--color-accent);
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1; /* Синхронизируем line-height с кнопкой */
  color: var(--color-text);
  box-sizing: border-box;
}

.form__input::placeholder {
  color: var(--color-muted);
}

.form__select {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  color: var(--color-muted);
}

.form__select-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.form__select-icon {
  flex-shrink: 0;
  color: var(--color-accent);
  transition: transform 0.2s ease !important;
}

.form__field--select.is-open .form__select-icon {
  transform: rotate(90deg);
}

.contacts__submit {
  width: calc(50% - 10px);
  margin-top: 4px;
}

/* ===================================================
   RESPONSIVE SYNC (Адаптивность)
=================================================== */

/* Tablets, portrait */
@media (max-width: 768px) {
  .form__row {
    grid-template-columns: 1fr;
  }
  
  .contacts__submit {
    width: 100%; /* На планшетах и мобилках кнопка на всю ширину смотрится гармоничнее */
  }
}

/* Mobile */
@media (max-width: 480px) {
  /* Синхронизируем padding полей с увеличенным padding кнопки на мобилках */
  .form__input,
  .form__select {
    padding: 18px 20px; /* Совпадает с мобильным padding кнопки */
    font-size: 16px;     /* Фиксируем единый размер шрифта, чтобы не было визуального прыжка */
  }

  .button {
    padding: 18px 24px;
    width: 100%; /* Кнопка на всю ширину на экранах мобильных */
  }
}
 
/* ===================================================
   RESPONSIVE
=================================================== */
 
/* Laptops */
@media (max-width: 1440px) {
  :root {
    --container-padding: 80px;
  }
 
  .contacts__title {
    font-size: 52px;
  }
}
 
/* Small laptops / large tablets */
@media (max-width: 1200px) {
  :root {
    --container-padding: 48px;
  }
 
  .contacts__title {
    font-size: 44px;
  }
}
 
/* Tablets, landscape */
@media (max-width: 1024px) {
  .contacts__container {
    flex-direction: column;
  }
  .contacts__media {
    width: 100%;
  }
 
  .contacts__content {
    max-width: 100%;
  }
 
  .contacts__text {
    max-width: 100%;
    padding: 0;
  }
 
  .contacts__media {
    order: 2;
  }
}
 
/* Tablets, portrait */
@media (max-width: 768px) {
  :root {
    --container-padding: 30px;
    --radius-card: 24px;
  }
 
  .contacts {
    padding: 60px 0;
  }
 
  .contacts__title {
    font-size: 36px;
    margin-bottom: 24px;
  }
 
  .contacts__text {
    font-size: 16px;
    margin-bottom: 32px;
  }
 
  .contacts__container {
    gap: 32px;
  }
}
 
/* Mobile */
@media (max-width: 480px) {
 
  .contacts__title {
    font-size: 24px;
  }
 
  .contacts__text {
    font-size: 15px;
  }
}


.footer {
  padding: 30px 0;
}
.footer__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer__logo svg {
  width: 70px;
  height: 70px;
}
.footer-contacts {
  display: flex;
  flex-direction: column;
  align-items: end;
  gap: 5px;
}
.footer-contacts_link {
  font-size: 16px;
  color: var(--color-text);
}
.footer-contacts__adress {
  font-size: 16px;
  color: var(--color-text);
}

@media (max-width: 768px) {
  .footer__row {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }
  .footer-contacts {
    align-items: center;
  }
  .footer-contacts_link, .footer-contacts__adress {
    text-align: center;
  }
}

@media (max-width: 424px) {
  .footer__row {
    gap: 15px;
  }
}




#curtain-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  pointer-events: none; /* не мешает кликам по сайту */
}

#curtain-overlay .curtain-panel {
  width: 50%;
  height: 100%;
  transform: translateX(0); /* по умолчанию — панели закрывают экран */
  transition: transform 0.55s cubic-bezier(0.65, 0, 0.35, 1);
}

#curtain-overlay .curtain-panel--left {
  background: var(--color-card, #E8E2D8);
}

#curtain-overlay .curtain-panel--right {
  background: var(--color-bg, #F7F6F2);
}

/* лого-акцент по центру, видно только пока панели сомкнуты */
#curtain-overlay .curtain-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 96px;   /* сохраняем пропорции 120×90 (4:3) — поменяй при желании */
  height: 72px;
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  transition: opacity 0.25s ease, transform 0.35s ease;
  z-index: 2;
}

/* состояние "открыто" — панели уезжают за пределы экрана */
#curtain-overlay.curtain--open .curtain-panel--left {
  transform: translateX(-100%);
}
#curtain-overlay.curtain--open .curtain-panel--right {
  transform: translateX(100%);
}
#curtain-overlay.curtain--open .curtain-logo {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.6);
}




.fade-in-up {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}


.hero__media {
   isolation: isolate;
   contain: layout paint;
   transform: translate3d(0, 0, 0);
   will-change: transform;
}

.hero__media video {
   transform: translate3d(0, 0, 0);
   backface-visibility: hidden;
   -webkit-backface-visibility: hidden;
}