/* ==========================================================================
   JasAq - весь дизайн сайта
   Цвета взяты из презентаций JasAq. Меняются здесь, в :root.
   ========================================================================== */

@font-face { font-family: 'Golos'; src: url('../assets/fonts/GolosText-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Golos'; src: url('../assets/fonts/GolosText-700.woff2') format('woff2'); font-weight: 600 800; font-display: swap; }
@font-face { font-family: 'Literata'; src: url('../assets/fonts/LiterataX-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Literata'; src: url('../assets/fonts/LiterataX-700.woff2') format('woff2'); font-weight: 600 800; font-display: swap; }

:root {
  /* бумага и чернила */
  --paper:   #F4F1EA;
  --paper-2: #EDE9DF;
  --card:    #FBFAF6;
  --ink:     #1E1B16;
  --ink-2:   #3B3832;
  --muted:   #6B665C;
  --faint:   #9A958B;
  --line:    #DCD7CC;
  --line-2:  #E8E4DA;

  /* фирменные */
  --blue:      #0349A9;
  --blue-2:    #1858B0;
  --blue-soft: #DBE6F7;
  --green:     #109554;
  --green-dk:  #0B6E3F;
  --green-soft:#D7EBDF;
  --mint:      #48D98C;
  --teal:      #066B7E;
  --cyan:      #0EB8D4;
  --cyan-soft: #DCF2F6;
  --night:     #062B5E;
  --red:       #B23A2B;
  --red-soft:  #F6E1DC;

  --serif: 'Literata', Georgia, 'Times New Roman', serif;
  --sans:  'Golos', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --r-sm: 8px;
  --r:    14px;
  --r-lg: 20px;
  --shell: 1120px;
  --shadow: 0 1px 0 rgba(30,27,22,.04), 0 8px 24px -12px rgba(30,27,22,.18);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 700; line-height: 1.12; margin: 0; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.25rem; line-height: 1.25; }
p { margin: 0; }
b, strong { font-weight: 700; }
::selection { background: var(--mint); color: var(--ink); }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; border-radius: 4px; }

.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }

.shell { max-width: var(--shell); margin: 0 auto; padding: 0 24px; }
.page { padding-top: 40px; padding-bottom: 96px; }
.narrow { max-width: 760px; }

/* ---------- типографика ---------- */
.eyebrow {
  display: inline-block;
  font: 700 .74rem/1.2 var(--sans);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 14px;
}
.rule { width: 56px; height: 4px; background: var(--green); border-radius: 2px; margin: 0 0 22px; border: 0; }
.lead { font-size: 1.16rem; color: var(--ink-2); max-width: 36em; margin-top: 18px; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: .86rem; }
.serif { font-family: var(--serif); }
.num { font-family: var(--serif); font-weight: 700; font-variant-numeric: lining-nums tabular-nums; }
.center { text-align: center; }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 24px;
  border: 0; border-radius: 12px;
  font: 700 1rem/1 var(--sans);
  text-decoration: none; cursor: pointer;
  transition: background .15s, color .15s, transform .08s, box-shadow .15s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: #023b8a; }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-dk); }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { background: #000; }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--paper); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: .92rem; border-radius: 10px; }
.btn[disabled] { opacity: .4; pointer-events: none; }
.btn .arr { transition: transform .15s; }
.btn:hover .arr { transform: translateX(3px); }

.link { color: var(--blue); font-weight: 700; text-decoration: none; border-bottom: 1.5px solid rgba(3,73,169,.25); }
.link:hover { border-color: var(--blue); }
.textbtn { background: none; border: 0; padding: 0; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: .9rem; }
.textbtn:hover { color: var(--ink); }

/* ---------- шапка ---------- */
.site-head {
  position: sticky; top: 0; z-index: 40;
  background: rgba(244,241,234,.92);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-head.scrolled { border-bottom-color: var(--line); }
.site-head .shell { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { height: 36px; width: auto; }
.brand span { font: 700 1.3rem/1 var(--serif); letter-spacing: -.01em; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a {
  padding: 8px 14px; border-radius: 10px;
  text-decoration: none; font-weight: 600; font-size: .95rem; color: var(--ink-2);
}
.nav a:hover { background: var(--paper-2); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--blue); background: var(--blue-soft); }
.lang { display: flex; background: var(--paper-2); border-radius: 10px; padding: 3px; }
.lang button {
  border: 0; background: none; cursor: pointer;
  padding: 6px 10px; border-radius: 8px;
  font: 700 .78rem/1 var(--sans); letter-spacing: .06em; color: var(--muted);
}
.lang button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08); }

/* нижняя панель на телефоне */
.tabbar { display: none; }
@media (max-width: 820px) {
  .nav { display: none; }
  .lang { margin-left: auto; }
  .site-head .shell { height: 60px; }
  .brand img { height: 32px; }
  .tabbar {
    display: grid; grid-template-columns: repeat(4, 1fr);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    background: rgba(251,250,246,.96);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--line);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  }
  .tabbar a {
    display: flex; flex-direction: column; align-items: center; gap: 3px;
    padding: 6px 0; text-decoration: none;
    font-size: .7rem; font-weight: 600; color: var(--muted);
  }
  .tabbar svg { width: 22px; height: 22px; }
  .tabbar a[aria-current="page"] { color: var(--blue); }
  body { padding-bottom: 70px; }
  body.focus-mode { padding-bottom: 0; }
}

