/* ═════════════════════════════════════════════════════════════
   Времена английского — винный и молочный, газета и фотокарточки из Лондона
   Основной цвет: винный #590D22 · второй: Coconut Milk #F4EFE6 · акцент: голубой #A3B8E2
   ═════════════════════════════════════════════════════════════ */

:root {
  /* палитра */
  --cherry: #590d22;      /* основной винный */
  --wine: #76243b;        /* дополнительный винный */
  --wine-deep: #3f0817;   /* тени и линии на винном */
  --sky: #a3b8e2;         /* голубой акцент */
  --sky-deep: #7f97cc;    /* линии и подчёркивания (не для текста на светлом) */
  --sky-light: #e4eaf6;   /* подложки формул, наведение */
  --sky-wash: #eff2f9;
  --blue-ink: #3d5688;    /* голубой для текста на светлом фоне */
  --milk: #f4efe6;        /* фон для чтения */
  --paper: #fbf8f2;
  --newsprint: #5d5356;   /* приглушённая газетная печать */
  --ink: #251d22;         /* основной текст */
  --ink-soft: #463b41;
  --muted: #6a5f64;
  --line: rgba(37, 29, 34, .14);
  --line-strong: rgba(37, 29, 34, .32);
  --paper-shadow: 0 1px 1px rgba(37, 29, 34, .12), 0 14px 22px -12px rgba(37, 29, 34, .45);
  /* лёгкая фактура бумаги */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .3 0 0 0 0 .28 0 0 0 .11 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");

  /* шрифты */
  --serif: 'Oranienbaum', 'Playfair Display', Georgia, 'Times New Roman', serif;
  --news: 'Old Standard TT', Georgia, 'Times New Roman', serif; /* только газетная декорация */
  --sans: 'Golos Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;

  /* ритм */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 72px; --s9: 112px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --t: .2s;
  --max: 1200px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
  color: var(--ink);
  background: var(--milk);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  font-variant-numeric: lining-nums;
  font-synthesis: none; /* без поддельного курсива и полужирного */
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--cherry); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color var(--t); }
a:hover { color: var(--wine); }
:focus-visible { outline: 2px solid var(--cherry); outline-offset: 3px; }
::selection { background: var(--sky); color: var(--ink); }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.04; margin: 0 0 .5em; letter-spacing: 0; }
h1 { font-size: clamp(2.6rem, 5.4vw, 4.6rem); color: var(--cherry); }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-top: 1.6em; }
h3 { font-size: 1.3rem; font-weight: 500; }
h1 em, h2 em { font-style: normal; }
p { margin: 0 0 1em; }
strong { font-weight: 600; }
s { text-decoration-color: var(--wine); color: var(--muted); }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
section[id] { scroll-margin-top: 88px; }

/* служебные подписи — небольшие, но не капслоком */
.eyebrow { display: block; font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--wine); margin-bottom: var(--s4); }
.eyebrow .no { margin-right: 10px; padding-right: 10px; border-right: 1px solid currentColor; }
.lead { font-size: 1.2rem; line-height: 1.55; color: var(--ink-soft); max-width: 620px; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }

/* полоса на всю ширину окна при сохранении сетки контейнера */
.bleed { margin-inline: calc(50% - 50vw); padding-inline: calc(50vw - 50%); }

/* ───────── Шапка ───────── */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(245, 240, 232, .94);
  backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s5); min-height: 64px; }
.logo { font-family: var(--serif); font-size: 1.45rem; color: var(--cherry); text-decoration: none; white-space: nowrap; }
.logo em { font-style: normal; color: var(--wine); }
.logo:hover { color: var(--cherry); }
.main-nav { display: flex; gap: var(--s6); }
.main-nav a {
  position: relative; padding: 8px 0;
  color: var(--ink); text-decoration: none; font-weight: 500; font-size: 1rem;
}
.main-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1.5px; background: var(--cherry); transform: scaleX(0); transform-origin: left; transition: transform var(--t) var(--ease); }
.main-nav a:hover { color: var(--cherry); }
.main-nav a:hover::after, .main-nav a.active::after { transform: scaleX(1); }
.main-nav a.active { color: var(--cherry); }

main.container { flex: 1; padding-top: 0; padding-bottom: var(--s8); outline: none; }

/* ───────── Подвал ───────── */
.site-footer { border-top: 1px solid var(--wine-deep); background: var(--cherry); color: var(--milk); font-size: .9rem; padding: var(--s6) 0; }
.site-footer .container { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--s3) var(--s6); }
.footer-name { font-family: var(--serif); font-size: 1.25rem; }
.footer-name em { font-style: normal; color: var(--sky); }

