/* =========================================================
   English Planet — design tokens
   ========================================================= */
:root {
  /* Colors — shared across sections */
  --color-bg-sky: #E3F1FA;
  --color-text-primary: #20244B;
  --color-text-muted: #6E7191;
  --color-accent-red: #ED3636;
  --color-accent-blue: #3381C4;
  --color-text-on-accent: #FFFFFF;
  --color-surface: #FFFFFF;
  --color-surface-cream: #FFFCF6;
  --color-text-card-muted: #4A4E6E;

  --color-kicker-bg: #FDE3E3;
  --color-kicker-text: #F46466;

  --color-card-mint: #CDEEF4;
  --color-card-blue: #C7EAFF;
  --color-card-blue-deep: #B0DFFA;
  --color-card-blue-soft: rgba(158, 216, 249, 0.82);

  --color-bg-tracks: #FFE8E8;
  --color-track-num-bg: #C3E4F3;

  --color-bg-about-wash: rgba(97, 146, 202, 0.06);
  --color-kicker-bg-blue: #DCEDF9;
  --color-kicker-text-blue: #2E6FA3;

  --color-step-card-bg: #D1EDF9;
  --color-step-num-border: #D0E6F0;

  --shadow-chip: 0 0.75rem 1.75rem rgba(33, 36, 74, 0.14); /* 12px 28px */

  /* Fonts */
  --font-family-logo: 'Annabelle', cursive;
  --font-family-base: 'Manrope', sans-serif;
  --font-family-heading: 'Montserrat', sans-serif;
  --font-family-accent: 'Unbounded', sans-serif;

  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fw-extrabold: 800;

  /* Shared horizontal section padding — mobile-first, keeps every
     full-width section's content aligned to the same edges */
  --section-padding-x: 1.25rem; /* 20px */

  /* Header — mobile-first base metrics (scaled down from the 1440
     Figma spec; exact values are restored at the 1440 breakpoint) */
  --header-padding-y: 0.875rem;  /* 14px */
  --header-nav-gap: 1.75rem;     /* 28px */
  --header-actions-gap: 1.5rem;  /* 24px */
  /* Anchor-jump clearance for the sticky header — roughly header
     height + a small buffer, kept in sync at each breakpoint below */
  --header-scroll-offset: 5rem;

  --font-size-nav: 0.9375rem;    /* 15px */
  --font-size-phone: 0.9375rem;  /* 15px */
  --font-size-button: 0.875rem;  /* 14px */

  --button-padding-x: 1.5rem;    /* 24px */
  --button-padding-y: 0.8125rem; /* 13px */
  --radius-pill: 999px;

  /* Logo geometry base unit = font-size of the cap letter "И".
     All other logo measurements are expressed as multiples of it,
     so the whole logotype scales as one piece across breakpoints. */
  --logo-base: 1.75rem; /* 28px, mobile */

  /* Hero — mobile-first base metrics; exact values restored at 1440 */
  --hero-padding-y: 2.5rem;          /* 40px */
  --hero-padding-bottom: 2.5rem;     /* 40px */
  --hero-content-gap: 1.5rem;        /* 24px, gap between badge/title/etc */
  --hero-stack-gap: 2rem;            /* 32px, gap between text block and visual */

  --hero-badge-size: 0.8125rem;      /* 13px */
  --hero-title-size: 2rem;           /* 32px */
  --hero-subtitle-size: 1rem;        /* 16px */
  --hero-btn-padding-x: 1.5rem;      /* 24px */
  --hero-btn-padding-y: 0.875rem;    /* 14px */
  --hero-btn-font-size: 0.9375rem;   /* 15px */
  --hero-stats-gap: 1.5rem;          /* 24px */
  --hero-stat-number-size: 1.375rem; /* 22px */
  --hero-stat-label-size: 0.8125rem; /* 13px */

  --hero-visual-max-width: 21.25rem; /* 340px, mobile cap */

  /* Goals — mobile-first base metrics; exact values restored at 1440 */
  --goals-padding-y: 3rem;          /* 48px */
  --goals-section-gap: 2rem;        /* 32px */
  --goals-title-size: 1.75rem;      /* 28px */
  --goals-lead-size: 0.9375rem;     /* 15px */
  --goals-grid-gap: 1rem;           /* 16px */
  --card-title-size: 1.25rem;       /* 20px */
  --card-price-size: 0.9375rem;     /* 15px */
  --tracks-padding: 1.75rem;        /* 28px */
  --tracks-title-size: 1.375rem;    /* 22px */

  /* About — mobile-first base metrics; exact values restored at 1440 */
  --about-padding-y: 3rem;          /* 48px */
  --about-title-size: 1.75rem;      /* 28px */
  --about-stat-number-size: 1.375rem; /* 22px */

  /* Process ("Как проходит обучение") — mobile-first base metrics */
  --process-padding-y: 3rem;        /* 48px */
  --process-title-size: 1.75rem;    /* 28px */
  --process-subtitle-size: 0.9375rem; /* 15px */

  /* Signup ("Блок записи") — mobile-first base metrics.
     No Figma metadata available (MCP rate-limited); sizes are estimated
     from a screenshot and should be refined once Figma access returns. */
  --signup-padding-y: 2.5rem;       /* 40px */
  --signup-card-padding: 1.75rem;   /* 28px */
  --signup-title-size: 1.625rem;    /* 26px */

  /* Contacts ("Как нас найти") — mobile-first base metrics.
     No Figma metadata available (MCP rate-limited); sizes are estimated
     from a screenshot and should be refined once Figma access returns. */
  --contacts-padding-y: 3rem;       /* 48px */
  --contacts-title-size: 1.75rem;   /* 28px */
  --contacts-lead-size: 0.9375rem;  /* 15px */

  /* FAQ ("Частые вопросы") — mobile-first base metrics.
     No Figma metadata available (MCP rate-limited); sizes are estimated
     from a screenshot and should be refined once Figma access returns. */
  --faq-padding-y: 3rem;            /* 48px */
  --faq-title-size: 1.75rem;        /* 28px */

  /* Footer — mobile-first base metrics.
     No Figma metadata available (MCP rate-limited); sizes are estimated
     from a screenshot and should be refined once Figma access returns. */
  --footer-padding-y: 3rem;   /* 48px */
  --footer-logo-base: 1.5rem; /* 24px, mobile */
}

/* =========================================================
   Minimal reset
   ========================================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: var(--header-scroll-offset);
  scroll-behavior: smooth;
  /* Matches the sticky header's background so iOS/Android rubber-band
     overscroll at the top reveals this color instead of a white flash
     that reads as a gap above the header while scrolling. */
  background: var(--color-bg-sky);
}

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

