/* Мой репетитор — стиль по мотивам референса: белый фон, плотные крупные
   заголовки, светло-серые карточки, кнопки-пилюли, тёмная панель.
   Акценты — из логотипа: фиолетовый, синий, коралловый. */

:root {
  --ink: #0f0f0f;
  --ink-2: #212121;
  --muted: #6e6e6e;
  --muted-2: #878787;
  --line: #e6e6e6;
  --card: #f4f5f5;
  --card-2: #ededed;
  --bg: #ffffff;
  --dark: #0f0f0f;
  --dark-card: #1b1b1b;
  --dark-card-2: #2a2a2a;

  --violet: #4a12c8;
  --purple: #6d50ff;
  --blue: #2a9df4;
  --coral: #ec5a4f;
  --cyan: #60e2e1;
  --lime: #b2fc6a;
  --sun: #fccc6c;
  --pink: #fb75f4;

  --brand-grad: linear-gradient(120deg, #4a12c8 0%, #6d50ff 45%, #2a9df4 100%);

  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 20px;
  --r-xl: 24px;
  --r-2xl: 32px;
  --pill: 100px;

  --wrap: 1200px;
  --font: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: -0.02em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
input { font: inherit; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.section { padding: 120px 0; position: relative; }
.center { text-align: center; }

/* ---------- Типографика ---------- */
.h1 {
  font-size: clamp(44px, 7.4vw, 96px);
  line-height: 0.95;
  letter-spacing: -0.055em;
  font-weight: 500;
}
.h2 {
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1;
  letter-spacing: -0.05em;
  font-weight: 500;
}
.h3 { font-size: 24px; line-height: 1.15; letter-spacing: -0.04em; font-weight: 500; }
.lead { font-size: 18px; color: var(--muted); max-width: 560px; }
.center .lead { margin-left: auto; margin-right: auto; }
.muted { color: var(--muted); }

/* ---------- Чипы и кнопки ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px 6px 6px;
  background: var(--card); border-radius: var(--pill);
  font-size: 14px;
}
.chip b {
  background: var(--brand-grad); color: #fff; font-weight: 500;
  padding: 2px 10px; border-radius: var(--pill);
}
.label {
  display: inline-block; padding: 6px 14px; border-radius: var(--pill);
  background: var(--card); font-size: 14px; margin-bottom: 24px;
}
.section-dark .label { background: rgba(255,255,255,.08); color: #ededed; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 52px; padding: 0 26px; border-radius: var(--pill);
  font-size: 16px; letter-spacing: -0.02em; white-space: nowrap;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-dark {
  color: #fff;
  background: linear-gradient(180deg, #2a2a2a 0%, #0f0f0f 100%);
  box-shadow: 0 8px 20px rgba(15,15,15,.25), inset 0 1px 0 rgba(255,255,255,.15);
}
.btn-light { background: var(--card); }
.btn-light:hover { background: var(--card-2); }
.btn-white { background: #fff; }
.btn-sm { height: 40px; padding: 0 18px; font-size: 14px; }
.btn-block { width: 100%; }

/* ---------- Объявление и шапка ---------- */
.announce {
  background: var(--brand-grad); color: #fff; text-align: center;
  font-size: 14px; padding: 8px 16px;
}
.announce a { text-decoration: underline; text-underline-offset: 3px; }

.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.header.scrolled { border-bottom-color: var(--line); }
.header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 18px; letter-spacing: -0.04em; }
.logo img { width: 36px; height: 36px; object-fit: contain; }
.nav { display: flex; gap: 32px; font-size: 14px; }
.nav a { opacity: .9; transition: opacity .2s; }
.nav a:hover { opacity: .55; }
.burger { display: none; width: 40px; height: 40px; border-radius: 50%; background: var(--card); }
.burger span { display: block; width: 16px; height: 1.5px; background: var(--ink); margin: 4px auto; }

/* ---------- Первый экран ---------- */
.hero { position: relative; padding: 64px 0 0; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0 0 30% 0;
  background-image: radial-gradient(rgba(15,15,15,.12) 1px, transparent 1px);
  background-size: 18px 18px;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 40%, #000 30%, transparent 75%);
          mask-image: radial-gradient(ellipse 60% 70% at 50% 40%, #000 30%, transparent 75%);
  pointer-events: none;
}
.hero-top { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 24px; }
.hero .lead { font-size: 17px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }
.tags { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; margin-top: 16px; font-size: 14px; color: var(--ink-2); }
.tag { display: inline-flex; align-items: center; gap: 8px; }
.ico {
  width: 28px; height: 28px; border-radius: 8px;
  display: inline-grid; place-items: center; flex: none;
}
.ico svg { width: 16px; height: 16px; }
.ico-cyan { background: color-mix(in srgb, var(--cyan) 40%, #fff); }
.ico-sun { background: color-mix(in srgb, var(--sun) 45%, #fff); }
.ico-pink { background: color-mix(in srgb, var(--pink) 35%, #fff); }
.ico-lime { background: color-mix(in srgb, var(--lime) 50%, #fff); }
.ico-violet { background: color-mix(in srgb, var(--purple) 25%, #fff); }

/* 3D-фигуры, нарисованные градиентами */
.shape { position: absolute; pointer-events: none; filter: drop-shadow(0 30px 40px rgba(74,18,200,.18)); }
.donut {
  width: 170px; height: 170px; border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, transparent 26%, transparent 27%),
    radial-gradient(circle at 32% 28%, #c9bcff 0%, #8d73ff 35%, #5b35e6 70%, #3d16b8 100%);
  -webkit-mask: radial-gradient(circle, transparent 27%, #000 28%);
          mask: radial-gradient(circle, transparent 27%, #000 28%);
  transform: rotate(-24deg);
}
.blob {
  width: 130px; height: 130px;
  border-radius: 42% 58% 63% 37% / 45% 40% 60% 55%;
  background: radial-gradient(circle at 30% 25%, #ffd0c9 0%, #ff8a7a 40%, #ec5a4f 75%, #b8302a 100%);
}
.ring {
  width: 150px; height: 150px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #bfe6ff 0%, #5bb8f7 40%, #2a9df4 70%, #1462b8 100%);
  -webkit-mask: radial-gradient(circle, transparent 38%, #000 39%);
          mask: radial-gradient(circle, transparent 38%, #000 39%);
}
.hero .donut { left: 4%; top: 180px; animation: float 7s ease-in-out infinite; }
.hero .blob { right: 6%; top: 90px; animation: float 8s ease-in-out infinite reverse; }
@keyframes float { 0%,100% { transform: translateY(0) rotate(-20deg); } 50% { transform: translateY(-18px) rotate(-8deg); } }

/* Макет «кабинета» под первым экраном */
.mock-wrap {
  position: relative; margin: 72px auto 0; max-width: 1120px;
  background: var(--card); border-radius: 36px 36px 0 0; padding: 48px 48px 0;
}
.mock {
  background: #fff; border-radius: var(--r-xl) var(--r-xl) 0 0;
  box-shadow: 0 -2px 30px rgba(15,15,15,.06);
  display: grid; grid-template-columns: 220px 1fr 280px; gap: 0; min-height: 440px; overflow: hidden;
}
.mock-side { border-right: 1px solid var(--line); padding: 24px 16px; display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.mock-side .logo { font-size: 15px; margin-bottom: 20px; padding: 0 8px; }
.mock-side .logo img { width: 26px; height: 26px; }
.mock-nav { padding: 9px 10px; border-radius: 10px; display: flex; align-items: center; gap: 10px; color: var(--muted); }
.mock-nav.on { background: var(--card); color: var(--ink); }
.mock-nav i { width: 8px; height: 8px; border-radius: 3px; background: currentColor; opacity: .5; }
.mock-main { padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.mock-main h4 { font-size: 26px; font-weight: 500; letter-spacing: -0.04em; }
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.day { background: var(--card); border-radius: 12px; padding: 10px 8px; font-size: 12px; color: var(--muted); min-height: 128px; display: flex; flex-direction: column; gap: 6px; }
.day b { color: var(--ink); font-weight: 500; font-size: 13px; }
.slot { border-radius: 8px; padding: 6px; font-size: 11px; line-height: 1.2; color: var(--ink); }
.slot.v { background: color-mix(in srgb, var(--purple) 22%, #fff); }
.slot.b { background: color-mix(in srgb, var(--blue) 22%, #fff); }
.slot.c { background: color-mix(in srgb, var(--coral) 20%, #fff); }
.slot.free { border: 1px dashed #cfcfcf; color: var(--muted); }
.mock-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mini { background: var(--card); border-radius: 14px; padding: 14px; font-size: 13px; }
.mini .k { color: var(--muted); font-size: 12px; }
.mini .v { font-size: 22px; font-weight: 500; letter-spacing: -0.04em; margin-top: 4px; }
.bar { height: 6px; border-radius: 6px; background: #e3e3e3; margin-top: 10px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 72%; background: var(--brand-grad); border-radius: 6px; }
.mock-aside { border-left: 1px solid var(--line); padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.mock-aside .t { font-size: 15px; font-weight: 500; }
.msg { background: var(--card); border-radius: 14px; padding: 12px; font-size: 13px; }
.msg .who { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.msg.me { background: color-mix(in srgb, var(--blue) 14%, #fff); }
.float-card {
  position: absolute; right: -24px; top: -40px; width: 220px;
  background: var(--dark); color: #f4f5f5; border-radius: 20px; padding: 18px;
  box-shadow: 0 20px 50px rgba(15,15,15,.3);
  animation: float2 6s ease-in-out infinite;
}
.float-card .k { font-size: 12px; color: #9a9a9a; }
.float-card .v { font-size: 40px; font-weight: 500; letter-spacing: -0.05em; line-height: 1.1; margin: 6px 0; }
.float-card .up { font-size: 12px; color: var(--lime); }
@keyframes float2 { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- Полоса цифр ---------- */
.stats-strip { padding: 64px 0; border-bottom: 1px solid var(--line); }
.stats-strip .grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat .v { font-size: clamp(36px, 4vw, 52px); font-weight: 500; letter-spacing: -0.05em; line-height: 1; }
.stat .k { color: var(--muted); margin-top: 10px; font-size: 15px; max-width: 220px; }

/* ---------- Бенто ---------- */
.bento { display: grid; grid-template-columns: 1fr 1.25fr 1fr; gap: 16px; margin-top: 64px; }
.b-card { background: var(--card); border-radius: var(--r-xl); padding: 28px; min-height: 340px; display: flex; flex-direction: column; gap: 20px; overflow: hidden; position: relative; }
.b-card.white { background: #fff; border: 1px solid var(--line); }
.tones { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: auto; }
.tone { background: #fff; border-radius: 14px; padding: 14px 8px; text-align: center; transition: transform .2s, background .2s; cursor: default; }
.tone:hover { transform: translateY(-4px); background: var(--ink); color: #fff; }
.tone .hz { font-size: 34px; line-height: 1.1; }
.tone .py { font-size: 13px; color: var(--muted); margin-top: 4px; }
.tone:hover .py { color: #bdbdbd; }
.tone .mark { height: 18px; margin: 6px auto 0; width: 40px; }
.hanzi-big { font-size: 140px; line-height: 1; text-align: center; margin: auto 0; background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.report { background: #fff; border-radius: 16px; padding: 16px; margin-top: auto; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.report .row { display: flex; justify-content: space-between; }
.report .ok { color: #2a9d5c; }
.features3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 16px; }
.f-card { border: 1px solid var(--line); border-radius: var(--r-xl); padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.f-card p { color: var(--muted); }

/* ---------- Цели: стопка карточек ---------- */
.goals-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.goals-sticky { position: sticky; top: 140px; }
.goals-stack { display: flex; flex-direction: column; gap: 24px; }
.goal {
  position: sticky; top: 120px;
  border-radius: var(--r-2xl); padding: 36px; min-height: 360px;
  color: #fff; display: flex; flex-direction: column; gap: 16px; overflow: hidden;
  box-shadow: 0 20px 40px rgba(15,15,15,.12);
}
.goal .tag-sm { font-size: 14px; opacity: .8; }
.goal h3 { font-size: 34px; line-height: 1.05; letter-spacing: -0.045em; font-weight: 500; max-width: 420px; }
.goal p { opacity: .85; max-width: 420px; }
.goal .goal-link { margin-top: auto; align-self: flex-start; }
.goal .shape { right: -30px; bottom: -30px; position: absolute; }
.g1 { background: var(--dark); }
.g2 { background: linear-gradient(140deg, #4a12c8, #6d50ff); }
.g3 { background: linear-gradient(140deg, #1462b8, #2a9df4); }
.g4 { background: linear-gradient(140deg, #b8302a, #ec5a4f); }
.g5 { background: #1b1b1b; }
.g6 { background: linear-gradient(140deg, #3d16b8, #2a9df4); }

/* ---------- Тёмная панель: путь ученика ---------- */
.section-dark-wrap { padding: 40px 24px; }
.section-dark {
  background: var(--dark); color: #f4f5f5; border-radius: 40px;
  max-width: 1320px; margin: 0 auto; padding: 100px 0;
}
.section-dark .muted { color: #9a9a9a; }
.path { display: grid; grid-template-columns: 1.5fr 1fr; gap: 20px; margin-top: 56px; align-items: start; }
.acc { display: flex; flex-direction: column; gap: 12px; }
.acc-item { background: var(--dark-card); border: 1px solid rgba(255,255,255,.06); border-radius: var(--r-lg); overflow: hidden; }
.acc-head { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 24px; text-align: left; color: #f4f5f5; }
.acc-head .t { font-size: 20px; letter-spacing: -0.04em; }
.acc-head .s { font-size: 14px; color: #9a9a9a; margin-top: 4px; }
.pm { width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,.07); display: grid; place-items: center; flex: none; transition: transform .3s; }
.acc-item.open .pm { transform: rotate(45deg); }
.acc-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s ease; }
.acc-item.open .acc-body { grid-template-rows: 1fr; }
.acc-body > div { overflow: hidden; }
.acc-list { padding: 0 24px 20px; display: flex; flex-direction: column; gap: 8px; }
.acc-list li { list-style: none; display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--dark-card-2); border-radius: 12px; font-size: 15px; }
.acc-list li::before { content: ""; width: 18px; height: 18px; border-radius: 50%; flex: none; background: rgba(255,255,255,.1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23fff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }
.about-card { background: #fff; color: var(--ink); border-radius: var(--r-xl); padding: 32px; position: sticky; top: 110px; display: flex; flex-direction: column; gap: 18px; }
.about-card h3 { font-size: 34px; line-height: 1.05; letter-spacing: -0.045em; font-weight: 500; }
.about-card p { color: var(--muted); }
.about-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.about-stats div { background: var(--card); border-radius: 14px; padding: 14px; }
.about-stats b { display: block; font-size: 24px; font-weight: 500; letter-spacing: -0.04em; }
.about-stats span { font-size: 13px; color: var(--muted); }
.rating { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.avatars { display: flex; }
.avatars i { width: 30px; height: 30px; border-radius: 50%; border: 2px solid #fff; margin-left: -8px; display: block; }
.avatars i:first-child { margin-left: 0; }

/* ---------- Шаги ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 64px; }
.step { background: var(--card); border-radius: var(--r-xl); padding: 28px; min-height: 280px; display: flex; flex-direction: column; gap: 12px; transition: background .3s, color .3s, transform .3s; }
.step:hover { background: var(--dark); color: #fff; transform: translateY(-6px); }
.step:hover p { color: #bdbdbd; }
.step .n { font-size: 14px; color: var(--muted-2); margin-bottom: auto; }
.step h3 { font-size: 28px; letter-spacing: -0.045em; font-weight: 500; }
.step p { color: var(--muted); }
.steps-note { margin-top: 32px; display: flex; gap: 16px; align-items: center; justify-content: center; flex-wrap: wrap; color: var(--muted); }

/* ---------- Отзывы ---------- */
.reviews { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 56px; }
.review { background: var(--card); border-radius: var(--r-xl); padding: 32px; display: flex; flex-direction: column; gap: 24px; }
.review .q { font-size: 22px; line-height: 1.3; letter-spacing: -0.03em; }
.review .who { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.review .who span { display: block; font-size: 14px; color: var(--muted); }
.placeholder-note { margin-top: 16px; font-size: 13px; color: var(--coral); text-align: center; }

/* ---------- Цены ---------- */
.toggles { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }
.seg { display: inline-flex; background: var(--card); border-radius: var(--pill); padding: 4px; }
.seg button { height: 40px; padding: 0 18px; border-radius: var(--pill); font-size: 14px; color: var(--muted); transition: background .2s, color .2s; }
.seg button.on { background: #fff; color: var(--ink); box-shadow: 0 2px 8px rgba(15,15,15,.08); }
.prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 48px; align-items: stretch; }
.price { background: var(--card); border-radius: var(--r-xl); padding: 32px; display: flex; flex-direction: column; gap: 6px; position: relative; overflow: hidden; }
.price.hot { background: #fff; box-shadow: 0 20px 50px rgba(15,15,15,.12); border: 1px solid var(--line); }
.price .ribbon { z-index: 2; position: absolute; top: 0; left: 0; right: 0; background: var(--dark); color: #fff; text-align: center; font-size: 13px; padding: 6px; }
.price.hot { padding-top: 52px; }
.price .shape { right: -40px; top: -40px; width: 120px; height: 120px; }
.price .name { font-size: 18px; }
.price .amount { font-size: 52px; font-weight: 500; letter-spacing: -0.05em; line-height: 1.1; margin-top: 16px; }
.price .amount small { font-size: 18px; color: var(--muted); letter-spacing: -0.02em; font-weight: 400; }
.price .sub { color: var(--muted); font-size: 15px; padding-bottom: 20px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.price ul { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; }
.price li { display: flex; gap: 10px; font-size: 15px; }
.price li::before { content: ""; width: 18px; height: 18px; flex: none; margin-top: 1px; border-radius: 50%; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%230f0f0f' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }
.price.hot li::before { background-color: var(--card); }
.price .btn { margin-top: auto; }
.price-foot { text-align: center; margin-top: 28px; color: var(--muted); font-size: 15px; }

/* ---------- Гарантии ---------- */
.guarantees { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 56px; }
.g-tile { background: var(--card); border-radius: var(--r-xl); padding: 28px; display: flex; flex-direction: column; gap: 14px; min-height: 260px; }
.g-tile .ico { width: 40px; height: 40px; border-radius: 12px; }
.g-tile .ico svg { width: 20px; height: 20px; }
.g-tile h3 { font-size: 22px; letter-spacing: -0.04em; font-weight: 500; margin-top: auto; }
.g-tile p { color: var(--muted); font-size: 15px; }
.legal-line { text-align: center; margin-top: 24px; color: var(--muted); font-size: 14px; }

/* ---------- Преподаватели ---------- */
.teachers-head { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; }
.select-steps { display: flex; gap: 8px; flex-wrap: wrap; }
.select-steps span { background: var(--card); border-radius: var(--pill); padding: 8px 14px; font-size: 14px; }
.select-steps span b { color: var(--purple); font-weight: 500; margin-right: 6px; }
.teachers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 56px; }
.teacher { border-radius: var(--r-xl); overflow: hidden; background: var(--card); display: flex; flex-direction: column; }
.teacher .photo { aspect-ratio: 4/3.4; background: linear-gradient(160deg, #e9e4ff, #d7ecff); display: grid; place-items: center; color: var(--muted); font-size: 14px; position: relative; }
.teacher .photo .hz { font-size: 96px; color: rgba(74,18,200,.18); }
.teacher .body { padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.teacher .meta { display: flex; gap: 6px; flex-wrap: wrap; }
.teacher .meta span { background: #fff; border-radius: var(--pill); font-size: 13px; padding: 4px 10px; }
.teacher p { color: var(--muted); font-size: 15px; }
.teachers-note { margin-top: 24px; text-align: center; color: var(--muted); }
.teachers-note b { color: var(--ink); font-weight: 500; }

/* ---------- FAQ ---------- */
.faq-layout { display: grid; grid-template-columns: 1fr 1.6fr; gap: 64px; align-items: start; }
.faq-layout .goals-sticky { top: 130px; }
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq-item { background: var(--card); border-radius: var(--r-md); }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 24px; text-align: left; font-size: 18px; letter-spacing: -0.03em; }
.faq-q .pm { background: #fff; }
.faq-item.open .pm { transform: rotate(45deg); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s ease; }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; }
.faq-a p { padding: 0 24px 22px; color: var(--muted); max-width: 640px; }
.faq-more { margin-top: 24px; color: var(--muted); }
.faq-more a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Финальный экран и форма ---------- */
.cta { position: relative; overflow: hidden; padding: 120px 0 80px; }
.cta::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(15,15,15,.12) 1px, transparent 1px);
  background-size: 18px 18px;
  -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 35%, #000 25%, transparent 70%);
          mask-image: radial-gradient(ellipse 60% 60% at 50% 35%, #000 25%, transparent 70%);
}
.cta .ring { left: 6%; top: 100px; animation: float 8s ease-in-out infinite; }
.cta .blob { right: 8%; top: 300px; width: 90px; height: 90px; animation: float 6s ease-in-out infinite reverse; }
.cta-inner { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.form {
  position: relative; margin: 40px auto 0; max-width: 560px; width: 100%;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-2xl);
  padding: 28px; box-shadow: 0 30px 60px rgba(15,15,15,.08);
  display: flex; flex-direction: column; gap: 12px; text-align: left;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; color: var(--muted); padding-left: 4px; }
.field input, .field select {
  height: 52px; border-radius: 14px; border: 1px solid transparent; background: var(--card);
  padding: 0 16px; font-size: 16px; outline: none; transition: border-color .2s, background .2s;
  font-family: var(--font); color: var(--ink); appearance: none;
}
.field input:focus, .field select:focus { border-color: var(--purple); background: #fff; }
.field input.err { border-color: var(--coral); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 1px; accent-color: var(--ink); flex: none; }
.check a { text-decoration: underline; }
.form-ok { display: none; text-align: center; padding: 20px 0; }
.form-ok h3 { font-size: 28px; letter-spacing: -0.04em; font-weight: 500; margin-bottom: 8px; }
.form.done .form-fields { display: none; }
.form.done .form-ok { display: block; }
.form-note { font-size: 13px; color: var(--muted); text-align: center; }

/* ---------- Подвал ---------- */
.footer { border-top: 1px solid var(--line); padding: 56px 0 40px; }
.footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer h5 { font-size: 13px; color: var(--muted); font-weight: 400; margin-bottom: 16px; }
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 18px; letter-spacing: -0.03em; }
.footer ul a:hover { opacity: .55; }
.footer .about { color: var(--muted); max-width: 280px; margin-top: 14px; font-size: 15px; }
.footer .legal { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }

/* Плавающая кнопка Telegram на телефоне */
.tg-fab {
  display: none; position: fixed; right: 16px; bottom: 16px; z-index: 60;
  height: 52px; padding: 0 20px; border-radius: var(--pill);
  background: var(--brand-grad); color: #fff; align-items: center; gap: 8px;
  box-shadow: 0 12px 30px rgba(74,18,200,.35);
}

/* Появление при прокрутке */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .shape, .float-card { animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Адаптив ---------- */
@media (max-width: 1080px) {
  .mock { grid-template-columns: 1fr 260px; }
  .mock-side { display: none; }
  .bento { grid-template-columns: 1fr 1fr; }
  .bento .b-card:last-child { grid-column: span 2; }
  .steps, .guarantees { grid-template-columns: 1fr 1fr; }
  .path { grid-template-columns: 1fr; }
  .about-card { position: static; }
}
@media (max-width: 860px) {
  .nav, .header .btn { display: none; }
  .burger { display: block; }
  .header.menu-open .nav {
    display: flex; flex-direction: column; gap: 0; position: absolute; top: 72px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 8px 24px 20px;
  }
  .header.menu-open .nav a { padding: 12px 0; font-size: 18px; border-bottom: 1px solid var(--line); }
  .section { padding: 80px 0; }
  .mock-wrap { padding: 20px 16px 0; border-radius: 24px 24px 0 0; margin-top: 48px; }
  .mock { grid-template-columns: 1fr; min-height: 0; }
  .mock-aside { display: none; }
  .week { grid-template-columns: repeat(4, 1fr); }
  .week .day:nth-child(n+5) { display: none; }
  .float-card { right: 8px; top: -56px; width: 170px; padding: 14px; }
  .float-card .v { font-size: 30px; }
  .stats-strip .grid { grid-template-columns: 1fr 1fr; gap: 32px 16px; }
  .bento, .features3, .reviews, .prices, .teachers { grid-template-columns: 1fr; }
  .bento .b-card:last-child { grid-column: auto; }
  .goals-layout, .faq-layout, .teachers-head { grid-template-columns: 1fr; gap: 32px; }
  .goals-sticky, .faq-layout .goals-sticky { position: static; }
  .goal { top: 90px; min-height: 300px; padding: 28px; }
  .goal h3 { font-size: 28px; }
  .section-dark-wrap { padding: 0 8px; }
  .section-dark { border-radius: 28px; padding: 72px 0; }
  .footer .cols { grid-template-columns: 1fr 1fr; }
  .tg-fab { display: inline-flex; }
  .hero .donut { width: 110px; height: 110px; left: -30px; top: 330px; }
  .hero .blob { width: 80px; height: 80px; right: -20px; top: 40px; }
  .cta .ring, .cta .blob { display: none; }
}
@media (max-width: 520px) {
  .wrap { padding: 0 16px; }
  .steps, .guarantees { grid-template-columns: 1fr; }
  .step { min-height: 0; }
  .row2 { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: 1fr 1fr 1fr; }
  .tones .tone .hz { font-size: 28px; }
  .hero-cta .btn { width: 100%; }
  .footer .cols { grid-template-columns: 1fr; }
  .announce { font-size: 13px; }
}

[lang="zh"] { font-family: "Noto Sans SC", "PingFang SC", sans-serif; letter-spacing: 0; }
.mock > *, .mock-row > * { min-width: 0; }
.week { grid-template-columns: repeat(7, minmax(0, 1fr)); }
@media (max-width: 860px) {
  .week { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .mock-main { padding: 18px; }
  .mock-main h4 { font-size: 22px; }
  .mini .v { font-size: 18px; }
}

/* ---------- Отзывы с Авито ---------- */
.reviews-top { display: flex; gap: 12px; align-items: center; justify-content: center; flex-wrap: wrap; margin-top: 24px; color: var(--muted); font-size: 15px; }
.ul { text-decoration: underline; text-underline-offset: 3px; }
.stars { color: #f5b82e; letter-spacing: 2px; font-size: 16px; }
.review-feature { margin: 48px auto 0; max-width: 880px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 28px; }
.review-feature .q { font-size: clamp(24px, 3vw, 36px); line-height: 1.2; letter-spacing: -0.04em; }
.review-feature .who { text-align: left; }
.reviews-grid { columns: 3 320px; column-gap: 16px; margin-top: 64px; }
.reviews-grid .review { break-inside: avoid; margin-bottom: 16px; gap: 16px; padding: 28px; }
.reviews-grid .review p { font-size: 16px; line-height: 1.5; color: var(--ink-2); }
.r-head { display: flex; justify-content: space-between; align-items: center; }
.r-date { font-size: 13px; color: var(--muted); }
.who { display: flex; align-items: center; gap: 12px; }
.review .who i, .review-feature .who i { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-style: normal; font-weight: 500; font-size: 18px; flex: none; }
.review-feature .who span, .review .who span { display: block; font-size: 14px; color: var(--muted); }

/* ---------- Карусель скриншотов отзывов ---------- */
.who-photo { width: 48px; height: 48px; border-radius: 50%; flex: none; background-size: 1105px auto; background-position: -22px -11px; background-repeat: no-repeat; }
.carousel { margin-top: 56px; }
.car-track {
  position: relative; display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-padding: 0 24px; padding: 4px max(24px, calc((100vw - var(--wrap)) / 2 + 24px)) 8px;
  margin: 0 calc(-1 * max(24px, calc((100vw - var(--wrap)) / 2 + 24px)));
  scrollbar-width: none;
}
.car-track::-webkit-scrollbar { display: none; }
.shot {
  flex: 0 0 min(960px, 86vw); scroll-snap-align: center;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl);
  padding: 20px; box-shadow: 0 10px 30px rgba(15,15,15,.06);
  display: flex; flex-direction: column; gap: 12px; align-self: flex-start;
}
.shot-img { display: block; width: 100%; cursor: zoom-in; border-radius: 12px; overflow: hidden; }
.shot-img img { width: 100%; height: auto; }
.shot-text { display: none; }
.shot-text summary { cursor: pointer; font-size: 14px; color: var(--purple); list-style: none; }
.shot-text summary::-webkit-details-marker { display: none; }
.shot-text p { margin-top: 10px; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.car-nav { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 24px; }
.car-btn { width: 48px; height: 48px; border-radius: 50%; background: var(--card); display: grid; place-items: center; transition: background .2s; }
.car-btn:hover { background: var(--card-2); }
.car-btn svg { width: 18px; height: 18px; }
.car-btn:disabled { opacity: .35; cursor: default; }
.car-count { font-size: 15px; color: var(--muted); min-width: 52px; text-align: center; }
.car-count b { color: var(--ink); font-weight: 500; }

.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(15,15,15,.85); display: flex; align-items: center; justify-content: center; padding: 24px; }
.lightbox[hidden] { display: none; }
.lb-scroll { max-width: 100%; max-height: 100%; overflow: auto; border-radius: 12px; background: #fff; }
.lb-scroll img { display: block; max-width: none; width: 1200px; }
.lb-close { position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; border-radius: 50%; background: #fff; font-size: 26px; line-height: 1; }
@media (max-width: 1240px) { .lb-scroll img { width: 1100px; } }
@media (max-width: 860px) {
  .shot { padding: 14px; flex-basis: 88vw; }
  .shot-text { display: block; }
  .lb-scroll img { width: 900px; }
}
.header .logo img { width: 44px; height: 44px; }
.footer .logo img { width: 52px; height: 52px; }
.footer .logo { font-size: 20px; }
@media (max-width: 520px) {
  .car-track { padding-left: 16px; padding-right: 16px; margin-left: -16px; margin-right: -16px; scroll-padding: 0 16px; }
}
.teacher .photo { aspect-ratio: 4 / 4.4; overflow: hidden; }
.teacher .photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; transition: transform .5s ease; }
.teacher:hover .photo img { transform: scale(1.04); }