/* ───────── Кнопки и ссылки-действия ───────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  font: inherit; font-size: 1rem; font-weight: 500; line-height: 1.2;
  color: var(--ink); background: transparent;
  border: 1px solid var(--ink); border-radius: 0;
  text-decoration: none; cursor: pointer;
  transition: background var(--t), color var(--t), border-color var(--t);
}
.btn:hover { background: var(--ink); color: var(--milk); }
.btn-primary { background: var(--cherry); border-color: var(--cherry); color: var(--milk); }
.btn-primary:hover { background: var(--wine); border-color: var(--wine); color: #fff; }
.btn-light { background: var(--milk); border-color: var(--milk); color: var(--cherry); }
.btn-light:hover { background: var(--sky); border-color: var(--sky); color: var(--cherry); }
.btn-lg { min-height: 56px; padding: 14px 30px; font-size: 1.08rem; }
.btn[disabled] { opacity: .4; cursor: not-allowed; }
.btn[disabled]:hover { background: transparent; color: var(--ink); }
.btn-primary[disabled]:hover { background: var(--cherry); color: var(--milk); }
.btn.is-on { background: var(--sky-light); border-color: var(--blue-ink); color: var(--ink); }
.btn .arrow, .link-arrow .arrow { display: inline-block; transition: transform var(--t) var(--ease); }
.btn:hover .arrow, .link-arrow:hover .arrow { transform: translateX(4px); }
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3) var(--s5); margin-top: var(--s5); }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; padding: 10px 2px; font-weight: 500; color: var(--cherry); text-decoration: underline; text-underline-offset: 6px; }

.breadcrumbs { font-size: .9rem; color: var(--muted); margin-bottom: var(--s5); }
.breadcrumbs a { color: var(--ink-soft); }

.badge { display: inline-block; padding: 3px 10px; font-size: .85rem; font-weight: 500; color: var(--ink); border: 1px solid var(--line-strong); white-space: nowrap; }

.notice { margin: var(--s5) 0; padding: var(--s4) var(--s5); background: var(--sky-wash); border-left: 2px solid var(--sky-deep); }
.notice-warn { background: #f6e9ec; border-left-color: var(--wine); }
.card { background: var(--paper); border: 1px solid var(--line); padding: var(--s5); }

/* ───────── Шапки разделов (винная полоса с бумажной заметкой) ───────── */
.masthead {
  position: relative;
  background: var(--cherry);
  color: var(--milk);
  padding-top: var(--s8); padding-bottom: var(--s7);
  margin-bottom: var(--s7);
}
.masthead::after { /* тонкая двойная линия по низу, как у газетной полосы */
  content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 3px;
  border-top: 1px solid rgba(244, 239, 230, .28); border-bottom: 1px solid rgba(244, 239, 230, .28);
  pointer-events: none;
}
.masthead-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: var(--s5) var(--s8); align-items: end; }
.masthead h1 { margin: 0; color: var(--milk); }
.masthead .lead { margin: 0; color: rgba(244, 239, 230, .9); }
.masthead .eyebrow { color: var(--sky); }
.masthead .breadcrumbs { color: rgba(244, 239, 230, .75); }
.masthead .breadcrumbs a { color: var(--milk); }
.masthead-note {
  position: absolute; right: 0; top: -40px; z-index: 1;
  max-width: 220px; padding: 14px 18px 12px;
  background: var(--paper) var(--grain); color: var(--ink);
  font-family: var(--news); font-style: italic; font-size: 1.02rem; line-height: 1.35;
  transform: rotate(2.5deg); box-shadow: var(--paper-shadow);
  pointer-events: none;
}
.masthead-note small { display: block; margin-top: 6px; font-style: normal; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.masthead-note .tape { top: -10px; left: 50%; margin-left: -34px; }
.masthead.has-note .masthead-grid { padding-right: 260px; }

/* ───────── Главная: первый экран 50/50 ───────── */
.split {
  position: relative;
  display: grid; grid-template-columns: 1fr 1fr;
  min-height: clamp(600px, calc(100vh - 64px), 820px);
  margin-inline: calc(50% - 50vw);
  overflow: hidden;
}
.split-text {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; justify-content: center;
  padding: var(--s8) clamp(48px, 7vw, 120px) var(--s8) max(24px, calc(50vw - var(--max) / 2 + 24px));
  background: var(--cherry); color: var(--milk);
}
.split-text .eyebrow { color: var(--sky); }
.split-text h1 { color: var(--milk); font-size: clamp(3.2rem, 5.6vw, 6rem); line-height: .98; margin-bottom: var(--s5); max-width: 10.5em; }
.split-text .lead { color: rgba(244, 239, 230, .9); max-width: 27em; }
.split-text .btn-row { margin-top: var(--s6); }
.split-text .link-arrow { color: var(--milk); }
.split-text .link-arrow:hover { color: var(--sky); }

.split-paper { position: relative; z-index: 1; background: var(--milk) var(--grain); }
.split-paper .clip { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }

/* газета — декоративная, приглушённая */
.gazette {
  position: absolute; inset: 28px 34px auto 40px;
  color: var(--newsprint); font-family: var(--news); opacity: .62;
  user-select: none;
}
.g-top { display: flex; justify-content: space-between; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; padding-bottom: 6px; }
.g-mast { font-weight: 700; font-size: clamp(30px, 3.6vw, 52px); line-height: 1; text-align: center; letter-spacing: .02em; padding: 8px 0 10px; border-top: 3px double var(--newsprint); border-bottom: 1px solid var(--newsprint); }
.g-dateline { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; font-size: 10.5px; font-style: italic; border-bottom: 3px double var(--newsprint); }
.g-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 16px; padding-top: 12px; }
.g-col { padding-right: 16px; border-right: 1px solid rgba(93, 83, 86, .45); }
.g-col:last-child { border-right: none; padding-right: 0; }
.g-col h4 { font-weight: 700; font-size: 15px; line-height: 1.12; margin: 0 0 6px; }
.g-col h5 { font-weight: 400; font-style: italic; font-size: 11px; margin: 0 0 6px; }
.g-col p { font-size: 10.5px; line-height: 1.42; margin: 0 0 7px; text-align: justify; hyphens: auto; }
.g-col p:first-of-type::first-letter { float: left; font-weight: 700; font-size: 30px; line-height: .9; padding: 2px 4px 0 0; }
.g-photo { margin: 2px 0 8px; }
.g-photo img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; filter: grayscale(1) contrast(1.05) brightness(1.05); }
.g-photo figcaption { font-size: 9.5px; font-style: italic; margin-top: 3px; }
.g-band { margin-top: 14px; padding: 8px 0 6px; border-top: 3px double var(--newsprint); border-bottom: 1px solid rgba(93, 83, 86, .45); text-align: center; }
.g-band h3 { font-family: var(--news); font-weight: 700; font-size: clamp(18px, 2vw, 26px); line-height: 1.1; margin: 0 0 3px; color: inherit; }
.g-band span { font-size: 11px; font-style: italic; }
.g-cols-2 { padding-top: 10px; }
.g-rule { height: 0; border-top: 1px solid rgba(93, 83, 86, .45); margin: 8px 0; }