body {
  margin: 0;
  /* Backstop against sub-pixel horizontal overflow from edge-hugging
     decorative elements (e.g. hero chips positioned past 100% on very
     narrow viewports) — content itself never needs horizontal scroll. */
  overflow-x: hidden;
  font-family: var(--font-family-base);
  color: var(--color-text-primary);
  background: #FFFFFF;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---- Scroll reveal (fade + rise on entering the viewport) ---- */
.reveal {
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity 0.6s cubic-bezier(0, 0, 0.2, 1), transform 0.6s cubic-bezier(0, 0, 0.2, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal.is-inview {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    transition: none;
    opacity: 1;
    transform: none;
  }
}

/* =========================================================
   Fonts
   ========================================================= */
@font-face {
  font-family: 'Annabelle';
  src:
    url('../fonts/annabelle/Annabelle-Regular.woff2') format('woff2'),
    url('../fonts/annabelle/Annabelle-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Manrope';
  src: url('../fonts/manrope/manrope-cyrillic.woff2') format('woff2');
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Manrope';
  src: url('../fonts/manrope/manrope-latin.woff2') format('woff2');
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Manrope';
  src: url('../fonts/manrope/manrope-latin-ext.woff2') format('woff2');
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+20BD;
}

@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/montserrat/montserrat-cyrillic.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/montserrat/montserrat-latin.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Unbounded';
  src: url('../fonts/unbounded/unbounded-cyrillic.woff2') format('woff2');
  font-weight: 500 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Unbounded';
  src: url('../fonts/unbounded/unbounded-latin.woff2') format('woff2');
  font-weight: 500 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Unbounded';
  src: url('../fonts/unbounded/unbounded-latin-ext.woff2') format('woff2');
  font-weight: 500 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+20BD;
}

/* =========================================================
   Header
   ========================================================= */
.header {
  background: var(--color-bg-sky);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 0.5rem 1.5rem rgba(32, 36, 75, 0);
  transition: box-shadow 0.25s ease;
  /* Promotes the sticky header to its own compositor layer so it tracks
     the top edge exactly during momentum/inertial scrolling on touch
     devices, instead of lagging a frame behind and briefly showing
     content in the gap above it. */
  transform: translateZ(0);
  will-change: transform;
}

.header[data-scrolled='true'] {
  box-shadow: 0 0.5rem 1.5rem rgba(32, 36, 75, 0.12);
}

@media (prefers-reduced-motion: reduce) {
  .header {
    transition: none;
  }
}

.header__inner {
  max-width: 1440px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--header-padding-y);
  padding-inline: var(--section-padding-x);
  position: relative;
  transition: padding-block 0.25s ease;
}

.header[data-scrolled='true'] .header__inner {
  padding-block: calc(var(--header-padding-y) * 0.7);
}

@media (prefers-reduced-motion: reduce) {
  .header__inner {
    transition: none;
  }
}

.header__brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* ---- Logo ---- */
.header__logo {
  position: relative;
  display: block;
  flex-shrink: 0;
  width: calc(var(--logo-base) * 4.3488);
  height: calc(var(--logo-base) * 1.4884);
}

.header__logo-text {
  font-family: var(--font-family-logo);
  font-weight: 400;
  font-style: normal;
  white-space: nowrap;
}

.header__logo-cap,
.header__logo-word {
  position: absolute;
  top: 0;
  left: 0;
  line-height: normal;
}

.header__logo-cap {
  font-size: var(--logo-base);
  color: var(--color-accent-red);
  left: calc(var(--logo-base) * 0.0698);
}

.header__logo-word {
  font-size: calc(var(--logo-base) * 0.7442);
}

.header__logo-word--top {
  color: var(--color-accent-red);
  left: calc(var(--logo-base) * 1.0233);
  top: calc(var(--logo-base) * 0.2558);
}

.header__logo-word--bottom {
  color: var(--color-accent-blue);
  left: calc(var(--logo-base) * 2.0233);
  top: calc(var(--logo-base) * 0.6512);
}

/* ---- Nav (mobile: slide-down panel, toggled by burger) ---- */
.header__nav {
  position: absolute;
  inset-inline: 0;
  top: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  background: var(--color-bg-sky);
  padding: 1.25rem 1.25rem 1.75rem;
  box-shadow: 0 12px 24px rgba(32, 36, 75, 0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-0.5rem);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 20;
}

.header[data-nav-open='true'] .header__nav {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .header__nav {
    transition: none;
  }
}

.header__nav-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 0;
  padding: 0;
}

.header__nav-link {
  display: block;
  font-family: var(--font-family-base);
  font-weight: var(--fw-medium);
  font-size: var(--font-size-nav);
  line-height: 1;
  color: var(--color-text-primary);
}

.header__nav-link:hover,
.header__nav-link:focus-visible {
  color: var(--color-accent-red);
}

/* ---- Actions (phone + CTA button) ---- */
.header__actions {
  display: flex;
  align-items: center;
  gap: var(--header-actions-gap);
}

.header__actions--mobile {
  flex-direction: column;
  align-items: stretch;
  gap: 1rem;
}

.header__actions--desktop {
  display: none;
}

.header__phone {
  font-family: var(--font-family-base);
  font-weight: var(--fw-extrabold);
  font-size: var(--font-size-phone);
  line-height: 1;
  color: var(--color-text-primary);
  white-space: nowrap;
}

.header__actions--mobile .header__phone {
  text-align: center;
}

.header__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--color-accent-red);
  color: var(--color-text-on-accent);
  font-family: var(--font-family-base);
  font-weight: var(--fw-bold);
  font-size: var(--font-size-button);
  line-height: 1;
  white-space: nowrap;
  padding: var(--button-padding-y) var(--button-padding-x);
  border-radius: var(--radius-pill);
  transition: background 0.15s ease, transform 0.1s ease;
}

.header__cta:hover,
.header__cta:focus-visible {
  background: #D62222;
}

.header__cta:active {
  transform: scale(0.97);
}

/* ---- Burger ---- */
.header__burger {
  position: relative;
  display: inline-flex;
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
}

.header__burger-line {
  position: absolute;
  left: 0.5rem;
  width: 1.5rem;
  height: 2px;
  background: var(--color-text-primary);
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease, top 0.2s ease;
}

.header__burger-line:nth-child(1) {
  top: 0.8125rem;
}

.header__burger-line:nth-child(2) {
  top: 1.1875rem;
}

.header__burger-line:nth-child(3) {
  top: 1.5625rem;
}

.header[data-nav-open='true'] .header__burger-line:nth-child(1) {
  top: 1.1875rem;
  transform: rotate(45deg);
}

.header[data-nav-open='true'] .header__burger-line:nth-child(2) {
  opacity: 0;
}

.header[data-nav-open='true'] .header__burger-line:nth-child(3) {
  top: 1.1875rem;
  transform: rotate(-45deg);
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
  background: var(--color-bg-sky);
}

.hero__inner {
  max-width: 1440px;
  margin-inline: auto;
  padding: var(--hero-padding-y) var(--section-padding-x) var(--hero-padding-bottom);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--hero-stack-gap);
}

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--hero-content-gap);
  width: 100%;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  background: var(--color-surface);
  color: var(--color-text-primary);
  font-family: var(--font-family-base);
  font-weight: var(--fw-semibold);
  font-size: var(--hero-badge-size);
  line-height: 1.3;
  padding: 0.625rem 1.125rem;
  border-radius: var(--radius-pill);
}

.hero__badge-break {
  display: none;
}

.announcement-bar__break {
  display: none;
}

.hero__title {
  margin: 0;
  font-family: var(--font-family-heading);
  font-weight: var(--fw-bold);
  font-size: var(--hero-title-size);
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--color-text-primary);
}

