/* Morea landing — palette: navy #12303E, teal #205C69 / #4A9FA5, cyan #36BCC6, slate #295C89, accents #F4701B #E6401C #C81D29 #8B1C23 */

:root {
  /* ===== ЕДИНАЯ ФЛАТНАЯ ПАЛИТРА: Tiffany Blue + тёплый молочный + графит + белый (только в компонентах) ===== */
  --tiffany: #81d8d0; /* насыщенный фирменный Tiffany — акценты, кнопки, ключевые слова */
  --tiffany-deep: #2c7d76; /* глубокий Tiffany — тёмные секции, hover кнопок, текст на светлом (проходит контраст 4.5:1) */
  --tiffany-mid: #81d8d0; /* заметно бирюзовый фон для цветных секций */
  --milk: #faf7f1; /* тёплый молочно-бежевый — светлее, дороже, без желтизны/серости */
  --milk-alt: var(--milk); /* больше не используется отдельно — единый светлый фон */
  --white: #fff; /* только внутри компонентов: карточки, поля, попапы */
  --ink: #2e3133; /* графит — весь текст */
  --ink-soft: #5a5d60; /* приглушённый графит — вторичный текст */
  --terracotta: #a86a58; /* редкий акцент, не для фонов секций */
  --terracotta-rgb: 168, 106, 88;
  --terracotta-dark: #8a5747;

  /* Псевдонимы поверх флатной палитры — чтобы не переписывать все селекторы CSS */
  --naval: var(--ink);
  --teal-deep: var(--tiffany-deep);
  --teal: var(--tiffany);
  --cyan: var(--tiffany);
  --cyan-pale: var(--tiffany-mid);
  --benefits-bg: var(--milk);
  --slate: var(--tiffany-deep);
  --nav-pill: var(--milk);
  --nav-link: var(--tiffany-deep);
  --cta: var(--tiffany-deep);
  --cta-hover: #072a27;
  --burgundy: var(--tiffany-deep);
  --red: #c81d29;
  --peach: var(--white);
  --shadow: 0 12px 32px rgba(38, 34, 28, 0.1);
  --section-dark-top: var(--tiffany-mid);
  --section-dark-mid: var(--tiffany-mid);
  --section-dark-bottom: var(--tiffany-mid);
  --section-dark-floor: var(--tiffany-mid);
  --radius-pill: 999px;
  --radius-card: 16px;
  /* Единая "карточная" поверхность: повторялась дословно в .card, .benefit-card, .safety-card,
     .why-card, .price-card, .branch-card (радиус+бордер+тень) — вынесено в переменные */
  --card-radius: clamp(20px, 3.5vw, 28px);
  --card-border-color: rgba(var(--teal-deep-rgb), 0.85);
  --card-shadow: 0 6px 22px rgba(var(--shadow-rgb), 0.055), 0 0 0 1px rgba(var(--white-rgb), 0.9) inset;
  --font: "Manrope", "Segoe UI", system-ui, sans-serif;
  --font-heading: "Cormorant Garamond", Georgia, serif;
  --font-nav: "Manrope", "Segoe UI", system-ui, sans-serif;
  /* Сетка страницы: одинаковые поля и центрирование контента */
  --layout-max: 1180px;
  --page-gutter: clamp(20px, 4vw, 40px);

  /* Все "дополнительные" оттенки схлопнуты в 2-3 флатных тона */
  --naval-deep: var(--tiffany-deep);
  --teal-darker: var(--tiffany-mid);
  --teal-mid: var(--tiffany-mid);
  --teal-dark: var(--tiffany-deep);
  --bg-light: var(--milk);
  --bg-green-pale: var(--tiffany-mid);
  --bg-green-light: var(--tiffany-mid);
  --cyan-bright: var(--tiffany);
  --cyan-glow: var(--tiffany);
  --cyan-mid: var(--tiffany);
  --cyan-dark: var(--tiffany-deep);
  --cyan-darker: var(--tiffany-deep);
  --cta-light: var(--tiffany-deep);
  --cta-mid: var(--tiffany-deep);
  --cta-bright: var(--tiffany);
  --cta-deep: var(--tiffany-deep);
  --red-dark: #b91c1c;
  --red-mid: #dc2626;
  --red-light: #ef4444;
  --green-dark: #14532a;
  --card-lime: var(--white);
  --card-blue: var(--white);
  --card-peach: var(--white);
  --card-lavender: var(--white);
  --card-mint: var(--white);
  --cream: var(--milk);
  /* RGB-компоненты для rgba() */
  --naval-rgb: 46, 49, 51;
  --white-rgb: 255, 255, 255;
  --teal-deep-rgb: 129, 216, 208;
  --cyan-rgb: 129, 216, 208;
  --shadow-rgb: 46, 49, 51;
  /* Больше не используем декоративные градиенты — оставлены как флатные fallback */
  --gloss-sheen: none;
  --surface-gradient: var(--white);
  --deep-gradient: var(--tiffany-deep);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.6;
  color: var(--naval);
  background: var(--milk);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: clip;
  overflow-wrap: break-word;
}

body [class*="marquiz"][style*="position: fixed"],
body [id*="marquiz"][style*="position: fixed"] {
  transform: scale(0.72);
  transform-origin: bottom right;
}

#main {
  min-width: 0;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--slate);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: 100%;
  max-width: var(--layout-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--page-gutter);
  padding-right: var(--page-gutter);
  box-sizing: border-box;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--white);
  border-radius: 8px;
  font-weight: 700;
  box-shadow: var(--shadow);
  transition: top 0.2s;
}

.skip-link:focus {
  top: 16px;
  outline: 2px solid var(--cyan);
}

/* Fixed pill nav */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding-top: max(10px, env(safe-area-inset-top, 0px));
  padding-left: 0;
  padding-right: 0;
  padding-bottom: 0;
  pointer-events: none;
}

.site-header__inner {
  pointer-events: auto;
  width: 100%;
  max-width: none;
  min-width: 0;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(16px, 2.4vw, 32px);
  padding: clamp(16px, 2.4vw, 22px) max(var(--page-gutter), env(safe-area-inset-left, 0px));
  background: rgba(var(--white-rgb), 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 0;
  box-shadow: none;
  border: none;
  border-bottom: 1px solid rgba(var(--naval-rgb), 0.09);
  box-sizing: border-box;
}

.logo {
  display: flex;
  align-items: center;
  color: inherit;
  text-decoration: none;
  flex-shrink: 0;
  min-width: 0;
}

.logo:hover {
  text-decoration: none;
}

.logo:hover .logo__img {
  opacity: 0.92;
}

.logo:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 10px;
}

.logo__img {
  height: 44px;
  width: auto;
  max-width: min(200px, 42vw);
  aspect-ratio: 796 / 399;
  flex-shrink: 0;
  object-fit: contain;
  object-position: left center;
  display: block;
  background: transparent;
  border-radius: 0;
  transition: opacity 0.2s ease;
}

.nav-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(8px, 1.4vw, 24px) clamp(16px, 2vw, 28px);
  flex: 1;
  justify-content: flex-end;
  min-width: 0;
}

.nav-main a {
  position: relative;
  color: var(--naval);
  font-family: var(--font-nav);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 8px 4px;
  border-radius: 0;
  white-space: nowrap;
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-main a::after {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: 2px;
  height: 1px;
  background: var(--terracotta);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}

.nav-main a:hover,
.nav-main a:focus-visible {
  background: transparent;
  color: var(--naval);
  text-decoration: none;
}

.nav-main a:hover::after,
.nav-main a:focus-visible::after {
  transform: scaleX(1);
}

.nav-main__dropdown {
  position: relative;
}

.nav-main__dropdown > button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: none;
  background: transparent;
  font: inherit;
  font-family: var(--font-nav);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--naval);
  padding: 8px 4px;
  border-radius: 0;
  cursor: pointer;
  transition: color 0.2s ease;
}

.nav-main__dropdown > button:hover,
.nav-main__dropdown > button[aria-expanded="true"] {
  background: transparent;
  color: var(--naval);
}

.nav-main__dropdown-panel {
    position: static;
    transform: none;
    box-shadow: none;
    background: var(--cyan-pale);
    margin-top: 4px;
    display: none;
    opacity: 1;
    visibility: visible;
  }

  .nav-main__dropdown.is-open .nav-main__dropdown-panel {
    display: block;
  }

.nav-main__dropdown-panel a {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--naval);
}

.nav-main__dropdown-panel a:hover {
  background: var(--cyan-pale);
  color: var(--naval);
}

/* Branch picker (филиал) */
.branch-picker {
  position: relative;
  flex-shrink: 0;
  max-width: 170px;
}

.branch-picker__btn {
  display: inline-flex;
  align-items: flex-start;
  gap: 6px;
  border: 1px solid rgba(var(--cyan-rgb), 0.44);
  background: var(--white);
  font: inherit;
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--naval);
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
  font-family: var(--font);
  max-width: 170px;
  white-space: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.1;
  box-shadow:
    0 10px 22px rgba(var(--teal-deep-rgb), 0.2),
    0 0 0 1px rgba(var(--white-rgb), 0.45) inset;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.branch-picker__btn:hover,
.branch-picker__btn[aria-expanded="true"] {
  background: var(--cyan-pale);
  border-color: rgba(var(--cyan-rgb), 0.65);
  box-shadow:
    0 14px 30px rgba(var(--teal-deep-rgb), 0.28),
    0 0 0 1px rgba(var(--white-rgb), 0.55) inset;
  transform: translateY(-1px);
}

.branch-picker__title {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.05;
}

.branch-picker__chev {
  opacity: 1;
  font-weight: 900;
  margin-top: 0;
  flex: 0 0 auto;
  color: var(--white);
  background: var(--teal-mid);
  border-radius: 999px;
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.62rem;
  box-shadow: 0 4px 12px rgba(var(--teal-deep-rgb), 0.35);
}

.branch-picker__title-main,
.branch-picker__title-sub {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.branch-picker__title-main {
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--naval-deep);
}

.branch-picker__title-sub {
  font-weight: 700;
  font-size: 0.78rem;
  color: rgba(var(--naval-rgb), 0.95);
}

/* В кнопке показываем только название филиала; адрес — только в выпадающем меню */
.branch-picker__title-sub {
  display: none;
}

.branch-picker__panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 260px;
  padding: 8px;
  border-radius: 14px;
  background: var(--white);
  border: 1px solid rgba(var(--shadow-rgb), 0.08);
  box-shadow: 0 18px 40px rgba(var(--shadow-rgb), 0.14);
  display: none;
  z-index: 120;
}

.branch-picker__panel.is-open {
  display: block;
}

.branch-picker__option {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  padding: 10px 10px;
  border-radius: 12px;
  font-family: var(--font);
  color: var(--naval);
}

.branch-picker__option:hover,
.branch-picker__option:focus-visible {
  background: rgba(var(--cyan-rgb), 0.12);
  outline: none;
}

.branch-picker__option[aria-current="true"] {
  background: rgba(var(--cyan-rgb), 0.16);
  border: 1px solid rgba(var(--cyan-rgb), 0.32);
}

.branch-picker__opt-title {
  display: block;
  font-weight: 800;
  color: var(--naval);
  line-height: 1.15;
}

.branch-picker__opt-sub {
  display: block;
  font-size: 0.82rem;
  color: var(--slate);
  line-height: 1.25;
  margin-top: 2px;
}

.branch-picker--bar {
  display: none;
}

.branch-picker--nav {
  margin-left: 2px;
  margin-right: 6px;
}

body.branch--kommunarka [data-branch-only]:not([data-branch-only="kommunarka"]) {
  display: none !important;
}

body.branch--spartak [data-branch-only]:not([data-branch-only="spartak"]) {
  display: none !important;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 26px;
  border: none;
  border-radius: 14px;
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--white);
  background: var(--cta);
  cursor: pointer;
  text-decoration: none;
  flex-shrink: 0;
  transition: background 0.2s ease, transform 0.15s ease;
}

.btn-cta:hover {
  background: var(--cta-hover);
  text-decoration: none;
  color: var(--white);
  transform: translateY(-1px);
}

.btn-cta--ghost {
  background: transparent;
  color: var(--burgundy);
  border: 1.5px solid var(--burgundy);
  box-shadow: none;
}

.btn-cta--ghost:hover {
  background: var(--burgundy);
  color: var(--white);
}

.site-header__inner .btn-cta {
  padding: 8px 16px;
  font-size: 0.875rem;
  border-radius: 12px;
  box-shadow: 0 3px 11px rgba(var(--naval-rgb), 0.3);
}

/* Burger */
.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 10px;
  background: var(--white);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--naval);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Мобильный логотип в hero */
.logo--mobile-hero {
  display: none;
}

