/* ==========================================================================
   StarSchool — landing page styles (Figma color tokens)
   ========================================================================== */

:root {
  /* —— Reference palette —— */
  --bg-dark: #F2D8DE;
  --bg-dark-2: #F5E0E5;
  --bg-off: #EEF2F6;
  --bg-off-2: #F5F7FA;
  --bg-off-11: #EEF2F640;
  --bg-pink: #F2D8DE;
  --bg-pink-soft: #F5E0E5;
  --bg-yellow-soft: #F6EDC2;
  --white: #FFFFFF;
  --black: #000000;
  --bg-fafa: #FAFAFA;
  --bg-gray: #E8E8E8;
  --bg-faq: #FFFBFB;

  /* —— Blues —— */
  --bg-blue: #99B4E3;
  --bg-blue-2: #8AA8D8;
  --bg-blue-3: #A3BEE8;
  --bg-blue-4: #8AA8E0;
  --bg-blue-5: #91B1E1;
  --bg-blue-6: #7FA6DB;
  --bg-blue-7: #8DB0E3;
  --bg-blue-soft: #C8D9F0;
  --bg-blue-pale: #D9E6F5;
  --bg-blue-48: #99B4E378;
  --bg-blue-card: #89AEE2;
  --bg-pink-card: #F9E2E6;

  /* —— Text —— */
  --text-dark: #120528;
  --text-body: #120528;
  --text-muted: rgba(18, 5, 40, 0.65);
  --text-gray: #120528;
  --text-invert: #FFFFFF;
  --text-invert-muted: #D9E6F5;

  /* —— Lines & overlays —— */
  --line: #E3E8EF;
  --line-40: #E3E8EF66;
  --line-dark: #E3E8EF;
  --header-bg: #FFFFFFCC;
  --header-bg-2: #FFFFFFB8;

  /* —— Accents —— */
  --accent-pink: #F2D8DE;
  --accent-blue: #99B4E3;

  /* —— Gradients —— */
  --gradient-hero: #FFFFFF;

  /* Header — Figma «хедер» */
  --header-w: 1128.59px;
  --header-h: 37px;
  --header-top: 35px;
  --header-left: 41.41px;
  --header-stroke: #8AA8E0;
  --header-btn-bg: #8EACE6;
  --header-nav: #120528;
  --hero-glow-w: 1157px;
  --hero-glow-h: 654px;
  --hero-glow-top: 32px;
  --hero-glow-left: 112px;
  --hero-glow-color: rgba(139, 176, 229, 0.72);
  --hero-glow-blur: 270.4px;

  /* Main screen — Figma «главный экран» */
  --main-w: 1127px;
  --main-h: 761px;
  --main-top: 68px;
  --main-left: 41px;
  --hero-logo-frame: 1213px;

  --main-title-color: #120528;
  --main-sub-color: #120528;
  --main-cta-bg: #8AAFE4;
  --stat-accent: #120528;
  --stat-text: #120528;
  --facts-w: 1132px;
  --facts-h: 161px;
  --facts-bg: transparent;
  --stat-students-bg: rgba(247, 216, 224, 0.58);
  --stat-students-w: 396px;
  --stat-students-h: 160px;
  --stat-students-left: 368px;
  --stat-students-radius: 53px;
  --stat-points-bg: rgba(138, 175, 228, 0.1);
  --stat-points-w: 328px;
  --stat-points-h: 132px;
  --stat-points-top: 14px;
  --stat-points-radius: 44px;
  --stat-blue-bg: rgba(199, 222, 255, 0.17);
  --stat-blue-w: 328px;
  --stat-blue-h: 131px;
  --stat-blue-top: 15px;
  --stat-blue-left: 804px;
  --gradient-radial-purple-blue: radial-gradient(50% 50% at 50% 50%, rgba(153, 180, 227, 0.28) 0%, rgba(238, 242, 246, 0.85) 100%);
  --gradient-radial-warm: radial-gradient(50% 50% at 50% 50%, rgba(242, 216, 222, 0.75) 0%, rgba(200, 217, 240, 0.75) 100%);
  --gradient-radial-warm-70: radial-gradient(50% 50% at 50% 50%, rgba(242, 216, 222, 0.55) 0%, rgba(200, 217, 240, 0.55) 100%);

  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --shadow-soft: 0 20px 45px -20px rgba(153, 180, 227, 0.28);
  --shadow-card: 0 2px 0 rgba(153, 180, 227, 0.08), 0 18px 40px -24px rgba(153, 180, 227, 0.18);
  --shadow-blue: 0 10px 24px -10px rgba(153, 180, 227, 0.45);
  --container: 1160px;
  --page-gutter: 24px;
  --font-display: "Golos Text", "Golos", sans-serif;
  --font-body: "Golos Text", "Golos", sans-serif;
  --font-bio: "Golos Text", "Golos", sans-serif;
  --font-script: "Golos Text", "Golos", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--bg-off);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.is-loading {
  overflow: hidden;
}

/* ============================= PRELOADER ============================= */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse 70% 55% at 50% 45%, rgba(251, 214, 222, 0.9) 0%, transparent 68%),
    #F8E6EB;
  transition: opacity 0.55s ease, visibility 0.55s ease;
}

.preloader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.preloader__logo {
  width: min(280px, 62vw);
  height: auto;
  animation: preloader-logo 1.4s cubic-bezier(0.22, 1, 0.36, 1) both;
  filter: drop-shadow(0 14px 32px rgba(67, 43, 39, 0.12));
}

.preloader__bar {
  width: min(140px, 36vw);
  height: 3px;
  border-radius: 999px;
  background: rgba(138, 168, 224, 0.28);
  overflow: hidden;
}

.preloader__bar span {
  display: block;
  width: 40%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #8BB0E5, #F2D8DE);
  animation: preloader-bar 1.1s ease-in-out infinite;
}

@keyframes preloader-logo {
  0% {
    opacity: 0;
    transform: scale(0.86) translateY(12px);
  }
  55% {
    opacity: 1;
    transform: scale(1.03) translateY(0);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes preloader-bar {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(320%); }
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }
h1,h2,h3,h4,h5,h6 { font-family: var(--font-display); margin: 0; font-weight: 500; }
p { margin: 0; }

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--page-gutter);
}

.accent-script {
  color: inherit;
  font-family: inherit;
  font-style: normal;
  font-weight: 400;
}

.accent-script,
.benefits-title__script,
.teachers-title__script,
.pricing-title__script,
.formats-title__script,
.reviews-title__script,
.boards-title__script,
.faq-title__script,
.final-cta-title__script,
.free-lesson__title-script,
.directions-title__script,
.directions-head .accent-script {
  font-family: inherit;
  font-style: normal;
  font-weight: 400;
  font-size: inherit;
  display: inline;
  position: static;
  top: auto;
  margin: 0;
  padding: 0;
  vertical-align: baseline;
  line-height: inherit;
  letter-spacing: inherit;
  transform: none;
}

.benefits-title__script.accent-script,
.benefits-title__script {
  font-size: inherit !important;
  position: static;
  top: auto;
}
.accent {
  font-style: italic;
  font-weight: 800;
}
.accent-pink { color: var(--bg-blue); }
.accent-blue { color: var(--bg-blue-6); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--bg-blue);
  border-radius: 2px;
}
.eyebrow--pill {
  text-transform: lowercase;
  letter-spacing: .06em;
  font-weight: 600;
  font-size: 14px;
  color: var(--text-dark);
  border: 1.5px solid var(--bg-blue);
  border-radius: 999px;
  padding: 8px 18px;
  margin-bottom: 18px;
}
.eyebrow--pill::before { display: none; }
.section--dark .eyebrow { color: var(--text-muted); }

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 34px);
  line-height: 1.1;
  font-weight: 500;
  letter-spacing: -0.07em;
  margin-bottom: 14px;
  color: #120528;
}
.section-sub {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-body);
  max-width: 560px;
}
.section--dark .section-sub { color: var(--text-body); }

.head-block { margin-bottom: 48px; }
.head-block.center { text-align: center; margin-left: auto; margin-right: auto; }
.head-block.center .section-sub { margin-left: auto; margin-right: auto; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  border: none;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--bg-blue);
  color: var(--white);
  box-shadow: var(--shadow-blue);
}
.btn-primary:hover { background: var(--bg-blue-2); }

.btn-light {
  background: var(--bg-pink-soft);
  color: var(--text-dark);
  box-shadow: 0 10px 24px -10px rgba(242, 216, 222, 0.75);
}
.btn-light:hover { background: var(--bg-pink); }

.btn-dark {
  background: var(--bg-pink);
  color: var(--text-dark);
  box-shadow: 0 10px 24px -10px rgba(242, 216, 222, 0.85);
}
.btn-dark:hover { background: var(--bg-pink-soft); }

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--line-dark);
  color: var(--text-invert);
}
.btn-white {
  background: var(--white);
  color: var(--text-dark);
  box-shadow: var(--shadow-card);
}
.btn-block { width: 100%; }

/* ============================= HEADER ============================= */
.hero-shell {
  position: relative;
  background: #FFFFFF;
  margin-top: 0;
  padding-top: 0;
  overflow: hidden;
  border: none;
  box-shadow: none;
  outline: none;
}

/* Figma «свечение»: #8BB0E5 — выше и ярче, без размытия на 270px */
.hero-glow {
  position: absolute;
  top: 70px;
  left: 50%;
  width: 980px;
  height: 480px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse 60% 55% at 50% 38%,
    rgba(139, 176, 229, 0.68) 0%,
    rgba(139, 176, 229, 0.32) 38%,
    rgba(139, 176, 229, 0) 70%);
  filter: blur(28px);
  pointer-events: none;
  z-index: 0;
}

.hero-shell .main-screen {
  position: relative;
  z-index: 1;
}

/* ============================= MAIN SCREEN ============================= */
.main-screen {
  position: relative;
  width: min(var(--main-w), calc(100% - 48px));
  min-height: var(--main-h);
  margin: var(--main-top) auto 40px;
  padding: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.main-screen__hero {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding-top: 48px;
  text-align: center;
}

.main-lettering {
  position: relative;
  width: min(994px, 94%);
  margin: 0 auto 8px;
}

.main-logo {
  display: block;
  width: 89%;
  height: auto;
  margin: 28px auto 0;
  object-fit: contain;
  background: transparent;
}

.main-star {
  position: absolute;
  object-fit: contain;
  pointer-events: none;
}

.main-star--left {
  left: 0;
  top: 18%;
  width: 12%;
  height: auto;
}

.main-star--right {
  right: 2%;
  top: 0;
  width: 8%;
  height: auto;
}

.main-star--mini {
  right: 0;
  top: 16%;
  width: 3.2%;
  height: auto;
}

.main-tagline {
  margin: 0 0 8px;
  max-width: 450px;
  font-family: var(--font-body);
  font-size: clamp(28px, 4.1vw, 47px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.07em;
  text-align: center;
  color: var(--main-title-color);
}

.main-sub {
  margin: 0 0 24px;
  width: min(338px, 100%);
  max-width: 338px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 19px;
  letter-spacing: -0.04em;
  text-align: center;
  color: #120528;
}

.main-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(373px, 100%);
  min-height: 65px;
  padding: 18px 44px;
  margin: 0 0 48px;
  border: 1.3px solid #FFFFFF;
  border-radius: 999px;
  background: var(--main-cta-bg);
  color: #FFFFFF;
  font-family: var(--font-display);
  font-size: clamp(18px, 2.2vw, 26px);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.05em;
  white-space: nowrap;
  text-decoration: none;
  box-shadow: none;
  box-sizing: border-box;
  transition: background 0.15s ease;
}

.main-cta:hover {
  background: #7FA3DB;
  transform: none;
}

.main-cta__arrow {
  position: relative;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #FFFFFF;
}

.main-cta__arrow::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 7px;
  height: 7px;
  border-right: 2px solid var(--main-cta-bg);
  border-bottom: 2px solid var(--main-cta-bg);
  transform: translate(-60%, -50%) rotate(-45deg);
}

/* ============================= FACTS / STATS (Figma «факты о школе») ============================= */
.school-facts {
  position: relative;
  width: 100%;
  max-width: var(--facts-w);
  aspect-ratio: 1132 / 161;
  height: auto;
  margin-top: auto;
  background: transparent;
  container-type: inline-size;
  container-name: facts;
}

.stat-card {
  position: absolute;
  border: 1px solid #FFFFFF;
  border-radius: 25px;
  padding: 0;
  margin: 0;
  box-shadow: none;
  box-sizing: border-box;
  overflow: hidden;
  text-align: center;
}

.stat-card__num {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(24px, 3.1cqw, 38px);
  line-height: 1.3;
  letter-spacing: -0.07em;
  color: var(--stat-text);
  white-space: nowrap;
}

.stat-card__desc {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(13px, 1.77cqw, 20px);
  line-height: 1;
  letter-spacing: -0.06em;
  color: var(--stat-text);
  text-align: center;
}

/* Left — Figma #3: +34 балла */
.stat-card--points {
  left: 0;
  top: calc(14 / 161 * 100%);
  width: calc(328 / 1132 * 100%);
  height: calc(132 / 161 * 100%);
  background: var(--stat-points-bg);
  border-radius: var(--stat-points-radius);
}

.stat-card--points .stat-card__num {
  top: calc(14 / 132 * 100%);
}

.stat-card--points .stat-card__desc {
  top: calc(61 / 132 * 100%);
  width: calc(230 / 328 * 100%);
}

/* Center — Figma #2: 1247 учеников */
.stat-card--students {
  left: calc(368 / 1132 * 100%);
  top: 0;
  width: calc(396 / 1132 * 100%);
  height: 100%;
  background: var(--stat-students-bg);
  border-radius: var(--stat-students-radius);
  z-index: 1;
}

.stat-card--students .stat-card__num {
  top: calc(19 / 160 * 100%);
  font-size: clamp(26px, 3.3cqw, 38px);
}

.stat-card--students .stat-card__desc {
  top: calc(89 / 160 * 100%);
  width: calc(339 / 396 * 100%);
  font-size: clamp(14px, 2.2cqw, 25px);
  line-height: 1.1;
}

/* Right — Figma #1: 87 процентов */
.stat-card--blue {
  left: calc(804 / 1132 * 100%);
  top: calc(15 / 161 * 100%);
  width: calc(328 / 1132 * 100%);
  height: calc(131 / 161 * 100%);
  background: var(--stat-blue-bg);
  border-radius: 44px;
}

.stat-card--blue .stat-card__num {
  top: calc(13 / 131 * 100%);
}

.stat-card--blue .stat-card__desc {
  top: calc(61 / 131 * 100%);
  width: calc(261 / 328 * 100%);
}

/* ============================= HEADER ============================= */
.site-header--hero {
  position: absolute;
  z-index: 50;
  top: var(--header-top);
  left: calc(50% - var(--hero-logo-frame) / 2 + var(--header-left));
  width: min(var(--header-w), calc(100% - 48px));
  height: var(--header-h);
  margin: 0;
  padding: 0;
  background: transparent;
  border: none;
  box-sizing: border-box;
}

@media (max-width: 1212px) {
  .site-header--hero {
    left: 24px;
    right: 24px;
    width: auto;
  }
}

.header-bar {
  display: flex;
  align-items: center;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  gap: 0;
}

.header-logo {
  display: flex;
  align-items: center;
  height: var(--header-h);
  line-height: 0;
  flex-shrink: 0;
}

.header-logo img {
  display: block;
  height: 46px;
  width: auto;
  object-fit: contain;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 48px;
  margin: 0 0 0 30px;
  padding: 0;
  flex-shrink: 0;
}

.header-nav a {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.05em;
  color: var(--header-nav);
  text-transform: none;
  white-space: nowrap;
  transition: color 0.15s ease;
}

.header-nav a:hover {
  color: #2E1E1B;
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 100%;
  margin-left: auto;
  flex-shrink: 0;
}

.header-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: var(--header-h);
  padding: 0 18px;
  margin: 0;
  border: none;
  border-radius: 999px;
  background: var(--header-btn-bg);
  color: #FFFFFF;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  box-shadow: none;
  transition: background 0.15s ease;
}

.header-btn:hover {
  background: #7A9CD9;
  transform: none;
}

.burger {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  width: 40px;
  height: 40px;
  position: relative;
  z-index: 60;
  cursor: pointer;
}

.burger span,
.burger span::before,
.burger span::after {
  content: "";
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease, top 0.2s ease;
  position: relative;
  margin: 0 auto;
}

.burger span::before { position: absolute; top: -7px; left: 0; }
.burger span::after { position: absolute; top: 7px; left: 0; }

.header-nav__cta {
  display: none;
}

.nav-backdrop {
  display: none;
}

/* legacy logo helpers (footer etc.) */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo--img {
  border: none;
  padding: 0;
  background: transparent;
  line-height: 0;
}

.logo--img img {
  height: var(--header-h);
  width: auto;
  display: block;
}

.logo--pill {
  border: 1.5px solid var(--bg-blue);
  border-radius: 999px;
  padding: 10px 22px;
}

.logo-word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  color: var(--text-dark);
  letter-spacing: -0.02em;
}

/* ============================= GENERIC SECTION ============================= */
.section {
  padding: clamp(48px, 6vh, 96px) 0;
}
.section--off { background: var(--bg-off); }
.section--white { background: var(--white); }
.section--dark { background: var(--bg-faq); color: var(--text-dark); }
.section--pink { background: var(--bg-pink); }

.icon-badge {
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.icon-badge img { width: 100%; height: 100%; object-fit: contain; }
.icon-badge.sm { width: 40px; height: 40px; }
.icon-badge.lg { width: 84px; height: 84px; }

/* ============================= BENEFITS (Figma «преимущества блок» 1193.89×933) ============================= */
.benefits-section {
  padding: clamp(40px, 5vh, 72px) 0;
  background: var(--white);
}

.benefits-block {
  position: relative;
  width: min(1170px, calc(100% - 48px));
  min-height: auto;
  margin: 0 auto;
  box-sizing: border-box;
}

.benefits-section .section-heading {
  font-size: clamp(30px, 4.2vw, 44px);
  max-width: 620px;
  line-height: 1.12;
  color: var(--stat-text);
}

/* Figma sub: Montserrat 400 / 20px / lh 130% / -7%, 665×52 */
.benefits-section .section-sub {
  max-width: 665px;
  margin: 0;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.06em;
  color: #120528;
}

.benefits-head {
  display: block;
  margin-bottom: 36px;
  position: relative;
  z-index: 1;
  padding-right: min(420px, 36%);
}

/* Figma «преимущества плашка»: 214×42, chevron in circle */
.benefits-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 214px;
  height: 42px;
  padding: 4px 5px 4px 18px;
  margin: 0 auto 18px;
  border: 1px solid #8AAFE4;
  border-radius: 999px;
  background: rgba(245, 248, 252, 0.9);
  box-sizing: border-box;
  font-family: var(--font-body);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.05em;
  text-transform: lowercase;
  color: #120528;
  line-height: 1.3;
  text-decoration: none;
  cursor: pointer;
}

.benefits-pill__chev {
  position: relative;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border: 1px solid #8AAFE4;
  border-radius: 50%;
  box-sizing: border-box;
}

.benefits-pill__chev::after {
  content: "";
  position: absolute;
  top: 11px;
  left: 50%;
  width: 7px;
  height: 7px;
  margin-left: -3.5px;
  border-right: 1.5px solid #120528;
  border-bottom: 1.5px solid #120528;
  transform: rotate(45deg);
}

/* Figma: Montserrat 500 / 38px */
.benefits-title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  margin: 0 0 16px;
  max-width: 734px;
  font-family: var(--font-display);
  font-size: clamp(28px, 3.2vw, 38px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.06em;
  color: #120528;
  overflow: visible;
}

.benefits-title__main {
  display: block;
  max-width: 100%;
  line-height: 1.15;
  white-space: nowrap;
}

/* «гарантией результата» — одна строка */
.benefits-title__line2 {
  display: block;
  margin: 0;
  line-height: 1.15;
  white-space: nowrap;
}

.benefits-title__plain {
  white-space: nowrap;
  flex-shrink: 0;
}

