/* Целевая строка — демо для бухгалтеров. Направление «Ритм периода», вариант «НКО»: утро-бумага, хвоя, шалфей, туман + горчица.
   Нет inline-стилей: позиции на ленте задаёт app.js через el.style.setProperty. */

:root {
  --morning: #F7F5EF;
  --card: #FFFDF8;
  --pine: #163B36;
  --pine-deep: #0F2D29;
  --ink-mute: #4A625D;
  --sage: #67A98E;
  --sage-deep: #266F55;
  --mist: #D9E8DF;
  --mist-2: #EAF2EC;
  --mustard: #E9B23B;
  --mustard-2: #F3C964;
  --mustard-soft: #FAEFCF;
  --mustard-deep: #8A5A00;
  --line: rgba(22, 59, 54, .14);
  --line-2: rgba(22, 59, 54, .08);
  --line-strong: rgba(22, 59, 54, .32);
  --font-serif: "Literata", Georgia, "Times New Roman", serif;
  --font-sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --r-s: 12px; --r-m: 18px; --r-l: 26px; --r-xl: 32px;
  --shadow: 0 1px 2px rgba(22, 59, 54, .06), 0 10px 28px rgba(22, 59, 54, .07);
  --shadow-lg: 0 2px 4px rgba(22, 59, 54, .06), 0 28px 64px rgba(22, 59, 54, .14);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --gut: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--morning); color: var(--pine); font: 400 16px/1.6 var(--font-sans); overflow-x: hidden; text-rendering: optimizeLegibility; }
img, svg { max-width: 100%; }
img { height: auto; display: block; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
.num { font-variant-numeric: tabular-nums lining-nums; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ic { width: 1.25em; height: 1.25em; flex: none; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 100; background: var(--pine); color: #fff; padding: 12px 18px; border-radius: 12px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--mustard); outline-offset: 3px; border-radius: 8px; }
.sec--pine :focus-visible, .foot :focus-visible { outline-color: var(--mustard-2); }

.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gut); }
.sec { padding-block: clamp(56px, 8vw, 112px); position: relative; }
.sec--mist { background: var(--mist-2); }
.sec--pine { background: var(--pine); color: var(--morning); }
.sec__head { margin-bottom: clamp(28px, 4vw, 52px); }
.sec__head--split { display: grid; gap: 18px; }
@media (min-width: 900px) { .sec__head--split { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: end; gap: 56px; } }

/* ---------- type ---------- */
.kicker { display: inline-flex; align-items: center; gap: 10px; font: 800 12px/1.2 var(--font-sans); letter-spacing: .13em; text-transform: uppercase; color: var(--sage-deep); }
.kicker__dot { width: 9px; height: 9px; border-radius: 2px; background: var(--mustard); transform: rotate(45deg); flex: none; }
.kicker--light { color: var(--mustard-2); }
.h2 { font: 600 clamp(1.85rem, 3.7vw, 3.1rem)/1.1 var(--font-serif); letter-spacing: -.015em; margin-top: .45em; text-wrap: balance; }
.h2--light { color: var(--morning); }
.h3 { font: 600 clamp(1.15rem, 1.6vw, 1.38rem)/1.25 var(--font-serif); letter-spacing: -.005em; }
.h4 { font: 800 13px/1.3 var(--font-sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-mute); }
.lead { font-size: clamp(1.02rem, 1.3vw, 1.17rem); line-height: 1.62; color: var(--ink-mute); max-width: 60ch; }
.link { color: var(--sage-deep); text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
.link:hover { color: var(--pine); }
.chk .link, .rules .link, .fact a { padding-block: 12px; }
.note { font-size: 14px; color: var(--ink-mute); }
.mt { margin-top: 28px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6em; min-height: 48px; padding: 0 24px; border-radius: 999px; border: 1.5px solid transparent; font: 800 15px/1.1 var(--font-sans); text-decoration: none; cursor: pointer; transition: background .25s var(--ease), color .25s var(--ease), transform .25s var(--ease), border-color .25s; text-align: center; }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 14px; }
.btn--wide { width: 100%; }
.btn--pine { background: var(--pine); color: var(--morning); }
.btn--pine:hover { background: #1f4f48; transform: translateY(-1px); }
.btn--ghost { background: transparent; border-color: var(--line-strong); color: var(--pine); }
.btn--ghost:hover { background: var(--mist-2); border-color: var(--pine); }
.btn--text { background: none; color: var(--pine); text-decoration: underline; text-underline-offset: 3px; padding-inline: 8px; }
.btn[disabled] { opacity: .45; cursor: default; transform: none; }

/* ---------- header ---------- */
.hdr { position: sticky; top: 0; z-index: 50; background: rgba(247, 245, 239, .9); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line-2); }
.hdr__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--pine); min-height: 44px; }
.logo__mark { width: 40px; height: 40px; flex: none; }
.logo__text { display: flex; flex-direction: column; font: 600 1.12rem/1.05 var(--font-serif); letter-spacing: -.01em; }
.logo__text small { font: 600 11px/1.2 var(--font-sans); color: var(--ink-mute); letter-spacing: .02em; margin-top: 3px; }
.logo--light { color: var(--morning); }
.logo--light small { color: rgba(247, 245, 239, .72); }
.nav { display: none; }
.nav a { white-space: nowrap; padding: 10px 13px; border-radius: 999px; font: 700 14px/1.2 var(--font-sans); color: var(--ink-mute); text-decoration: none; transition: background .2s, color .2s; }
.nav a:hover, .nav a.is-active { background: var(--mist); color: var(--pine); }
.hdr__act { display: flex; align-items: center; gap: 12px; }
.hdr__tel { display: none; white-space: nowrap; font-weight: 800; text-decoration: none; font-size: 15px; padding: 10px 6px; }
.hdr__act .btn--pine { display: none; }
.menu { position: relative; }
.menu__btn { list-style: none; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px; border: 1.5px solid var(--line-strong); border-radius: 999px; font: 800 14px/1 var(--font-sans); cursor: pointer; background: var(--card); }
.menu__btn::-webkit-details-marker { display: none; }
.menu__bars { position: relative; width: 18px; height: 2px; background: var(--pine); border-radius: 2px; }
.menu__bars::before, .menu__bars::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--pine); border-radius: 2px; transition: transform .25s var(--ease); }
.menu__bars::before { top: -6px; } .menu__bars::after { top: 6px; }
.menu[open] .menu__bars { background: transparent; }
.menu[open] .menu__bars::before { transform: translateY(6px) rotate(45deg); }
.menu[open] .menu__bars::after { transform: translateY(-6px) rotate(-45deg); }
.menu__panel { position: absolute; right: 0; top: calc(100% + 12px); width: min(320px, calc(100vw - 2 * var(--gut))); display: grid; padding: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-lg); }
.menu__panel a { display: flex; align-items: center; min-height: 48px; padding: 0 16px; border-radius: 14px; font-weight: 700; text-decoration: none; }
.menu__panel a:hover { background: var(--mist-2); }
.hdr__rail { position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; pointer-events: none; }
.hdr__rail i { position: relative; display: block; height: 100%; width: calc(var(--sp, 0) * 100%); background: var(--mustard); }
.hdr__rail i::after { opacity: min(1, calc(var(--sp, 0) * 60)); content: ""; position: absolute; right: -6px; top: -4px; width: 11px; height: 11px; border-radius: 50%; background: var(--mustard); border: 2.5px solid var(--pine); }
@media (min-width: 560px) { .hdr__act .btn--pine { display: inline-flex; } }
@media (max-width: 460px) { .logo__text small { display: none; } .menu__label { display: none; } .menu__btn { padding: 0 14px; } }
@media (min-width: 1080px) { .nav { display: flex; gap: 2px; } .menu { display: none; } }
@media (min-width: 1480px) { .hdr__tel { display: inline-block; } }

