/* Апгрейдиум — бумажная редакция */

:root {
  --paper: #fbf7ef;
  --paper-2: #f4ecdd;
  --paper-3: #efe5d3;
  --ink: #23201c;
  --ink-soft: #5c5448;
  --ink-faint: #8b8172;
  --line: #d8cdbb;
  --line-strong: #bfae97;
  --card: #fffdf8;
  --green: #33584a;
  --green-deep: #24443a;
  --green-soft: #e3ece4;
  --coral: #bd5f3e;
  --coral-soft: #f6e3d8;
  --blue: #3d6a84;
  --blue-soft: #e2ecf1;
  --gold: #b98a3c;
  --shadow: 5px 5px 0 rgba(35, 32, 28, 0.1);
  --shadow-strong: 8px 8px 0 rgba(35, 32, 28, 0.14);
  --serif: 'Spectral', Georgia, 'Times New Roman', serif;
  --sans: 'Golos Text', 'Segoe UI', Arial, sans-serif;
  --hand: 'Caveat', 'Segoe Script', cursive;
  --wrap: 1180px;
  --radius: 3px;
  --header-h: 132px;
}

[data-theme="dusk"] {
  --paper: #1c211e;
  --paper-2: #232925;
  --paper-3: #2a312c;
  --ink: #eee7da;
  --ink-soft: #bdb3a3;
  --ink-faint: #8e8577;
  --line: #3b443d;
  --line-strong: #556052;
  --card: #222824;
  --green: #9dc4ad;
  --green-deep: #183028;
  --green-soft: #2b3a32;
  --coral: #e3916d;
  --coral-soft: #3d2c24;
  --blue: #93bdd2;
  --blue-soft: #26353d;
  --gold: #d8b06c;
  --shadow: 5px 5px 0 rgba(0, 0, 0, 0.35);
  --shadow-strong: 8px 8px 0 rgba(0, 0, 0, 0.45);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  background-image:
    radial-gradient(circle at 15% 12%, rgba(189, 95, 62, 0.045), transparent 38%),
    radial-gradient(circle at 85% 8%, rgba(61, 106, 132, 0.05), transparent 34%);
  background-attachment: fixed;
}

[data-theme="dusk"] body {
  background-image:
    radial-gradient(circle at 15% 12%, rgba(227, 145, 109, 0.05), transparent 38%),
    radial-gradient(circle at 85% 8%, rgba(147, 189, 210, 0.04), transparent 34%);
}

body.nav-open { overflow: hidden; }

::selection { background: var(--green); color: var(--paper); }
[data-theme="dusk"] ::selection { background: var(--coral); color: #1c211e; }

img { max-width: 100%; height: auto; display: block; }
svg { display: block; }

a { color: var(--ink); text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
a:hover { color: var(--coral); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--ink);
}

p { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.2em; padding-left: 1.3em; }
li { margin-bottom: 0.45em; }
strong { font-weight: 600; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }

button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 3px;
}

.wrap {
  width: min(var(--wrap), calc(100% - 48px));
  margin: 0 auto;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 999;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 18px;
  border-radius: 2px;
}
.skip-link:focus { top: 12px; }

.read-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 120;
  background: transparent;
  pointer-events: none;
}
.read-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--coral), var(--green));
}

/* ---------- Header ---------- */

.site-head {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.head-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  padding: 17px 0 13px;
}

.brand { text-decoration: none; display: inline-flex; flex-direction: column; gap: 2px; width: max-content; }
.brand:hover { color: var(--ink); }
.brand-kicker {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 500;
}
.brand-word {
  font-family: var(--serif);
  font-size: 30px;
  line-height: 1;
  letter-spacing: -0.03em;
  display: inline-flex;
  align-items: flex-start;
  gap: 3px;
}
.brand-star { width: 15px; height: 15px; color: var(--coral); margin-top: 3px; }

.head-issue {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.head-issue span:first-child { color: var(--ink-soft); }

.head-tools { display: flex; align-items: center; justify-content: flex-end; gap: 14px; }

.icon-btn {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--ink-soft);
  transition: border-color 0.2s, color 0.2s, transform 0.2s;
}
.icon-btn:hover { border-color: var(--ink); color: var(--ink); transform: rotate(-8deg); }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn .i-moon { display: none; }
[data-theme="dusk"] .icon-btn .i-moon { display: block; }
[data-theme="dusk"] .icon-btn .i-sun { display: none; }

.head-sub {
  font-size: 13px;
  letter-spacing: 0.04em;
  text-decoration: none;
  border-bottom: 1px solid var(--coral);
  padding-bottom: 1px;
  color: var(--ink-soft);
}
.head-sub:hover { color: var(--coral); }

.nav-toggle {
  display: none;
  width: 38px;
  height: 36px;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 2px;
  padding: 9px 8px;
  flex-direction: column;
  justify-content: space-between;
}
.nav-toggle span { display: block; height: 1.5px; background: var(--ink); transition: transform 0.2s, opacity 0.2s; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.site-nav { border-top: 1px solid var(--line); }
.nav-row {
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 0;
  min-height: 41px;
}
.nav-row a {
  font-size: 12px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-soft);
  padding: 12px 0 11px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.nav-row a:hover { color: var(--ink); }
.nav-row a.is-active { color: var(--ink); border-bottom-color: var(--coral); }
.nav-note {
  margin-left: auto;
  font-family: var(--hand);
  font-size: 18px;
  color: var(--coral);
  transform: rotate(-1.5deg);
}

/* ---------- Buttons, links, fields ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border: 1.5px solid var(--ink);
  border-radius: 2px;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  box-shadow: 3px 3px 0 rgba(35, 32, 28, 0.16);
  transition: transform 0.15s, box-shadow 0.15s, background 0.2s, color 0.2s;
}
.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 rgba(35, 32, 28, 0.2);
  color: var(--ink);
}
.btn:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 rgba(35, 32, 28, 0.2); }
.btn--fill { background: var(--green); color: var(--paper); border-color: var(--green); }
.btn--fill:hover { background: var(--green-deep); color: var(--paper); }
[data-theme="dusk"] .btn--fill { color: #18211c; }
[data-theme="dusk"] .btn--fill:hover { color: #18211c; background: #b7d6c1; }
.btn--small { padding: 9px 17px; font-size: 13px; }
.btn[disabled] { opacity: 0.55; pointer-events: none; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 2px;
}
.link-arrow span { transition: transform 0.2s; }
.link-arrow:hover { color: var(--coral); border-color: var(--coral); }
.link-arrow:hover span { transform: translateX(4px); }

.link-btn {
  border: 0;
  background: none;
  padding: 0;
  font-size: 13px;
  color: var(--ink-soft);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 3px;
}
.link-btn:hover { color: var(--coral); }

.icon-text-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 0;
  background: none;
  padding: 6px 0;
  font-size: 13px;
  color: var(--ink-soft);
  text-decoration: none;
}
.icon-text-btn svg { width: 17px; height: 17px; }
.icon-text-btn:hover { color: var(--coral); }

.field { display: flex; flex-direction: column; gap: 6px; }
.field-label {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--paper);
  padding: 12px 14px;
  font-size: 15px;
  transition: border-color 0.2s, background 0.2s;
}
.field textarea { resize: vertical; min-height: 110px; line-height: 1.55; }
.field input:focus,
.field textarea:focus { border-color: var(--green); background: var(--card); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 14%, transparent); }
.field input::placeholder,
.field textarea::placeholder { color: var(--ink-faint); opacity: 0.75; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink-soft);
  text-align: left;
}
.consent input {
  appearance: none;
  flex: 0 0 17px;
  width: 17px;
  height: 17px;
  margin: 2px 0 0;
  border: 1.5px solid var(--line-strong);
  border-radius: 2px;
  background: var(--paper);
  display: grid;
  place-items: center;
}
.consent input:checked { background: var(--green); border-color: var(--green); }
.consent input:checked::after {
  content: '';
  width: 9px;
  height: 5px;
  border-left: 2px solid var(--paper);
  border-bottom: 2px solid var(--paper);
  transform: translateY(-1px) rotate(-45deg);
}
[data-theme="dusk"] .consent input:checked::after { border-color: #18211c; }
.consent a { color: var(--ink-soft); }

/* ---------- Typographic utilities ---------- */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.eyebrow-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--coral); }

