/* ============================================================
   Центр семейного образования «РКШ» · Емельяново
   Тёплый редакционный стиль — кремовый фон, тёмно-зелёный акцент
   ============================================================ */

:root {
  /* — Цвет — */
  --bg:        #F4ECD9;   /* кремовый фон */
  --bg-alt:    #EBE0C8;   /* приглушённый крем для чередования */
  --surface:   #FBF6E9;   /* бумага карточек */
  --ink:       #292318;   /* тёплый почти-чёрный текст */
  --ink-2:     #5A5244;   /* вторичный текст */
  --ink-3:     #746C59;   /* подписи */
  --line:      #D9CDAF;   /* тёплые волосяные линии */
  --green:     #2C4733;   /* тёмно-зелёный акцент */
  --green-2:   #3A5A42;   /* зелёный hover */
  --green-deep:#1E3325;   /* самый тёмный зелёный */
  --green-tint:#DCE3CE;   /* пыльно-зелёный фон */
  --on-green:  #F4ECD9;   /* текст на зелёном */
  --on-green-2:#C2CDAE;   /* вторичный текст на зелёном */
  --ochre:     #A6803F;   /* охра — крайне дозированно */

  /* — Шрифты — */
  --display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --body:    "PT Sans", system-ui, -apple-system, sans-serif;
  --mono:    "IBM Plex Mono", ui-monospace, monospace;

  /* — Раскладка — */
  --maxw: 1340px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 4px;
  --header-h: 76px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

html, body { overflow-x: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
:where(a, button, input, select):focus-visible { outline: 3px solid var(--ochre); outline-offset: 3px; }

/* — Типографика — */
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
}
h2 { font-size: clamp(34px, 4.6vw, 58px); }
h3 { font-size: clamp(24px, 2.6vw, 32px); }
p { margin: 0 0 1em; text-wrap: pretty; }
strong { font-weight: 700; }

.eyebrow {
  font-family: var(--body);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green);
  margin: 0 0 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 28px; height: 1.5px;
  background: var(--green);
  display: inline-block;
}
.eyebrow.is-light { color: var(--on-green-2); }
.eyebrow.is-light::before { background: var(--on-green-2); }
.eyebrow.is-centered { justify-content: center; }

/* — Контейнер / секции — */
.container { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
section { padding-block: clamp(56px, 7.5vw, 104px); }
.section-alt { background: var(--bg-alt); }
.section-green { background: var(--green); color: var(--on-green); }
.section-green h2, .section-green h3 { color: var(--on-green); }
.lead { font-size: clamp(19px, 2.1vw, 23px); line-height: 1.6; color: var(--ink-2); max-width: 60ch; }
.section-green .lead { color: var(--on-green-2); }
.section-head { max-width: 64ch; margin-bottom: clamp(34px, 4.5vw, 56px); }
.section-cta { margin-top: clamp(30px,4vw,46px); padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 20px; align-items: center; color: var(--ink-2); }
.section-cta a { color: var(--green); font-weight: 700; text-underline-offset: 4px; }
.section-cta--green { border-color: rgba(194,205,174,.28); color: var(--on-green-2); }
.section-cta--green a { color: var(--on-green); }

/* — Кнопки — */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--body); font-weight: 700; font-size: 16px;
  padding: 15px 28px; border-radius: var(--radius);
  border: 1.5px solid transparent; cursor: pointer; text-decoration: none;
  transition: background .2s, color .2s, border-color .2s, transform .12s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--green); color: var(--on-green); }