/* Figma «гарантией»: Bikham Cyr Script 400 / 76px / lh 100% / ls 0% */
.benefits-title__script {
  font-family: var(--font-script);
  font-size: 48px !important;
  font-weight: 400;
  font-style: normal;
  line-height: 1;
  letter-spacing: 0;
  color: #432B27;
  display: inline-block;
  position: relative;
  top: 2px;
  margin: 0;
  width: auto;
  height: auto;
  flex-shrink: 0;
  vertical-align: baseline;
  object-fit: unset;
  white-space: nowrap;
}

/* Figma «3д элемент» — картинка уже с синей обводкой */
.benefits-deco {
  position: absolute;
  top: -40px;
  right: -40px;
  left: auto;
  width: 350px;
  height: 312px;
  max-width: min(350px, 34%);
  flex-shrink: 0;
  border: none;
  outline: none;
  box-shadow: none;
  border-radius: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  margin: 0;
  box-sizing: border-box;
  z-index: 0;
  pointer-events: none;
  overflow: visible;
  transform: rotate(-18deg);
}
.benefits-deco img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border: none;
  outline: none;
  transform: none;
}

/* внешний свет / блюр на фоне блока преимуществ */
.benefits-blob {
  display: block;
  position: absolute;
  left: 50%;
  top: 40px;
  width: min(1166px, 140%);
  height: auto;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 0;
}

.benefits-blob img {
  display: block;
  width: 100%;
  height: auto;
  filter: blur(48px);
}

.benefits-layout {
  display: grid;
  grid-template-columns: minmax(0, 520px) minmax(0, 498px);
  gap: 22px 67px;
  align-items: start;
  width: 100%;
  position: relative;
  z-index: 2;
}

.benefits-col {
  display: flex;
  flex-direction: column;
  gap: 30px;
  min-width: 0;
}

.benefits-col--right {
  gap: 20px;
  position: relative;
}

.benefits-col--right::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -8%;
  width: 120%;
  height: 108%;
  transform: translateX(-50%);
  background:
    radial-gradient(ellipse 70% 38% at 50% 12%, rgba(255, 229, 238, 0.95) 0%, transparent 72%),
    radial-gradient(ellipse 85% 42% at 50% 48%, rgba(139, 176, 229, 0.55) 0%, transparent 70%),
    radial-gradient(ellipse 75% 38% at 50% 88%, rgba(247, 216, 224, 0.75) 0%, transparent 72%);
  filter: blur(42px);
  pointer-events: none;
  z-index: 0;
}

.benefits-col--right > * {
  position: relative;
  z-index: 1;
}

.benefits-bento {
  display: none;
}

.bento-card--tall { grid-area: tall; }
.bento-card--fipi { grid-area: fipi; }
.bento-card--video { grid-area: video; }
.bento-card--chat { grid-area: chat; }
.bento-card--fgos { grid-area: fgos; }
.bento-card--contact { grid-area: contact; }
.bento-cta { grid-area: cta; }

.bento-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.bento-card {
  background: transparent;
  border: 1px solid #FFFFFF;
  border-radius: 39px;
  padding: 26px 24px;
  position: relative;
  overflow: hidden;
  box-shadow: none;
  box-sizing: border-box;
}

.bento-card h3 {
  font-size: 15px;
  font-weight: 800;
  line-height: 1.38;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.bento-card p,
.bento-card__lead,
.bento-card__text {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.06em;
  color: #120528;
}

.bento-card__icon {
  width: 35px;
  height: 35px;
  margin-bottom: 14px;
}
.bento-card__icon--sm {
  width: 35px;
  height: 35px;
  margin-bottom: 12px;
}
.bento-card__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 1;
}

.bento-card__icon img[src$=".svg"],
.bento-feature-row .bento-feature img[src$=".svg"] {
  image-rendering: auto;
}

/* Figma «карточка»: 360×452 */
.bento-card--tall {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  width: 360px;
  max-width: 100%;
  height: 452px;
  box-sizing: border-box;
  padding: 65px 14px 40px 21px;
  background: transparent;
  border-radius: 39px;
}

.bento-card--tall .bento-card__icon {
  width: 35px;
  height: 35px;
  margin-bottom: 13px;
}

.bento-card--tall .bento-card__lead {
  max-width: 259px;
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.06em;
  color: #120528;
}

/* Figma Rectangle 533 / 728: 332×63, white pills */
.bento-feature-rows {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 332px;
  max-width: 100%;
  margin-top: auto;
}

.bento-feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  column-gap: 8px;
  width: 332px;
  max-width: 100%;
  height: 63px;
  box-sizing: border-box;
  padding: 0 14px 0 16px;
  background: #ffffff;
  border-radius: 83px;
}

.bento-feature-row--alt {
  border-radius: 107px;
}

.bento-feature-row .bento-feature {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.04em;
  color: #432B27;
}

.bento-feature-row .bento-feature img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex-shrink: 0;
  opacity: 1;
}

.bento-feature-row .bento-feature span {
  min-width: 0;
}

/* Figma «# карточка» ФИПИ: 740×214, radius 25 */
.bento-card--fipi {
  width: 100%;
  max-width: 740px;
  height: 214px;
  min-height: 0;
  flex: unset;
  padding: 0;
  overflow: hidden;
  background: transparent;
  border-radius: 39px;
  position: relative;
  z-index: 3;
  box-sizing: border-box;
}

.bento-card--fipi .bento-card__icon {
  position: absolute;
  left: 24px;
  top: 35px;
  width: 35px;
  height: 35px;
  margin: 0;
  z-index: 1;
}

/* Figma: 383×48, left 24, top 113, Gotham 400 / 16 / lh 100% / −7% / #432B27 */
.bento-card--fipi .bento-card__text {
  position: absolute;
  left: 24px;
  top: 113px;
  width: 383px;
  max-width: 383px;
  height: 48px;
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.07em;
  color: #120528;
  z-index: 1;
}

/* Container внутри карточки, обрезан по radius 25 */
.bento-card--fipi::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -40px;
  width: 379px;
  height: 279px;
  background: url("assets/benefits-blob.png") center / contain no-repeat;
  opacity: 0.75;
  transform: rotate(12deg);
  transform-origin: center center;
  pointer-events: none;
  z-index: 0;
}

.bento-card--fipi .bento-card__icon,
.bento-card--fipi .bento-card__text {
  z-index: 1;
}

/* Figma video card: 377.27×207.94 */
.bento-card--video {
  width: 100%;
  height: 208px;
  flex: unset;
  padding: 26px 36px 28px;
  background: transparent;
  border-radius: 39px;
}

.bento-card--video::after { display: none; }

.bento-card--video .bento-card__icon {
  margin-bottom: 16px;
}

.bento-card--video .bento-card__text {
  max-width: 300px;
}

/* Figma chat card: 363×214 */
.bento-card--chat {
  width: 100%;
  height: 214px;
  flex: unset;
  padding: 33px 28px 28px 23px;
  background: transparent;
  border-radius: 39px;
  align-self: end;
}

.bento-card--chat .bento-card__icon {
  margin-bottom: 16px;
}

.bento-card--chat .bento-card__text {
  max-width: 310px;
}

/* Figma FGOS: 740×214 */
.bento-card--fgos {
  width: 100%;
  max-width: 740px;
  height: 214px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 0;
  padding: 35px 28px 28px 23px;
  background: rgba(139, 176, 229, 0.45);
  border: 1px solid #FFFFFF;
  border-radius: 25px;
  flex: unset;
  overflow: hidden;
}

.bento-card--fgos::after {
  content: "";
  position: absolute;
  right: -8%;
  top: 50%;
  transform: translateY(-50%);
  width: min(420px, 58%);
  height: 120%;
  background: url("assets/benefits-fgos-blob.png") right center / contain no-repeat;
  pointer-events: none;
  z-index: 0;
  opacity: 0.95;
}

.bento-card--fgos .bento-card__icon {
  margin-bottom: 16px;
  flex-shrink: 0;
  width: 35px;
  height: 35px;
  background: transparent;
  border-radius: 0;
  padding: 0;
  position: relative;
  z-index: 1;
}

.bento-card--fgos .bento-card__icon img {
  filter: none;
  opacity: 1;
  width: 35px;
  height: 35px;
}

.bento-card--fgos .bento-card__text {
  position: relative;
  z-index: 1;
  max-width: 360px;
  color: #432B27;
}

/* Figma contact: 362×146, radius 25, #F7D8E0 */
.bento-card--contact {
  width: 100%;
  height: 146px;
  box-sizing: border-box;
  padding: 32px 24px;
  background: #F7D8E0;
  border-radius: 25px;
  flex: unset;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.bento-card--contact .bento-card__text {
  max-width: 325px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.06em;
  color: #120528;
}

.bento-card__icon--light img {
  filter: none;
  opacity: 1;
}

.bento-features {
  display: none;
}

/* Figma «кнопка»: 165×40 — по центру под карточкой контакта */
.bento-cta {
  width: 165px;
  height: 40px;
  max-width: 100%;
  justify-content: center;
  align-items: center;
  gap: 0;
  padding: 0;
  font-size: 14px;
  font-weight: 600;
  border: none;
  outline: none;
  border-radius: 999px;
  flex-shrink: 0;
  box-shadow: none;
  justify-self: center;
  text-align: center;
  margin-top: -48px;
}

.bento-cta .btn-arrow {
  width: 34px;
  height: 34px;
  border: none;
  outline: none;
  box-shadow: none;
  background: #FFFFFF;
}

.btn-arrow {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #FFFFFF;
  border: none;
  outline: none;
  box-shadow: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.btn-arrow::after {
  content: "";
  width: 7px;
  height: 7px;
  border-top: 2px solid var(--bg-blue);
  border-right: 2px solid var(--bg-blue);
  border-left: none;
  border-bottom: none;
  transform: rotate(45deg) translate(-1px, 1px);
}

/* Legacy b-card (other sections) */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.b-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 30px 28px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--line);
}
.b-card .icon-badge { margin-bottom: 18px; }
.b-card h3 { font-size: 17px; font-weight: 800; margin-bottom: 8px; }
.b-card p { font-size: 14.5px; line-height: 1.6; color: var(--text-body); }
.b-card.wide {
  grid-column: span 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  border: none;
}
.b-card.wide .txt { max-width: 480px; }
.b-card.wide h3 { font-size: 19px; }
.benefits-head .icon-badge.deco { width: 92px; height: 92px; }

/* ============================= CTA BANNER (pink) ============================= */
/* Figma Rectangle 712: 1081×151, #F7D8E0, left 59 / top 1904 */
.ready-banner-section {
  padding: 100px 24px 56px; /* место под выступ звезды сверху (~81px) */
  background: var(--white);
  position: relative;
}

.ready-banner {
  position: relative;
  box-sizing: border-box;
  width: 884px;
  max-width: 100%;
  height: 151px;
  margin: 0 auto;
  padding: 0;
  background: #F7D8E0;
  border: 1px solid #FFFFFF;
  border-radius: 25px;
  overflow: visible;
  box-shadow: 0 0 34px rgba(247, 216, 224, 0.9);
}

/* Заголовок top 1929 → +25; подзаголовок top 1976 → +72 */
.ready-banner__text {
  position: absolute;
  left: 50%;
  top: 25px;
  transform: translateX(-50%);
  width: 532px;
  max-width: calc(100% - 280px);
  text-align: center;
  color: #120528;
  z-index: 1;
}

.ready-banner__text h3 {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 500;
  letter-spacing: -0.07em;
  line-height: 1.1;
  margin: 0 0 10px;
  color: #120528;
}

.ready-banner__text p {
  font-family: var(--font-display);
  color: #120528;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.22;
  letter-spacing: -0.07em;
  margin: 0;
}

.ready-banner__icon {
  position: absolute;
  padding: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  transform: none;
}

.ready-banner__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* галочка / 3д: 135×135, left 164→+105, top 1920→+16, border 3px #8BB0E5 */
.ready-banner__icon--left {
  left: 105px;
  top: 16px;
  width: 135px;
  height: 135px;
  border: 3px solid #8BB0E5;
  padding: 6px;
}

/* 3д элемент: 232×232, left 873→+814, top 1823→−81, border 3px #8BB0E5 */
.ready-banner__icon--right {
  right: -40px;
  left: auto;
  top: -81px;
  width: 232px;
  height: 232px;
  border: none;
  padding: 0;
  background: transparent;
  z-index: 2;
}

.ready-banner__more {
  position: absolute;
  left: 50%;
  bottom: -18px;
  transform: translateX(-50%);
  width: 36px;
  height: 36px;
  z-index: 3;
}

.ready-banner__more img {
  width: 36px;
  height: 36px;
  display: block;
}

/* ============================= DIRECTIONS ============================= */
/* Figma «направления блок»: 1124×902 */
.directions-section {
  padding: clamp(48px, 6vh, 80px) 0;
  background:
    radial-gradient(ellipse 60% 50% at 15% 40%, rgba(247, 216, 224, 0.55) 0%, transparent 70%),
    radial-gradient(ellipse 55% 45% at 85% 55%, rgba(139, 176, 229, 0.28) 0%, transparent 70%),
    #FFFBFB;
  overflow: visible;
}

.directions-block {
  position: relative;
  width: 1124px;
  max-width: calc(100% - 48px);
  min-height: 902px;
  margin: 0 auto;
  box-sizing: border-box;
}

.directions-block::before {
  content: "";
  position: absolute;
  left: 38%;
  top: 28%;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(139, 176, 229, 0.32) 0%, rgba(139, 176, 229, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

.directions-head {
  margin-bottom: 36px;
  max-width: 100%;
  overflow: visible;
}

.directions-pill {
  border: 3px solid #8AA8E0;
  background: transparent;
  padding: 4px 16px;
  font-size: 14px;
  margin-bottom: 16px;
}

.directions-head .section-heading,
.directions-title {
  max-width: 100%;
  width: 100%;
  font-size: clamp(24px, 3.2vw, 40px);
  font-weight: 500;
  letter-spacing: -0.07em;
  line-height: 1.15;
  color: #432B27;
  box-sizing: border-box;
  margin-bottom: 0;
}

.directions-title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  overflow: visible;
}

.directions-title__dash,
.directions-title__result,
.directions-title__br,
.directions-title__line2,
.directions-title__script {
  display: none;
}

.directions-title__main {
  display: block;
  max-width: 100%;
  margin: 0;
  line-height: 1.15;
  white-space: nowrap;
}

.directions-title__line3 {
  display: block;
  margin: 0.06em 0 0;
  line-height: 1.15;
  white-space: nowrap;
  max-width: 100%;
}

.directions-title__plain {
  white-space: nowrap;
}

.directions-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.dir-tabs {
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: sticky;
  top: 100px;
}

.dir-tabs__track {
  display: contents;
}

.dir-tab {
  text-align: left;
  padding: 14px 20px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 14px;
  line-height: 1.3;
  letter-spacing: -0.03em;
  color: #120629;
  background: #F3F4F6;
  border: none;
  box-shadow: none;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, box-shadow .2s ease;
}

.dir-tab.is-active,
.dir-tab.active {
  background: #8BB0E5;
  color: #FFFFFF;
  box-shadow: 0 8px 28px rgba(139, 176, 229, 0.45);
}

.dir-tab:not(.is-active):not(.active):hover {
  background: #F5F6F6;
}

.dir-panels {
  position: relative;
  min-height: 560px;
}

.dir-panel {
  display: none;
}

.dir-panel.is-active {
  display: block;
}

.dir-mosaic {
  position: relative;
  display: grid;
  gap: 14px 16px;
  min-height: 540px;
}

.dir-arrows {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.9;
}

.dir-card {
  position: relative;
  z-index: 1;
  background: #F5F6F6;
  border-radius: 22px;
  padding: 20px 22px;
  box-shadow: 0 10px 28px rgba(18, 6, 41, 0.05);
}

.dir-card h3 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.2;
  margin: 0 0 8px;
  color: #432B27;
}

.dir-card p {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: -0.03em;
  color: #5E504E;
  margin: 0;
}

.dir-card--offset-blue {
  background: #FFFFFF;
  box-shadow:
    -10px 12px 0 0 #8BB0E5,
    0 8px 28px rgba(67, 43, 39, 0.07);
}

.dir-card--offset-pink {
  box-shadow:
    10px 12px 0 0 #F7D8E0,
    0 8px 28px rgba(67, 43, 39, 0.07);
}

.dir-media {
  position: relative;
  z-index: 1;
  margin: 0;
  border-radius: 22px;
  overflow: hidden;
}

.dir-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.dir-media--offset-blue::before,
.dir-media--offset-pink::before {
  content: "";
  position: absolute;
  inset: 10px -12px -12px 12px;
  border-radius: 22px;
  z-index: -1;
}

.dir-media--offset-blue::before { background: #8BB0E5; }
.dir-media--offset-pink::before { background: #F7D8E0; inset: 12px -14px -14px 10px; }

.dir-media--tilt {
  transform: rotate(-4deg);
}

.dir-media--tilt::before {
  transform: rotate(2deg);
}

/* —— ЕГЭ mosaic —— */
.dir-mosaic--ege {
  grid-template-columns: 1.05fr 0.95fr 1.15fr;
  grid-template-rows: auto auto auto auto;
  grid-template-areas:
    "a lesson lesson"
    "b lesson lesson"
    "chat lesson lesson"
    "c c desk";
}

.dir-mosaic--ege .dir-card--a { grid-area: a; align-self: start; }
.dir-mosaic--ege .dir-media--lesson {
  grid-area: lesson;
  min-height: 280px;
  max-height: 340px;
  border-radius: 24px;
}
.dir-mosaic--ege .dir-card--b { grid-area: b; align-self: start; max-width: 280px; }
.dir-mosaic--ege .dir-card--offset-blue {
  box-shadow: 0 10px 28px rgba(18, 6, 41, 0.05);
}
.dir-mosaic--ege .dir-chat--ege { grid-area: chat; align-self: start; max-width: 340px; }
.dir-mosaic--ege .dir-card--c { grid-area: c; align-self: start; max-width: 420px; }
.dir-mosaic--ege .dir-media--desk {
  grid-area: desk;
  min-height: 160px;
  max-height: 190px;
  justify-self: end;
  width: 92%;
}

/* —— ОГЭ —— */
.dir-mosaic--oge {
  grid-template-columns: 1.05fr 1fr;
  grid-template-rows: auto auto auto;
  grid-template-areas:
    "a top"
    "b top"
    "c bottom";
}

.dir-mosaic--oge .dir-card--a { grid-area: a; }
.dir-mosaic--oge .dir-media--top { grid-area: top; min-height: 240px; }
.dir-mosaic--oge .dir-card--b { grid-area: b; max-width: 320px; }
.dir-mosaic--oge .dir-card--c { grid-area: c; align-self: start; }
.dir-mosaic--oge .dir-media--bottom { grid-area: bottom; min-height: 180px; justify-self: end; width: 90%; }

/* —— ВПР —— */
.dir-mosaic--vpr {
  grid-template-columns: 1fr 1.05fr;
  grid-template-rows: auto auto auto;
  grid-template-areas:
    "a check"
    "b check"
    "quote c";
}

.dir-mosaic--vpr .dir-card--a { grid-area: a; }
.dir-mosaic--vpr .dir-checklist { grid-area: check; }
.dir-mosaic--vpr .dir-card--b { grid-area: b; max-width: 300px; }
.dir-mosaic--vpr .dir-quote { grid-area: quote; }
.dir-mosaic--vpr .dir-card--c { grid-area: c; align-self: end; }

.dir-checklist {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: 320px;
  justify-self: end;
}

.dir-checklist img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 12px 28px rgba(67, 43, 39, 0.12));
  transform: rotate(3deg);
}

/* —— Олимпиады —— */
.dir-mosaic--olympiad {
  grid-template-columns: 1.05fr 1fr;
  grid-template-rows: auto auto auto;
  grid-template-areas:
    "a tilt"
    "b tilt"
    "blob c";
}

.dir-mosaic--olympiad .dir-card--a { grid-area: a; }
.dir-mosaic--olympiad .dir-media--tilt {
  grid-area: tilt;
  min-height: 220px;
  max-width: 300px;
  justify-self: end;
}
.dir-mosaic--olympiad .dir-card--b { grid-area: b; max-width: 300px; }
.dir-mosaic--olympiad .dir-blob { grid-area: blob; }
.dir-mosaic--olympiad .dir-card--c { grid-area: c; align-self: start; }