.hero__subtitle {
  margin: 0;
  max-width: 42rem;
  font-family: var(--font-family-base);
  font-weight: 400;
  font-size: var(--hero-subtitle-size);
  line-height: 1.55;
  color: var(--color-text-muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.hero__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  font-family: var(--font-family-base);
  font-weight: var(--fw-bold);
  font-size: var(--hero-btn-font-size);
  line-height: 1;
  padding: var(--hero-btn-padding-y) var(--hero-btn-padding-x);
  border-radius: var(--radius-pill);
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

.hero__btn:active {
  transform: scale(0.97);
}

.hero__btn--primary {
  background: var(--color-accent-red);
  color: var(--color-text-on-accent);
  border: 1px solid var(--color-accent-red);
}

.hero__btn--primary:hover,
.hero__btn--primary:focus-visible {
  background: #D62222;
  border-color: #D62222;
}

.hero__btn--secondary {
  background: var(--color-surface-cream);
  color: var(--color-text-primary);
  border: 1px solid color-mix(in srgb, var(--color-text-primary) 45%, transparent);
}

.hero__btn--secondary:hover,
.hero__btn--secondary:focus-visible {
  background: var(--color-surface);
}

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: var(--hero-stats-gap);
  padding-top: 0.25rem;
}

.hero__stat {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.hero__stat-number {
  font-family: var(--font-family-heading);
  font-weight: var(--fw-bold);
  font-size: var(--hero-stat-number-size);
  line-height: 0.9;
  letter-spacing: -0.01em;
  color: var(--color-text-primary);
}

.hero__stat-label {
  font-family: var(--font-family-base);
  font-weight: 400;
  font-size: var(--hero-stat-label-size);
  line-height: 1.3;
  color: var(--color-text-muted);
}

/* ---- Visual (illustration + floating chips) ----
   The illustration is a fixed 1:1 square. Chips are positioned as a
   percentage of that square (derived from their exact Figma offsets),
   so the whole composition scales as one unit at any width and still
   lands on the exact pixel spec at the 1440 breakpoint. */
.hero__visual {
  position: relative;
  width: 100%;
  max-width: var(--hero-visual-max-width);
  aspect-ratio: 1 / 1;
  flex-shrink: 0;
}

.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 1.5rem;
  display: block;
}

.hero__chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  background: var(--color-surface);
  color: var(--color-text-primary);
  font-family: var(--font-family-base);
  font-weight: var(--fw-bold);
  font-size: 0.8125rem;
  line-height: 1;
  white-space: nowrap;
  padding: 0.625rem 0.875rem;
  border-radius: 0.875rem;
  box-shadow: var(--shadow-chip);
}

.hero__chip--hello {
  left: 79.37%;
  top: 62.10%;
}

.hero__chip--exams {
  left: 39.68%;
  top: 82.54%;
}

.hero__chip--mode {
  left: -2.38%;
  top: 72.42%;
}

/* ---- Entrance (once, on load) ---- */
@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(1rem);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hero__badge,
.hero__title,
.hero__subtitle,
.hero__actions,
.hero__stats,
.hero__visual {
  animation: hero-rise 0.6s ease both;
}

.hero__badge    { animation-delay: 0ms; }
.hero__title    { animation-delay: 90ms; }
.hero__subtitle { animation-delay: 180ms; }
.hero__actions  { animation-delay: 270ms; }
.hero__stats    { animation-delay: 360ms; }
.hero__visual   { animation-delay: 150ms; }

/* ---- Idle float (chips only, loops) ---- */
@keyframes chip-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-0.375rem); }
}

.hero__chip {
  animation: chip-float 4s ease-in-out infinite;
}

.hero__chip--hello { animation-delay: 0s; }
.hero__chip--exams { animation-delay: 0.6s; }
.hero__chip--mode  { animation-delay: 1.2s; }

@media (prefers-reduced-motion: reduce) {
  .hero__badge,
  .hero__title,
  .hero__subtitle,
  .hero__actions,
  .hero__stats,
  .hero__visual,
  .hero__chip {
    animation: none;
  }
}

/* =========================================================
   Goals
   ========================================================= */
.goals {
  background: var(--color-surface);
}

.goals__inner {
  max-width: 1440px;
  margin-inline: auto;
  padding: var(--goals-padding-y) var(--section-padding-x);
  display: flex;
  flex-direction: column;
  gap: var(--goals-section-gap);
}

.goals__head {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.goals__heading {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.goals__kicker {
  margin: 0;
  display: inline-flex;
  align-items: center;
  background: var(--color-kicker-bg);
  color: var(--color-kicker-text);
  font-family: var(--font-family-base);
  font-weight: var(--fw-extrabold);
  font-size: 0.75rem;
  line-height: 1;
  letter-spacing: 0.02em;
  white-space: nowrap;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
}

.goals__title {
  margin: 0;
  font-family: var(--font-family-heading);
  font-weight: var(--fw-bold);
  font-size: var(--goals-title-size);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--color-text-primary);
}

.goals__lead {
  margin: 0;
  max-width: 23rem;
  font-family: var(--font-family-base);
  font-weight: 400;
  font-size: var(--goals-lead-size);
  line-height: 1.4;
  color: var(--color-text-muted);
}

/* ---- Card grid ---- */
.goals__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--goals-grid-gap);
}

.course-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.875rem;
  padding: 1.5rem;
  border-radius: 1.75rem;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.course-card:hover,
.course-card:focus-visible {
  transform: translateY(-0.25rem);
  box-shadow: 0 0.75rem 1.5rem rgba(32, 36, 75, 0.12);
}

.course-card--mint { background: var(--color-card-mint); }
.course-card--blue { background: var(--color-card-blue); }
.course-card--deep { background: var(--color-card-blue-deep); }
.course-card--soft { background: var(--color-card-blue-soft); }

.course-card__badge {
  display: inline-flex;
  align-items: center;
  background: var(--color-surface);
  color: var(--color-text-primary);
  font-family: var(--font-family-base);
  font-weight: var(--fw-bold);
  font-size: 0.8125rem;
  line-height: 1;
  white-space: nowrap;
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius-pill);
}

.course-card__title {
  margin: 0;
  font-family: var(--font-family-heading);
  font-weight: var(--fw-bold);
  font-size: var(--card-title-size);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--color-text-primary);
}

.course-card__desc {
  margin: 0;
  font-family: var(--font-family-base);
  font-weight: 400;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--color-text-card-muted);
}

.course-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: auto;
  padding-top: 0.625rem;
}

.course-card__price {
  font-family: var(--font-family-accent);
  font-weight: var(--fw-medium);
  font-size: var(--card-price-size);
  line-height: 1.1;
  color: var(--color-text-primary);
}

.course-card__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  color: var(--color-text-primary);
  font-family: var(--font-family-base);
  font-weight: var(--fw-bold);
  font-size: 1.125rem;
  transition: transform 0.15s ease;
}

.course-card:hover .course-card__arrow {
  transform: translateX(0.1875rem);
}

/* ---- Program tracks banner ---- */
.tracks {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  background: var(--color-bg-tracks);
  border-radius: 2rem;
  padding: var(--tracks-padding);
}

.tracks__head {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.tracks__title {
  margin: 0;
  font-family: var(--font-family-heading);
  font-weight: var(--fw-bold);
  font-size: var(--tracks-title-size);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--color-text-primary);
}

.tracks__lead {
  margin: 0;
  font-family: var(--font-family-base);
  font-weight: 400;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--color-text-muted);
}

.tracks__list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.program-track {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.625rem;
  background: var(--color-surface);
  border-radius: 1.25rem;
  padding: 1.25rem 1.125rem;
}

.program-track__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius-pill);
  background: var(--color-track-num-bg);
  color: var(--color-text-primary);
  font-family: var(--font-family-base);
  font-weight: var(--fw-extrabold);
  font-size: 0.9375rem;
  line-height: 1;
}

.program-track__title {
  margin: 0;
  font-family: var(--font-family-base);
  font-weight: var(--fw-bold);
  font-size: 1.0625rem;
  line-height: 1.3;
  color: var(--color-text-primary);
}

.program-track__desc {
  margin: 0;
  font-family: var(--font-family-base);
  font-weight: 400;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--color-text-muted);
}

/* =========================================================
   About
   ========================================================= */
.about {
  background: var(--color-bg-about-wash);
}

.about__inner {
  max-width: 1440px;
  margin-inline: auto;
  padding: var(--about-padding-y) var(--section-padding-x);
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.about__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
}

