/* Страница класса (templates/public/grade.html, grades/*.html). Все классы — с префиксом gr-.
   Цвета предмета приходят из шаблона: --s1, --s2 (подложки, точки, номера) и --s-ink (текст).
   Блоки — как выбрано в _lab/24-pages/grade: шапка v1, темы v3, «С чего начать» v4,
   вопросы v3, соседние классы v3, призыв v3. */

.gr {
  --s1: #4d97ff; --s2: #33d0ec; --s-ink: #1f6fe0;
  --s-soft: color-mix(in srgb, var(--s1) 13%, #fff);
  --sgrad: linear-gradient(135deg, var(--s1), var(--s2));
  --ggrad: linear-gradient(95deg, #1f7bff 0%, #17bfe0 55%, #2ee59d 100%);
  --gr-sh: 0 30px 60px -30px rgba(25, 30, 80, .28), 0 2px 6px rgba(25, 30, 80, .05);
  --gr-sh-sm: 0 14px 30px -18px rgba(25, 30, 80, .30), 0 1px 3px rgba(25, 30, 80, .05);
  --gr-pad: clamp(16px, 4vw, 48px);
  --gr-gap: 112px;
  display: block;
  font-size: 16px; line-height: 1.5;
}
.gr :is(h1, h2, h3, p, ul, ol) { margin: 0; }
.gr :is(ul, ol) { padding: 0; list-style: none; }
.gr li { margin: 0; }
.gr img { display: block; max-width: 100%; }
.gr h2 { font-size: 44px; line-height: 1.08; font-weight: 800; letter-spacing: -.03em; }
.gr :is(h1, h2) em:not(.wip) { font-style: normal; color: transparent; background: var(--ggrad); -webkit-background-clip: text; background-clip: text; }
.gr > section { margin-top: var(--gr-gap); }
.gr-kick { display: block; font-size: 13px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; color: var(--s-ink); }
.gr-lead { font-size: 17.5px; line-height: 1.55; color: var(--muted); }
.gr-lead b { color: var(--ink); font-weight: 650; }
.gr .wip { margin-left: 10px; font-size: 12px; letter-spacing: 0; -webkit-text-fill-color: currentColor; }
h1 .wip, h2 .wip { vertical-align: .4em; }

/* Плитка обложки (16:9). Без обложки — иконка предмета на мягком цвете предмета. */
.gr-cv { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 16px; background: var(--s-soft); }
.gr-cv img { width: 100%; height: 100%; object-fit: cover; }
.gr-cv.is-none { display: grid; place-items: center; background: radial-gradient(circle at 30% 20%, #fff 0, transparent 60%), linear-gradient(135deg, var(--s-soft), #fff); box-shadow: inset 0 0 0 1.5px var(--border); }
.gr-cv.is-none img { width: 38%; height: auto; max-height: 70%; object-fit: contain; filter: drop-shadow(0 10px 14px rgba(40, 40, 120, .18)); }

/* ── 1. Шапка ──────────────────────────────────────────── */
.gr-hero { margin-top: 26px; }
.gr-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 580px); gap: 64px; align-items: center; }
.gr-hero-text { display: grid; gap: 22px; align-content: start; }
.gr-eyebrow { display: inline-flex; align-items: center; gap: 8px; width: max-content; max-width: 100%; padding: 6px 14px 6px 6px; border-radius: 999px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--border); }
.gr-eyebrow img { width: 26px; height: 26px; object-fit: contain; }
.gr-eyebrow .wip { margin-left: 4px; }
.gr-hero h1 { margin: 0; font-size: 60px; line-height: 1.02; font-weight: 850; letter-spacing: -.035em; }
.gr-hero h1 em { white-space: nowrap; }
.gr-hero .gr-lead { max-width: 560px; }
.gr-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.gr-facts { display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 15px; color: var(--ink-2); }
.gr-facts li { display: flex; align-items: center; gap: 9px; }
.gr-facts li::before { content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%; background: #22c58f url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.3l2.3 2.3 4.7-5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 11px no-repeat; }
.gr-facts b { font-weight: 700; color: var(--ink); }

.gr-art { position: relative; }
.gr-mosaic { position: relative; height: 560px; margin-right: calc(-1 * var(--gr-pad)); overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14%, #000 100%), linear-gradient(180deg, transparent 0, #000 12%, #000 86%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0, #000 14%, #000 100%), linear-gradient(180deg, transparent 0, #000 12%, #000 86%, transparent 100%);
  mask-composite: intersect; }
.gr-tilt { position: absolute; left: 10px; top: -40px; display: grid; grid-template-columns: repeat(3, 250px); gap: 18px; transform: rotate(-9deg) skewX(4deg); }
.gr-tilt .gr-cv { border-radius: 20px; box-shadow: 0 24px 40px -22px rgba(25, 30, 80, .45); }
.gr-tilt > :nth-child(3n+2) { transform: translateY(46px); }
/* Без обложек глав (1–4 класс, биология): картинка класса или кадры предмета. */
.gr-solo { position: relative; display: grid; place-items: center; height: 520px; border-radius: 34px; background: radial-gradient(60% 60% at 50% 45%, #fff 0, transparent 70%), radial-gradient(120% 120% at 100% 0%, color-mix(in srgb, var(--s2) 24%, transparent), transparent 60%), radial-gradient(90% 120% at 0% 100%, color-mix(in srgb, var(--s1) 22%, transparent), transparent 60%), var(--surface); box-shadow: var(--gr-sh); overflow: hidden; }
.gr-solo > img { width: min(420px, 80%); height: auto; }
.gr-solo.is-fan .gr-cv { position: absolute; width: 62%; border-radius: 20px; box-shadow: 0 24px 40px -22px rgba(25, 30, 80, .45); }
.gr-solo.is-fan .gr-cv:nth-child(1) { left: 6%; top: 10%; transform: rotate(-7deg); }
.gr-solo.is-fan .gr-cv:nth-child(2) { right: 4%; top: 30%; transform: rotate(6deg); }
.gr-solo.is-fan .gr-cv:nth-child(3) { left: 14%; top: 50%; z-index: 1; }
.gr-badge { position: absolute; z-index: 2; left: 40px; bottom: 40px; display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 12px; border-radius: 20px; background: rgba(255, 255, 255, .82); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: var(--gr-sh); }
.gr-badge img { width: 46px; height: 46px; object-fit: contain; }
.gr-badge b { display: block; font-size: 22px; line-height: 1.2; font-weight: 800; letter-spacing: -.02em; }
.gr-badge small { font-size: 13px; color: var(--muted); }

.gr-main { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 40px; align-items: center; margin-top: 56px; padding: 28px 32px; border-radius: 26px; background: rgba(255, 255, 255, .7); box-shadow: inset 0 0 0 1.5px var(--border); }
.gr-main h2 { font-size: 22px; letter-spacing: -.02em; }
.gr-main h2 + p { margin-top: 8px; font-size: 15px; line-height: 1.55; color: var(--muted); }
.gr-main-r > p { margin-bottom: 16px; font-size: 16px; line-height: 1.6; color: var(--muted); }
.gr-main-r > p a { color: var(--s-ink); font-weight: 600; }
.gr-key { display: flex; flex-wrap: wrap; gap: 8px; }
.gr-key a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 5px 16px 5px 5px; border-radius: 999px; font-size: 14.5px; font-weight: 650; line-height: 1.2; text-decoration: none; color: var(--ink); background: var(--surface); box-shadow: var(--gr-sh-sm); }
.gr-key .gr-cv { flex: none; width: 54px; border-radius: 999px; }
.gr-key a:hover { color: var(--s-ink); }

/* ── 2. Темы года по разделам ──────────────────────────── */
.gr-hd { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 470px); gap: 40px; align-items: end; margin-bottom: 44px; }
.gr-hd > div { display: grid; gap: 16px; }
.gr-secs { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 40px; align-items: start; }
.gr-nav { position: sticky; top: 92px; display: grid; gap: 4px; padding: 18px; border-radius: 24px; background: var(--surface); box-shadow: var(--gr-sh-sm); }
.gr-nav a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 14px; border-radius: 14px; font-size: 15px; font-weight: 650; line-height: 1.3; text-decoration: none; color: var(--ink-2); }
.gr-nav a.on, .gr-nav a:hover { color: var(--ink); background: var(--s-soft); }
.gr-nav a span { font-size: 13px; font-weight: 700; color: var(--muted); }
.gr-tot { margin-top: 10px !important; padding: 16px 14px 4px; border-top: 1.5px solid var(--border); font-size: 14px; line-height: 1.5; color: var(--muted); }
.gr-tot b { color: var(--ink); }
.gr-sec { scroll-margin-top: 92px; }
.gr-sec + .gr-sec { margin-top: 36px; }
.gr-sec h3 { display: flex; align-items: baseline; gap: 12px; margin: 0 0 14px 4px; font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.gr-sec h3 span { font-size: 14px; font-weight: 600; letter-spacing: 0; color: var(--muted); }
.gr-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.gr-list li > a, .gr-soon { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; align-items: center; height: 100%; padding: 8px 16px 8px 8px; border-radius: 20px; text-decoration: none; color: var(--ink); background: var(--surface); box-shadow: var(--gr-sh-sm); transition: box-shadow .2s, transform .2s; }
.gr-list li > a:hover { transform: translateY(-2px); box-shadow: var(--gr-sh); }
.gr-list .gr-cv { border-radius: 14px; }
.gr-li-t { display: block; min-width: 0; }
.gr-li-t b { font-size: 16px; font-weight: 750; line-height: 1.25; }
.gr-li-t small { display: block; margin-top: 3px; font-size: 13px; line-height: 1.35; color: var(--muted); }
.gr-li-t .wip { margin-left: 6px; vertical-align: 1px; font-size: 11px; padding: 1px 8px; }
.gr-list li > a:hover b { color: var(--s-ink); }
.gr-soon { color: var(--muted); background: var(--surface-2); box-shadow: none; }
.gr-soon .gr-cv { opacity: .5; }
.gr-soon b { color: var(--ink-2); }
.gr-soon em { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; font-size: 11px; font-style: normal; font-weight: 600; color: var(--muted); background: var(--surface); }
.gr-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 7px; font-size: 12px; color: var(--muted); }
.gr-meta span { display: inline-flex; align-items: center; gap: 5px; }
.gr-meta svg { width: 14px; height: 14px; fill: none; stroke: #a3a6bd; stroke-width: 1.5; stroke-linejoin: round; }

/* ── 3. С чего начать — тёмная панель ──────────────────── */
.gr-start { display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 1fr); gap: 56px; padding: 56px; border-radius: 34px; color: #fff;
  background: radial-gradient(80% 90% at 100% 0%, color-mix(in srgb, var(--s1) 40%, transparent), transparent 60%), radial-gradient(70% 80% at 0% 100%, color-mix(in srgb, var(--s2) 26%, transparent), transparent 60%), #15172e;
  box-shadow: var(--gr-sh); }
.gr-start.is-solo { grid-template-columns: minmax(0, 1fr); }
.gr-start .gr-kick { color: color-mix(in srgb, var(--s2) 70%, #fff); }
.gr-start h2 { margin-top: 12px; color: #fff; }
.gr-tips { display: grid; gap: 4px; margin-top: 26px !important; counter-reset: s; }
.gr-tips li { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 14px; padding: 16px 0; border-top: 1px solid rgba(255, 255, 255, .12); counter-increment: s; }
.gr-tips li::before { content: counter(s); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; font-weight: 800; background: rgba(255, 255, 255, .1); }
.gr-tips b { display: block; font-size: 17px; }
.gr-tips p { margin-top: 4px; font-size: 15px; line-height: 1.5; color: rgba(255, 255, 255, .7); }
.gr-tips a { color: #fff; font-weight: 650; text-underline-offset: 3px; }
.gr-cross { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 30px; }
.gr-cross h3 { font-size: 20px; letter-spacing: -.01em; color: #fff; }
.gr-cross a { display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 20px 0 8px; border-radius: 999px; font-size: 15px; font-weight: 650; text-decoration: none; color: #fff; background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .15); }
.gr-cross a i { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; font-style: normal; font-weight: 800; color: #fff; background: var(--sgrad); }
.gr-cross a:hover { background: rgba(255, 255, 255, .16); }
.gr-map { display: grid; gap: 18px; align-content: center; }
.gr-map h3 { font-size: 13px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
.gr-chain { display: grid; grid-template-columns: minmax(0, 1fr) 36px minmax(0, 1fr) 36px minmax(0, 1fr); align-items: start; gap: 6px; padding: 18px; border-radius: 24px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.gr-chain.n2 { grid-template-columns: minmax(0, 1fr) 36px minmax(0, 1fr); }
.gr-chain a { display: grid; gap: 8px; text-decoration: none; color: #fff; }
.gr-chain .gr-cv { border-radius: 14px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .12); }
.gr-chain .gr-cv.is-none { background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .15); }
.gr-chain b { display: block; font-size: 14px; line-height: 1.3; }
.gr-chain small { display: block; margin-top: 2px; font-size: 12px; color: rgba(255, 255, 255, .55); }
.gr-chain a:hover b { text-decoration: underline; text-underline-offset: 3px; }
.gr-arr { width: 30px; height: 30px; margin-top: 36px; fill: none; stroke: color-mix(in srgb, var(--s2) 75%, #fff); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.gr-note { font-size: 14px; line-height: 1.5; color: rgba(255, 255, 255, .6); }

/* Свои заметки ручной страницы под «С чего начать» (block extra). */
.gr-notes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 22px; margin-top: 22px; }
.gr-notes > section { padding: 30px 32px; border-radius: 26px; background: var(--surface); box-shadow: var(--gr-sh-sm); }
.gr-notes h2 { font-size: 22px; letter-spacing: -.02em; }
.gr-notes h2 + * { margin-top: 14px; }
.gr-notes p { font-size: 15.5px; line-height: 1.6; color: var(--ink-2); }
.gr-notes p + ul { margin-top: 14px; }
.gr-notes .see { display: flex; flex-wrap: wrap; gap: 8px; }
.gr-notes .see a { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 16px; border-radius: 999px; font-size: 14.5px; font-weight: 650; line-height: 1.25; text-decoration: none; color: var(--ink); background: var(--surface-2); box-shadow: none; }
.gr-notes .see a::after { content: "→"; color: var(--s-ink); }
.gr-notes .see a:hover { color: var(--s-ink); background: var(--s-soft); }
.gr-notes .steps { display: grid; gap: 10px; counter-reset: s; }
.gr-notes .steps li { position: relative; margin: 0; padding: 0 0 0 42px; font-size: 15.5px; line-height: 1.5; color: var(--ink-2); counter-increment: s; }
.gr-notes .steps li::before { content: counter(s); position: absolute; left: 0; top: -3px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; font-size: 14px; font-weight: 800; color: #fff; background: var(--sgrad); }
.gr-notes :is(.rules, .formulas) { display: grid; gap: 8px; }
.gr-notes :is(.rules, .formulas) li { margin: 0; padding: 12px 16px; border-radius: 14px; font-size: 15.5px; line-height: 1.45; color: var(--ink); background: var(--surface-2); box-shadow: inset 4px 0 0 var(--s1); }

/* ── 4. Вопросы — переписка ───────────────────────────── */
.gr-faq { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 56px; align-items: start; }
.gr-faq-l { display: grid; gap: 18px; }
.gr-chat { display: grid; gap: 14px; padding: 30px; border-radius: 30px; background: linear-gradient(180deg, #fff, #fbfbfe); box-shadow: var(--gr-sh); }
/* Вопрос — <h3>, ответ — <p> (их пишет шаблон страницы); аватары — псевдоэлементы. */
.gr-chat > h3, .gr-chat > p { position: relative; max-width: calc(84% - 52px); padding: 15px 20px; border-radius: 22px; font-size: 16px; line-height: 1.55; }
.gr-chat > h3 { justify-self: end; margin-right: 52px; border-bottom-right-radius: 6px; font-weight: 650; letter-spacing: 0; color: #fff; background: var(--sgrad); }
.gr-chat > p { justify-self: start; margin-left: 52px; border-bottom-left-radius: 6px; color: var(--ink-2); background: var(--surface-2); }
.gr-chat > h3::after, .gr-chat > p::after { position: absolute; bottom: 0; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; font-size: 14px; font-weight: 800; line-height: 1; }
.gr-chat > h3::after { content: "Р"; right: -52px; color: var(--ink-2); background: var(--surface-2); }
.gr-chat > p::after { content: "O"; left: -52px; color: #fff; background: var(--ggrad); }
.gr-chat > p::before { content: "OmniStudy"; display: block; margin-bottom: 4px; font-size: 12px; font-weight: 750; color: var(--muted); }
.gr-chat > p a { color: var(--s-ink); font-weight: 650; }
.gr-chat-ft { display: flex; align-items: center; gap: 10px; margin-top: 8px; padding: 8px 8px 8px 20px; border-radius: 999px; background: var(--surface-2); font-size: 15px; color: var(--muted); }
.gr-chat-ft span { flex: 1; }

/* ── 5. Было — сейчас — будет ──────────────────────────── */
.gr-years-hd { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.gr-years-hd h2 { font-size: 32px; }
.gr-years-hd p { font-size: 15px; color: var(--muted); }
.gr-path { position: relative; display: grid; grid-template-columns: 1fr 1.15fr 1fr; align-items: stretch; }
.gr-path.no-prev { grid-template-columns: 1.15fr 1fr; }
.gr-path.no-next { grid-template-columns: 1fr 1.15fr; }
.gr-path.no-prev.no-next { grid-template-columns: minmax(0, 560px); justify-content: center; }
.gr-path::before { content: ""; position: absolute; left: 8%; right: 8%; top: 37px; height: 3px; background: linear-gradient(90deg, #d9dbe8, var(--s1), #d9dbe8); }
.gr-path > div { position: relative; display: grid; grid-template-rows: auto auto 1fr; align-content: start; justify-items: center; gap: 14px; padding: 0 18px; text-align: center; }
.gr-dot { display: grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; font-size: 28px; font-weight: 850; color: var(--ink-2); background: var(--surface); box-shadow: 0 0 0 6px var(--page), var(--gr-sh-sm); }
.gr-now .gr-dot { color: #fff; background: var(--sgrad); }
.gr-lbl { font-size: 13px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.gr-box { display: block; width: 100%; padding: 22px; border-radius: 24px; text-align: left; text-decoration: none; color: var(--ink); background: var(--surface); box-shadow: var(--gr-sh-sm); }
.gr-now .gr-box { box-shadow: var(--gr-sh), inset 0 0 0 2px var(--s1); }
a.gr-box:hover { color: var(--ink); box-shadow: var(--gr-sh); }
.gr-box h3 { font-size: 20px; font-weight: 800; letter-spacing: -.01em; }
.gr-c { margin-top: 2px !important; font-size: 14px; color: var(--muted); }
.gr-box ul { display: grid; gap: 8px; margin-top: 14px; }
.gr-box li { display: flex; align-items: center; gap: 10px; font-size: 14.5px; line-height: 1.35; color: var(--ink-2); }
.gr-box li .gr-cv { width: 54px; flex: none; border-radius: 8px; }
.gr-box li a { color: inherit; text-decoration: none; }
.gr-box li a:hover { color: var(--s-ink); }
.gr-box li i { flex: none; width: 6px; height: 6px; border-radius: 50%; background: #c9cbe0; }
.gr-go { display: inline-flex; margin-top: 16px; font-size: 15px; font-weight: 700; color: var(--s-ink); }

/* ── 6. Призыв — плашка цвета предмета ─────────────────── */
.gr-cta { position: relative; display: grid; grid-template-columns: 300px minmax(0, 1fr) auto; gap: 48px; align-items: center; padding: 44px 56px 44px 44px; border-radius: 34px; overflow: hidden;
  background: radial-gradient(70% 140% at 0% 50%, color-mix(in srgb, var(--s1) 26%, transparent), transparent 70%), radial-gradient(60% 120% at 100% 0%, color-mix(in srgb, var(--s2) 22%, transparent), transparent 70%), #fff;
  box-shadow: var(--gr-sh); }
.gr-deck { position: relative; height: 220px; }
.gr-deck .gr-cv { position: absolute; width: 230px; border-radius: 18px; box-shadow: 0 20px 34px -18px rgba(25, 30, 80, .5); }
.gr-deck .gr-cv:nth-child(1) { left: 40px; top: 6px; transform: rotate(8deg); }
.gr-deck .gr-cv:nth-child(2) { left: 20px; top: 30px; transform: rotate(-4deg); }
.gr-deck .gr-cv:nth-child(3) { left: 0; top: 64px; }
.gr-deck.is-set .gr-cv { left: 0; top: 20px; transform: rotate(-4deg); background: #fff; }
.gr-deck.is-set .gr-set { width: 56%; max-height: 100%; }
.gr-deck-ic { position: absolute; z-index: 3; right: -6px; bottom: -10px; width: 96px; height: auto; filter: drop-shadow(0 14px 18px rgba(40, 40, 120, .3)); }
.gr-cta-t { display: grid; gap: 14px; }
.gr-num { font-size: 15px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: var(--s-ink); }
.gr-cta-t h2 { font-size: 40px; }
.gr-cta-t p { font-size: 16.5px; color: var(--muted); }
.gr-cta-a { display: grid; justify-items: center; gap: 12px; }
.gr-cta-a small { font-size: 13.5px; line-height: 1.35; color: var(--muted); text-align: center; }

/* ── Планшет ───────────────────────────────────────────── */
@media (max-width: 1100px) {
  .gr { --gr-gap: 88px; }
  .gr-hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 36px; }
  .gr-hero h1 { font-size: 48px; }
  .gr-secs { grid-template-columns: 240px minmax(0, 1fr); gap: 28px; }
  .gr-list { grid-template-columns: minmax(0, 1fr); }
  .gr-start { grid-template-columns: minmax(0, 1fr); gap: 36px; padding: 44px; }
  .gr-faq { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .gr-cta { grid-template-columns: 260px minmax(0, 1fr); padding: 40px; }
  .gr-cta-a { grid-column: 2; justify-items: start; }
  .gr-cta-a small { text-align: left; }
}

/* ── Телефон ───────────────────────────────────────────── */
@media (max-width: 760px) {
  .gr { --gr-gap: 64px; }
  .gr :is(.gr-hd, .gr-start, .gr-faq-l) h2 { font-size: 31px; }
  .gr-lead { font-size: 16px; }
  .gr-hero { margin-top: 18px; }
  .gr-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .gr-hero h1 { font-size: 36px; }
  .gr-hero h1 em { white-space: normal; }
  .gr-btns .btn { flex: 1 1 auto; }
  .gr-mosaic { height: 280px; margin: 0 calc(-1 * var(--gr-pad)); }
  .gr-tilt { grid-template-columns: repeat(3, 150px); gap: 10px; left: -20px; top: -20px; }
  .gr-tilt > :nth-child(3n+2) { transform: translateY(26px); }
  .gr-solo { height: 280px; border-radius: 26px; }
  .gr-solo > img { width: 62%; }
  .gr-badge { left: 18px; bottom: 16px; }
  .gr-main { grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 32px; padding: 22px 20px; }
  .gr-key a { font-size: 14px; }

  .gr-hd { grid-template-columns: minmax(0, 1fr); gap: 14px; margin-bottom: 28px; }
  .gr-secs { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .gr-nav { position: static; display: flex; overflow-x: auto; gap: 6px; margin: 0 calc(-1 * var(--gr-pad)); padding: 4px var(--gr-pad) 8px; border-radius: 0; background: none; box-shadow: none; scrollbar-width: none; }
  .gr-nav::-webkit-scrollbar { display: none; }
  .gr-nav a { flex: none; gap: 8px; padding: 9px 14px; border-radius: 999px; font-size: 14px; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--border); }
  .gr-nav a.on { box-shadow: inset 0 0 0 1.5px var(--s1); }
  .gr-tot { display: none; }
  .gr-list li > a, .gr-soon { grid-template-columns: 96px minmax(0, 1fr); gap: 12px; padding: 7px 12px 7px 7px; }
  .gr-li-t b { font-size: 15px; }

  .gr-start { gap: 30px; margin-left: calc(-1 * var(--gr-pad)); margin-right: calc(-1 * var(--gr-pad)); padding: 40px var(--gr-pad); border-radius: 0; }
  .gr-chain, .gr-chain.n2 { grid-template-columns: minmax(0, 1fr); align-items: stretch; padding: 14px; }
  .gr-chain a { grid-template-columns: 100px minmax(0, 1fr); align-items: center; gap: 12px; }
  .gr-arr { transform: rotate(90deg); margin: -4px auto; width: 22px; height: 22px; }
  .gr-notes > section { padding: 22px 20px; }

  .gr-chat { padding: 18px 14px; border-radius: 24px; }
  .gr-chat > h3, .gr-chat > p { max-width: calc(100% - 42px); padding: 12px 15px; font-size: 15px; }
  .gr-chat > h3 { margin-right: 42px; }
  .gr-chat > p { margin-left: 42px; }
  .gr-chat > h3::after, .gr-chat > p::after { width: 32px; height: 32px; font-size: 12px; }
  .gr-chat > h3::after { right: -42px; }
  .gr-chat > p::after { left: -42px; }
  .gr-chat-ft { flex-wrap: wrap; border-radius: 20px; padding: 14px; }
  .gr-chat-ft span { flex-basis: 100%; }

  .gr-years-hd { display: grid; gap: 6px; margin-bottom: 18px; }
  .gr-years-hd h2 { font-size: 26px; }
  .gr-path, .gr-path.no-prev, .gr-path.no-next { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .gr-path::before { left: 37px; right: auto; top: 30px; bottom: 30px; width: 3px; height: auto; background: linear-gradient(180deg, #d9dbe8, var(--s1), #d9dbe8); }
  .gr-path > div { grid-template-columns: 76px minmax(0, 1fr); grid-template-rows: auto; justify-items: start; align-items: start; padding: 0; gap: 12px; }
  .gr-lbl { display: none; }
  .gr-box { padding: 16px; }
  .gr-box ul { display: none; }
  .gr-now .gr-box ul { display: grid; }

  .gr-cta { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 28px 20px; border-radius: 26px; }
  .gr-deck { height: 190px; }
  .gr-deck .gr-cv { width: 200px; }
  .gr-deck-ic { right: auto; left: 190px; }
  .gr-cta-t h2 { font-size: 30px; }
  .gr-cta-a { grid-column: auto; justify-items: stretch; }
  .gr-cta-a small { text-align: center; }
}
