/* ===== Tokens — «Modern Academic Mentor» ===== */
:root {
  --bg: #F7F9F8;
  --surface: #FFFFFF;
  --tint: #E8F3EE;            /* мятные подложки */
  --tint-2: #F0F6F3;
  --text: #13201B;
  --navy: #1B2A4A;
  --muted: #4A5568;
  --line: rgba(27, 42, 74, .09);
  --primary: #0D5C46;         /* изумруд */
  --primary-2: #0A4A38;
  --on-primary-soft: #B8F0D6;
  --star: #F2A93B;
  --wa: #128C4A;              /* AA с белым текстом */
  --wa-hover: #0E7A40;
  --wa-text: #FFFFFF;
  --bubble: #E7F7DD;
  --radius: 20px;
  --shadow-1: 0 1px 2px rgba(27,42,74,.04), 0 2px 8px rgba(13,92,70,.05);
  --shadow-2: 0 8px 24px rgba(27,42,74,.08);
  --font: "Manrope", "Manrope Fallback", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --dock-h: 76px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0E1714;
    --surface: #15211D;
    --tint: #183A2F;
    --tint-2: #121D19;
    --text: #E9F1ED;
    --navy: #E9F1ED;
    --muted: #A9B8B1;
    --line: rgba(255,255,255,.08);
    --primary: #5FD3A8;
    --primary-2: #0D5C46;
    --on-primary-soft: #B8F0D6;
    --wa: #25D366;
    --wa-hover: #3BE07A;
    --wa-text: #062514;
    --bubble: #1C3328;
    --shadow-1: 0 1px 2px rgba(0,0,0,.3);
    --shadow-2: 0 8px 24px rgba(0,0,0,.35);
  }
}

@font-face { font-family: "Manrope Fallback"; src: local("Arial"), local("Helvetica"), local("Roboto"); size-adjust: 106%; ascent-override: 100%; descent-override: 28%; line-gap-override: 0%; }