/* ---------- hero: grant-budget board ---------- */
.hero { position: relative; overflow: hidden; padding-top: clamp(22px, 2.2vw, 28px); }
.hero::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(to bottom, transparent 0 55px, rgba(22, 59, 54, .06) 55px 56px); -webkit-mask-image: linear-gradient(to right, #000 0, transparent 64%); mask-image: linear-gradient(to right, #000 0, transparent 64%); pointer-events: none; }
.hero > .wrap { position: relative; }
.hero__top { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; grid-template-areas: "head" "lead" "cta" "board" "strip" "facts"; }
.hero__head { grid-area: head; min-width: 0; }
.hero__lead { grid-area: lead; margin: 0; }
.hero__cta { grid-area: cta; display: flex; flex-wrap: wrap; gap: 12px; }
@media (min-width: 980px) {
  .hero__top { grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); grid-template-areas: "head lead" "cta strip" "board board" "facts facts"; column-gap: clamp(36px, 5vw, 80px); row-gap: 16px; align-items: end; }
}
.chip { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font: 700 13px/1.35 var(--font-sans); color: var(--ink-mute); }
.chip__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--mustard); flex: none; box-shadow: 0 0 0 4px rgba(233, 178, 59, .25); }
.display { font: 600 clamp(2.05rem, 1rem + 2.9vw, 3.1rem)/1.06 var(--font-serif); letter-spacing: -.022em; margin: .45em 0 0; text-wrap: balance; }
.w { display: inline-block; animation: rise .95s var(--ease) both; }
.d1 { animation-delay: .05s; } .d2 { animation-delay: .12s; } .d3 { animation-delay: .19s; } .d4 { animation-delay: .26s; } .d5 { animation-delay: .33s; }
.d6 { animation-delay: .4s; } .d7 { animation-delay: .47s; } .d8 { animation-delay: .54s; } .d9 { animation-delay: .61s; }
@keyframes rise { from { opacity: 0; transform: translate3d(0, .45em, 0); } }
.hl { color: inherit; background: linear-gradient(transparent 60%, rgba(243, 201, 100, .78) 60% 90%, transparent 90%) no-repeat left / 0 100%; -webkit-box-decoration-break: clone; box-decoration-break: clone; padding: 0 .08em; animation: sweep 1s 1s var(--ease) forwards; }
@keyframes sweep { to { background-size: 100% 100%; } }
.pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--mustard); box-shadow: 0 0 0 0 rgba(233, 178, 59, .6); animation: pulse 2.4s infinite; flex: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(233, 178, 59, 0); } 100% { box-shadow: 0 0 0 0 rgba(233, 178, 59, 0); } }

/* photo strip: three small crops of one planner photo, secondary to the board */
.strip { grid-area: strip; display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 8px; height: clamp(56px, 5vw, 62px); }
.strip__f { position: relative; overflow: hidden; border-radius: 14px; background: var(--mist); box-shadow: 0 0 0 1px var(--line-2), var(--shadow); }
.strip__f img { position: absolute; left: 50%; top: 50%; max-width: none; height: auto; }
.strip__f--a img { width: 270%; transform: translate(-82%, -13%); }
.strip__f--b img { width: 170%; transform: translate(-37%, -52%); }
.strip__f--c img { width: 230%; transform: translate(-52%, -84%); }

/* the board */
.gb { grid-area: board; align-self: stretch; position: relative; min-width: 0; margin-top: clamp(0px, .8vw, 8px); padding: clamp(18px, 2vw, 26px); border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--card); box-shadow: var(--shadow-lg); }
.gb__head { display: grid; gap: 16px; }
@media (min-width: 860px) { .gb__head { grid-template-columns: auto auto; justify-content: start; align-items: end; gap: 32px clamp(40px, 6vw, 88px); } }
.gb__kicker { font: 800 11px/1.4 var(--font-sans); letter-spacing: .09em; text-transform: uppercase; color: var(--ink-mute); }
.gb__kicker em { font-style: normal; font-weight: 700; letter-spacing: .02em; text-transform: none; color: var(--mustard-deep); }
.gb__row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 18px; margin-top: 5px; }
.gb__title { font: 600 clamp(1.75rem, 2.6vw, 2.2rem)/1.05 var(--font-serif); letter-spacing: -.02em; }
.gb__doc { display: inline-flex; align-items: center; gap: 8px; font: 700 13px/1.3 var(--font-sans); letter-spacing: 0; color: var(--sage-deep); }
.gb__doc .ic { width: 16px; height: 16px; }
.gb__stats { display: grid; grid-template-columns: repeat(3, auto); justify-content: space-between; gap: 12px clamp(18px, 3vw, 40px); }
.gb__stats dt { font: 800 11px/1.3 var(--font-sans); letter-spacing: .09em; text-transform: uppercase; color: var(--ink-mute); }
.gb__stats dd { font: 600 clamp(1.4rem, 2.1vw, 1.8rem)/1.1 var(--font-serif); letter-spacing: -.015em; margin-top: 3px; }
.gb__stats small { font: 700 12px/1 var(--font-sans); letter-spacing: 0; color: var(--ink-mute); white-space: nowrap; }

/* period ruler: grant year, today and the next report to the fund */
.tm { position: relative; height: 78px; margin-top: 10px; }
.tm__rule { position: absolute; left: 0; right: 0; top: 46px; height: 2px; background: var(--pine); }
.tm__rule::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 9px; background: repeating-linear-gradient(90deg, var(--pine) 0 2px, transparent 2px calc(100% / 12)); }
.tm__rule::after { content: ""; position: absolute; right: 0; top: 0; width: 2px; height: 9px; background: var(--pine); }
.tm__fill { position: absolute; left: 0; top: -1px; height: 4px; width: 78.6%; border-radius: 4px; background: var(--mustard); transform-origin: left; transition: transform 1.8s .5s var(--ease); }
.tm__end { position: absolute; top: 61px; font: 800 11px/1 var(--font-sans); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-mute); }
.tm__end--a { left: 0; } .tm__end--b { right: 0; }
.tm__now { position: absolute; left: 78.6%; top: 38px; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: var(--mustard); border: 3px solid var(--pine); z-index: 2; transition: left 1.8s .5s var(--ease); }
.tm__now b { position: absolute; top: 20px; right: -4px; white-space: nowrap; font: 800 11px/1 var(--font-sans); letter-spacing: .04em; color: var(--pine); }
.tm__flag { position: absolute; left: 87.4%; top: 0; height: 48px; width: 0; border-left: 2px solid var(--pine); transition: opacity .6s 1.9s var(--ease), transform .6s 1.9s var(--ease); }
.tm__flag b { position: absolute; top: 0; right: -14px; display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; padding: 8px 14px; border-radius: 999px; background: var(--mustard); color: var(--pine); font: 800 12.5px/1.2 var(--font-sans); box-shadow: 0 6px 16px rgba(138, 90, 0, .22); }
.tm__flag .pulse { background: var(--pine); box-shadow: 0 0 0 0 rgba(22, 59, 54, .45); }
.ml-ready .gb:not(.is-in) .tm__fill { transform: scaleX(0); }
.ml-ready .gb:not(.is-in) .tm__now { left: 0; }
.ml-ready .gb:not(.is-in) .tm__flag { opacity: 0; transform: translateY(-10px); }