.btn-primary:hover { background: var(--green-2); }
.btn-outline { background: transparent; color: var(--green); border-color: var(--green); }
.btn-outline:hover { background: var(--green); color: var(--on-green); }
.btn-on-green { background: var(--on-green); color: var(--green-deep); }
.btn-on-green:hover { background: #fff; }
.btn-lg { padding: 18px 36px; font-size: 17px; }
.btn-block { width: 100%; }

/* — Плейсхолдеры изображений — */
.ph {
  position: relative;
  background-color: var(--green-tint);
  background-image: repeating-linear-gradient(
    -45deg, transparent 0 11px,
    rgba(44,71,51,.07) 11px 12px
  );
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex; align-items: flex-end;
  overflow: hidden;
  color: var(--green-deep);
}
.ph::after {
  content: attr(data-label);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  padding: 10px 12px;
  background: rgba(251,246,233,.82);
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  border-top-right-radius: var(--radius);
  width: 100%;
  line-height: 1.35;
}
.ph.is-round { border-radius: 999px; }
.ph.is-round::after { display: none; }

/* ============================================================
   ШАПКА
   ============================================================ */
.header {
  position: sticky; top: 0; z-index: 60;
  height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, background .25s;
}
.header.is-stuck { border-bottom-color: var(--line); }
.header__inner {
  max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter);
  height: 100%; display: flex; align-items: center; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.brand__mark {
  height: 44px; width: auto; object-fit: contain; display: block;
}
.brand__text { line-height: 1.1; }
.brand__name { font-family: var(--display); font-weight: 600; font-size: 19px; }
.brand__sub { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.nav { display: flex; gap: 14px; margin-left: auto; }
.nav a { text-decoration: none; font-size: 14px; color: var(--ink-2); transition: color .2s; white-space: nowrap; }
.nav a:hover, .nav a.is-active { color: var(--green); }
.nav a.is-active { text-decoration: underline; text-underline-offset: 6px; }
.header__cta { display: flex; align-items: center; gap: 14px; }
.header__phone { font-weight: 700; text-decoration: none; font-size: 15px; white-space: nowrap; }
.header__cta .btn { padding: 11px 20px; font-size: 14px; }
.header__phone:hover { color: var(--green); }
.burger { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.burger span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .25s; }

/* мобильное меню */
.mobile-menu {
  position: fixed; inset: 0; z-index: 70;
  background: var(--bg);
  display: flex; flex-direction: column; padding: 28px var(--gutter);
  transform: translateY(-100%); transition: transform .32s cubic-bezier(.4,0,.2,1);
  visibility: hidden;
}
.mobile-menu.is-open { transform: translateY(0); visibility: visible; }
.mobile-menu__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 36px; }
.mobile-menu__close { background: none; border: none; font-size: 34px; line-height: 1; cursor: pointer; color: var(--ink); }
.mobile-menu nav { display: flex; flex-direction: column; gap: 6px; }
.mobile-menu nav a {
  text-decoration: none; font-family: var(--display); font-size: 30px; font-weight: 600;
  padding: 8px 0; border-bottom: 1px solid var(--line);
}
.mobile-menu__foot { margin-top: auto; padding-top: 28px; display: grid; gap: 14px; }

/* ============================================================
   HERO
   ============================================================ */
.hero { padding-block: clamp(24px, 3.4vw, 48px) clamp(32px, 4vw, 56px); }
.hero__grid {
  display: grid; grid-template-columns: .92fr 1.08fr; gap: clamp(28px, 4vw, 56px);
  align-items: center;
}
.hero h1 {
  font-size: clamp(32px, 3.6vw, 52px);
  line-height: 1.06;
  margin-bottom: 16px;
}
.hero h1 em { display: inline-block; white-space: nowrap; font-style: italic; color: var(--green); }
.hero__sub { font-size: clamp(17px, 1.55vw, 21px); line-height: 1.5; color: var(--ink-2); margin-bottom: 22px; max-width: 44ch; }
.hero__facts { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }
.fact {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 10px 14px; flex: 1 1 180px;
}
.fact__num { font-family: var(--display); font-size: 22px; font-weight: 600; color: var(--green); line-height: 1; }
.fact__txt { font-size: 13px; color: var(--ink-2); margin-top: 3px; }
.hero__actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.hero__meta { font-size: 13px; color: var(--ink-2); line-height: 1.4; }
.hero__meta b { color: var(--ink); }
.hero__photo { aspect-ratio: 3/2; }
.hero__badge {
  position: absolute; top: 16px; left: 16px;
  background: var(--green); color: var(--on-green);
  font-size: 12px; font-weight: 700; letter-spacing: .04em;
  padding: 8px 14px; border-radius: 999px; z-index: 2;
}

/* ============================================================
   БОЛИ → РЕШЕНИЯ
   ============================================================ */
.pains { display: grid; gap: 0; border-top: 1px solid var(--line); }
.pain {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 4vw, 56px);
  padding: clamp(22px, 3vw, 34px) 0; border-bottom: 1px solid var(--line);
  align-items: start;
}
.pain__q { display: flex; gap: 14px; }
.pain__q .ic { color: var(--ochre); flex-shrink: 0; font-size: 22px; line-height: 1.3; }
.pain__q p { font-size: 17px; color: var(--ink-2); margin: 0; }
.pain__a { display: flex; gap: 14px; }
.pain__a .ic { color: var(--green); flex-shrink: 0; font-size: 22px; line-height: 1.3; }
.pain__a p { font-size: 17px; font-weight: 700; margin: 0; }
.pain__label { display: block; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 5px; }