.dir-card--clip::before {
  content: "";
  position: absolute;
  top: -10px;
  right: 28px;
  width: 28px;
  height: 40px;
  border: 3px solid #C0C0C0;
  border-radius: 6px;
  background: linear-gradient(180deg, #E8E8E8, #BDBDBD);
  box-shadow: inset 0 1px 0 #fff;
}

.dir-blob {
  position: relative;
  z-index: 1;
  background: #8BB0E5;
  border-radius: 48% 52% 45% 55% / 55% 45% 55% 45%;
  padding: 28px 32px;
  color: #FFFFFF;
  max-width: 280px;
  text-align: center;
}

.dir-blob__pill {
  display: inline-block;
  background: #F7D8E0;
  color: #432B27;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 12px;
}

.dir-blob p {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  color: #FFFFFF;
}

/* —— Успеваемость —— */
.dir-mosaic--progress {
  grid-template-columns: 1.05fr 1fr;
  grid-template-rows: auto auto auto;
  grid-template-areas:
    "a b"
    "pills b"
    "photo note";
}

.dir-mosaic--progress .dir-card--a { grid-area: a; }
.dir-mosaic--progress .dir-card--b { grid-area: b; align-self: start; }
.dir-mosaic--progress .dir-pills { grid-area: pills; }
.dir-mosaic--progress .dir-media--bottom {
  grid-area: photo;
  min-height: 180px;
  max-width: 280px;
}
.dir-mosaic--progress .dir-card--c { grid-area: note; }

.dir-pills {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.dir-pill {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  border-radius: 999px;
  background: #FFFFFF;
  box-shadow: 0 6px 18px rgba(67, 43, 39, 0.08);
  font-size: 13px;
  font-weight: 500;
  color: #432B27;
}

.dir-pill--ok {
  background: #8BB0E5;
  color: #FFFFFF;
}

.dir-card--notebook {
  border-radius: 4px 18px 18px 4px;
  background:
    radial-gradient(circle at 12px 28px, #D0D0D0 3px, transparent 3.5px),
    radial-gradient(circle at 12px 56px, #D0D0D0 3px, transparent 3.5px),
    radial-gradient(circle at 12px 84px, #D0D0D0 3px, transparent 3.5px),
    radial-gradient(circle at 12px 112px, #D0D0D0 3px, transparent 3.5px),
    #FFFFFF;
  padding-left: 36px;
  box-shadow: 0 8px 28px rgba(67, 43, 39, 0.08);
}

.dir-card--notebook::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 40px;
  width: 36px;
  height: 28px;
  background: linear-gradient(145deg, #CFCFCF, #8A8A8A);
  border-radius: 4px;
  clip-path: polygon(15% 0, 85% 0, 100% 100%, 0 100%);
}

/* chat / quote */
.dir-chat {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dir-chat__row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.dir-chat__row--student {
  justify-content: flex-end;
}

.dir-chat__row--teacher {
  justify-content: flex-start;
  padding-left: 0;
}

.dir-chat__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: none;
  box-shadow: none;
  background: transparent;
}

.dir-bubble {
  border-radius: 18px;
  padding: 12px 14px;
  font-size: 12.5px;
  line-height: 1.4;
  max-width: 280px;
  box-shadow: 0 6px 18px rgba(67, 43, 39, 0.08);
}

.dir-bubble--student {
  background: #8BB0E5;
  color: #FFFFFF;
  border-radius: 18px 18px 6px 18px;
}

.dir-bubble--teacher {
  background: #E8EEFA;
  color: #120629;
  border-radius: 18px 18px 18px 6px;
}

.dir-quote {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.dir-bubble--quote {
  background: #8BB0E5;
  color: #FFFFFF;
  border-radius: 22px 22px 22px 8px;
  max-width: 260px;
}

.btn-arrow--dark {
  background: var(--text-dark);
}

.btn-arrow--dark::after {
  border-color: var(--white);
}

/* ============================= TEACHERS ============================= */
.teachers-section {
  background: var(--white);
  padding: clamp(64px, 8vh, 100px) 0 clamp(48px, 6vh, 96px);
  overflow: visible;
  position: relative;
}

.teachers-wrap {
  position: relative;
}

/* Chrome star from photo, no frame */
.teachers-deco {
  position: absolute;
  right: -8px;
  top: -110px;
  width: 210px;
  height: 234px;
  box-sizing: border-box;
  border: none;
  padding: 0;
  background: transparent;
  pointer-events: none;
  z-index: 2;
}

.teachers-deco img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transform: rotate(8deg);
}

.teachers-head {
  position: relative;
  z-index: 1;
  margin-bottom: 40px;
  max-width: 900px;
}

/* Figma pill: Gotham→Montserrat 16 / 400 / lh 130% / ls −5% / #000 */
.teachers-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  min-height: 32px;
  padding: 8px 18px;
  margin-bottom: 18px;
  border: 2px solid #8BB0E5;
  border-radius: 999px;
  background: #FFFFFF;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.05em;
  text-transform: lowercase;
  color: #000000;
  box-sizing: border-box;
}

.teachers-pill::before { display: none; }

/* Figma: Montserrat 500 / 34 / lh 110% / −7% / #432B27 — как у benefits/directions */
.teachers-title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  margin: 0;
  max-width: 100%;
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.07em;
  color: #432B27;
  white-space: normal;
  overflow: visible;
}

.teachers-title__main {
  display: block;
  max-width: 100%;
  line-height: 1.05;
  white-space: normal;
}

/* «легко и понятно» — одна строка, скрипт не уезжает отдельно */
.teachers-title__line2 {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: baseline;
  gap: 0;
  margin: -0.42em 0 0;
  line-height: 1;
  white-space: nowrap;
  max-width: 100%;
}

.teachers-title__plain {
  white-space: nowrap;
  flex-shrink: 0;
}

.teachers-title__result {
  display: none;
}

.teachers-title__script {
  font-size: 73px !important;
  color: #432B27;
  flex-shrink: 0;
  position: relative;
  top: 3px;
}

.teacher-track {
  display: none;
}

.teacher-showcase {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.teacher-sidebar {
  display: flex;
  align-items: stretch;
  gap: 16px;
  padding-top: 12px;
}

.teacher-sidebar::after {
  content: "";
  width: 1.5px;
  border-radius: 2px;
  background: var(--bg-blue-soft);
  flex-shrink: 0;
  min-height: 220px;
}

.teacher-avatars-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.teacher-avatars {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.teacher-avatars-extra {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

.teacher-sidebar.is-expanded .teacher-avatars-extra {
  grid-template-rows: 1fr;
}

.teacher-avatars-extra__inner {
  overflow: hidden;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.teacher-avatar.is-collapsed {
  opacity: 0;
  transform: translate3d(0, -18px, 0);
  pointer-events: none;
  transition:
    opacity 0.28s ease,
    transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

.teacher-sidebar.is-expanded .teacher-avatar.is-collapsed {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  pointer-events: auto;
}

.teacher-sidebar.is-expanded .teacher-avatar.is-collapsed:nth-child(1) {
  transition-delay: 0.04s;
}

.teacher-sidebar.is-expanded .teacher-avatar.is-collapsed:nth-child(2) {
  transition-delay: 0.1s;
}

.teacher-sidebar.is-expanded .teacher-avatar.is-collapsed:nth-child(3) {
  transition-delay: 0.16s;
}

.teacher-avatars-more {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.teacher-avatars-more[hidden] {
  display: none;
}

.teacher-avatars-more span {
  display: block;
  width: 10px;
  height: 10px;
  margin-top: -4px;
  border-right: 2px solid #120528;
  border-bottom: 2px solid #120528;
  transform: rotate(45deg);
  transition: transform 0.28s ease, margin 0.28s ease;
}

.teacher-sidebar.is-expanded .teacher-avatars-more span,
.teacher-avatars-more.is-flipped span {
  margin-top: 4px;
  transform: rotate(-135deg);
}

.teacher-avatar {
  width: 68px;
  height: 68px;
  padding: 4px;
  border: 2.5px solid transparent;
  border-radius: 18px;
  background: none;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  transition: border-color .2s ease, box-shadow .2s ease;
  overflow: visible;
}

.teacher-avatar--pink {
  background: var(--bg-pink);
}

.teacher-avatar--blue {
  background: var(--bg-blue-soft);
}

.teacher-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 14px;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.teacher-avatar.is-active {
  border-color: var(--bg-blue);
  box-shadow: 0 0 0 4px rgba(153, 180, 227, 0.2);
}

.teacher-avatar__badge {
  position: absolute;
  right: -4px;
  bottom: -4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--line);
  font-size: 10px;
  font-weight: 800;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(74, 63, 59, 0.1);
}

.teacher-panel {
  min-width: 0;
}

.teacher-panel__main {
  display: grid;
  grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  margin-bottom: 20px;
}

.teacher-photo {
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 1 / 1.08;
  align-self: start;
}

.teacher-panel--pink .teacher-photo {
  background: var(--bg-pink);
}

.teacher-panel--blue .teacher-photo {
  background: var(--bg-blue-soft);
}

.teacher-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.teacher-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.teacher-info h3 {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 500;
  letter-spacing: -0.07em;
  line-height: 1.1;
  margin: 0 0 14px;
  color: #432B27;
}

.teacher-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.teacher-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.04em;
  padding: 8px 14px;
  border-radius: 999px;
  color: #432B27;
  background: #F5F6F6;
  border: 1.5px solid #8BB0E5;
  box-shadow: none;
}

.teacher-tag--blue {
  border-color: #8BB0E5;
  background: #F5F6F6;
}

.teacher-tag--pink {
  border-color: #E8B4C2;
  background: #F5F6F6;
}

.teacher-tag--muted {
  border-color: #8BB0E5;
  background: #F5F6F6;
}

.teacher-tag--subject {
  border-color: #E8B4C2;
  background: #F5F6F6;
  box-shadow: none;
}

.teacher-panel--pink .teacher-tag--subject,
.teacher-panel--blue .teacher-tag--subject {
  background: #F5F6F6;
  border: 1.5px solid #E8B4C2;
  box-shadow: none;
}

.teacher-tag__icon {
  width: 16px;
  height: 16px;
  object-fit: contain;
  flex-shrink: 0;
}

.teacher-tag__badge {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #8BB0E5;
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
  flex-shrink: 0;
}

.teacher-achievements {
  border-radius: 28px;
  padding: 28px 32px;
  background: #F7D8E0;
}

.teacher-panel--pink .teacher-achievements {
  background: #F7D8E0;
}

.teacher-panel--blue .teacher-achievements {
  background: #BDCFE8;
}

.teacher-bio {
  display: none;
}

.teacher-bio[hidden] {
  display: none;
}

.teacher-bio p {
  font-family: var(--font-bio);
  font-weight: 400;
  font-size: 16px;
  line-height: 1;
  letter-spacing: -0.07em;
  color: var(--text-body);
  margin-bottom: 0;
}

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

.teacher-achievements li {
  display: flex;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: -0.04em;
  color: #432B27;
}

.teacher-achievements li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 8px;
  opacity: 1;
  background: #432B27;
}

.teacher-panel--pink .teacher-achievements li::before,
.teacher-panel--blue .teacher-achievements li::before {
  background: #432B27;
}

.teacher-gallery-wrap {
  min-width: 0;
  width: 100%;
  margin-top: 14px;
}

.teacher-gallery-wrap[hidden] {
  display: none;
}

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

.teacher-gallery__item {
  width: 100%;
  aspect-ratio: 16 / 10;
  padding: 0;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 14px;
  overflow: hidden;
  background: #FFFFFF;
  box-shadow: 0 6px 16px -8px rgba(18, 5, 40, 0.14);
  cursor: zoom-in;
}

.teacher-gallery__item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* ============================= PRICING ============================= */
.pricing-section {
  background: var(--bg-faq);
  padding: clamp(48px, 6vh, 96px) 0;
  border-bottom: none;
  /* Avoid a 1px seam against the free-lesson blue band */
  margin-bottom: -1px;
  overflow: visible;
}

.pricing-wrap {
  position: relative;
}

.pricing-deco {
  position: absolute;
  top: -103px;
  right: 0;
  width: 132px;
  height: 224px;
  pointer-events: none;
  z-index: 0;
}

.pricing-deco img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: right center;
  display: block;
}

.pricing-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 40px;
}

/* Figma «тарифы»: 91×28, radius 44, border 3px #8AA8E0 */
.pricing-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 91px;
  height: 28px;
  padding: 0;
  margin: 0 auto 18px;
  border: 3px solid #8AA8E0;
  border-radius: 44px;
  background: #FFFFFF;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.04em;
  text-transform: lowercase;
  color: #000000;
  box-sizing: border-box;
}

.pricing-pill::before { display: none; }

/* Figma: Montserrat 500 / 34 / lh 110% / −7% / center / #432B27 */
.pricing-title {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 0 10px;
  margin: 0 auto 16px;
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: calc(-0.07em + 2pt);
  color: #432B27;
  text-align: center;
}

.pricing-title__main {
  max-width: none;
}

.pricing-title__result {
  display: none;
}

/* Figma «именно вам»: Bikham — чуть выше строки */
.pricing-title__script {
  color: #432B27;
  position: relative;
  top: -14px;
}

/* Figma sub: Montserrat 400 / 20 / lh 130% / −7% / center / #432B27 */
.pricing-sub {
  margin: 0 auto;
  max-width: 531px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.07em;
  color: #432B27;
  text-align: center;
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 360px);
  gap: 27px;
  justify-content: center;
  align-items: stretch;
}

/* Figma тариф: 360×459, radius 25 */
.price-card {
  position: relative;
  box-sizing: border-box;
  width: 360px;
  max-width: 100%;
  height: 490px;
  background: #F5F6F6;
  border: none;
  border-radius: 25px;
  padding: 28px 28px 24px;
  display: flex;
  flex-direction: column;
}

.price-card__head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: -28px 0 22px;
  flex-wrap: wrap;
}

/* розовый «язык» сверху карточки */
.price-card__label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px 12px;
  border-radius: 0 0 18px 18px;
  background: #F7D8E0;
  color: #432B27;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.price-card--featured .price-card__label {
  background: transparent;
  color: #120629;
  border: 1px solid #FFFFFF;
}

.price-card--featured .price-card__head {
  justify-content: flex-end;
  padding-right: 18px;
  transform: translateX(-35px);
}

/* Figma «хит пометка»: 62×32, radius 44, border 5px #F6EDC2 — полая */
.price-card__hit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 32px;
  padding: 0;
  border-radius: 44px;
  border: 1px solid #F7D8E0;
  background: transparent;
  box-sizing: border-box;
  color: #F7D8E0;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: -0.05em;
  text-transform: uppercase;
}

.price-card ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
  flex: 1;
}

.price-card li {
  display: flex;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: -0.04em;
  color: #432B27;
}

.price-card li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #432B27;
  flex-shrink: 0;
  margin-top: 7px;
  opacity: 1;
}

.price-card__note {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: 14px;
  line-height: 1.35;
  letter-spacing: -0.04em;
  color: #432B27;
}

.price-card__bottom {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.price-card__amount {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 400;
  color: #432B27;
  letter-spacing: -0.04em;
  text-align: center;
  margin: 0;
}

.price-card__amount strong {
  font-size: 28px;
  font-weight: 600;
  font-family: var(--font-display);
  color: #432B27;
  margin-right: 4px;
  letter-spacing: -0.05em;
}

.price-card__lesson {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 400;
  color: #432B27;
  letter-spacing: -0.04em;
  text-align: center;
  margin: -8px 0 0;
  opacity: 0.78;
}

.price-card__lesson strong {
  font-size: 16px;
  font-weight: 600;
  margin-right: 4px;
  letter-spacing: -0.04em;
}

.price-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 168px;
  padding: 4px 4px 4px 18px;
  border-radius: 999px;
  background: #F7D8E0;
  color: #432B27;
  font-size: 14px;
  font-weight: 600;
  transition: background .2s ease;
}

.price-card__btn:hover {
  background: #F8DBE3;
}

.price-card__btn .btn-arrow {
  width: 34px;
  height: 34px;
  background: #432B27;
}

.price-card__btn .btn-arrow::after {
  border-color: #FFFFFF;
}

/* Figma Rectangle 589: групповой #8BB0E5 */
.price-card--featured {
  background: #A8C1E9;
  border: none;
  box-shadow: 0 0 43px rgba(121, 160, 216, 0.9);
  height: 490px;
}

.price-card--featured li,
.price-card--featured .price-card__amount,
.price-card--featured .price-card__amount strong,
.price-card--featured .price-card__lesson,
.price-card--featured .price-card__lesson strong {
  color: #432B27;
}

.price-card--featured li::before {
  background: #432B27;
  opacity: 1;
}

/* ============================= FREE LESSON BANNER ============================= */
/* Clean solid brand blue + desk crop on the RIGHT only.
   Left text sits on CSS fill (no grainy wall / lamp through bullets). */
.free-lesson-banner {
  position: relative;
  padding: 0;
  width: 100%;
  box-sizing: border-box;
  background: #A9C9FC;
  border-top: none;
  /* Soft join under pricing cards */
  box-shadow: inset 0 36px 42px -34px rgba(255, 251, 251, 0.55);
}

.free-lesson-banner::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 56px;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(255, 251, 251, 0.42) 0%,
    rgba(169, 201, 252, 0.12) 45%,
    transparent 100%
  );
}

.free-lesson {
  position: relative;
  width: min(1213px, 100%);
  height: 281px;
  min-height: 281px;
  margin: 0 auto;
  /* Solid brand blue + barely-there soft wash (no photo noise on the left) */
  background: #A9C9FC;
  color: #432B27;
  display: flex;
  align-items: center;
  overflow: hidden;
  box-sizing: border-box;
  border: none;
  outline: none;
}

/* Solid left shield — guarantees clean text area over any photo bleed */
.free-lesson::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: min(72%, 860px);
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    #A9C9FC 0%,
    #A9C9FC 70%,
    rgba(169, 201, 252, 0.55) 88%,
    rgba(169, 201, 252, 0) 100%
  );
}

.free-lesson__bg {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: auto;
  width: 375px;
  max-width: 42%;
  z-index: 0;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 16%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 16%, #000 100%);
}

.free-lesson__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right bottom;
  display: block;
}

.free-lesson__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: 28px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  box-sizing: border-box;
}

.free-lesson__title {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.26em;
  margin: 0 0 12px;
  width: max-content;
  max-width: 100%;
  min-height: 37px;
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.06em;
  color: #120629;
}

.free-lesson__title-main {
  font-family: inherit;
  font-size: inherit;
  font-weight: 500;
  line-height: inherit;
  letter-spacing: inherit;
  color: inherit;
}

.free-lesson__title-script {
  font-family: inherit;
  font-size: inherit;
  font-weight: 400;
  font-style: normal;
  line-height: inherit;
  letter-spacing: inherit;
  color: inherit;
}

.free-lesson__title-heart {
  display: block;
  width: 0.82em;
  height: 0.72em;
  flex-shrink: 0;
  margin-left: 0.04em;
  object-fit: contain;
}

.free-lesson__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  max-width: 520px;
}

.free-lesson__list li {
  display: flex;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: -0.04em;
  color: #432B27;
}

.free-lesson__list li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #432B27;
  flex-shrink: 0;
  margin-top: 8px;
}

.free-lesson__btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 250px;
  height: 40px;
  padding: 3px 3px 3px 18px;
  box-sizing: border-box;
  border-radius: 999px;
  background: #FFFFFF;
  color: #8BB0E5;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.03em;
  transition: opacity .2s ease;
}

.free-lesson__btn:hover {
  opacity: 0.92;
}

.free-lesson__btn-arrow {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #8BB0E5;
  position: relative;
  flex-shrink: 0;
}

.free-lesson__btn-arrow::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 7px;
  height: 7px;
  border-right: 2px solid #FFFFFF;
  border-top: 2px solid #FFFFFF;
  transform: translate(-60%, -50%) rotate(45deg);
}