/* фотокарточки */
.pcard {
  position: absolute; margin: 0;
  padding: 10px 10px 0; background: #fdfbf7;
  box-shadow: var(--paper-shadow);
  transform: rotate(var(--rot, 0deg));
  pointer-events: none;
}
.pcard img { display: block; width: 100%; aspect-ratio: var(--ratio, 4 / 3); object-fit: cover; }
.pcard figcaption { padding: 10px 2px 12px; font-family: var(--news); font-style: italic; font-size: 15px; color: var(--ink-soft); text-align: center; }
.tape {
  position: absolute; width: 68px; height: 22px;
  background: rgba(253, 251, 247, .55);
  border-left: 1px dashed rgba(37, 29, 34, .12); border-right: 1px dashed rgba(37, 29, 34, .12);
  box-shadow: 0 1px 2px rgba(37, 29, 34, .1);
  backdrop-filter: blur(.5px);
  transform: rotate(-6deg);
}
.split .pcard-a { --rot: -4deg; --ratio: 3 / 2; width: 45%; top: 31%; left: 7%; }
.split .pcard-a .tape { top: -11px; left: 38%; }
.split .pcard-b { --rot: 3.5deg; --ratio: 4 / 3; width: 37%; top: 52%; right: 6%; }
.split .pcard-b .tape { top: -10px; right: 18%; transform: rotate(8deg); }
.split .pcard-c { --rot: -2deg; --ratio: 3 / 2; width: 30%; bottom: 5%; left: -8%; }
.paper-note {
  position: absolute; z-index: 3;
  padding: 16px 20px 14px; max-width: 210px;
  background: var(--sky) var(--grain); color: var(--cherry);
  font-family: var(--news); font-style: italic; font-size: 19px; line-height: 1.25;
  box-shadow: var(--paper-shadow); transform: rotate(-3deg); pointer-events: none;
}
.paper-note small { display: block; margin-top: 8px; font-style: normal; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--wine-deep); }
.split .paper-note { right: 8%; top: 27%; }
.split .paper-note .tape { top: -12px; left: 30%; transform: rotate(4deg); }

/* ───────── Главная: нижние блоки ───────── */
.facts { border-bottom: 1px solid var(--line-strong); }
.facts ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); }
.facts li { padding: var(--s6) var(--s5) var(--s6) 0; display: flex; align-items: baseline; gap: 14px; }
.facts li + li { border-left: 1px solid var(--line-strong); padding-left: var(--s6); }
.facts b { font-family: var(--serif); font-weight: 400; font-size: clamp(2.8rem, 4.6vw, 4rem); line-height: 1; color: var(--cherry); }
.facts span { font-size: .8rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); }

.contents { margin-top: var(--s8); padding-top: var(--s8); padding-bottom: var(--s8); background: var(--cherry); color: var(--milk); }
.contents-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s6); align-items: end; margin-bottom: var(--s6); }
.contents-head h2 { margin: 0; font-size: clamp(2.6rem, 5vw, 4rem); color: var(--milk); }
.contents-head p { margin: 0; color: rgba(244, 239, 230, .85); max-width: 34em; }
.toc-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(244, 239, 230, .6); }
.toc-row {
  display: grid; grid-template-columns: 90px minmax(0, 5fr) minmax(0, 5fr) 48px; gap: var(--s5); align-items: baseline;
  padding: var(--s6) 0; border-bottom: 1px solid rgba(244, 239, 230, .25);
  color: var(--milk); text-decoration: none;
  transition: background var(--t), padding var(--t) var(--ease);
}
.toc-row .num { font-size: .85rem; font-weight: 600; letter-spacing: .16em; color: var(--sky); }
.toc-row .title { font-family: var(--serif); font-size: clamp(2.4rem, 4.6vw, 3.8rem); line-height: 1; color: var(--milk); }
.toc-row .desc { color: rgba(244, 239, 230, .85); font-size: 1.05rem; }
.toc-row .arrow { justify-self: end; font-size: 1.6rem; color: var(--sky); transition: transform var(--t) var(--ease); }
.toc-row:hover { color: var(--milk); background: rgba(244, 239, 230, .06); padding-left: var(--s4); padding-right: var(--s4); }
.toc-row:hover .arrow { transform: translateX(6px); }

.feature { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--s8); align-items: center; padding: var(--s9) 0 var(--s7); }
.feature-art { position: relative; height: 380px; }
.feature-art .pcard { --ratio: 3 / 4; width: 58%; top: 0; left: 6%; --rot: -3deg; }
.feature-art .pcard .tape { top: -11px; left: 34%; }
.feature-art .paper-note { right: 4%; bottom: 8%; }
.feature blockquote { margin: 0; font-family: var(--serif); font-size: clamp(2.2rem, 4vw, 3.4rem); line-height: 1.08; color: var(--cherry); }
.feature p { margin-top: var(--s5); color: var(--ink-soft); max-width: 34em; }

/* ───────── Таблица 12 времён ───────── */
.section-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s6); align-items: end; margin: var(--s8) 0 var(--s5); }
.masthead + section > .section-head:first-child { margin-top: 0; }
.section-head h2 { margin: 0; color: var(--cherry); }
.section-head p { margin: 0; color: var(--ink-soft); }

.tense-table { width: 100%; border-collapse: collapse; table-layout: fixed; border-top: 1px solid var(--ink); }
.tense-table thead th {
  padding: 14px 18px; text-align: left;
  font-size: .95rem; font-weight: 600; color: var(--ink);
  border-bottom: 1px solid var(--line-strong);
}
.tense-table thead th:first-child { width: 150px; padding-left: 0; }
.tense-table tbody th { padding: 18px 18px 18px 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line-strong); }
.row-name { font-family: var(--serif); font-weight: 400; font-size: 1.9rem; line-height: 1; color: var(--cherry); }
.tense-table td { padding: 0; vertical-align: top; border-bottom: 1px solid var(--line-strong); border-left: 1px solid var(--line); height: 1px; }
.tense-cell {
  position: relative; display: flex; flex-direction: column; height: 100%; min-height: 150px;
  padding: 18px 18px 16px;
  color: var(--ink); text-decoration: none;
  transition: background var(--t);
}
.tense-cell .aspect { display: none; font-size: .85rem; color: var(--muted); margin-bottom: 4px; }
.tense-cell .name { font-weight: 600; font-size: 1.05rem; line-height: 1.25; color: var(--ink); padding-right: 16px; }
.tense-cell .formula { margin-top: 10px; font-weight: 500; font-size: 1rem; color: var(--cherry); }
.tense-cell .ru { margin-top: auto; padding-top: 12px; font-size: .88rem; color: var(--muted); }
.tense-cell .go { position: absolute; top: 16px; right: 16px; color: var(--cherry); opacity: 0; transform: translateX(-4px); transition: opacity var(--t), transform var(--t) var(--ease); }
.tense-cell:hover, .tense-cell:focus-visible { background: var(--sky-light); color: var(--ink); }
.tense-cell:hover .name, .tense-cell:focus-visible .name { text-decoration: underline; text-decoration-color: var(--cherry); text-underline-offset: 4px; }
.tense-cell:hover .go, .tense-cell:focus-visible .go { opacity: 1; transform: none; }
.tense-cell:focus-visible { outline-offset: -2px; }
.here { display: none; }
.is-current .here { display: block; margin-top: 8px; font-size: .85rem; font-weight: 500; color: var(--wine); }
.is-current .here::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 8px; background: var(--wine); border-radius: 50%; vertical-align: 1px; }
.tense-cell.is-current { box-shadow: inset 0 3px 0 var(--cherry); }