.about__kicker {
  margin: 0;
  display: inline-flex;
  align-items: center;
  background: var(--color-kicker-bg-blue);
  color: var(--color-kicker-text-blue);
  font-family: var(--font-family-base);
  font-weight: var(--fw-extrabold);
  font-size: 0.75rem;
  line-height: 1;
  letter-spacing: 0.02em;
  white-space: nowrap;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
}

.about__title {
  margin: 0;
  font-family: var(--font-family-heading);
  font-weight: var(--fw-bold);
  font-size: var(--about-title-size);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--color-text-primary);
}

.about__paragraph {
  margin: 0;
  max-width: 38rem;
  font-family: var(--font-family-base);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text-muted);
}

/* ---- Stat cards ("bignum") ---- */
.about__stats {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  padding-top: 0.625rem;
}

.about__stat {
  display: flex;
  flex: 1 1 9rem;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
  padding: 1.125rem 1.25rem;
  border-radius: 1.25rem;
}

.about__stat--mint { background: var(--color-card-mint); }
.about__stat--blue { background: var(--color-card-blue); }
.about__stat--deep { background: var(--color-card-blue-deep); }

.about__stat-number {
  font-family: var(--font-family-accent);
  font-weight: var(--fw-semibold);
  font-size: var(--about-stat-number-size);
  line-height: 1.1;
  color: var(--color-text-primary);
}

.about__stat-label {
  font-family: var(--font-family-base);
  font-weight: 400;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--color-text-card-muted);
  white-space: nowrap;
}

/* ---- Advantage cards ---- */
.about__advantages {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.advantage-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  background: var(--color-surface);
  border-radius: 1.5rem;
  padding: 1.625rem;
}

.advantage-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-pill);
  font-size: 1.25rem;
}

.advantage-card__icon--blue { background: var(--color-track-num-bg); }
.advantage-card__icon--pink { background: var(--color-bg-tracks); }

.advantage-card__title {
  margin: 0;
  font-family: var(--font-family-base);
  font-weight: var(--fw-bold);
  font-size: 1.0625rem;
  line-height: 1.3;
  color: var(--color-text-primary);
}

.advantage-card__desc {
  margin: 0;
  font-family: var(--font-family-base);
  font-weight: 400;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--color-text-muted);
}

/* =========================================================
   Process ("Как проходит обучение")
   ========================================================= */
.process {
  background: var(--color-surface);
}

.process__inner {
  max-width: 1440px;
  margin-inline: auto;
  padding: var(--process-padding-y) var(--section-padding-x);
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.process__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.process__kicker {
  margin: 0;
  display: inline-flex;
  align-items: center;
  background: var(--color-kicker-bg);
  color: var(--color-kicker-text);
  font-family: var(--font-family-base);
  font-weight: var(--fw-extrabold);
  font-size: 0.75rem;
  line-height: 1;
  letter-spacing: 0.02em;
  white-space: nowrap;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
}

.process__title {
  margin: 0;
  font-family: var(--font-family-heading);
  font-weight: var(--fw-bold);
  font-size: var(--process-title-size);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--color-text-primary);
}

.process__subtitle {
  margin: 0;
  font-family: var(--font-family-base);
  font-weight: 400;
  font-size: var(--process-subtitle-size);
  line-height: 1.5;
  color: var(--color-text-muted);
}

.process__progress {
  width: 100%;
  max-width: 20rem;
  height: 0.25rem;
  border-radius: var(--radius-pill);
  background: var(--color-step-num-border);
  overflow: hidden;
}

.process__progress-bar {
  display: block;
  width: 0;
  height: 100%;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--color-accent-blue), var(--color-accent-red));
  transition: width 0.9s ease;
}

.process__progress.is-inview .process__progress-bar {
  width: 100%;
}

@media (prefers-reduced-motion: reduce) {
  .process__progress-bar {
    transition: none;
  }
}

/* ---- Step cards ---- */
.process__steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.step-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.875rem;
  background: var(--color-step-card-bg);
  border-radius: 1.5rem;
  padding: 1.625rem 1.5rem;
}

.step-card__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-surface);
  color: var(--color-kicker-text);
  border: 1px solid var(--color-step-num-border);
  font-family: var(--font-family-accent);
  font-weight: var(--fw-semibold);
  font-size: 1.125rem;
  line-height: 1.1;
  padding: 0.625rem 1rem;
  border-radius: 0.875rem;
}

.step-card__title {
  margin: 0;
  font-family: var(--font-family-base);
  font-weight: var(--fw-bold);
  font-size: 1.0625rem;
  line-height: 1.3;
  color: var(--color-text-primary);
}

.step-card__desc {
  margin: 0;
  font-family: var(--font-family-base);
  font-weight: 400;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--color-text-muted);
  text-wrap: pretty;
}

/* =========================================================
   Signup ("Блок записи")
   ========================================================= */
.signup {
  background: var(--color-surface);
}

.signup__inner {
  max-width: 1440px;
  margin-inline: auto;
  padding: var(--signup-padding-y) var(--section-padding-x);
}

.signup__card {
  display: flex;
  flex-direction: column;
  /* Below the 1024px row layout, the form and reviews render as two
     separate boxes (see below) — this gap is the breathing room
     between them, not padding inside a shared card. */
  gap: 1.75rem;
}

/* ---- Form column ---- */
.signup__form-col {
  background: var(--color-bg-tracks);
  border-radius: 2rem;
  padding: var(--signup-card-padding);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
}

.signup__title {
  margin: 0;
  font-family: var(--font-family-heading);
  font-weight: var(--fw-bold);
  font-size: var(--signup-title-size);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--color-text-primary);
}

.signup__lead {
  margin: 0;
  font-family: var(--font-family-base);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--color-text-muted);
}

.signup__form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
}

.signup__input,
.signup__select {
  width: 100%;
  background: var(--color-surface);
  border: none;
  border-radius: 1rem;
  padding: 0.9375rem 1.25rem;
  font-family: var(--font-family-base);
  font-weight: 400;
  font-size: 0.9375rem;
  color: var(--color-text-primary);
}

.signup__input::placeholder {
  color: var(--color-text-muted);
}

.signup__select-wrap {
  position: relative;
  width: 100%;
}

.signup__select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 2.5rem;
  color: var(--color-text-muted);
}

.signup__select:invalid {
  color: var(--color-text-muted);
}

.signup__select:has(option:checked:not([value=""])) {
  color: var(--color-text-primary);
}

.signup__select-wrap::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 1.25rem;
  width: 0.625rem;
  height: 0.625rem;
  border-right: 2px solid var(--color-text-muted);
  border-bottom: 2px solid var(--color-text-muted);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.signup__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background: var(--color-accent-red);
  color: var(--color-text-on-accent);
  font-family: var(--font-family-base);
  font-weight: var(--fw-bold);
  font-size: 1rem;
  line-height: 1;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-pill);
  margin-top: 0.5rem;
  transition: background 0.15s ease, transform 0.1s ease;
}

.signup__submit:hover,
.signup__submit:focus-visible {
  background: #D62222;
}

.signup__submit:active {
  transform: scale(0.97);
}

.signup__disclaimer-link {
  color: var(--color-accent-blue);
  text-decoration: underline;
}

.signup__consent {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  margin-top: 0.25rem;
}

.signup__success {
  margin: 0;
  padding: 1rem 1.25rem;
  background: var(--color-surface);
  border-radius: 1rem;
  font-family: var(--font-family-base);
  font-weight: 500;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--color-text-primary);
}