/* ============================= FORMATS ============================= */
/* Figma «форматы блок»: 1260×557 */
.formats-section {
  background: #FFFFFF;
  padding: clamp(40px, 5vh, 64px) 0;
  overflow: visible;
}

.formats-block {
  position: relative;
  width: 1260px;
  max-width: calc(100% - 80px);
  min-height: 557px;
  margin: 0 auto;
  box-sizing: border-box;
  overflow: visible;
}

.formats-head {
  display: block;
  margin-bottom: 22px;
}

.formats-head__text {
  max-width: 860px;
}

/* Figma pill: 177×28, radius 44, border 3px #8AA8E0 */
.formats-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 177px;
  height: 28px;
  padding: 0;
  margin-bottom: 16px;
  border: 3px solid #8AA8E0;
  border-radius: 44px;
  background: #FFFFFF;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.04em;
  text-transform: lowercase;
  color: #000000;
  box-sizing: border-box;
}

.formats-pill::before { display: none; }

.formats-title {
  display: block;
  margin: 0 0 8px;
  max-width: 860px;
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.06em;
  color: #120629;
  white-space: normal;
}

.formats-title__main {
  display: block;
  max-width: 100%;
  white-space: nowrap;
}

/* «подойдет именно вам» — одна строка, скрипт не уезжает отдельно */
.formats-title__line2 {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: baseline;
  gap: 0 8px;
  margin: -0.28em 0 0;
  line-height: 1;
  white-space: nowrap;
  max-width: 100%;
}

.formats-title__plain {
  white-space: nowrap;
  flex-shrink: 0;
}

/* Figma «именно вам»: Bikham — крупнее, как benefits script.
   Higher specificity beats shared .accent-script / group 56px rule. */
.formats-title .formats-title__script,
.formats-title .formats-title__script.accent-script {
  font-size: 58px !important;
  color: #432B27;
  flex-shrink: 0;
  position: relative;
  top: -1px;
}

.formats-sub {
  margin: 0;
  max-width: 860px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.04em;
  color: #120629;
}

.formats-lupa-bg {
  display: none;
}

.formats-deco {
  position: absolute;
  top: -64px;
  right: -28px;
  width: 188px;
  height: 188px;
  box-sizing: border-box;
  border: none;
  padding: 0;
  display: block;
  pointer-events: none;
  z-index: 2;
  transform: rotate(-10deg);
}

.formats-deco img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.formats-grid {
  display: grid;
  grid-template-columns: 362px 740px;
  gap: 22px;
  justify-content: start;
  align-items: start;
  margin: 0;
}

.format-card {
  position: relative;
  box-sizing: border-box;
  width: 362px;
  max-width: 100%;
  min-height: 0;
  height: 362px;
  background: #F6F6F6;
  border: none;
  border-radius: 27px;
  padding: 28px 30px;
  overflow: hidden;
  box-shadow: none;
}

.format-card__watermark {
  position: absolute;
  left: 50%;
  top: 54%;
  width: 210px;
  height: 210px;
  transform: translate(-50%, -50%);
  opacity: 0.18;
  pointer-events: none;
  z-index: 0;
}

.format-card__watermark svg {
  width: 100%;
  height: 100%;
  display: block;
}

.format-card--pink {
  width: 740px;
  max-width: 100%;
  height: 288px;
  min-height: 0;
  overflow: visible;
  padding: 28px 36px 24px;
  border-radius: 25px;
  background: #F7D8E0;
}

.format-card__wash {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  background: #F7D8E0;
}

.format-card__wash::after {
  content: "";
  position: absolute;
  top: -28px;
  right: -24px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: #EBB0C2;
  filter: blur(22px);
  opacity: 0.7;
}

.format-card h3,
.format-card ul {
  position: relative;
  z-index: 1;
}

.format-card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.04em;
  color: #120629;
  margin: 0 0 20px;
}

.format-card__hint {
  font-weight: 400;
  font-size: 15px;
  color: #432B27;
}

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

.format-card li {
  font-family: var(--font-display);
  font-size: 15px;
  line-height: 1.4;
  letter-spacing: -0.03em;
  color: #120629;
  padding-left: 14px;
  position: relative;
}

.format-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #120629;
}

.format-card li b {
  font-weight: 600;
}

.formats-note {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 16px;
  margin-top: 8px;
}

.formats-note__bubble {
  background: #8BB0E5;
  color: #432B27;
  border-radius: 22px;
  padding: 16px 20px;
  max-width: 420px;
  font-family: var(--font-display);
  font-size: 14px;
  line-height: 1.35;
  letter-spacing: -0.03em;
  position: relative;
}

.formats-note__bubble::after {
  content: "";
  position: absolute;
  right: -8px;
  bottom: 10px;
  width: 16px;
  height: 16px;
  background: #8BB0E5;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.formats-note__avatars {
  display: flex;
  align-items: center;
  padding-bottom: 4px;
}

.formats-note__avatars img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #FFFFFF;
  margin-left: -10px;
  box-shadow: 0 4px 12px rgba(67, 43, 39, 0.12);
}

.formats-note__avatars img:first-child {
  margin-left: 0;
}

/* ============================= REVIEWS ============================= */
/* Figma «отзывы блок»: 1485×748 — бесконечный марquee слева направо */
.reviews-section {
  overflow: visible;
  background: linear-gradient(180deg, #FFFFFF 0%, #F5E1F1 100%);
  padding: clamp(48px, 5vh, 72px) 0 40px;
}

.reviews-block {
  position: relative;
  width: 1413px;
  max-width: calc(100% - 32px);
  min-height: 686px;
  margin: 0 auto;
  box-sizing: border-box;
}

.reviews-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 36px;
  padding: 0 24px;
}

.reviews-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 91px;
  height: 28px;
  padding: 0 14px;
  margin: 0 auto 16px;
  border: 3px solid #8AA8E0;
  border-radius: 44px;
  background: #FFFFFF;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.04em;
  text-transform: lowercase;
  color: #000000;
  box-sizing: border-box;
}

.reviews-pill::before { display: none; }

.reviews-title {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 0 10px;
  margin: 0;
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.06em;
  color: #120528;
}

.reviews-title__script {
  color: #432B27;
  position: relative;
  top: -14px;
}

/* —— Boards examples —— */
.boards-section {
  overflow: hidden;
  background: #D9E6F5;
  padding: clamp(48px, 6vh, 80px) 0;
}

.boards-block {
  width: 1485px;
  max-width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}

.boards-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 36px;
  padding: 0 24px;
}

.boards-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 91px;
  height: 28px;
  padding: 0 14px;
  margin: 0 auto 16px;
  border: 3px solid #8AA8E0;
  border-radius: 44px;
  background: #FFFFFF;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.04em;
  text-transform: lowercase;
  color: #000000;
  box-sizing: border-box;
}

.boards-pill::before { display: none; }

.boards-title {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 0 10px;
  margin: 0;
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.06em;
  color: #120528;
}

.boards-title__script {
  color: #432B27;
  position: relative;
  top: -14px;
}

.boards-sub {
  margin: 14px auto 0;
  max-width: 520px;
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.45;
  letter-spacing: -0.03em;
  color: #5E504E;
}

.boards-marquee {
  display: block;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0%, #000 5%, #000 95%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 5%, #000 95%, transparent 100%);
}

.boards-marquee__row {
  overflow: hidden;
  width: 100%;
  cursor: grab;
  touch-action: pan-x pan-y;
  user-select: none;
  -webkit-user-select: none;
}

.boards-marquee__row.is-dragging {
  cursor: grabbing;
}

.boards-marquee__row.is-dragging .board-card {
  pointer-events: none;
}

.boards-marquee__track {
  display: flex;
  align-items: center;
  gap: 20px;
  width: max-content;
  padding: 8px 16px 12px;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
}

.board-card {
  flex: 0 0 min(640px, 78vw);
  width: min(640px, 78vw);
  aspect-ratio: 2.35 / 1;
  padding: 0;
  margin: 0;
  border: none;
  border-radius: 22px;
  overflow: hidden;
  background: #FFFFFF;
  box-shadow: 0 10px 28px rgba(67, 43, 39, 0.1);
  cursor: zoom-in;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.board-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(67, 43, 39, 0.14);
}

.board-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  pointer-events: none;
  -webkit-user-drag: none;
}

.boards-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(30, 22, 20, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.boards-lightbox[hidden] {
  display: none !important;
}

body.boards-lightbox-open {
  overflow: hidden;
}

.boards-lightbox__img {
  max-width: min(1100px, 96vw);
  max-height: 88vh;
  width: auto;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  background: #fff;
}

.boards-lightbox__close {
  position: absolute;
  top: max(12px, env(safe-area-inset-top, 0px));
  right: max(12px, env(safe-area-inset-right, 0px));
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: #FFFFFF;
  color: #432B27;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

.reviews-stage {
  position: relative;
  width: 100%;
  min-height: 320px;
  height: auto;
  overflow: visible;
}

.reviews-marquee {
  display: block;
  position: relative;
  z-index: 3;
  overflow-x: auto;
  overflow-y: hidden;
  width: 100%;
  cursor: grab;
  touch-action: pan-x;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 24px;
  scrollbar-width: none;
  user-select: none;
  -webkit-user-select: none;
}

.reviews-marquee::-webkit-scrollbar {
  display: none;
}

.reviews-marquee.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
}

.reviews-marquee.is-dragging .review-card {
  pointer-events: none;
}

.reviews-nav {
  position: absolute;
  top: 50%;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 20px rgba(18, 6, 41, 0.12);
  cursor: pointer;
  transform: translateY(-50%);
}

.reviews-nav--prev {
  left: 6px;
}

.reviews-nav--next {
  right: 6px;
}

.reviews-nav span {
  display: block;
  width: 10px;
  height: 10px;
  border-right: 2px solid #120528;
  border-bottom: 2px solid #120528;
}

.reviews-nav--prev span {
  margin-left: 4px;
  transform: rotate(135deg);
}

.reviews-nav--next span {
  margin-right: 4px;
  transform: rotate(-45deg);
}

.reviews-marquee__row {
  overflow: visible;
  width: 100%;
}

.reviews-marquee__row.is-dragging {
  cursor: grabbing;
}

.reviews-marquee__row.is-dragging .review-card {
  pointer-events: none;
}

.reviews-marquee__track {
  display: flex;
  align-items: stretch;
  gap: 24px;
  width: max-content;
  padding: 18px 48px;
}

.review-card {
  position: relative;
  flex-shrink: 0;
  width: 420px;
  min-height: 248px;
  background: transparent;
  border-radius: 32px;
  padding: 28px 32px 30px;
  overflow: visible;
  border: 1px solid rgba(18, 6, 41, 0.16);
  box-sizing: border-box;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  z-index: 3;
  transform: scale(1);
  transform-origin: center center;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.reviews-marquee .review-card,
.reviews-marquee .review-card--ege,
.reviews-marquee .review-card--oge,
.reviews-marquee .review-card--parent {
  position: relative;
  left: auto;
  right: auto;
  top: auto;
  flex: 0 0 420px;
  width: 420px;
  max-width: 420px;
  margin: 0;
  scroll-snap-align: center;
}

.review-card--ege {
  left: 18px;
  top: 8px;
}

.review-card--oge {
  right: 18px;
  top: 8px;
  z-index: 4;
}

.review-card--parent {
  left: 50%;
  top: 308px;
  margin-left: -245px;
}

.review-card--glow::before {
  display: none;
}

.review-card:hover {
  z-index: 5;
  transform: scale(1.06);
}

.reviews-marquee .review-card:hover {
  transform: none;
}

.reviews-marquee__row.is-dragging .review-card:hover {
  transform: scale(1);
}

.review-card__teacher {
  display: none;
}

.review-card__star {
  position: absolute;
  width: 150px;
  height: 150px;
  opacity: 0.12;
  pointer-events: none;
}

.review-card--star-right .review-card__star {
  right: -18px;
  top: -22px;
  transform: none;
}

.review-card--star-left .review-card__star {
  left: -22px;
  bottom: -28px;
  top: auto;
  transform: none;
}

.review-card__title {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.04em;
  margin: 0 0 14px;
  color: #120629;
  max-width: 92%;
}

.review-card__text {
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: var(--font-display);
  font-size: 15px;
  line-height: 1.45;
  letter-spacing: -0.02em;
  color: #120629;
}

.reviews-deco {
  flex: 0 0 120px;
  width: 120px;
  height: 120px;
  box-sizing: border-box;
  border: 3px solid #8BB0E5;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.reviews-deco img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 8px 18px rgba(74, 63, 59, 0.12));
}

/* ============================= FAQ ============================= */
.faq-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #FFFFFF 0%, #FCEFF5 100%);
  padding: clamp(48px, 6vh, 80px) 0 72px;
}

.faq-section::before {
  content: "";
  position: absolute;
  left: 10%;
  top: 28%;
  width: 80%;
  height: 78%;
  background: radial-gradient(circle at 50% 72%, rgba(252, 239, 245, 0.95) 0%, rgba(252, 239, 245, 0.35) 48%, rgba(252, 239, 245, 0) 74%);
  pointer-events: none;
  z-index: 0;
}

.faq-block {
  position: relative;
  z-index: 1;
  width: 1211px;
  max-width: calc(100% - 80px);
  margin: 0 auto;
}

.faq-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 36px;
}

.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.86fr);
  gap: 36px;
  align-items: start;
}

/* Figma Rectangle 570 — без обводки */
.faq-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 64px;
  height: 28px;
  padding: 0 14px;
  margin-bottom: 14px;
  border: none;
  outline: none;
  box-shadow: none;
  border-radius: 44px;
  background: #F6F6F6;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.04em;
  text-transform: none;
  color: #432B27;
  box-sizing: border-box;
}

.faq-pill::before { display: none; }

/* Figma: «У вас» Montserrat 500/34/−7% + script «остались сомнения?» 76 */
.faq-title {
  display: block;
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.06em;
  color: #120629;
  text-align: center;
}

.faq-title__main {
  display: inline-block;
}

.faq-title__script {
  font-size: 48px !important;
  color: #432B27;
}

/* Figma lead: Montserrat 400/20/130%/−7%/#432B27, 855×52 */
.faq-lead {
  margin: 0 auto;
  max-width: 640px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -0.04em;
  color: #120629;
  text-align: center;
}

.faq-media {
  position: relative;
  margin: 48px 0 0;
}

.faq-media__photo {
  width: 100%;
  display: block;
  border-radius: var(--radius-lg);
}

.faq-marks {
  position: absolute;
  top: -8px;
  right: 36px;
  width: 220px;
  height: 168px;
  pointer-events: none;
  z-index: 2;
}

.faq-marks__a,
.faq-marks__b,
.faq-marks__c {
  position: absolute;
  object-fit: contain;
  filter: drop-shadow(0 10px 22px rgba(67, 43, 39, 0.12));
}

.faq-marks__a {
  width: 92px;
  height: auto;
  right: 18px;
  top: 0;
  z-index: 3;
}

.faq-marks__b {
  width: 64px;
  height: auto;
  right: 96px;
  top: 28px;
  z-index: 2;
  transform: rotate(-12deg);
}

.faq-marks__c {
  width: 48px;
  height: auto;
  right: 0;
  top: 72px;
  z-index: 1;
  transform: rotate(10deg);
}

.faq-list {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-cta {
  display: none;
}

.accordion-item {
  border: none;
}

.faq-list .accordion-item {
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 22px;
  box-shadow: 0 8px 22px rgba(18, 6, 41, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.accordion-item button {
  width: 100%;
  background: none;
  border: none;
  color: #120629;
  padding: 16px 16px 16px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.03em;
  text-align: left;
  cursor: pointer;
}

.accordion-item .plus {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: #E8E8E8;
  position: relative;
  flex-shrink: 0;
  margin-left: 8px;
  transition: transform 0.25s ease, background 0.25s ease;
}

.accordion-item .plus::before,
.accordion-item .plus::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: none;
}

.accordion-item .plus::before {
  width: 7px;
  height: 7px;
  border-right: 1.7px solid #120629;
  border-bottom: 1.7px solid #120629;
  transform: translate(-70%, -50%) rotate(-45deg);
}

.accordion-item .plus::after {
  display: none;
}

.accordion-item.open .plus {
  transform: none;
  background: #E8E8E8;
}

.accordion-item.open .plus::before {
  transform: translate(-50%, -68%) rotate(45deg);
}

.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}

.accordion-panel p {
  padding: 0 22px 18px;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(18, 6, 41, 0.62);
  max-width: none;
}

/* ============================= FINAL CTA ============================= */
.final-cta-section {
  background: #F7D8E0;
  padding: clamp(48px, 6vh, 80px) 0 64px;
}

.final-cta-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 36px;
}

.final-cta-title {
  display: block;
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.06em;
  color: #120629;
}

.final-cta-title__script {
  color: #432B27;
  position: relative;
  top: -14px;
}

.final-cta-sub {
  margin: 0 auto;
  max-width: 620px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -0.03em;
  color: #120629;
}

.final-cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}

.final-cta-media {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  min-height: 100%;
}

.final-cta-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 28px;
  display: block;
}

.form-card {
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid #FFFFFF;
  border-radius: 24px;
  padding: 36px 32px 28px;
  box-shadow: 0 10px 28px rgba(18, 6, 41, 0.06);
  display: flex;
  flex-direction: column;
}

.field { margin-bottom: 14px; }

.field--cascade[hidden] {
  display: none !important;
}

.contact-ways {
  margin: 0 0 14px;
}

.contact-ways__label {
  margin: 0 0 8px;
  font-size: 13px;
  line-height: 1.3;
  letter-spacing: -0.03em;
  color: #120629;
}

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

.contact-way {
  display: block;
  position: relative;
  cursor: pointer;
}

.contact-way input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.contact-way span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 8px 6px;
  border-radius: 999px;
  background: #E8E8E8;
  color: #120629;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.03em;
  text-align: center;
  transition: background 0.2s ease;
}

.contact-way input:checked + span {
  background: #8BB0E5;
}

.contact-way input:focus-visible + span {
  outline: 2px solid var(--bg-blue);
  outline-offset: 1px;
}

.field input,
.field select {
  width: 100%;
  height: 50px;
  padding: 12px 22px;
  border-radius: 999px;
  border: none;
  font-size: 15px;
  font-family: inherit;
  background: #E8E8E8;
  color: #120629;
}

.field input::placeholder {
  color: #9A9598;
}

.field select {
  color: #9A9598;
}

.field select:valid {
  color: #120629;
}

.field input:focus,
.field select:focus {
  outline: 2px solid var(--bg-blue);
  outline-offset: 1px;
}

.field--select {
  position: relative;
}

.field--select select {
  appearance: none;
  padding-right: 54px;
  cursor: pointer;
}

.field--select::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--text-dark);
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6' fill='none'%3E%3Cpath d='M1 1L5 5L9 1' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.form-submit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: 8px;
  padding: 4px 4px 4px 22px;
  min-height: 48px;
  border-radius: 999px;
  background: #C4D5EF;
  color: #120629;
  border: 1px solid #FFFFFF;
  font-weight: 600;
  font-size: 15px;
  font-family: inherit;
  letter-spacing: -0.03em;
  cursor: pointer;
  transition: opacity .2s ease;
}

.form-submit img {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.form-submit:hover {
  opacity: 0.92;
  transform: none;
}

.form-submit .btn-arrow {
  background: rgba(255, 255, 255, 0.35);
}

.consent-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.consent-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-muted);
  cursor: pointer;
}

.consent-item input {
  appearance: none;
  -webkit-appearance: none;
  width: 13px;
  height: 13px;
  margin-top: 3px;
  flex-shrink: 0;
  border: 1px solid #C5C0C3;
  border-radius: 2px;
  background: #FFFFFF;
}

.consent-item input:checked {
  background: #8AAFE4;
  border-color: #8AAFE4;
  box-shadow: inset 0 0 0 2px #FFFFFF;
}

.form-message {
  margin: 4px 0 0;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.45;
  white-space: pre-line;
}

.form-message--error {
  background: #fdecec;
  color: #9b3b3b;
}

.form-message--success {
  background: #eaf6ee;
  color: #2f6b43;
}