.aspect-notes { display: grid; grid-template-columns: 150px repeat(4, 1fr); }
.aspect-notes div { padding: var(--s4) 18px 0; font-size: .92rem; color: var(--muted); }
.aspect-notes div:first-child { padding-left: 0; font-family: var(--serif); color: var(--ink-soft); }

/* Future in the Past и to be — списки-оглавления */
.topic-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--s7); border-top: 1px solid var(--ink); }
.topic-list.cols-3 { grid-template-columns: repeat(3, 1fr); }
.topic-link {
  display: grid; grid-template-columns: 44px 1fr 28px; gap: 4px var(--s3); align-items: baseline;
  padding: 20px 4px; border-bottom: 1px solid var(--line-strong);
  color: var(--ink); text-decoration: none; transition: background var(--t);
}
.topic-link .no { font-family: var(--serif); color: var(--wine); }
.topic-link .name { font-weight: 600; font-size: 1.05rem; }
.topic-link .formula { grid-column: 2; font-weight: 500; color: var(--cherry); }
.topic-link .ru { grid-column: 2; font-size: .88rem; color: var(--muted); }
.topic-link .here { grid-column: 2; }
.topic-link .go { grid-column: 3; grid-row: 1; color: var(--cherry); transition: transform var(--t) var(--ease); }
.topic-link:hover { background: var(--sky-light); color: var(--ink); }
.topic-link:hover .go { transform: translateX(4px); }
.topic-link.is-current { box-shadow: inset 3px 0 0 var(--cherry); }

/* ───────── Обычные таблицы ───────── */
table.data { width: 100%; border-collapse: collapse; font-size: 1rem; }
table.data th, table.data td { text-align: left; padding: 18px 16px; vertical-align: top; border-bottom: 1px solid var(--line-strong); }
table.data thead th { font-size: .92rem; font-weight: 600; color: var(--muted); border-bottom: 1px solid var(--ink); padding-top: 0; padding-bottom: 12px; }
table.data td:first-child, table.data th:first-child { padding-left: 0; }
table.data tbody tr:last-child td { border-bottom: none; }

/* ───────── Страница правила ───────── */
.chapter-sub { font-size: 1.15rem; color: rgba(244, 239, 230, .9); margin-top: var(--s3); }
.formula-pill { display: inline-block; margin-top: var(--s4); padding: 8px 16px; background: var(--milk); color: var(--cherry); font-weight: 600; font-size: 1.15rem; }

.topic-tabs { display: flex; gap: var(--s6); margin: 0 0 var(--s7); border-bottom: 1px solid var(--line-strong); }
.topic-tabs a { position: relative; padding: 14px 0; color: var(--ink-soft); font-weight: 500; text-decoration: none; }
.topic-tabs a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--cherry); transform: scaleX(0); transition: transform var(--t) var(--ease); }
.topic-tabs a:hover, .topic-tabs a.active { color: var(--cherry); }
.topic-tabs a.active::after, .topic-tabs a:hover::after { transform: scaleX(1); }
.masthead .topic-tabs { position: relative; margin: var(--s6) 0 0; border-bottom-color: rgba(244, 239, 230, .3); }
.masthead .topic-tabs a { color: rgba(244, 239, 230, .85); }
.masthead .topic-tabs a::after { background: var(--sky); }
.masthead .topic-tabs a.active, .masthead .topic-tabs a:hover { color: var(--milk); }

.rule-layout { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: var(--s8); align-items: start; }
.toc { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 2px; font-size: .95rem; }
.toc .toc-label { font-family: var(--serif); color: var(--muted); margin-bottom: var(--s2); }
.toc a { padding: 6px 0 6px 14px; color: var(--ink-soft); text-decoration: none; border-left: 1px solid var(--line-strong); transition: color var(--t), border-color var(--t); }
.toc a:hover { color: var(--cherry); border-left-color: var(--cherry); }
.rule-body { max-width: 880px; }
.rule-body > section:first-child h2 { margin-top: 0; }
.rule-body h2 { display: flex; align-items: baseline; gap: 16px; padding-bottom: 14px; margin-top: var(--s8); margin-bottom: var(--s5); border-bottom: 1px solid var(--ink); }
.rule-body h2 .sec-no { font-family: var(--serif); font-size: 1.1rem; color: var(--wine); }

.summary p { font-size: 1.12rem; line-height: 1.7; }
.summary p:first-child { font-size: 1.3rem; line-height: 1.55; color: var(--ink); }

.uses { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--s7); }
.use { padding: var(--s5) 0; border-bottom: 1px solid var(--line); }
.use h3 { display: flex; gap: 12px; align-items: baseline; margin-bottom: 6px; font-family: var(--sans); font-size: 1.05rem; font-weight: 600; line-height: 1.3; }
.use h3 .n { font-family: var(--serif); font-weight: 400; font-size: 1.2rem; color: var(--wine); }
.use p { color: var(--ink-soft); font-size: .98rem; margin-bottom: 10px; }