/* the large stacked bar: four budget lines, solid = spent, hatched = remaining */
.is-work { --c: var(--pine); --t: rgba(22, 59, 54, .24); --share: 45; --spent: 69; --d: .45s; }
.is-equip { --c: var(--sage-deep); --t: rgba(38, 111, 85, .26); --share: 20; --spent: 90; --d: .6s; }
.is-rent { --c: var(--sage); --t: rgba(103, 169, 142, .42); --share: 15; --spent: 60; --d: .75s; }
.is-event { --c: var(--mustard); --t: rgba(201, 148, 20, .5); --share: 20; --spent: 20; --d: .9s; }
.gb__bar { display: flex; gap: 5px; height: clamp(56px, 5vw, 68px); }
.seg { position: relative; display: block; flex: var(--share) 1 0px; min-width: 0; overflow: hidden; border-radius: 8px; background: repeating-linear-gradient(135deg, var(--t) 0 3px, transparent 3px 9px), var(--card); box-shadow: inset 0 0 0 1px var(--t); transition: opacity .25s; }
.seg:first-child { border-radius: 22px 8px 8px 22px; }
.seg:last-child { border-radius: 8px 22px 22px 8px; }
.seg__spent { position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--spent) * 1%); background: var(--c); transform-origin: left; transition: transform 1.2s var(--d) var(--ease); }
.seg__spent::after { content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 3px; background: var(--card); }
.ml-ready .gb:not(.is-in) .seg__spent { transform: scaleX(0); }

.gb__lines { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; margin-top: 10px; }
@media (min-width: 1100px) { .gb__lines { grid-template-columns: 45fr 20fr 15fr 20fr; gap: 0 5px; } }
.ln { position: relative; min-width: 0; padding-top: 12px; transition: opacity .25s; }
.ln::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; border-radius: 3px; background: var(--c); }
.ln__name { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font-weight: 800; font-size: 14px; line-height: 1.25; padding-right: 8px; }
.ln__name b { font-size: 13px; color: var(--sage-deep); }
.ln__sum, .ln__left { display: flex; align-items: center; gap: 7px; font-size: 13px; line-height: 1.3; margin-top: 5px; }
.ln__sum b { font-weight: 800; }
.ln__left { font-size: 12.5px; color: var(--ink-mute); margin-top: 2px; }
.ln__sum::before, .ln__left::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 3px; }
.ln__sum::before { background: var(--c); }
.ln__left::before { background: repeating-linear-gradient(135deg, var(--c) 0 1.5px, transparent 1.5px 4px), var(--card); box-shadow: inset 0 0 0 1px var(--t); }
.gb.has-hot .seg:not(.is-hot), .gb.has-hot .ln:not(.is-hot) { opacity: .4; }

/* footer of the board: other sources (kept apart) and the next control point */
.gb__foot { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px 24px; align-items: center; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line-strong); }
.gb__foot .nxt { grid-column: 1 / -1; }
@media (min-width: 600px) { .gb__foot { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .gb__foot { grid-template-columns: minmax(0, .8fr) minmax(0, .8fr) minmax(0, 2fr); gap: 16px 32px; } .gb__foot .nxt { grid-column: auto; } }
.fsrc { display: grid; grid-template-columns: 1fr auto; gap: 7px 12px; align-items: baseline; }
.fsrc__n { font-weight: 800; font-size: 14px; }
.fsrc__v { font-size: 12.5px; color: var(--ink-mute); }
.fsrc__t { grid-column: 1 / -1; height: 8px; border-radius: 8px; background: var(--mist); overflow: hidden; }
.fsrc__t i { display: block; height: 100%; border-radius: 8px; transform-origin: left; transition: transform 1.2s 1s var(--ease); }
.fsrc--don .fsrc__t i { width: 38%; background: var(--mustard); }
.fsrc--paid .fsrc__t i { width: 84%; background: var(--pine); }
.ml-ready .gb:not(.is-in) .fsrc__t i { transform: scaleX(0); }

.nxt { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; min-height: 60px; padding: 9px 14px; border-radius: 18px; background: var(--mustard-soft); border: 1px solid rgba(138, 90, 0, .22); color: var(--pine); text-decoration: none; transition: background .25s var(--ease), border-color .25s, transform .25s var(--ease); }
.nxt:hover { background: #f8e8bd; border-color: rgba(138, 90, 0, .45); transform: translateY(-1px); }
.nxt:focus-visible { outline-color: var(--pine); outline-offset: 3px; border-radius: 18px; }
.nxt__date { display: block; text-align: center; padding: 7px 12px 8px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); font: 600 .74rem/1 var(--font-serif); }
.nxt__date b { display: block; font: 600 1.9rem/1 var(--font-serif); letter-spacing: -.03em; margin-bottom: 2px; }
.nxt__txt { display: block; min-width: 0; }
.nxt__k { display: flex; align-items: center; gap: 8px; font: 800 10.5px/1.3 var(--font-sans); letter-spacing: .09em; text-transform: uppercase; color: var(--ink-mute); }
.nxt__t { display: block; margin-top: 3px; font-weight: 800; font-size: 14px; line-height: 1.3; }
.nxt__s { display: block; margin-top: 2px; font-size: 12px; line-height: 1.35; color: var(--ink-mute); }
.nxt__go { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--pine); color: var(--morning); }
.nxt__go .ic { width: 16px; height: 16px; }

.hero__facts { grid-area: facts; list-style: none; display: grid; gap: 14px 32px; margin-top: clamp(0px, 1vw, 12px); }
@media (min-width: 860px) { .hero__facts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.hero__facts li { display: flex; align-items: flex-start; gap: 12px; font-size: 14.5px; line-height: 1.45; color: var(--ink-mute); }
.hero__facts .ic { width: 34px; height: 34px; padding: 8px; border-radius: 50%; background: var(--mist); color: var(--pine); margin-top: -4px; }
.hero__facts em { font-style: normal; font-weight: 700; color: var(--pine); }
@media (max-width: 479px) {
  .gb__stats { grid-template-columns: repeat(3, minmax(0, auto)); }
  .gb__stats small { display: block; margin-top: 3px; }
  .tm__flag b { font-size: 12px; padding: 8px 12px; }
  .nxt { grid-template-columns: auto minmax(0, 1fr); }
  .nxt__go { display: none; }
}

/* year ribbon */
.yr { position: relative; padding-top: 44px; margin-top: clamp(28px, 4vw, 56px); padding-bottom: clamp(28px, 4vw, 48px); }
.yr__track { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 2px solid var(--pine); }
.yr__track::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 9px; background: repeating-linear-gradient(90deg, var(--pine) 0 2px, transparent 2px calc(100% / 12)); }
.yr__q { position: relative; padding: 20px 16px 0 0; }
.yr__q::before { content: ""; position: absolute; left: 0; top: -2px; width: 2px; height: 22px; background: var(--pine); }
.yr__ql { display: block; font: 800 13px/1.2 var(--font-sans); letter-spacing: .06em; text-transform: uppercase; }
.yr__qt { display: block; margin-top: 6px; font-size: 13.5px; line-height: 1.4; color: var(--ink-mute); max-width: 24ch; }
.yr__marker { position: absolute; left: 78.45%; top: -10px; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: var(--mustard); border: 3px solid var(--pine); animation: glide 1.8s .5s var(--ease) both; z-index: 2; }
.yr__marker b { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); background: var(--pine); color: #fff; padding: 5px 12px; border-radius: 999px; font: 800 12px/1 var(--font-sans); white-space: nowrap; }
.yr__marker b::after { content: ""; position: absolute; left: 50%; bottom: -5px; width: 10px; height: 10px; background: var(--pine); transform: translateX(-50%) rotate(45deg); border-radius: 2px; }
@keyframes glide { from { left: 0; } }
@media (max-width: 719px) { .yr__qt { display: none; } .yr__q { padding-top: 16px; } .yr__ql { font-size: 11.5px; letter-spacing: .02em; } }