@media (max-width: 1000px) {
  .hero .container.hero__grid {
    align-content: flex-start;
  }

  .logo--mobile-hero {
    display: flex;
    position: relative;
    z-index: 2;
    justify-content: center;
    padding: 0;
    margin: clamp(8px, 2vw, 14px) 0;
  }

  .logo--mobile-hero .logo__img {
    height: clamp(64px, 18vw, 96px);
  }

  .site-header .logo {
    display: none;
  }

  .site-header {
    position: sticky;
    padding: 0;
    z-index: 100;
  }

  .site-header__inner {
  padding: 0 clamp(14px, 3.5vw, 20px);
  border-radius: 0;
  background: var(--white);
  box-shadow: 0 2px 8px rgba(var(--shadow-rgb),0.07);
  border: none;
  border-bottom: 1px solid rgba(var(--shadow-rgb),0.06);
  height: 60px;
  max-width: 100%;
  justify-content: space-between;
  gap: 0;

  backdrop-filter: none;
  -webkit-backdrop-filter: none;
} 
  

  .logo {
    flex: none;
    margin: 0;
  }

  .logo__img {
    height: 36px;
    max-width: min(140px, 55vw);
  }

  .nav-toggle {
    display: flex;
    flex-shrink: 0;
    z-index: 101;
    position: absolute;
    right: clamp(14px, 3.5vw, 20px);
    top: 50%;
    transform: translateY(-50%);
  }

  .nav-main {
    position: fixed;
    top: 60px;
    right: 0;
    bottom: 0;
    width: min(300px, 88vw);
    max-width: 100%;
    box-sizing: border-box;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 16px 18px max(20px, env(safe-area-inset-bottom, 0px));
    box-shadow: -8px 0 32px rgba(var(--shadow-rgb), 0.12);
    transform: translateX(100%);
    transition: transform 0.28s ease;
    z-index: 99;
    overflow-y: auto;
    overflow-x: hidden;
  }

  body.nav-open .nav-main {
    transform: translateX(0);
  }

  body.nav-open::after {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(var(--shadow-rgb), 0.35);
    z-index: 98;
  }

  .nav-main a {
    white-space: normal;
    padding: 16px 4px;
    min-height: 48px;
    display: flex;
    align-items: center;
    border-radius: 0;
    border-bottom: 1px solid rgba(var(--naval-rgb), 0.08);
  }

  .nav-main__dropdown {
    width: 100%;
  }

  .nav-main__dropdown > button {
    width: 100%;
    justify-content: space-between;
    min-height: 48px;
    padding: 16px 4px;
    border-radius: 0;
    border-bottom: 1px solid rgba(var(--naval-rgb), 0.08);
  }

  .nav-main__dropdown-panel {
    position: static;
    transform: none;
    box-shadow: none;
    background: var(--cyan-pale);
    margin-top: 4px;
    display: none;
  }

  .nav-main__dropdown.is-open .nav-main__dropdown-panel {
    display: block;
  }

  .nav-main__dropdown-panel a {
    padding: 14px 12px;
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .site-header__inner .btn-cta {
    display: none;
  }

  .site-header__inner .nav-cta-mobile {
    display: block;
    margin-top: 16px;
    width: 100%;
    text-align: center;
  }

}

.nav-cta-mobile {
  display: none;
}

.nav-main .nav-cta-mobile.btn-cta {
  padding: 10px 16px;
  font-size: 0.875rem;
  border-radius: 12px;
}

/* Hero — фон и декор как у блока «Почему родителям» (.section--dark + .why-backdrop) */
.hero {
  padding: clamp(24px, 4vw, 48px) 0 0;
  min-height: min(88vh, max(46vh, 520px));
  position: relative;
  overflow: visible;
  display: flex;
  flex-direction: column;
}

.hero.section--dark.section--wave-deep {
  padding-top: clamp(64px, 8vw, 80px);
}

.hero.section--dark.why-section {
  overflow: hidden;
}

/* Герой: не режем волну и контент ниже (иначе пропадает блок #lead и «пусто» под роликом) */
#top.hero.section--dark.why-section {
  overflow: visible;
  position: relative;
  z-index: 12;
}

.hero.section--dark::before {
  display: none;
}

.hero .container.hero__grid {
  position: relative;
  z-index: 1;
  padding-bottom: clamp(24px, 5vw, 48px);
  flex: 1 1 auto;
  align-content: center;
  min-width: 0;
  width: 100%;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: stretch;
  min-width: 0;
}

@media (prefers-reduced-motion: reduce) {
  .why-bubble,
  .why-backdrop__arc {
    animation: none;
  }

  .benefit-card {
    transition: none;
  }

  .benefit-card:hover {
    box-shadow:
      0 8px 28px rgba(var(--shadow-rgb), 0.09),
      0 0 0 1px rgba(var(--white-rgb), 0.65) inset;
  }

  .safety-card {
    transition: none;
  }

  .price-card {
    transition: none;
  }

  .price-card:hover {
    transform: none;
    box-shadow: var(--card-shadow);
  }

  .safety-card:hover {
    box-shadow: var(--shadow);
  }
}

@media (max-width: 860px) {
  .hero__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__figure {
    max-width: min(680px, 86vw);
    height: min(70vh, 520px);
    margin-inline: auto;
    margin-right: auto;
  }
}

.hero__eyebrow {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--teal-deep);
  background: rgba(var(--white-rgb), 0.85);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 16px;
}

.hero.section--dark .hero__eyebrow {
  color: var(--teal-deep);
  background: rgba(var(--white-rgb), 0.85);
  border: 1px solid rgba(var(--naval-rgb), 0.16);
}

.hero h1 {
  margin: 0 0 20px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(1.25rem, 2.6vw, 2.25rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--naval);
}

.hero__lead {
  margin: 0 0 24px;
  font-size: clamp(1.1rem, 1.3vw, 1.35rem);
  line-height: 1.5;
  color: var(--slate);
  max-width: 34em;
}

.hero.section--dark .hero__lead {
  color: rgba(var(--naval-rgb), 0.82);
}

ul.hero__lead {
  list-style: none;
  padding: 0;
}

ul.hero__lead li {
  margin: 4px 0;
}

.hero__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(10px, 1.8vw, 16px);
  margin-top: clamp(12px, 2vw, 24px);
  margin-bottom: 0;
  width: 100%;
}

.hero__phones {
  font-size: 0.95rem;
  color: var(--naval);
}

.hero__phones a {
  color: var(--naval);
  font-weight: 700;
}

.hero.section--dark .hero__phones {
  color: var(--naval);
}

.hero.section--dark .hero__phones a {
  color: var(--naval);
  font-weight: 700;
}

.hero.section--dark .hero__phones a:hover {
  color: var(--tiffany-deep);
}

.hero.section--dark .btn-cta--ghost {
  color: var(--naval);
  border-color: rgba(var(--naval-rgb), 0.35);
  background: rgba(var(--naval-rgb), 0.05);
}

.hero.section--dark .btn-cta--ghost:hover {
  background: rgba(var(--naval-rgb), 0.12);
  border-color: rgba(var(--naval-rgb), 0.6);
  color: var(--naval);
}

.wave-divider {
  position: relative;
  z-index: 4;
  display: block;
  line-height: 0;
  margin: -3px 0;
  font-size: 0;
}

.wave-svg {
  width: 100%;
  height: clamp(72px, 14vw, 132px);
  min-height: 72px;
  display: block;
  shape-rendering: geometricPrecision;
  transform: translateZ(0);
}

.hero .wave-divider {
  flex-shrink: 0;
}

.hero__figure {
  position: relative;
  z-index: 6;
  width: 100%;
  height: 100%;
  min-height: 100%;
  align-self: stretch;
  overflow: hidden;
  margin-right: calc(-1 * (max(0px, (100vw - var(--layout-max)) / 2) + var(--page-gutter)));
}

/* Видео заполняет всю правую колонку без карточки/отступов;
   position:absolute отвязывает высоту .hero__figure от собственных пропорций видео,
   иначе высокое/портретное видео растягивает колонку вверх за пределы секции. */
.hero__figure .hero__actor-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  display: block;
  object-fit: cover;
  border-radius: var(--radius-card);
  filter: none;
  margin: 0;
}

/* Видео не загрузилось — убираем блок, без картинки-персонажа */
.hero__figure--video-failed .hero__actor-video {
  display: none !important;
}

@media (max-width: 860px) {
  .hero .hero__figure {
    transform: translateY(calc(-1 * clamp(0.5rem, 1.1rem + 1.75vh, 2.5rem)));
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero .hero__figure {
    transform: none;
  }
}

/* #video styled exactly like "Почему родителям нравится Morea" */
.video-section--why > .container {
  position: relative;
  z-index: 2;
  padding-bottom: clamp(0.65rem, 1.8vw, 1.1rem);
}

#video.video-section--why .section__title,
#video.video-section--why .section__lead {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

#video.video-section--why .section__lead {
  max-width: 34rem;
}

.section.section--wave-top {
  padding-top: 0;
}

.section.section--wave-top > .container {
  padding-top: 0;
}

.section.section--wave-deep {
  padding-top: 0;
}

.section.section--wave-deep > .container {
  padding-top: 0;
}

.section--benefits {
  position: relative;
  /* Как у .hero: overflow-x:hidden + overflow-y:visible даёт overflow-y:auto и лишний скролл.
     Горизонтальный вылет full-bleed режет html/body { overflow-x: hidden }. */
  overflow: visible;
}

.section--benefits.section--alt {
  background: var(--milk);
}

.section--benefits > .container {
  position: relative;
  z-index: 2;
  flex: 0 1 auto;
  justify-content: flex-start;
  padding-top: clamp(0px, 0.6vw, 6px);
  padding-bottom: clamp(0.25rem, 1vw, 0.5rem);
}

@media (max-width: 720px) {

  .section--benefits .benefits-mosaic {
    margin-bottom: clamp(8px, 2.5vw, 16px);
  }
}

.section--benefits .benefits-layout__intro {
  text-align: center;
  max-width: min(44rem, 100%);
  margin-inline: auto;
}

.section--benefits .benefits-layout__intro .section__title {
  margin-bottom: clamp(22px, 3.5vw, 34px);
}

.section--benefits .benefits-layout__intro .section__lead--benefits {
  margin-inline: auto;
  margin-bottom: clamp(8px, 2vw, 12px);
  max-width: min(36em, 100%);
}

.lead-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 40px);
  align-items: start;
  position: relative;
  width: 100%;
}

@media (max-width: 900px) {
  .lead-layout {
    grid-template-columns: 1fr;
  }
}

.lead-layout__intro {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.lead-layout > * {
  min-width: 0;
}

/* Блок записи: без лишней высоты секции */
#lead.section {
  min-height: 0;
  position: relative;
  z-index: 13;
  background: var(--milk);
}

#lead.section > .container {
  padding-top: clamp(0.5rem, 1.5vw, 1rem);
  padding-bottom: clamp(3rem, 5vw, 4.5rem);
}

#lead .lead-intro__bullets {
  margin-top: clamp(12px, 2vw, 16px);
}

/* Клякса только вокруг карточки формы (правая колонка) */
.lead-form-blob {
  position: relative;
  isolation: isolate;
  z-index: 2;
  min-width: 0;
  width: 100%;
  padding: clamp(12px, 2.4vw, 20px);
  align-self: start;
  --lead-mascot-x: 50%;
  --lead-mascot-y: 0px;
}

.lead-form-blob__paint {
  display: none;
  position: absolute;
  /* Градиент в основном за карточкой — не под зоной маскота (меньше конфликт с «чёрной подложкой» PNG) */
  inset: 22% -4% -6px -4%;
  z-index: 0;
  pointer-events: none;
}

.lead-form-blob__svg {
  width: 100%;
  height: 100%;
  display: block;
  shape-rendering: geometricPrecision;
  filter: drop-shadow(0 12px 32px rgba(var(--shadow-rgb), 0.1));
}

.lead-form-blob .lead-form--hero {
  position: relative;
  z-index: 1;
  background: var(--white);
  box-shadow:
    0 8px 28px rgba(var(--shadow-rgb), 0.08),
    0 0 0 1px rgba(var(--naval-rgb), 0.14);
}

.lead-form-blob__column {
  position: relative;
  z-index: 2;
  align-self: center;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  min-width: 0;
}

/*
 * Маскот внутри .lead-form-blob (иначе z-index колонки перекрывал соседа).
 * Якорь: центр верхнего края #form-hero; нижняя середина PNG — см. script.js.
 */
.lead-form-blob__mascot {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  pointer-events: none;
  z-index: 1;
}
.lead-form-blob__mascot-img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(92%, 260px);
  max-height: clamp(96px, 20vw, 180px);
  object-fit: contain;
  object-position: center bottom;
  
  /* ДОБАВЛЯЕМ ЭТИ СТРОКИ */
  animation: nerpa-float-simple 4s ease-in-out infinite;
  will-change: transform;
}

@media (min-width: 901px) {
  .lead-form-blob__mascot {
    position: absolute;
    left: var(--lead-mascot-x);
    top: var(--lead-mascot-y);
    /* Часть маскота должна быть за карточкой формы, остальное — над ней */
    transform: translate(-50%, -82%);
    margin: 0;
    padding: 0;
    display: flex;
    overflow: visible;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
  }

  .lead-form-blob.lead-form-blob--mascot-placed .lead-form-blob__mascot {
    opacity: 1;
  }

  .lead-form-blob__mascot-img {
    max-width: min(300px, 34vw);
    max-height: clamp(110px, 18vw, 210px);
  }
}

@media (max-width: 900px) {
  .lead-form-blob__mascot {
    display: none !important;
  }

  .lead-form-blob__paint {
    inset: 18% -4% -6px -4%;
  }
}

/* Блок «Запись»: текст слева */
.lead-intro__eyebrow {
  display: inline-block;
  margin: 0 0 10px;
  padding: 6px 14px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-deep);
  background: rgba(var(--cyan-rgb), 0.16);
  border-radius: var(--radius-pill);
}

#lead .lead-layout__intro .section__title {
  margin-bottom: 10px;
  margin-top: 40px;
  margin-left: 0;
  text-align: left;
}

#lead .lead-layout__intro .lead-intro__text.section__lead {
  margin-bottom: 0;
}

.lead-intro__bullets {
  list-style: none;
  margin: clamp(18px, 3vw, 24px) 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lead-intro__bullets li {
  position: relative;
  padding-left: 28px;
  font-size: 0.98rem;
  line-height: 1.45;
  color: var(--naval);
}

.lead-intro__bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 3px rgba(var(--cyan-rgb), 0.22);
}