.form-label { font-family: var(--serif); font-size: 1.25rem; color: var(--cherry); white-space: nowrap; }
.formula-line {
  display: block; width: fit-content; max-width: 100%;
  margin-bottom: 8px; padding: 6px 12px;
  font-weight: 600; font-size: 1.04rem; line-height: 1.45;
  color: var(--cherry); background: var(--sky-light);
}
.formula-line strong { font-weight: 700; color: var(--cherry); }
.formula-note { display: block; margin-top: 8px; font-size: .9rem; color: var(--muted); }
.example { padding: 8px 0; }
.example:first-child { padding-top: 0; }
.example + .example { border-top: 1px solid var(--line); }
.example .en { display: block; font-weight: 500; font-size: 1.02rem; color: var(--ink); }
.example .ru { display: block; font-size: .92rem; color: var(--muted); }
.rule-page mark.hl, .example mark.hl { background: none; color: var(--cherry); font-weight: 700; }

.markers { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: var(--s5); }
.marker { padding: 6px 14px; border: 1px solid var(--sky-deep); background: var(--sky-wash); font-weight: 500; color: var(--ink); }

.features { list-style: none; margin: 0; padding: 0; counter-reset: f; }
.features li { position: relative; padding: 14px 0 14px 48px; border-bottom: 1px solid var(--line); }
.features li::before { counter-increment: f; content: counter(f, decimal-leading-zero); position: absolute; left: 0; top: 14px; font-family: var(--serif); color: var(--wine); }

.mistake { display: grid; grid-template-columns: 1fr 1fr; gap: 8px var(--s6); padding: var(--s5) 0; border-bottom: 1px solid var(--line); }
.mistake:first-child { padding-top: 0; }
.mistake .tag { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 2px; }
.mistake .wrong .tag { color: var(--wine); }
.mistake .right .tag { color: var(--blue-ink); }
.mistake .wrong span:last-child { color: var(--ink-soft); text-decoration: line-through; text-decoration-color: var(--wine); }
.mistake .right span:last-child { color: var(--ink); font-weight: 600; }
.mistake .comment { grid-column: 1 / -1; color: var(--muted); font-size: .95rem; }

.cta {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s5); align-items: center;
  margin-top: var(--s8); padding: var(--s7);
  background: var(--cherry); color: var(--milk);
}
.cta h2 { display: block; margin: 0; padding: 0; border: none; color: var(--milk); font-size: clamp(1.6rem, 3vw, 2.2rem); }
.cta p { margin: 8px 0 0; color: rgba(245, 240, 232, .88); }
.cta .btn-row { margin: 0; }
.cta .btn { border-color: var(--milk); color: var(--milk); }
.cta .btn:hover { background: var(--milk); color: var(--cherry); }
.cta .btn-primary { background: var(--milk); color: var(--cherry); }
.cta .btn-primary:hover { background: var(--sky); border-color: var(--sky); color: var(--cherry); }

.pager { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s5); margin-top: var(--s7); border-top: 1px solid var(--line-strong); }
.pager a { display: block; padding: var(--s5) 0; color: var(--ink); text-decoration: none; }
.pager a small { display: block; font-size: .9rem; color: var(--muted); margin-bottom: 4px; }
.pager a b { font-family: var(--serif); font-weight: 400; font-size: 1.5rem; color: var(--cherry); }
.pager a:hover b { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.pager .next { text-align: right; }

/* ───────── Тесты: выбор ───────── */
.setup { max-width: 1040px; }
.step { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: var(--s4); padding: var(--s6) 0; border-top: 1px solid var(--line-strong); }
.step:first-child { border-top: 1px solid var(--ink); }
.step-no { font-family: var(--serif); font-size: 1.6rem; line-height: 1; color: var(--wine); }
.step-title { display: block; font-family: var(--serif); font-size: 1.5rem; line-height: 1.1; margin-bottom: var(--s4); }

.segmented { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--ink); }
.segmented button {
  min-height: 48px; padding: 10px 22px;
  font: inherit; font-weight: 500; color: var(--ink);
  background: transparent; border: none; cursor: pointer;
  transition: background var(--t), color var(--t);
}
.segmented button + button { border-left: 1px solid var(--ink); }
.segmented button:hover:not(:disabled) { background: var(--sky-light); }
.segmented button.active, .segmented button.active:hover { background: var(--cherry); color: var(--milk); }
.segmented button:disabled { color: rgba(37, 29, 34, .38); cursor: not-allowed; }

.topic-picker { display: grid; gap: var(--s6); grid-template-columns: repeat(3, 1fr); }
.topic-picker h3 { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-family: var(--sans); font-size: .95rem; font-weight: 600; color: var(--muted); padding-bottom: 8px; margin-bottom: 6px; border-bottom: 1px solid var(--line-strong); }
.topic-picker h3 button { font: inherit; font-size: .88rem; font-weight: 500; color: var(--cherry); background: none; border: none; padding: 4px 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.pick { display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 8px 10px; cursor: pointer; transition: background var(--t); }
.pick:hover { background: var(--sky-wash); }
.pick input {
  appearance: none; -webkit-appearance: none; flex: none; margin: 0;
  width: 20px; height: 20px; border: 1.5px solid var(--ink); background: var(--paper);
  display: grid; place-items: center; cursor: pointer;
}
.pick input[type="radio"] { border-radius: 50%; }
.pick input::after { content: ""; transition: transform var(--t) var(--ease); }
.pick input[type="checkbox"]::after { width: 10px; height: 5px; border-left: 2px solid var(--milk); border-bottom: 2px solid var(--milk); transform: rotate(-45deg) scale(0); margin-top: -3px; }
.pick input[type="radio"]::after { width: 8px; height: 8px; border-radius: 50%; background: var(--milk); transform: scale(0); }
.pick input:checked { background: var(--cherry); border-color: var(--cherry); }
.pick input[type="checkbox"]:checked::after { transform: rotate(-45deg) scale(1); }
.pick input[type="radio"]:checked::after { transform: scale(1); }
.pick.checked { background: var(--sky-light); }
.pick.checked span { font-weight: 600; color: var(--cherry); }

.launch { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s5); padding: var(--s6) 0; border-top: 1px solid var(--ink); }
.launch .summary { font-size: 1.05rem; color: var(--ink-soft); }
.launch .summary b { font-family: var(--serif); font-weight: 400; font-size: 2rem; color: var(--cherry); margin-right: 4px; }