.signup__checkbox {
  flex-shrink: 0;
  width: 1.125rem;
  height: 1.125rem;
  margin-top: 0.125rem;
  accent-color: var(--color-accent-red);
  cursor: pointer;
}

.signup__consent-label {
  font-family: var(--font-family-base);
  font-weight: 400;
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--color-text-muted);
  cursor: pointer;
}

/* ---- Reviews column ---- */
.signup__reviews-col {
  background: var(--color-bg-tracks);
  border-radius: 2rem;
  padding: var(--signup-card-padding);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.signup__reviews-title {
  margin: 0;
  font-family: var(--font-family-heading);
  font-weight: var(--fw-bold);
  font-size: 1.0625rem;
  line-height: 1.2;
  color: var(--color-text-primary);
}

.review-carousel {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  border-radius: 1.5rem;
}

.review-carousel:focus-visible {
  outline: 2px solid var(--color-accent-blue);
  outline-offset: 4px;
}

.review-carousel__viewport {
  overflow: hidden;
  border-radius: 1.5rem;
}

.review-carousel__track {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
  transition: transform 0.3s ease;
}

@media (prefers-reduced-motion: reduce) {
  .review-carousel__track {
    transition: none;
  }
}

.review-carousel__slide {
  flex: 0 0 100%;
  min-width: 0;
  display: flex;
}

.review-card {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  width: 100%;
  background: var(--color-surface);
  border-radius: 1.5rem;
  padding: 1.75rem;
}

.review-card__quote {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 2.5rem;
  line-height: 1;
  color: var(--color-track-num-bg);
}

.review-card__text {
  margin: 0;
  font-family: var(--font-family-base);
  font-weight: 400;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--color-text-muted);
}

.review-card__author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  margin-top: auto;
}

.review-card__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-pill);
  background: var(--color-track-num-bg);
  color: var(--color-text-primary);
  font-family: var(--font-family-base);
  font-weight: var(--fw-bold);
  font-size: 1rem;
}

.review-card__author-info {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.review-card__name {
  font-family: var(--font-family-base);
  font-weight: var(--fw-bold);
  font-size: 0.9375rem;
  color: var(--color-text-primary);
}

.review-card__role {
  font-family: var(--font-family-base);
  font-weight: 400;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

.review-carousel__controls {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.review-carousel__dots {
  grid-column: 2;
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.review-carousel__dot {
  display: block;
  width: 0.5rem;
  height: 0.5rem;
  padding: 0;
  border: 0;
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--color-accent-red) 25%, transparent);
  cursor: pointer;
  transition: width 0.15s ease, background 0.15s ease;
}

.review-carousel__dot--active {
  width: 1.5rem;
  background: var(--color-accent-red);
}

.review-carousel__arrows {
  grid-column: 3;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.review-carousel__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-family-base);
  font-weight: var(--fw-bold);
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.15s ease;
}

.review-carousel__arrow--prev {
  background: var(--color-surface);
  color: var(--color-text-primary);
}

.review-carousel__arrow--prev:hover,
.review-carousel__arrow--prev:focus-visible {
  background: color-mix(in srgb, var(--color-text-primary) 10%, var(--color-surface));
}

.review-carousel__arrow--next {
  background: var(--color-accent-red);
  color: var(--color-text-on-accent);
}

.review-carousel__arrow--next:hover,
.review-carousel__arrow--next:focus-visible {
  background: #D62222;
}

/* =========================================================
   Contacts ("Как нас найти")
   ========================================================= */
.contacts {
  background: var(--color-surface);
}

.contacts__inner {
  max-width: 1440px;
  margin-inline: auto;
  padding: var(--contacts-padding-y) var(--section-padding-x);
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contacts__head {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contacts__heading {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.contacts__kicker {
  margin: 0;
  display: inline-flex;
  align-items: center;
  background: var(--color-kicker-bg);
  color: var(--color-kicker-text);
  font-family: var(--font-family-base);
  font-weight: var(--fw-extrabold);
  font-size: 0.75rem;
  line-height: 1;
  letter-spacing: 0.02em;
  white-space: nowrap;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
}

.contacts__title {
  margin: 0;
  font-family: var(--font-family-heading);
  font-weight: var(--fw-bold);
  font-size: var(--contacts-title-size);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--color-text-primary);
}

.contacts__lead {
  margin: 0;
  font-family: var(--font-family-base);
  font-weight: 400;
  font-size: var(--contacts-lead-size);
  line-height: 1.5;
  color: var(--color-text-muted);
}

/* ---- Card + map grid ---- */
.contacts__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.contacts__card {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  background: var(--color-bg-sky);
  border-radius: 1.75rem;
  padding: 1.75rem;
}

.contacts__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact-item__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  color: var(--color-text-primary);
}

.contact-item__icon svg {
  width: 1.125rem;
  height: 1.125rem;
}

.contact-item--address .contact-item__icon {
  color: var(--color-accent-red);
}

/* Keeps "м. Улица Дыбенко" together on its own line instead of the metro
   name alone getting orphaned by a mid-word wrap; only needed below
   desktop, where the card isn't wide enough to fit it inline. */
.contact-address__break {
  display: inline;
}

@media (min-width: 1024px) {
  .contact-address__break {
    display: none;
  }
}

@media (max-width: 767px) {
  /* Force the badge to break before "и Санкт-Петербурге" instead of
     letting the browser wrap mid-word inside "Санкт-Петербурге". */
  .hero__badge-break {
    display: block;
  }

  /* Force the announcement bar to break before "м." instead of
     letting the browser wrap it awkwardly after the heading. */
  .announcement-bar__break {
    display: block;
  }

  /* The address is the longest value in the list — below tablet width
     it doesn't fit 2 lines while squeezed next to the icon, so the
     icon moves above the text here to give the address the full
     card width to wrap in. */
  .contact-item--address {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.625rem;
  }

  /* Align the review carousel dots to the left edge instead of centering
     them between the (hidden-width) side columns. */
  .review-carousel__controls {
    grid-template-columns: auto 1fr;
  }

  .review-carousel__dots {
    grid-column: 1;
    justify-self: start;
  }

  .review-carousel__arrows {
    grid-column: 2;
  }

  /* Nudge the footer logo up slightly closer to the top of the frame. */
  .footer__logo {
    margin-top: calc(var(--footer-logo-base) * -0.6);
  }
}

.contact-item__body {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.contact-item__label {
  font-family: var(--font-family-base);
  font-weight: 400;
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.contact-item__value {
  font-family: var(--font-family-base);
  font-weight: var(--fw-bold);
  font-size: 0.9375rem;
  color: var(--color-text-primary);
}

a.contact-item__value {
  text-decoration: none;
}

a.contact-item__value:hover,
a.contact-item__value:focus-visible {
  color: var(--color-accent-red);
}

.contacts__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background: var(--color-accent-red);
  color: var(--color-text-on-accent);
  font-family: var(--font-family-base);
  font-weight: var(--fw-bold);
  font-size: 1rem;
  line-height: 1;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-pill);
  transition: background 0.15s ease, transform 0.1s ease;
}

.contacts__cta:hover,
.contacts__cta:focus-visible {
  background: #D62222;
}

.contacts__cta:active {
  transform: scale(0.97);
}

.contacts__map {
  background: var(--color-card-blue-deep);
  border-radius: 1.75rem;
  overflow: hidden;
  min-height: 18rem;
}

.contacts__map-frame {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 18rem;
  border: 0;
}

/* =========================================================
   FAQ ("Частые вопросы")
   ========================================================= */
.faq {
  background: var(--color-bg-about-wash);
}

.faq__inner {
  max-width: 1440px;
  margin-inline: auto;
  padding: var(--faq-padding-y) var(--section-padding-x);
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.faq__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.faq__kicker {
  margin: 0;
  display: inline-flex;
  align-items: center;
  background: var(--color-kicker-bg-blue);
  color: var(--color-kicker-text-blue);
  font-family: var(--font-family-base);
  font-weight: var(--fw-extrabold);
  font-size: 0.75rem;
  line-height: 1;
  letter-spacing: 0.02em;
  white-space: nowrap;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
}

.faq__title {
  margin: 0;
  font-family: var(--font-family-heading);
  font-weight: var(--fw-bold);
  font-size: var(--faq-title-size);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--color-text-primary);
}

.faq__list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 50rem;
  margin-inline: auto;
  width: 100%;
}

.faq-item {
  background: var(--color-surface);
  border-radius: 1.25rem;
  padding: 1.5rem;
}

.faq-item__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  list-style: none;
}