.lead-intro__policy {
  margin: clamp(18px, 3vw, 22px) 0 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--slate);
  max-width: 36em;
}

.lead-intro__policy a {
  color: var(--teal-deep);
  font-weight: 700;
}

.benefits-layout {
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 4vw, 40px);
  min-width: 0;
}

.section--benefits .benefits-layout {
  gap: clamp(16px, 2.8vw, 28px);
}

.benefits-layout__intro {
  min-width: 0;
}

.section__lead--benefits {
  margin-bottom: 0;
}

.benefits-mosaic {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 1.22fr) minmax(0, 1fr);
  grid-template-rows: auto auto auto;
  column-gap: clamp(22px, 3.2vw, 36px);
  row-gap: calc(clamp(22px, 3.2vw, 32px) + clamp(12px, 2vw, 20px));
  align-items: stretch;
  min-width: 0;
}

.benefits-mosaic .benefit-card {
  width: 100%;
  max-width: 100%;
  justify-self: stretch;
  align-self: stretch;
  min-height: clamp(168px, 17vw, 204px);
  height: 100%;
  box-sizing: border-box;
  align-items: center;
  border: 1.5px solid rgba(var(--teal-deep-rgb), 0.3);
  padding-top: clamp(16px, 2.2vw, 20px);
  padding-bottom: clamp(16px, 2.2vw, 20px);
  /* Выше от хаба и нижней волны; row-gap компенсирует наезд на ряд сверху */
  transform: translateY(calc(-1 * clamp(16px, 2.8vw, 24px)));
}

.benefits-mosaic__c1 {
  grid-column: 1;
  grid-row: 1;
}

.benefits-mosaic__c2 {
  grid-column: 3;
  grid-row: 1;
}

.benefits-mosaic__c3 {
  grid-column: 1;
  grid-row: 2;
}

.benefits-mosaic__c4 {
  grid-column: 3;
  grid-row: 2;
}

.benefits-mosaic__c5 {
  grid-column: 1;
  grid-row: 3;
}

.benefits-mosaic__c6 {
  grid-column: 3;
  grid-row: 3;
}

.benefits-mosaic__hub {
  grid-column: 2;
  grid-row: 1 / -1;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  width: 100%;
  max-width: min(100%, 380px);
  margin-inline: auto;
  min-width: 0;
  min-height: 0;
}

.benefits-mosaic__hub .benefits-layout__photo {
  flex: 1 1 auto;
  min-height: clamp(200px, 28vh, 320px);
  max-height: none;
  aspect-ratio: unset;
}

.benefits-mosaic__hub .benefits-layout__scene {
  flex-shrink: 0;
  min-height: min(220px, 32vw);
  margin-top: clamp(8px, 1.5vw, 14px);
}

.benefit-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(12px, 2vw, 15px);
  margin: 0;
  padding: clamp(18px, 2.8vw, 24px) clamp(16px, 2.6vw, 20px) clamp(20px, 2.8vw, 24px);
  padding-top: clamp(22px, 3.2vw, 28px);
  background: var(--white);
  border: 1px solid var(--card-border-color);
  border-radius: var(--card-radius);
  box-shadow:
    var(--card-shadow);
  transition: border-color 0.2s, box-shadow 0.2s;
  max-width: 100%;
}

.benefit-card:hover {
  border-color: rgba(var(--cyan-rgb), 0.42);
  box-shadow:
    0 10px 28px rgba(var(--shadow-rgb), 0.075),
    0 0 0 1px rgba(var(--white-rgb), 0.9) inset;
}

.benefit-card__num {
  display: none;
  position: absolute;
  top: -11px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--teal-deep);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(var(--naval-rgb), 0.28);
}

.benefits-mosaic__c1 .benefit-card__num,
.benefits-mosaic__c3 .benefit-card__num,
.benefits-mosaic__c5 .benefit-card__num {
  left: 16px;
}

.benefits-mosaic__c2 .benefit-card__num,
.benefits-mosaic__c4 .benefit-card__num,
.benefits-mosaic__c6 .benefit-card__num {
  right: 16px;
}

.benefit-card__mark {
  flex-shrink: 0;
  width: clamp(36px, 6vw, 44px);
  height: clamp(36px, 6vw, 44px);
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 3px 12px rgba(var(--cyan-rgb), 0.25);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E")
    center / 50% no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E")
    center / 50% no-repeat;
}

.benefit-card__body {
  min-width: 0;
}

.benefit-card__title {
  margin: 0 0 8px;
  font-size: clamp(1.2rem, 2.6vw, 1.4rem);
  font-weight: 700;
  color: var(--teal-deep);
  line-height: 1.25;
}

.benefit-card__text {
  margin: 0;
  font-size: clamp(0.95rem, 1.65vw, 1.05rem);
  line-height: 1.55;
  color: rgba(var(--naval-rgb), 0.82);
}

.benefits-layout__photo {
  position: relative;
  flex: 0 1 auto;
  width: 100%;
  aspect-ratio: 4 / 5;
  max-height: min(440px, 52vh);
  min-height: 200px;
  border-radius: clamp(18px, 3vw, 24px);
  overflow: hidden;
  background: var(--benefits-bg);
  border: 2px dashed rgba(var(--teal-deep-rgb), 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(18px, 3vw, 28px);
  box-sizing: border-box;
}

.benefits-layout__photo img,
.benefits-layout__photo video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  display: block;
}

.benefits-layout__photo:has(img),
.benefits-layout__photo:has(video) {
  border-style: solid;
  border-color: rgba(var(--cyan-rgb), 0.28);
  border-width: 1px;
  box-shadow: 0 12px 36px rgba(var(--shadow-rgb), 0.08);
}

.benefits-layout__photo:has(img) .benefits-layout__photo-placeholder,
.benefits-layout__photo:has(video) .benefits-layout__photo-placeholder {
  display: none;
}

.benefits-layout__photo-placeholder {
  margin: 0;
  position: relative;
  z-index: 0;
  max-width: 16em;
  text-align: center;
  font-size: clamp(0.92rem, 2vw, 1.02rem);
  font-weight: 700;
  line-height: 1.5;
  color: var(--slate);
}

.benefits-layout__scene {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  min-height: min(200px, 30vw);
  padding: 12px 0 clamp(8px, 2vw, 16px);
  margin-top: 6px;
  overflow: visible;
}

.why-backdrop,
.why-particles,
.why-backdrop,
.benefits-layout__bubbles {
  display: none !important;
}

.benefits-layout__bubbles {
  position: absolute;
  right: 8%;
  bottom: clamp(72px, 18vw, 108px);
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 7px;
  pointer-events: none;
}

.benefits-layout__bubbles span {
  display: block;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(var(--white-rgb), 0.65), rgba(var(--cyan-rgb), 0.38));
  border: 1px solid rgba(var(--white-rgb), 0.45);
  box-shadow: 0 2px 8px rgba(var(--shadow-rgb), 0.08);
}

.benefits-layout__bubbles span:nth-child(1) {
  width: 11px;
  height: 11px;
}

.benefits-layout__bubbles span:nth-child(2) {
  width: 17px;
  height: 17px;
  margin-left: 8px;
}

.benefits-layout__bubbles span:nth-child(3) {
  width: 9px;
  height: 9px;
  margin-left: 14px;
}

.benefits-layout__actor {
  position: relative;
  z-index: 4;
  margin: 0;
  padding: 0;
  background: none;
  border: none;
  box-shadow: none;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  flex-shrink: 0;
}

.benefits-layout__actor img {
  width: min(100%, 300px);
  height: auto;
  display: block;
  filter: drop-shadow(0 14px 32px rgba(var(--shadow-rgb), 0.14));
}

@media (max-width: 960px) {
  .benefits-mosaic {
    display: flex;
    flex-direction: column;
    gap: clamp(18px, 3.2vw, 24px);
  }

  .benefits-mosaic > * {
    grid-column: auto;
    grid-row: auto;
  }

  .benefits-mosaic__hub {
    order: -1;
    max-width: min(420px, 100%);
    width: 100%;
  }

  .benefits-mosaic .benefit-card {
    max-width: 100%;
    justify-self: stretch;
    width: 100%;
    min-height: 0;
    height: auto;
    align-items: center;
    transform: translateY(calc(-1 * clamp(10px, 2.2vw, 18px)));
  }

  .benefits-mosaic .benefit-card__num {
    left: 16px;
    right: auto;
  }

  .benefits-mosaic__hub .benefits-layout__photo {
    flex: 0 1 auto;
    aspect-ratio: 16 / 10;
    max-height: 280px;
    min-height: 180px;
  }

  .benefits-mosaic__hub .benefits-layout__scene {
    min-height: min(200px, 42vw);
  }

  .benefits-layout__actor img {
    width: min(220px, 62vw);
  }
}

@media (max-width: 640px) {
  .benefit-card {
    padding: 22px 18px 20px;
    border-radius: clamp(22px, 6vw, 30px);
  }
}

/* Блок «Безопасность» */
#safety .section__title {
  text-align: center;
}

#safety .section__lead--safety {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section__lead--safety {
  margin-bottom: clamp(20px, 4vw, 28px);
  max-width: min(52em, 100%);
}

.safety-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(14px, 2.5vw, 20px);
  position: relative;
  z-index: 0;
}

@media (min-width: 640px) {
  .safety-cards {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }
}

.safety-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: 0;
  padding: clamp(22px, 3.2vw, 28px) clamp(16px, 2.6vw, 20px) clamp(20px, 2.8vw, 24px);
  background: var(--white);
  border: 1px solid var(--card-border-color);
  border-radius: var(--card-radius);
  box-shadow:
    var(--card-shadow);
  max-width: 100%;
}

.safety-card__body {
  min-width: 0;
}

.safety-card__title {
  margin: 0 0 12px;
  font-size: clamp(1.15rem, 2.2vw, 1.3rem);
  font-weight: 700;
  color: var(--teal-deep);
  line-height: 1.25;
}

.safety-card__text {
  margin: 0;
  font-size: clamp(1rem, 1.8vw, 1.08rem);
  line-height: 1.55;
  color: rgba(var(--naval-rgb), 0.82);
}

.safety-card__text strong {
  color: var(--naval);
  font-weight: 700;
}

/* Cards / sections */
.section {
  display: flex;
  flex-direction: column;
  padding: 0;
  box-sizing: border-box;
  min-width: 0;
}

/* Якоря: запас под фиксированную шапку (прямой заход по URL с #, назад/вперёд) */
.section[id],
main .lead-form[id] {
  scroll-margin-top: calc(max(10px, env(safe-area-inset-top, 0px)) + 76px);
}

.section > .container {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  padding-top: clamp(1.75rem, 4vw, 2.75rem);
  padding-bottom: clamp(3rem, 5vw, 4.5rem);
  min-width: 0;
  width: 100%;
  /* max-width не задаём — наследуем max-width: var(--layout-max) у .container */
}

.section.section--benefits {
  min-height: 0;
}

/* #branches: контента меньше 50vh — не растягивать секцию центрированием (иначе гигантский пустой блок перед волной/футером) */
#branches.section--pale {
  min-height: 0;
}

#branches.section--pale > .container {
  justify-content: flex-start;
  padding-bottom: clamp(3rem, 5vw, 4.5rem);
  text-align: center;
}

#branches.section--pale .section__title,
#branches.section--pale .section__lead {
  margin-left: auto;
  margin-right: auto;
}

#first .section__title,
#first .section__lead {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  max-width: min(48em, 100%);
}

.section--alt {
  background: var(--milk);
}

/* Как у body / волны «to-pale» — без белой вставки между бирюзовыми волнами */
.section--pale {
  background: var(--cyan-pale);
}

.section--dark {
  position: relative;
  isolation: isolate;
  color: var(--naval);
  /* Без сильного верхнего «блика» — он давал другой оттенок, чем плоский низ волны to-deep */
  background-color: var(--section-dark-top);
}

/* Лёгкая «плитка» у нижней части блока — визуальное дно, глубина кажется меньше */
.section--dark.why-section::before {
  content: "";
  position: absolute;
  left: -4px;
  right: -4px;
  top: 0;
  bottom: 0;
  width: auto;
  pointer-events: none;
  z-index: 1;
  display: none;
}

.section--dark.why-section > .container {
  position: relative;
  z-index: 3;
}

@media (max-width: 540px) {
  .section--dark .container > p .btn-cta {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
}

.section--dark h1,
.section--dark h2,
.section--dark .section__title {
  color: var(--naval);
}

.section--dark .section__lead {
  color: rgba(var(--naval-rgb), 0.82);
}

.section__title {
  margin: 0 auto 32px;
  max-width: min(46em, 100%);
  text-align: center;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(1.85rem, 3.2vw, 2.9rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--naval);
}

.section__lead {
  margin: 0 auto 48px;
  max-width: min(48em, 100%);
  text-align: center;
  font-size: clamp(1.05rem, 1.3vw, 1.3rem);
  line-height: 1.55;
  color: var(--slate);
}

/* Блок «Как проходят» (#video) — сетка как на обычных секциях лендинга */
.video-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(20px, 3.5vw, 32px);
  align-items: stretch;
}

.video-panel__embed {
  min-width: 0;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--naval);
  border: 1px solid rgba(var(--cyan-rgb), 0.35);
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

.section--dark .video-panel__embed,
.section--dark .video-slider__viewport {
  background: var(--section-dark-floor);
  border-color: rgba(var(--teal-deep-rgb), 0.32);
}

.video-slider {
  position: relative;
  min-width: 0;
  border-radius: var(--radius-card);
}