.resume { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s4); margin-bottom: var(--s6); padding: var(--s5); background: var(--sky-wash); border-left: 3px solid var(--cherry); }
.resume p { margin: 0; }
.resume .btn-row { margin: 0; }

.history-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.history-list li { display: grid; grid-template-columns: 180px 1fr auto; gap: var(--s4); align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--line); }
.history-list .date { font-size: .9rem; color: var(--muted); }
.history-list .score-small { font-family: var(--serif); font-size: 1.25rem; color: var(--cherry); white-space: nowrap; }

/* ───────── Тесты: прохождение (минимум декора) ───────── */
.quiz { max-width: 780px; margin: var(--s7) auto 0; }
.quiz-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px; }
.quiz-count { font-family: var(--serif); font-size: 1.6rem; color: var(--cherry); }
.quiz-count span { font-family: var(--sans); font-size: 1rem; color: var(--muted); }
.progress-wrap { display: flex; align-items: center; gap: var(--s4); margin: var(--s4) 0 var(--s2); }
.progress { flex: 1; height: 6px; background: var(--sky-light); overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--cherry); transition: width .35s var(--ease); }
.progress-pct { font-weight: 600; font-size: .95rem; min-width: 3em; text-align: right; color: var(--cherry); }
.quiz-topic { display: block; margin-top: var(--s5); font-size: .92rem; font-weight: 500; color: var(--wine); }
.question-text { font-size: 1.5rem; font-weight: 500; line-height: 1.45; margin: var(--s4) 0 var(--s6); color: var(--ink); }
.question-text .blank { display: inline-block; min-width: 3.5em; border-bottom: 2px solid var(--cherry); transform: translateY(-4px); }

.options { display: grid; gap: 10px; }
.option {
  position: relative; display: flex; align-items: center; gap: 16px;
  width: 100%; min-height: 60px; padding: 12px 18px; text-align: left;
  font: inherit; font-size: 1.1rem; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line-strong); border-radius: 0;
  transition: border-color var(--t), background var(--t), box-shadow var(--t);
}
button.option { cursor: pointer; }
.option .key { flex: none; display: inline-grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--ink); font-weight: 600; font-size: .9rem; color: var(--ink); transition: background var(--t), color var(--t), border-color var(--t); }
.option .text { flex: 1; }
.option .state { flex: none; font-size: .9rem; font-weight: 600; }
button.option:hover { border-color: var(--ink); background: var(--sky-wash); }
.option.selected, button.option.selected:hover { border-color: var(--cherry); background: var(--paper); box-shadow: inset 0 0 0 1px var(--cherry); }
.option.selected .key { background: var(--cherry); border-color: var(--cherry); color: var(--milk); }
.option.selected .state { color: var(--cherry); }
.option.is-correct { border-color: var(--blue-ink); background: var(--sky-light); box-shadow: inset 0 0 0 1px var(--blue-ink); }
.option.is-correct .key { background: var(--blue-ink); border-color: var(--blue-ink); color: #fff; }
.option.is-correct .state { color: var(--blue-ink); }
.option.is-wrong { border-color: var(--wine); background: #f7ebee; box-shadow: inset 0 0 0 1px var(--wine); }
.option.is-wrong .key { background: var(--wine); border-color: var(--wine); color: #fff; }
.option.is-wrong .state { color: var(--wine); }
.option.is-wrong .text { text-decoration: line-through; text-decoration-color: var(--wine); }
.options.compact { grid-template-columns: 1fr 1fr; gap: 8px; }
.options.compact .option { min-height: 48px; padding: 8px 14px; font-size: 1rem; }
.options.compact .option .key { width: 28px; height: 28px; }

.quiz-nav { display: flex; justify-content: space-between; gap: var(--s3); margin-top: var(--s6); flex-wrap: wrap; }
.quiz-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--s3); margin-top: var(--s6); padding-top: var(--s5); border-top: 1px solid var(--line); }
details.more { margin-top: var(--s6); }
details.more summary { cursor: pointer; color: var(--ink-soft); font-weight: 500; }
.navigator { display: flex; flex-wrap: wrap; gap: 6px; margin-top: var(--s3); }
.navigator button { width: 40px; height: 38px; font: inherit; font-size: .88rem; font-weight: 500; color: var(--muted); background: transparent; border: 1px solid var(--line-strong); cursor: pointer; transition: background var(--t), border-color var(--t); }
.navigator button:hover { border-color: var(--ink); }
.navigator button.answered { background: var(--sky-light); color: var(--ink); border-color: var(--sky-deep); }
.navigator button.current { border-color: var(--cherry); color: var(--cherry); box-shadow: inset 0 0 0 1px var(--cherry); }

/* результат */
.result-card { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s7); align-items: center; padding: var(--s6) 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line-strong); }
.score-big { font-family: var(--serif); font-size: clamp(4.5rem, 10vw, 8rem); line-height: .9; color: var(--cherry); letter-spacing: -.03em; }
.score-big small { display: block; margin-top: 12px; font-family: var(--sans); font-size: 1rem; letter-spacing: 0; color: var(--muted); }
.result-title { font-family: var(--serif); font-size: clamp(1.7rem, 3vw, 2.3rem); line-height: 1.15; }
.filter-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 var(--s5); }
.review { border-top: 1px solid var(--ink); }
.review-item { padding: var(--s6) 0; border-bottom: 1px solid var(--line-strong); }
.review-item .q { font-weight: 500; font-size: 1.15rem; margin-bottom: var(--s4); }
.review-item .num { font-family: var(--serif); color: var(--wine); margin-right: 10px; }
.verdict { display: inline-block; margin-left: 10px; font-size: .88rem; font-weight: 600; padding: 2px 10px; vertical-align: 2px; }
.verdict.ok { background: var(--sky-light); color: var(--blue-ink); }
.verdict.bad { background: #f7ebee; color: var(--wine); }
.review-item .explain { margin-top: var(--s4); color: var(--ink-soft); }
.review-item .explain b { color: var(--ink); }

/* ───────── Тексты ───────── */
.text-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.text-row {
  display: grid; grid-template-columns: 64px minmax(0, 6fr) minmax(0, 4fr) 150px 32px; gap: var(--s5); align-items: baseline;
  padding: 22px 4px; border-bottom: 1px solid var(--line-strong);
  color: var(--ink); text-decoration: none; transition: background var(--t);
}
.text-row .no { font-family: var(--serif); color: var(--wine); }
.text-row .title { font-family: var(--serif); font-size: clamp(1.4rem, 2.4vw, 1.9rem); line-height: 1.15; color: var(--cherry); }
.text-row .topic { font-weight: 500; color: var(--ink-soft); }
.text-row .meta { font-size: .9rem; color: var(--muted); }
.text-row .go { justify-self: end; color: var(--cherry); transition: transform var(--t) var(--ease); }
.text-row:hover { background: var(--sky-wash); color: var(--ink); }
.text-row:hover .go { transform: translateX(4px); }
.list-group-title { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s4); margin: var(--s7) 0 var(--s4); }
.list-group-title:first-of-type { margin-top: 0; }
.list-group-title h2 { margin: 0; font-size: 1.7rem; }
.list-group-title span { color: var(--muted); font-size: .95rem; }