/* ============================= FOOTER ============================= */
.site-footer {
  background: var(--white);
  color: var(--text-body);
  padding: 44px 0 40px;
}

.footer-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
}

.footer-logo__link {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0;
  border: none;
  border-radius: 0;
}

.footer-logo__link img,
.footer-logo__mark {
  height: 72px;
  width: auto;
}

.footer-logo__word {
  display: none;
  height: auto;
  width: 132px;
}

.footer-nav {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 1.6fr auto;
  gap: 28px 24px;
  align-items: start;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.footer-col__title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.footer-col a {
  font-size: 14px;
  line-height: 1.4;
  color: var(--text-muted);
  transition: color .15s ease;
}

.footer-col a:hover {
  color: var(--text-dark);
}

.footer-col--social {
  align-items: flex-start;
}

.footer-socials {
  display: flex;
  gap: 10px;
  margin-bottom: 4px;
}

.footer-socials a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #8E8E8E !important;
  color: #FFFFFF !important;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0;
  line-height: 0;
  transition: background .15s ease, transform .15s ease;
}

.footer-socials img,
.footer-socials svg {
  display: block;
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex-shrink: 0;
}

.footer-socials a:hover {
  background: var(--text-dark);
  transform: translateY(-1px);
  color: var(--white);
}

.footer-bottom {
  display: flex;
  justify-content: center;
  padding-top: 32px;
  margin-top: 8px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--text-muted);
}

/* ============================= RESPONSIVE ============================= */

/* —— Tablet / narrow desktop —— */
@media (max-width: 1100px) {
  :root {
    --page-gutter: 20px;
  }

  .site-header--hero {
    position: fixed;
    top: max(12px, env(safe-area-inset-top, 0px));
    left: max(var(--page-gutter), env(safe-area-inset-left, 0px));
    right: max(var(--page-gutter), env(safe-area-inset-right, 0px));
    width: auto;
    height: 56px;
    z-index: 160;
    padding: 0;
    border-radius: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
  }

  .header-bar {
    height: 100%;
    justify-content: space-between;
    align-items: center;
  }

  .header-logo {
    height: auto;
    flex: 0 0 auto;
    align-self: center;
    line-height: 0;
  }

  .header-logo img {
    height: 52px;
    width: auto;
    max-height: 52px;
    object-fit: contain;
    transform: none;
  }

  .header-cta {
    flex: 0 0 auto;
    align-items: center;
  }

  .header-nav {
    display: flex;
    position: fixed;
    top: calc(max(12px, env(safe-area-inset-top, 0px)) + 64px);
    left: max(var(--page-gutter), env(safe-area-inset-left, 0px));
    right: max(var(--page-gutter), env(safe-area-inset-right, 0px));
    margin: 0;
    padding: 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: #FFFFFF;
    border: 2px solid #8AA8E0;
    border-radius: 24px;
    box-shadow: 0 16px 40px rgba(67, 43, 39, 0.12);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transform: translate3d(0, -10px, 0) scale(0.98);
    pointer-events: none;
    transition:
      opacity 0.28s cubic-bezier(0.22, 1, 0.36, 1),
      transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
      visibility 0.28s;
  }

  .header-nav a {
    padding: 14px 16px;
    border-radius: 14px;
    font-size: 16px;
    white-space: normal;
  }

  .header-nav a:hover,
  .header-nav a:active {
    background: #F5F6F6;
  }

  .header-nav__cta {
    display: flex;
    justify-content: center;
    margin-top: 8px;
    background: #8EACE6;
    color: #FFFFFF !important;
    font-weight: 600;
  }

  .header-nav__cta:hover {
    background: #7A9CD9;
  }

  .header-btn {
    display: none;
  }

  .burger {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    padding: 10px;
    align-self: center;
  }

  .burger span,
  .burger span::before,
  .burger span::after {
    width: 20px;
    height: 2px;
  }

  .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(100, 100, 104, 0.72);
    z-index: 140;
    opacity: 0;
    transition: opacity 0.28s ease;
  }

  .nav-backdrop[hidden] {
    display: none !important;
  }

  body.nav-open {
    overflow: hidden;
  }

  body.nav-open .header-nav {
    opacity: 1;
    visibility: visible;
    transform: translate3d(0, 0, 0) scale(1);
    pointer-events: auto;
  }

  body.nav-open .nav-backdrop {
    opacity: 1;
  }

  body.nav-open .burger span {
    background: transparent;
  }

  body.nav-open .burger span::before {
    top: 0;
    transform: rotate(45deg);
  }

  body.nav-open .burger span::after {
    top: 0;
    transform: rotate(-45deg);
  }

  .main-screen {
    width: calc(100% - (var(--page-gutter) * 2));
    min-height: 0;
    margin-top: calc(max(12px, env(safe-area-inset-top, 0px)) + 68px);
  }

  .benefits-block,
  .directions-block,
  .formats-block,
  .reviews-block,
  .boards-block,
  .ready-banner {
    width: calc(100% - (var(--page-gutter) * 2));
    max-width: none;
    min-height: 0;
    margin-left: auto;
    margin-right: auto;
  }

  .reviews-stage {
    height: auto;
    display: block;
    overflow: visible;
  }

  .reviews-marquee .review-card,
  .reviews-marquee .review-card--ege,
  .reviews-marquee .review-card--oge,
  .reviews-marquee .review-card--parent {
    flex: 0 0 min(380px, 72vw);
    width: min(380px, 72vw);
    max-width: min(380px, 72vw);
    margin: 0;
  }

  .review-card--ege,
  .review-card--oge,
  .review-card--parent {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    width: min(500px, 100%);
    margin: 0 auto;
    margin-left: auto;
    transform: none;
  }

  .review-card--parent:hover {
    transform: scale(1.04);
  }

  .reviews-cluster {
    display: none;
  }

  .ready-banner-section {
    padding: 72px 0 40px;
  }

  .reviews-head {
    padding-left: 0;
    padding-right: 0;
  }

  .teachers-deco {
    display: none;
  }

  .price-grid {
    grid-template-columns: 1fr;
    justify-content: stretch;
    gap: 16px;
  }

  .price-card {
    width: 100%;
    max-width: 420px;
    height: auto;
    min-height: 0;
    margin: 0 auto;
  }

  .formats-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .format-card,
  .format-card--pink {
    width: 100%;
    height: auto;
    min-height: 0;
  }

  .final-cta-grid {
    width: 100%;
    max-width: 720px;
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .final-cta-media {
    min-height: 240px;
  }

  .final-cta-media img {
    position: relative;
    height: 240px;
  }

  .benefits-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .benefits-bento {
    display: none;
  }

  .bento-card--tall,
  .bento-card--video,
  .bento-card--chat,
  .bento-card--fgos,
  .bento-card--contact,
  .bento-card--fipi {
    width: 100%;
    max-width: none;
    height: auto;
    min-height: 0;
  }

  .bento-card--tall {
    padding: 28px 20px 24px;
  }

  .bento-card--fipi {
    padding: 24px;
  }

  .bento-card--fipi .bento-card__icon,
  .bento-card--fipi .bento-card__text {
    position: static;
    left: auto;
    top: auto;
    width: auto;
    max-width: 100%;
    height: auto;
  }

  .bento-card--fipi .bento-card__icon {
    width: 40px;
    height: 40px;
    margin: 0 0 14px;
  }

  .bento-card--fipi .bento-card__icon img {
    width: 40px;
    height: 40px;
    object-fit: contain;
  }

  .bento-card--fipi .bento-card__text {
    font-size: 15px;
    line-height: 1.35;
    letter-spacing: -0.04em;
  }

  .bento-card--fipi::after {
    right: -80px;
    top: -50px;
    width: 220px;
    height: 160px;
    opacity: 0.45;
  }

  .bento-feature-rows,
  .bento-feature-row {
    width: 100%;
  }

  .bento-card--video,
  .bento-card--chat {
    height: auto;
    min-height: 0;
    border-radius: 28px;
    padding: 22px 20px;
  }

  .bento-card--contact {
    height: auto;
    min-height: 0;
    padding: 22px 20px;
  }

  .bento-card--contact .bento-card__text {
    max-width: 100%;
    font-size: 16px;
    line-height: 1.3;
    letter-spacing: -0.04em;
  }

  .bento-cta {
    margin-top: 0;
    width: min(180px, 100%);
  }
}