.video-slider__viewport {
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--naval);
  border: 1px solid rgba(var(--cyan-rgb), 0.35);
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
  position: relative;
  touch-action: pan-y;
}

/* Оба филиала: горизонтальное видео 16:9 — см. .video-slider__viewport выше */

.video-slider__viewport:focus-visible {
  outline: 2px solid rgba(var(--cyan-rgb), 0.7);
  outline-offset: 3px;
}

.video-slider__track {
  display: flex;
  width: 100%;
  height: 100%;
  transform: translateX(0);
  transition: transform 0.28s ease;
}

.video-slider__slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  position: relative;
}

.video-slider__embed {
  width: 100%;
  height: 100%;
  position: relative;
}

.video-slider__media {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: transparent;
}

.video-slider__media--bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  object-fit: cover;
  transform: scale(1.08);
  filter: blur(18px) saturate(1.05);
  opacity: 0.9;
}

.video-slider__media--fg {
  position: relative;
  z-index: 2;
}

.video-slider__slide.is-landscape .video-slider__media--fg {
  object-fit: cover;
}

.video-slider__slide.is-landscape .video-slider__media--bg {
  opacity: 0;
}

/* Allow slight zoom on active landscape slide (no полосы) */
.video-slider__slide.is-active.is-landscape .video-slider__media--fg {
  transform: scale(1.06);
}

.video-slider__slide.is-active.is-landscape .video-slider__embed {
  background: #000;
}

.video-slider__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 1000;
  font-size: clamp(2.5rem, 6vw, 4rem);
  color: rgba(var(--naval-rgb), 0.14);
  background: var(--teal-darker);
  letter-spacing: -0.04em;
  pointer-events: none;
  z-index: 3;
  opacity: 1;
  transition: opacity 0.22s ease;
}

.video-slider__slide.is-ready .video-slider__placeholder {
  opacity: 0;
}

.video-slider__slide.has-error .video-slider__placeholder {
  opacity: 1;
}

.video-slider__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(var(--naval-rgb), 0.2);
  background: rgba(var(--white-rgb), 0.75);
  color: var(--naval);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 3;
  box-shadow: 0 8px 18px rgba(0, 24, 32, 0.12);
}

.video-slider__nav:hover {
  background: rgba(48, 108, 122, 0.58);
}

.video-slider__nav--prev {
  left: 10px;
}

.video-slider__nav--next {
  right: 10px;
}

.video-slider__dots {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.video-slider__dot {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 1px solid rgba(var(--white-rgb), 0.65);
  background: rgba(var(--white-rgb), 0.7);
  cursor: pointer;
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.22),
    0 0 0 2px rgba(var(--shadow-rgb), 0.16);
}

.video-slider__dot.is-active {
  background: var(--cyan-bright);
  border-color: rgba(var(--white-rgb), 0.95);
  box-shadow:
    0 0 0 4px rgba(var(--teal-deep-rgb), 0.24),
    0 4px 14px rgba(var(--cyan-rgb), 0.42);
}

@media (hover: hover) and (pointer: fine) {
  .video-slider__nav {
    display: inline-flex;
  }
}

.video-panel__media {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.video-panel__placeholder {
  height: 100%;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  padding: 24px 20px;
  box-sizing: border-box;
  background: var(--teal-darker);
}

.video-panel__play {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--naval-rgb), 0.08);
  border: 2px solid rgba(var(--naval-rgb), 0.28);
  color: var(--naval);
  font-size: 1.1rem;
  line-height: 1;
  padding-left: 4px;
}

.video-panel__ph-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--naval);
}

.video-panel__ph-text {
  margin: 0;
  max-width: 22em;
  font-size: 0.86rem;
  line-height: 1.45;
  font-weight: 600;
  color: rgba(var(--naval-rgb), 0.62);
}

.video-panel__card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  text-align: center;
}

.video-panel__card > p:not(.video-panel__cta) {
  max-width: 36em;
  margin-inline: auto;
}

.video-panel__cta {
  margin-top: auto;
  padding-top: 18px;
  margin-bottom: 0;
  text-align: center;
}

.video-panel__cta .btn-cta {
  display: inline-flex;
  justify-content: center;
}

@media (max-width: 768px) {
  .video-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .video-panel__cta .btn-cta {
    width: 100%;
    max-width: 100%;
    justify-content: center;
    box-sizing: border-box;
  }
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

@media (max-width: 640px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--white);
  border-radius: var(--card-radius);
  padding: clamp(22px, 3.2vw, 28px) clamp(16px, 2.6vw, 20px) clamp(20px, 2.8vw, 24px);
  box-shadow:
    var(--card-shadow);
  border: 1px solid var(--card-border-color);
}

.card h3 {
  margin: 0 0 14px;
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--teal-deep);
}

.card p {
  margin: 0;
  font-size: 0.98rem;
  color: var(--naval);
}

.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.check-list li {
  padding-left: 32px;
  position: relative;
  font-size: 0.98rem;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: var(--teal-deep);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E")
    center / 14px no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E")
    center / 14px no-repeat;
}

/* Why parents — infographic + bubbles (один экран, без чипов) */
.why-section {
  position: relative;
  overflow: hidden;
}

.why-backdrop {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.why-backdrop__arcs {
  position: absolute;
  inset: -5% -8%;
  width: 116%;
  height: 110%;
  opacity: 0.95;
}

.why-backdrop__arc {
  animation: why-arc-drift 28s ease-in-out infinite;
}

.why-backdrop__arc--2 {
  animation-duration: 36s;
  animation-delay: -8s;
}

.why-backdrop__arc--3 {
  animation-duration: 32s;
  animation-delay: -14s;
}

/* Force inverse state for price branch switcher */
#prices .branch-pill {
  background: rgba(var(--white-rgb), 0.65) !important;
  color: var(--naval) !important;
  border-color: rgba(var(--naval-rgb), 0.22) !important;
}

#prices .branch-pill.is-active {
  background: var(--teal-deep) !important;
  color: var(--white) !important;
  border-color: var(--teal-deep) !important;
}

/* White supporting copy in Prices dark block */
#prices .prices-legal,
#prices .prices-legal--note,
#prices .price-sub,
#prices .prices-offer-disclaimer,
#prices .prices-offer-disclaimer a {
  color: var(--naval) !important;
}

/* White supporting copy in Discounts dark block */
#discounts .discounts-disclaimer,
#discounts .discounts-disclaimer strong {
  color: rgba(var(--naval-rgb), 0.7);
}

/* Branches back to regular light-blue section */
#branches.section.section--pale {
  background: var(--cyan-pale);
}

@keyframes why-arc-drift {
  0%,
  100% {
    transform: translate(0, 0);
    opacity: 0.85;
  }
  50% {
    transform: translate(12px, -8px);
    opacity: 1;
  }
}



.why-bubble {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(var(--white-rgb), 0.55),
    rgba(var(--white-rgb), 0.08) 45%,
    rgba(var(--white-rgb), 0.02) 70%
  );
  box-shadow:
    0 0 0 1px rgba(var(--white-rgb), 0.12) inset,
    0 4px 20px rgba(0, 0, 0, 0.08);
  animation: why-bubble-float 9s ease-in-out infinite;
  opacity: 0.55;
}

.why-bubble--1 {
  width: 14px;
  height: 14px;
  left: 6%;
  top: 18%;
  animation-duration: 8s;
  animation-delay: -1s;
}
.why-bubble--2 {
  width: 22px;
  height: 22px;
  left: 12%;
  top: 62%;
  animation-duration: 11s;
  animation-delay: -3s;
}
.why-bubble--3 {
  width: 10px;
  height: 10px;
  left: 22%;
  top: 38%;
  animation-duration: 7s;
  animation-delay: -2s;
}
.why-bubble--4 {
  width: 18px;
  height: 18px;
  left: 78%;
  top: 22%;
  animation-duration: 10s;
  animation-delay: -4s;
}
.why-bubble--5 {
  width: 12px;
  height: 12px;
  left: 88%;
  top: 48%;
  animation-duration: 9s;
  animation-delay: -0.5s;
}
.why-bubble--6 {
  width: 26px;
  height: 26px;
  left: 92%;
  top: 72%;
  animation-duration: 12s;
  animation-delay: -6s;
}
.why-bubble--7 {
  width: 9px;
  height: 9px;
  left: 42%;
  top: 12%;
  animation-duration: 6.5s;
  animation-delay: -2.5s;
}
.why-bubble--8 {
  width: 16px;
  height: 16px;
  left: 52%;
  top: 78%;
  animation-duration: 8.5s;
  animation-delay: -5s;
}
.why-bubble--9 {
  width: 20px;
  height: 20px;
  left: 34%;
  top: 52%;
  animation-duration: 10s;
  animation-delay: -7s;
}
.why-bubble--10 {
  width: 11px;
  height: 11px;
  left: 64%;
  top: 34%;
  animation-duration: 7.5s;
  animation-delay: -1.2s;
}
.why-bubble--11 {
  width: 15px;
  height: 15px;
  left: 4%;
  top: 82%;
  animation-duration: 9.5s;
  animation-delay: -8s;
}
.why-bubble--12 {
  width: 13px;
  height: 13px;
  left: 72%;
  top: 58%;
  animation-duration: 8s;
  animation-delay: -3.5s;
}
.why-bubble--13 {
  width: 24px;
  height: 24px;
  left: 48%;
  top: 8%;
  animation-duration: 13s;
  animation-delay: -9s;
}
.why-bubble--14 {
  width: 8px;
  height: 8px;
  left: 58%;
  top: 64%;
  animation-duration: 6s;
  animation-delay: -4.2s;
}
.why-bubble--15 {
  width: 17px;
  height: 17px;
  left: 28%;
  top: 72%;
  animation-duration: 9s;
  animation-delay: -6.5s;
}
.why-bubble--16 {
  width: 19px;
  height: 19px;
  left: 96%;
  top: 28%;
  animation-duration: 10.5s;
  animation-delay: -2.8s;
}
.why-bubble--17 {
  width: 12px;
  height: 12px;
  left: 18%;
  top: 28%;
  animation-duration: 8.2s;
  animation-delay: -5.5s;
}
.why-bubble--18 {
  width: 10px;
  height: 10px;
  left: 38%;
  top: 88%;
  animation-duration: 7.2s;
  animation-delay: -1.8s;
}

@keyframes why-bubble-float {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.42;
  }
  33% {
    transform: translate(6px, -16px) scale(1.06);
    opacity: 0.65;
  }
  66% {
    transform: translate(-8px, 8px) scale(0.96);
    opacity: 0.52;
  }
}

.why-section__inner {
  position: relative;
  z-index: 1;
}

.why-header {
  text-align: center;
  margin-bottom: clamp(10px, 2vh, 18px);
}

.why-header .section__title {
  margin-left: auto;
  margin-right: auto;
}

.why-header__lead {
  max-width: 38rem;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 0;
}

.why-header .section__lead {
  margin-bottom: 0;
}

.why-section__cta {
  margin-top: clamp(40px, 5vh, 56px);
  text-align: center;
}

.why-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(10px, 1.6vw, 16px);
}

@media (max-width: 900px) {
  .why-cards {
    grid-template-columns: 1fr;
  }
}

.why-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;

  background: var(--white);
  border-radius: var(--card-radius);
  padding: 22px 20px;

  border: 1px solid var(--card-border-color);

  box-shadow:
    var(--card-shadow);
}

.why-card__figure {
  grid-column: 1;
  grid-row: 1 / -1;
  align-self: center;
  width: 48px;
  height: 48px;
  margin-bottom: 0;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--naval-rgb), 0.06);
  border: 1px dashed rgba(var(--naval-rgb), 0.25);
  color: var(--naval);
}

.why-card__svg {
  width: 32px;
  height: 32px;
}

.why-card h3 {
  grid-column: 2;
  grid-row: 1;
  margin: 0 0 8px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--teal-deep);
  line-height: 1.25;
}

.why-card__intro {
  grid-column: 2;
  grid-row: 2;
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.45;
  color: rgba(var(--naval-rgb), 0.78);
}

/* Блок цен #prices: без внутреннего скролла и фиксированной высоты — компактная десктоп-вёрстка ниже */
#prices.section {
  min-height: 0;
}

@media (max-width: 720px) {
  #prices.section > .container {
    flex: 1 1 auto;
    justify-content: flex-start;
    overflow-x: hidden;
    overflow-y: visible;
    padding-top: clamp(1rem, 4vw, 1.85rem);
    padding-bottom: clamp(1rem, 4vw, 1.65rem);
  }

  #prices .price-card {
    padding: 22px 20px 20px;
  }

  #prices .abo-card__benefit-pill {
    right: 8px;
    font-size: 0.58rem;
    padding: 4px 9px 3px;
  }
}

.prices-header {
  text-align: center;
}

#prices .prices-header .section__title {
  margin-bottom: clamp(22px, 3.5vw, 34px);
}

.prices-header__lead {
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 28px;
  color: var(--slate);
}

.price-toolbar {
  margin-bottom: 32px;
}

.price-toolbar--prices {
  justify-content: center;
  margin-bottom: 6px;
  position: relative;
  z-index: 4;
}

.prices-legal {
  margin: 0 auto 8px;
  max-width: 38rem;
  padding: 0 6px;
  text-align: center;
  font-size: 0.76rem;
  line-height: 1.35;
  color: var(--slate);
}

.prices-legal--note {
  margin-top: 6px;
  margin-bottom: 10px;
  max-width: 44rem;
  font-size: 0.98rem;
  line-height: 1.35;
  color: rgba(var(--naval-rgb), 0.95);
}