.section-kicker {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 10px;
  font-weight: 500;
}
.section-kicker--light { color: #e9c3a6; }

.hand-note {
  font-family: var(--hand);
  font-size: 21px;
  line-height: 1.15;
  color: var(--coral);
  transform: rotate(-2deg);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 56px 0 0;
  background-image:
    linear-gradient(rgba(35, 32, 28, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(35, 32, 28, 0.045) 1px, transparent 1px);
  background-size: 34px 34px;
  background-position: center -1px;
}
[data-theme="dusk"] .hero {
  background-image:
    linear-gradient(rgba(238, 231, 218, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(238, 231, 218, 0.04) 1px, transparent 1px);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 20%, transparent 20%, var(--paper) 78%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: 68px;
  align-items: center;
  padding-bottom: 46px;
}
.hero-main h1 {
  font-size: clamp(48px, 6.2vw, 82px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin: 22px 0 24px;
}
.hero-main h1 em {
  font-style: italic;
  color: var(--green);
  position: relative;
}
.hero-main h1 em::after {
  content: '';
  position: absolute;
  left: -2px;
  right: -4px;
  bottom: 6px;
  height: 8px;
  background: color-mix(in srgb, var(--coral) 22%, transparent);
  z-index: -1;
  transform: rotate(-1deg);
}
.hero-underline {
  display: inline-block;
  font-style: italic;
  color: var(--coral);
  position: relative;
}
.hero-underline::after {
  content: '';
  position: absolute;
  left: 2px;
  right: -10px;
  bottom: -2px;
  height: 10px;
  border-top: 2px solid var(--coral);
  border-radius: 50%;
  transform: rotate(-1.2deg);
  opacity: 0.65;
}
.hero-lead {
  font-size: 18px;
  line-height: 1.62;
  color: var(--ink-soft);
  max-width: 490px;
}
.hero-actions { display: flex; align-items: center; gap: 26px; margin: 30px 0 38px; flex-wrap: wrap; }
.hero-stats {
  display: flex;
  gap: 1px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  max-width: 470px;
  background: var(--line);
}
.hero-stats > div {
  flex: 1;
  display: flex;
  align-items: baseline;
  gap: 9px;
  padding: 4px 18px 0 0;
  background: var(--paper);
}
.hero-stats strong { font-family: var(--serif); font-size: 25px; font-weight: 500; color: var(--green); }
.hero-stats span { font-size: 11px; line-height: 1.3; color: var(--ink-faint); text-transform: lowercase; }

.hero-feature { position: relative; }
.feature-pin {
  position: absolute;
  top: -56px;
  right: -18px;
  display: flex;
  align-items: flex-end;
  gap: 4px;
  color: var(--coral);
  z-index: 2;
  transform: rotate(1deg);
}
.feature-pin svg { width: 92px; height: 70px; }
.feature-pin span { font-family: var(--hand); font-size: 19px; white-space: nowrap; padding-bottom: 2px; }

.feature {
  background: var(--card);
  border: 1px solid var(--ink);
  box-shadow: var(--shadow-strong);
  transform: rotate(0.7deg);
  transition: transform 0.25s;
}
.hero-feature:hover .feature { transform: rotate(0deg) translateY(-3px); }
.feature-cover { position: relative; display: block; }
.feature-cover .cover { aspect-ratio: 16 / 10; border: 0; border-bottom: 1px solid var(--ink); }
.feature-cover img { width: 100%; height: 100%; object-fit: cover; }
.feature-badge {
  position: absolute;
  left: 16px;
  top: 16px;
  background: var(--paper);
  border: 1px solid var(--ink);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 7px 10px;
  box-shadow: 2px 2px 0 rgba(35, 32, 28, 0.15);
}
.feature-body { padding: 26px 28px 24px; }
.feature-cat { font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--coral); margin-bottom: 10px; }
.feature h2 { font-size: 29px; line-height: 1.12; margin-bottom: 12px; }
.feature h2 a { text-decoration: none; }
.feature h2 a:hover { color: var(--green); }
.feature-lead { font-size: 14.5px; color: var(--ink-soft); margin-bottom: 18px; }
.feature-foot { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding-top: 15px; }
.feature-comments { font-size: 11px; color: var(--ink-faint); }
.hand-note--hero {
  position: absolute;
  left: -34px;
  bottom: -46px;
  transform: rotate(-4deg);
  font-size: 24px;
}

.hero-rule { position: relative; height: 1px; background: var(--line); }
.hero-rule span {
  position: absolute;
  left: 50%;
  top: -4px;
  width: 9px;
  height: 9px;
  background: var(--coral);
  transform: translateX(-50%) rotate(45deg);
}

/* ---------- Sections ---------- */

.section { padding: 84px 0; }
.section--flush { padding-top: 34px; }
.section--issue { padding-top: 66px; }
.section--practice { background: var(--blue-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
[data-theme="dusk"] .section--practice { background: var(--blue-soft); }

.section-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 20px;
  margin-bottom: 36px;
}
.section-head .section-kicker { grid-column: 1 / -1; margin-bottom: -6px; }
.section-head h2 { font-size: clamp(30px, 3.5vw, 43px); }
.section-link { font-size: 13px; text-decoration: none; color: var(--ink-soft); border-bottom: 1px solid var(--line-strong); padding-bottom: 3px; align-self: center; }
.section-link:hover { color: var(--coral); border-color: var(--coral); }
.section-lead { grid-column: 1 / -1; max-width: 620px; color: var(--ink-soft); font-size: 15px; margin-top: 4px; }
.section-head--small { margin-bottom: 24px; }
.section-head--small h2 { font-size: 27px; }

/* ---------- Issue list ---------- */

.issue-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 0.85fr); gap: 52px; }
.issue-list { border-top: 1px solid var(--ink); }
.issue-row {
  display: grid;
  grid-template-columns: 34px 92px minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 14px;
  padding: 16px 2px 15px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: background 0.2s, padding 0.2s;
}
.issue-row:hover { background: var(--card); padding-left: 10px; padding-right: 10px; color: var(--ink); }
.issue-num { font-family: var(--serif); font-size: 13px; color: var(--ink-faint); }
.issue-cat { font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--coral); }
.issue-title { font-family: var(--serif); font-size: 20px; line-height: 1.2; }
.issue-meta { font-size: 10.5px; color: var(--ink-faint); white-space: nowrap; }
.issue-aside { display: flex; flex-direction: column; gap: 22px; position: relative; }
.aside-card {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 24px 24px 22px;
  box-shadow: var(--shadow);
}
.aside-kicker { font-size: 9.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--coral); margin-bottom: 10px; }
.aside-card h3 { font-size: 24px; margin-bottom: 10px; }
.aside-card p { font-size: 13.5px; color: var(--ink-soft); }
.aside-card .btn { margin-top: 4px; }
.aside-card--grid {
  background-image:
    linear-gradient(rgba(35, 32, 28, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(35, 32, 28, 0.04) 1px, transparent 1px);
  background-size: 22px 22px;
  background-color: var(--paper-2);
}
.aside-day { font-family: var(--serif); font-size: 21px; color: var(--ink); margin-bottom: 6px; }
.aside-task { font-size: 13.5px; }
.hand-note--side { align-self: flex-end; transform: rotate(-3deg); font-size: 20px; }

/* ---------- Manifesto ---------- */

.manifesto {
  background: var(--green-deep);
  color: #f3ecdf;
  padding: 74px 0;
  position: relative;
  overflow: hidden;
}
.manifesto::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.05), transparent 40%),
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: auto, 100% 32px;
}
.manifesto-grid { position: relative; display: grid; grid-template-columns: 0.95fr 1.35fr; gap: 64px; align-items: center; }
.manifesto-quote { position: relative; }
.quote-mark { width: 44px; height: 32px; color: var(--coral); margin-bottom: 18px; opacity: 0.9; }
.manifesto-quote p { font-family: var(--serif); font-size: clamp(24px, 2.8vw, 33px); line-height: 1.3; color: #f6efe2; margin-bottom: 14px; }
.manifesto-by { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: #b9c9be; }
.manifesto-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.manifesto-point { border-top: 1px solid rgba(243, 236, 223, 0.25); padding-top: 16px; }
.mp-num { font-family: var(--serif); font-size: 12px; color: #e0a180; display: block; margin-bottom: 10px; }
.manifesto-point h3 { color: #f6efe2; font-size: 20px; margin-bottom: 8px; }
.manifesto-point p { color: #c8d3c9; font-size: 13.5px; line-height: 1.55; margin: 0; }

/* ---------- Cards ---------- */

.card-grid { display: grid; gap: 26px; }
.card-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card-wrap { display: flex; }
.card-wrap .card { width: 100%; }

.card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: transform 0.22s, box-shadow 0.22s, border-color 0.22s;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translate(-3px, -3px); box-shadow: var(--shadow-strong); border-color: var(--line-strong); }
.card-link { display: flex; flex-direction: column; height: 100%; padding: 24px 24px 20px; text-decoration: none; color: var(--ink); }
.card-link:hover { color: var(--ink); }
.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--cat-color, var(--green));
}
.card--razbor { --cat-color: var(--coral); }
.card--roditelyam { --cat-color: var(--green); }
.card--matematika { --cat-color: var(--blue); }
.card--doma { --cat-color: var(--gold); }
.card--shkola { --cat-color: #7c6a91; }
.card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.card-num { font-family: var(--serif); font-size: 13px; color: var(--ink-faint); }
.card-cat { font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--cat-color, var(--coral)); border: 1px solid currentColor; padding: 4px 8px; border-radius: 20px; }
.card-title { font-size: 24px; line-height: 1.17; margin-bottom: 12px; }
.card-lead { font-size: 13.5px; line-height: 1.55; color: var(--ink-soft); margin-bottom: 20px; }
.card-foot {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding-top: 13px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 10.5px;
  color: var(--ink-faint);
}

.cover {
  position: relative;
  background: var(--paper-2);
  border: 1px solid var(--line);
  overflow: hidden;
}
.cover img { width: 100%; height: 100%; object-fit: cover; }
.cover--razbor { background: linear-gradient(135deg, #f7e5d9, #f2d5c3); }
.cover--roditelyam { background: linear-gradient(135deg, #e6eee5, #d3e3d5); }
.cover--matematika { background: linear-gradient(135deg, #e4edf1, #d3e2e9); }
.cover--doma { background: linear-gradient(135deg, #f5ecd8, #ecdcb9); }
.cover--shkola { background: linear-gradient(135deg, #ebe5f0, #ddd2e5); }
[data-theme="dusk"] .cover--razbor { background: linear-gradient(135deg, #3c2c25, #33241e); }
[data-theme="dusk"] .cover--roditelyam { background: linear-gradient(135deg, #26352d, #1f2d26); }
[data-theme="dusk"] .cover--matematika { background: linear-gradient(135deg, #24343c, #1d2b32); }
[data-theme="dusk"] .cover--doma { background: linear-gradient(135deg, #383122, #2d271c); }
[data-theme="dusk"] .cover--shkola { background: linear-gradient(135deg, #2f2a38, #262130); }
.cover-art { position: absolute; inset: 0; display: grid; place-items: center; }
.cover-letter {
  font-family: var(--serif);
  font-size: 88px;
  line-height: 1;
  color: color-mix(in srgb, var(--ink) 62%, transparent);
  transform: translateY(-4px);
  user-select: none;
}
.cover-doodle { position: absolute; width: 72%; height: 72%; color: color-mix(in srgb, var(--ink) 40%, transparent); }
.cover-doodle path, .cover-doodle circle { vector-effect: non-scaling-stroke; }

/* ---------- Practice block ---------- */

.practice-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 60px; align-items: start; }
.practice-intro h2 { font-size: clamp(32px, 3.8vw, 46px); margin-bottom: 18px; }
.practice-intro > p:not(.section-kicker) { color: var(--ink-soft); font-size: 15.5px; max-width: 440px; }
.practice-links { margin-top: 28px; border-top: 1px solid var(--line-strong); }
.practice-link {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.practice-link:hover { color: var(--ink); }
.practice-link:hover .pl-num { color: var(--coral); }
.pl-num { font-family: var(--serif); font-size: 36px; color: var(--green); line-height: 1; min-width: 54px; }
.practice-link span:last-child { display: flex; flex-direction: column; gap: 2px; }
.practice-link strong { font-weight: 500; font-size: 15px; }
.practice-link small { font-size: 11.5px; color: var(--ink-faint); }

.practice-cards { display: grid; gap: 22px; }
.mini-task, .mini-timer {
  background: var(--card);
  border: 1px solid var(--ink);
  padding: 26px 28px;
  box-shadow: var(--shadow);
}
.mini-task { transform: rotate(-0.4deg); }
.mini-timer { transform: rotate(0.5deg); }
.mini-kicker { font-size: 9.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--coral); margin-bottom: 8px; }
.mini-task h3 { font-size: 23px; margin-bottom: 8px; }
.mini-task > p { font-size: 14.5px; color: var(--ink-soft); }
.mini-task .link-arrow { margin-top: 6px; }

.timer { display: flex; align-items: center; gap: 18px; }
.timer--mini { margin-top: 14px; }
.timer--inline { margin-top: 16px; }
.timer-ring { position: relative; flex: 0 0 76px; width: 76px; height: 76px; }
.timer--inline .timer-ring { flex-basis: 94px; width: 94px; height: 94px; }
.timer-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: var(--line); stroke-width: 3; }
.ring-fg {
  fill: none;
  stroke: var(--green);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 326.7;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.9s linear;
}
.timer-time {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 22px;
  color: var(--ink);
}
.timer--inline .timer-time { font-size: 26px; }
.timer-body { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.timer-text { font-size: 13px; color: var(--ink-soft); margin: 0; }
.timer.is-running .ring-fg { stroke: var(--coral); }
.timer.is-done .ring-fg { stroke: var(--green); }
.timer.is-done .timer-time { color: var(--green); }

/* ---------- News rows ---------- */

.notes-feed { border-top: 1px solid var(--ink); }
.note-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) auto;
  gap: 30px;
  align-items: start;
  padding: 22px 2px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: padding 0.2s, background 0.2s;
}
.note-row:hover { background: var(--card); padding-left: 12px; padding-right: 12px; color: var(--ink); }
.note-row time { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); padding-top: 4px; }
.note-row h3 { font-size: 22px; margin-bottom: 5px; }
.note-row p { font-size: 13px; color: var(--ink-soft); margin: 0; max-width: 620px; }
.note-comments { font-size: 10.5px; color: var(--ink-faint); white-space: nowrap; padding-top: 5px; }

/* ---------- Subscribe ---------- */

.subscribe-band {
  background: var(--green-deep);
  color: #f4ede1;
  padding: 66px 0;
  position: relative;
  overflow: hidden;
}
.subscribe-band::after {
  content: '✳';
  position: absolute;
  right: 4%;
  top: -30px;
  font-family: var(--serif);
  font-size: 240px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.045);
  pointer-events: none;
}
.subscribe-band--slim { padding: 52px 0; }
.subscribe-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; position: relative; z-index: 1; }
.subscribe-copy h2 { color: #f7f0e4; font-size: clamp(28px, 3.4vw, 40px); margin-bottom: 12px; }
.subscribe-copy p { color: #c8d3c9; font-size: 14px; max-width: 440px; }
.subscribe-hand { font-family: var(--hand); font-size: 22px; color: #e5ac88; margin-top: 18px; transform: rotate(-1.5deg); }

.subscribe { position: relative; color: #f4ede1; }
.subscribe-row { display: flex; gap: 12px; align-items: flex-end; }
.subscribe .field { flex: 1; }
.subscribe .field-label { color: #a9bdb0; }
.subscribe .field input {
  background: rgba(251, 247, 239, 0.08);
  border: 1px solid rgba(244, 237, 225, 0.35);
  color: #f8f2e6;
  padding: 14px 16px;
}
.subscribe .field input::placeholder { color: rgba(244, 237, 225, 0.55); }
.subscribe .field input:focus { background: rgba(251, 247, 239, 0.12); border-color: #e5ac88; box-shadow: 0 0 0 3px rgba(229, 172, 136, 0.2); }
.subscribe .btn {
  border-color: #f4ede1;
  background: #f4ede1;
  color: #24443a;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.2);
  white-space: nowrap;
}
.subscribe .btn:hover { background: #fff8eb; color: #24443a; }
.subscribe .consent { color: #bdcbbf; margin-top: 12px; }
.subscribe .consent a { color: #e0c3a8; }
.subscribe .consent input { border-color: rgba(244, 237, 225, 0.5); background: transparent; }
.subscribe .consent input:checked { background: #e5ac88; border-color: #e5ac88; }
.subscribe .consent input:checked::after { border-color: #24443a; }
.form-note { font-size: 11.5px; color: #a9bdb0; margin: 10px 0 0; max-width: 460px; }
.form-status { font-size: 13px; margin: 10px 0 0; min-height: 0; }
.form-status.is-ok { color: #f0d3ae; }
.form-status.is-error { color: #ffb8a0; }
.subscribe.is-sent .subscribe-row { opacity: 0.55; pointer-events: none; }

/* ---------- Page head ---------- */

.page-head {
  padding: 48px 0 40px;
  border-bottom: 1px solid var(--line);
  background-image:
    linear-gradient(rgba(35, 32, 28, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(35, 32, 28, 0.03) 1px, transparent 1px);
  background-size: 30px 30px;
  background-position: center -1px;
}
[data-theme="dusk"] .page-head {
  background-image:
    linear-gradient(rgba(238, 231, 218, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(238, 231, 218, 0.03) 1px, transparent 1px);
}
.crumbs {
  display: flex;
  gap: 9px;
  align-items: center;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 30px;
}
.crumbs a { color: var(--ink-faint); text-decoration: none; }
.crumbs a:hover { color: var(--coral); }
.page-head-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 60px;
  align-items: end;
}
.page-head h1 { font-size: clamp(42px, 5vw, 64px); line-height: 1.02; letter-spacing: -0.03em; }
.page-head-lead { color: var(--ink-soft); font-size: 15.5px; max-width: 430px; justify-self: end; }
.page-head-lead p:last-child { margin-bottom: 0; }

/* ---------- Article ---------- */

.article-head { padding: 44px 0 38px; border-bottom: 1px solid var(--line); }
.article-head-inner { max-width: 900px; }
.article-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 18px;
}
.kicker-mark { font-size: 12px; }
.article-head h1 {
  font-size: clamp(38px, 5vw, 60px);
  line-height: 1.03;
  letter-spacing: -0.03em;
  max-width: 900px;
  margin-bottom: 20px;
}
.article-lead { font-family: var(--serif); font-size: 20px; line-height: 1.5; color: var(--ink-soft); max-width: 760px; margin-bottom: 24px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 11px; letter-spacing: 0.05em; color: var(--ink-faint); }
.article-meta a { color: var(--ink-faint); }
.article-meta a:hover { color: var(--coral); }

.article-shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 58px;
  padding-top: 48px;
  padding-bottom: 80px;
  align-items: start;
}
.article-aside { position: sticky; top: 112px; }
.toc { border-top: 1px solid var(--ink); padding-top: 14px; }
.toc-title { font-size: 9.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 12px; }
.toc-link {
  display: flex;
  gap: 10px;
  padding: 7px 0;
  font-size: 12.5px;
  line-height: 1.35;
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.toc-link span { font-family: var(--serif); font-size: 10px; color: var(--ink-faint); padding-top: 2px; }
.toc-link:hover, .toc-link.is-active { color: var(--coral); }
.toc-link.is-active span { color: var(--coral); }
.aside-note {
  margin-top: 28px;
  padding: 16px 16px 14px;
  background: var(--coral-soft);
  border: 1px solid color-mix(in srgb, var(--coral) 26%, var(--line));
  font-family: var(--hand);
  font-size: 19px;
  line-height: 1.25;
  color: var(--coral);
  transform: rotate(-1deg);
}
.aside-note p { margin: 0; }
.aside-mail {
  display: inline-block;
  margin-top: 22px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
}
.aside-mail:hover { color: var(--coral); }

.article-main { max-width: 780px; min-width: 0; }
.article-cover { margin: 0 0 38px; }
.article-cover img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border: 1px solid var(--line); filter: saturate(0.92) contrast(0.98); }
.article-cover figcaption { font-size: 11px; color: var(--ink-faint); margin-top: 9px; font-style: italic; }
.article-stamp {
  display: flex;
  align-items: center;
  gap: 18px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
  margin-bottom: 32px;
}
.stamp-glyph { font-family: var(--serif); font-size: 38px; color: var(--coral); line-height: 1; }
.stamp-text { font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-faint); }

.article-body {
  font-size: 18px;
  line-height: 1.78;
  color: var(--ink);
  max-width: 720px;
}
.article-body > p:first-of-type::first-letter {
  float: left;
  font-family: var(--serif);
  font-size: 70px;
  line-height: 0.78;
  padding: 6px 10px 0 0;
  color: var(--green);
}
.article-body h2 {
  font-size: clamp(27px, 3vw, 34px);
  line-height: 1.15;
  margin: 2.2em 0 0.7em;
  padding-top: 0.7em;
  border-top: 1px solid var(--line);
  scroll-margin-top: 120px;
}
.h2-num {
  display: block;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--coral);
  margin-bottom: 8px;
}
.article-body h3 { font-size: 23px; margin: 1.8em 0 0.6em; }
.article-body p { margin-bottom: 1.25em; }
.article-body a { text-decoration-color: var(--coral); }
.article-body ul { padding-left: 0; list-style: none; }
.article-body ul li { position: relative; padding-left: 22px; margin-bottom: 0.7em; }
.article-body ul li::before { content: '—'; position: absolute; left: 0; color: var(--coral); }
.article-body blockquote {
  margin: 2em 0;
  padding: 4px 0 4px 26px;
  border-left: 2px solid var(--coral);
  font-family: var(--serif);
  font-size: 23px;
  line-height: 1.42;
  color: var(--green);
}
[data-theme="dusk"] .article-body blockquote { color: var(--green); }
.article-body blockquote p { margin-bottom: 0.4em; }
.note-box {
  margin: 2em 0;
  background: var(--green-soft);
  border: 1px solid color-mix(in srgb, var(--green) 20%, var(--line));
  border-left: 3px solid var(--green);
  padding: 20px 24px 18px;
  font-size: 16px;
  line-height: 1.65;
}
.note-box p:last-child { margin-bottom: 0; }
.note-box-title { font-size: 9.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--green); margin-bottom: 8px; }
.section-note { font-size: 14px; font-style: italic; color: var(--ink-faint); border-left: 1px solid var(--line-strong); padding-left: 16px; }
.article-body .rule { margin: 2.4em 0; border-top: 1px dashed var(--line-strong); }

.article-check { counter-reset: check; }
.article-check li {
  counter-increment: check;
  position: relative;
  padding: 13px 14px 13px 48px;
  margin-bottom: 8px;
  background: var(--card);
  border: 1px solid var(--line);
  font-size: 15.5px;
  line-height: 1.55;
  transition: border-color 0.2s, background 0.2s;
}
.article-check li::before {
  content: counter(check);
  position: absolute;
  left: 14px;
  top: 13px;
  width: 22px;
  height: 22px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 11px;
  color: var(--ink-faint);
}
.article-check li.is-checked { border-color: var(--green); background: var(--green-soft); }
.article-check li.is-checked::before { content: '✓'; background: var(--green); border-color: var(--green); color: var(--paper); font-family: var(--sans); font-size: 12px; }
.article-check li label { cursor: pointer; display: block; }
.article-check li input { position: absolute; opacity: 0; pointer-events: none; }
.check-counter { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); margin: 4px 0 0; }

.post-ideas { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 1.6em 0; }
.post-idea {
  position: relative;
  background: var(--paper-2);
  border: 1px solid var(--line);
  padding: 20px 20px 52px;
  margin: 0;
}
.post-idea-num { font-family: var(--serif); font-size: 13px; color: var(--coral); margin-bottom: 8px; }
.post-idea-text { font-size: 14.5px; line-height: 1.55; margin: 0; }
.copy-btn {
  position: absolute;
  right: 12px;
  bottom: 12px;
  border: 1px solid var(--line-strong);
  background: var(--card);
  padding: 5px 10px;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border-radius: 2px;
}
.copy-btn:hover { border-color: var(--ink); color: var(--ink); }

.article-notes { margin-top: 48px; border-top: 1px solid var(--ink); padding-top: 18px; }
.notes-title { font-size: 9.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--coral); margin-bottom: 16px; }
.notes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.margin-note { margin: 0; font-size: 13px; line-height: 1.5; color: var(--ink-soft); background: var(--card); border: 1px solid var(--line); padding: 14px 14px 14px 36px; position: relative; }
.margin-note span { position: absolute; left: 12px; top: 14px; font-family: var(--serif); font-size: 10px; color: var(--coral); }

.article-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
  margin-top: 26px;
}
.article-sign { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-family: var(--serif); font-size: 13px; font-style: italic; color: var(--ink-faint); }
.article-sign svg { width: 13px; height: 13px; color: var(--coral); }

.related { margin-top: 56px; }

/* ---------- Comments ---------- */

.comments { margin-top: 64px; scroll-margin-top: 120px; }
.comments-head { position: relative; border-top: 1px solid var(--ink); padding-top: 20px; margin-bottom: 24px; }
.comments-head h2 { font-size: 32px; }
.comments-count { position: absolute; right: 0; bottom: 6px; font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); }
.comments-list { display: flex; flex-direction: column; gap: 0; border-top: 0; }
.comment { display: flex; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.comment-avatar {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 15px;
  color: #fffdf8;
  border: 1px solid rgba(35, 32, 28, 0.15);
}
.av-1 { background: #8a5a44; }
.av-2 { background: #4f6f5c; }
.av-3 { background: #4a6b80; }
.av-4 { background: #9a7b45; }
.av-5 { background: #77617f; }
.av-6 { background: #a05a4c; }
.comment-body { min-width: 0; flex: 1; }
.comment-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 4px; }
.comment-name { font-size: 14px; font-weight: 600; }
.comment-head time { font-size: 10.5px; color: var(--ink-faint); }
.comment-body p { font-size: 14.5px; line-height: 1.58; color: var(--ink-soft); margin: 0 0 6px; }
.comment-reply { border: 0; background: none; padding: 0; font-size: 11px; color: var(--ink-faint); text-decoration: underline; text-underline-offset: 3px; }
.comment-reply:hover { color: var(--coral); }
.comment.is-new { animation: flash 2.4s ease; }
@keyframes flash { 0% { background: var(--green-soft); } 100% { background: transparent; } }

.comment-form { margin-top: 30px; background: var(--card); border: 1px solid var(--line); padding: 24px; }
.comment-form-title { font-family: var(--serif); font-size: 22px; margin-bottom: 16px; }
.comment-fields { display: grid; grid-template-columns: 1fr; gap: 14px; margin-bottom: 14px; }
.comment-form-foot { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 14px; }
.comment-form .form-note { color: var(--ink-faint); margin: 0; max-width: 400px; }
.comment-form .form-status.is-ok { color: var(--green); }
.comment-form .form-status.is-error { color: var(--coral); }
.comment-form .form-status a { color: inherit; }

/* ---------- Chitalnya ---------- */

.filters { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.filter {
  border: 1px solid var(--line);
  background: transparent;
  padding: 8px 14px;
  font-size: 12px;
  color: var(--ink-soft);
  border-radius: 20px;
  display: inline-flex;
  gap: 7px;
  align-items: center;
}
.filter span { font-size: 10px; color: var(--ink-faint); }
.filter:hover { border-color: var(--ink); color: var(--ink); }
.filter.is-active { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.filter.is-active span { color: var(--paper); opacity: 0.65; }
.search { margin-left: auto; position: relative; display: flex; align-items: center; }
.search-icon { position: absolute; left: 13px; color: var(--ink-faint); }
.search-icon svg { width: 16px; height: 16px; }
.search input {
  border: 1px solid var(--line);
  background: var(--card);
  padding: 9px 14px 9px 38px;
  font-size: 13px;
  width: 210px;
  border-radius: 20px;
}
.search input:focus { border-color: var(--green); outline: none; }
.filter-status { font-size: 11px; color: var(--ink-faint); min-height: 16px; margin-bottom: 22px; }
.filter-empty { text-align: center; padding: 50px 20px; color: var(--ink-soft); border: 1px dashed var(--line-strong); }
.is-hidden { display: none !important; }

/* ---------- Zapiski ---------- */

.timeline { border-top: 1px solid var(--ink); }
.timeline-item { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 34px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.timeline-date { display: flex; flex-direction: column; gap: 3px; font-size: 11px; letter-spacing: 0.06em; color: var(--ink-faint); text-transform: uppercase; padding-top: 5px; }
.timeline-date span { font-size: 10px; text-transform: none; letter-spacing: 0; }
.timeline-card { position: relative; }
.timeline-link { text-decoration: none; }
.timeline-link h2 { font-size: 27px; margin-bottom: 7px; }
.timeline-link p { font-size: 14px; color: var(--ink-soft); margin-bottom: 12px; max-width: 720px; }
.timeline-link:hover h2 { color: var(--green); }
.timeline-foot { display: flex; align-items: center; gap: 22px; font-size: 10.5px; color: var(--ink-faint); }

.news-shell { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 64px; padding-top: 46px; padding-bottom: 80px; align-items: start; }
.news-main { min-width: 0; max-width: 760px; }
.news-aside { display: flex; flex-direction: column; gap: 22px; position: sticky; top: 112px; }
.news-aside .aside-card h3 { font-size: 21px; }
.news-aside .aside-card h3 a { text-decoration: none; }
.aside-card--quote { background: var(--paper-2); border-style: dashed; }
.aside-card--quote p { font-family: var(--serif); font-size: 18px; line-height: 1.4; color: var(--ink); }
.aside-card--quote span { font-size: 10px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-faint); }

/* ---------- Praktika ---------- */

.tool-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
.tool-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--ink);
  padding: 28px 26px 24px;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}
a.tool-card:hover { transform: translate(-3px, -3px); box-shadow: var(--shadow-strong); color: var(--ink); }
.tool-num { position: absolute; top: 18px; right: 20px; font-family: var(--serif); font-size: 28px; color: var(--coral); line-height: 1; }
.tool-icon { width: 46px; height: 46px; color: var(--green); margin-bottom: 20px; }
.tool-icon svg { width: 100%; height: 100%; }
.tool-card h2 { font-size: 25px; margin-bottom: 9px; }
.tool-card > p { font-size: 13.5px; color: var(--ink-soft); line-height: 1.55; }
.tool-link { margin-top: auto; font-size: 12px; color: var(--coral); padding-top: 10px; }
.tool-card--timer { background: var(--paper-2); }
.tool-card--timer .btn { align-self: flex-start; }

.guides { border-top: 1px solid var(--ink); }
.guide { border-bottom: 1px solid var(--line); }
.guide summary {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 24px 4px;
  cursor: pointer;
  list-style: none;
}
.guide summary::-webkit-details-marker { display: none; }
.guide-glyph { font-family: var(--serif); font-size: 27px; color: var(--coral); width: 34px; flex: 0 0 34px; text-align: center; }
.guide-summary { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.guide-kicker { font-size: 9.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-faint); }
.guide-title { font-family: var(--serif); font-size: 24px; line-height: 1.2; transition: color 0.2s; }
.guide-lead { font-size: 13px; color: var(--ink-soft); max-width: 720px; }
.guide summary:hover .guide-title { color: var(--coral); }
.guide-toggle { margin-left: auto; flex: 0 0 22px; width: 22px; height: 22px; position: relative; }
.guide-toggle span { position: absolute; background: var(--ink-soft); transition: transform 0.2s; }
.guide-toggle span:first-child { left: 0; right: 0; top: 10px; height: 1.5px; }
.guide-toggle span:last-child { top: 0; bottom: 0; left: 10px; width: 1.5px; }
.guide[open] .guide-toggle span:last-child { transform: scaleY(0); }
.guide[open] .guide-title { color: var(--green); }
.guide-body { padding: 4px 4px 34px 56px; }
.guide-body.article-body { font-size: 16.5px; max-width: 760px; }
.guide-body.article-body > p:first-of-type::first-letter { float: none; font-size: inherit; padding: 0; color: inherit; }
.guide-body h2 { font-size: 26px; margin-top: 1.8em; }

.pause-band { padding: 60px 0; border-top: 1px solid var(--line); background: var(--paper-2); }
.pause-inner { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items: center; }
.pause-hand { font-family: var(--hand); font-size: clamp(28px, 3.4vw, 40px); line-height: 1.1; color: var(--coral); transform: rotate(-2deg); margin: 0; }
.pause-inner h2 { font-size: 31px; margin-bottom: 10px; }
.pause-inner p { color: var(--ink-soft); font-size: 14.5px; margin: 0; max-width: 520px; }

/* ---------- Calendar ---------- */

.calendar-bar, .check-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
  margin-bottom: 30px;
}
.calendar-progress, .check-progress { min-width: 260px; flex: 1; max-width: 420px; }
.cal-label { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 7px; }
.cal-label strong { color: var(--green); font-weight: 600; }
.cal-track { height: 4px; background: var(--line); position: relative; overflow: hidden; }
.cal-track span { display: block; height: 100%; width: 0; background: var(--green); transition: width 0.35s ease; }
.calendar-actions { display: flex; align-items: center; gap: 16px; }
.cal-note { font-size: 10.5px; color: var(--ink-faint); }

.task-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.task {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  padding: 20px 20px 18px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, background 0.2s;
}
.task.is-today { border-color: var(--coral); box-shadow: 3px 3px 0 color-mix(in srgb, var(--coral) 28%, transparent); }
.task.is-today::before {
  content: 'сегодня';
  position: absolute;
  top: -9px;
  left: 14px;
  background: var(--coral);
  color: var(--paper);
  font-size: 8.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 3px 7px;
}
.task.is-done { background: var(--green-soft); border-color: color-mix(in srgb, var(--green) 40%, var(--line)); }
.task-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.task-day { font-size: 9.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-faint); }
.task-done-label { display: none; font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--green); }
.task.is-done .task-done-label { display: inline; }
.task h3 { font-size: 20px; margin-bottom: 7px; }
.task-text { font-size: 13.5px; line-height: 1.55; color: var(--ink-soft); margin-bottom: 12px; }
.task-answer { margin-bottom: 12px; border-top: 1px dashed var(--line); padding-top: 8px; }
.task-answer summary { font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--coral); cursor: pointer; list-style: none; }
.task-answer summary::-webkit-details-marker { display: none; }
.task-answer p { font-size: 12.5px; line-height: 1.5; color: var(--ink-soft); background: var(--paper-2); padding: 10px 12px; margin: 8px 0 0; }
.task-mark {
  margin-top: auto;
  border: 1px solid var(--line-strong);
  background: transparent;
  padding: 7px 10px;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.task-mark:hover { border-color: var(--green); color: var(--green); }
.task.is-done .task-mark { background: var(--green); border-color: var(--green); color: var(--paper); }
.calendar-foot { display: grid; grid-template-columns: auto 1fr; gap: 40px; align-items: center; border-top: 1px dashed var(--line-strong); margin-top: 36px; padding-top: 24px; }
.calendar-foot p:last-child { font-size: 13px; color: var(--ink-soft); max-width: 600px; margin: 0; }

/* ---------- Check ---------- */

.check-wrap { max-width: 880px; }
.check-explain { font-size: 14px; color: var(--ink-soft); max-width: 640px; border-left: 2px solid var(--coral); padding-left: 16px; margin-bottom: 30px; }
.check-list { display: flex; flex-direction: column; gap: 16px; }
.check-q { background: var(--card); border: 1px solid var(--line); padding: 22px 24px 18px; position: relative; }
.check-q.is-answered { border-color: color-mix(in srgb, var(--green) 45%, var(--line)); }
.check-q-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.check-area { font-size: 9.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--coral); }
.check-q-num { font-family: var(--serif); font-size: 13px; color: var(--ink-faint); }
.check-q h2 { font-size: 23px; line-height: 1.25; margin-bottom: 16px; }
.check-scale { display: flex; flex-wrap: wrap; gap: 8px; }
.scale-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  background: transparent;
  padding: 8px 13px;
  font-size: 12px;
  color: var(--ink-soft);
  border-radius: 20px;
}
.scale-btn:hover { border-color: var(--ink); color: var(--ink); }
.scale-dot { width: 8px; height: 8px; border-radius: 50%; border: 1px solid currentColor; }
.scale-btn[data-v="2"].is-active { background: var(--green); border-color: var(--green); color: var(--paper); }
.scale-btn[data-v="2"].is-active .scale-dot { background: var(--paper); border-color: var(--paper); }
.scale-btn[data-v="1"].is-active { background: var(--gold); border-color: var(--gold); color: #fffdf8; }
.scale-btn[data-v="1"].is-active .scale-dot { background: #fffdf8; border-color: #fffdf8; }
.scale-btn[data-v="0"].is-active { background: var(--coral); border-color: var(--coral); color: #fffdf8; }
.scale-btn[data-v="0"].is-active .scale-dot { background: #fffdf8; border-color: #fffdf8; }
.check-hint { margin-top: 14px; border-top: 1px dashed var(--line); padding-top: 10px; }
.check-hint summary { font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); cursor: pointer; list-style: none; }
.check-hint summary::-webkit-details-marker { display: none; }
.check-hint summary:hover { color: var(--coral); }
.check-hint p { font-size: 13px; color: var(--ink-soft); margin: 8px 0 0; }

.check-result { margin-top: 40px; background: var(--green-deep); color: #f4ede1; padding: 34px 36px 30px; border: 1px solid var(--green-deep); scroll-margin-top: 120px; }
.check-result .section-kicker { color: #e0a180; }
.check-result h2 { color: #f7f0e4; font-size: 32px; margin-bottom: 12px; }
.result-text { color: #cfdbd2; font-size: 15px; max-width: 680px; }
.result-areas { border-top: 1px solid rgba(244, 237, 225, 0.22); padding-top: 14px; margin: 20px 0 16px; }
.result-areas-title { font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: #a9bdb0; margin-bottom: 8px; }
.result-areas ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.result-areas li { border: 1px solid rgba(244, 237, 225, 0.4); padding: 5px 10px; font-size: 12px; margin: 0; color: #f4ede1; }
.result-note { font-size: 12px; color: #a9bdb0; }
.result-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 18px; }
.result-actions .btn { border-color: #f4ede1; background: #f4ede1; color: #24443a; }
.result-actions .link-arrow { color: #f4ede1; border-color: rgba(244, 237, 225, 0.4); }
.check-foot { display: grid; grid-template-columns: auto 1fr; gap: 36px; align-items: center; margin-top: 34px; border-top: 1px dashed var(--line-strong); padding-top: 22px; }
.check-foot p:last-child { font-size: 12.5px; color: var(--ink-faint); margin: 0; }

/* ---------- About ---------- */

.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 64px; align-items: start; }
.about-story { max-width: 720px; }
.about-story .about-drop { font-family: var(--serif); font-size: 21px; line-height: 1.5; color: var(--ink); }
.about-story .about-drop::first-letter { float: none; font-size: inherit; padding: 0; color: inherit; }
.about-principles { display: grid; gap: 0; margin: 1.4em 0 2em; border-top: 1px solid var(--ink); }
.about-principles > div { display: grid; grid-template-columns: 34px 150px minmax(0, 1fr); gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.about-principles span { font-family: var(--serif); font-size: 12px; color: var(--coral); }
.about-principles h3 { font-size: 19px; }
.about-principles p { font-size: 13.5px; color: var(--ink-soft); margin: 0; }
.about-list li { font-size: 15px; }
.about-optional { margin-top: 2em; padding: 18px 20px; background: var(--paper-2); border-left: 2px solid var(--green); font-size: 14px; color: var(--ink-soft); }
.about-aside { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 112px; }
.about-card { background: var(--card); border: 1px solid var(--line); padding: 22px; box-shadow: var(--shadow); }
.about-card dl { display: grid; grid-template-columns: 56px 1fr; gap: 10px 10px; margin: 0; align-items: baseline; }
.about-card dt { font-family: var(--serif); font-size: 28px; color: var(--green); line-height: 1; }
.about-card dd { margin: 0; font-size: 11.5px; color: var(--ink-faint); line-height: 1.3; }
.about-card--hand { background: var(--coral-soft); border-color: color-mix(in srgb, var(--coral) 30%, var(--line)); font-family: var(--hand); font-size: 21px; line-height: 1.2; color: var(--coral); transform: rotate(-1deg); }
.about-card--hand p { margin: 0 0 8px; }
.about-card--hand span { font-family: var(--sans); font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-faint); }
.about-req { font-size: 12px; line-height: 1.6; color: var(--ink-soft); }
.about-card .link-arrow { font-size: 12px; }

/* ---------- Contacts ---------- */

.contacts-grid { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 64px; align-items: start; }
.contact-main { max-width: 730px; }
.contact-card { background: var(--card); border: 1px solid var(--line); padding: 26px 28px; box-shadow: var(--shadow); }
.contact-label { font-size: 9.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--coral); margin-bottom: 8px; }
.contact-mail { display: inline-block; font-family: var(--serif); font-size: clamp(26px, 3.4vw, 40px); color: var(--ink); text-decoration: none; border-bottom: 2px solid var(--coral); margin-bottom: 12px; word-break: break-word; }
.contact-mail:hover { color: var(--green); }
.contact-note { font-size: 13.5px; color: var(--ink-soft); margin: 10px 0 0; max-width: 520px; }
.contact-topics { margin-top: 38px; }
.contact-topics h2, .contact-faq h2 { font-size: 30px; margin-bottom: 16px; }
.contact-topics ul { list-style: none; padding: 0; border-top: 1px solid var(--line); }
.contact-topics li { padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--ink-soft); margin: 0; }
.contact-topics strong { color: var(--ink); font-weight: 500; }
.contact-faq { margin-top: 36px; }
.contact-faq details { border-top: 1px solid var(--line); }
.contact-faq details:last-child { border-bottom: 1px solid var(--line); }
.contact-faq summary { cursor: pointer; padding: 14px 24px 14px 0; position: relative; font-size: 14.5px; list-style: none; }
.contact-faq summary::-webkit-details-marker { display: none; }
.contact-faq summary::after { content: '+'; position: absolute; right: 4px; top: 12px; font-size: 18px; color: var(--coral); }
.contact-faq details[open] summary::after { content: '−'; }
.contact-faq p { font-size: 13.5px; color: var(--ink-soft); padding: 0 0 14px; margin: 0; max-width: 620px; }
.contact-aside { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 112px; }
.contact-card--requisites { background: var(--paper-2); }
.contact-req { font-size: 12.5px; line-height: 1.7; color: var(--ink-soft); }
.contact-small { font-size: 11px; color: var(--ink-faint); line-height: 1.6; }
.contact-card--hand { background: var(--coral-soft); font-family: var(--hand); font-size: 22px; color: var(--coral); transform: rotate(1deg); }
.contact-card--hand p { margin: 0 0 8px; }
.contact-card--hand svg { width: 110px; height: 64px; color: var(--coral); }
.contact-card--hours p { font-size: 13px; color: var(--ink-soft); margin: 0; }

/* ---------- Legal ---------- */

.legal-shell { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 64px; align-items: start; }
.legal-aside { position: sticky; top: 112px; }
.toc--legal .toc-link { font-size: 12px; }
.legal-docs { margin-top: 28px; border-top: 1px solid var(--line); padding-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.legal-docs .toc-title { margin-bottom: 2px; }
.legal-docs a { font-size: 12px; color: var(--ink-soft); text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 4px; }
.legal-docs a:hover { color: var(--coral); }
.legal-body { max-width: 760px; font-size: 15.5px; }
.legal-body > p:first-of-type::first-letter { float: none; font-size: inherit; padding: 0; color: inherit; }
.legal-body h2 { font-size: 25px; margin-top: 1.9em; }
.legal-note { background: var(--paper-2); border-left: 2px solid var(--blue); padding: 16px 18px; font-size: 14px; color: var(--ink-soft); }
.legal-table-wrap { overflow-x: auto; margin: 1.4em 0; }
.legal-table { border-collapse: collapse; width: 100%; font-size: 13px; }
.legal-table th, .legal-table td { border: 1px solid var(--line); padding: 9px 12px; text-align: left; vertical-align: top; }
.legal-table th { background: var(--paper-2); font-weight: 500; }
.legal-foot { margin-top: 3em; border-top: 1px solid var(--line); padding-top: 18px; font-size: 12px; color: var(--ink-faint); }
.legal-foot p { margin-bottom: 6px; }

/* ---------- 404 ---------- */

.lost { padding: 80px 0 100px; }
.lost-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 64px; align-items: center; }
.lost-num { font-family: var(--serif); font-size: clamp(130px, 20vw, 260px); line-height: 0.8; color: var(--line-strong); letter-spacing: -0.06em; display: flex; align-items: center; }
.lost-num span { font-size: 0.32em; color: var(--coral); margin: 0 6px; }
.lost-body h1 { font-size: clamp(42px, 5vw, 64px); margin: 12px 0 16px; }
.lost-body > p { color: var(--ink-soft); max-width: 460px; }
.lost-links { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin: 26px 0 18px; }

/* ---------- Footer ---------- */

.site-foot { border-top: 1px solid var(--ink); background: var(--paper-2); padding-top: 54px; }
.foot-top { display: grid; grid-template-columns: 1.5fr 0.8fr 1fr 1fr; gap: 44px; padding-bottom: 44px; }
.foot-word { font-family: var(--serif); font-size: 36px; line-height: 1; margin-bottom: 12px; letter-spacing: -0.03em; }
.foot-word .dot { color: var(--coral); }
.foot-line { font-size: 12.5px; color: var(--ink-soft); line-height: 1.55; }
.foot-mark { display: flex; align-items: center; gap: 7px; font-size: 9.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-faint); margin-top: 18px; }
.foot-mark svg { width: 13px; height: 13px; color: var(--coral); }
.foot-col { display: flex; flex-direction: column; gap: 8px; }
.foot-title { font-size: 9.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 4px; }
.foot-col a { font-size: 12.5px; color: var(--ink-soft); text-decoration: none; }
.foot-col a:hover { color: var(--coral); }
.foot-mail { font-family: var(--serif); font-size: 17px; color: var(--ink); }
.foot-small { font-size: 11px; color: var(--ink-faint); line-height: 1.5; }
.foot-bottom {
  border-top: 1px solid var(--line);
  padding: 16px 0 20px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 10.5px;
  color: var(--ink-faint);
}
.foot-bottom p { margin: 0; max-width: 740px; }

/* ---------- Cookie, modal, toast ---------- */

.cookie {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 18px;
  z-index: 200;
  display: flex;
  justify-content: center;
  padding: 0 18px;
  pointer-events: none;
}
.cookie[hidden] { display: none; }
.cookie-card {
  pointer-events: auto;
  width: min(920px, 100%);
  background: var(--card);
  border: 1px solid var(--ink);
  box-shadow: 8px 8px 0 rgba(35, 32, 28, 0.18);
  padding: 18px 20px;
  display: flex;
  gap: 24px;
  align-items: center;
}
.cookie-text { flex: 1; }
.cookie-title { font-family: var(--serif); font-size: 19px; margin-bottom: 4px; }
.cookie-text p:last-child { font-size: 12px; line-height: 1.5; color: var(--ink-soft); margin: 0; }
.cookie-text a { color: var(--ink-soft); }
.cookie-actions { display: flex; flex-direction: column; align-items: stretch; gap: 8px; flex: 0 0 190px; }
.cookie-actions .link-btn { text-align: center; font-size: 11px; }

dialog.modal {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: 100vw;
  max-height: 100vh;
  width: 100%;
  height: 100%;
  margin: 0;
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  z-index: 300;
}
dialog.modal[open] { display: grid; }
dialog.modal::backdrop { background: rgba(24, 22, 19, 0.55); backdrop-filter: blur(3px); }
.modal-inner {
  position: relative;
  width: min(560px, calc(100vw - 36px));
  max-height: calc(100vh - 54px);
  overflow: auto;
  background: var(--card);
  border: 1px solid var(--ink);
  box-shadow: 10px 10px 0 rgba(24, 22, 19, 0.25);
  padding: 30px 32px 26px;
  margin: auto;
}
.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  background: transparent;
  display: grid;
  place-items: center;
  color: var(--ink-soft);
}
.modal-close:hover { border-color: var(--ink); color: var(--ink); }
.modal-close svg { width: 15px; height: 15px; }
.modal-kicker { font-size: 9.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--coral); margin-bottom: 8px; }
.modal-inner h2 { font-size: 30px; margin-bottom: 10px; }
.modal-lead { font-size: 13px; color: var(--ink-soft); margin-bottom: 18px; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); padding: 13px 0; cursor: pointer; }
.switch-row strong { font-size: 13.5px; font-weight: 500; }
.switch-row small { font-size: 11px; color: var(--ink-faint); }
.switch-row input { appearance: none; width: 38px; height: 21px; border-radius: 20px; background: var(--line-strong); position: relative; flex: 0 0 38px; transition: background 0.2s; }
.switch-row input::after { content: ''; position: absolute; top: 3px; left: 3px; width: 15px; height: 15px; border-radius: 50%; background: var(--card); transition: transform 0.2s; }
.switch-row input:checked { background: var(--green); }
.switch-row input:checked::after { transform: translateX(17px); }
.switch-row input:disabled { opacity: 0.6; }
.modal-actions { display: flex; align-items: center; gap: 18px; margin-top: 20px; }

.legal-modal { width: min(860px, 100%); }
.legal-modal-inner { width: min(860px, calc(100vw - 36px)); }
.legal-modal-title { font-size: 28px; }
.legal-modal-body { font-size: 14px; line-height: 1.65; border-top: 1px solid var(--line); padding-top: 16px; }
.legal-modal-body h2 { font-family: var(--sans); font-size: 15px; font-weight: 600; margin: 1.4em 0 0.4em; }
.legal-modal-body p { margin-bottom: 0.8em; }
.legal-modal-body ul { padding-left: 1.1em; }
.legal-modal-body .legal-note { font-size: 13px; }
.legal-modal-foot { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 12px; font-size: 12px; }
.legal-loading { color: var(--ink-faint); }

.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translate(-50%, 20px);
  background: var(--ink);
  color: var(--paper);
  padding: 11px 20px;
  font-size: 13px;
  border-radius: 2px;
  z-index: 400;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
  max-width: calc(100vw - 40px);
  text-align: center;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Reveal, motion ---------- */

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

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .hero-grid { gap: 44px; }
  .hand-note--hero { left: -10px; }
  .issue-grid { gap: 36px; }
  .article-shell { grid-template-columns: 190px minmax(0, 1fr); gap: 38px; }
  .about-grid, .contacts-grid { gap: 40px; }
  .news-shell { gap: 40px; grid-template-columns: minmax(0, 1fr) 270px; }
  .legal-shell { grid-template-columns: 220px minmax(0, 1fr); gap: 40px; }
  .task-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 54px; }
  .hero-main h1 { font-size: clamp(46px, 9vw, 72px); }
  .hero-feature { max-width: 620px; }
  .feature-pin { right: 0; }
  .hand-note--hero { bottom: -40px; left: auto; right: 10px; }
  .issue-grid { grid-template-columns: 1fr; }
  .issue-aside { flex-direction: row; flex-wrap: wrap; }
  .issue-aside .aside-card { flex: 1 1 260px; }
  .manifesto-grid { grid-template-columns: 1fr; gap: 36px; }
  .manifesto-points { gap: 20px; }
  .card-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .practice-grid { grid-template-columns: 1fr; gap: 36px; }
  .practice-intro > p { max-width: none; }
  .subscribe-grid { grid-template-columns: 1fr; gap: 30px; }
  .page-head-grid { grid-template-columns: 1fr; gap: 22px; }
  .page-head-lead { justify-self: start; max-width: 620px; }
  .article-shell { grid-template-columns: 1fr; }
  .article-aside { position: static; order: -1; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
  .article-aside .toc { grid-row: span 2; }
  .aside-note { margin-top: 0; }
  .article-main { max-width: 100%; }
  .news-shell { grid-template-columns: 1fr; }
  .news-aside { position: static; flex-direction: row; flex-wrap: wrap; }
  .news-aside .aside-card { flex: 1 1 260px; }
  .tool-grid { grid-template-columns: 1fr 1fr; }
  .tool-card--timer { grid-column: 1 / -1; }
  .guides .guide-body { padding-left: 0; }
  .about-grid, .contacts-grid { grid-template-columns: 1fr; }
  .about-aside, .contact-aside { position: static; flex-direction: row; flex-wrap: wrap; }
  .about-aside > *, .contact-aside > * { flex: 1 1 240px; }
  .legal-shell { grid-template-columns: 1fr; }
  .legal-aside { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
  .lost-grid { grid-template-columns: 1fr; gap: 30px; }
  .lost-num { font-size: 150px; }
  .pause-inner { grid-template-columns: 1fr; gap: 24px; }
  .foot-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .wrap { width: min(var(--wrap), calc(100% - 32px)); }
  .head-row { grid-template-columns: 1fr auto; padding: 13px 0 11px; }
  .head-issue { display: none; }
  .head-sub { display: none; }
  .nav-toggle { display: flex; }
  .site-nav {
    position: fixed;
    inset: 88px 0 auto 0;
    background: var(--paper);
    border-bottom: 1px solid var(--ink);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s, transform 0.2s;
    max-height: calc(100vh - 88px);
    overflow: auto;
  }
  .nav-open .site-nav { opacity: 1; transform: none; pointer-events: auto; }
  .nav-row { flex-direction: column; align-items: flex-start; gap: 0; padding: 8px 0 18px; }
  .nav-row a { font-size: 18px; font-family: var(--serif); text-transform: none; letter-spacing: 0; padding: 13px 0; width: 100%; border-bottom: 1px solid var(--line); }
  .nav-row a.is-active { border-bottom-color: var(--line); color: var(--coral); }
  .nav-note { margin: 14px 0 0; }
  .hero { padding-top: 34px; }
  .hero-grid { padding-bottom: 34px; }
  .hero-lead { font-size: 16.5px; }
  .hero-stats > div { padding-right: 10px; }
  .hero-stats strong { font-size: 21px; }
  .hand-note--hero { position: static; display: block; margin-top: 18px; text-align: right; }
  .feature-pin { top: -46px; }
  .feature-pin svg { width: 70px; }
  .feature-body { padding: 20px; }
  .feature h2 { font-size: 24px; }
  .section { padding: 58px 0; }
  .section--flush { padding-top: 26px; }
  .section-head { grid-template-columns: 1fr; gap: 10px; margin-bottom: 26px; }
  .section-link { justify-self: start; }
  .issue-row { grid-template-columns: 28px 1fr; gap: 4px 12px; }
  .issue-cat { grid-column: 2; grid-row: 1; }
  .issue-title { grid-column: 2; }
  .issue-meta { grid-column: 2; }
  .manifesto { padding: 50px 0; }
  .manifesto-points { grid-template-columns: 1fr; gap: 8px; }
  .manifesto-point { padding-top: 14px; }
  .card-grid--3 { grid-template-columns: 1fr; }
  .note-row { grid-template-columns: 1fr; gap: 5px; }
  .note-comments { padding-top: 0; }
  .subscribe-band { padding: 48px 0; }
  .subscribe-row { flex-direction: column; align-items: stretch; }
  .subscribe .btn { width: 100%; }
  .page-head { padding: 34px 0 28px; }
  .crumbs { margin-bottom: 20px; }
  .page-head h1 { font-size: clamp(36px, 9vw, 50px); }
  .article-head { padding: 32px 0 28px; }
  .article-head h1 { font-size: clamp(32px, 8vw, 46px); }
  .article-lead { font-size: 17.5px; }
  .article-shell { padding-top: 30px; padding-bottom: 56px; }
  .article-aside { grid-template-columns: 1fr; gap: 18px; }
  .article-aside .toc { grid-row: auto; }
  .aside-note { display: none; }
  .article-body { font-size: 17px; line-height: 1.72; }
  .article-body > p:first-of-type::first-letter { font-size: 56px; }
  .post-ideas { grid-template-columns: 1fr; }
  .notes-grid { grid-template-columns: 1fr; }
  .article-sign { margin-left: 0; width: 100%; }
  .comments-head h2, .related h2 { font-size: 27px; }
  .comments-count { position: static; display: block; margin-top: 4px; }
  .comment-form { padding: 18px; }
  .filters { gap: 8px; }
  .search { margin-left: 0; width: 100%; }
  .search input { width: 100%; }
  .timeline-item { grid-template-columns: 1fr; gap: 6px; padding: 20px 0; }
  .timeline-date { flex-direction: row; gap: 10px; padding-top: 0; }
  .timeline-link h2 { font-size: 23px; }
  .tool-grid { grid-template-columns: 1fr; }
  .tool-card--timer { grid-column: auto; }
  .guide summary { gap: 14px; padding: 18px 0; align-items: flex-start; }
  .guide-glyph { width: 24px; flex-basis: 24px; font-size: 21px; padding-top: 4px; }
  .guide-title { font-size: 20px; }
  .guide-lead { display: none; }
  .guide-toggle { margin-top: 6px; }
  .guide-body { padding: 0 0 26px 0; }
  .pause-inner h2 { font-size: 27px; }
  .calendar-bar, .check-bar { align-items: flex-start; flex-direction: column; gap: 12px; }
  .calendar-progress, .check-progress { width: 100%; max-width: none; }
  .task-grid { grid-template-columns: 1fr; }
  .calendar-foot, .check-foot { grid-template-columns: 1fr; gap: 14px; }
  .check-result { padding: 26px 22px 24px; }
  .check-q { padding: 18px 18px 16px; }
  .check-q h2 { font-size: 20px; }
  .about-principles > div { grid-template-columns: 26px 1fr; gap: 4px 12px; }
  .about-principles h3 { font-size: 18px; }
  .about-principles p { grid-column: 2; }
  .contact-topics h2, .contact-faq h2 { font-size: 26px; }
  .contact-card { padding: 20px; }
  .cookie-card { flex-direction: column; align-items: stretch; gap: 12px; padding: 16px; }
  .cookie-actions { flex: auto; flex-direction: row; flex-wrap: wrap; }
  .cookie-actions .btn { flex: 1 1 140px; }
  .modal-inner { padding: 24px 20px 22px; width: calc(100vw - 24px); }
  .legal-modal-inner { width: calc(100vw - 24px); }
  .foot-top { grid-template-columns: 1fr; gap: 26px; }
  .foot-bottom { flex-direction: column; gap: 8px; }
  .timer--mini { align-items: flex-start; }
  .timer-ring { flex-basis: 66px; width: 66px; height: 66px; }
  .timer--inline .timer-ring { flex-basis: 82px; width: 82px; height: 82px; }
}

@media (max-width: 460px) {
  .hero-main h1 { font-size: 42px; }
  .brand-word { font-size: 27px; }
  .hero-actions { gap: 16px; }
  .hero-stats { gap: 0; }
  .hero-stats strong { display: block; }
  .hero-stats > div { flex-direction: column; gap: 2px; }
  .feature-cover .cover { aspect-ratio: 4 / 3; }
  .issue-aside { flex-direction: column; }
  .subscribe-hand { font-size: 19px; }
  .timer--mini, .timer--inline { flex-direction: column; align-items: center; text-align: center; }
  .timer-body { align-items: center; }
  .scale-btn { flex: 1 1 100%; justify-content: center; }
  .contact-mail { font-size: 23px; }
}

/* ---------- Print ---------- */

@media print {
  .site-head, .site-foot, .cookie, .read-progress, .article-aside, .article-actions,
  .related, .comments, .subscribe-band, .toast, .skip-link, .pause-band, .page-head .crumbs,
  .guide-toggle, .task-mark, .calendar-bar, .check-bar, .check-scale, .check-hint,
  .result-actions, .timer { display: none !important; }
  body { background: #fff; color: #000; font-size: 12pt; }
  .article-shell, .news-shell, .check-wrap, .wrap { display: block; width: 100%; max-width: none; padding: 0; margin: 0; }
  .article-head { border: 0; padding: 0 0 12pt; }
  .article-head h1 { font-size: 24pt; }
  .article-body { font-size: 11.5pt; line-height: 1.5; max-width: none; }
  .article-body h2 { font-size: 16pt; page-break-after: avoid; }
  .article-cover img { max-height: 250px; object-fit: cover; }
  .check-q { page-break-inside: avoid; border: 1px solid #ccc; }
  .check-result { background: #f2f2f2; color: #000; }
  .check-result h2, .result-text, .result-areas li { color: #000; }
  a { text-decoration: none; color: #000; }
}