/* ============================================================
   ЧТО ТАКОЕ РКШ
   ============================================================ */
.about-rksh__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.about-rksh__text p { color: var(--on-green-2); margin-bottom: 1.1em; }
.quote {
  border-left: 2px solid var(--ochre); padding: 4px 0 4px 26px; margin: 32px 0 0;
}
.quote p { font-family: var(--display); font-style: italic; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.3; color: var(--on-green); margin: 0 0 10px; }
.quote cite { font-style: normal; font-size: 14px; letter-spacing: .04em; color: var(--on-green-2); }
.about-rksh__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.tag {
  font-size: 13.5px; padding: 7px 14px; border: 1px solid rgba(194,205,174,.4);
  border-radius: 999px; color: var(--on-green-2);
}
.about-rksh__photo { aspect-ratio: 15/16; }

/* ============================================================
   ПРЕИМУЩЕСТВА (раскрывающаяся сетка)
   ============================================================ */
.adv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.adv-grid:not(.show-all) .adv:nth-child(n+7) { display: none; }
.advantages-more { margin: 26px auto 0; display: flex; background: transparent; color: var(--green); border: 0; border-bottom: 1px solid currentColor; padding: 4px 0; font: 700 16px var(--body); cursor: pointer; }
.adv {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; text-align: left; cursor: pointer; font: inherit; color: inherit;
  transition: border-color .2s, background .2s, transform .15s;
}
.adv:hover { border-color: var(--green); transform: translateY(-2px); }
.adv__num { font-family: var(--mono); font-size: 12px; color: var(--green); }
.adv__title { font-family: var(--display); font-size: 23px; font-weight: 600; margin: 14px 0 0; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.adv__toggle { font-family: var(--body); font-size: 22px; color: var(--green); transition: transform .25s; flex-shrink: 0; }
.adv.is-open .adv__toggle { transform: rotate(45deg); }
.adv__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s ease; }
.adv__body > div { overflow: hidden; }
.adv.is-open .adv__body { grid-template-rows: 1fr; }
.adv__body p { font-size: 15.5px; color: var(--ink-2); margin: 14px 0 0; }

/* ============================================================
   ИСТОРИЯ ОСНОВАТЕЛЯ
   ============================================================ */
.founder__grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(36px, 5vw, 72px); align-items: center; }
.founder__photo { aspect-ratio: 4/5; }
.founder__text h2 { margin-bottom: 22px; }
.founder__text h2 + p { font-family: var(--display); font-size: clamp(22px, 2.4vw, 30px); font-style: italic; line-height: 1.32; color: var(--ink); margin-bottom: .7em; }
.founder__sign { margin-top: 26px; display: flex; align-items: center; gap: 16px; }
.founder__sign-name { font-family: var(--display); font-size: 22px; font-weight: 600; }
.founder__sign-role { font-size: 14px; color: var(--ink-2); }

/* ============================================================
   ПЕДАГОГИ
   ============================================================ */
.teachers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.teacher { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.teacher__photo { aspect-ratio: 1/1; border: none; border-bottom: 1px solid var(--line); border-radius: 0; }
.teacher__body { padding: 22px 22px 26px; }
.teacher__name { font-family: var(--display); font-size: 25px; font-weight: 600; }
.teacher__role { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--green); margin: 4px 0 12px; }
.teacher__info { font-size: 15px; color: var(--ink-2); margin: 0 0 14px; }
.teacher__quote { font-family: var(--display); font-style: italic; font-size: 18px; color: var(--ink); border-top: 1px solid var(--line); padding-top: 14px; margin: 0; }
.teacher.is-director { grid-column: span 1; }
.teacher.is-director .teacher__role { color: var(--ochre); }

/* ============================================================
   ПРОГРАММА ПО СТУПЕНЯМ
   ============================================================ */