.text-head { max-width: 900px; padding-top: var(--s7); }
.text-head h1 { font-size: clamp(2.6rem, 6vw, 5rem); margin-bottom: var(--s4); }
.text-head .meta { color: var(--ink-soft); font-size: 1rem; }
.text-head .topic-tabs { margin-top: var(--s6); }
.toolbar { display: flex; flex-wrap: wrap; gap: var(--s3); margin: 0 0 var(--s6); }

.text-layout { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: var(--s8); align-items: start; }
.reading { max-width: 66ch; font-size: 1.22rem; line-height: 1.85; color: var(--ink); }
.reading p { margin-bottom: 1.15em; }
.reading mark.hl { background: transparent; color: inherit; transition: background var(--t), box-shadow var(--t); }
.show-hl .reading mark.hl { background: var(--sky-light); box-shadow: inset 0 -2px 0 var(--sky-deep); color: var(--ink); font-weight: 600; padding: 0 2px; }
.aside-note { position: sticky; top: 96px; padding-top: var(--s4); border-top: 1px solid var(--ink); font-size: .95rem; color: var(--ink-soft); }
.aside-note dl { margin: 0; }
.aside-note dt { font-size: .85rem; color: var(--muted); margin-top: var(--s4); }
.aside-note dt:first-child { margin-top: 0; }
.aside-note dd { margin: 2px 0 0; font-weight: 500; color: var(--ink); }
.translation { max-width: 66ch; margin-top: var(--s6); padding: var(--s5) var(--s6); background: var(--sky-wash); border-left: 2px solid var(--sky-deep); }
.translation h3 { font-family: var(--sans); font-size: 1rem; font-weight: 600; color: var(--blue-ink); margin-bottom: var(--s3); }
.translation p { font-size: 1.05rem; line-height: 1.75; color: var(--ink-soft); }

.study { max-width: 66ch; }
.study h2 { margin-top: var(--s8); padding-bottom: 14px; border-bottom: 1px solid var(--ink); color: var(--cherry); }
.study .explain-text p { font-size: 1.08rem; line-height: 1.7; }
.vocab { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: var(--s7); }
.vocab li { display: flex; align-items: baseline; gap: 10px; break-inside: avoid; padding: 10px 0; border-bottom: 1px solid var(--line); }
.vocab b { font-weight: 600; color: var(--cherry); }
.vocab .ru { margin-left: auto; text-align: right; color: var(--ink-soft); }
ol.comp { list-style: none; counter-reset: q; padding: 0; margin: 0 0 var(--s5); }
ol.comp li { counter-increment: q; position: relative; padding: 14px 0 14px 44px; border-bottom: 1px solid var(--line); font-size: 1.08rem; }
ol.comp li::before { content: counter(q) "."; position: absolute; left: 0; top: 14px; font-family: var(--serif); color: var(--wine); }
ol.comp .ans { display: block; margin-top: 6px; color: var(--blue-ink); font-size: 1rem; }
ol.comp .ans::before { content: "Ответ: "; font-weight: 600; }

.empty { text-align: center; padding: var(--s9) 16px; color: var(--muted); }
.empty h1 { color: var(--cherry); }

/* ───────── Движение ───────── */
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
#app > * { animation: fade .4s var(--ease) both; }
#app > *:nth-child(2) { animation-delay: .05s; }
#app > *:nth-child(3) { animation-delay: .1s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ───────── Планшет ───────── */
@media (max-width: 1000px) {
  .split { grid-template-columns: 1fr; min-height: 0; }
  .split-text { padding: var(--s8) 24px var(--s7); }
  .split-paper { height: 560px; }
  .split .pcard-c { left: auto; right: 4%; bottom: 6%; width: 30%; }
  .masthead.has-note .masthead-grid { padding-right: 0; }
  .masthead-note { display: none; }
  .rule-layout { grid-template-columns: 1fr; gap: 0; }
  .toc { position: static; flex-direction: row; flex-wrap: wrap; gap: 8px 22px; margin-bottom: var(--s6); }
  .toc a { padding: 4px 0; border-left: none; border-bottom: 1px solid var(--line-strong); }
  .toc .toc-label { margin: 0; flex-basis: 100%; }
  .text-layout { grid-template-columns: 1fr; gap: var(--s6); }
  .aside-note { position: static; order: -1; }
  .topic-picker { grid-template-columns: 1fr 1fr; }
  .text-row { grid-template-columns: 48px minmax(0, 1fr) 32px; gap: 4px var(--s4); }
  .text-row .topic, .text-row .meta { grid-column: 2; }
  .text-row .go { grid-column: 3; grid-row: 1; }
  .feature { grid-template-columns: 1fr 1fr; gap: var(--s6); }
  .gazette { inset: 22px 24px auto 24px; }
}