.tariff-filter__btn {
  border: 1px solid rgba(var(--naval-rgb), 0.22);
  background: rgba(var(--white-rgb), 0.65);
  color: var(--naval);
  font: inherit;
  font-weight: 800;
  font-size: 0.82rem;
  padding: 7px 12px;
  border-radius: 999px;
  cursor: pointer;
}

.tariff-filter__btn.is-active {
  background: var(--teal-deep);
  color: var(--white);
  border-color: var(--teal-deep);
}

.tariff-filter__btn.is-active[data-tariff-filter-btn="loyal"] {
  background: rgba(var(--terracotta-rgb), 0.92) !important; /* красный оттенок */
  border-color: rgba(var(--terracotta-rgb), 0.7) !important;
  color: var(--white) !important;
}

.tariff-filter__btn.is-active[data-tariff-filter-btn="typovoy"] {
  background: rgba(var(--cyan-rgb), 0.96) !important; /* ярко-голубая плашка */
  border-color: rgba(var(--cyan-rgb), 0.95) !important;
  color: var(--naval) !important;
  box-shadow: 0 10px 26px rgba(var(--cyan-rgb), 0.25);
}

/* Десктоп: кнопка появляется при наведении, на мобилке — всегда видна */
@media (hover: hover) and (pointer: fine) {

  .tariff-card__meta {
    position: absolute;
    left: 10px;
    bottom: 10px;
    margin: 0;
  }
}

.tariff-card__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.tariff-card__title {
  font-weight: 900;
  color: var(--naval);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}


.tariff-card__meta {
  margin: 2px 0 0;
}

.tariff-card__price {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--naval);
  letter-spacing: -0.01em;
}

.tariff-card__per {
  margin: -2px 0 0;
  font-size: 0.86rem;
  color: rgba(var(--naval-rgb), 0.88);
  font-weight: 800;
  line-height: 1.25;
}

/* Плашка «экономия %» как на макете */
.tariff-card__badge {
  position: absolute;
  top: 10px;
  right: 10px;
  transform: rotate(10deg);
  transform-origin: right top;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  padding: 8px 10px 7px;
  border-radius: 999px;
  background: rgba(var(--white-rgb), 0.95);
  border: 1px solid rgba(var(--shadow-rgb), 0.08);
  box-shadow: 0 10px 20px rgba(var(--shadow-rgb), 0.14);
  line-height: 1;
  z-index: 2;
  pointer-events: none;
}

.tariff-card__badge-kicker {
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.03em;
  color: rgba(var(--naval-rgb), 0.95);
  text-transform: uppercase;
}

.tariff-card__badge-value {
  font-size: 1.2rem;
  font-weight: 1000;
  letter-spacing: -0.02em;
  color: rgba(var(--naval-rgb), 1);
}

@media (max-width: 560px) {
  .tariff-card__badge {
    top: 8px;
    right: 8px;
    padding: 7px 9px 6px;
    transform: rotate(9deg);
  }

  .tariff-card__badge-value {
    font-size: 1.12rem;
  }
}

.tariff-card__term-num {
  font-size: 1.05rem;
  font-weight: 1000;
  letter-spacing: -0.02em;
}

.tariff-card__pill {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 6px 10px 6px;
  border-radius: 999px;
  font-weight: 800;
  color: rgba(var(--naval-rgb), 0.95);
  background: rgba(var(--white-rgb), 0.85);
  border: 1px solid rgba(var(--cyan-rgb), 0.28);
}

/* Карточка 24 занятий — красный бейдж «Выгода» (как в макете), сумма от текущих тарифов */
#prices .abo-card--benefit {
  padding-top: 16px;
  overflow: visible;
}

#prices .abo-card__benefit-pill {
  position: absolute;
  top: -8px;
  right: 10px;
  z-index: 2;
  margin: 0;
  padding: 5px 11px 4px;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.2;
  color: var(--white);
  background: var(--red-mid);
  border: 1px solid rgba(var(--terracotta-rgb), 0.55);
  box-shadow:
    0 2px 6px rgba(var(--terracotta-rgb), 0.35),
    0 1px 0 rgba(var(--white-rgb), 0.2) inset;
  white-space: nowrap;
}

@media (min-width: 721px) {
  #prices.section > .container {
    justify-content: flex-start;
    overflow: visible;
    padding-top: 0;
    padding-bottom: clamp(0.35rem, 0.85vh, 0.55rem);
  }

  #prices .prices-header {
    margin: 0 auto;
    padding: 0;
  }

  #prices .prices-header .section__title {
    margin: 0 0 16px;
  }

  /* Сбрасываем margin .section__lead (0 0 36px), плотный низ; auto по горизонтали — блок по центру */
  #prices .prices-header .section__lead.prices-header__lead,
  #prices .prices-header__lead {
    margin: 0 auto 20px;
    text-align: center;
    font-size: clamp(0.8rem, 1.6vw, 0.9rem);
    line-height: 1.28;
  }

  #prices .price-toolbar--prices {
    margin-bottom: 3px;
    gap: 6px;
  }

  #prices .branch-pill {
    padding: 6px 14px;
    font-size: 0.9rem;
  }

  #prices .abo-card__sessions {
    font-size: 0.8rem;
  }

  #prices .abo-card__num {
    font-size: 1.1rem;
  }

  #prices .abo-card__total {
    font-size: 1.1rem;
    margin: 2px 0 0;
  }

  #prices .abo-card__per {
    font-size: 0.72rem;
    line-height: 1.25;
  }

  #prices .abo-card__validity {
    margin: 2px 0 0;
    font-size: 0.66rem;
  }

  #prices .abo-card__compare {
    margin: 2px 0 0;
    font-size: 0.64rem;
  }

  #prices .abo-card__save {
    padding: 2px 6px;
    font-size: 0.62rem;
  }

  #prices .abo-card--benefit {
    padding-top: 12px;
  }

  /* Плашки блока «Цены» немного компактнее, чтобы весь блок помещался на экране; сетки на всю ширину контейнера, карточки пропорционально меньше */
  #prices .price-single-grid {
    gap: 20px !important;
    margin-bottom: 28px !important;
  }

  #prices .price-group-title {
    margin-top: 32px !important;
    margin-bottom: 16px !important;
  }

  #prices .price-grid {
    gap: 18px !important;
  }

  #prices .price-card {
    padding: 18px 16px !important;
  }

  #prices .price-card--intro .price-card__amount {
    font-size: clamp(1.35rem, 2.1vw, 1.65rem) !important;
  }
#prices .price-card--intro .price-card__amount {
  justify-content: center;
  text-align: center;
}
  #prices .price-card--intro {
    gap: 14px !important;
  }

  #prices .price-card--abo .price-card__amount {
    font-size: clamp(1.6rem, 2.5vw, 1.95rem) !important;
    margin: 8px 0 2px !important;
  }

 #prices .price-card--intro .price-card__label {
    font-size: clamp(1.35rem, 2.2vw, 1.6rem) !important;
    font-weight: 800 !important;
    color: var(--tiffany-deep) !important;
    line-height: 1.15;
}

  #prices .price-card__amount-note,
  #prices .price-card__term {
    font-size: 0.85rem !important;
  }

  #prices .price-card__photo {
    max-width: none !important;
  }

  #prices .btn-cta {
    padding: 12px 20px !important;
    font-size: 0.9rem !important;
  }

  #prices .abo-card__benefit-pill {
    top: -6px;
    right: 8px;
    padding: 4px 9px 3px;
    font-size: 0.6rem;
  }
}

/* Price tabs */
.price-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 32px;
}

.branch-pill {
  padding: 11px 22px;
  border-radius: var(--radius-pill);
  border: 1.5px solid rgba(var(--teal-deep-rgb), 0.45);
  background: var(--white);
  font: inherit;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  color: var(--teal-deep);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.branch-pill.is-active {
  background: var(--teal-deep);
  color: var(--white);
  border-color: var(--teal-deep);
  box-shadow: 0 6px 16px rgba(var(--teal-deep-rgb), 0.28);
}

.price-single-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  width: 100%;
  margin: 0 0 56px;
}

.price-card--wide {
  min-height: 0;
}

.price-group-title {
  text-align: center;
  margin: 0 0 10px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(1.5rem, 2.6vw, 1.9rem);
  color: var(--naval);
}

.price-group-lead {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 36px;
  font-size: clamp(0.9rem, 1.6vw, 1rem);
  color: var(--slate);
  line-height: 1.5;
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
  width: 100%;
  margin: 0;
}

@media (max-width: 720px) {
  .price-single-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto 28px;
  }

  .price-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }
}

@media (max-width: 520px) {
  .price-grid {
    grid-template-columns: 1fr;
  }

  .price-card {
    padding: 22px 18px;
  }

  .price-card__amount {
    font-size: clamp(1.45rem, 7vw, 1.65rem);
  }
}

.price-card {
  background: var(--white);
  border-radius: calc(var(--card-radius) + 4px);
  padding: 32px 28px;
  border: 1px solid rgba(var(--naval-rgb), 0.08);
  box-shadow:
    0 2px 6px rgba(var(--shadow-rgb), 0.04),
    0 18px 40px rgba(var(--shadow-rgb), 0.07);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.price-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 4px 10px rgba(var(--shadow-rgb), 0.06),
    0 24px 48px rgba(var(--shadow-rgb), 0.12);
}

.price-card .btn-cta {
  margin-top: auto;
  align-self: flex-start;
}

.price-card__label {
  font-weight: 700;
  color: var(--naval);
  font-size: 1.05rem;
  text-transform: none;
  letter-spacing: 0;
}

.price-card__amount {
  font-size: 2rem;
  font-weight: 800;
  color: var(--naval);
  letter-spacing: -0.01em;
  margin: 12px 0 6px;
}

.price-card__note {
  font-size: 0.92rem;
  color: var(--slate);
  line-height: 1.5;
  margin-bottom: 22px;
}

.price-card .btn-cta {
  width: 100%;
  padding: 13px;
  font-size: 0.95rem;
  border-radius: var(--radius-pill);
}

/* Верхние карточки первого посещения: текст + фото в одной композиции */
.price-card--intro {
  gap: 20px;
}

.price-card--intro .price-card__amount {
  font-size: clamp(1.9rem, 3.2vw, 2.3rem);
}

.price-card__amount--trial {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.price-card__old-price {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  font-weight: 600;
  color: var(--slate);
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  opacity: 0.75;
}

.price-card__free {
  color: var(--terracotta-dark);
}

.price-card__intro-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.price-card__photo {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: calc(var(--card-radius) - 10px);
  overflow: hidden;
  order: 2;
  object-fit: cover;
}

@media (min-width: 561px) {
  .price-card--intro {
    flex-direction: row;
    align-items: stretch;
  }

  .price-card__intro-body {
    justify-content: center;
  }

  .price-card__photo {
    width: 33.333%;
    aspect-ratio: 1 / 1;
    flex-shrink: 0;
    align-self: stretch;
    height: auto;
    order: 2;
  }
}

/* Карточки абонементов: центрированная иерархия — цена за занятие важнее полной суммы */
.price-card--abo {
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.price-card--abo::after {
  content: "Летняя цена";
  position: absolute;
  top: 18px;
  right: -34px;
  width: 140px;
  padding: 5px 0;
  background: var(--terracotta);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-align: center;
  text-transform: uppercase;
  transform: rotate(45deg);
  box-shadow: 0 3px 8px rgba(var(--shadow-rgb), 0.18);
  z-index: 3;
}

.price-card--abo .price-card__label {
  font-size: 1.05rem;
  color: var(--naval);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 700;
}

.price-card--abo .price-card__amount {
  font-size: clamp(2.3rem, 4vw, 2.75rem);
  margin: 14px 0 2px;
}

.price-card__amount-note {
  font-size: 0.88rem;
  color: var(--slate);
  margin-bottom: 18px;
}

.price-card__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.price-card__badge--benefit {
  background: #03988c;
  color: #ffffff;
  margin: 8px 0 20px;
  padding: 9px 18px;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.15;
  border-radius: 999px;
  box-shadow: 0 5px 14px rgba(22, 131, 75, 0.22);
}

.price-card__badge--popular {
  background: var(--terracotta);
  color: var(--white);
  box-shadow: 0 6px 16px rgba(var(--terracotta-rgb), 0.32);
}

.price-card__badge--tag {
  background: rgba(var(--terracotta-rgb), 0.14);
  color: var(--terracotta-dark);
}

.price-card__badge-slot {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  height: 30px;
  margin-bottom: 4px;
}

.price-card__tagline {
  margin: -4px 0 0;
  font-size: 0.82rem;
  color: var(--slate);
  min-height: 1.2em;
}

.price-card__total {
  display: inline-flex;
  align-self: center;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(var(--terracotta-rgb), 0.08);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--terracotta-dark);
  margin-bottom: 8px;
}

.price-card__term {
  font-size: 0.85rem;
  color: var(--slate);
  margin-bottom: 22px;
}

.price-card--abo .btn-cta {
  align-self: stretch;
  border-radius: var(--radius-pill);
  padding: 13px;
}

.price-card--featured {
  border-color: rgba(var(--terracotta-rgb), 0.5);
  box-shadow:
    0 4px 10px rgba(var(--shadow-rgb), 0.06),
    0 26px 52px rgba(var(--shadow-rgb), 0.14),
    0 0 0 2px rgba(var(--terracotta-rgb), 0.22) inset;
}

#prices .handwritten-text {
  color: var(--white) !important;
}

.prices-more-note.handwritten-text {
  margin: 40px auto 0 !important;
  text-align: center;
}

