/* Публичная страница репетитора — редизайн 2026: Onest + Playfair, тетрадь в клетку, чернила, латунь */
@font-face { font-family: 'Onest'; src: url('/fonts/onest.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Playfair Display'; src: url('/fonts/playfair.woff2') format('woff2'); font-weight: 400 900; font-display: swap; }
@font-face { font-family: 'Playfair Display'; src: url('/fonts/playfair-italic.woff2') format('woff2'); font-weight: 400 900; font-style: italic; font-display: swap; }

:root {
  --bg: #f6f3ec; --bg-2: #eee9df; --surface: #fff; --line: #e4ddd0; --line-2: #d3cab8;
  --ink: #15182b; --ink-2: #474a5b; --ink-3: #6b6a72; --accent: #3446c4; --gold: #8a6634; --gold-soft: rgba(160, 122, 69, .12);
  --btn-bg: #15182b; --btn-fg: #fbf8f1; --ok: #2c7654; --ok-soft: rgba(44, 118, 84, .12); --bad: #b8433a; --ph: #e8e2d6;
  --grid: rgba(21, 24, 43, .055);
  --navy: #141832; --navy-2: #1c2144; --brass: #e2c38e;
  --display: 'Playfair Display', Georgia, serif; --font: 'Onest', ui-sans-serif, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --shadow: 0 30px 60px -30px rgba(21, 24, 43, .28);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --bg: #0f1118; --bg-2: #131622; --surface: #181b27; --line: #262a3a; --line-2: #363c52; --ink: #eeebe3; --ink-2: #bdbab3; --ink-3: #908f97;
    --accent: #a3adff; --gold: #d9b87f; --gold-soft: rgba(217, 184, 127, .13); --btn-bg: #eeebe3; --btn-fg: #14172a; --ok: #7fd1a6; --ok-soft: rgba(127, 209, 166, .14); --ph: #1a1e2c;
    --grid: rgba(255, 255, 255, .04); --shadow: 0 30px 60px -30px rgba(0, 0, 0, .75); color-scheme: dark; }
}
:root[data-theme="dark"] { --bg: #0f1118; --bg-2: #131622; --surface: #181b27; --line: #262a3a; --line-2: #363c52; --ink: #eeebe3; --ink-2: #bdbab3; --ink-3: #908f97;
  --accent: #a3adff; --gold: #d9b87f; --gold-soft: rgba(217, 184, 127, .13); --btn-bg: #eeebe3; --btn-fg: #14172a; --ok: #7fd1a6; --ok-soft: rgba(127, 209, 166, .14); --ph: #1a1e2c;
  --grid: rgba(255, 255, 255, .04); --shadow: 0 30px 60px -30px rgba(0, 0, 0, .75); color-scheme: dark; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
img { max-width: 100%; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 500; line-height: 1.05; letter-spacing: -0.015em; font-variant-numeric: lining-nums; }
h1 { font-size: clamp(42px, 5.6vw, 80px); line-height: 1.02; letter-spacing: -0.022em; }
h2 { font-size: clamp(36px, 3.9vw, 56px); }
h3 { font-size: 24px; }
h1 em, h2 em { font-style: italic; color: var(--gold); }
p { margin: 0 0 .8em; }
.muted { color: var(--ink-3); }
.wrap { max-width: 1248px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow > * { max-width: 780px; }
.row { display: flex; align-items: center; gap: 18px; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.grid2 { display: grid; grid-template-columns: 7fr 5fr; gap: 64px; align-items: center; }
svg.i { width: 18px; height: 18px; flex: none; }

/* кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 44px; padding: 0 20px; border-radius: 12px; border: 1px solid var(--line-2);
  background: transparent; color: var(--ink); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; text-decoration: none !important; transition: transform .18s, border-color .18s, box-shadow .18s; }
.btn:hover { border-color: color-mix(in srgb, var(--ink) 35%, var(--line-2)); transform: translateY(-1px); }
.btn.primary { background: var(--btn-bg); color: var(--btn-fg); border-color: var(--btn-bg); }
.btn.primary:hover { box-shadow: 0 14px 28px -14px rgba(0, 0, 0, .5); }
.btn.ghost { border-color: transparent; }
.btn.lg { height: 56px; padding: 0 28px; font-size: 16px; border-radius: 14px; }
.btn:disabled { opacity: .6; cursor: default; transform: none; }
.icon { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: transparent; color: var(--ink-2); cursor: pointer; display: grid; place-items: center; }
.icon:hover { background: var(--bg-2); }
.icon svg { width: 18px; height: 18px; }

/* шапка */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 84%, transparent); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.top .row { height: 80px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none !important; }
.brand img { border-radius: 11px; }
.brand .wm { display: block; font-family: var(--display); font-size: 21px; font-weight: 500; line-height: 1.1; white-space: nowrap; }
.brand .cap { display: block; font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); margin-top: 3px; }
.menu { display: flex; gap: 32px; margin-left: auto; }
.menu a { color: var(--ink-2); font-size: 15px; font-weight: 500; }
.menu a:hover { color: var(--ink); }
.acts { display: flex; align-items: center; gap: 8px; margin-left: 16px; }

/* первый экран */
.hero { position: relative; padding: 96px 0 112px; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(70% 80% at 70% 30%, #000 30%, transparent 80%); mask-image: radial-gradient(70% 80% at 70% 30%, #000 30%, transparent 80%); }
.hero .wrap { position: relative; }
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 10px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--bg);
  font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.pill::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.hero h1 { margin: 28px 0 0; }
.lead { font-size: 19px; color: var(--ink-2); max-width: 580px; }
.hero .lead { margin-top: 28px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 40px; }
.facts { display: flex; margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); }
.facts > div { flex: 1; min-width: 0; padding: 0 24px; border-left: 1px solid var(--line); }
.facts > div:first-child { padding-left: 0; border-left: 0; }
.facts b { display: block; font-family: var(--display); font-size: 30px; font-weight: 500; line-height: 1.2; font-variant-numeric: lining-nums; }
.facts span { font-size: 14px; color: var(--ink-3); line-height: 1.4; }

/* коллаж кабинета */
.collage { position: relative; height: 600px; }
.collage .card-main { position: absolute; top: 56px; left: 0; right: 0; padding: 28px; border-radius: 28px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.collage .hd { display: flex; align-items: center; justify-content: space-between; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.tag { padding: 4px 12px; border-radius: 999px; background: var(--gold-soft); color: var(--gold); font-size: 12px; font-weight: 600; }
.score { display: flex; align-items: baseline; gap: 12px; margin-top: 10px; }
.score b { font-family: var(--display); font-size: 56px; font-weight: 500; line-height: 1; }
.score span { font-size: 14px; color: var(--ink-3); }
.chart { display: block; width: 100%; height: auto; margin-top: 18px; }
.chart .gl { stroke: var(--line); }
.chart .ar { fill: var(--gold-soft); }
.chart .ln { stroke: var(--gold); stroke-width: 2.5; fill: none; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 700; animation: draw 2.4s cubic-bezier(.2, .7, .25, 1) .2s both; }
.chart .dt { fill: var(--gold); }
@keyframes draw { from { stroke-dashoffset: 700; } to { stroke-dashoffset: 0; } }
.months { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-3); margin-top: 6px; }
.float-next { position: absolute; top: 0; right: -24px; width: 236px; padding: 16px 18px; display: flex; gap: 14px; align-items: center; border-radius: 18px; background: var(--btn-bg); color: var(--btn-fg); box-shadow: var(--shadow); }
.float-next .ic { width: 42px; height: 42px; flex: none; border-radius: 12px; background: var(--brass); color: #14172a; display: grid; place-items: center; }
.float-next small { display: block; font-size: 12px; opacity: .7; line-height: 1.3; }
.float-next b { font-size: 16px; }
.float-hw { position: absolute; bottom: 24px; left: -48px; width: 320px; padding: 20px 22px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.float-hw .t { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; }
.okdot { width: 24px; height: 24px; flex: none; border-radius: 50%; background: var(--ok-soft); color: var(--ok); display: grid; place-items: center; }
.okdot svg { width: 14px; height: 14px; }
.float-hw .s { font-size: 13px; color: var(--ink-3); margin-top: 6px; }
.bar { height: 6px; border-radius: 99px; background: var(--line); margin-top: 12px; overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 99px; background: var(--ok); }
.collage .note { position: absolute; bottom: -8px; right: 0; font-size: 12px; color: var(--ink-3); }

/* секции */
.sec { padding: 112px 0; }
.sec.alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.sec-head { display: grid; grid-template-columns: 7fr 4fr; gap: 24px 96px; align-items: end; margin-bottom: 72px; }
.sec-head p { margin: 0; font-size: 17px; color: var(--ink-2); }

/* обо мне */
.about { display: grid; grid-template-columns: 5fr 6fr; gap: 96px; align-items: center; }
.about.solo { grid-template-columns: 1fr; max-width: 820px; }
.photo-card { margin: 0; position: relative; border-radius: 28px; overflow: hidden; box-shadow: var(--shadow); }
.photo-card img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.photo-card figcaption { position: absolute; left: 20px; right: 20px; bottom: 20px; padding: 18px 22px; border-radius: 18px; background: rgba(15, 17, 28, .78); backdrop-filter: blur(10px); color: #fbf8f1; }
.photo-card figcaption b { display: block; font-family: var(--display); font-weight: 500; font-size: 22px; }
.photo-card figcaption span { font-size: 13px; color: rgba(251, 248, 241, .72); }
.art-card { width: 100%; aspect-ratio: 52 / 46; border-radius: 28px; background: var(--navy); box-shadow: var(--shadow); padding: 12px; position: relative; overflow: hidden; }
.art-card::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px); background-size: 28px 28px; }
.art { position: relative; width: 100%; height: 100%; }
.art .ln-soft { stroke: rgba(255, 255, 255, .08); } .art .ln-axis { stroke: rgba(255, 255, 255, .18); } .art .ln-tan { stroke: rgba(255, 255, 255, .35); stroke-width: 1.2; }
.art .fx { fill: var(--brass); font-family: var(--display); font-style: italic; font-size: 26px; }
.art .draw { stroke-dasharray: 1400; animation: draw2 2.6s cubic-bezier(.2, .7, .25, 1) .2s both; }
@keyframes draw2 { from { stroke-dashoffset: 1400; } to { stroke-dashoffset: 0; } }
.quote { margin: 32px 0 0; font-family: var(--display); font-style: italic; font-size: 30px; line-height: 1.3; }
.prose { font-size: 18px; line-height: 1.65; color: var(--ink-2); margin-top: 28px; }
.prose p { margin-bottom: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.chips span { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 14px; font-weight: 500; color: var(--ink-2); }

/* шаги */
.steps { list-style: none; padding: 0; margin: 0; position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.steps::before { content: ''; position: absolute; top: 32px; left: 32px; right: 32px; height: 1px; background: var(--line-2); }
.steps li { position: relative; padding-right: 12px; }
.steps .n { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); color: var(--gold); border: 1px solid var(--line-2);
  font-family: var(--display); font-style: italic; font-size: 26px; }
.steps li:last-child .n { background: var(--brass); color: #14172a; border-color: var(--brass); }
.steps h3 { margin-top: 28px; font-size: 26px; line-height: 1.15; }
.steps p { margin: 12px 0 0; font-size: 16px; color: var(--ink-2); }

/* личный кабинет */
.platform { position: relative; overflow: hidden; display: grid; grid-template-columns: 5fr 6fr; gap: 72px; align-items: center; padding: 72px 64px; border-radius: 36px; background: var(--navy); color: #f4efe4; }
.platform::before { content: ''; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px); background-size: 28px 28px; }
.platform > * { position: relative; }
.platform .eyebrow { color: var(--brass); }
.platform h2 { color: #fff; }
.platform .muted { color: rgba(244, 239, 228, .72); font-size: 17px; margin: 20px 0 0; }
.checks { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 16px; }
.checks li { position: relative; padding-left: 38px; font-size: 16px; line-height: 1.5; }
.checks li::before { content: ''; position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--brass); }
.checks li::after { content: ''; position: absolute; left: 9px; top: 5px; width: 5px; height: 10px; border: solid #14172a; border-width: 0 2.4px 2.4px 0; transform: rotate(45deg); }
.btn.on-navy { margin-top: 40px; height: 52px; color: #fff; border-color: rgba(244, 239, 228, .28); }
.btn.on-navy:hover { border-color: rgba(244, 239, 228, .6); }
.mock { display: flex; border-radius: 22px; background: var(--navy-2); border: 1px solid rgba(255, 255, 255, .09); overflow: hidden; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6); }
.mock-side { width: 64px; flex: none; padding: 20px 0; display: flex; flex-direction: column; align-items: center; gap: 14px; border-right: 1px solid rgba(255, 255, 255, .07); color: rgba(255, 255, 255, .5); }
.mock-side span { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; }
.mock-side span:first-child { background: var(--brass); color: #14172a; }
.mock-side span:nth-child(2) { background: rgba(255, 255, 255, .08); color: #fff; }
.mock-main { flex: 1; min-width: 0; padding: 24px; display: grid; gap: 14px; }
.mock-hd { display: flex; justify-content: space-between; align-items: baseline; }
.mock-hd b { font-family: var(--display); font-weight: 500; font-size: 24px; color: #fff; }
.mock-hd small, .mock small { font-size: 12px; color: rgba(255, 255, 255, .5); }
.tile { padding: 16px; border-radius: 14px; background: rgba(255, 255, 255, .06); display: grid; gap: 8px; min-width: 0; }
.tile .k { font-size: 13px; color: rgba(255, 255, 255, .6); }
.tile .v { font-size: 15px; font-weight: 600; color: #fff; }
.tile.lesson { display: flex; align-items: center; gap: 14px; }
.tile.lesson .when { width: 48px; flex: none; text-align: center; line-height: 1.1; }
.tile.lesson .when small { display: block; font-size: 11px; text-transform: uppercase; color: var(--brass); }
.tile.lesson .when b { font-family: var(--display); font-weight: 500; font-size: 22px; color: #fff; }
.tile.lesson .what { flex: 1; min-width: 0; display: grid; line-height: 1.35; }
.tile.lesson .go { padding: 8px 14px; border-radius: 10px; background: var(--brass); color: #14172a; font-size: 13px; font-weight: 700; }
.tiles2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tile .bar { background: rgba(255, 255, 255, .1); margin-top: 0; }
.tile .bar i { background: #7fd1a6; }
.days { display: flex; gap: 6px; flex-wrap: wrap; }
.days span { padding: 2px 8px; border-radius: 6px; background: rgba(226, 195, 142, .16); color: var(--brass); font-size: 12px; }
.bars { display: flex; align-items: flex-end; gap: 10px; height: 96px; }
.bars i { flex: 1; border-radius: 6px 6px 2px 2px; background: rgba(226, 195, 142, .32); }
.bars i:last-child { background: var(--brass); }

/* результаты, отзывы, цены */
.results { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; margin-bottom: 28px; }
.res { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 26px; }
.res b { display: block; font-family: var(--display); font-size: 34px; font-weight: 500; line-height: 1.15; }
.res span { color: var(--ink-3); font-size: 14px; }
.res p { margin: 12px 0 0; font-size: 15px; color: var(--ink-2); }
.reviews { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.rev { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 28px; }
.rev blockquote { margin: 0 0 18px; font-family: var(--display); font-style: italic; font-size: 20px; line-height: 1.45; }
.rev figcaption { font-weight: 600; font-size: 14px; }
.rev figcaption span { display: block; font-weight: 400; color: var(--ink-3); }
.prices { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.price { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 28px; }
.price .dur { color: var(--ink-3); font-size: 14px; margin-top: 4px; }
.price .sum { font-family: var(--display); font-size: 38px; margin: 16px 0 8px; font-variant-numeric: lining-nums; }
.price p { font-size: 15px; color: var(--ink-2); margin: 0; }

/* вопросы */
.faq-grid { display: grid; grid-template-columns: 4fr 7fr; gap: 96px; align-items: start; }
.faq-grid .side p { margin-top: 20px; color: var(--ink-2); }
.faq { border-top: 1px solid var(--line-2); }
.faq details { border-bottom: 1px solid var(--line-2); }
.faq summary { cursor: pointer; padding: 28px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 24px; font-family: var(--display); font-size: 26px; line-height: 1.25; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; width: 40px; height: 40px; flex: none; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--gold); font-family: var(--font); font-size: 22px; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { color: var(--ink-2); font-size: 17px; padding: 0 64px 24px 0; margin-top: -8px; }

/* заявка */
.signup { padding-top: 0; }
.signup-card { display: grid; grid-template-columns: 5fr 6fr; gap: 72px; padding: 64px; border-radius: 36px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.signup-card .lead { font-size: 17px; margin-top: 20px; }
.contacts { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 12px; }
.contacts a { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 16px; border: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: border-color .18s; }
.contacts a:hover { border-color: var(--line-2); }
.contacts .ic { width: 40px; height: 40px; flex: none; border-radius: 12px; background: var(--gold-soft); color: var(--gold); display: grid; place-items: center; }
.contacts small { display: block; font-size: 13px; color: var(--ink-3); line-height: 1.3; }
.contacts b { font-size: 16px; font-weight: 600; word-break: break-word; }
.form { display: grid; gap: 18px; align-content: start; }
.form label { display: grid; gap: 8px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form input:not([type=checkbox]), .form select, .form textarea { font: inherit; font-size: 16px; font-weight: 400; color: var(--ink); background: var(--bg); border: 1px solid var(--line-2); border-radius: 14px; padding: 0 16px; width: 100%; }
.form input:not([type=checkbox]), .form select { height: 52px; }
.form textarea { padding: 14px 16px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent); }
.form .check { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; font-size: 14px; color: var(--ink-3); }
.form .check input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--ink); flex: none; }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form button[type=submit] { margin-top: 6px; }
.form-msg { margin: 0; font-size: 14px; min-height: 1em; }
.form-msg.ok { color: var(--ok); } .form-msg.err { color: var(--bad); }
.form.done { text-align: center; padding: 48px 30px; place-content: center; }
.form.done h3 { font-size: 30px; margin-bottom: 10px; }

.foot { padding: 32px 0 40px; border-top: 1px solid var(--line); }
.foot .row { justify-content: space-between; flex-wrap: wrap; font-size: 14px; }
.foot a { color: var(--ink-2); }

/* политика */
.policy h1 { font-size: 44px; margin-bottom: 26px; }
.policy h2 { font-size: 26px; margin: 32px 0 10px; }
.policy li { margin-bottom: 6px; }

@media (max-width: 1100px) {
  .float-next { right: 0; } .float-hw { left: 0; }
  .platform { padding: 56px 40px; gap: 48px; }
  .signup-card { padding: 48px 40px; gap: 48px; }
}
@media (max-width: 980px) {
  .grid2, .about, .platform, .faq-grid, .signup-card, .sec-head { grid-template-columns: 1fr; gap: 40px; }
  .sec-head { margin-bottom: 48px; }
  .menu { display: none; }
  .acts { margin-left: auto; }
  .collage { max-width: 520px; }
  .about .photo-card, .about .art-card { max-width: 440px; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 48px; }
  .steps::before { display: none; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .top .row { height: 64px; gap: 10px; }
  .brand .cap, .acts .ghost { display: none; }
  .hero { padding: 40px 0 56px; }
  .pill { font-size: 11px; }
  .lead, .hero .lead { font-size: 17px; }
  .cta { flex-direction: column; margin-top: 28px; }
  .cta .btn { width: 100%; }
  .facts { margin-top: 32px; padding-top: 20px; }
  .facts > div { padding: 0 10px; }
  .facts b { font-size: 20px; }
  .facts span { font-size: 12px; }
  .collage { height: auto; margin-top: 8px; }
  .collage .card-main { position: static; padding: 22px; }
  .collage .float-next, .collage .float-hw { display: none; }
  .collage .note { position: static; display: block; text-align: right; margin-top: 8px; }
  .score b { font-size: 44px; }
  .sec { padding: 64px 0; }
  .signup { padding-top: 0; }
  .quote { font-size: 24px; }
  .prose { font-size: 16px; }
  .steps { grid-template-columns: 1fr; row-gap: 32px; }
  .steps::before { display: block; top: 24px; bottom: 24px; left: 23px; right: auto; width: 1px; height: auto; }
  .steps li { display: grid; grid-template-columns: 48px 1fr; column-gap: 18px; padding: 0; }
  .steps .n { width: 48px; height: 48px; font-size: 21px; grid-row: span 2; }
  .steps h3 { margin-top: 8px; font-size: 22px; }
  .steps p { font-size: 15px; margin-top: 8px; }
  .platform { padding: 40px 20px 24px; border-radius: 28px; margin: 0 -4px; }
  .mock-side { display: none; }
  .mock-main { padding: 16px; }
  .tiles2 { grid-template-columns: 1fr; }
  .tile.lesson .go { display: none; }
  .faq summary { font-size: 20px; padding: 20px 0; }
  .faq details > div { font-size: 15px; padding-right: 0; }
  .signup-card { padding: 32px 18px; border-radius: 28px; margin: 0 -4px; }
  .form .two { grid-template-columns: 1fr 1fr; gap: 12px; }
  .foot .row { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }

/* ---------- Открытые материалы (справочник, геометрия) ---------- */
.free-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-top: 8px; }
.free-card { display: flex; flex-direction: column; gap: 8px; padding: 26px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); color: inherit; text-decoration: none; transition: transform .25s, box-shadow .25s, border-color .25s; }
.free-card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(0,0,0,.09); border-color: var(--brass, #c9a56b); }
.free-card h3 { margin: 0; font-size: 22px; }
.free-card p { margin: 0; opacity: .75; line-height: 1.5; }
.free-card .more { margin-top: auto; padding-top: 10px; display: inline-flex; gap: 6px; align-items: center; color: var(--brass, #b88c4f); font-weight: 600; }
.free-card .more .i { width: 16px; height: 16px; }

.mat { max-width: 820px; }
.mat h1 { margin: 6px 0 14px; }
.mat .crumbs { font-size: 14px; opacity: .7; margin-bottom: 14px; }
.mat .crumbs a { color: inherit; }
.mat .chips { margin: 0 0 16px; }
.m-body h2 { font-size: 26px; margin: 34px 0 10px; }
.m-body h3 { font-size: 20px; margin: 24px 0 8px; }
.m-body p, .m-body li { line-height: 1.7; }
.m-body ul, .m-body ol { padding-left: 24px; }
.m-body li { margin: 6px 0; }
.m-f { margin: 16px 0; overflow-x: auto; text-align: center; }
.m-fig { margin: 22px 0; text-align: center; }
.m-fig img { max-width: 100%; height: auto; background: #fff; border-radius: 14px; border: 1px solid var(--line, rgba(0,0,0,.1)); padding: 10px; }
.m-fig figcaption { margin-top: 8px; font-size: 14px; opacity: .7; }
.m-note { margin: 18px 0; padding: 14px 18px; border-radius: 14px; background: rgba(201,165,107,.14); border-left: 4px solid var(--brass, #c9a56b); }
.m-table { overflow-x: auto; margin: 16px 0; }
.m-table table { border-collapse: collapse; min-width: 100%; }
.m-table th, .m-table td { border: 1px solid var(--line, rgba(0,0,0,.12)); padding: 8px 12px; text-align: left; }
.m-list { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 8px; }
.m-list a { display: flex; flex-direction: column; gap: 2px; padding: 14px 18px; border-radius: 14px; border: 1px solid var(--line, rgba(0,0,0,.1)); color: inherit; text-decoration: none; transition: border-color .2s, transform .2s; }
.m-list a:hover { border-color: var(--brass, #c9a56b); transform: translateX(3px); }
.m-list span { font-size: 14px; opacity: .7; }
.m-cta { margin: 40px 0 24px; padding: 26px; border-radius: 20px; background: var(--navy); color: #f5f3ee; display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.m-cta p { margin: 6px 0 0; opacity: .75; max-width: 460px; line-height: 1.5; }
.m-cta-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.m-pager { display: flex; justify-content: space-between; gap: 16px; }
.m-pager a { display: flex; flex-direction: column; gap: 2px; max-width: 48%; color: inherit; text-decoration: none; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--line, rgba(0,0,0,.1)); }
.m-pager a.r { text-align: right; margin-left: auto; }
.m-pager small { opacity: .6; }
.m-pager a:hover { border-color: var(--brass, #c9a56b); }
.mat h1 { font-size: clamp(30px, 4.2vw, 44px); line-height: 1.15; }
.m-cta .btn { background: transparent; color: #f5f3ee; border-color: rgba(245,243,238,.35); }
.m-cta .btn.primary { background: var(--brass); color: #141832; border-color: var(--brass); }