.faq-item__summary::-webkit-details-marker {
  display: none;
}

.faq-item__question {
  font-family: var(--font-family-base);
  font-weight: var(--fw-bold);
  font-size: 0.9375rem;
  line-height: 1.4;
  color: var(--color-text-primary);
}

.faq-item__icon {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: var(--radius-pill);
  background: var(--color-track-num-bg);
}

.faq-item__icon::before,
.faq-item__icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--color-accent-blue);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.faq-item__icon::before {
  width: 0.625rem;
  height: 2px;
  transform: translate(-50%, -50%);
}

.faq-item__icon::after {
  width: 2px;
  height: 0.625rem;
  transform: translate(-50%, -50%);
}

.faq-item__answer {
  margin: 0.875rem 0 0;
  padding-right: 3rem;
  font-family: var(--font-family-base);
  font-weight: 400;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--color-text-muted);
}

.faq-item[open] .faq-item__icon {
  background: var(--color-kicker-bg);
}

.faq-item[open] .faq-item__icon::before,
.faq-item[open] .faq-item__icon::after {
  background: var(--color-accent-red);
}

.faq-item[open] .faq-item__icon::after {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(90deg);
}

/* =========================================================
   Footer
   ========================================================= */
.footer {
  background: var(--color-bg-sky);
}

.footer__inner {
  max-width: 1440px;
  margin-inline: auto;
  padding: var(--footer-padding-y) var(--section-padding-x);
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.footer__top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

/* ---- Brand (logo + description) ---- */
.footer__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.footer__logo {
  position: relative;
  display: block;
  flex-shrink: 0;
  width: calc(var(--footer-logo-base) * 4.3488);
  height: calc(var(--footer-logo-base) * 1.4884);
  /* The script logo font reserves extra space above its cap-height, so
     without this it visually sits lower than the "МЕНЮ" / "ПРОГРАММЫ" /
     "КОНТАКТЫ" column titles it lines up with. */
  margin-top: calc(var(--footer-logo-base) * -0.2);
}

.footer__logo-text {
  font-family: var(--font-family-logo);
  font-weight: 400;
  font-style: normal;
  white-space: nowrap;
}

.footer__logo-cap,
.footer__logo-word {
  position: absolute;
  top: 0;
  left: 0;
  line-height: normal;
}

.footer__logo-cap {
  font-size: var(--footer-logo-base);
  color: var(--color-accent-red);
  left: calc(var(--footer-logo-base) * 0.0698);
}

.footer__logo-word {
  font-size: calc(var(--footer-logo-base) * 0.7442);
}

.footer__logo-word--top {
  color: var(--color-accent-red);
  left: calc(var(--footer-logo-base) * 1.0233);
  top: calc(var(--footer-logo-base) * 0.2558);
}

.footer__logo-word--bottom {
  color: var(--color-accent-blue);
  left: calc(var(--footer-logo-base) * 2.0233);
  top: calc(var(--footer-logo-base) * 0.6512);
}

.footer__desc {
  margin: 0;
  max-width: 22rem;
  font-family: var(--font-family-base);
  font-weight: 400;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--color-text-muted);
}

/* ---- Nav columns (МЕНЮ / ПРОГРАММЫ / КОНТАКТЫ) ---- */
.footer__col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.footer__col-title {
  margin: 0;
  font-family: var(--font-family-base);
  font-weight: var(--fw-extrabold);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--color-accent-blue);
}

.footer__links {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer__contact-group {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.footer__contact-city {
  margin: 0;
  font-family: var(--font-family-base);
  font-weight: var(--fw-bold);
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.footer__link {
  font-family: var(--font-family-base);
  font-weight: 400;
  font-size: 0.875rem;
  color: var(--color-text-primary);
}

.footer__link:hover,
.footer__link:focus-visible {
  color: var(--color-accent-red);
}

.footer__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent-red);
  color: var(--color-text-on-accent);
  font-family: var(--font-family-base);
  font-weight: var(--fw-bold);
  font-size: 0.875rem;
  line-height: 1;
  white-space: nowrap;
  padding: var(--button-padding-y) var(--button-padding-x);
  border-radius: var(--radius-pill);
  margin-top: 0.25rem;
  transition: background 0.15s ease, transform 0.1s ease;
}

.footer__cta:hover,
.footer__cta:focus-visible {
  background: #D62222;
}

.footer__cta:active {
  transform: scale(0.97);
}

/* ---- Legal disclosure ("Сведения об образовательной организации") ---- */
.footer__divider {
  border: none;
  border-top: 1px solid color-mix(in srgb, var(--color-text-primary) 12%, transparent);
  margin: 0;
}

.footer__legal-title {
  margin: 0 0 1rem;
  font-family: var(--font-family-base);
  font-weight: var(--fw-bold);
  font-size: 0.875rem;
  color: var(--color-text-primary);
}

.footer__legal-cta {
  display: inline-flex;
  align-items: center;
  background: var(--color-surface);
  color: var(--color-text-primary);
  font-family: var(--font-family-base);
  font-weight: var(--fw-medium);
  font-size: 0.875rem;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-pill);
  border: 1px solid color-mix(in srgb, var(--color-text-primary) 12%, transparent);
  transition: border-color 0.15s ease, color 0.15s ease;
}

.footer__legal-cta:hover,
.footer__legal-cta:focus-visible {
  color: var(--color-accent-blue);
  border-color: var(--color-accent-blue);
}

/* ---- Bottom bar ---- */
.footer__bottom {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  font-family: var(--font-family-base);
  font-weight: 400;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

.footer__bottom a {
  color: var(--color-accent-blue);
  text-decoration: underline;
}

.footer__bottom-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
}

.footer__age-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.75rem;
  padding: 0.25rem 0.375rem;
  border-radius: 0.375rem;
  border: 1px solid color-mix(in srgb, var(--color-text-primary) 25%, transparent);
  font-family: var(--font-family-base);
  font-weight: var(--fw-semibold);
  font-size: 0.6875rem;
  color: var(--color-text-muted);
}

/* =========================================================
   Breakpoint: 768 — tablet, still menu-driven, roomier spacing
   ========================================================= */