.prices-more-note {
  margin: 40px auto 0;
  max-width: 40rem;
  text-align: center;
  font-family: "Caveat", cursive;
  font-weight: 700;
  font-size: 2rem;
  line-height: 1.25;
  color: var(--white);
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

@media (max-width: 720px) {
  .abo-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

.abo-card--best {
  border-color: rgba(var(--naval-rgb), 0.28);
  box-shadow:
    inset 3px 0 0 0 var(--teal),
    0 5px 20px rgba(var(--cyan-rgb), 0.12);
}

.abo-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 1.4rem;
}

.abo-card__sessions {
  font-weight: 800;
  font-size: 0.88rem;
  color: var(--naval);
  line-height: 1.2;
}

.abo-card__num {
  font-size: 1.28rem;
  font-weight: 800;
  color: var(--teal-deep);
  margin-right: 3px;
}

.abo-card__save {
  flex-shrink: 0;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--cta-deep);
  background: rgba(var(--naval-rgb), 0.12);
  border: 1px solid rgba(var(--naval-rgb), 0.28);
}

.abo-card__total {
  margin: 4px 0 0;
  font-size: 1.28rem;
  font-weight: 800;
  color: var(--naval);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.abo-card__per {
  margin: 0;
  font-size: 0.78rem;
  color: var(--slate);
  line-height: 1.3;
}

.abo-card__validity {
  margin: 4px 0 0;
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(var(--naval-rgb), 0.85);
  line-height: 1.35;
}

.abo-card__compare {
  margin: 3px 0 0;
  font-size: 0.7rem;
  color: rgba(var(--naval-rgb), 0.72);
  line-height: 1.35;
}

.abo-card__was {
  text-decoration: line-through;
  text-decoration-color: rgba(var(--naval-rgb), 0.4);
  margin-left: 3px;
}

/* Forms */
.lead-form {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 24px 26px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(var(--naval-rgb), 0.25);
}

.lead-form h2,
.lead-form h3 {
  margin: 0 0 8px;
  font-size: 1.35rem;
  color: var(--naval);
}

.lead-form > p {
  margin: 0 0 18px;
  font-size: 0.95rem;
  color: var(--slate);
}

/* «Задать свой вопрос»: карточка ~¾ высоты окна, textarea забирает свободное место */
.lead-form--question {
  display: flex;
  flex-direction: column;
  margin-top: clamp(20px, 3vw, 32px);
  padding: clamp(16px, 2.4vh, 22px) clamp(22px, 3.5vw, 32px);
  box-sizing: border-box;
}

.lead-form__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  border: none;
  background: transparent;
  padding: 0;
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 2.5vw, 1.45rem);
  font-weight: 700;
  color: var(--teal-deep);
  cursor: pointer;
  text-align: left;
}

.lead-form__toggle-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1.5px solid rgba(var(--teal-deep-rgb), 0.35);
  color: var(--tiffany-deep);
  font-size: 1.3rem;
  line-height: 1;
  transition: transform 0.25s ease;
}

.lead-form__toggle[aria-expanded="true"] .lead-form__toggle-icon {
  transform: rotate(45deg);
}

.lead-form__collapsible {
  margin-top: clamp(14px, 2vh, 20px);
}

.lead-form__collapsible > p {
  flex-shrink: 0;
  margin-bottom: clamp(14px, 2vh, 20px);
  font-size: clamp(0.92rem, 2vw, 1rem);
}

.lead-form--question .form-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.lead-form--question .form-body form {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.lead-form--question .form-row {
  margin-bottom: clamp(14px, 2.2vh, 22px);
}

.lead-form--question .form-row--question-text {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  margin-bottom: clamp(14px, 2vh, 20px);
}

.lead-form--question .form-row--question-text textarea {
  flex: 1 1 auto;
  min-height: clamp(120px, 20vh, 220px);
  resize: vertical;
}

.lead-form--question .form-row--consent-checkbox {
  flex-shrink: 0;
  margin-bottom: clamp(14px, 2vh, 20px);
}

.lead-form--question .lead-form__submit {
  flex-shrink: 0;
}

/* Карточка заявки в блоке #lead */
.lead-form--hero {
  position: relative;
  padding: 0;
  overflow: hidden;
  border: none;
  border-radius: clamp(16px, 3vw, 22px);
  box-shadow:
    0 12px 36px rgba(var(--shadow-rgb), 0.09),
    0 0 0 1px rgba(var(--naval-rgb), 0.16);
}

.lead-form--hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: var(--cta);
  z-index: 1;
}

.lead-form__header {
  padding: clamp(22px, 4vw, 30px) clamp(22px, 4vw, 30px) 20px;
  padding-top: clamp(28px, 5vw, 34px);
  border-bottom: 1px solid rgba(var(--shadow-rgb), 0.07);
  background: var(--white);
}

.lead-form--hero .lead-form__header {
  padding: 14px 18px 12px;
  padding-top: 20px;
}

.lead-form__header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 14px;
}

.lead-form--hero .lead-form__header-row {
  align-items: flex-start;
}

.lead-form__title {
  margin: 0 0 8px;
  font-size: clamp(1.2rem, 2.8vw, 1.45rem);
  font-weight: 700;
  color: var(--teal-deep);
}

.lead-form--hero .lead-form__title {
  margin: 0;
  font-size: clamp(1.1rem, 2.4vw, 1.28rem);
}

.lead-form__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.lead-form--hero .lead-form__meta {
  gap: 6px;
  flex-shrink: 0;
}

.lead-form__badge {
  display: inline-flex;
  align-items: center;
  padding: 7px 13px;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--teal-deep);
  background: rgba(var(--cyan-rgb), 0.14);
  border-radius: var(--radius-pill);
  border: 1px solid rgba(var(--cyan-rgb), 0.22);
}

.lead-form--hero .lead-form__badge {
  padding: 5px 10px;
  font-size: 0.72rem;
}

.lead-form__badge--muted {
  font-weight: 700;
  color: var(--slate);
  background: rgba(var(--shadow-rgb), 0.05);
  border-color: rgba(var(--shadow-rgb), 0.08);
}

.lead-form--hero .form-body {
  padding: 14px 18px 16px;
}

.lead-form__fields {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.lead-form--hero .lead-form__fields {
  gap: 12px;
}

.lead-form__fields .form-row {
  margin-bottom: 0;
}

.lead-form__actions {
  margin-top: 22px;
}

.lead-form--hero .lead-form__actions {
  margin-top: 14px;
}

.lead-form--hero .lead-form__trust {
  margin: 10px 0 0;
  padding: 0;
  border: none;
  font-size: 0.72rem;
  line-height: 1.35;
  color: rgba(var(--naval-rgb), 0.78);
  text-align: center;
}

.lead-form .btn-cta[type="submit"],
.lead-form__submit {
  width: 100%;
  padding: 16px 22px;
  font-size: 1.05rem;
  border-radius: 16px;
  box-sizing: border-box;
}

.lead-form--hero .lead-form__submit {
  padding: 13px 18px;
  font-size: 0.98rem;
  border-radius: 14px;
}

.form-row {
  margin-bottom: 14px;
}

.form-row label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--naval);
  margin-bottom: 6px;
}

.lead-form--hero .form-row label {
  font-size: 0.82rem;
  margin-bottom: 5px;
  color: var(--teal-deep);
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 12px 14px;
  border: 2px solid rgba(var(--shadow-rgb), 0.12);
  border-radius: 12px;
  font: inherit;
  background: var(--white);
  box-sizing: border-box;
}

.lead-form--hero .form-row input,
.lead-form--hero .form-row select {
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.95rem;
  border-color: rgba(var(--shadow-rgb), 0.1);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.lead-form--hero .form-row select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23295889' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
  cursor: pointer;
}

.lead-form--hero .form-row input::placeholder {
  color: rgba(var(--naval-rgb), 0.45);
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--cyan);
}

.lead-form--hero .form-row input:focus,
.lead-form--hero .form-row select:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(var(--cyan-rgb), 0.2);
}

.form-row--consent-checkbox {
  margin-bottom: 0;
}

.form-consent-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.form-consent-checkbox input[type="checkbox"] {
  width: auto;
  min-width: 1.1rem;
  min-height: 1.1rem;
  margin: 0.2em 0 0;
  flex-shrink: 0;
  cursor: pointer;
  accent-color: var(--teal-deep);
}

.form-consent-checkbox label {
  display: block;
  margin: 0;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--slate);
  cursor: pointer;
}

.form-consent-checkbox label a {
  color: var(--teal-deep);
  font-weight: 800;
}

.lead-form--hero .form-consent-checkbox label {
  font-size: 0.72rem;
}

.form-consent {
  font-size: 0.78rem;
  color: var(--slate);
  margin-top: 12px;
  line-height: 1.45;
}

.form-consent a {
  color: var(--teal-deep);
  font-weight: 700;
}

.lead-form--hero .form-consent {
  margin-top: 12px;
  padding: 10px 12px;
  background: rgba(var(--shadow-rgb), 0.04);
  border-radius: 12px;
  border: 1px solid rgba(var(--shadow-rgb), 0.07);
  font-size: 0.72rem;
  line-height: 1.45;
}

.form-success {
  display: none;
  padding: 18px 20px;
  background: var(--milk);
  border-radius: var(--radius-card);
  color: var(--tiffany-deep);
  font-weight: 600;
  margin: clamp(22px, 4vw, 28px) clamp(22px, 4vw, 30px) clamp(24px, 4vw, 30px);
  border: 1px solid rgba(var(--teal-deep-rgb), 0.3);
  line-height: 1.5;
}

.lead-form--hero .form-success {
  margin: 14px 18px 16px;
  padding: 14px 16px;
  font-size: 0.88rem;
}

.form-success strong {
  display: block;
  margin-bottom: 8px;
  font-weight: 800;
  font-size: 1.05rem;
}

.form-success:focus {
  outline: none;
}

.form-success:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.lead-form:not(.lead-form--hero) .form-success {
  margin: 12px 0 0;
}

.lead-form.is-sent .form-body {
  display: none;
}

.lead-form.is-sent .form-success {
  display: block;
}

/* Branches */
.branch-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  width: 100%;
}

.branch-grid--single {
  grid-template-columns: 1fr;
  width: 100%;
}


.branch-card--split {
  display: grid;
  grid-template-columns: minmax(0, 42%) minmax(0, 1fr);
  gap: 24px;
  align-items: stretch;
  width: 100%;
}
.branch-card {
  background: var(--milk);
  border-radius: var(--card-radius);
  padding: 18px;
  border: 1px solid var(--card-border-color);
  box-shadow: var(--card-shadow);
}

.branch-card--split .branch-card__photo {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 320px;
  object-fit: contain;
  justify-self: center;
  align-self: center;
  border-radius: calc(var(--card-radius) - 6px);
}

.branch-card--split .branch-card__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
  padding: 8px 0;
}

.branch-card h3 {
  margin: 0 0 14px;
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--teal-deep);
}

#first .card h3 {
  font-family: "Caveat", cursive;
  font-weight: 700;
  font-size: 2rem;
  color: var(--tiffany-deep);
}

.branch-card__addr {
  margin: 0 0 12px;
  color: var(--naval);
}

.branch-card__meta {
  font-size: 0.95rem;
  margin-bottom: 16px;
  color: var(--ink-soft);
}

.branch-card__phone {
  margin: 0 0 16px;
}

.branch-card__phone a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.branch-card__phone a svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  fill: currentColor;
}

.branch-card__links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 100%;
  white-space: nowrap;
  padding: 9px 8px;
  border-radius: 10px;
  background: var(--milk);
  color: var(--tiffany-deep);
  border: 1.5px solid var(--tiffany-deep);
  font-weight: 700;
  font-size: 0.78rem;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.link-btn svg {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  fill: currentColor;
}

.link-btn:hover {
  background: var(--tiffany-deep);
  color: var(--white);
  text-decoration: none;
  transform: translateY(-1px);
}

@media (max-width: 700px) {
  .branch-grid,
  .branch-grid--single {
    grid-template-columns: 1fr;
  }

  .branch-card--split {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .branch-card--split .branch-card__photo {
    min-height: 0;
    height: clamp(180px, 58vw, 260px);
  }

  .branch-card__links {
    grid-template-columns: 1fr;
  }
}
/* Рукописный акцент для заголовков карточек на молочных секциях — фирменная деталь бренда */
#first .card h3 {
  font-family: "Caveat", cursive;
  font-weight: 700;
  font-size: 2rem;
  color: var(--tiffany-deep);
}

.branch-card__addr {
  margin: 0 0 12px;
  color: var(--naval);
}

.branch-card__meta {
  font-size: 0.95rem;
  margin-bottom: 16px;
  color: var(--ink-soft);
}

.branch-card__links {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 6px;
}

.link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex: 1 1 0;
  white-space: nowrap;
  padding: 9px 8px;
  border-radius: 10px;
  background: var(--milk);
  color: var(--tiffany-deep);
  border: 1.5px solid var(--tiffany-deep);
  font-weight: 700;
  font-size: 0.78rem;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.link-btn svg {
  width: 14px;
  height: 14px;
  flex: none;
  fill: currentColor;
}

.link-btn:hover {
  transform: translateY(-1px);
}

.link-btn:hover {
  background: var(--tiffany-deep);
  color: var(--white);
  text-decoration: none;
}

/* Галерея под филиалами: masonry-колонки — разная высота кадров естественно укладывается */
#gallery.branch-gallery {
  scroll-margin-top: calc(max(10px, env(safe-area-inset-top, 0px)) + 76px);
}

.branch-gallery {
  margin-top: clamp(36px, 6vw, 56px);
  padding-top: clamp(28px, 5vw, 44px);
  border-top: 1px solid rgba(var(--cyan-rgb), 0.22);
}