/* ---------- audience bento ---------- */
.bento { display: grid; gap: 16px; }
.tile { position: relative; display: flex; flex-direction: column; gap: 12px; padding: clamp(22px, 2.6vw, 32px); border-radius: var(--r-l); border: 1px solid var(--line); background: var(--card); }
.tile p { color: var(--ink-mute); font-size: 15.5px; }
.tile__ic { width: 56px; height: 56px; margin-bottom: 4px; }
.tile--grant { background: var(--mustard-soft); border-color: rgba(138, 90, 0, .18); }
.tile--school { background: var(--mist); border-color: transparent; }
.tile--ip { background: var(--mist-2); }
.ticks { list-style: none; display: grid; gap: 8px; margin: 6px 0 8px; }
.ticks li { position: relative; padding-left: 28px; font-weight: 700; font-size: 15px; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: .35em; width: 6px; height: 11px; border: solid var(--sage-deep); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.tile__price { margin-top: auto; padding-top: 14px; border-top: 1px solid rgba(22, 59, 54, .16); color: var(--pine) !important; font-size: 15px !important; }
.tile__price b { font: 600 1.25rem/1.2 var(--font-serif); }
.tile__price span { display: block; font-size: 13px; color: var(--ink-mute); margin-top: 4px; }
@media (min-width: 700px) { .bento { grid-template-columns: repeat(2, 1fr); } .tile--grant { grid-column: 1 / -1; } }
@media (min-width: 1040px) {
  .bento { grid-template-columns: 1.15fr 1fr 1fr; }
  .tile--grant { grid-column: 1; grid-row: 1 / span 2; }
  .tile--grant .h3 { font-size: 1.75rem; }
}

/* ---------- calendar (signature) ---------- */
.sec--cal { background: var(--mist-2); }
.cal { display: grid; border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--card); box-shadow: var(--shadow-lg); overflow: hidden; overflow: clip; }
@media (min-width: 1040px) { .cal { grid-template-columns: 320px minmax(0, 1fr); } }
.cal__side { background: var(--mist-2); border-bottom: 1px solid var(--line); }
.cal__form { padding: clamp(18px, 2.4vw, 26px); }
@media (min-width: 1040px) { .cal__side { border-bottom: 0; border-right: 1px solid var(--line); } .cal__form { position: sticky; top: 84px; } }
.fs { border: 0; padding: 0; margin: 0 0 22px; min-width: 0; }
.fs:last-child { margin-bottom: 0; }
.fs legend { display: flex; align-items: center; gap: 10px; padding: 0; margin-bottom: 10px; font: 800 13px/1.2 var(--font-sans); letter-spacing: .04em; text-transform: uppercase; }
.fs__n { width: 24px; height: 24px; border-radius: 50%; background: var(--pine); color: #fff; display: grid; place-items: center; font-size: 12px; letter-spacing: 0; }
.opt { position: relative; display: block; margin-bottom: 8px; }
.opt input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.opt input:disabled { cursor: not-allowed; }
.opt__b { position: relative; display: block; min-height: 46px; padding: 11px 14px 11px 46px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--card); transition: border-color .2s, background .2s, box-shadow .2s; }
.opt__b b { display: block; font-size: 14.5px; line-height: 1.3; }
.opt__b small { display: block; font-size: 12.5px; line-height: 1.35; color: var(--ink-mute); margin-top: 1px; }
.opt__b::before { content: ""; position: absolute; left: 15px; top: 50%; width: 18px; height: 18px; margin-top: -9px; border-radius: 50%; border: 2px solid var(--sage-deep); background: var(--card); transition: background .2s, box-shadow .2s; }
.opt--chk .opt__b::before { border-radius: 6px; }
.opt input:checked + .opt__b { border-color: var(--pine); background: #fff; box-shadow: inset 0 0 0 1px var(--pine); }
.opt input:checked + .opt__b::before { background: var(--pine); border-color: var(--pine); box-shadow: inset 0 0 0 3px var(--card); }
.opt--chk input:checked + .opt__b::before { box-shadow: none; }
.opt--chk input:checked + .opt__b::after { content: ""; position: absolute; left: 21px; top: 50%; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: translateY(-62%) rotate(45deg); }
.opt input:focus-visible + .opt__b { outline: 3px solid var(--mustard); outline-offset: 2px; }
.opt.is-off { opacity: .42; }
.opt.is-off .opt__b { background: transparent; border-style: dashed; }

.cal__out { padding: clamp(18px, 2.4vw, 28px); min-width: 0; }
.cal__echo { font-size: 14px; line-height: 1.5; color: var(--ink-mute); margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px dashed var(--line); }
.rb__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; margin-bottom: 14px; }
.rb__count { font: 600 1.05rem/1.2 var(--font-serif); }
.rb__leg { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12px; font-weight: 700; color: var(--ink-mute); }
.lg { display: inline-flex; align-items: center; gap: 7px; }
.lg::before { content: ""; flex: none; }
.lg--law::before { width: 11px; height: 11px; background: var(--mustard); border: 2px solid var(--pine); border-radius: 3px; transform: rotate(45deg); }
.lg--mo::before { width: 8px; height: 8px; border-radius: 50%; background: var(--sage); }
.lg--q::before { width: 12px; height: 12px; border-radius: 3px; background: var(--pine); }
.lg--y::before { width: 13px; height: 13px; border-radius: 50%; border: 3px solid var(--mustard); background: var(--card); }