/* ───────── Телефон ───────── */
@media (max-width: 720px) {
  body { font-size: 16px; }
  .container { padding: 0 18px; }
  .header-inner { min-height: 56px; gap: var(--s3); }
  .logo { font-size: 1.05rem; line-height: 1.05; white-space: normal; max-width: 7em; }
  .logo em { display: block; }
  .main-nav { gap: var(--s4); }
  .main-nav a { font-size: .95rem; }
  .site-footer .container { flex-direction: column; gap: var(--s2); }

  .masthead { padding-top: var(--s7); padding-bottom: var(--s6); margin-bottom: var(--s6); }
  .masthead-grid { grid-template-columns: 1fr; gap: var(--s4); }
  h1 { font-size: clamp(2.3rem, 10vw, 3rem); }

  .split-text { padding: var(--s7) 18px var(--s7); }
  .split-text h1 { font-size: clamp(2.9rem, 13vw, 3.8rem); }
  .split-text .lead { font-size: 1.08rem; }
  .split-text .btn-row { gap: var(--s3) var(--s5); }
  .split-paper { height: 430px; }
  .gazette { inset: 16px 16px auto 16px; }
  .g-cols { grid-template-columns: repeat(2, 1fr); }
  .g-col:nth-child(n+3) { display: none; }
  .g-col:nth-child(2) { border-right: none; padding-right: 0; }
  .g-top span:nth-child(2), .g-dateline span:nth-child(3) { display: none; }
  .split .pcard-a { width: 58%; top: 31%; left: 5%; }
  .split .pcard-b { width: 46%; top: 52%; right: 4%; }
  .g-band span, .g-cols-2 { display: none; }
  .split .pcard-c { display: none; }
  .pcard { padding: 7px 7px 0; }
  .pcard figcaption { font-size: 12.5px; padding: 7px 2px 9px; }
  .split .paper-note { left: 6%; right: auto; top: auto; bottom: 4%; max-width: 170px; font-size: 16px; padding: 12px 14px 10px; }
  .facts span { font-size: .7rem; letter-spacing: .1em; }
  .contents { padding-top: var(--s7); padding-bottom: var(--s7); }

  .facts li { flex-direction: column; gap: 4px; padding: var(--s5) var(--s3) var(--s5) 0; }
  .facts li + li { padding-left: var(--s4); }

  .contents-head, .section-head { grid-template-columns: 1fr; gap: var(--s3); }
  .toc-row { grid-template-columns: 40px minmax(0, 1fr) 28px; gap: 6px var(--s3); padding: var(--s5) 0; }
  .toc-row .desc { grid-column: 2; }
  .toc-row .arrow { grid-column: 3; grid-row: 1; }
  .toc-row:hover { padding-left: 0; padding-right: 0; }
  .feature { grid-template-columns: 1fr; padding-top: var(--s8); gap: var(--s6); }
  .feature-art { height: 320px; }
  .feature-art .pcard { width: 62%; }

  /* таблица времён → строки-списки */
  .tense-table, .tense-table tbody, .tense-table tr, .tense-table td, .tense-table th { display: block; width: 100%; }
  .tense-table thead { display: none; }
  .tense-table tbody th { padding: var(--s5) 0 var(--s2); border-bottom: none; }
  .tense-table td { border-left: none; border-bottom: 1px solid var(--line); height: auto; }
  .tense-cell { min-height: 0; padding: 14px 32px 14px 0; }
  .tense-cell .aspect { display: block; }
  .tense-cell .go { opacity: 1; transform: none; top: 50%; right: 4px; margin-top: -12px; }
  .tense-cell:hover { background: var(--sky-wash); }
  .aspect-notes { grid-template-columns: 1fr 1fr; }
  .aspect-notes div:first-child { display: none; }
  .aspect-notes div { padding: var(--s3) var(--s3) 0 0; }
  .topic-list, .topic-list.cols-3 { grid-template-columns: 1fr; }

  .topic-tabs { gap: var(--s5); }
  .formula-pill { font-size: 1.02rem; }
  .rule-body h2 { margin-top: var(--s7); }
  .summary p:first-child { font-size: 1.15rem; }
  .uses { grid-template-columns: 1fr; }
  table.data.stack, table.data.stack tbody, table.data.stack tr, table.data.stack td { display: block; width: 100%; }
  table.data.stack thead { display: none; }
  table.data.stack tr { padding: var(--s4) 0 var(--s5); border-bottom: 1px solid var(--line-strong); }
  table.data.stack td { border: none; padding: 6px 0; }
  table.data.stack td[data-label]:not(.form-label)::before { content: attr(data-label); display: block; margin: 8px 0 6px; font-size: .85rem; font-weight: 600; color: var(--muted); }
  .formula-line { font-size: 1rem; }
  .mistake { grid-template-columns: 1fr; }
  .cta { grid-template-columns: 1fr; padding: var(--s6) var(--s5); }
  .cta .btn-row .btn { flex: 1; }
  .pager { grid-template-columns: 1fr; gap: 0; }
  .pager .next { text-align: left; border-top: 1px solid var(--line); }

  .step { grid-template-columns: 1fr; gap: var(--s2); padding: var(--s5) 0; }
  .segmented { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; width: 100%; }
  .segmented button { padding: 10px 6px; font-size: .92rem; }
  .topic-picker { grid-template-columns: 1fr; gap: var(--s5); }
  .launch .btn { width: 100%; }
  .history-list li { grid-template-columns: 1fr auto; gap: 4px var(--s3); }
  .history-list .date { grid-column: 1 / -1; }

  .quiz { margin-top: var(--s5); }
  .question-text { font-size: 1.25rem; }
  .option { font-size: 1.02rem; gap: 12px; padding: 12px 14px; }
  .option .state { font-size: .8rem; }
  .quiz-nav .btn { flex: 1; }
  .options.compact { grid-template-columns: 1fr; }
  .result-card { grid-template-columns: 1fr; gap: var(--s4); }

  .text-row { grid-template-columns: 36px minmax(0, 1fr) 24px; gap: 4px var(--s3); padding: var(--s4) 0; }
  .text-head { padding-top: var(--s6); }
  .reading { font-size: 1.1rem; line-height: 1.8; }
  .translation { padding: var(--s4); }
  .vocab { columns: 1; }
}

@media print {
  .site-header, .site-footer, .topic-tabs, .cta, .pager, .toolbar, .split-paper, .masthead-note { display: none !important; }
  body { background: #fff; }
}

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