.branch-gallery__title {
  margin: 0 0 10px;
  font-size: clamp(1.2rem, 2.4vw, 1.45rem);
  font-weight: 700;
  text-align: center;
  color: var(--teal-deep);
}

.branch-gallery__lead {
  margin: 0 auto;
  max-width: 36rem;
  text-align: center;
  font-size: clamp(0.88rem, 2vw, 0.96rem);
  line-height: 1.45;
  color: var(--slate);
}

.gallery-masonry {
  margin-top: clamp(18px, 3vw, 26px);
  column-count: 3;
  column-gap: 14px;
}

@media (max-width: 920px) {
  .gallery-masonry {
    column-count: 2;
    column-gap: 12px;
  }
}

@media (max-width: 520px) {
  .gallery-masonry {
    column-count: 1;
  }
}

.gallery-masonry__item {
  margin: 0 0 14px;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(var(--shadow-rgb), 0.04);
  box-shadow: 0 6px 22px rgba(var(--shadow-rgb), 0.07);
  border: 1px solid rgba(var(--cyan-rgb), 0.15);
}

.gallery-masonry__item img {
  width: 100%;
  height: auto;
  display: block;
}

.gallery-masonry__more {
  display: block;
  width: 100%;
  max-width: 320px;
  margin: clamp(16px, 4vw, 22px) auto 0;
  box-sizing: border-box;
}

.gallery-masonry__more[hidden] {
  display: none !important;
}

@media (min-width: 521px) {
  .gallery-masonry__more {
    display: none !important;
  }
}

/* FAQ */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 40px;
}

.faq-item {
  border-bottom: 1px solid rgba(var(--shadow-rgb), 0.1);
  break-inside: avoid;
}

.faq-item button {
  width: 100%;
  text-align: left;
  padding: 20px 36px 20px 0;
  min-height: 48px;
  border: none;
  background: none;
  font-family: var(--font-heading);
  font-size: clamp(1.05rem, 1.3vw, 1.2rem);
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1.35;
  color: var(--naval);
  cursor: pointer;
  position: relative;
}

.faq-item button::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  color: var(--cta);
  transition: transform 0.2s;
}

.faq-item.is-open button {
  color: var(--tiffany-deep);
}

.faq-item.is-open button::after {
  content: "−";
}

.faq-item__panel {
  display: none;
  padding: 0 0 18px;
  color: var(--ink);
  font-size: 0.95rem;
}

.faq-item.is-open .faq-item__panel {
  display: block;
}

.faq-item__panel ul {
  margin: 8px 0 0;
  padding-left: 1.2em;
}

/* Footer */
.site-footer {
  display: flex;
  flex-direction: column;
  background: var(--cyan-pale);
  color: rgba(var(--naval-rgb), 0.82);
  padding: clamp(20px, 3vw, 28px) 0 clamp(28px, 4vw, 40px);
  margin-top: 0;
  font-size: 0.88rem;
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("rosteniya-futer.svg") bottom center / contain no-repeat;
  filter: hue-rotate(135deg) saturate(0.55) brightness(1.55);
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
}

.site-footer > .container {
  padding-bottom: 0;
  position: relative;
  z-index: 1;
}

.site-footer__illustration {
  display: none;
}

.site-footer__illustration-img {
  display: block;
  width: 100%;
  height: auto;
  filter: brightness(1.16) saturate(0.94);
}

/* Offer popup */
.offer-popup[hidden] {
  display: none !important;
}

.offer-popup {
  position: fixed;
  inset: 0;
  z-index: 160;
}

.offer-popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(var(--shadow-rgb), 0.55);
}

.offer-popup__dialog {
  position: relative;
  width: min(900px, calc(100vw - 24px));
  max-height: min(85vh, 860px);
  margin: min(7vh, 56px) auto 0;
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 26px 64px rgba(var(--shadow-rgb), 0.28);
  border: 1px solid rgba(var(--shadow-rgb), 0.12);
  overflow: hidden;
}

.offer-popup__title {
  margin: 0;
  padding: 16px 20px 12px;
  border-bottom: 1px solid rgba(var(--shadow-rgb), 0.1);
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: var(--naval);
}

.offer-popup__content {
  padding: 14px 20px 20px;
  max-height: calc(min(85vh, 860px) - 70px);
  overflow: auto;
  font-size: 0.94rem;
  line-height: 1.45;
  color: var(--naval);
}

.offer-popup__close {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(var(--shadow-rgb), 0.2);
  background: var(--white);
  color: var(--naval);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.offer-popup__actions {
  margin-top: 14px;
}

.site-footer a {
  color: var(--teal-deep);
}

.site-footer__brand {
  font-size: 1rem;
  font-weight: 800;
  color: var(--naval);
  flex-shrink: 0;
}

.site-footer__grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 4px;
}

.site-footer__nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
  font-size: 0.82rem;
}

.site-footer__cta {
  flex-shrink: 0;
  font-weight: 700;
  color: var(--naval);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer__bottom {
  border-top: 1px solid rgba(var(--naval-rgb), 0.1);
  padding-top: 6px;
  font-size: 0.78rem;
  opacity: 0.75;
}

@media (max-width: 640px) {
  .site-footer__grid {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .site-footer__nav {
    gap: 8px 14px;
  }
}

/* Тренеры */
.branch-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 0 0 32px;
}

.branch-tab {
  border: 1.5px solid rgba(var(--teal-deep-rgb), 0.35);
  background: var(--white);
  color: var(--teal-deep);
  font: inherit;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.branch-tab.is-active {
  background: var(--teal-deep);
  color: var(--white);
  border-color: var(--teal-deep);
}

.header-branch-switch {
  display: flex;
  gap: 8px;
  margin: 0 4px;
}

.header-branch-switch .branch-tab {
  padding: 7px 14px;
  font-size: 0.82rem;
}

@media (max-width: 1000px) {
  .header-branch-switch {
    flex-direction: column;
    width: 100%;
    margin: 8px 0 0;
  }

  .header-branch-switch .branch-tab {
    width: 100%;
    text-align: center;
  }
}

.trainers-grid[hidden] {
  display: none;
}

.trainers-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.trainer-card {
  text-align: center;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
  overflow: hidden;
}

.trainer-card:hover,
.trainer-card:focus-visible {
  border-color: rgba(var(--teal-deep-rgb), 1);
  outline: none;
}

.trainer-read-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 18px;
  border: none;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--white);
  background: var(--terracotta);
  cursor: pointer;
  text-decoration: none;
  margin-top: 12px;
  max-width: 100%;
  white-space: nowrap;
  transition: background 0.2s ease, transform 0.15s ease;
}

.trainer-read-more:hover {
  background: var(--terracotta-dark);
  transform: translateY(-1px);
}

.trainer-popup {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(18, 48, 62, 0.55);
}

.trainer-popup.is-open {
  display: flex;
}

.trainer-popup__panel {
  position: relative;
  width: min(560px, 100%);
  max-height: min(88vh, 820px);
  background: var(--white);
  border-radius: calc(var(--card-radius) + 4px);
  box-shadow: var(--card-shadow);
  overflow: hidden;
}

.trainer-popup__scroll {
  max-height: min(88vh, 820px);
  overflow-y: auto;
  padding: 32px 32px 28px;
}

.trainer-popup__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(var(--naval-rgb), 0.06);
  color: var(--naval);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.trainer-popup__close:hover {
  background: rgba(var(--naval-rgb), 0.12);
}

.trainer-popup__photo {
  display: block;
  width: 168px;
  height: 168px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 14px;
  box-shadow: 0 6px 20px rgba(var(--shadow-rgb), 0.18);
}

.trainer-popup__quote {
  text-align: center;
  margin: 0 0 12px;
  padding: 14px 18px;
  background: rgba(var(--tiffany-rgb), 0.1);
  border-radius: 14px;
}

.trainer-popup__quote p {
  margin: 0;
  font-style: italic;
  color: var(--naval);
  font-size: 0.95rem;
  line-height: 1.55;
}

.trainer-popup__quote span {
  display: none;
}

.trainer-popup__kicker {
  text-align: center;
  font-family: var(--font-nav);
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--teal-deep);
  margin: 0 0 4px;
}

.trainer-popup__name {
  text-align: center;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--naval);
  margin: 0 0 4px;
}

.trainer-popup__role {
  text-align: center;
  font-size: 0.92rem;
  color: rgba(var(--naval-rgb), 0.75);
  margin: 0 0 14px;
}

.trainer-popup__tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0 0 18px;
}

.trainer-popup__tags span {
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(var(--teal-deep-rgb), 0.08);
  color: var(--teal-deep);
  font-size: 0.78rem;
  font-weight: 600;
}

.trainer-popup__desc p {
  margin: 0 0 10px;
  color: var(--naval);
  font-size: 0.95rem;
  line-height: 1.6;
}

.trainer-popup__features {
  display: grid;
  gap: 12px;
  margin: 18px 0;
}

.trainer-popup__feature {
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--milk);
}

.trainer-popup__feature h5 {
  margin: 0 0 4px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--naval);
}

.trainer-popup__feature p {
  margin: 0;
  font-size: 0.86rem;
  color: rgba(var(--naval-rgb), 0.75);
  line-height: 1.5;
}

.trainer-popup__block {
  margin: 16px 0;
}

.trainer-popup__block h4 {
  margin: 0 0 10px;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--naval);
}

.trainer-popup__review {
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(var(--tiffany-rgb), 0.08);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.trainer-popup__review strong {
  font-size: 0.9rem;
  color: var(--naval);
}

.trainer-popup__review span {
  font-size: 0.78rem;
  color: rgba(var(--naval-rgb), 0.6);
}

.trainer-popup__review p {
  margin: 6px 0 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--naval);
}

.trainer-popup__cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(var(--naval-rgb), 0.08);
}

.trainer-popup__cta strong {
  display: block;
  font-size: 0.92rem;
  color: var(--naval);
}

.trainer-popup__cta span {
  display: block;
  font-size: 0.8rem;
  color: rgba(var(--naval-rgb), 0.65);
}

.trainer-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(var(--naval-rgb), 0.45);
}

.trainer-modal.is-open {
  display: flex;
}

.trainer-modal__panel {
  position: relative;
  width: min(420px, 100%);
  max-height: 85vh;
  overflow-y: auto;
  background: var(--white);
  border-radius: var(--card-radius);
  border: 1px solid var(--card-border-color);
  box-shadow: 0 24px 60px rgba(var(--shadow-rgb), 0.25);
  padding: clamp(28px, 4vw, 36px) clamp(22px, 3.5vw, 28px);
  text-align: center;
}

.trainer-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: var(--milk);
  color: var(--teal-deep);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}

.trainer-modal__avatar {
  width: 96px;
  height: 96px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--teal-deep);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 700;
}

.trainer-modal__panel h3 {
  margin: 0 0 8px;
  font-size: 1.4rem;
  color: var(--teal-deep);
}

.trainer-modal__panel .trainer-card__meta {
  margin: 0 0 14px;
}

.trainer-card__photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 0;
  object-fit: cover;
  object-position: center top;
  margin: 0;
  display: block;
}

.trainer-card__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  width: 100%;
  padding: 18px 20px 22px;
}

.trainer-card image-slot {
  margin: 0 auto 12px;
  display: block;
}

.trainer-card__avatar {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--tiffany-mid);
  color: var(--teal-deep);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.3rem;
}

.trainer-card__meta {
  margin: 0 0 10px;
  font-size: 0.9rem;
  color: var(--tiffany-deep);
  font-weight: 600;
}

@media (max-width: 900px) {
  .trainers-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .trainers-grid {
    grid-template-columns: 1fr;
  }
}

/* Grid для секции #about (6 карточек) */
.discount-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 900px) {
  .discount-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .discount-grid {
    grid-template-columns: 1fr;
  }
}

/* Promo carousel — раздел «Акции и скидки» */

#discounts.discounts-section.section {
  min-height: 0;
}

#discounts.section > .container {
  padding-top: clamp(1.5rem, 4vw, 2.5rem);
  padding-bottom: clamp(3rem, 5vw, 4.5rem);
}

.promo-carousel {
  position: relative;
  overflow: hidden;
  margin: 0 calc(-1 * var(--page-gutter));
  padding: 0 var(--page-gutter);
  touch-action: pan-y;
}

.promo-carousel__track {
  display: flex;
  gap: 16px;
  transition: transform 0.42s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.promo-card {
  flex: 0 0 calc(33.333% - 11px);
  min-width: 0;
  border-radius: var(--radius-card);
  overflow: hidden;
  position: relative;
  height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.promo-card__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s ease;
}

.promo-card:hover .promo-card__bg {
  transform: scale(1.04);
}

.promo-card__bg--1 {
  background: var(--section-dark-top);
}

.promo-card__bg--2 {
  background: var(--teal-deep);
}

.promo-card__bg--3 {
  background: var(--naval);
}

.promo-card__bg--4 {
  background: var(--section-dark-mid);
}

.promo-card__bg--5 {
  background: var(--section-dark-top);
}

.promo-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 24, 32, 0.85) 0%, rgba(10, 24, 32, 0.15) 42%, rgba(10, 24, 32, 0.4) 100%);
}

.promo-card__top {
  position: relative;
  z-index: 2;
  padding: clamp(18px, 2.5vw, 26px) clamp(18px, 2.5vw, 26px) 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.promo-card__content {
  position: relative;
  z-index: 2;
  padding: clamp(18px, 2.5vw, 26px);
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
}

.promo-card__badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  background: var(--milk);
  border: 1.5px solid var(--terracotta);
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--terracotta-dark);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  align-self: flex-start;
  box-shadow: 0 4px 12px rgba(var(--shadow-rgb), 0.18);
}