.rbwrap { padding-bottom: 6px; }
.rb { --nw: 150px; position: relative; display: grid; grid-template-columns: var(--nw) minmax(0, 1fr); margin-bottom: 44px; font-size: 12px; }
.rb__names { display: flex; flex-direction: column; }
.rb__plane { position: relative; min-width: 0; }
.rb__fallback { grid-column: 1 / -1; padding: 24px 0; }
.rb__nm { display: flex; align-items: center; gap: 10px; padding-right: 10px; font-weight: 800; font-size: 12.5px; line-height: 1.25; color: var(--ink-mute); height: 46px; }
.rb__nm--q { height: 30px; }
.rb__nm--m { height: 26px; }
.rb__g { flex: none; display: inline-block; }
.rb__g--law { width: 11px; height: 11px; background: var(--mustard); border: 2px solid var(--pine); border-radius: 3px; transform: rotate(45deg); margin: 0 3px; }
.rb__g--mo { width: 8px; height: 8px; border-radius: 50%; background: var(--sage); margin: 0 3px; }
.rb__g--q { width: 12px; height: 12px; border-radius: 3px; background: var(--pine); }
.rb__g--y { width: 13px; height: 13px; border-radius: 50%; border: 3px solid var(--mustard); background: var(--card); }
.rb__tk { position: relative; height: 46px; border-top: 1px solid var(--line-2); }
.rb__tk::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: repeating-linear-gradient(90deg, var(--line) 0 4px, transparent 4px 8px); }
.rb__tk--q, .rb__tk--m { border-top: 0; }
.rb__tk--q { height: 30px; }
.rb__tk--m { height: 26px; }
.rb__tk--q::before, .rb__tk--m::before { display: none; }
.rb__q { position: absolute; top: 0; bottom: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; border-left: 2px solid var(--pine); background: rgba(22, 59, 54, .045); font: 800 11.5px/1 var(--font-sans); letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.rb__q:nth-child(even) { background: rgba(22, 59, 54, .09); }
.rb__q span:last-child { display: none; }
.rb__m { position: absolute; top: 0; bottom: 0; display: flex; align-items: center; justify-content: center; border-left: 1px solid var(--line-2); color: var(--ink-mute); font-weight: 700; font-size: 11px; overflow: hidden; }
.rb__m span:last-child { display: none; }
.rb__empty { position: absolute; inset: 0; display: flex; align-items: center; padding-left: 6px; font-size: 12px; font-weight: 600; color: var(--ink-mute); }
.mk { position: absolute; top: 50%; transform: translate(-50%, -50%); transition: opacity .3s, filter .3s; }
.mk--law { width: 17px; height: 17px; background: var(--mustard); border: 2.5px solid var(--pine); border-radius: 4px; transform: translate(-50%, -50%) rotate(45deg); }
.mk--mo { width: 8px; height: 8px; border-radius: 50%; background: var(--sage); }
.mk--q { width: 14px; height: 14px; border-radius: 4px; background: var(--pine); }
.mk--y { width: 20px; height: 20px; border-radius: 50%; border: 3.5px solid var(--mustard); background: var(--card); }
.mk.is-past { opacity: .4; filter: saturate(.3); }
.mk.is-next::after { content: ""; position: absolute; inset: -7px; border-radius: 50%; border: 2px solid var(--mustard); animation: ring 2.4s infinite; }
.mk--law.is-next::after { border-radius: 8px; }
@keyframes ring { 0% { transform: scale(.7); opacity: .9; } 100% { transform: scale(1.5); opacity: 0; } }
.rb__over { position: absolute; inset: 0; pointer-events: none; }
.rb__past { position: absolute; top: 0; bottom: 0; left: 0; width: 0; background: linear-gradient(90deg, rgba(103, 169, 142, 0), rgba(103, 169, 142, .17)); transition: width .12s linear; }
.rb__line { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--pine); left: 0; transition: left .12s linear; }
.rb__pill { position: absolute; top: 100%; margin-top: 8px; transform: translateX(-50%); background: var(--pine); color: #fff; padding: 6px 12px; border-radius: 999px; font: 800 12px/1 var(--font-sans); white-space: nowrap; left: 0; transition: left .12s linear; }
.rb__pill::before { content: ""; position: absolute; left: 50%; top: -4px; width: 9px; height: 9px; background: var(--pine); transform: translateX(-50%) rotate(45deg); border-radius: 2px; }
.rb__pill.edge-l { transform: translateX(-18%); } .rb__pill.edge-l::before { left: 18%; }
.rb__pill.edge-r { transform: translateX(-82%); } .rb__pill.edge-r::before { left: 82%; }
.rb.is-drag .rb__line, .rb.is-drag .rb__pill, .rb.is-drag .rb__past { transition: none; }
@media (max-width: 719px) {
  .rb { --nw: 26px; }
  .rb__nt { display: none; }
  .rb__q span:first-child, .rb__m span:first-child { display: none; }
  .rb__q span:last-child, .rb__m span:last-child { display: inline; }
  .rb__q { letter-spacing: 0; font-size: 10.5px; }
  .rb__m { font-size: 9.5px; }
  .rb__nm { padding-right: 0; justify-content: flex-start; }
}

.cal__ctrl { margin-top: 6px; padding: 16px 18px 12px; border: 1px solid var(--line); border-radius: 20px; background: var(--morning); }
.cal__rl { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; }
.cal__rl label { font: 800 13px/1.3 var(--font-sans); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-mute); }
.cal__rl output { font: 600 1.35rem/1.2 var(--font-serif); }
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; margin: 4px 0 0; background: transparent; cursor: pointer; }
.range::-webkit-slider-runnable-track { height: 8px; border-radius: 8px; background: linear-gradient(90deg, var(--sage) var(--fill, 50%), var(--mist) var(--fill, 50%)); }
.range::-moz-range-track { height: 8px; border-radius: 8px; background: var(--mist); }
.range::-moz-range-progress { height: 8px; border-radius: 8px; background: var(--sage); }
.range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 28px; height: 28px; margin-top: -10px; border-radius: 50%; background: var(--mustard); border: 3.5px solid var(--pine); box-shadow: 0 2px 8px rgba(22, 59, 54, .3); }
.range::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--mustard); border: 3.5px solid var(--pine); box-shadow: 0 2px 8px rgba(22, 59, 54, .3); }
.range:focus-visible { outline: none; }
.range:focus-visible::-webkit-slider-thumb { outline: 3px solid var(--pine); outline-offset: 3px; }
.range:focus-visible::-moz-range-thumb { outline: 3px solid var(--pine); outline-offset: 3px; }
.cal__btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.cal__h { margin: 26px 0 12px; }
.cp-list { list-style: none; display: grid; gap: 10px; }
.cp { display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 4px 14px; align-items: start; width: 100%; padding: 12px 14px; text-align: left; background: var(--card); border: 1px solid var(--line); border-radius: 18px; }
button.cp { cursor: pointer; transition: border-color .2s, transform .25s var(--ease), box-shadow .25s; }
button.cp:hover { border-color: var(--pine); transform: translateY(-1px); box-shadow: var(--shadow); }
.cp__date { grid-row: 1 / span 2; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 62px; border-radius: 14px; background: var(--mist); }
.cp__date b { font: 600 1.7rem/1 var(--font-serif); }
.cp__date i { font: 800 11px/1 var(--font-sans); font-style: normal; letter-spacing: .06em; text-transform: uppercase; margin-top: 3px; }
.cp--law .cp__date { background: var(--mustard-soft); }
.cp--q .cp__date, .cp--y .cp__date { background: var(--pine); color: #fff; }
.cp__body { display: grid; gap: 3px; min-width: 0; }
.cp__body b { font-size: 15px; line-height: 1.3; }
.cp__body > span { font-size: 13.5px; line-height: 1.45; color: var(--ink-mute); }
.cp__wy { font-size: 12.5px !important; }
.cp__meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.cp__tag { display: inline-flex; padding: 3px 9px; border-radius: 999px; background: var(--mist-2); border: 1px solid var(--line); font: 800 11px/1.4 var(--font-sans); letter-spacing: .03em; color: var(--ink-mute); }
.cp--law .cp__tag { background: var(--mustard-soft); color: #4a3600; border-color: rgba(138, 90, 0, .25); }
.cp__in { font-size: 12.5px; font-weight: 800; color: var(--sage-deep); }
.contract { list-style: none; display: grid; gap: 8px; }
.contract li { padding: 12px 14px; border: 1.5px dashed var(--line-strong); border-radius: 14px; font-size: 14px; line-height: 1.5; color: var(--ink-mute); }
.contract b { color: var(--pine); }
.cal__facts { display: grid; gap: 8px; margin-top: 20px; }
.fact { padding: 12px 14px 12px 16px; border-left: 4px solid var(--mustard); background: var(--mist-2); border-radius: 4px 14px 14px 4px; font-size: 14px; line-height: 1.5; color: var(--ink-mute); }
.fact b { color: var(--pine); }
.fact a { color: var(--sage-deep); font-weight: 700; }
.cal__send { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 22px; }
.cal__sendnote { font-size: 13px; color: var(--ink-mute); }

.cal__legal { display: grid; gap: 28px; margin-top: 28px; padding: clamp(20px, 3vw, 36px); border: 1.5px dashed var(--line-strong); border-radius: var(--r-xl); background: rgba(255, 253, 248, .7); }
@media (min-width: 900px) { .cal__legal { grid-template-columns: 1fr 1fr; gap: 44px; } }
.dl { margin-top: 10px; }
.dl dt { font-weight: 800; font-size: 13px; margin-top: 12px; }
.dl dd { margin: 2px 0 0; font-size: 14px; color: var(--ink-mute); line-height: 1.55; }
.disc { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 12.5px; line-height: 1.55; color: var(--ink-mute); }
.tbl-scroll { max-width: 100%; margin-top: 10px; }
.mini { width: 100%; border-collapse: collapse; font-size: 14px; }
.mini th, .mini td { padding: 10px 8px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); line-height: 1.4; }
.mini thead th { font: 800 11.5px/1.2 var(--font-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-mute); }
.mini tbody th { white-space: nowrap; font-weight: 800; }
.rules { list-style: none; display: grid; gap: 8px; margin-top: 10px; }
.rules li { position: relative; padding-left: 20px; font-size: 14px; line-height: 1.5; color: var(--ink-mute); }
.rules li::before { content: ""; position: absolute; left: 2px; top: .6em; width: 8px; height: 8px; border-radius: 2px; background: var(--mustard); transform: rotate(45deg); }
.rules b { color: var(--pine); }
.src-line { margin-top: 12px; font-size: 12.5px; font-weight: 700; color: var(--sage-deep); }
@media (max-width: 639px) {
  .mini thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .mini, .mini tbody, .mini tr, .mini th, .mini td { display: block; }
  .mini tr { padding: 10px 0; border-bottom: 1px solid var(--line); }
  .mini th, .mini td { padding: 1px 0; border: 0; }
  .mini tbody th { white-space: normal; }
  .mini td:last-child { color: var(--ink-mute); font-size: 13px; }
}

/* ---------- photo band ---------- */
.band { position: relative; background: var(--morning); }
.band img { width: 100%; height: clamp(150px, 22vw, 320px); object-fit: cover; object-position: center 55%; }
.band__cap { position: absolute; left: var(--gut); bottom: clamp(14px, 2vw, 28px); display: inline-flex; align-items: center; gap: 10px; max-width: calc(100% - 2 * var(--gut)); padding: 10px 18px; border-radius: 999px; background: rgba(247, 245, 239, .94); font: 700 clamp(13px, 1.4vw, 15px)/1.35 var(--font-sans); box-shadow: var(--shadow); }
.band__dot { width: 12px; height: 12px; border-radius: 50%; background: var(--mustard); border: 2.5px solid var(--pine); flex: none; }

/* ---------- rhythm timeline ---------- */
.ritm { display: grid; gap: 40px; }
@media (min-width: 960px) { .ritm { grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: clamp(40px, 6vw, 88px); } .ritm__side { position: sticky; top: 100px; align-self: start; } }
.ritm__side .lead { margin-top: 16px; }
.ritm__fig { margin-top: 28px; border-radius: var(--r-l); overflow: hidden; box-shadow: var(--shadow); }
.ritm__fig img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.tl { --p: 1; position: relative; list-style: none; padding: 0 0 0 38px; }
.tl__rail { position: absolute; left: 8px; top: 12px; bottom: 56px; width: 2px; background: var(--line); border-radius: 2px; list-style: none; }
.tl__fill { position: absolute; left: 0; top: 0; width: 2px; height: calc(var(--p) * 100%); background: var(--sage-deep); border-radius: 2px; }
.tl__dot { position: absolute; left: 50%; top: calc(var(--p) * 100%); width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: var(--mustard); border: 3.5px solid var(--card); box-shadow: 0 0 0 2px var(--pine); }
.per { position: relative; display: grid; gap: 18px; padding-bottom: 40px; }
.per:last-child { padding-bottom: 0; }
.per::before { content: ""; position: absolute; left: -35px; top: 18px; width: 12px; height: 12px; border-radius: 50%; background: var(--card); border: 2.5px solid var(--pine); }
@media (min-width: 700px) { .per { grid-template-columns: 176px minmax(0, 1fr); gap: 28px; } }
.per__glyph { width: 64px; height: 48px; margin-bottom: 8px; }
.per__name { font: 600 clamp(1.9rem, 2.7vw, 2.45rem)/1 var(--font-serif); letter-spacing: -.02em; }
.per__when { margin-top: 8px; font-size: 13.5px; line-height: 1.4; font-weight: 700; color: var(--sage-deep); }
.steps { list-style: none; display: grid; gap: 8px; counter-reset: s; }
.steps li { position: relative; padding: 13px 18px 13px 58px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; font-size: 15px; line-height: 1.55; color: var(--ink-mute); counter-increment: s; }
.steps li::before { content: counter(s); position: absolute; left: 16px; top: 12px; width: 28px; height: 28px; border-radius: 50%; background: var(--mustard-soft); border: 1px solid rgba(138, 90, 0, .25); display: grid; place-items: center; font: 800 13px/1 var(--font-sans); color: var(--pine); }
.steps b { color: var(--pine); }

/* ---------- include / separate ---------- */
.tbl-scroll--wide { margin-top: 0; }
.inc { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden; font-size: 15px; box-shadow: var(--shadow); }
.inc th, .inc td { padding: 18px 22px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line-2); line-height: 1.5; }
.inc tbody tr:last-child th, .inc tbody tr:last-child td { border-bottom: 0; }
.inc thead th { background: var(--morning); border-bottom: 1px solid var(--line); }
.inc tbody th { width: 24%; font: 600 1.05rem/1.3 var(--font-serif); }
.inc td { color: var(--ink-mute); width: 38%; }
.inc tbody tr:hover td, .inc tbody tr:hover th { background: #fffcf0; }
.tag { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; font: 800 12px/1.2 var(--font-sans); letter-spacing: .04em; text-transform: uppercase; }
.tag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; flex: none; }
.tag--in { background: var(--mist); color: var(--pine); } .tag--in::before { background: var(--sage-deep); }
.tag--out { background: var(--mustard-soft); color: #4a3600; } .tag--out::before { background: var(--mustard); }
@media (max-width: 799px) {
  .inc thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .inc, .inc tbody, .inc tr, .inc th, .inc td { display: block; width: 100% !important; }
  .inc tr { border-bottom: 1px solid var(--line); padding: 8px 0 14px; }
  .inc tr:last-child { border-bottom: 0; }
  .inc th, .inc td { border: 0; padding: 6px 18px; }
  .inc td::before { content: attr(data-label); display: block; margin-bottom: 3px; font: 800 11px/1.2 var(--font-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--sage-deep); }
  .inc td[data-label="Отдельно"]::before { color: var(--mustard-deep); }
}

/* ---------- price ---------- */
.price { display: grid; gap: 40px; }
@media (min-width: 960px) { .price { grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr); gap: clamp(40px, 5vw, 72px); } .price__side { position: sticky; top: 100px; align-self: start; } }
.price__side .lead { margin-top: 16px; }
.drivers { list-style: none; margin-top: 28px; border-top: 1px solid var(--line); }
.drivers li { padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; color: var(--ink-mute); line-height: 1.45; }
.drivers b { display: block; color: var(--pine); font-size: 15px; }
.price__cards { display: grid; gap: 16px; align-items: start; }
@media (min-width: 640px) { .price__cards { grid-template-columns: 1fr 1fr; } .pc:nth-child(even) { margin-top: 28px; } }
.pc { display: flex; flex-direction: column; gap: 14px; padding: clamp(22px, 2.4vw, 30px); background: var(--card); border: 1px solid var(--line); border-radius: var(--r-l); }
.pc__tag { align-self: flex-start; padding: 5px 12px; border-radius: 999px; background: var(--mist); font: 800 12px/1.3 var(--font-sans); letter-spacing: .04em; }
.pc__sum { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.pc__sum b { font: 600 clamp(1.9rem, 3vw, 2.6rem)/1 var(--font-serif); letter-spacing: -.02em; }
.pc__sum span { font-size: 14px; color: var(--ink-mute); }
.pc__rows { list-style: none; display: grid; gap: 0; }
.pc__rows li { padding: 10px 0; border-top: 1px solid var(--line-2); font-size: 14.5px; line-height: 1.45; color: var(--ink-mute); }
.pc__rows b { color: var(--pine); white-space: nowrap; }
.pc__note { font-size: 13px; line-height: 1.5; color: var(--ink-mute); padding-top: 10px; border-top: 1px dashed var(--line-strong); }
.pc--main { background: var(--pine); color: var(--morning); border-color: var(--pine); box-shadow: var(--shadow-lg); }
.pc--main .pc__tag { background: var(--mustard); color: var(--pine); }
.pc--main .pc__sum span, .pc--main .pc__rows li, .pc--main .pc__note { color: rgba(247, 245, 239, .8); }
.pc--main .pc__rows li { border-color: rgba(247, 245, 239, .15); }
.pc--main .pc__rows b { color: var(--mustard-2); }
.pc--main .pc__note { border-color: rgba(247, 245, 239, .3); }
.fine { margin-top: 34px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-mute); max-width: 74ch; }