.steps-prog { display: grid; gap: 14px; }
.stage {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
}
.stage__head {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  padding: clamp(20px, 3vw, 30px); display: flex; align-items: center; gap: 22px; font: inherit;
}
.stage__age { font-family: var(--mono); font-size: 13px; color: var(--green); background: var(--green-tint); padding: 6px 12px; border-radius: 999px; flex-shrink: 0; }
.stage__title { font-family: var(--display); font-size: clamp(24px, 3vw, 32px); font-weight: 600; flex: 1; }
.stage__toggle { font-size: 26px; color: var(--green); transition: transform .25s; }
.stage.is-open .stage__toggle { transform: rotate(45deg); }
.stage__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s ease; }
.stage__body > div { overflow: hidden; }
.stage.is-open .stage__body { grid-template-rows: 1fr; }
.stage__inner { padding: 0 clamp(20px, 3vw, 30px) clamp(24px, 3vw, 32px); }
.stage__cols { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; border-top: 1px solid var(--line); padding-top: 24px; }
.stage__cols h4 { font-family: var(--body); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 12px; }
.subjects { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.subjects span { font-size: 14px; padding: 6px 12px; background: var(--bg-alt); border-radius: 999px; }
.stage__facts { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 10px; }
.stage__facts li { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; border-bottom: 1px dotted var(--line); padding-bottom: 9px; }
.stage__facts li b { font-weight: 700; }
.stage__facts li span:first-child { color: var(--ink-2); }

/* ============================================================
   РЕЗУЛЬТАТЫ
   ============================================================ */
.results { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px); }
.result h3 { color: var(--on-green); margin-bottom: 22px; }
.result ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.result li { display: flex; gap: 14px; color: var(--on-green-2); font-size: 17.5px; line-height: 1.5; }
.result li::before { content: "—"; color: var(--ochre); flex-shrink: 0; }
.result__col-divider { border-left: 1px solid rgba(194,205,174,.25); padding-left: clamp(28px, 4vw, 56px); }

/* ============================================================
   СТОИМОСТЬ
   ============================================================ */
.price-table { display: grid; gap: 14px; }
.price-row {
  display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 24px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px clamp(22px, 3vw, 32px);
}
.price-row__name { font-family: var(--display); font-size: 24px; font-weight: 600; }
.price-row__desc { font-size: 14.5px; color: var(--ink-2); }
.price-row__cost { text-align: right; }
.price-row__amount { font-family: var(--display); font-size: clamp(26px, 3vw, 34px); font-weight: 600; color: var(--green); white-space: nowrap; }
.price-row__per { font-size: 13px; color: var(--ink-3); }
.price-note { margin-top: 24px; font-size: 14.5px; color: var(--ink-2); display: flex; gap: 12px; align-items: flex-start; }
.price-note .ic { color: var(--ochre); flex-shrink: 0; }

/* ============================================================
   АТМОСФЕРА (галерея)
   ============================================================ */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 180px; gap: 12px; }
.gallery .ph { cursor: zoom-in; transition: filter .2s; }
.gallery .ph:hover { filter: brightness(1.04); }
.gallery .ph.tall { grid-row: span 2; }
.gallery .ph.wide { grid-column: span 2; }
.gallery--natural { grid-template-columns: repeat(5, 1fr); grid-template-rows: repeat(2, clamp(180px,20vw,270px)); grid-auto-rows: clamp(260px,24vw,330px); grid-auto-flow: dense; }
.gallery__cell { position: relative; margin: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; cursor: zoom-in; transition: filter .2s; background: var(--green-tint); }
.gallery__cell--featured { grid-column: span 2; grid-row: span 2; }
.gallery__cell--portrait { grid-row: span 2; }
.gallery__cell--wide { grid-column: span 2; }
.gallery__cell--face img { object-position: center top; }
.gallery__cell:hover { filter: brightness(1.04); }
.gallery__cell img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery__cell figcaption { position: absolute; inset: auto 0 0; padding: 28px 14px 11px; color: #fff; font-size: 13px; line-height: 1.3; background: linear-gradient(transparent,rgba(30,51,37,.76)); opacity: 0; transition: opacity .2s; }
.gallery__cell:hover figcaption, .gallery__cell:focus-within figcaption { opacity: 1; }

/* лайтбокс */
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(30,51,37,.92); display: none; place-items: center; padding: 5vw; }
.lightbox.is-open { display: grid; }
.lightbox__inner { width: min(900px, 90vw); aspect-ratio: 3/2; }
.lightbox__close { position: absolute; top: 22px; right: 26px; background: none; border: none; color: var(--on-green); font-size: 40px; cursor: pointer; line-height: 1; }