.promo-card__title {
  margin: 0;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
}

.promo-card__desc {
  margin: 0;
  font-size: clamp(0.84rem, 1.4vw, 0.94rem);
  font-weight: 600;
  line-height: 1.5;
  color: var(--white);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.promo-card__cta {
  margin-top: 4px;
  align-self: flex-start;
  padding: 10px 20px;
  font-size: 0.9rem;
}

.promo-carousel__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(var(--naval-rgb), 0.2);
  background: rgba(var(--white-rgb), 0.85);
  color: var(--naval);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 4;
  transition: background 0.2s;
}

.promo-carousel__arrow:hover {
  background: rgba(var(--cyan-rgb), 0.7);
}

.promo-carousel__arrow--prev {
  left: 4px;
}

.promo-carousel__arrow--next {
  right: 4px;
}

@media (hover: hover) and (pointer: fine) {
  .promo-carousel__arrow {
    display: inline-flex;
  }
}

.promo-carousel__dots {
  margin-top: 18px;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.promo-carousel__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid rgba(var(--white-rgb), 0.45);
  background: rgba(var(--white-rgb), 0.3);
  cursor: pointer;
  transition: all 0.25s;
  padding: 0;
}

.promo-carousel__dot.is-active {
  width: 24px;
  border-radius: 4px;
  background: var(--cyan);
  border-color: var(--cyan);
}

@media (max-width: 1024px) {
  .faq-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .promo-card {
    flex: 0 0 calc(50% - 8px);
    height: 340px;
  }
}

@media (max-width: 600px) {
  .promo-card {
    flex: 0 0 min(calc(100vw - 2 * var(--page-gutter)), 420px);
    height: 400px;
  }
}



.discounts-header {
  text-align: center;
  margin-bottom: clamp(18px, 3vw, 26px);
}

.discounts-header .section__title {
  margin-left: auto;
  margin-right: auto;
}

.discounts-header__lead {
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 14px;
  max-width: 36rem;
  color: var(--slate);
}

.discounts-disclaimer {
  margin: 0 auto;
  max-width: 40rem;
  padding: 12px 16px;
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--slate);
  text-align: center;
  background: rgba(var(--white-rgb), 0.85);
  border: 1px solid rgba(var(--cyan-rgb), 0.28);
  border-radius: 14px;
  box-shadow: 0 4px 18px rgba(var(--shadow-rgb), 0.04);
}

.discounts-disclaimer strong {
  color: var(--naval);
  font-weight: 800;
}

.discounts-disclaimer--after-tg {
  margin-top: 18px;
  margin-bottom: 0;
  padding: 0;
  background: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
}







/* Узкие экраны: читаемость и отступы */
@media (max-width: 480px) {
  body {
    font-size: 16px;
  }

  .section {
    min-height: 0;
  }

  .section > .container {
    padding-top: clamp(1.75rem, 5vw, 3rem);
    padding-bottom: clamp(2.5rem, 6vw, 3.5rem);
  }

  .card {
    padding: 18px 16px;
  }

  .lead-form {
    padding: 18px 16px;
    max-width: 100%;
  }

  .lead-form--question {
    padding: clamp(16px, 3vh, 22px) 16px;
  }

  .lead-form--hero {
    padding: 0;
  }

  .lead-form--hero .lead-form__header {
    padding: 12px 14px 10px;
    padding-top: 18px;
  }

  .lead-form--hero .form-body {
    padding: 12px 14px 14px;
  }

  .lead-form--hero .form-success {
    margin: 12px 14px 14px;
    padding: 12px 14px;
    font-size: 0.85rem;
  }

  .benefit-card,
  .safety-card {
    padding: 16px 14px;
    gap: 12px;
  }

  .benefit-card__mark {
    width: 40px;
    height: 40px;
    border-radius: 50%;
  }

  .branch-pill {
    width: 100%;
    text-align: center;
  }

  .price-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .hero h1 {
    font-size: clamp(1.5rem, 6.5vw, 1.85rem);
  }

  .hero__lead {
    max-width: 100%;
  }
}

/* iPhone SE / узкая ширина ~375px */
@media (max-width: 390px) {
  :root {
    --page-gutter: max(16px, 4vw);
  }

  .site-header__inner {
    padding: 0 clamp(12px, 3.2vw, 16px);
    gap: 0;
  }

  .logo__img {
    height: 34px;
    max-width: min(152px, 68vw);
  }
}





/* Цвета карточек для обоих разделов (основано на селекторах в конце файла) */

/* 1-я карточка: Салатовый */
#about .discount-grid > .card:nth-child(1),
.benefits-mosaic__c1 { 
  background: var(--card-lime) !important; 
}

/* 2-я карточка: Нежно-голубой */
#about .discount-grid > .card:nth-child(2),
.benefits-mosaic__c2 { 
  background: var(--card-blue) !important; 
}

/* 3-я карточка: Персиковый */
#about .discount-grid > .card:nth-child(3),
.benefits-mosaic__c3 { 
  background: var(--card-peach) !important; 
}

/* 4-я карточка: Сиреневый */
#about .discount-grid > .card:nth-child(4),
.benefits-mosaic__c4 { 
  background: var(--card-lavender) !important; 
}

/* 5-я карточка: Бирюзовый */
#about .discount-grid > .card:nth-child(5),
.benefits-mosaic__c5 { 
  background: var(--card-mint) !important; 
}

/* 6-я карточка: Светло-оранжевый */
#about .discount-grid > .card:nth-child(6),
.benefits-mosaic__c6 { 
  background: var(--peach) !important; 
}

/* MOBILE FIX — возвращаем цвета карточек benefits (единая точка вместо 2 дублирующихся @media) */

@media (max-width: 1100px) {

  .benefits-mosaic__c1 {
    background: var(--card-lime) !important;
  }

  .benefits-mosaic__c2 {
    background: var(--card-blue) !important;
  }

  .benefits-mosaic__c3 {
    background: var(--card-peach) !important;
  }

  .benefits-mosaic__c4 {
    background: var(--card-lavender) !important;
  }

  .benefits-mosaic__c5 {
    background: var(--card-mint) !important;
  }

  .benefits-mosaic__c6 {
    background: var(--peach) !important;
  }

}
#lead .lead-intro__bullets li::before {
  content: "" !important;
  position: absolute;
  left: 0 !important;
  top: 0.4em !important;
  width: 8px !important;
  height: 8px !important;
  border-radius: 50% !important;
  background: var(--terracotta) !important;
  box-shadow: none !important;
}

/* Цвета для слов в блоке записи — единый цвет (как у кнопок) */
.lead-color-word--3 { color: var(--naval) !important; }
.lead-color-word--4 { color: var(--naval) !important; }
.lead-color-word--5 { color: var(--naval) !important; }
.lead-color-word--6 { color: var(--naval) !important; }
.lead-color-word--7 { color: var(--naval) !important; }





/* Цвета для заголовков с классом .hero-title__word — единый цвет (как у кнопок) */

.hero-title__word--1 { color: var(--naval) !important; }
.hero-title__word--2 { color: var(--naval) !important; }
.hero-title__word--3 { color: var(--naval) !important; }
.hero-title__word--4 { color: var(--naval) !important; }
.hero-title__word--5 { color: var(--naval) !important; }
.hero-title__word--6 { color: var(--naval) !important; }
.hero-title__word--7 { color: var(--naval) !important; }
.hero-title__word--8 { color: var(--naval) !important; }

/* Дополнительный стиль, чтобы слова не слипались и корректно переносились */
.hero-title__word {
  display: inline-block;
  margin-right: 0.15em;
}


/* Скрываем порядковые номера в карточках раздела Почему важно */
#about .hero__eyebrow {
  display: none !important;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: -0.01em;
}

#video .section__lead.video-section__lead-text {
  color: var(--white) !important;
  font-weight: 500 !important;
  font-size: clamp(1.6rem, 3.4vw, 2.3rem) !important;
  max-width: 44rem;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

/* ===== Волнистые переходы между разделами: волна — часть верхнего края самой секции (CSS mask), без отдельных SVG-блоков ===== */
:root {
  --wave-h: clamp(64px, 8.5vw, 116px);
  --wave-milk: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 200' preserveAspectRatio='none'%3E%3Cpath d='M0,86 C420,190 1020,-10 1440,94 L1440,200 L0,200 Z' fill='%23faf7f1'/%3E%3C/svg%3E");
  --wave-teal: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 200' preserveAspectRatio='none'%3E%3Cpath d='M0,86 C420,190 1020,-10 1440,94 L1440,200 L0,200 Z' fill='%2381d8d0'/%3E%3C/svg%3E");
}

.section {
  position: relative;
}

.section[data-wave] {
  z-index: 2;
}

.section[data-wave]::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: transparent;
  pointer-events: none;
  z-index: 3;
}

.section[data-wave="teal"]::before {
  background: var(--tiffany);
}

.section[data-wave] > .container {
  position: relative;
  z-index: 1;
}

.handwritten-text {
  /* Подключаем шрифт (убедись, что он добавлен в head сайта) */
  font-family: "Caveat", cursive !important;
  
  /* УВЕЛИЧИВАЕМ РАЗМЕР */
  font-size: clamp(1.4rem, 4vw, 2.2rem) !important; /* Автоподбор: крупно на ПК, адекватно на телефоне */
  
  /* ДЕЛАЕМ ЖИРНЕЕ */
  font-weight: 700 !important;
  
  /* ЦВЕТ И АКЦЕНТ */
  color: var(--teal-dark) !important; /* Твой фирменный темно-бирюзовый */
  line-height: 1.1;
  
  /* ДОПОЛНИТЕЛЬНЫЕ ЭФФЕКТЫ */
  display: block;
  margin: 20px 0;
  transform: rotate(-1.5deg); /* Легкий наклон для эффекта живой записи */
  text-shadow: 1px 1px 0px rgba(var(--white-rgb),0.5); /* Легкое свечение, чтобы текст "выпрыгивал" */
}


.hero .hero__actions .btn-cta {
  min-height: 62px;
  min-width: 0 !important;
  width: 100% !important;
  box-sizing: border-box !important;
  padding: 16px 12px !important;
  font-size: clamp(1rem, 1.2vw, 1.12rem) !important;
  font-weight: 800 !important;
  border-radius: 18px !important;
  border: 1px solid transparent !important;
  box-shadow: 0 14px 30px rgba(var(--shadow-rgb), 0.14) !important;
  text-align: center !important;
}

.hero .hero__actions .btn-cta:not(.btn-cta--ghost) {
  background: var(--white) !important;
  color: var(--tiffany-deep) !important;
}

.hero .hero__actions .btn-cta.btn-cta--ghost {
  background: transparent !important;
  color: var(--white) !important;
  border-color: rgba(var(--white-rgb), 0.6) !important;
}

.hero .hero__actions .btn-cta:not(.btn-cta--ghost):hover {
  background: var(--milk) !important;
  color: var(--tiffany-deep) !important;
}

.hero .hero__actions .btn-cta.btn-cta--ghost:hover {
  background: rgba(var(--white-rgb), 0.14) !important;
  color: var(--white) !important;
  border-color: var(--white) !important;
}

@media (max-width: 900px) {
  .hero.section--dark.section--wave-deep {
  padding-top: 6px;
}

  .hero__grid > div:first-child {
    margin-top: 0 !important;
  }

  .hero .hero__actions {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    width: 100% !important;
  }

  .hero .hero__actions .btn-cta {
    width: 100% !important;
  }
}


/* 1. Создаем эффект дрейфа на воде */
@keyframes inventory-float {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }
  25% {
    transform: translate(10px, -5px) rotate(2deg);
  }
  50% {
    transform: translate(-5px, 5px) rotate(-1deg);
  }
  75% {
    transform: translate(-12px, -3px) rotate(1.5deg);
  }
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
}

/* 2. Применяем анимацию конкретно к этому блоку */
.hero-floating-inventory {
  /* Название, время (5 сек), мягко, бесконечно */
  animation: inventory-float 5s ease-in-out infinite !important;
  
  /* Чтобы движение было очень плавным и не дергало соседние элементы */
  will-change: transform;
  pointer-events: none; /* Чтобы картинка не мешала кликать по кнопкам, если перекроет их */
}

/* 3. Оживляем саму картинку внутри, если блок вдруг зажат родителем */
.hero-floating-inventory img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Маскот-сёрфер под текстом "Запишитесь на первое занятие" — катается по волне влево-вправо */
.hero-floating-inventory--surf {
  margin-top: clamp(4px, 1vw, 10px);
  display: flex;
  justify-content: center;
  animation: none !important;
}

.hero-floating-inventory--surf img {
  width: clamp(220px, 26vw, 340px);
  animation: seal-surf-ride 9s ease-in-out infinite;
}

@keyframes seal-surf-ride {
  0% {
    transform: translateX(-26px) rotate(-6deg);
  }
  25% {
    transform: translateX(0) rotate(3deg);
  }
  50% {
    transform: translateX(26px) rotate(6deg);
  }
  75% {
    transform: translateX(0) rotate(-3deg);
  }
  100% {
    transform: translateX(-26px) rotate(-6deg);
  }
}

.trainer-card--soon .trainer-card__soon-link {
  display: block;
  width: 100%;
  text-decoration: none;
}

.trainer-card--soon .trainer-card__photo {
  cursor: pointer;
}

.trainer-card--soon .trainer-card__phone {
  display: inline-block;
  margin-top: 12px;
  font-weight: 800;
}