/* ---------- подвал ---------- */
.site-foot { background: var(--ink); color: #CFCAC0; padding: 56px 0 40px; margin-top: 0; }
.site-foot .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-foot h4 { font: 700 .74rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--mint); margin-bottom: 16px; }
.site-foot a { text-decoration: none; color: #F4F1EA; }
.site-foot a:hover { color: var(--mint); }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.foot-brand img { height: 34px; background: var(--paper); border-radius: 8px; padding: 4px 6px; }
.foot-brand span { font: 700 1.25rem/1 var(--serif); color: #fff; }
.foot-note { font-size: .92rem; max-width: 26em; }
.foot-bottom { border-top: 1px solid #3B3832; margin-top: 40px; padding-top: 20px; font-size: .82rem; color: #8F897E; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
@media (max-width: 720px) { .site-foot .cols { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- сетки и карточки ---------- */
.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .g3, .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }

.card { background: var(--card); border-radius: var(--r-lg); padding: 26px; border: 1px solid var(--line-2); }
.card h3 { margin-bottom: 8px; }
.tint-blue  { background: var(--blue-soft); border-color: transparent; }
.tint-green { background: var(--green-soft); border-color: transparent; }
.tint-cyan  { background: var(--cyan-soft); border-color: transparent; }
.tint-paper { background: var(--paper-2); border-color: transparent; }
.solid-blue  { background: var(--blue); color: #fff; border-color: transparent; }
.solid-green { background: var(--green); color: #fff; border-color: transparent; }
.solid-ink   { background: var(--ink); color: var(--paper); border-color: transparent; }

.section { padding: 88px 0; }
.section-tight { padding: 56px 0; }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head .lead { margin-top: 12px; }
@media (max-width: 600px) { .section { padding: 64px 0; } }

/* ---------- главная ---------- */
.hero { padding: 48px 0 72px; }
.hero .shell { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero h1 { max-width: 12em; }
.hero h1 em { font-style: normal; color: var(--blue); }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.hero-meta { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 30px; color: var(--muted); font-size: .92rem; }
.hero-meta span { display: flex; align-items: center; gap: 8px; }
.hero-meta span::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.hero-photo { position: relative; }
.hero-photo .frame { background: var(--green-dk); border-radius: var(--r-lg); padding: 18px; transform: rotate(1.2deg); }
.hero-photo img { border-radius: 10px; aspect-ratio: 4/5; object-fit: cover; width: 100%; transform: rotate(-1.2deg); }
.hero-photo figcaption { margin-top: 14px; font-size: .84rem; color: var(--muted); text-align: right; }
.hero-photo .sticker {
  position: absolute; left: -28px; bottom: 54px;
  background: var(--card); border-radius: 14px; padding: 14px 18px;
  box-shadow: var(--shadow); max-width: 220px;
}
.sticker .num { font-size: 2rem; line-height: 1; color: var(--green); }
.sticker p { font-size: .86rem; color: var(--ink-2); margin-top: 4px; line-height: 1.35; }
@media (max-width: 900px) {
  .hero { padding-top: 24px; }
  .hero .shell { grid-template-columns: 1fr; gap: 40px; }
  .hero-photo { max-width: 420px; }
  .hero-photo .sticker { left: auto; right: -8px; bottom: 40px; }
}

/* полоса блоков (как слайд «Четыре недели, четыре блока») */
.blocks-strip { display: grid; grid-template-columns: repeat(4, 1fr); border-radius: var(--r-lg); overflow: hidden; }
.bstrip { padding: 34px 28px 30px; display: flex; flex-direction: column; min-height: 400px; text-decoration: none; color: inherit; transition: filter .2s; }
.bstrip:hover { filter: brightness(1.03); }
.bstrip .big { font: 700 4.2rem/1 var(--serif); letter-spacing: -.03em; }
.bstrip .bar { width: 48px; height: 4px; border-radius: 2px; margin: 18px 0 26px; }
.bstrip .wk { font: 700 .74rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; margin-bottom: 12px; }
.bstrip h3 { font-size: 1.45rem; margin-bottom: 14px; }
.bstrip ol { margin: auto 0 0; padding: 0; list-style: none; font-size: .95rem; display: grid; gap: 8px; }
.bstrip li { display: flex; gap: 10px; }
.bstrip li b { opacity: .6; font-weight: 700; min-width: 1.2em; }
.b1 { background: var(--blue-soft); }      .b1 .big, .b1 .wk { color: var(--blue-2); } .b1 .bar { background: var(--blue-2); }
.b2 { background: var(--blue); color: #fff; } .b2 .big, .b2 .wk { color: var(--mint); } .b2 .bar { background: var(--mint); }
.b3 { background: var(--green); color: #fff; } .b3 .big { color: #E9F7EE; } .b3 .wk { color: #fff; } .b3 .bar { background: #fff; }
.b4 { background: var(--cyan-soft); }      .b4 .big, .b4 .wk { color: var(--teal); } .b4 .bar { background: var(--teal); }
@media (max-width: 900px) { .blocks-strip { grid-template-columns: 1fr 1fr; } .bstrip { min-height: 320px; } }
@media (max-width: 520px) { .blocks-strip { grid-template-columns: 1fr; } .bstrip { min-height: 0; } .bstrip ol { margin-top: 20px; } }

/* Аружан */
.story { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: center; }
.story-card { background: var(--card); border-radius: var(--r-lg); padding: 32px; border: 1px solid var(--line-2); position: relative; }
.story-card .q { font: 700 1.35rem/1.3 var(--serif); margin-top: 16px; }
.story-card .tag { font: 700 .72rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--green); }
.story-card + .story-card { margin-top: 14px; }
.story-card.sm { padding: 22px 26px; }
.story-card.sm p { color: var(--ink-2); }
@media (max-width: 860px) { .story { grid-template-columns: 1fr; gap: 32px; } }

/* шаги урока */
.howto { counter-reset: s; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); }
.howto > div { padding: 26px 24px 0 0; border-right: 1px solid var(--line); margin-right: 24px; }
.howto > div:last-child { border-right: 0; margin-right: 0; }
.howto .n { font: 700 2.4rem/1 var(--serif); color: var(--blue); }
.howto h3 { margin: 14px 0 8px; font-size: 1.15rem; }
.howto p { color: var(--muted); font-size: .95rem; }
@media (max-width: 860px) {
  .howto { grid-template-columns: 1fr 1fr; row-gap: 28px; }
  .howto > div:nth-child(2) { border-right: 0; margin-right: 0; }
}
@media (max-width: 520px) { .howto { grid-template-columns: 1fr; } .howto > div { border-right: 0; margin-right: 0; } }

/* офлайн-история */
.offline { display: grid; grid-template-columns: 1.2fr .8fr; gap: 0; border-radius: var(--r-lg); overflow: hidden; background: var(--ink); color: var(--paper); }
.offline img { width: 100%; height: 100%; object-fit: cover; min-height: 340px; }
.offline .body { padding: 44px 40px; display: flex; flex-direction: column; justify-content: center; }
.offline .eyebrow { color: var(--mint); }
.offline .stats { display: flex; gap: 32px; margin: 26px 0 30px; }
.offline .stats .num { font-size: 2.6rem; line-height: 1; color: #fff; }
.offline .stats p { font-size: .86rem; color: #B9B3A8; margin-top: 6px; }
@media (max-width: 860px) { .offline { grid-template-columns: 1fr; } .offline .body { padding: 32px 26px; } }

/* полоса для воспитателей */
.band { background: var(--green-dk); color: #fff; border-radius: var(--r-lg); padding: 44px; display: flex; gap: 32px; align-items: center; justify-content: space-between; flex-wrap: wrap; position: relative; overflow: hidden; }
.band h2 { font-size: clamp(1.5rem, 3vw, 2rem); max-width: 18em; }
.band p { color: #CFE9DA; margin-top: 10px; max-width: 34em; }
.band .eyebrow { color: var(--mint); }
.dots { position: absolute; right: 28px; bottom: 22px; display: grid; grid-template-columns: repeat(8, 6px); gap: 10px; opacity: .35; pointer-events: none; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--mint); }

/* ---------- курс ---------- */
.course-top { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end; margin-bottom: 44px; }
.progress-card { display: flex; align-items: center; gap: 18px; background: var(--card); border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: 20px 24px; min-width: 300px; }
.ring { width: 64px; height: 64px; flex: none; }
.ring circle { fill: none; stroke-width: 7; }
.ring .track { stroke: var(--line-2); }
.ring .fill { stroke: var(--green); stroke-linecap: round; transform: rotate(-90deg); transform-origin: 50% 50%; transition: stroke-dashoffset .6s ease; }
.progress-card .num { font-size: 1.7rem; line-height: 1; }
@media (max-width: 760px) { .course-top { grid-template-columns: 1fr; gap: 24px; } .progress-card { min-width: 0; } }

.notice { display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 22px 26px; border-radius: var(--r-lg); margin-bottom: 36px; }
.notice h3 { font-size: 1.15rem; margin-bottom: 4px; }
.notice p { color: var(--ink-2); font-size: .95rem; }

.block-row { display: grid; grid-template-columns: 260px 1fr; gap: 28px; padding: 32px 0; border-top: 1px solid var(--line); }
.block-row:last-of-type { border-bottom: 1px solid var(--line); }
.block-label .big { font: 700 3.2rem/1 var(--serif); letter-spacing: -.03em; }
.block-label h2 { font-size: 1.45rem; margin-top: 10px; }
.block-label .seal { margin-top: 14px; display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 700; color: var(--green); }
.block-label .seal svg { width: 18px; height: 18px; }
.bl1 .big { color: var(--blue-2); } .bl2 .big { color: var(--blue); } .bl3 .big { color: var(--green); } .bl4 .big { color: var(--teal); }
.lessons-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 860px) { .block-row { grid-template-columns: 1fr; gap: 18px; } }
@media (max-width: 600px) { .lessons-pair { grid-template-columns: 1fr; } }

.lcard {
  display: flex; flex-direction: column; gap: 8px;
  background: var(--card); border: 1px solid var(--line-2); border-radius: var(--r-lg);
  padding: 22px 24px; text-decoration: none; color: inherit; position: relative;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
a.lcard:hover { border-color: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow); }
.lcard .top { display: flex; justify-content: space-between; align-items: center; font-size: .8rem; color: var(--muted); font-weight: 600; }
.lcard h3 { font-size: 1.22rem; }
.lcard p { color: var(--muted); font-size: .93rem; }
.lcard .go { margin-top: auto; padding-top: 10px; font-weight: 700; font-size: .92rem; color: var(--blue); }
.lcard.done .go { color: var(--green); }
.lcard.locked { opacity: .55; }
.lcard.current { border-color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); }
.pill { display: inline-flex; align-items: center; gap: 6px; font: 700 .72rem/1 var(--sans); letter-spacing: .04em; padding: 6px 9px; border-radius: 999px; }
.pill-done { background: var(--green-soft); color: var(--green-dk); }
.pill-now { background: var(--blue-soft); color: var(--blue); }
.pill-lock { background: var(--paper-2); color: var(--muted); }

.finish-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 40px; }
@media (max-width: 700px) { .finish-row { grid-template-columns: 1fr; } }

/* ---------- урок ---------- */
body.focus-mode .site-foot, body.focus-mode .tabbar { display: none; }
.lesson-wrap { max-width: 860px; margin: 0 auto; padding: 22px 24px 60px; }
.lesson-bar { display: flex; align-items: center; gap: 16px; margin-bottom: 30px; }
.lesson-bar .close { flex: none; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; text-decoration: none; color: var(--ink-2); }
.lesson-bar .close:hover { background: var(--paper-2); }
.lesson-bar .close svg { width: 20px; height: 20px; }
.steps { flex: 1; display: flex; gap: 5px; }
.steps i { flex: 1; height: 6px; border-radius: 3px; background: var(--line); transition: background .3s; }
.steps i.on { background: var(--green); }
.steps i.cur { background: var(--blue); }
.lesson-bar .count { font-size: .82rem; font-weight: 700; color: var(--muted); min-width: 3.4em; text-align: right; font-variant-numeric: tabular-nums; }

.stage { min-height: 52vh; animation: rise .35s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .stage { animation: none; } * { transition: none !important; } }
.stage h1 { font-size: clamp(2rem, 4.6vw, 3rem); }
.stage h2 { font-size: clamp(1.55rem, 3.4vw, 2.1rem); margin-bottom: 24px; }
.stage > .eyebrow { margin-bottom: 12px; }
.stage .body > * + * { margin-top: 18px; }
.stage .body > p { font-size: 1.1rem; color: var(--ink-2); max-width: 40em; }

.lesson-foot {
  position: sticky; bottom: 0; z-index: 5;
  background: linear-gradient(to top, var(--paper) 70%, rgba(244,241,234,0));
  padding: 28px 0 calc(14px + env(safe-area-inset-bottom));
  display: flex; justify-content: space-between; gap: 12px; margin-top: 36px;
}
.lesson-foot .btn { min-width: 150px; }

/* обложка урока */
.cover { display: grid; grid-template-columns: 1fr 220px; border-radius: var(--r-lg); overflow: hidden; background: var(--card); border: 1px solid var(--line-2); }
.cover .l { padding: 40px 38px; }
.cover .r { display: flex; flex-direction: column; justify-content: space-between; padding: 30px 26px; }
.cover .r .big { font: 700 6rem/0.9 var(--serif); letter-spacing: -.04em; }
.cover .r .bname { font-weight: 700; font-size: .95rem; line-height: 1.35; }
.cover .r .bar { width: 44px; height: 4px; border-radius: 2px; margin-bottom: 12px; }
.cover .sub { font-size: 1.12rem; color: var(--ink-2); margin-top: 16px; max-width: 30em; }
.cover .meta { display: flex; gap: 18px; margin-top: 28px; font-size: .88rem; color: var(--muted); flex-wrap: wrap; }
.cover-1 .r { background: var(--blue-soft); color: var(--ink); } .cover-1 .big { color: var(--blue-2); } .cover-1 .bar { background: var(--blue-2); }
.cover-2 .r { background: var(--blue); color: #fff; } .cover-2 .big { color: var(--mint); } .cover-2 .bar { background: var(--mint); }
.cover-3 .r { background: var(--green); color: #fff; } .cover-3 .big { color: #E9F7EE; } .cover-3 .bar { background: #fff; }
.cover-4 .r { background: var(--cyan-soft); color: var(--ink); } .cover-4 .big { color: var(--teal); } .cover-4 .bar { background: var(--teal); }
@media (max-width: 640px) {
  .cover { grid-template-columns: 1fr; }
  .cover .r { flex-direction: row; align-items: end; gap: 18px; padding: 20px 24px; }
  .cover .r .big { font-size: 3.6rem; }
  .cover .l { padding: 28px 24px; }
}

/* ситуация */
.situation { display: grid; grid-template-columns: 1.1fr .9fr; gap: 20px; }
.situation .story-text { font: 400 1.2rem/1.55 var(--serif); color: var(--ink); }
.situation .askbox { background: var(--green-soft); border-radius: var(--r-lg); padding: 28px; }
.askbox .tag { font: 700 .72rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--blue); margin-bottom: 12px; display: block; }
.askbox .q { font: 700 1.25rem/1.3 var(--serif); }
.askbox .hint { font-size: .9rem; color: var(--ink-2); margin-top: 10px; }
.askbox textarea, .field input, .field textarea {
  width: 100%; margin-top: 16px;
  background: #fff; border: 1.5px solid transparent; border-radius: 12px;
  padding: 12px 14px; font-size: 1rem; resize: vertical; min-height: 52px;
}
.askbox textarea:focus, .field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); }
.saved-note { font-size: .82rem; color: var(--green-dk); margin-top: 8px; min-height: 1.2em; }
@media (max-width: 720px) { .situation { grid-template-columns: 1fr; } }
.avatar { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.avatar i { width: 44px; height: 44px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; font: 700 1.1rem/1 var(--serif); font-style: normal; }
.avatar b { display: block; font-size: .95rem; }
.avatar span { font-size: .82rem; color: var(--muted); }

/* блоки контента внутри урока */
.c-cards { display: grid; gap: 14px; grid-template-columns: repeat(var(--cols, 3), 1fr); }
@media (max-width: 720px) { .c-cards { grid-template-columns: 1fr; } }
@media (min-width: 721px) and (max-width: 900px) { .c-cards[style*="--cols:4"] { grid-template-columns: 1fr 1fr; } }
.c-card { background: var(--card); border: 1px solid var(--line-2); border-radius: var(--r); padding: 22px; }
.c-card .k { font: 700 1.6rem/1 var(--serif); color: var(--blue); }
.c-card .k + .kbar { width: 28px; height: 3px; background: var(--blue); border-radius: 2px; margin: 12px 0 14px; }
.c-card h4 { font: 700 1.1rem/1.25 var(--serif); margin-bottom: 8px; }
.c-card p { color: var(--ink-2); font-size: .97rem; }
.c-card.mint { background: var(--green-soft); border-color: transparent; }
.c-card.sky { background: var(--blue-soft); border-color: transparent; }
.c-card.warn { background: var(--red-soft); border-color: transparent; }
.c-card.warn .k { color: var(--red); } .c-card.warn .kbar { background: var(--red); }

.c-note { border-left: 4px solid var(--green); background: var(--card); padding: 16px 20px; border-radius: 0 12px 12px 0; color: var(--ink-2); }
.c-note.warn { border-color: var(--red); background: var(--red-soft); color: var(--ink); }
.c-note.blue { border-color: var(--blue); background: var(--blue-soft); color: var(--ink); }
.c-src { font-size: .8rem; color: var(--faint); }

.c-ledger { background: var(--card); border: 1px solid var(--line-2); border-radius: var(--r); padding: 8px 24px; }
.c-ledger .row { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px dashed var(--line); font-size: 1.02rem; }
.c-ledger .row:last-child { border-bottom: 0; }
.c-ledger .row .v { font-family: var(--serif); font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.c-ledger .minus .v { color: var(--red); }
.c-ledger .total { border-top: 2px solid var(--ink); border-bottom: 0; margin-top: 4px; font-weight: 700; }
.c-ledger .total .v { color: var(--green); font-size: 1.5rem; }

.c-table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--card); border: 1px solid var(--line-2); border-radius: var(--r); overflow: hidden; font-size: .96rem; }
.c-table th { text-align: left; font: 700 .72rem/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--blue); background: var(--paper-2); padding: 14px 16px; }
.c-table td { padding: 14px 16px; border-top: 1px solid var(--line-2); vertical-align: top; }
.c-table td:first-child { font-weight: 700; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.c-big { display: flex; gap: 22px; align-items: baseline; flex-wrap: wrap; }
.c-big .v { font: 700 clamp(3rem, 9vw, 5rem)/1 var(--serif); color: var(--blue); letter-spacing: -.03em; }
.c-big p { flex: 1; min-width: 220px; font-size: 1.06rem; color: var(--ink-2); }
@media (max-width: 600px) { .c-big { flex-direction: column; gap: 8px; } .c-big p { min-width: 0; } }

.c-split { display: grid; gap: 14px; grid-template-columns: repeat(var(--cols, 3), 1fr); }
@media (max-width: 720px) { .c-split { grid-template-columns: 1fr; } }
.c-split > div { border-radius: var(--r); padding: 22px; background: var(--card); border: 1px solid var(--line-2); }
.c-split .lab { font-weight: 700; font-size: .95rem; }
.c-split .v { font: 700 2.1rem/1.1 var(--serif); margin: 10px 0 6px; letter-spacing: -.02em; }
.c-split .sub { font-size: .9rem; color: var(--ink-2); }
.c-split .bad .v { color: var(--red); }
.c-split .mid .v { color: #B07A12; }
.c-split .good { background: var(--green-soft); border-color: transparent; }
.c-split .good .v { color: var(--green-dk); }
.c-split .blue { background: var(--blue); color: #fff; border-color: transparent; }
.c-split .blue .sub { color: #D5E2F7; }

.c-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.c-cols > div { border-radius: var(--r); padding: 22px 24px; }
.c-cols h4 { font: 700 1.2rem/1 var(--serif); margin-bottom: 14px; }
.c-cols ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.c-cols li { display: flex; gap: 10px; align-items: baseline; }
.c-cols li::before { content: ''; flex: none; width: 8px; height: 8px; border-radius: 50%; background: currentColor; opacity: .55; transform: translateY(-2px); }
.c-cols .need { background: var(--blue-soft); } .c-cols .need h4 { color: var(--blue); }
.c-cols .want { background: var(--green-soft); } .c-cols .want h4 { color: var(--green-dk); }
.c-cols .plain { background: var(--card); border: 1px solid var(--line-2); }
.c-cols .bad { background: var(--red-soft); } .c-cols .bad h4 { color: var(--red); }
@media (max-width: 600px) { .c-cols { grid-template-columns: 1fr; } }

.c-flow { display: flex; align-items: stretch; gap: 8px; flex-wrap: wrap; }
.c-flow > div { flex: 1 1 150px; background: var(--card); border: 1px solid var(--line-2); border-radius: var(--r); padding: 18px; font-weight: 600; font-size: .96rem; position: relative; }
.c-flow > div:nth-child(1) { background: var(--paper-2); }
.c-flow > div:last-child { background: var(--red-soft); border-color: transparent; color: var(--red); }
.c-flow .n { display: block; font: 700 .72rem/1 var(--sans); letter-spacing: .14em; color: var(--muted); margin-bottom: 8px; }

.c-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; counter-reset: li; }
.c-list li { display: flex; gap: 14px; align-items: baseline; background: var(--card); border: 1px solid var(--line-2); border-radius: 12px; padding: 14px 18px; }
.c-list li::before { counter-increment: li; content: counter(li, decimal-leading-zero); font: 700 .95rem/1 var(--serif); color: var(--blue); }

.c-risk { display: grid; gap: 10px; }
.c-risk .r { display: grid; grid-template-columns: 140px 1fr 120px; gap: 16px; align-items: center; background: var(--card); border: 1px solid var(--line-2); border-radius: 12px; padding: 14px 18px; }
.c-risk h4 { font: 700 1.05rem/1.2 var(--serif); }
.c-risk p { font-size: .93rem; color: var(--ink-2); }
.meter { display: flex; gap: 4px; }
.meter i { flex: 1; height: 8px; border-radius: 4px; background: var(--line-2); }
.meter.l1 i:nth-child(-n+1) { background: var(--green); }
.meter.l2 i:nth-child(-n+2) { background: #7DBA3C; }
.meter.l3 i:nth-child(-n+3) { background: #E0A526; }
.meter.l4 i:nth-child(-n+4) { background: var(--red); }
@media (max-width: 600px) { .c-risk .r { grid-template-columns: 1fr 90px; } .c-risk .r p { grid-column: 1 / -1; grid-row: 2; } }

.c-bars { display: grid; gap: 14px; background: var(--blue); color: #fff; border-radius: var(--r-lg); padding: 28px; }
.c-bars .b { display: grid; grid-template-columns: 200px 1fr; gap: 16px; align-items: center; }
.c-bars .lab { font-size: .9rem; color: #D5E2F7; }
.c-bars .track { display: flex; align-items: center; gap: 12px; }
.c-bars .fill { height: 34px; border-radius: 6px; background: #8FB0E3; transition: width .5s ease; }
.c-bars .b:nth-child(2) .fill { background: #DBE6F7; }
.c-bars .b:nth-child(3) .fill { background: var(--mint); }
.c-bars .val { font: 700 1.1rem/1 var(--serif); white-space: nowrap; }
.c-bars .foot { font-size: .86rem; color: #D5E2F7; margin-top: 4px; }
@media (max-width: 600px) { .c-bars .b { grid-template-columns: 1fr; gap: 6px; } }

/* ---------- тренажёры ---------- */
.widget { background: var(--card); border: 1.5px solid var(--ink); border-radius: var(--r-lg); padding: 26px; position: relative; }
.widget > .wtag { position: absolute; top: -12px; left: 20px; background: var(--ink); color: var(--paper); font: 700 .7rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; padding: 6px 10px; border-radius: 6px; }
.widget h4 { font: 700 1.2rem/1.25 var(--serif); margin-bottom: 6px; }
.widget .wsub { color: var(--muted); font-size: .93rem; margin-bottom: 18px; }
.wgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
@media (max-width: 700px) { .wgrid { grid-template-columns: 1fr; } }
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-size: .86rem; font-weight: 700; color: var(--ink-2); margin-bottom: -8px; }
.field input { background: var(--paper); font-family: var(--serif); font-weight: 700; font-size: 1.15rem; }
.field input:focus { background: #fff; }
.field input:not([inputmode]) { font-family: var(--sans); font-weight: 400; font-size: 1rem; }
.field input::placeholder, .askbox textarea::placeholder { color: var(--faint); font-weight: 400; }
.range { display: block; margin-bottom: 16px; }
.range .top { display: flex; justify-content: space-between; font-size: .88rem; font-weight: 700; color: var(--ink-2); margin-bottom: 8px; }
.range .top output { font-family: var(--serif); color: var(--blue); }
input[type=range] { width: 100%; accent-color: var(--blue); height: 28px; }
.result { background: var(--paper); border-radius: 14px; padding: 18px 20px; }
.result .big { font: 700 2.2rem/1.1 var(--serif); color: var(--green-dk); letter-spacing: -.02em; }
.result .lab { font-size: .86rem; color: var(--muted); font-weight: 600; }
.result + .result { margin-top: 10px; }
.result.bad .big { color: var(--red); }
.compare-note { margin-top: 14px; font-size: .95rem; padding: 12px 16px; border-radius: 12px; background: var(--blue-soft); }
.compare-note.ok { background: var(--green-soft); }
.compare-note.no { background: var(--red-soft); }

.sorter { display: grid; gap: 10px; }
.sorter .item { display: flex; align-items: center; gap: 12px; justify-content: space-between; background: var(--paper); border-radius: 12px; padding: 10px 10px 10px 16px; transition: background .2s; }
.sorter .item .t { font-weight: 600; }
.sorter .choice { display: flex; gap: 6px; flex: none; }
.sorter .choice button { border: 0; border-radius: 9px; padding: 9px 12px; font-weight: 700; font-size: .85rem; cursor: pointer; background: #fff; color: var(--ink-2); }
.sorter .choice button:hover { background: var(--ink); color: #fff; }
.sorter .item.right { background: var(--green-soft); }
.sorter .item.wrong { background: var(--red-soft); }
.sorter .item .fb { font-size: .82rem; color: var(--ink-2); }
.sorter .item.right .choice, .sorter .item.wrong .choice { display: none; }

.budget-bar { display: flex; height: 54px; border-radius: 12px; overflow: hidden; margin: 6px 0 14px; }
.budget-bar div { display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: .9rem; transition: flex .4s; min-width: 0; }
.budget-legend { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.budget-legend > div { background: var(--paper); border-radius: 12px; padding: 14px; }
.budget-legend b { display: block; font: 700 1.25rem/1.2 var(--serif); margin-top: 4px; }
.budget-legend span { font-size: .82rem; color: var(--muted); font-weight: 600; }
@media (max-width: 520px) { .budget-legend { grid-template-columns: 1fr; } }

.offers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.offer { border: 1.5px solid var(--line); border-radius: 14px; padding: 18px; background: var(--paper); cursor: pointer; text-align: left; transition: border-color .15s; }
.offer:hover { border-color: var(--ink); }
.offer h5 { font: 700 1.05rem/1.2 var(--serif); margin: 0 0 10px; }
.offer dl { margin: 0; display: grid; grid-template-columns: auto auto; gap: 4px 10px; font-size: .88rem; }
.offer dt { color: var(--muted); }
.offer dd { margin: 0; text-align: right; font-weight: 700; }
.offer .over { display: none; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
.offers.revealed .offer { cursor: default; }
.offers.revealed .over { display: block; }
.offer.best { border-color: var(--green); background: var(--green-soft); }
.offer.worst { border-color: var(--red); background: var(--red-soft); }
.offer.picked { box-shadow: 0 0 0 3px var(--blue); }
.offer .over b { font: 700 1.3rem/1.2 var(--serif); display: block; }
@media (max-width: 700px) { .offers { grid-template-columns: 1fr; } }

.swipe { max-width: 520px; margin: 0 auto; }
.msg { background: #fff; border-radius: 18px 18px 18px 4px; padding: 18px 20px; box-shadow: var(--shadow); font-size: 1.02rem; min-height: 120px; }
.msg .from { font-size: .78rem; font-weight: 700; color: var(--muted); margin-bottom: 8px; letter-spacing: .04em; }
.swipe .acts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.swipe .fb { margin-top: 14px; padding: 14px 16px; border-radius: 12px; font-size: .95rem; }
.swipe .fb.ok { background: var(--green-soft); }
.swipe .fb.no { background: var(--red-soft); }
.swipe .ctr { text-align: center; font-size: .82rem; color: var(--muted); font-weight: 700; margin-bottom: 12px; }

/* ---------- тест «проверь себя» ---------- */
.quiz { max-width: 640px; }
.qhead { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; font-size: .84rem; font-weight: 700; color: var(--muted); }
.qdots { display: flex; gap: 6px; }
.qdots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.qdots i.ok { background: var(--green); }
.qdots i.no { background: var(--red); }
.qdots i.cur { background: var(--blue); }
.qtext { font: 700 1.45rem/1.3 var(--serif); margin-bottom: 22px; }
.opts { display: grid; gap: 10px; }
.opt {
  display: flex; align-items: center; gap: 14px; width: 100%;
  background: var(--card); border: 1.5px solid var(--line); border-radius: 14px;
  padding: 16px 18px; text-align: left; cursor: pointer; font-size: 1.02rem; font-weight: 600;
  transition: border-color .15s, background .15s;
}
.opt:hover { border-color: var(--ink); }
.opt .letter { flex: none; width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--paper-2); font: 700 .9rem/1 var(--sans); }
.opt.ok { border-color: var(--green); background: var(--green-soft); }
.opt.ok .letter { background: var(--green); color: #fff; }
.opt.no { border-color: var(--red); background: var(--red-soft); }
.opt.no .letter { background: var(--red); color: #fff; }
.opts.answered .opt { cursor: default; }
.opts.answered .opt:not(.ok):not(.no) { opacity: .55; }
.why { margin-top: 16px; padding: 16px 18px; border-radius: 14px; background: var(--paper-2); font-size: .98rem; }
.why b { display: block; margin-bottom: 4px; }
.why.ok b { color: var(--green-dk); }
.why.no b { color: var(--red); }

.score-box { text-align: center; padding: 36px 24px; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line-2); }
.score-box .num { font-size: 4rem; line-height: 1; }
.score-box p { color: var(--ink-2); margin-top: 10px; }
.score-box .acts { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }

/* итоги урока */
.summary { display: grid; gap: 0; background: var(--green-soft); border-radius: var(--r-lg); padding: 10px 30px; }
.summary .s { display: grid; grid-template-columns: 56px 1fr; gap: 10px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid rgba(11,110,63,.15); }
.summary .s:last-child { border-bottom: 0; }
.summary .s b { font: 700 1.6rem/1 var(--serif); color: var(--blue); }
.summary .s span { font-size: 1.12rem; }
.next-card { display: flex; justify-content: space-between; align-items: center; gap: 16px; background: var(--blue); color: #fff; border-radius: var(--r-lg); padding: 22px 26px; text-decoration: none; margin-top: 14px; flex-wrap: wrap; }
.next-card .tag { font: 700 .72rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--mint); }
.next-card h3 { font-size: 1.3rem; margin-top: 6px; }
.your-answer { margin-top: 14px; padding: 16px 20px; border-radius: 14px; background: var(--card); border: 1px dashed var(--line); font-size: .95rem; color: var(--ink-2); }
.your-answer b { color: var(--ink); }

/* кейсы урока 8 */
.case .opts .opt { align-items: flex-start; }
.case-tag { display: inline-flex; gap: 8px; align-items: center; }

/* ---------- о проекте ---------- */
.impact { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.impact > div { padding: 28px 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.impact .num { font-size: clamp(2.6rem, 5vw, 3.6rem); line-height: 1; letter-spacing: -.03em; }
.impact p { margin-top: 10px; color: var(--ink-2); font-size: .95rem; }
.impact > div:nth-child(1) .num { color: var(--blue); }
.impact > div:nth-child(2) .num { color: var(--green); }
.impact > div:nth-child(3) .num { color: var(--teal); }
.impact > div:nth-child(4) .num { color: var(--blue-2); }
.impact > div:nth-child(5) .num { color: var(--green-dk); }
.impact > div:nth-child(6) .num { color: var(--blue); }
.impact > div:nth-child(7) .num { color: var(--teal); }
.impact > div:nth-child(8) .num { color: var(--green); }
@media (max-width: 860px) { .impact { grid-template-columns: 1fr 1fr; } }

.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.timeline > div { border-top: 4px solid var(--blue); background: var(--blue-soft); border-radius: 4px 4px 14px 14px; padding: 20px; }
.timeline > div:nth-child(2) { border-color: var(--green); background: var(--green-soft); }
.timeline > div:nth-child(3) { border-color: var(--teal); background: var(--cyan-soft); }
.timeline > div:nth-child(4) { border-color: var(--ink); background: var(--card); }
.timeline .when { font-weight: 700; font-size: .95rem; margin-bottom: 8px; }
.timeline > div:nth-child(1) .when { color: var(--blue); }
.timeline > div:nth-child(2) .when { color: var(--green-dk); }
.timeline > div:nth-child(3) .when { color: var(--teal); }
.timeline p { color: var(--ink-2); font-size: .95rem; }
@media (max-width: 860px) { .timeline { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .timeline { grid-template-columns: 1fr; } }

.photo-wide { border-radius: var(--r-lg); overflow: hidden; }
.photo-wide img { width: 100%; aspect-ratio: 16/8; object-fit: cover; }
.photo-cap { font-size: .84rem; color: var(--muted); margin-top: 10px; }

.team { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; }
.member { border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; }
.member img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.member .info { padding: 18px 18px 20px; flex: 1; }
.member h3 { font-size: 1.12rem; line-height: 1.2; }
.member .bar { width: 32px; height: 3px; border-radius: 2px; margin: 12px 0; }
.member .role { font-weight: 700; font-size: .88rem; }
.member .ach { font-size: .84rem; margin-top: 8px; opacity: .85; }
.m1 { background: var(--blue); color: #fff; } .m1 .bar { background: var(--mint); }
.m2 { background: var(--cyan-soft); } .m2 .bar { background: var(--teal); }
.m3 { background: var(--green); color: #fff; } .m3 .bar { background: #fff; }
.m4 { background: var(--night); color: #fff; } .m4 .bar { background: var(--mint); }
.m5 { background: var(--blue-soft); } .m5 .bar { background: var(--blue); }

.contact { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; background: var(--card); border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: 32px; }
.contact .phone { font: 700 clamp(1.5rem, 4vw, 2.2rem)/1.1 var(--serif); text-decoration: none; letter-spacing: -.01em; }
.contact .acts { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 700px) { .contact { grid-template-columns: 1fr; } }

/* ---------- воспитателям ---------- */
.formats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.formats .card .k { font: 700 2.2rem/1 var(--serif); }
.formats .card:nth-child(1) .k { color: var(--blue); }
.formats .card:nth-child(2) .k { color: var(--green); }
.formats .card:nth-child(3) .k { color: var(--teal); }
.formats .card h3 { margin: 14px 0 8px; }
.formats .card p { color: var(--ink-2); font-size: .96rem; }
@media (max-width: 860px) { .formats { grid-template-columns: 1fr; } }
.pdf-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pdf-item { display: flex; align-items: center; gap: 16px; padding: 16px 18px; background: var(--card); border: 1px solid var(--line-2); border-radius: 14px; text-decoration: none; transition: border-color .15s; }
.pdf-item:hover { border-color: var(--ink); }
.pdf-item .n { font: 700 1.5rem/1 var(--serif); color: var(--blue); width: 2ch; }
.pdf-item .t { flex: 1; font-weight: 600; line-height: 1.3; }
.pdf-item .t small { display: block; color: var(--muted); font-weight: 400; font-size: .8rem; margin-top: 2px; }
.pdf-item svg { width: 20px; height: 20px; color: var(--muted); flex: none; }
@media (max-width: 700px) { .pdf-list { grid-template-columns: 1fr; } }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font: 700 1.1rem/1.35 var(--serif); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: var(--sans); color: var(--blue); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: '−'; }
.faq details p { margin-top: 10px; color: var(--ink-2); max-width: 46em; }

/* ---------- план ---------- */
.plan-sheet { background: #fff; border-radius: var(--r-lg); padding: 36px; border: 1px solid var(--line-2); }
.plan-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 24px; }
.plan-grid .field.wide { grid-column: 1 / -1; }
.plan-calc { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 10px 0 22px; }
@media (max-width: 640px) { .plan-grid, .plan-calc { grid-template-columns: 1fr; } .plan-sheet { padding: 24px; } }
.print-only { display: none; }

/* ---------- сертификат ---------- */
.cert-box { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; }
.cert-box canvas { width: 100%; height: auto; border-radius: 10px; box-shadow: var(--shadow); background: #fff; }
@media (max-width: 760px) { .cert-box { grid-template-columns: 1fr; } }

/* ---------- тест входной/итоговый ---------- */
.compare-scores { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: center; margin: 24px 0; }
.compare-scores > div { background: var(--card); border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: 22px; text-align: center; }
.compare-scores .num { font-size: 2.8rem; line-height: 1; }
.compare-scores .lab { font-size: .85rem; color: var(--muted); font-weight: 600; margin-top: 6px; }
.compare-scores .after { background: var(--green-soft); border-color: transparent; }
.compare-scores .after .num { color: var(--green-dk); }
.compare-scores .arrow { font-size: 1.6rem; color: var(--muted); }

/* ---------- 404 ---------- */
.nf { min-height: 60vh; display: grid; place-items: center; text-align: center; }
.nf .big { font: 700 7rem/1 var(--serif); color: var(--blue); letter-spacing: -.04em; }

/* ---------- печать ---------- */
@media print {
  .site-head, .site-foot, .tabbar, .no-print, .lesson-foot { display: none !important; }
  body { background: #fff; padding: 0; }
  .print-only { display: block; }
  .plan-sheet { border: 0; padding: 0; }
  .page { padding: 0; }
  .field input, .field textarea { border: 0; border-bottom: 1px solid #999; border-radius: 0; background: none; }
}