/* ============================================================
   КАК ЗАПИСАТЬСЯ (3 шага)
   ============================================================ */
.steps3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: s; }
.step3 { position: relative; padding-top: 28px; }
.step3__num { font-family: var(--display); font-size: 64px; font-weight: 600; color: var(--green); line-height: 1; opacity: .9; }
.step3 h3 { margin: 14px 0 10px; }
.step3 p { color: var(--ink-2); font-size: 16px; }
.step3::after { content: ""; position: absolute; top: 50px; right: -22px; width: 44px; height: 1px; background: var(--line); }
.step3:last-child::after { display: none; }
.steps3__cta { margin-top: clamp(32px, 4vw, 48px); display: flex; flex-direction: column; align-items: center; gap: 12px; }
.steps3__cta span { color: var(--ink-2); font-size: 14px; }

/* ============================================================
   FAQ
   ============================================================ */
.faq { max-width: 860px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer; font: inherit;
  padding: 24px 8px; display: flex; justify-content: space-between; gap: 24px; align-items: center;
  font-family: var(--display); font-size: clamp(20px, 2.3vw, 26px); font-weight: 600; color: var(--ink);
}
.faq__toggle { font-size: 24px; color: var(--green); flex-shrink: 0; transition: transform .25s; }
.faq__item.is-open .faq__toggle { transform: rotate(45deg); }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s ease; }
.faq__a > div { overflow: hidden; }
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq__a p { padding: 0 8px 26px; color: var(--ink-2); font-size: 16.5px; margin: 0; max-width: 70ch; }

/* ============================================================
   ОТЗЫВЫ
   ============================================================ */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.review { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; }
.review__stars { color: var(--ochre); letter-spacing: 3px; margin-bottom: 14px; font-size: 15px; }
.review__text { font-size: 16.5px; line-height: 1.55; margin: 0 0 18px; }
.review__more { background: none; border: none; color: var(--green); font: inherit; font-weight: 700; cursor: pointer; padding: 0; text-align: left; text-decoration: underline; text-underline-offset: 3px; }
.review__extra { display: none; }
.review.is-open .review__extra { display: block; }
.review.is-open .review__more { display: none; }
.review__foot { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 12px; }
.review__avatar { width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0; object-fit: cover; }
.review__who b { display: block; font-size: 15px; }
.review__who span { font-size: 13px; color: var(--ink-2); }
.reviews__proof { margin-top: 32px; text-align: center; }
.reviews__proof a { color: var(--green); font-weight: 700; text-underline-offset: 3px; }

/* ============================================================
   ВИДЕО
   ============================================================ */
.video__frame { position: relative; aspect-ratio: 16/9; max-width: 980px; margin: 0 auto; cursor: pointer; overflow: hidden; border: 1px solid rgba(194,205,174,.3); border-radius: var(--radius); background: var(--green-deep); }
.video__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.62); }
.video__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video__play {
  position: absolute; inset: 0; margin: auto; width: 88px; height: 88px; border: 0;
  background: var(--on-green); border-radius: 50%; display: grid; place-items: center;
  z-index: 2; transition: transform .2s; cursor: pointer;
}
.video__frame:hover .video__play { transform: scale(1.08); }
.video__play::after { content: ""; border-style: solid; border-width: 14px 0 14px 24px; border-color: transparent transparent transparent var(--green-deep); margin-left: 5px; }
.video__caption { position: absolute; left: 24px; bottom: 22px; z-index: 2; display: grid; color: var(--on-green); }
.video__caption b { font-family: var(--display); font-size: 24px; }
.video__caption span { color: var(--on-green-2); font-size: 14px; }

/* ============================================================
   ФИНАЛ + КОНТАКТЫ
   ============================================================ */
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 5vw, 72px); }
.contact__details { display: grid; gap: 22px; align-content: start; }
.contact__row { display: flex; gap: 16px; align-items: flex-start; }
.contact__row .ic { color: var(--green); flex-shrink: 0; width: 22px; }
.contact__row b { display: block; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 2px; }
.contact__row a { font-weight: 700; text-decoration: none; }
.contact__map { aspect-ratio: 16/10; margin-top: 8px; }
.route-link { color: var(--green); font-weight: 700; text-underline-offset: 4px; margin-top: -10px; }
.contact__socials { display: flex; gap: 10px; margin-top: 4px; }
.contact__socials a { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; text-decoration: none; color: var(--green); transition: .2s; font-size: 13px; font-weight: 700; }
.contact__socials a:hover { background: var(--green); color: var(--on-green); }