/* —— Phones —— */
@media (max-width: 768px) {
  :root {
    --page-gutter: 16px;
  }

  html {
    overflow-x: clip;
  }

  body {
    overflow-x: clip;
    max-width: 100%;
  }

  .section {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .directions-section,
  .directions-block,
  .teachers-section,
  .teacher-showcase,
  .teacher-gallery-wrap,
  .reviews-section,
  .reviews-block,
  .boards-section,
  .boards-block,
  .formats-section,
  .hero-shell {
    overflow-x: clip;
    max-width: 100%;
  }

  .dir-tabs,
  .teacher-avatars,
  .teacher-gallery {
    max-width: 100%;
    overscroll-behavior-x: contain;
  }

  .main-screen {
    width: calc(100% - (var(--page-gutter) * 2));
    margin-top: calc(max(10px, env(safe-area-inset-top, 0px)) + 64px);
  }

  .main-screen__hero {
    padding-top: 16px;
  }

  .main-logo {
    width: 100%;
    max-width: 100%;
    height: auto;
    margin-bottom: 16px;
  }

  .main-tagline {
    font-size: clamp(18px, 5.2vw, 28px);
  }

  .main-sub {
    font-size: 15px;
    line-height: 1.4;
  }

  .main-sub br {
    display: none;
  }

  .main-cta {
    width: auto;
    max-width: min(373px, 100%);
    min-width: 0;
    min-height: 48px;
    padding: 12px 28px;
    margin: 0 auto 28px;
    font-size: clamp(15px, 4vw, 20px);
  }

  .school-facts {
    aspect-ratio: auto;
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .stat-card,
  .stat-card--points,
  .stat-card--students,
  .stat-card--blue {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    width: 100%;
    height: auto !important;
    min-height: 0;
    padding: 12px 18px 14px;
    z-index: auto;
    box-sizing: border-box;
  }

  .stat-card__num,
  .stat-card__desc {
    position: static;
    transform: none;
    left: auto;
    width: auto;
    max-width: none;
    text-align: center;
  }

  .stat-card__num {
    font-size: clamp(22px, 6.5vw, 28px);
    line-height: 1.15;
  }

  .stat-card__desc {
    margin-top: 6px;
    padding-right: 0;
    line-height: 1.25;
    font-size: 13px;
  }

  .benefits-block,
  .directions-block,
  .formats-block,
  .reviews-block,
  .ready-banner {
    width: calc(100% - (var(--page-gutter) * 2));
  }

  .ready-banner-section {
    padding: 56px 0 32px;
  }

  .reviews-head {
    padding-left: 0;
    padding-right: 0;
    margin-bottom: 20px;
  }

  .benefits-deco {
    position: relative;
    top: auto;
    right: auto;
    width: 112px;
    height: auto;
    aspect-ratio: 1;
    margin: 0 0 12px auto;
    border: none;
    transform: none;
  }

  .benefits-head {
    padding-right: 0;
  }

  .benefits-title {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    font-size: clamp(22px, 6vw, 30px);
    white-space: normal;
    row-gap: 0;
  }

  .benefits-title__line2 {
    margin-top: 0;
    white-space: nowrap;
  }

  .benefits-title__script {
    font-size: clamp(36px, 10vw, 48px) !important;
    position: relative;
    top: 3px !important;
    width: auto;
    height: auto;
  }

  .benefits-bento {
    grid-template-columns: 1fr;
    grid-template-areas:
      "tall"
      "fipi"
      "video"
      "chat"
      "cta";
    gap: 12px;
    row-gap: 12px;
  }

  .bento-card--fgos,
  .bento-card--contact {
    display: none;
  }

  .benefits-bento .bento-cta {
    margin-top: 0;
  }

  .bento-card--tall {
    height: auto;
    padding: 24px 16px 20px;
  }

  .bento-card--tall .bento-card__lead {
    max-width: 100%;
    font-size: 15px;
    line-height: 1.35;
  }

  .bento-feature-rows {
    width: 100%;
    gap: 8px;
    margin-top: 16px;
  }

  .bento-feature-row {
    width: 100%;
    height: auto;
    min-height: 42px;
    padding: 6px 10px;
    column-gap: 4px;
    border-radius: 999px;
  }

  .bento-feature-row .bento-feature {
    font-size: 10px;
    gap: 5px;
    line-height: 1.1;
  }

  .bento-feature-row .bento-feature img {
    width: 20px;
    height: 20px;
  }

  .bento-card--fipi {
    height: auto;
    min-height: 0;
    padding: 20px 16px;
  }

  .bento-card--fipi .bento-card__icon,
  .bento-card--fipi .bento-card__text {
    position: static;
    left: auto;
    top: auto;
    width: auto;
    max-width: 100%;
    height: auto;
  }

  .bento-card--fipi .bento-card__icon {
    width: 36px;
    height: 36px;
    margin: 0 0 12px;
  }

  .bento-card--fipi .bento-card__icon img {
    width: 36px !important;
    height: 36px !important;
    max-width: 36px;
    object-fit: contain;
  }

  .bento-card--fipi .bento-card__text {
    width: 100%;
    max-width: 100%;
    height: auto;
    font-size: 14px;
    line-height: 1.4;
    letter-spacing: -0.03em;
  }

  .bento-card--fipi::after {
    display: none;
  }

  .bento-cta {
    width: min(200px, 100%);
    height: 44px;
    margin-top: 4px;
    margin-bottom: 4px;
    justify-content: center;
    justify-self: center;
    padding: 0;
    text-align: center;
  }

  .bento-card--video,
  .bento-card--chat {
    height: auto;
    border-radius: 24px;
    padding: 20px 16px;
  }

  .bento-card__text,
  .bento-card__lead {
    line-height: 1.35;
  }

  .b-card.wide {
    grid-column: span 1;
  }

  .ready-banner {
    height: auto;
    min-height: 0;
    padding: 28px 20px 32px;
  }

  .ready-banner__text {
    position: static;
    transform: none;
    max-width: 100%;
    width: auto;
  }

  .ready-banner__text h3 {
    font-size: 24px;
  }

  .ready-banner__text p {
    font-size: 15px;
  }

  .ready-banner__icon,
  .ready-banner__scroll {
    display: none !important;
  }

  .ready-banner-section {
    padding-top: 40px;
  }

  .directions-layout,
  .faq-layout {
    grid-template-columns: 1fr;
  }

  /* Учителя: выбор слева, карточка справа */
  .teacher-showcase {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    align-items: start;
  }

  .teacher-panel__main {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .dir-tabs {
    position: static;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
    margin-bottom: 16px;
    scrollbar-width: none;
  }

  .dir-tabs::-webkit-scrollbar {
    display: none;
  }

  .dir-tabs--marquee {
    display: block;
    overflow: hidden;
    touch-action: pan-x pan-y;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    width: 100%;
    max-width: 100%;
  }

  .dir-tabs--marquee.is-dragging {
    cursor: grabbing;
  }

  .dir-tabs--marquee .dir-tabs__track {
    display: flex !important;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    width: max-content !important;
    max-width: none;
    will-change: transform;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
  }

  .dir-tab {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .dir-panels {
    min-height: 0;
  }

  .dir-mosaic,
  .dir-mosaic--ege,
  .dir-mosaic--oge,
  .dir-mosaic--vpr,
  .dir-mosaic--olympiad,
  .dir-mosaic--progress {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    grid-template-areas: none;
    min-height: 0;
    gap: 12px;
  }

  .dir-mosaic > * {
    grid-area: auto !important;
    max-width: 100% !important;
    width: 100%;
    justify-self: stretch;
  }

  .dir-arrows {
    display: none;
  }

  .dir-media--tilt {
    transform: none;
  }

  .dir-card--offset-blue,
  .dir-card--offset-pink,
  .dir-media--offset-blue,
  .dir-media--offset-pink {
    box-shadow: 0 8px 28px rgba(67, 43, 39, 0.07);
  }

  .dir-media--offset-blue::before,
  .dir-media--offset-pink::before,
  .dir-card--offset-blue::before,
  .dir-card--offset-pink::before {
    display: none;
  }

  .dir-media--lesson,
  .dir-media--desk {
    display: none;
  }

  .formats-deco,
  .reviews-deco,
  .teachers-deco,
  .ready-banner__icon--left,
  .ready-banner__icon--right {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
  }

  .formats-deco {
    border: none;
    padding: 0;
  }

  .reviews-deco {
    border: none;
    padding: 4px;
  }

  .reviews-title,
  .faq-title,
  .final-cta-title {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    font-size: clamp(22px, 6vw, 28px);
    line-height: 1.2;
    row-gap: 0;
    column-gap: 6px;
  }

  .formats-title {
    display: block;
    line-height: 1.1;
    white-space: normal;
    max-width: 100%;
    font-size: clamp(22px, 6vw, 30px);
    letter-spacing: -0.06em;
    color: #120629;
  }

  .teachers-title {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.05;
    row-gap: 0;
    white-space: normal;
    max-width: 100%;
    font-size: clamp(22px, 6vw, 30px);
  }

  .teachers-title__line2 {
    white-space: nowrap;
    flex-wrap: nowrap;
  }

  .formats-title__main {
    display: block;
    white-space: nowrap;
    max-width: 100%;
  }

  .formats-title__line2 {
    display: inline-flex;
    flex-wrap: nowrap;
    align-items: baseline;
    gap: 0 6px;
    margin-top: -0.28em;
    white-space: nowrap;
    max-width: 100%;
  }

  .formats-title__plain {
    white-space: nowrap;
    flex-shrink: 0;
  }

  .formats-title .formats-title__script,
  .formats-title .formats-title__script.accent-script {
    flex-shrink: 0;
    top: 0 !important;
    font-size: 54px !important;
  }

  .teachers-title__script {
    flex-shrink: 0;
    font-size: clamp(61px, 10vw, 73px) !important;
    top: 3px !important;
  }

  .faq-pill,
  .eyebrow.faq-pill {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
  }

  .faq-title__script,
  .faq-title__script.accent-script {
    font-size: 48px !important;
    top: 0 !important;
  }

  .teachers-pill {
    min-height: 34px;
    padding: 8px 16px;
    border-width: 2px;
  }

  .teachers-title__main {
    display: block;
    max-width: 100%;
    white-space: normal;
  }

  .teachers-title__plain {
    white-space: nowrap;
    flex-shrink: 0;
  }

  .pricing-title__main,
  .faq-title__main {
    display: inline;
    max-width: none;
  }

  .reviews-title,
  .boards-title,
  .final-cta-title,
  .pricing-title {
    justify-content: center;
    text-align: center;
  }

  .free-lesson__title-script {
    display: inline;
    position: static;
    top: auto !important;
    font-size: inherit;
    line-height: inherit;
    margin: 0;
    transform: none;
  }

  .pricing-title {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: center;
    font-size: clamp(28px, 7.5vw, 40px);
    line-height: 1.15;
    row-gap: 0;
    letter-spacing: calc(-0.07em + 2pt);
  }

  .pricing-title__script {
    display: inline-block;
    position: relative;
    top: -18px !important;
    font-size: 56px;
    line-height: 1;
    margin: 0;
    transform: none;
  }

  .reviews-title__script {
    display: inline-block;
    position: relative;
    top: -18px !important;
    font-size: 56px;
    line-height: 1;
    margin: 0;
    transform: none;
  }

  .boards-title__script {
    display: inline-block;
    position: relative;
    top: -18px !important;
    font-size: 56px;
    line-height: 1;
    margin: 0;
    transform: none;
  }

  .final-cta-title__script {
    display: inline-block;
    position: relative;
    top: -18px !important;
    font-size: 56px;
    line-height: 1;
    margin: 0;
    transform: none;
  }

  .free-lesson__title-script {
    top: 0 !important;
  }

  .formats-title .formats-title__script,
  .formats-title .formats-title__script.accent-script {
    display: inline-block;
    position: relative;
    top: 0 !important;
    font-size: 54px !important;
    line-height: 1;
    margin: 0;
    transform: none;
  }

  .teachers-title__script {
    display: inline-block;
    position: relative;
    font-size: clamp(61px, 10vw, 73px) !important;
    top: 3px !important;
    line-height: 1;
    margin: 0;
    transform: none;
  }

  .faq-title__script,
  .faq-title__script.accent-script {
    display: inline-block;
    position: relative;
    font-size: 48px !important;
    top: 0 !important;
    line-height: 1;
    margin: 0;
    transform: none;
  }

  .directions-head {
    padding-right: 0;
    overflow: visible;
    max-width: 100%;
  }

  .directions-title {
    font-size: clamp(18px, 5.2vw, 28px);
    max-width: 100%;
    letter-spacing: -0.055em;
    line-height: 1.15;
    margin-bottom: 0;
    overflow: visible;
  }

  .directions-title__main {
    white-space: nowrap;
    max-width: 100%;
    overflow: visible;
  }

  .directions-title__line2 {
    margin-top: -0.15em;
    white-space: nowrap;
    max-width: 100%;
  }

  .directions-title__line3 {
    margin-top: 0.08em;
    white-space: nowrap;
    max-width: 100%;
    overflow: visible;
    gap: 0 0.12em;
  }

  .directions-title__plain {
    letter-spacing: -0.055em;
    font-size: 0.94em;
  }

  .directions-title__script,
  .directions-title__script.accent-script,
  .directions-head .accent-script {
    font-size: clamp(48px, 11vw, 62px);
    letter-spacing: -0.025em;
    line-height: 1;
    top: 0 !important;
    left: 0 !important;
    transform: none !important;
    overflow: visible;
  }

  .pricing-sub,
  .formats-sub,
  .faq-lead,
  .final-cta-sub {
    font-size: 15px;
    max-width: 100%;
  }

  .teacher-sidebar {
    flex-direction: row;
    align-items: flex-start;
    padding-top: 0;
    position: sticky;
    top: calc(max(10px, env(safe-area-inset-top, 0px)) + 64px);
  }

  .teacher-sidebar::after {
    display: none;
  }

  .teacher-avatars {
    flex-direction: column;
    flex-wrap: nowrap;
    overflow-x: visible;
    overflow-y: auto;
    gap: 10px;
    padding: 2px 4px 2px 0;
    max-height: min(70vh, 520px);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .teacher-avatars::-webkit-scrollbar {
    display: none;
  }

  .teacher-avatar {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    padding: 2px;
  }

  .teacher-avatar img {
    border-radius: 10px;
  }

  .teacher-avatar__badge {
    width: 14px;
    height: 14px;
    font-size: 8px;
    right: -2px;
    bottom: -2px;
  }

  .teacher-photo {
    max-width: min(200px, 52vw);
    width: 100%;
    margin: 0;
    border-radius: 16px;
  }

  .teacher-showcase {
    gap: 10px;
  }

  .teacher-info h3 {
    font-size: clamp(22px, 6.2vw, 28px);
    letter-spacing: -0.04em;
    line-height: 1.15;
    margin-bottom: 12px;
    overflow-wrap: anywhere;
  }

  .teacher-tags {
    gap: 6px;
    margin-bottom: 14px;
  }

  .teacher-tag {
    font-size: 12px;
    padding: 6px 10px;
    gap: 5px;
    max-width: 100%;
  }

  .teacher-tag__icon {
    width: 14px;
    height: 14px;
  }

  .teacher-achievements {
    padding: 18px 16px;
    border-radius: 20px;
  }

  .teacher-achievements ul {
    gap: 12px;
  }

  .teacher-achievements li {
    font-size: 13px;
    line-height: 1.45;
    letter-spacing: -0.02em;
    gap: 10px;
    overflow-wrap: anywhere;
  }

  .teacher-achievements li::before {
    margin-top: 7px;
  }

  .teacher-gallery {
    gap: 8px;
  }

  .teacher-gallery__item {
    border-radius: 12px;
  }

  .price-card {
    max-width: none;
    padding: 28px 14px 14px;
    overflow: visible;
    border-radius: 20px;
  }

  .price-card__head {
    margin: -28px 0 12px;
    position: relative;
    z-index: 2;
    justify-content: center;
    width: 100%;
    flex-wrap: nowrap;
    gap: 8px;
  }

  .price-card--featured .price-card__head {
    justify-content: flex-end;
    padding-right: 12px;
    transform: translateX(-35px);
  }

  .price-card__label {
    flex: 0 1 auto;
    white-space: nowrap;
    padding: 8px 16px 10px;
    font-size: 13px;
    border-radius: 0 0 14px 14px;
  }

  .price-card ul {
    gap: 8px;
    margin: 0 0 10px;
  }

  .price-card li {
    font-size: 12px;
    line-height: 1.3;
    gap: 8px;
  }

  .price-card__note {
    margin: 0 0 12px;
    font-size: 12px;
  }

  .price-card__bottom {
    gap: 10px;
  }

  .price-card__amount {
    font-size: 12px;
  }

  .price-card__amount strong {
    font-size: 22px;
  }

  .price-card__lesson {
    font-size: 12px;
    margin-top: -4px;
  }

  .price-card__lesson strong {
    font-size: 14px;
  }

  .price-card__btn {
    min-width: 148px;
    padding: 3px 3px 3px 14px;
    font-size: 13px;
  }

  .price-card__btn .btn-arrow {
    width: 30px;
    height: 30px;
  }

  .format-card,
  .format-card--pink {
    min-height: 0;
    padding: 20px 18px;
    border-radius: 22px;
  }

  .format-card--pink {
    overflow: visible;
    margin-top: 18px;
    height: auto;
    background: #F7D8E0;
  }

  .format-card__watermark {
    width: 140px;
    height: 140px;
    opacity: 0.14;
  }

  .format-card h3 {
    font-size: 16px;
    margin: 0 0 10px;
  }

  .format-card__hint {
    font-size: 12px;
  }

  .format-card ul {
    gap: 8px;
  }

  .format-card li {
    font-size: 12px;
    line-height: 1.3;
    padding-left: 12px;
  }

  .format-card li::before {
    top: 6px;
    width: 4px;
    height: 4px;
  }

  .price-card__hit {
    flex: 0 0 auto;
    position: relative;
    top: 0;
    transform: none;
  }

  .price-card li::before {
    margin-top: 6px;
  }

  .free-lesson {
    width: 100%;
    height: auto;
    min-height: 281px;
  }

  .free-lesson__inner {
    padding: 28px 20px;
    max-width: min(100%, 420px);
  }

  .free-lesson__title {
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.22em;
    min-height: 0;
    font-size: clamp(20px, 7.2vw, 34px);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.06em;
    color: #120629;
  }

  .free-lesson__title-main,
  .free-lesson__title-script {
    font-size: inherit;
  }

  .free-lesson::after {
    width: min(84%, 560px);
    background: linear-gradient(
      90deg,
      #A9C9FC 0%,
      #A9C9FC 70%,
      rgba(169, 201, 252, 0.94) 86%,
      rgba(169, 201, 252, 0) 100%
    );
  }

  .free-lesson__bg {
    width: min(46%, 200px);
    opacity: 1;
  }

  .free-lesson__bg img {
    object-fit: cover;
    object-position: right center;
  }

  .formats-head {
    position: relative;
    margin-bottom: 16px;
    padding-right: 0;
  }

  .formats-head__text {
    max-width: 100%;
  }

  .formats-deco {
    position: absolute;
    top: -28px;
    right: -10px;
    width: 92px;
    height: 92px;
    padding: 0;
    margin: 0;
    z-index: 2;
    pointer-events: none;
    transform: rotate(-8deg);
  }

  .formats-grid {
    margin-top: 0;
    margin-bottom: 20px;
  }

  .formats-note {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .formats-note__bubble {
    max-width: 100%;
  }

  .reviews-block {
    min-height: 0;
    width: calc(100% - (var(--page-gutter) * 2));
  }

  .reviews-head {
    margin-bottom: 24px;
    padding: 0;
  }

  .reviews-stage {
    height: auto;
    display: block;
    overflow: visible;
  }

  .review-card,
  .review-card--ege,
  .review-card--oge,
  .review-card--parent {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    min-height: 0;
    padding: 22px 20px;
    border-radius: 24px;
    margin-left: 0;
    transform: none;
  }

  .reviews-marquee .review-card {
    flex: 0 0 min(320px, 78vw);
    width: min(320px, 78vw);
    max-width: min(320px, 78vw);
  }

  .review-card--parent:hover,
  .review-card:hover {
    transform: scale(1.03);
  }

  .boards-head {
    margin-bottom: 22px;
    padding: 0 4px;
  }

  .boards-title {
    font-size: clamp(22px, 6.2vw, 28px);
    white-space: normal;
  }

  .boards-title__script {
    font-size: 56px;
    top: -18px !important;
  }

  .boards-sub {
    font-size: 14px;
    margin-top: 10px;
    padding: 0 8px;
  }

  .boards-marquee__track {
    gap: 12px;
    padding: 4px 12px 8px;
  }

  .board-card {
    flex-basis: min(340px, 88vw);
    width: min(340px, 88vw);
    border-radius: 16px;
  }

  .boards-lightbox {
    padding: 12px;
  }

  .boards-lightbox__img {
    max-width: 100%;
    max-height: 82vh;
    border-radius: 12px;
  }

  .reviews-deco {
    flex-basis: 72px;
    width: 72px;
    height: 72px;
    padding: 8px;
  }

  .faq-head {
    margin-bottom: 24px;
  }

  .faq-media {
    margin: 8px 0 0;
  }

  .faq-media__photo {
    border-radius: 20px;
  }

  .faq-marks {
    top: auto;
    bottom: 220px;
    right: 12px;
    width: 120px;
    height: 90px;
  }

  .faq-marks__a { width: 52px; }
  .faq-marks__b { width: 36px; right: 56px; }
  .faq-marks__c { width: 28px; }

  .final-cta-grid {
    gap: 20px;
    max-width: none;
  }

  .final-cta-media {
    max-height: 220px;
    min-height: 180px;
    border-radius: 24px;
  }

  .final-cta-media img {
    position: relative;
    height: 220px;
    border-radius: 24px;
  }

  .form-card {
    padding: 20px 16px 18px;
    border-radius: 24px;
  }

  .field input,
  .field select {
    padding: 14px 18px;
    font-size: 16px; /* iOS zoom prevention */
  }

  .field--select::after {
    width: 30px;
    height: 30px;
  }

  .footer-nav {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .footer-col--social {
    grid-column: 1 / -1;
  }

  .chat-row {
    grid-template-columns: 1fr;
  }

  .price-card--featured {
    box-shadow: none;
  }
}

/* —— iPhone / small phones (incl. iPhone 14 Pro Max 430×932) —— */
@media (max-width: 480px) {
  :root {
    --page-gutter: 16px;
  }

  .site-header--hero {
    top: max(10px, env(safe-area-inset-top, 0px));
    left: max(var(--page-gutter), env(safe-area-inset-left, 0px));
    right: max(var(--page-gutter), env(safe-area-inset-right, 0px));
    height: 46px;
    padding: 0;
    background: transparent;
    border: none;
  }

  .header-nav {
    top: calc(max(10px, env(safe-area-inset-top, 0px)) + 54px);
    left: max(var(--page-gutter), env(safe-area-inset-left, 0px));
    right: max(var(--page-gutter), env(safe-area-inset-right, 0px));
  }

  .header-logo img {
    height: 56px;
    max-height: 56px;
  }

  .site-header--hero {
    height: 52px;
  }

  .main-screen,
  .benefits-block,
  .directions-block,
  .formats-block,
  .reviews-block,
  .boards-block,
  .ready-banner {
    width: calc(100% - (var(--page-gutter) * 2));
  }

  .main-screen {
    margin-top: calc(max(10px, env(safe-area-inset-top, 0px)) + 62px);
  }

  .main-logo {
    width: min(360px, 92%);
    margin-bottom: 18px;
  }

  .main-cta {
    width: auto;
    max-width: none;
  }

  .school-facts {
    gap: 12px;
  }

  .stat-card,
  .stat-card--points,
  .stat-card--students,
  .stat-card--blue {
    width: 100%;
    max-width: none;
    min-height: 0;
    border-radius: 20px;
    padding: 10px 16px 12px;
  }

  .stat-card__desc {
    margin-top: 4px;
    font-size: 12px;
  }

  .site-footer {
    padding-bottom: max(32px, env(safe-area-inset-bottom, 0px));
  }

  .free-lesson__title-script {
    font-size: inherit;
    top: auto !important;
  }

  .pricing-title__script {
    font-size: 56px;
    top: -18px !important;
  }

  .reviews-title__script {
    font-size: 56px;
    top: -18px !important;
  }

  .final-cta-title__script {
    font-size: 56px;
    top: -18px !important;
  }

  .free-lesson__title-script {
    top: auto !important;
    font-size: inherit;
  }

  .formats-title .formats-title__script,
  .formats-title .formats-title__script.accent-script {
    top: 0 !important;
    font-size: 52px !important;
  }

  .teachers-title__script {
    top: 1px !important;
    font-size: clamp(59px, 9.5vw, 69px) !important;
  }

  .faq-title__script,
  .faq-title__script.accent-script {
    top: 0 !important;
    font-size: 48px !important;
  }

  .faq-pill,
  .eyebrow.faq-pill {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
  }

  .directions-title {
    font-size: clamp(16px, 4.8vw, 22px);
    letter-spacing: -0.05em;
  }

  .directions-title__line2 {
    margin-top: -0.12em;
  }

  .directions-title__line3 {
    margin-top: 0.06em;
    gap: 0 0.05em;
  }

  .directions-title__plain {
    letter-spacing: -0.075em;
    font-size: 0.86em;
  }

  .directions-title__script,
  .directions-title__script.accent-script,
  .directions-head .accent-script {
    font-size: clamp(44px, 10.5vw, 56px);
    letter-spacing: -0.04em;
    top: 0 !important;
    left: 0 !important;
    transform: none !important;
  }

  .benefits-title__line2 {
    margin-top: 0;
    white-space: nowrap;
  }

  .benefits-title__script {
    font-size: clamp(34px, 9.5vw, 44px) !important;
    position: relative;
    top: -3px !important;
    width: auto;
  }

  .bento-feature-rows {
    gap: 6px;
    margin-top: 12px;
  }

  .bento-feature-row {
    min-height: 38px;
    padding: 5px 8px;
    column-gap: 3px;
  }

  .bento-feature-row .bento-feature {
    font-size: 9.5px;
    gap: 4px;
  }

  .bento-feature-row .bento-feature img {
    width: 18px;
    height: 18px;
  }

  .price-card {
    padding: 24px 12px 12px;
  }

  .price-card__head {
    margin: -24px 0 10px;
  }

  .format-card,
  .format-card--pink {
    padding: 14px 12px;
  }

  .teachers-title {
    font-size: clamp(22px, 6.2vw, 28px);
  }

  .formats-title {
    font-size: clamp(20px, 5.8vw, 26px);
    letter-spacing: -0.07em;
  }

  .formats-head {
    margin-bottom: 12px;
    padding-right: 0;
  }

  .formats-deco {
    top: -22px;
    right: -8px;
    width: 72px;
    height: 72px;
  }

  .formats-title .formats-title__script,
  .formats-title .formats-title__script.accent-script {
    font-size: 48px !important;
    top: 0 !important;
  }

  .teachers-title__script {
    font-size: clamp(59px, 9.5vw, 69px) !important;
    top: 1px !important;
  }

  .teacher-avatar {
    width: 38px;
    height: 38px;
    border-radius: 10px;
  }

  .teacher-photo {
    max-width: min(180px, 48vw);
    border-radius: 14px;
  }

  .teachers-pill {
    min-height: 32px;
    padding: 7px 14px;
  }

  .footer-nav {
    grid-template-columns: 1fr;
  }

  .review-card {
    flex-basis: min(280px, 86vw);
    width: min(280px, 86vw);
  }

  .stat-card__num {
    font-size: clamp(28px, 9vw, 40px);
  }
}

/* Directions title: 3 lines on ~320–380px without overflow */
@media (max-width: 380px) {
  .directions-title {
    font-size: clamp(15px, 4.6vw, 18px);
    letter-spacing: -0.045em;
  }

  .directions-title__line2 {
    margin-top: -0.1em;
  }

  .directions-title__line3 {
    margin-top: calc(-0.42em - 5px);
    gap: 0 0.03em;
  }

  .directions-title__plain {
    letter-spacing: -0.085em;
    font-size: 0.8em;
  }

  .directions-title__script,
  .directions-title__script.accent-script,
  .directions-head .accent-script {
    font-size: clamp(42px, 10.5vw, 52px);
    letter-spacing: -0.05em;
    top: 0 !important;
    left: 0 !important;
    transform: none !important;
  }
}

/* ============================= SCROLL REVEAL ============================= */
.reveal {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.benefits-deco.reveal,
.formats-deco.reveal,
.final-cta-media.reveal {
  transform: translate3d(24px, 16px, 0) scale(0.96);
}

.benefits-deco.reveal.is-visible,
.formats-deco.reveal.is-visible,
.final-cta-media.reveal.is-visible {
  transform: translate3d(0, 0, 0) scale(1);
}

.price-card.reveal:nth-child(2):not(.is-visible),
.format-card--pink.reveal:not(.is-visible),
.stat-card--students.reveal:not(.is-visible) {
  transform: translate3d(0, 36px, 0);
}

.faq-list .accordion-item.reveal:not(.is-visible) {
  transform: translate3d(-16px, 18px, 0);
}

@media (max-width: 768px) {
  .reveal:not(.is-visible) {
    transform: translate3d(0, 24px, 0);
    transition-duration: 0.65s;
  }

  .reveal {
    transition-duration: 0.65s;
  }

  .benefits-deco.reveal:not(.is-visible),
  .formats-deco.reveal:not(.is-visible),
  .final-cta-media.reveal:not(.is-visible) {
    transform: translate3d(0, 18px, 0) scale(0.97);
  }

  .faq-list .accordion-item.reveal:not(.is-visible) {
    transform: translate3d(0, 18px, 0);
  }

  .stat-card--students.reveal:not(.is-visible),
  .price-card.reveal:nth-child(2):not(.is-visible),
  .format-card--pink.reveal:not(.is-visible) {
    transform: translate3d(0, 28px, 0);
  }

  .main-logo.reveal.is-visible,
  .main-cta.reveal.is-visible {
    animation: none;
  }

  .bento-card.reveal.is-visible .bento-card__icon {
    animation: none;
  }

  .header-logo img {
    transition: none;
  }

  .benefits-layout {
    grid-template-columns: 1fr;
  }

  .benefits-head {
    padding-right: 0;
  }

  .benefits-deco {
    position: relative;
    top: 0;
    right: 0;
    max-width: 180px;
    margin: 0 0 16px auto;
    transform: rotate(-12deg);
  }

  .footer-nav {
    grid-template-columns: 1fr 1fr;
  }

  .burger:active span,
  .header-logo:active img,
  .main-cta:active,
  .header-btn:active,
  .bento-cta:active,
  .price-card .btn:active,
  .free-lesson__btn:active {
    transform: none;
  }

  .dir-tab,
  .teacher-avatar,
  .price-card,
  .format-card,
  .bento-card {
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, border-color 0.22s ease;
  }

  .dir-tab:active,
  .teacher-avatar:active {
    transform: scale(0.96);
  }
}

@keyframes mobile-logo-float {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -6px, 0); }
}

@keyframes mobile-cta-pulse {
  0%, 100% { box-shadow: 0 8px 20px rgba(146, 177, 229, 0.28); }
  50% { box-shadow: 0 12px 28px rgba(146, 177, 229, 0.45); }
}

@keyframes mobile-icon-pop {
  0% { transform: scale(0.72); opacity: 0.4; }
  100% { transform: scale(1); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
  .reveal,
  .reveal.is-visible {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .preloader__logo,
  .preloader__bar span,
  .main-logo,
  .main-cta,
  .bento-card.reveal.is-visible .bento-card__icon {
    animation: none !important;
  }

  .review-card:hover {
    transform: none;
  }
}

/* ===== Figma desktop transfer overrides ===== */
.benefits-col--left .bento-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-height: 145px;
  height: auto;
  padding: 28px 28px 28px 32px;
  border-radius: 39px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow:
    0 0 0 1px rgba(168, 193, 233, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    inset 0 -1px 1px rgba(139, 176, 229, 0.08),
    0 6px 14px -10px rgba(18, 5, 40, 0.08);
}

.bento-card__text {
  font-size: 21px !important;
  letter-spacing: -0.06em;
  line-height: 1.05 !important;
  max-width: 400px;
}

.bento-card__side-icon {
  width: 31px;
  height: auto;
  flex-shrink: 0;
}

.bento-card--features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 12px;
  min-height: 215px;
  padding: 32px 28px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 39px;
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  box-shadow:
    0 0 0 1px rgba(168, 193, 233, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    inset 0 -1px 1px rgba(139, 176, 229, 0.08),
    0 6px 14px -10px rgba(18, 5, 40, 0.08);
}

.bento-card--features .bento-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 21px;
  font-weight: 500;
  letter-spacing: -0.06em;
  color: #120528;
}

.bento-card--features .bento-feature img {
  width: 35px;
  height: 35px;
  object-fit: contain;
}

.benefits-col--right .bento-card--fgos {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  min-height: 188px;
  height: auto;
  padding: 28px 24px 28px 32px;
  background: rgba(139, 176, 229, 0.38);
  border: 1px solid #FFFFFF;
  border-radius: 25px;
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  box-shadow: 0 0 48px rgba(139, 176, 229, 0.45);
}

.benefits-col--right .bento-card--fgos .bento-card__text {
  max-width: 322px;
}

.benefits-col--right .bento-card--fgos .bento-card__side-icon {
  width: 46px;
}

.benefits-col--right .bento-card--contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 20px;
  width: 100%;
  min-height: 0;
  height: auto;
  padding: 28px 32px 24px;
  overflow: visible;
  background: rgba(247, 216, 224, 0.82);
  border: 1px solid #FFFFFF;
  border-radius: 33px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.benefits-col--right .bento-card--contact .bento-card__text {
  font-size: 26px !important;
  max-width: 388px;
}

.benefits-col--right .bento-card--contact .bento-cta {
  margin: 0 auto;
  padding: 0;
  justify-content: center;
  text-align: center;
  font-family: "Golos Text", sans-serif;
  font-size: 16.72px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.05em;
  color: #FFFFFF;
}

.bento-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 174px;
  height: 52px;
  margin: 4px auto 0;
  background: #8AAFE4;
  border: 1px solid #FFFFFF;
  border-radius: 103px;
  color: #FFFFFF;
  font-size: 21px;
  font-weight: 500;
  letter-spacing: -0.05em;
}

.price-card__btn {
  padding: 0 0 0 18px;
  min-width: 165px;
  height: 40px;
}

.price-card__btn img {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.price-card__btn--blue {
  background: #C4D5EF;
}

.price-card__amount strong {
  font-size: 32px;
  font-weight: 400;
}

.pricing-title,
.teachers-title,
.formats-title,
.reviews-title,
.boards-title,
.faq-title,
.final-cta-title,
.directions-title {
  color: #120629;
  font-weight: 500;
}

.footer-logo__link img {
  height: 39px;
}

.footer-col a {
  color: #120528;
  font-size: 16px;
}

.footer-socials a {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 600;
}

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

  .bento-card__text,
  .benefits-col--right .bento-card--contact .bento-card__text {
    font-size: 16px !important;
  }

  .main-lettering {
    width: 100%;
  }
}

.formats-head {
  position: relative;
}

.format-card h3,
.format-card li,
.format-card li::before {
  color: #120629;
}

.formats-note { display: none; }

.reviews-block { position: relative; }

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

.reviews-3d {
  position: absolute;
  object-fit: contain;
}

.reviews-3d--star {
  display: none;
}

.reviews-3d--book {
  width: 168px;
  height: auto;
  left: 47%;
  top: 168px;
  transform: translateX(-50%) rotate(-8deg);
  z-index: 2;
}

.reviews-3d--glasses {
  width: 158px;
  height: auto;
  left: 36px;
  bottom: 18px;
  transform: rotate(-16deg);
}

.reviews-3d--cursor {
  width: 176px;
  height: auto;
  right: 28px;
  top: 318px;
  transform: rotate(12deg);
}

.faq-media__photo {
  width: 477px;
  max-width: 100%;
  height: 358px;
  object-fit: cover;
  border-radius: 25px;
  border: 1px solid #FFFFFF;
}

.faq-list .accordion-item {
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 22px;
  box-shadow: 0 8px 22px rgba(18, 6, 41, 0.05);
}

.final-cta-section { background: #F7D8E0; }

.form-card {
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid #FFFFFF;
  border-radius: 24px;
}

.field input,
.field select {
  height: 50px;
  background: #E8E8E8;
  border: none;
  font-size: 15px;
}

.form-submit {
  background: #C4D5EF;
  color: #120629;
  border: 1px solid #FFFFFF;
}

.free-lesson__btn {
  background: #FFFFFF;
  color: #8BB0E5;
}

@media (max-width: 900px) {
  .reviews-3d { display: none; }
  .format-card,
  .format-card--pink {
    width: 100%;
    height: auto;
  }
}

/* ===== Figma phone «телефон» 375×8800 ===== */
@media (max-width: 768px) {
  :root {
    --page-gutter: 14px;
  }

  .site-header--hero {
    height: 44px;
  }

  .header-logo img {
    height: 38px;
    max-height: 38px;
  }

  .header-nav {
    top: calc(max(10px, env(safe-area-inset-top, 0px)) + 52px);
    padding: 4px 0 16px;
    gap: 10px;
    align-items: flex-start;
    background: transparent;
    border: none;
    box-shadow: none;
    border-radius: 0;
    z-index: 200;
  }

  .header-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    max-width: 100%;
    min-height: 32px;
    padding: 6px 16px;
    background: #F6F6F6;
    border: 1px solid #FFFFFF;
    border-radius: 54px;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: -0.04em;
    color: #120528;
    white-space: nowrap;
  }

  .header-nav a:hover,
  .header-nav a:active {
    background: #ECECEC;
  }

  .header-nav a.header-nav__cta,
  .header-nav__cta {
    width: 140px;
    min-height: 26px;
    height: 26px;
    margin-top: 2px;
    padding: 0 12px;
    background: #8AAFE4;
    color: #FFFFFF !important;
    font-size: 13px;
    font-weight: 500;
  }

  .header-nav a.header-nav__cta:hover,
  .header-nav__cta:hover {
    background: #7A9CD9;
  }

  .burger {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
    padding: 8px;
  }

  .main-screen {
    min-height: 0;
    margin-top: calc(max(10px, env(safe-area-inset-top, 0px)) + 56px);
    margin-bottom: 32px;
  }

  .main-screen__hero {
    padding-top: 8px;
  }

  .main-lettering {
    width: 100%;
  }

  .hero-glow {
    top: 90px;
    width: 640px;
    height: 360px;
    filter: blur(120px);
  }

  .main-logo {
    width: min(320px, 88%);
    margin: 12px auto 0;
  }

  .main-star--left {
    width: 42px;
    height: 42px;
  }

  .main-star--right {
    width: 32px;
    height: 32px;
  }

  .main-star--mini {
    width: 18px;
    height: 18px;
  }

  .main-tagline {
    font-size: 21px;
    letter-spacing: -0.06em;
    margin: 8px 0 6px;
  }

  .main-sub {
    width: min(338px, 100%);
    max-width: 338px;
    margin: 0 auto 16px;
    font-size: 16px;
    line-height: 19px;
    white-space: nowrap;
  }

  .main-cta {
    width: min(294px, 100%);
    min-height: 52px;
    padding: 12px 24px;
    margin: 0 auto 22px;
    font-size: 16px;
  }

  .school-facts {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
    aspect-ratio: auto;
    margin-top: 8px;
  }

  .stat-card,
  .stat-card--points,
  .stat-card--students,
  .stat-card--blue {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    height: auto !important;
    min-height: 0;
    padding: 14px 16px 16px;
  }

  .stat-card--students {
    order: 1;
    width: min(246px, 100%);
    min-height: 99px;
  }

  .stat-card--points {
    order: 2;
    width: min(222px, 92%);
    min-height: 88px;
  }

  .stat-card--blue {
    order: 3;
    width: min(246px, 100%);
    min-height: 88px;
  }

  .stat-card__num,
  .stat-card__desc {
    position: static;
    transform: none;
    left: auto;
    width: auto;
    max-width: none;
  }

  .stat-card__num {
    font-size: 22px;
    line-height: 1.15;
  }

  .stat-card--students .stat-card__num {
    font-size: 24px;
  }

  .stat-card__desc {
    margin-top: 6px;
    font-size: 13px;
    line-height: 1.25;
  }

  .benefits-block {
    position: relative;
    padding-top: 8px;
  }

  .benefits-deco {
    position: absolute;
    top: -8px;
    right: 0;
    width: 86px;
    height: auto;
    margin: 0;
    transform: rotate(-12deg);
    z-index: 1;
  }

  .benefits-pill {
    margin: 0 auto 14px;
  }

  .benefits-blob {
    top: 160px;
    width: 180%;
  }

  .benefits-col--right::before {
    width: 150%;
    height: 118%;
    filter: blur(36px);
  }

  .section-sub {
    font-size: 14px;
    line-height: 1.35;
    max-width: 320px;
  }

  .benefits-layout,
  .benefits-col {
    gap: 12px;
  }

  .benefits-col--left .bento-card,
  .benefits-col--right .bento-card--fgos,
  .benefits-col--right .bento-card--contact {
    display: flex;
    width: 100%;
    max-width: 346px;
    margin: 0 auto;
    min-height: 0;
    padding: 18px 16px;
    border-radius: 24px;
  }

  .bento-card__text,
  .benefits-col--left .bento-card .bento-card__text,
  .benefits-col--right .bento-card--fgos .bento-card__text,
  .benefits-col--right .bento-card--contact .bento-card__text {
    font-size: 14px !important;
    line-height: 1.3 !important;
    letter-spacing: -0.04em;
    max-width: none;
  }

  .bento-card__side-icon {
    width: 26px;
  }

  .bento-card--features {
    width: 100%;
    max-width: 346px;
    margin: 0 auto;
    min-height: 0;
    padding: 20px 16px;
    gap: 16px 8px;
    border-radius: 24px;
  }

  .bento-card--features .bento-feature {
    font-size: 13px;
    gap: 8px;
  }

  .bento-card--features .bento-feature img {
    width: 24px;
    height: 24px;
  }

  .bento-cta {
    width: 141px;
    height: 42px;
    font-size: 15px;
    margin: 4px auto 0;
  }

  .ready-banner-section {
    padding: 40px 0 28px;
  }

  .ready-banner {
    display: flex;
    align-items: center;
    width: min(312px, 100%);
    height: auto;
    min-height: 84px;
    padding: 16px 88px 16px 18px;
    overflow: visible;
  }

  .ready-banner__text {
    position: static;
    transform: none;
    width: auto;
    max-width: 100%;
    text-align: left;
  }

  .ready-banner__text h3 {
    font-size: 18px;
    margin: 0 0 4px;
  }

  .ready-banner__text p {
    font-size: 12px;
    line-height: 1.25;
  }

  .ready-banner__icon,
  .ready-banner__icon--right {
    display: block !important;
  }

  .ready-banner__icon--right {
    position: absolute;
    right: -6px;
    top: 50%;
    width: 94px;
    height: auto;
    transform: translateY(-50%);
    border: none !important;
  }

  .ready-banner__icon--right img {
    width: 94px;
    height: auto;
  }

  .ready-banner__more {
    display: block;
    bottom: -16px;
    width: 28px;
    height: 28px;
  }

  .ready-banner__more img {
    width: 28px;
    height: 28px;
  }

  .directions-title {
    font-size: 23px;
    line-height: 1.15;
    letter-spacing: -0.06em;
    justify-content: flex-start;
    text-align: left;
  }

  .dir-tab {
    font-size: 13px;
    padding: 8px 14px;
  }

  .dir-card {
    max-width: 100%;
    border-radius: 20px;
  }

  .teacher-showcase {
    grid-template-columns: 1fr;
  }

  .teacher-avatars {
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    max-height: none;
    padding: 4px 2px 10px;
  }

  .teacher-avatars-extra,
  .teacher-avatars-extra__inner {
    display: contents;
  }

  .teacher-avatar.is-collapsed {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .teacher-sidebar .teacher-avatars-more,
  .teacher-avatars-col .teacher-avatars-more {
    display: none;
  }

  .price-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
  }

  .price-card {
    width: min(286px, 100%);
    max-width: 286px;
    height: auto;
    min-height: 0;
    margin: 0;
  }

  .price-card--featured {
    width: min(347px, 100%);
    max-width: 347px;
    height: auto;
    box-shadow: none;
  }

  .price-card--featured .price-card__head {
    justify-content: center;
    padding-right: 0;
    transform: none;
  }

  .formats-deco {
    width: 88px;
    height: 88px;
    right: -8px;
    top: -24px;
  }

  .reviews-cluster,
  .reviews-3d {
    display: none;
  }

  .final-cta-section {
    padding: 40px 0 48px;
  }

  .final-cta-title {
    font-size: 22px;
    letter-spacing: -0.06em;
  }

  .final-cta-sub {
    font-size: 14px;
    max-width: 320px;
  }

  .final-cta-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: 100%;
    min-height: 0;
  }

  .final-cta-media {
    width: min(304px, 100%);
    max-height: none;
    min-height: 228px;
    border-radius: 18px;
  }

  .final-cta-media img {
    position: relative;
    width: 100%;
    height: 228px;
    object-fit: cover;
    border-radius: 18px;
  }

  .form-card {
    width: min(333px, 100%);
    padding: 16px 14px 14px;
    border-radius: 19px;
  }

  .field input,
  .field select {
    height: 39px;
    padding: 8px 16px;
    font-size: 16px;
    border-radius: 999px;
  }

  .form-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 200px;
    min-height: 29px;
    height: 29px;
    margin: 8px auto 12px;
    padding: 0 10px 0 14px;
    font-size: 12px;
  }

  .form-submit img {
    width: 22px;
    height: 22px;
  }

  .consent-item {
    font-size: 11px;
  }

  .footer-nav {
    grid-template-columns: 1fr 1fr;
  }

  .faq-media img,
  .faq-media__photo {
    width: 100%;
    height: auto;
    max-height: 220px;
  }

  .free-lesson__title {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.22em;
    min-height: 0;
    font-family: var(--font-display);
    font-size: clamp(20px, 7.2vw, 34px);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.06em;
    color: #120629;
  }

  .free-lesson__title-main {
    font-weight: 500;
    font-size: inherit;
  }

  .free-lesson__title-script {
    display: inline;
    position: static;
    top: auto !important;
    font-size: inherit !important;
    font-weight: 400;
    line-height: inherit;
    letter-spacing: inherit;
    color: inherit;
    transform: none;
  }
}

/* ===== Mobile: весь проект, поверх предыдущих 768px-правил ===== */
@media (max-width: 768px) {
  html,
  body {
    overflow-x: clip;
    max-width: 100%;
  }

  .hero-shell,
  .benefits-section,
  .ready-banner-section,
  .directions-section,
  .teachers-section,
  .pricing-section,
  .formats-section,
  .reviews-section,
  .faq-section,
  .final-cta-section,
  .site-footer {
    overflow-x: clip;
    max-width: 100%;
  }

  .hero-glow {
    width: min(360px, 140vw);
    height: 240px;
    top: 48px;
    filter: blur(36px);
  }

  .benefits-blob {
    width: 160%;
    max-width: none;
    left: 50%;
    transform: translateX(-50%);
  }

  .wrap,
  .directions-block,
  .formats-block,
  .reviews-block,
  .faq-block,
  .teachers-wrap {
    width: 100%;
    max-width: 100%;
    min-height: 0 !important;
    padding-left: 16px;
    padding-right: 16px;
    box-sizing: border-box;
  }

  .section {
    padding: 40px 0;
  }

  .benefits-title,
  .directions-title,
  .teachers-title,
  .pricing-title,
  .formats-title,
  .reviews-title,
  .faq-title,
  .final-cta-title {
    display: block;
    font-size: 24px;
    line-height: 1.2;
    letter-spacing: -0.05em;
    max-width: 100%;
    white-space: normal;
  }

  /* Figma «форматы (6 блок)»: 461×798, карточки столбиком */
  .formats-section {
    padding: 28px 0 36px;
  }

  .formats-block {
    position: relative;
    overflow: hidden;
  }

  .formats-lupa-bg {
    display: block;
    position: absolute;
    left: 28%;
    top: -8px;
    width: 300px;
    height: 300px;
    transform: rotate(-14deg);
    pointer-events: none;
    z-index: 0;
    opacity: 1;
    mix-blend-mode: screen;
  }

  .formats-lupa-bg img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
  }

  .formats-deco {
    display: none;
  }

  .format-card__watermark {
    display: none;
  }

  .formats-head {
    position: relative;
    z-index: 1;
    margin: 0 auto 18px;
    padding: 0 8px;
    text-align: center;
  }

  .formats-title {
    display: block !important;
    width: min(327px, 100%);
    margin: 0 auto 10px;
    font-family: "Golos Text", sans-serif;
    font-size: 23.33px !important;
    font-weight: 500;
    line-height: 1.1 !important;
    letter-spacing: -0.06em !important;
    text-align: center !important;
    color: #120629 !important;
    white-space: normal !important;
  }

  .formats-sub {
    width: min(327px, 100%);
    margin: 0 auto;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: -0.04em;
    text-align: center;
    color: #120629;
  }

  .formats-grid {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: 100%;
  }

  .format-card,
  .format-card--pink {
    width: min(347px, calc(100vw - 28px));
    max-width: min(347px, calc(100vw - 28px));
    height: auto;
    min-height: 0;
    margin-top: 0;
    padding: 20px 18px 22px;
    border-radius: 25px;
    box-shadow: 0 10px 28px rgba(18, 6, 41, 0.06);
  }

  .format-card {
    background: #FFFFFF;
  }

  .format-card--pink {
    overflow: hidden;
    background: linear-gradient(180deg, #FDF4F7 0%, #F7D8E0 52%, #EBB0C2 100%);
  }

  .format-card__wash {
    display: block;
    background: transparent;
  }

  .format-card__wash::after {
    top: auto;
    bottom: -40px;
    left: -24%;
    right: auto;
    width: 148%;
    height: 140px;
    border-radius: 50%;
    background: #E090A8;
    filter: blur(36px);
    opacity: 0.55;
  }

  .format-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 12px;
    color: #120629;
  }

  .format-card__hint {
    font-size: 13px;
    font-weight: 400;
    color: #120629;
  }

  .format-card ul {
    gap: 8px;
  }

  .format-card li {
    font-size: 13px;
    line-height: 1.3;
    letter-spacing: -0.03em;
    color: #120629;
    padding-left: 12px;
  }

  .format-card li::before {
    top: 6px;
    width: 4px;
    height: 4px;
    background: #120629;
  }

  /* Figma «отзывы (7 блок)»: 1413×686, градиент #FFF → #F5E1F1 */
  .reviews-section {
    padding: 28px 0 36px;
    background: linear-gradient(180deg, #FFFFFF 0%, #F5E1F1 42%, #F5E1F1 100%);
  }

  .reviews-block {
    width: 100%;
    max-width: 100%;
    min-height: 0 !important;
    overflow: visible;
  }

  .reviews-head {
    position: relative;
    z-index: 1;
    margin: 0 auto 18px;
    padding: 0 8px;
  }

  .reviews-title {
    display: block !important;
    width: min(327px, 100%);
    margin: 0 auto;
    font-family: "Golos Text", sans-serif;
    font-size: 23.33px !important;
    font-weight: 500;
    line-height: 1.1 !important;
    letter-spacing: -0.06em !important;
    text-align: center !important;
    color: #120629 !important;
    white-space: normal !important;
  }

  .reviews-section {
    overflow-x: visible !important;
  }

  .reviews-block {
    overflow: visible !important;
  }

  .reviews-stage {
    position: relative;
    height: auto;
    min-height: 0;
    display: block;
    overflow: visible;
  }

  .reviews-nav {
    width: 36px;
    height: 36px;
  }

  .reviews-cluster,
  .reviews-3d,
  .reviews-3d--star,
  .reviews-3d--book,
  .reviews-3d--glasses,
  .reviews-3d--cursor,
  .reviews-deco {
    display: none !important;
  }

  .review-card,
  .review-card--ege,
  .review-card--oge,
  .review-card--parent {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    z-index: 1;
    width: min(280px, 78vw) !important;
    max-width: min(280px, 78vw);
    flex: 0 0 min(280px, 78vw);
    margin: 0 !important;
    min-height: 0;
    padding: 20px 18px 22px;
    border-radius: 24px;
    background: transparent;
    border: 1px solid rgba(18, 6, 41, 0.16);
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transform-origin: center center;
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .review-card:hover,
  .review-card--ege:hover,
  .review-card--oge:hover,
  .review-card--parent:hover {
    z-index: 5;
    transform: none !important;
  }

  .review-card__title {
    font-size: 16px;
    margin: 0 0 10px;
    max-width: 100%;
  }

  .review-card__text {
    font-size: 13px;
    line-height: 1.35;
  }

  /* Figma «сомнения (8 блок)»: 321×614, градиент #FFF → #FCEFF5 */
  .faq-section {
    padding: 28px 0 36px;
    background: linear-gradient(180deg, #FFFFFF 0%, #FCEFF5 58%, #FCEFF5 100%);
  }

  .faq-section::before {
    top: 32%;
    left: 6%;
    width: 88%;
    height: 78%;
  }

  .faq-block {
    width: 321px;
    max-width: calc(100vw - 54px);
    margin: 0 auto;
    padding: 0;
  }

  .faq-head {
    margin: 0 auto 16px;
    padding: 0;
    text-align: center;
  }

  .faq-title {
    display: block !important;
    width: 100%;
    margin: 0 auto 10px;
    font-family: "Golos Text", sans-serif;
    font-size: 23.33px !important;
    font-weight: 500;
    line-height: 1.1 !important;
    letter-spacing: -0.06em !important;
    text-align: center !important;
    color: #120629 !important;
    white-space: normal !important;
  }

  .faq-lead {
    max-width: 100%;
    margin: 0 auto;
    font-size: 13px;
    line-height: 1.3;
    letter-spacing: -0.04em;
    text-align: center;
    color: #120629;
  }

  .faq-layout {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .faq-marks,
  .faq-media,
  .faq-media__photo {
    display: none;
  }

  .faq-list {
    gap: 8px;
  }

  .faq-list .accordion-item {
    background: #FFFFFF;
    border: none;
    border-radius: 16px;
    box-shadow: 0 6px 18px rgba(18, 6, 41, 0.06);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .faq-list .accordion-item button {
    min-height: 44px;
    padding: 11px 10px 11px 14px;
    font-size: 13px;
    font-weight: 500;
    text-align: left;
  }

  .accordion-item .plus {
    width: 22px;
    height: 22px;
    margin-left: 6px;
    background: #E8E8E8;
  }

  .accordion-panel p {
    padding: 0 14px 12px;
    font-size: 12px;
    line-height: 1.35;
  }

  .teacher-showcase {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .teacher-avatars {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    gap: 10px;
    padding-bottom: 8px;
  }

  /* Figma телефон: баннер спецпредложение */
  .free-lesson {
    width: 100%;
    height: auto;
    min-height: 0;
  }

  .free-lesson__inner {
    padding: 18px 12px 20px 29px;
    max-width: none;
  }

  .free-lesson__title {
    display: flex !important;
    flex-wrap: nowrap;
    align-items: center;
    width: 243px;
    height: 22px;
    min-height: 22px;
    margin: 0 0 22px;
    font-family: "Golos Text", sans-serif;
    font-size: 20.37px !important;
    font-weight: 500;
    line-height: 1.1 !important;
    letter-spacing: -0.06em !important;
    color: #120629 !important;
    white-space: nowrap;
  }

  .free-lesson__title-main {
    font-size: inherit;
    font-weight: 500;
  }

  .free-lesson__title-script {
    font-size: inherit !important;
    font-weight: 400;
  }

  .free-lesson__title-heart {
    display: none;
  }

  .free-lesson__list {
    gap: 10px;
    margin: 0 0 16px 14px;
    max-width: none;
  }

  .free-lesson__list li {
    position: relative;
    display: block;
    width: 165px;
    min-height: 20px;
    height: 20px;
    padding: 0;
    font-family: "Golos Text", sans-serif;
    font-size: 9.59px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.06em;
    color: #120629;
  }

  .free-lesson__list li:nth-child(1) { width: 148px; }
  .free-lesson__list li:nth-child(2) { width: 152px; }

  .free-lesson__list li::before {
    position: absolute;
    left: -10px;
    top: 3.5px;
    width: 3px;
    height: 3px;
    margin-top: 0;
    background: #120629;
  }

  .free-lesson__btn {
    width: 136px;
    height: 24px;
    min-height: 24px;
    max-width: 136px;
    margin-left: 7px;
    padding: 2px 2px 2px 8px;
    gap: 6px;
    font-size: 9px;
    font-weight: 500;
    letter-spacing: -0.04em;
    justify-content: flex-start;
  }

  .free-lesson__btn-arrow {
    width: 20px;
    height: 20px;
    margin-left: auto;
  }

  .free-lesson__btn-arrow::after {
    width: 5px;
    height: 5px;
  }

  .free-lesson__bg {
    width: 118px;
    max-width: 32%;
  }

  .free-lesson::after {
    width: min(78%, 280px);
    background: linear-gradient(
      90deg,
      #A9C9FC 0%,
      #A9C9FC 62%,
      rgba(169, 201, 252, 0.7) 82%,
      rgba(169, 201, 252, 0) 100%
    );
  }

  .final-cta-grid {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 16px;
  }

  .final-cta-media,
  .final-cta-media img,
  .form-card {
    width: 100%;
    max-width: 100%;
  }

  .form-card {
    padding: 20px 16px 16px;
  }

  .contact-ways__label {
    font-size: 12px;
  }

  .contact-way span {
    min-height: 40px;
    font-size: 12px;
  }

  .field input,
  .field select {
    height: 48px;
    font-size: 16px;
  }

  .form-submit {
    width: 100%;
    min-height: 48px;
    height: 48px;
    margin: 8px 0 12px;
    padding: 4px 4px 4px 18px;
    justify-content: space-between;
    font-size: 15px;
  }

  .form-submit img {
    width: 36px;
    height: 36px;
  }

  /* Figma «футер (10 блок)»: 321×290 */
  .site-footer {
    padding: 20px 0 22px;
    background: #FFFFFF;
  }

  .site-footer .wrap {
    width: 321px;
    max-width: calc(100vw - 44px);
    min-height: 290px;
    margin: 0 auto;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer-logo {
    margin-bottom: 14px;
  }

  .footer-logo__link img,
  .footer-logo__mark {
    height: 42px;
    mix-blend-mode: screen;
  }

  .footer-logo__word {
    display: block;
    width: 118px;
    height: auto;
  }

  .footer-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 20px;
    width: 100%;
  }

  .footer-col {
    gap: 6px;
  }

  .footer-col a {
    font-size: 13px;
    line-height: 1.25;
    font-weight: 400;
    color: #120629;
  }

  .footer-col--legal {
    grid-column: 1 / -1;
    align-items: flex-start;
    text-align: left;
    gap: 5px;
    margin-top: 12px;
  }

  .footer-col--legal a {
    font-size: 11px;
    line-height: 1.25;
    color: rgba(18, 6, 41, 0.42);
  }

  .footer-col--social {
    grid-column: 1 / -1;
    align-items: flex-start;
    margin-top: 14px;
  }

  .footer-socials {
    justify-content: flex-start;
    gap: 10px;
  }

  .footer-socials a {
    width: 32px;
    height: 32px;
    background: #8E8E8E !important;
    color: #FFFFFF !important;
  }

  .footer-socials svg {
    width: 16px;
    height: 16px;
  }

  .footer-bottom {
    display: none;
  }

  .nav-backdrop {
    background: rgba(100, 100, 104, 0.72);
  }

  body.nav-open .nav-backdrop {
    opacity: 1;
  }

  /* Figma «плашка синяя»: 346×137.5, градиент #FFF → #BFCFF5 */
  .benefits-col--right .bento-card--fgos {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 346px;
    max-width: 100%;
    height: 138px;
    min-height: 138px;
    padding: 16px 16px 16px 18px;
    border-radius: 25px;
    border: 1.5px solid transparent;
    background-image:
      linear-gradient(180deg, #C8D6F2 0%, #B7C8EC 100%),
      linear-gradient(135deg, #FFFFFF 0%, #BFCFF5 100%);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    box-shadow: 0 10px 28px rgba(139, 176, 229, 0.42);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .benefits-col--right .bento-card--fgos::after {
    display: none;
  }

  .benefits-col--right .bento-card--fgos .bento-card__text {
    flex: 1;
    max-width: 242px;
    font-size: 13px !important;
    line-height: 1.28 !important;
    letter-spacing: -0.04em;
    color: #120629;
  }

  .benefits-col--right .bento-card--fgos .bento-card__side-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
  }

  /* Figma «розовая плашка» + кнопка «Связаться» внутри */
  .benefits-col--right .bento-card--contact {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 14px;
    width: 346px;
    max-width: 100%;
    height: auto;
    min-height: 0;
    padding: 18px 20px 18px;
    overflow: visible;
    background: #F7D8E0;
    border: 1px solid #FFFFFF;
    border-radius: 24px;
    box-shadow: 0 8px 24px rgba(247, 216, 224, 0.7);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .benefits-col--right .bento-card--contact .bento-card__text {
    max-width: none;
    font-size: 15px !important;
    line-height: 1.3 !important;
    letter-spacing: -0.04em;
    color: #120629;
  }

  .benefits-col--right .bento-card--contact .bento-cta {
    width: 141px;
    height: 42px;
    margin: 0 auto;
    padding: 0;
    justify-content: center;
    text-align: center;
    font-family: "Golos Text", sans-serif;
    font-size: 16.72px;
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: -0.05em;
    color: #FFFFFF;
    transform: none;
  }

  /* Figma title: 327×52, 23.33 / 500, «с высоким…» 400, center */
  .directions-head {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .directions-title {
    display: block !important;
    width: 327px !important;
    max-width: 327px !important;
    height: 52px;
    margin: 0 auto;
    padding: 0;
    font-family: "Golos Text", sans-serif;
    font-size: 23.33px !important;
    font-weight: 500;
    line-height: 1.1 !important;
    letter-spacing: -0.06em !important;
    text-align: center;
    color: #120629 !important;
    white-space: normal !important;
  }

  .directions-title__main,
  .directions-title__dash,
  .directions-title__line2,
  .directions-title__line3,
  .directions-title__plain,
  .directions-title__result {
    display: inline;
    position: static;
    width: auto;
    max-width: none;
    margin: 0;
    padding: 0;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    letter-spacing: inherit;
    white-space: normal;
    top: auto !important;
    left: auto !important;
    transform: none !important;
  }

  .directions-title__dash {
    display: inline;
  }

  .directions-title__br {
    display: block;
    content: "";
  }

  .directions-title__svoi,
  .directions-title__script,
  .directions-title__script.accent-script,
  .directions-head .accent-script {
    display: none !important;
  }

  .directions-title__plain,
  .directions-title__result {
    display: inline;
    font-weight: 400;
    font-size: inherit;
    color: #120629 !important;
  }

  /* Направления: плашки листаются вручную (Figma 535 × N) */
  .directions-section,
  .directions-block {
    overflow: visible;
  }

  .dir-tabs,
  .dir-tabs--marquee {
    overflow-x: auto;
    touch-action: pan-x pan-y;
    cursor: grab;
  }

  .dir-tabs--marquee .dir-tabs__track {
    transform: none !important;
  }

  .dir-panels {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 16px;
    padding: 4px 16px 12px;
    margin: 0 -16px;
    min-height: 0;
    scrollbar-width: none;
    touch-action: pan-x pan-y;
  }

  .dir-panels::-webkit-scrollbar {
    display: none;
  }

  .dir-panel,
  .dir-panel.is-active,
  .dir-panel[hidden] {
    display: block !important;
    visibility: visible;
    flex: 0 0 min(535px, calc(100vw - 29px));
    width: min(535px, calc(100vw - 29px));
    max-width: min(535px, calc(100vw - 29px));
    scroll-snap-align: start;
  }

  .dir-mosaic,
  .dir-mosaic--ege,
  .dir-mosaic--oge,
  .dir-mosaic--vpr,
  .dir-mosaic--olympiad,
  .dir-mosaic--progress {
    width: 100%;
  }

  .dir-card {
    background: #F8E8ED;
    border-radius: 28px;
    box-shadow: 0 8px 24px rgba(247, 216, 224, 0.55);
  }

  /* Преподаватели: плашки листаются вручную, шаблон как в Figma 509×556 */
  .teachers-pill,
  .teachers-deco {
    display: none;
  }

  .teachers-title {
    display: block !important;
    width: min(327px, 100%);
    margin: 0 auto 20px;
    font-family: "Golos Text", sans-serif;
    font-size: 23.33px !important;
    font-weight: 500;
    line-height: 1.1 !important;
    letter-spacing: -0.06em !important;
    text-align: center;
    color: #120629 !important;
    white-space: normal !important;
  }

  .teachers-title__main,
  .teachers-title__line2,
  .teachers-title__plain,
  .teachers-title__result {
    display: inline;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    letter-spacing: inherit;
    white-space: normal;
    margin: 0;
    color: inherit;
  }

  .teachers-title__script,
  .teachers-title__script.accent-script {
    display: none !important;
  }

  .teacher-showcase {
    display: block;
    overflow: visible;
  }

  .teacher-sidebar,
  .teacher-panel {
    display: none !important;
  }

  .teacher-track {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 16px;
    padding: 4px 16px 12px;
    margin: 0 -16px;
    scrollbar-width: none;
    touch-action: pan-x pan-y;
  }

  .teacher-track::-webkit-scrollbar {
    display: none;
  }

  .teacher-slide {
    flex: 0 0 min(509px, calc(100vw - 29px));
    width: min(509px, calc(100vw - 29px));
    min-height: 0;
    scroll-snap-align: start;
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
  }

  .teacher-slide__avatars {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    max-height: none;
    overflow: visible;
    padding: 2px 2px 4px;
  }

  .teacher-slide .teacher-avatars-pages {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    min-height: calc(44px * 3 + 8px * 2);
  }

  .teacher-slide .teacher-avatars-page {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100%;
  }

  .teacher-slide .teacher-avatars-page.is-active {
    display: flex;
  }

  .teacher-slide .teacher-avatars-more {
    display: flex !important;
    width: 36px;
    height: 28px;
    margin-top: 2px;
    flex-shrink: 0;
  }

  .teacher-slide__avatars::-webkit-scrollbar {
    display: none;
  }

  .teacher-slide .teacher-avatar {
    width: 44px;
    height: 44px;
    padding: 2px;
    border-radius: 12px;
    border-width: 2px;
  }

  .teacher-slide .teacher-avatar img {
    border-radius: 10px;
  }

  .teacher-slide .teacher-avatar__badge {
    display: none;
  }

  .teacher-slide__main {
    min-width: 0;
  }

  .teacher-slide .teacher-photo {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 22px;
    margin-bottom: 12px;
  }

  .teacher-slide--pink .teacher-photo {
    background: #F7D8E0;
  }

  .teacher-slide--blue .teacher-photo {
    background: #C4D5EF;
  }

  .teacher-slide__main h3 {
    margin: 0 0 10px;
    font-family: "Golos Text", sans-serif;
    font-size: 22px;
    font-weight: 500;
    letter-spacing: -0.05em;
    line-height: 1.15;
    color: #120629;
  }

  .teacher-slide .teacher-tags {
    margin-bottom: 12px;
    gap: 6px;
  }

  .teacher-slide .teacher-tag {
    padding: 6px 10px;
    font-size: 12px;
    background: #EEF3FB;
    border-color: #BFCFF5;
    color: #120629;
  }

  .teacher-slide .teacher-tag__icon,
  .teacher-slide .teacher-tag__badge {
    display: none;
  }

  .teacher-slide .teacher-achievements {
    padding: 16px 16px 16px 18px;
    border-radius: 22px;
  }

  .teacher-slide--pink .teacher-achievements {
    background: #F7D8E0;
  }

  .teacher-slide--blue .teacher-achievements {
    background: #C4D5EF;
  }

  .teacher-slide .teacher-achievements ul {
    gap: 8px;
  }

  .teacher-slide .teacher-achievements li {
    font-size: 13px;
    line-height: 1.3;
    color: #120629;
  }

  .teacher-slide .teacher-gallery {
    margin-top: 12px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .teacher-slide .teacher-gallery__item {
    border-radius: 10px;
    aspect-ratio: 16 / 10;
  }

  /* Figma «тарифы (5 блок)»: 461×1606, карточки столбиком */
  .pricing-section {
    overflow: visible;
  }

  .pricing-deco {
    top: -81px;
    right: 0;
    width: 118px;
    height: 200px;
  }

  .pricing-pill {
    display: none;
  }

  .pricing-head {
    position: relative;
    z-index: 1;
    margin: 0 auto 24px;
    padding: 0 8px;
  }

  .pricing-title {
    display: block !important;
    width: min(327px, 100%);
    margin: 0 auto 12px;
    font-family: "Golos Text", sans-serif;
    font-size: 23.33px !important;
    font-weight: 500;
    line-height: 1.1 !important;
    letter-spacing: -0.06em !important;
    text-align: center;
    color: #120629 !important;
    white-space: normal !important;
  }

  .pricing-title__main,
  .pricing-title__result {
    display: inline;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    letter-spacing: inherit;
    color: inherit;
  }

  .pricing-title__script,
  .pricing-title__script.accent-script {
    display: none !important;
  }

  .pricing-sub {
    max-width: 327px;
    margin: 0 auto;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: -0.04em;
    color: #120629;
  }

  .price-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
  }

  .price-card,
  .price-card--featured {
    width: min(347px, calc(100vw - 28px));
    max-width: min(347px, calc(100vw - 28px));
    height: auto;
    min-height: 0;
    padding: 0 18px 18px;
    border-radius: 25px;
    background: #FFFFFF;
    box-shadow: 0 10px 28px rgba(18, 6, 41, 0.06);
  }

  .price-card--featured {
    background: #C4D5EF;
    box-shadow: 0 12px 36px rgba(139, 176, 229, 0.45);
  }

  .price-card__head,
  .price-card--featured .price-card__head {
    justify-content: center;
    width: 100%;
    margin: 0 0 16px;
    padding: 0;
    transform: none;
    gap: 8px;
  }

  .price-card__label {
    padding: 8px 18px 10px;
    font-size: 14px;
    font-weight: 500;
    color: #120629;
    border-radius: 0 0 16px 16px;
    background: #F7D8E0;
  }

  .price-card--featured .price-card__label {
    background: #B7C8EC;
    border: none;
    color: #120629;
  }

  .price-card__hit {
    width: auto;
    height: 22px;
    padding: 0 10px;
    font-size: 11px;
    border-width: 1px;
    color: #120629;
    border-color: #FFFFFF;
  }

  .price-card ul {
    gap: 8px;
    margin: 0 0 16px;
  }

  .price-card li {
    font-size: 13px;
    line-height: 1.3;
    color: #120629;
  }

  .price-card__bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: auto;
  }

  .price-card__amount {
    font-size: 13px;
    color: #120629;
    text-align: center;
  }

  .price-card__amount strong {
    font-size: 22px;
    font-weight: 500;
  }

  .price-card__lesson {
    font-size: 12px;
    margin-top: -6px;
    color: #120629;
  }

  .price-card__lesson strong {
    font-size: 15px;
  }

  .price-card__btn {
    width: 168px;
    height: 40px;
    min-width: 0;
    padding: 0 0 0 16px;
    justify-content: space-between;
    font-size: 14px;
    color: #120629;
    background: #F7D8E0;
    border-radius: 999px;
  }

  .price-card__btn--blue {
    background: #B7C8EC;
  }

  .price-card__btn img {
    width: 34px;
    height: 34px;
  }
}