@media (min-width: 768px) {
  :root {
    --section-padding-x: 2.5rem;   /* 40px */
    --header-padding-y: 1.25rem;  /* 20px */
    --logo-base: 2.125rem;        /* 34px */
    --header-scroll-offset: 6rem;

    --hero-title-size: 2.5rem;    /* 40px */
    --hero-subtitle-size: 1.125rem; /* 18px */
    --hero-visual-max-width: 26rem; /* 416px */

    --goals-title-size: 2.125rem; /* 34px */
    --goals-grid-gap: 1.25rem;    /* 20px */
    --card-title-size: 1.4375rem; /* 23px */

    --about-title-size: 2.125rem; /* 34px */

    --process-title-size: 2.125rem; /* 34px */

    --signup-card-padding: 2.5rem; /* 40px */
    --signup-title-size: 1.875rem; /* 30px */

    --contacts-title-size: 2.125rem; /* 34px */

    --faq-title-size: 2.125rem; /* 34px */

    --footer-logo-base: 1.75rem; /* 28px */
  }

  .header__nav {
    padding: 1.5rem 2.5rem 2rem;
  }

  .goals__lead {
    max-width: none;
  }

  .goals__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tracks {
    flex-direction: row;
    align-items: center;
    gap: 2rem;
  }

  .tracks__head {
    flex-shrink: 0;
    width: 16rem;
  }

  .tracks__list {
    grid-template-columns: repeat(2, 1fr);
    flex: 1;
  }

  .about__stats {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .about__stat {
    width: auto;
  }

  .about__advantages {
    grid-template-columns: repeat(2, 1fr);
  }

  .process__steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__top {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer__brand {
    grid-column: 1 / -1;
  }

  .footer__desc {
    max-width: none;
    width: 100%;
  }
}

/* =========================================================
   Breakpoint: 1024 — full desktop nav appears, burger hides
   ========================================================= */
@media (min-width: 1024px) {
  :root {
    --section-padding-x: 3rem;      /* 48px */
    --header-nav-gap: 1.25rem;     /* 20px */
    --header-actions-gap: 1.125rem;/* 18px */
    --font-size-nav: 0.875rem;     /* 14px */
    --button-padding-x: 1.25rem;   /* 20px */
    --button-padding-y: 0.75rem;   /* 12px */
    --logo-base: 2.375rem;         /* 38px */
    --header-scroll-offset: 6.25rem;

    --hero-title-size: 2.75rem;    /* 44px */
    --hero-btn-padding-x: 2rem;    /* 32px */
    --hero-btn-padding-y: 1rem;    /* 16px */
    --hero-btn-font-size: 1rem;    /* 16px */
    --hero-stat-number-size: 1.5rem; /* 24px */
    --hero-stat-label-size: 0.875rem; /* 14px */
    --hero-stats-gap: 2rem;        /* 32px */
    --hero-visual-max-width: 30rem; /* 480px */

    --goals-padding-y: 4rem;       /* 64px */
    --goals-title-size: 2.375rem;  /* 38px */
    --goals-lead-size: 1.0625rem;  /* 17px */
    --card-title-size: 1.5625rem;  /* 25px */
    --card-price-size: 1.0625rem;  /* 17px */
    --tracks-title-size: 1.625rem; /* 26px */

    --about-padding-y: 4rem;       /* 64px */
    --about-title-size: 2.25rem;   /* 36px */
    --about-stat-number-size: 1.5rem; /* 24px */

    --process-padding-y: 4rem;     /* 64px */
    --process-title-size: 2.25rem; /* 36px */
    --process-subtitle-size: 1.0625rem; /* 17px */

    --signup-padding-y: 3.5rem;    /* 56px */
    --signup-card-padding: 3rem;   /* 48px */
    --signup-title-size: 2rem;     /* 32px */

    --contacts-padding-y: 4rem;      /* 64px */
    --contacts-title-size: 2.375rem; /* 38px */
    --contacts-lead-size: 1.0625rem; /* 17px */

    --faq-padding-y: 4rem;     /* 64px */
    --faq-title-size: 2.25rem; /* 36px */

    --footer-padding-y: 4rem;    /* 64px */
    --footer-logo-base: 1.875rem; /* 30px */
  }

  .goals__head {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
  }

  .goals__lead {
    text-align: right;
  }

  .goals__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }

  .header__nav {
    position: static;
    flex-direction: row;
    align-items: center;
    gap: var(--header-nav-gap);
    background: transparent;
    padding: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    z-index: auto;
  }

  .header__nav-list {
    flex-direction: row;
    align-items: center;
    gap: var(--header-nav-gap);
  }

  .header__actions--mobile {
    display: none;
  }

  .header__actions--desktop {
    display: flex;
  }

  .header__burger {
    display: none;
  }

  .about__inner {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 3.5rem;
  }

  .about__text,
  .about__advantages {
    flex: 1 1 0;
    min-width: 0;
  }

  .about__stat-label {
    /* The 2-column split halves the available width here, too narrow
       for all three labels to stay on one line — let them wrap again. */
    white-space: normal;
  }

  .process__steps {
    grid-template-columns: repeat(4, 1fr);
  }

  .signup__card {
    background: var(--color-bg-tracks);
    border-radius: 2rem;
    padding: var(--signup-card-padding);
    flex-direction: row;
    align-items: flex-start;
    gap: 3rem;
  }

  .signup__form-col,
  .signup__reviews-col {
    background: none;
    border-radius: 0;
    padding: 0;
  }

  .signup__form-col {
    flex: 3 1 0;
    min-width: 0;
  }

  .signup__reviews-col {
    flex: 2 1 0;
    min-width: 0;
  }

  .contacts__head {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
  }

  .contacts__lead {
    text-align: right;
  }

  .contacts__grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer__top {
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 2.5rem;
  }

  .footer__brand {
    grid-column: auto;
  }

  .footer__bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* =========================================================
   Breakpoint: 1440 — exact Figma spec
   ========================================================= */
@media (min-width: 1440px) {
  :root {
    --section-padding-x: 5rem;      /* 80px */
    --header-padding-y: 1.25rem;   /* 20px */
    --header-nav-gap: 1.75rem;     /* 28px */
    --header-actions-gap: 1.5rem;  /* 24px */
    --font-size-nav: 0.9375rem;    /* 15px */
    --button-padding-x: 1.5rem;    /* 24px */
    --button-padding-y: 0.8125rem; /* 13px */
    --logo-base: 2.6875rem;        /* 43px */
    --header-scroll-offset: 6.75rem;

    --hero-padding-y: 3.5rem;      /* 56px, top only */
    --hero-padding-bottom: 5.25rem; /* 84px, bottom — gap to next section */
    --hero-content-gap: 2.1875rem; /* 35px */
    --hero-badge-size: 0.875rem;   /* 14px */
    --hero-title-size: 3rem;       /* 48px */
    --hero-subtitle-size: 1.125rem;/* 18px */
    --hero-btn-padding-x: 2.25rem; /* 36px */
    --hero-btn-padding-y: 1.125rem;/* 18px */
    --hero-btn-font-size: 1rem;    /* 16px */
    --hero-stats-gap: 3rem;        /* 48px */
    --hero-stat-number-size: 1.625rem; /* 26px */
    --hero-stat-label-size: 0.875rem;  /* 14px */

    --goals-padding-y: 6rem;       /* 96px */
    --goals-section-gap: 3rem;     /* 48px */
    --card-price-size: 1.0625rem;  /* 17px */
    --tracks-padding: 2.75rem 3rem;/* 44px 48px */

    --about-padding-y: 6rem;       /* 96px */
    --about-title-size: 2.4375rem; /* 39px */
    --about-stat-number-size: 1.625rem; /* 26px */

    --process-padding-y: 6rem;       /* 96px */
    --process-title-size: 2.4375rem; /* 39px */

    --signup-padding-y: 5rem;        /* 80px */
    --signup-card-padding: 3.5rem;   /* 56px */
    --signup-title-size: 2.125rem;   /* 34px */

    --contacts-padding-y: 6rem;      /* 96px */
    --contacts-title-size: 2.4375rem; /* 39px */

    --faq-padding-y: 6rem;       /* 96px */
    --faq-title-size: 2.4375rem; /* 39px */

    --footer-padding-y: 5rem;     /* 80px */
    --footer-logo-base: 2rem;     /* 32px */
  }

  /* Exact Figma composition: text block left, illustration right,
     both pinned by their precise offsets within the 1440 frame. */
  .hero__inner {
    display: block;
    position: relative;
    height: 36.3125rem; /* 581px — stretched so the 84px gap below always fits */
    padding: 0;
  }

  .hero__content {
    position: absolute;
    left: 5rem; /* 80px */
    top: 3.5rem; /* 56px */
    bottom: 5.25rem; /* 84px — exact gap from last stat row to the frame's bottom edge */
    width: 48.6875rem; /* 779px */
    justify-content: flex-end; /* pins content to the bottom anchor so the 84px gap holds regardless of rendered text height */
  }

  .hero__subtitle {
    max-width: none; /* fill the full 779px column so each <br>-separated sentence stays on one line */
  }

  .hero__visual {
    position: absolute;
    left: 54.4375rem; /* 871px */
    top: 2.625rem;    /* 42px */
    width: 31.5rem;   /* 504px */
    max-width: none;
  }
}

/* =========================================================
   Legal pages (privacy policy, etc.)
   ========================================================= */
.legal {
  background: var(--color-surface-cream);
  padding: 3rem 1.25rem 4rem;
}

.legal__inner {
  max-width: 46rem;
  margin: 0 auto;
}

.legal__draft-note {
  background: var(--color-kicker-bg);
  color: var(--color-text-primary);
  border-radius: 0.75rem;
  padding: 0.875rem 1.125rem;
  font-family: var(--font-family-base);
  font-size: 0.875rem;
  line-height: 1.5;
  margin: 0 0 2rem;
}

.legal__title {
  font-family: var(--font-family-heading);
  font-weight: var(--fw-bold);
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem);
  color: var(--color-text-primary);
  margin: 0 0 0.5rem;
}

.legal__updated {
  font-family: var(--font-family-base);
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin: 0 0 2.5rem;
}

.legal__section {
  margin-bottom: 2rem;
}

.legal__section h2 {
  font-family: var(--font-family-heading);
  font-weight: var(--fw-semibold);
  font-size: 1.125rem;
  color: var(--color-text-primary);
  margin: 0 0 0.75rem;
}

.legal__section p {
  font-family: var(--font-family-base);
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--color-text-card-muted);
  margin: 0 0 0.75rem;
}