/* — Форма — */
.lead-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(26px, 4vw, 40px); }
.lead-form h3 { margin-bottom: 8px; }
.lead-form__sub { font-size: 15px; color: var(--ink-2); margin-bottom: 24px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; letter-spacing: .04em; color: var(--ink-2); margin-bottom: 7px; }
.field input, .field select {
  width: 100%; font: inherit; font-size: 16px; padding: 14px 16px;
  background: var(--bg); border: 1.5px solid var(--line); border-radius: var(--radius); color: var(--ink);
  transition: border-color .2s;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--green); }
.consent { display: flex; gap: 11px; align-items: flex-start; margin: 6px 0 20px; }
.consent input { width: 19px; height: 19px; margin-top: 3px; flex-shrink: 0; accent-color: var(--green); }
.consent label { font-size: 13px; color: var(--ink-2); line-height: 1.45; }
.consent a { color: var(--green); }
.form-success { display: none; text-align: center; padding: 30px 0; }
.form-success.is-shown { display: block; }
.form-success .ic { color: var(--green); font-size: 44px; }
.form-privacy-note { margin: 12px 0 0; text-align: center; color: var(--ink-3); font-size: 13px; }
.form-honey { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; }
.form-error { min-height: 1.4em; margin: 8px 0 0; text-align: center; color: #8A3B2E; font-size: 13px; }
.lead-form.is-sending { opacity: .72; pointer-events: none; }

/* ============================================================
   ПОДВАЛ
   ============================================================ */
.footer { background: var(--green-deep); color: var(--on-green-2); padding-block: clamp(48px, 6vw, 72px) 32px; font-size: 14.5px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: clamp(28px, 4vw, 56px); margin-bottom: 40px; }
.footer h4 { font-family: var(--body); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--on-green); margin: 0 0 16px; font-weight: 700; }
.footer a { color: var(--on-green-2); text-decoration: none; transition: color .2s; }
.footer a:hover { color: var(--on-green); }
.footer__links { display: grid; gap: 9px; }
.footer__social { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.footer .brand__name { color: var(--on-green); }
.footer__req { line-height: 1.6; color: var(--on-green-2); opacity: .85; }
.footer__bottom { border-top: 1px solid rgba(194,205,174,.18); padding-top: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; opacity: .8; }

/* ============================================================
   ЮРИДИЧЕСКИЕ СТРАНИЦЫ (политика / согласие)
   ============================================================ */
.legal { padding-block: clamp(40px, 6vw, 84px); }
.legal__head { max-width: 840px; margin: 0 auto clamp(24px, 3.5vw, 44px); }
.legal__head h1 {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(32px, 5vw, 56px); line-height: 1.06; letter-spacing: -0.01em;
  margin: 0;
}
.legal__updated { color: var(--ink-3); font-size: 14px; margin-top: 14px; }
.legal__body { max-width: 840px; margin: 0 auto; font-size: 16px; line-height: 1.7; }
.legal__body h2 {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(23px, 3vw, 33px); line-height: 1.1;
  margin: 1.7em 0 .5em; color: var(--green-deep);
}
.legal__body h3 {
  font-family: var(--body); font-weight: 700;
  font-size: 18px; letter-spacing: 0; line-height: 1.35;
  margin: 1.5em 0 .4em; color: var(--ink);
}
.legal__body p { margin: 0 0 1em; color: var(--ink); }
.legal__body ul { margin: 0 0 1.2em; padding-left: 1.25em; list-style: none; }
.legal__body ul li { position: relative; margin-bottom: .55em; }
.legal__body ul li::before {
  content: "—"; position: absolute; left: -1.25em; color: var(--green); font-weight: 700;
}
.legal__body a { color: var(--green); text-decoration: underline; text-underline-offset: 2px; }
.legal__body a:hover { color: var(--green-2); }
.legal__intro { color: var(--ink-2); }
.legal__table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; font-size: 15px; }
.legal__table th, .legal__table td {
  text-align: left; vertical-align: top; padding: 12px 16px;
  border: 1px solid var(--line);
}
.legal__table th { background: var(--green-tint); width: 34%; font-weight: 700; color: var(--green-deep); }
.legal__table td { background: var(--surface); }
@media (max-width: 560px) {
  .legal__table, .legal__table tbody, .legal__table tr, .legal__table th, .legal__table td { display: block; width: 100%; }
  .legal__table th { border-bottom: none; }
  .legal__table td { border-top: none; margin-bottom: 4px; }
}