/* ---------- responsibility ---------- */
.resp { display: grid; gap: 44px; }
@media (min-width: 1000px) { .resp { grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: 72px; } .resp__ui { position: sticky; top: 100px; } }
.resp__list { list-style: none; margin-top: 30px; }
.resp__list li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 18px; padding: 22px 0; border-top: 1px solid rgba(247, 245, 239, .18); }
.resp__list li:last-child { border-bottom: 1px solid rgba(247, 245, 239, .18); }
.resp__n { width: 40px; height: 40px; border-radius: 50%; background: var(--mustard); color: var(--pine); display: grid; place-items: center; font-weight: 800; }
.resp__list h3 { font: 600 1.28rem/1.25 var(--font-serif); margin-bottom: 6px; }
.resp__list p { color: rgba(247, 245, 239, .82); font-size: 15.5px; line-height: 1.6; max-width: 58ch; }
.resp__ui { align-self: start; }
.log { background: var(--card); color: var(--pine); border-radius: var(--r-l); padding: 22px; box-shadow: var(--shadow-lg); }
.log__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.log__head b { font: 600 1.15rem/1.2 var(--font-serif); }
.log__head em { font-style: normal; font-size: 12px; font-weight: 800; color: var(--mustard-deep); }
.log__rows { list-style: none; }
.log__rows li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--line-2); }
.log__t { font-weight: 700; font-size: 14.5px; line-height: 1.35; }
.log__d { grid-column: 2; font-size: 12.5px; color: var(--ink-mute); }
.log__foot { margin-top: 14px; font-size: 13px; color: var(--ink-mute); }
.st { display: inline-flex; align-items: center; gap: 6px; min-width: 128px; padding: 5px 10px; border-radius: 999px; font: 800 12px/1.2 var(--font-sans); white-space: nowrap; }
.st::before { content: ""; width: 8px; height: 8px; border-radius: 50%; flex: none; }
.st--done { background: var(--mist); } .st--done::before { background: var(--sage-deep); }
.st--work { background: var(--mustard-soft); } .st--work::before { background: var(--mustard); }
.st--wait { background: var(--card); border: 1.5px dashed var(--mustard-deep); color: #4a3600; } .st--wait::before { background: var(--mustard-deep); }
.st--plan { background: var(--mist-2); color: var(--ink-mute); } .st--plan::before { background: transparent; border: 2px solid var(--sage-deep); }
.resp__cred { margin-top: 24px; font: 800 12px/1.2 var(--font-sans); letter-spacing: .1em; text-transform: uppercase; color: var(--mustard-2); }
.cred { list-style: none; display: grid; gap: 8px; margin-top: 10px; font-size: 13.5px; line-height: 1.45; color: rgba(247, 245, 239, .86); }
.cred li { position: relative; padding-left: 22px; }
.cred li::before { content: ""; position: absolute; left: 3px; top: .5em; width: 8px; height: 8px; border-radius: 2px; background: var(--mustard); transform: rotate(45deg); }
.cred--dark { color: var(--ink-mute); margin-top: 14px; }

/* ---------- documents ---------- */
.docs { display: grid; gap: 16px; }
@media (min-width: 760px) { .docs { grid-template-columns: repeat(3, 1fr); } }
.doc { padding: 26px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-l); }
.doc__ic { width: 40px; height: 40px; padding: 8px; border-radius: 14px; background: var(--mist); color: var(--pine); margin-bottom: 14px; }
.doc p { margin-top: 8px; color: var(--ink-mute); font-size: 15px; }
.flow { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 4px; margin-top: 16px; }
.flow li { display: inline-flex; align-items: center; gap: 4px; padding: 5px 11px; border-radius: 999px; background: var(--mist-2); border: 1px solid var(--line); font: 800 12px/1.2 var(--font-sans); }
.flow li:not(:last-child)::after { content: "→"; margin-left: 4px; color: var(--sage-deep); }
.flow li:last-child { background: var(--mustard-soft); }