.legal__section a {
  color: var(--color-accent-blue);
  text-decoration: underline;
}

.legal--wide .legal__inner {
  max-width: 56rem;
}

.error-404 {
  text-align: center;
  padding: 2rem 0 1rem;
}

.error-404__code {
  font-family: var(--font-family-heading);
  font-weight: var(--fw-bold);
  font-size: clamp(4rem, 3rem + 5vw, 7rem);
  line-height: 1;
  margin: 0 0 1rem;
  background: linear-gradient(90deg, var(--color-accent-blue), var(--color-accent-red));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.error-404__title {
  font-family: var(--font-family-heading);
  font-weight: var(--fw-bold);
  font-size: clamp(1.375rem, 1.15rem + 1vw, 1.75rem);
  color: var(--color-text-primary);
  margin: 0 0 0.75rem;
}

.error-404__desc {
  font-family: var(--font-family-base);
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--color-text-card-muted);
  max-width: 32rem;
  margin: 0 auto 2rem;
}

.error-404__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.svedeniya__toc {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  margin: 0 0 2.5rem;
  padding: 1.25rem;
  background: var(--color-surface);
  border-radius: 1rem;
}

.svedeniya__toc a {
  font-family: var(--font-family-base);
  font-size: 0.8125rem;
  color: var(--color-accent-blue);
  text-decoration: underline;
}

.legal__doclist {
  margin: 0 0 0.75rem;
  padding-left: 1.25rem;
}

.legal__doclist li {
  font-family: var(--font-family-base);
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--color-text-card-muted);
  margin-bottom: 0.375rem;
}

.legal__note {
  font-style: italic;
  color: var(--color-text-muted) !important;
}

/* =========================================================
   Cookie consent banner
   ========================================================= */
.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 40;
  background: var(--color-text-primary);
  border-radius: 1rem;
  box-shadow: var(--shadow-chip);
  padding: 1rem 1.25rem;
}

.cookie-banner__inner {
  max-width: 64rem;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
}

.cookie-banner__text {
  flex: 1 1 20rem;
  font-family: var(--font-family-base);
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--color-surface);
  margin: 0;
}

.cookie-banner__text a {
  color: var(--color-surface);
  text-decoration: underline;
}

.cookie-banner__actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.cookie-banner__accept {
  flex: 0 0 auto;
  background: var(--color-accent-red);
  color: var(--color-text-on-accent);
  border: none;
  border-radius: 999px;
  padding: 0.625rem 1.5rem;
  font-family: var(--font-family-heading);
  font-weight: var(--fw-semibold);
  font-size: 0.875rem;
  cursor: pointer;
}

.cookie-banner__accept:hover,
.cookie-banner__accept:focus-visible {
  opacity: 0.9;
}

.cookie-banner__decline {
  flex: 0 0 auto;
  background: transparent;
  color: var(--color-surface);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  padding: 0.625rem 1.5rem;
  font-family: var(--font-family-heading);
  font-weight: var(--fw-semibold);
  font-size: 0.875rem;
  cursor: pointer;
}

.cookie-banner__decline:hover,
.cookie-banner__decline:focus-visible {
  border-color: var(--color-surface);
}

/* =========================================================
   Announcement bar (new branch)
   ========================================================= */
.announcement-bar {
  background: var(--color-accent-blue);
}

/* Hides the bar before first paint for visitors who already dismissed it —
   the dismissal flag is mirrored onto <html> by a blocking inline script
   in <head>, ahead of announcement-bar.js (deferred), to prevent a flash
   of the bar followed by an abrupt disappearance + header jump. */
html[data-announcement-dismissed='true'] #announcement-bar {
  display: none;
}

.announcement-bar__inner {
  max-width: 1440px;
  margin-inline: auto;
  padding: 0.625rem 2.5rem 0.625rem var(--section-padding-x);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.announcement-bar__text {
  margin: 0;
  font-family: var(--font-family-base);
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--color-text-on-accent);
  text-align: center;
}

.announcement-bar__text a {
  color: var(--color-text-on-accent);
  text-decoration: underline;
  white-space: nowrap;
}

.announcement-bar__close {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--color-text-on-accent);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
}

.announcement-bar__close:hover,
.announcement-bar__close:focus-visible {
  opacity: 0.75;
}

/* =========================================================
   City toggle (shared: Программы + Контакты)
   ========================================================= */
.city-toggle {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem;
  background: var(--color-surface);
  border-radius: var(--radius-pill);
  box-shadow: 0 0.375rem 1rem rgba(32, 36, 75, 0.08);
}

.city-toggle__btn {
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-family-base);
  font-weight: var(--fw-semibold);
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  transition: background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.city-toggle__btn:hover:not(.city-toggle__btn--active) {
  color: var(--color-text-primary);
}

.city-toggle__btn--active {
  background: var(--color-accent-blue);
  color: var(--color-text-on-accent);
}

[data-city-panel][hidden] {
  display: none !important;
}

[data-city-panel] {
  transition: opacity 0.22s ease, transform 0.22s ease;
}

[data-city-panel].city-panel--fade {
  opacity: 0;
  transform: translateY(0.5rem);
}

@media (prefers-reduced-motion: reduce) {
  [data-city-panel] {
    transition: none;
  }
}