/* ============================================================
   ПЛАВАЮЩИЕ ЭЛЕМЕНТЫ / COOKIE
   ============================================================ */
.float-msg { position: fixed; right: 18px; bottom: 18px; z-index: 55; display: none; flex-direction: column; gap: 12px; }
.float-msg a { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(30,51,37,.28); text-decoration: none; color: #fff; font-weight: 700; font-size: 13px; }
.float-msg .wa { background: #25D366; }
.float-msg .tg { background: #29A9EB; }
.mobile-cta { display: none; }

.cookie {
  position: fixed; left: 18px; bottom: 18px; right: 18px; z-index: 80; max-width: 460px;
  background: var(--green-deep); color: var(--on-green-2); border-radius: var(--radius);
  padding: 20px 22px; box-shadow: 0 12px 40px rgba(30,51,37,.35);
  display: none; gap: 14px; align-items: center; flex-wrap: wrap;
}
.cookie.is-shown { display: flex; }
.cookie p { margin: 0; font-size: 13.5px; line-height: 1.5; flex: 1 1 220px; }
.cookie a { color: var(--on-green); text-decoration: underline; }
.cookie button { flex-shrink: 0; }

/* ============================================================
   АДАПТИВ
   ============================================================ */
@media (max-width: 1320px) {
  .nav { display: none; }
  .burger { display: block; }
}
@media (max-width: 1024px) {
  .adv-grid, .teachers { grid-template-columns: repeat(2, 1fr); }
  .gallery:not(.gallery--natural) { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
  body { font-size: 16px; }
  .hero__grid, .about-rksh__grid, .founder__grid, .results, .contact__grid { grid-template-columns: 1fr; }
  .reviews { grid-template-columns: 1fr; max-width: 680px; margin-inline: auto; }
  .gallery--natural { grid-template-columns: repeat(2,1fr); grid-template-rows: repeat(3,240px); }
  .gallery__cell--featured, .gallery__cell--wide { grid-column: span 2; grid-row: auto; }
  .gallery__cell--portrait { grid-column: auto; grid-row: auto; }
  .section-cta { align-items: flex-start; flex-direction: column; gap: 8px; }
  body { padding-bottom: 74px; }
  .mobile-cta { position: fixed; z-index: 65; inset: auto 0 0; display: flex; align-items: center; justify-content: center; gap: 14px; padding: 10px var(--gutter); background: color-mix(in srgb,var(--bg) 94%,transparent); backdrop-filter: blur(10px); border-top: 1px solid var(--line); }
  .mobile-cta .btn { padding: 11px 16px; font-size: 14px; }
  .mobile-cta__phone { color: var(--green); font-size: 14px; font-weight: 700; }
  .hero__photo { aspect-ratio: 16/11; order: -1; max-height: none; }
  .about-rksh__photo, .founder__photo { aspect-ratio: 16/10; }
  .result__col-divider { border-left: none; padding-left: 0; border-top: 1px solid rgba(194,205,174,.25); padding-top: 28px; }
  .pain { grid-template-columns: 1fr; gap: 12px; }
  .pain__label { display: block; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 2px; }
  .price-row { grid-template-columns: 1fr; gap: 10px; text-align: left; }
  .price-row__cost { text-align: left; }
  .steps3 { grid-template-columns: 1fr; gap: 28px; }
  .step3::after { display: none; }
  .header__cta .header__phone, .header__cta .btn { display: none; }
  .float-msg { display: flex; bottom: 88px; }
  .cookie { bottom: 84px; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 560px) {
  .adv-grid, .teachers, .reviews, .gallery { grid-template-columns: 1fr; }
  .gallery--natural { grid-template-rows: repeat(10,280px); }
  .gallery__cell--featured, .gallery__cell--wide { grid-column: auto; }
  .gallery__cell figcaption { opacity: 1; }
  .gallery .ph.tall, .gallery .ph.wide { grid-row: auto; grid-column: auto; }
  .stage__cols { grid-template-columns: 1fr; gap: 20px; }
  .hero__facts { flex-direction: column; }
}