/* ---------- scenarios ---------- */
.scen { display: grid; gap: 16px; }
@media (min-width: 900px) { .scen { grid-template-columns: repeat(3, 1fr); align-items: start; } .sc--b { margin-top: 36px; } }
.sc { padding: 26px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-l); }
.stamp { display: inline-block; margin-bottom: 14px; padding: 5px 10px; border: 1.5px dashed var(--mustard-deep); border-radius: 8px; font: 800 11px/1.2 var(--font-sans); letter-spacing: .06em; text-transform: uppercase; color: var(--mustard-deep); transform: rotate(-1.5deg); }
.sc__dl { margin-top: 14px; display: grid; gap: 4px; }
.sc__dl dt { margin-top: 10px; font: 800 11.5px/1.2 var(--font-sans); letter-spacing: .1em; text-transform: uppercase; color: var(--sage-deep); }
.sc__dl dd { margin: 0; font-size: 15px; line-height: 1.55; color: var(--ink-mute); }

/* ---------- team ---------- */
.team { display: grid; gap: 40px; }
@media (min-width: 960px) { .team { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(40px, 5vw, 72px); } }
.team__head .lead { margin-top: 16px; }
.legal-box { margin-top: 22px; padding: 12px 16px; border: 1.5px dashed var(--mustard-deep); border-radius: 14px; background: var(--mustard-soft); font-size: 13.5px; line-height: 1.5; color: #4a3600; max-width: 52ch; }
.people { display: grid; gap: 16px; align-items: start; }
@media (min-width: 640px) { .people { grid-template-columns: 1fr 1fr; } .person:nth-child(2) { margin-top: 32px; } }
.person { padding: 26px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-l); }
.person p { margin-top: 8px; color: var(--ink-mute); font-size: 15px; line-height: 1.55; }
.person .person__role { font-weight: 800; font-size: 13.5px; color: var(--sage-deep); margin-top: 4px; }
.avatar { position: relative; width: 84px; height: 84px; margin-bottom: 18px; border-radius: 28px 28px 28px 8px; display: grid; place-items: center; font: 600 1.9rem/1 var(--font-serif); color: #fff; background: var(--pine); overflow: hidden; }
.avatar::after { content: ""; position: absolute; right: 10px; top: 10px; width: 14px; height: 14px; border-radius: 50%; background: var(--mustard); }
.avatar--b { background: var(--sage-deep); }

/* ---------- faq ---------- */
.faq { display: grid; gap: 32px; }
@media (min-width: 960px) { .faq { grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: clamp(40px, 5vw, 72px); } .faq__side { position: sticky; top: 100px; align-self: start; } }
.faq__side .lead { margin-top: 16px; }
.qa { border-bottom: 1px solid var(--line); }
.qa:first-child { border-top: 1px solid var(--line); }
.qa summary { position: relative; display: flex; align-items: center; min-height: 64px; padding: 16px 48px 16px 0; font: 600 clamp(1.05rem, 1.5vw, 1.2rem)/1.35 var(--font-serif); cursor: pointer; list-style: none; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font: 400 30px/1 var(--font-sans); color: var(--sage-deep); transition: transform .3s var(--ease); }
.qa[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.qa summary:hover { color: var(--sage-deep); }
.qa__a { padding: 0 0 24px; color: var(--ink-mute); max-width: 62ch; animation: unfold .45s var(--ease); }
@keyframes unfold { from { opacity: 0; transform: translateY(-6px); } }

/* ---------- contact ---------- */
.sec--contact { background: var(--morning); }
.contact { display: grid; gap: 24px; }
@media (min-width: 1000px) { .contact { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: start; } .map-card { position: sticky; top: 96px; } }
.form-card { padding: clamp(22px, 3vw, 34px); background: var(--card); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--shadow-lg); }
.mini-steps { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 22px; padding-bottom: 18px; border-bottom: 1px dashed var(--line-strong); font-size: 13.5px; font-weight: 700; color: var(--ink-mute); }
.mini-steps li { display: flex; align-items: center; gap: 8px; }
.mini-steps b { width: 22px; height: 22px; border-radius: 50%; background: var(--mustard); color: var(--pine); display: grid; place-items: center; font-size: 12px; flex: none; }
.fld { margin-bottom: 14px; }
.fld label { display: block; margin-bottom: 6px; font: 800 13px/1.2 var(--font-sans); letter-spacing: .03em; }
.fld input, .fld select { width: 100%; height: 52px; padding: 0 16px; border: 1.5px solid var(--line-strong); border-radius: 14px; background: #fff; font-size: 16px; transition: border-color .2s, box-shadow .2s; }
.fld input:focus, .fld select:focus { outline: none; border-color: var(--pine); box-shadow: 0 0 0 4px rgba(233, 178, 59, .45); }
.nodocs { display: flex; align-items: center; gap: 10px; margin: 6px 0 16px; padding: 12px 14px; border-radius: 14px; background: var(--mustard-soft); font-size: 14px; font-weight: 800; line-height: 1.4; }
.chk { display: flex; align-items: center; gap: 12px; margin: 4px 0; font-size: 14px; line-height: 1.5; cursor: pointer; padding: 8px 0; min-height: 44px; }
.chk input { flex: none; width: 22px; height: 22px; margin: 0; accent-color: var(--pine); }
.chk--opt { color: var(--ink-mute); }
.sla { margin-top: 12px; font-size: 13.5px; font-weight: 700; color: var(--sage-deep); text-align: center; }
.chan { margin-top: 24px; padding-top: 20px; border-top: 1px dashed var(--line-strong); }
.chan__t { font: 800 12px/1.2 var(--font-sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 12px; }
.chan__row { display: flex; flex-wrap: wrap; gap: 10px; }
.chbtn { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: 999px; border: 1.5px solid var(--line-strong); background: var(--card); font: 800 14px/1 var(--font-sans); transition: background .2s, border-color .2s; }
.chbtn:hover { background: var(--mist-2); border-color: var(--pine); }
.chan__tel { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 16px; font-size: 14px; color: var(--ink-mute); }
.chan__tel a { font-weight: 800; font-size: 17px; color: var(--pine); text-decoration: none; padding: 10px 0; }
.map-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-lg); }
.map { display: block; width: 100%; height: auto; }
.map-card__info { padding: clamp(20px, 2.6vw, 28px); display: grid; gap: 14px; justify-items: start; }
.open { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px; border-radius: 999px; background: var(--mist); font: 800 13px/1.2 var(--font-sans); }
.open__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--sage-deep); flex: none; }
.open[data-state="open"] { background: #D3EBDD; }
.open[data-state="open"] .open__dot { animation: pulse 2.4s infinite; box-shadow: 0 0 0 0 rgba(44, 122, 94, .55); }
.open[data-state="closed"] { background: var(--mustard-soft); }
.open[data-state="closed"] .open__dot { background: var(--mustard-deep); }
.addr { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.5; }
.addr .ic { margin-top: 3px; color: var(--sage-deep); }
.addr span { color: var(--ink-mute); font-size: 13.5px; }
.addr b { color: var(--pine); font-size: 15px; }
.hours { list-style: none; width: 100%; max-width: 360px; font-size: 14.5px; }
.hours li { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--line-2); }
.hours span { color: var(--ink-mute); }
.map-card__photo img { width: 100%; height: clamp(120px, 16vw, 170px); object-fit: cover; object-position: center 40%; }