/* ===== Base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; font-family: var(--font); font-weight: 500; font-size: 16px; line-height: 1.6; color: var(--text); background: var(--bg); overflow-x: hidden; padding-bottom: calc(var(--dock-h) + env(safe-area-inset-bottom)); }
h1, h2, h3 { margin: 0 0 .5em; line-height: 1.18; font-weight: 800; letter-spacing: -.02em; color: var(--navy); }
h1 { font-size: clamp(2rem, 8.6vw, 3.5rem); }
h2 { font-size: clamp(1.55rem, 6vw, 2.35rem); }
h3 { font-size: 1.1rem; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1rem; }
a { color: var(--primary); }
svg { display: block; flex: none; }
fieldset { border: 0; margin: 0 0 18px; padding: 0; min-width: 0; }
legend { font-weight: 700; font-size: .92rem; margin-bottom: 8px; padding: 0; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 8px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.wrap--narrow { max-width: 720px; }
@media (min-width: 640px) { .wrap { padding: 0 24px; } }

.skip { position: absolute; left: 8px; top: -60px; background: var(--surface); padding: 10px 16px; border-radius: 10px; z-index: 100; }
.skip:focus { top: 8px; }

.lead { font-size: 1.08rem; color: var(--muted); }
.sub { color: var(--muted); margin: 0; }
.kicker { font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--primary); margin: 0 0 6px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--primary); background: var(--tint); padding: 7px 12px; border-radius: 999px; margin-bottom: 14px; }
.tag { font-style: normal; font-size: .68rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; background: #25D366; color: #062514; white-space: nowrap; }
.sec-head { margin-bottom: 24px; }
.sec-head h2 { margin-bottom: 8px; }

.pulse { width: 8px; height: 8px; border-radius: 50%; background: #25D366; display: inline-block; flex: none; box-shadow: 0 0 0 0 rgba(37,211,102,.55); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 7px rgba(37,211,102,0); } 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); } }

/* ===== Buttons ===== */
.btn-wa, .btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 22px; border-radius: 999px; font: inherit; font-weight: 800; text-decoration: none; transition: background .2s, transform .15s, box-shadow .2s; -webkit-tap-highlight-color: transparent; }
.btn-wa:active, .btn:active { transform: scale(.98); }
.btn-wa { background: var(--wa); color: var(--wa-text); }
.btn-wa:hover { background: var(--wa-hover); }
.btn-wa--lg { min-height: 58px; font-size: 1.08rem; width: 100%; box-shadow: 0 10px 24px rgba(18,140,74,.28); }
.btn-wa--block { width: 100%; }
.btn-wa--icon { width: 48px; min-height: 48px; padding: 0; }
@media (min-width: 640px) { .btn-wa--lg { width: auto; padding: 0 32px; } }
.btn--primary { background: var(--primary-2); color: #fff; width: 100%; }
.btn--primary:hover { background: #083D2E; }
.btn--soft { background: var(--tint); color: var(--primary); width: 100%; }
.btn--soft:hover { filter: brightness(.97); }
.btn--ghost { border: 1.5px solid var(--line); background: var(--surface); color: var(--navy); }
.btn--ghost:hover { border-color: var(--primary); }

.note { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 12px 0 0; font-weight: 600; color: var(--muted); font-size: .94rem; }

/* ===== Header ===== */
.header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.header__in { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 10px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); min-width: 0; min-height: 48px; }
.brand rect { fill: var(--primary-2); }
.brand__txt { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.brand__name { font-weight: 800; font-size: 1.1rem; }
.brand__status { display: flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 600; color: var(--muted); white-space: nowrap; }
.header__right { display: flex; align-items: center; gap: 8px; }
.lang { display: flex; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.lang button { font: inherit; font-weight: 800; font-size: .8rem; color: var(--muted); background: none; border: 0; border-radius: 999px; min-width: 44px; min-height: 40px; padding: 0 9px; cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--primary-2); color: #fff; }

/* ===== Hero ===== */
.hero { padding: 26px 0 40px; background: radial-gradient(120% 70% at 100% 0%, var(--tint) 0%, transparent 60%); }
.hero__grid { display: grid; gap: 24px; align-items: center; }
.hero h1 { margin-bottom: 12px; }
.hero .lead { margin-bottom: 22px; max-width: 36ch; }
@media (min-width: 960px) {
  .hero { padding: 72px 0 88px; }
  .hero__grid { grid-template-columns: 1.15fr .85fr; gap: 56px; }
  .hero .note { justify-content: flex-start; }
}

.tutor { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 18px; box-shadow: var(--shadow-2); }
.tutor__head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.avatar { position: relative; width: 72px; height: 72px; flex: none; }
.avatar img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; display: block; box-shadow: 0 0 0 3px var(--tint); }
.avatar__badge { position: absolute; right: -2px; bottom: -2px; width: 24px; height: 24px; border-radius: 50%; background: #25D366; color: #fff; display: grid; place-items: center; border: 3px solid var(--surface); }
.avatar__badge svg circle { opacity: 0; }
.tutor__name { font-size: 1.2rem; margin: 0 0 2px; }
.tutor__role { margin: 0; font-size: .88rem; font-weight: 700; color: var(--primary); }
.tutor__quote { margin: 0 0 14px; padding: 12px 14px; border-radius: 14px; background: var(--tint-2); color: var(--muted); font-style: italic; font-size: .95rem; border-left: 3px solid var(--primary); }
.stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stats li { background: var(--tint); border-radius: 14px; padding: 10px 6px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.stats b { display: flex; align-items: center; gap: 4px; font-size: 1.15rem; font-weight: 800; color: var(--navy); }
.stats span { font-size: .74rem; line-height: 1.25; color: var(--muted); font-weight: 600; }
.star, .stars { color: var(--star); }

/* ===== Sections ===== */
.section { padding: 56px 0; }
.section--tint { background: var(--tint-2); }
@media (min-width: 960px) { .section { padding: 88px 0; } }

/* Programs */
.programs { display: grid; gap: 12px; }
@media (min-width: 760px) { .programs { grid-template-columns: 1fr 1fr; } }
.prog { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); color: var(--text); text-decoration: none; min-height: 88px; transition: transform .15s, box-shadow .2s, border-color .2s; }
.prog:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); border-color: color-mix(in srgb, var(--primary) 35%, transparent); }
.prog__ico { width: 48px; height: 48px; border-radius: 14px; background: var(--tint); color: var(--primary); display: grid; place-items: center; font-weight: 800; font-size: 1.05rem; flex: none; }
.prog__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.prog__body b { font-size: 1.05rem; color: var(--navy); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.prog__body > span { font-size: .9rem; color: var(--muted); line-height: 1.4; }
.prog__arr { color: var(--primary); }
.prog--accent { background: linear-gradient(135deg, #0D5C46, #0A4A38); border-color: transparent; }
.prog--accent .prog__ico { background: rgba(255,255,255,.14); color: #fff; }
.prog--accent .prog__body b, .prog--accent .prog__arr { color: #fff; }
.prog--accent .prog__body > span { color: rgba(255,255,255,.88); }

/* Quiz */
.quiz { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 22px 18px; box-shadow: var(--shadow-2); }
.quiz h2 { font-size: clamp(1.35rem, 5.4vw, 1.9rem); }
.quiz .sub { margin-bottom: 20px; }
.chips { display: grid; gap: 8px; }
.chips--4 { grid-template-columns: repeat(4, 1fr); }
.chips--2 { grid-template-columns: 1fr 1fr; }
.chip { font: inherit; font-weight: 700; font-size: .92rem; min-height: 48px; padding: 8px 10px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--tint-2); color: var(--navy); cursor: pointer; transition: background .15s, color .15s, border-color .15s; line-height: 1.25; }
.chip:hover { border-color: var(--primary); }
.chip[aria-pressed="true"] { background: var(--primary-2); border-color: var(--primary-2); color: #fff; }

/* Benefits */
.cards { display: grid; gap: 12px; }
@media (min-width: 640px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .cards { grid-template-columns: repeat(4, 1fr); } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-1); }
.card p { color: var(--muted); margin: 0; font-size: .95rem; }
.ico { width: 48px; height: 48px; margin-bottom: 14px; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 26px; position: relative; }
.steps::before { content: ""; position: absolute; left: 25px; top: 26px; bottom: 26px; width: 2px; background: repeating-linear-gradient(var(--primary) 0 6px, transparent 6px 12px); opacity: .5; }
.step { display: flex; gap: 16px; align-items: flex-start; position: relative; }
.step__n { flex: none; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--primary-2); color: #fff; font-weight: 800; font-size: 1.25rem; box-shadow: 0 0 0 6px var(--tint-2); }
.step h3 { margin: 10px 0 4px; }
.step p { color: var(--muted); margin: 0; }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
  .steps::before { left: 26px; right: 26px; top: 25px; bottom: auto; width: auto; height: 2px; background: repeating-linear-gradient(90deg, var(--primary) 0 6px, transparent 6px 12px); }
  .step { flex-direction: column; }
}

/* Reviews */
.rating { display: flex; flex-direction: column; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-1); margin-bottom: 14px; }
.rating__score { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rating__score > b { font-size: 2.2rem; font-weight: 800; color: var(--navy); line-height: 1; }
.stars { display: inline-flex; gap: 2px; }
.rating__src { width: 100%; color: var(--muted); font-size: .92rem; font-weight: 600; }
@media (min-width: 700px) { .rating { flex-direction: row; align-items: center; justify-content: space-between; } .rating__src { width: auto; } }
.reviews { display: grid; gap: 12px; }
@media (min-width: 900px) { .reviews { grid-template-columns: 1fr 1fr; } }
.review { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow-1); }
.review__top { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.review__av { width: 42px; height: 42px; border-radius: 50%; background: var(--tint); color: var(--primary); font-weight: 800; display: grid; place-items: center; flex: none; }
.review figcaption { display: flex; flex-direction: column; line-height: 1.3; flex: 1; min-width: 0; }
.review figcaption b { color: var(--navy); }
.review figcaption span { font-size: .8rem; color: var(--muted); }
.bubble { margin: 0; background: var(--bubble); border-radius: 4px 16px 16px 16px; padding: 12px 14px; font-size: .95rem; line-height: 1.55; }
.more-reviews { margin-top: 12px; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; border: 1.5px dashed color-mix(in srgb, var(--primary) 45%, transparent); border-radius: var(--radius); font-weight: 800; text-decoration: none; color: var(--primary); }
.more-reviews:hover { background: var(--tint-2); }

/* Pricing */
.plans { display: grid; gap: 14px; }
@media (min-width: 760px) { .plans { grid-template-columns: 1fr 1fr; align-items: stretch; } }
.plan { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 20px; box-shadow: var(--shadow-1); }
.plan h3 { font-size: 1.2rem; margin-bottom: 4px; }
.plan__price { display: flex; align-items: baseline; gap: 8px; margin: 4px 0 14px; }
.plan__price b { font-size: 2rem; font-weight: 800; color: var(--navy); letter-spacing: -.02em; }
.plan__price span { color: var(--muted); font-weight: 600; font-size: .9rem; }
.list { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 10px; flex: 1; align-content: start; }
.list li { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; }
.list svg { color: var(--primary); margin-top: 2px; }
.plan--main { background: linear-gradient(160deg, #0D5C46, #093F30); border-color: transparent; color: #fff; box-shadow: var(--shadow-2); }
.plan--main h3, .plan--main .plan__price b { color: #fff; }
.plan--main .kicker { color: var(--on-primary-soft); }
.plan--main .plan__price span { color: rgba(255,255,255,.85); }
.plan--main .list svg { color: #7CF0B5; }
.plan--main .btn-wa { background: #25D366; color: #062514; }
.plan--main .btn-wa:hover { background: #3BE07A; }

/* ENT */
.ent { background: linear-gradient(150deg, #1B2A4A, #111C33); color: #EEF2FA; border-radius: 28px; padding: 30px 20px; position: relative; overflow: hidden; }
.ent::after { content: "∫ Σ √ π"; position: absolute; right: -10px; bottom: -28px; font-size: 6.5rem; font-weight: 800; opacity: .06; white-space: nowrap; pointer-events: none; }
.ent h2 { color: #fff; }
.ent p { color: rgba(238,242,250,.88); }
.kicker--light { color: #7CF0B5; }
.ent__list { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 10px; }
.ent__list li { padding-left: 28px; position: relative; }
.ent__list li::before { content: "→"; position: absolute; left: 0; color: #7CF0B5; font-weight: 800; }
.ent .btn-wa { background: #25D366; color: #062514; }
.ent .btn-wa:hover { background: #3BE07A; }
@media (min-width: 640px) { .ent { padding: 48px; } .ent__list { grid-template-columns: 1fr 1fr; } }

/* FAQ */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-1); }
.faq summary { list-style: none; cursor: pointer; min-height: 56px; padding: 16px 54px 16px 18px; font-weight: 700; position: relative; color: var(--navy); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 18px; top: 50%; width: 28px; height: 28px; margin-top: -14px; border-radius: 50%; background: var(--tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5' fill='none' stroke='%230D5C46' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/18px no-repeat; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(180deg); }
.faq details p { padding: 0 18px 18px; margin: 0; color: var(--muted); }

/* Final & footer */
.final { text-align: center; background: radial-gradient(90% 80% at 50% 100%, var(--tint) 0%, transparent 70%); }
.final__in { max-width: 620px; }
.final .sub { margin-bottom: 22px; }
.footer { padding: 28px 0 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: .92rem; }
.footer p { margin: 0 0 4px; }
.footer a { display: inline-block; padding: 10px 0; font-weight: 700; }

/* Sticky dock */
.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 -4px 20px rgba(0,0,0,.08); transform: translateY(110%); transition: transform .3s ease; }
.dock.is-on { transform: none; }
.dock .btn-wa { max-width: 520px; margin: 0 auto; display: flex; box-shadow: 0 4px 14px rgba(18,140,74,.35); }
@media (min-width: 960px) { body { padding-bottom: 0; } .dock { left: auto; right: 24px; bottom: 24px; padding: 0; background: none; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; } .dock .btn-wa { padding: 0 26px; } }

/* ===== Dark-mode tweaks ===== */
@media (prefers-color-scheme: dark) {
  .lang button[aria-pressed="true"], .chip[aria-pressed="true"], .btn--primary, .step__n { background: #17704F; border-color: #17704F; }
  .faq summary::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5' fill='none' stroke='%235FD3A8' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
  .brand rect { fill: #17704F; }
}

/* ===== Motion ===== */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .55s ease, transform .55s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

@media (max-width: 420px) { .btn-wa--lg { font-size: 1rem; padding: 0 16px; gap: 8px; } }

/* Отзывы: «Показать ещё» */
.js .reviews:not(.is-open) .review--more { display: none; }
.show-more { display: flex; width: 100%; margin-top: 12px; }
.show-more[hidden] { display: none; }
.chip--wide { grid-column: 1 / -1; }