/* ---------- footer ---------- */
.foot { background: var(--pine-deep); color: rgba(247, 245, 239, .82); padding: clamp(44px, 6vw, 72px) 0 28px; }
.foot a { color: var(--morning); text-decoration-color: rgba(247, 245, 239, .35); text-underline-offset: 3px; }
.foot a:hover { text-decoration-color: var(--mustard-2); }
.foot__grid { display: grid; gap: 32px; }
@media (min-width: 900px) { .foot__grid { grid-template-columns: 1.1fr .8fr 1.1fr; gap: 56px; } }
.foot__brand p { margin-top: 16px; max-width: 36ch; font-size: 14.5px; }
.foot__bar::before { content: ""; position: absolute; top: 0; left: var(--gut); right: var(--gut); height: 1px; background: rgba(247, 245, 239, .16); }
.foot__nav { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; align-content: start; }
.foot__nav a { display: flex; align-items: center; min-height: 44px; text-decoration: none; font-weight: 700; }
.foot__nav a:hover { color: var(--mustard-2); }
.foot__legal { display: grid; gap: 4px; font-size: 14px; align-content: start; }
.foot__legal p { margin: 0 0 6px; }
.foot__legal a { display: inline-block; padding: 12px 0; }
.foot__bar { position: relative; margin-top: 36px; padding-top: 20px; display: grid; gap: 8px; font-size: 12.5px; line-height: 1.55; color: rgba(247, 245, 239, .66); }

/* ---------- mobile contact bar ---------- */
.mbar { display: none; }
@media (max-width: 859px) {
  body { padding-bottom: 76px; }
  .mbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: rgba(255, 253, 248, .96); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-top: 1px solid var(--line); box-shadow: 0 -8px 28px rgba(22, 59, 54, .1); }
  .mbar button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 56px; border: 0; border-radius: 14px; background: transparent; font: 800 11.5px/1.1 var(--font-sans); color: var(--pine); }
  .mbar button:first-child { background: var(--pine); color: var(--morning); }
  .mbar .ic { width: 22px; height: 22px; }
}

/* ---------- legal pages ---------- */
.doc-page { padding-block: clamp(36px, 6vw, 80px); }
.doc-page__in { max-width: 780px; }
.doc-page h1 { font: 600 clamp(2rem, 4.4vw, 3.2rem)/1.1 var(--font-serif); letter-spacing: -.02em; margin: 14px 0 12px; }
.doc-page h2 { font: 600 1.4rem/1.25 var(--font-serif); margin: 36px 0 10px; }
.doc-page p, .doc-page li { color: var(--ink-mute); font-size: 16px; line-height: 1.7; }
.doc-page ul { display: grid; gap: 6px; margin: 10px 0 0 20px; padding: 0; }
.doc-page .meta { font-size: 14px; font-weight: 700; color: var(--sage-deep); }
.doc-page .demo-note { margin: 22px 0; padding: 14px 18px; border: 1.5px dashed var(--mustard-deep); border-radius: 14px; background: var(--mustard-soft); color: #4a3600; font-size: 14.5px; line-height: 1.55; }
.doc-page .back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 800; text-decoration: none; color: var(--sage-deep); }
.doc-page .back:hover { color: var(--pine); }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .w { animation: none; }
  .hl { animation: none; background-size: 100% 100%; }
  .yr__marker { animation: none; }
  .pulse, .mk.is-next::after, .open[data-state="open"] .open__dot { animation: none; }
  .qa__a { animation: none; }
  *, *::before, *::after { transition-duration: .001ms !important; }
}

@media (max-width: 1039px) {
  .cal__form .fs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 8px; }
  .cal__form .fs legend { grid-column: 1 / -1; }
  .cal__form .opt { margin: 0; }
}

/* ---------- mini ledger inside the grant tile ---------- */
.mledger { margin-top: auto; padding: 14px 16px; border-radius: 18px; background: rgba(255, 253, 248, .75); border: 1.5px dashed rgba(138, 90, 0, .4); }
.mledger__cap { font: 800 11px/1.4 var(--font-sans) !important; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-mute) !important; margin-bottom: 8px; }
.mledger__cap em { font-style: normal; text-transform: none; letter-spacing: .02em; color: var(--mustard-deep); }
.mledger ul { list-style: none; display: grid; gap: 0; }
.mledger li { display: grid; gap: 1px; padding: 8px 0 8px 24px; position: relative; border-top: 1px solid rgba(22, 59, 54, .1); font-size: 14px; }
.mledger li:first-child { border-top: 0; }
.mledger li::before { content: ""; position: absolute; left: 4px; top: 13px; width: 6px; height: 11px; border: solid var(--sage-deep); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) scale(.8); }
.mledger li span { font-weight: 800; }
.mledger li i { font-style: normal; font-size: 12.5px; color: var(--ink-mute); }
.tile--grant .tile__price { margin-top: 16px; }

/* shared ribbon: keep it inside the viewport at tablet widths */
@media (max-width: 1000px) { .nx-ribbon__note { display: none; } }
