/* Бухгалтер Анна Валиева — «Ритм периода». Токены: Утро, Хвоя, Шалфей, Туман, Коралл. */
:root {
  --morning: #F7F5EF;
  --paper: #FDFCF9;
  --pine: #163B36;
  --pine-2: #2B4F49;
  --muted: #566F69;
  --sage: #67A98E;
  --sage-ink: #2E6B56;
  --mist: #D9E8DF;
  --mist-2: #EAF2EC;
  --coral: #FF8A5B;
  --coral-ink: #B24A22;
  --coral-soft: #FFEFE7;
  --line: rgba(22, 59, 54, .16);
  --line-2: rgba(22, 59, 54, .09);
  --serif: "Literata", "Iowan Old Style", "Palatino Linotype", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max: 1240px;
  --gut: clamp(20px, 4vw, 48px);
  --rail: 88px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::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 17px/1.6 var(--sans); font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { max-width: 100%; }
img { display: block; height: auto; }
a { color: inherit; text-decoration-color: var(--sage); text-underline-offset: .2em; }
a:hover { text-decoration-color: var(--coral); }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-family: var(--serif); font-weight: 500; letter-spacing: -.012em; }
ul, ol { padding: 0; margin: 0; list-style: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--pine); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 100; background: var(--pine); color: var(--morning); padding: 12px 18px; border-radius: 10px; text-decoration: none; }
.skip:focus { top: 12px; }

.wrap { width: min(100% - 2 * var(--gut), var(--max)); margin-inline: auto; }
.small { font-size: 13.5px; line-height: 1.5; color: var(--muted); margin: 10px 0 0; }
.small--box { background: var(--paper); border-left: 3px solid var(--coral); padding: 14px 16px; border-radius: 0 12px 12px 0; margin-top: 22px; }

/* type */
.h1 { font-size: clamp(2.2rem, 3.5vw, 3.2rem); line-height: 1.08; letter-spacing: -.025em; font-weight: 500; }
.h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); line-height: 1.1; letter-spacing: -.02em; max-width: 26ch; }
.h2 em, .h1 em { font-style: italic; font-weight: 450; color: var(--sage-ink); }
.h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); line-height: 1.2; }
.h3--gap { margin-top: 56px; margin-bottom: 18px; }
.ul { white-space: nowrap; text-decoration: underline; text-decoration-color: var(--coral); text-decoration-thickness: .075em; text-underline-offset: .13em; text-decoration-skip-ink: none; }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.2rem); line-height: 1.6; color: var(--pine-2); max-width: 60ch; }
.lead--s { margin-top: 20px; }
.kicker { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; font: 800 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--sage-ink); }
.kicker::before { content: ""; width: 22px; height: 3px; border-radius: 2px; background: var(--coral); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55em; min-height: 48px; padding: 0 22px; border-radius: 14px; border: 1.5px solid transparent; font: 700 15px/1.1 var(--sans); text-decoration: none; text-align: center; transition: transform .25s var(--ease), background .25s, color .25s, box-shadow .25s, border-color .25s; }
.btn--primary { background: var(--coral); color: var(--pine); }
.btn--primary:hover { background: #FF9A71; transform: translateY(-1px); box-shadow: 0 10px 22px -10px rgba(255, 138, 91, .9); }
.btn--line { border-color: var(--pine); background: transparent; color: var(--pine); }
.btn--line:hover { background: var(--pine); color: var(--morning); }
.btn--soft { background: var(--mist); color: var(--pine); }
.btn--soft:hover { background: #C6DDD0; }
.btn--sm { min-height: 44px; padding: 0 16px; font-size: 14px; border-radius: 12px; }
.btn--lg { min-height: 54px; padding: 0 28px; font-size: 16px; }
.tel { background: none; border: 0; padding: 12px 0; min-height: 44px; font: 700 17px var(--sans); text-decoration: underline; text-decoration-color: var(--coral); text-underline-offset: .25em; text-decoration-thickness: 2px; }

.badge { display: inline-flex; align-items: center; gap: 8px; min-height: 34px; padding: 0 13px; border-radius: 999px; background: var(--mist); font: 600 12.5px/1 var(--sans); color: var(--pine-2); white-space: nowrap; }
.badge i { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.badge.is-open i { background: #2E9E6F; box-shadow: 0 0 0 4px rgba(46, 158, 111, .22); }
.badge.is-appt i { background: var(--coral); }

/* header */
.hdr { position: sticky; top: 0; z-index: 50; background: rgba(247, 245, 239, .9); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.hdr.is-stuck { border-bottom-color: var(--line); }
.hdr__in { display: flex; align-items: center; gap: 16px; min-height: 72px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: none; min-height: 44px; }
.logo__mark { width: 40px; height: 40px; flex: none; }
.logo__t { display: grid; line-height: 1.15; }
.logo__t b { font: 600 19px/1.1 var(--serif); letter-spacing: -.01em; }
.logo__t small { font: 600 11.5px/1.3 var(--sans); color: var(--muted); letter-spacing: .02em; }
.nav ul { display: flex; gap: 2px; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; white-space: nowrap; border-radius: 10px; font: 600 14.5px var(--sans); text-decoration: none; color: var(--pine-2); transition: background .2s, color .2s; }
.nav a:hover { background: var(--mist-2); color: var(--pine); }
.hdr__side { margin-left: auto; display: flex; align-items: center; gap: 12px; flex: none; }
.hdr__side .btn { white-space: nowrap; }
.burger { display: none; width: 46px; height: 46px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--paper); position: relative; }
.burger span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--pine); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.burger span:nth-child(1) { top: 15px; } .burger span:nth-child(2) { top: 21px; } .burger span:nth-child(3) { top: 27px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 1340px) { .hdr__side .badge { display: none; } }
@media (max-width: 1160px) {
  .burger { display: block; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--morning); border-bottom: 1px solid var(--line); padding: 8px var(--gut) 18px; display: none; box-shadow: 0 24px 40px -28px rgba(22, 59, 54, .4); }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; }
  .nav a { min-height: 52px; font-size: 17px; border-bottom: 1px solid var(--line-2); border-radius: 0; width: 100%; }
}
@media (max-width: 380px) { .hdr__side .btn { display: none; } }
@media (max-width: 460px) { .logo__t small { display: none; } .hdr__side .btn { padding: 0 14px; white-space: nowrap; } .hide-sm { display: none; } }

/* shared ribbon: keep it inside the viewport and tappable on phones/tablets */
@media (max-width: 900px) { .nx-ribbon__note { display: none; } }
@media (max-width: 820px) { .nx-ribbon { padding-block: 0 7px; } .nx-ribbon a { min-height: 44px; } .nx-ribbon__cta { min-height: 32px !important; align-self: center; position: relative; } .nx-ribbon__cta::after { content: ""; position: absolute; inset: -7px -6px; } }

/* page skeleton: sections with a rail and a spine */
main { position: relative; }
.spine { display: none; }
.sec { position: relative; padding-block: clamp(60px, 8vw, 116px); }
.sec--tint { background: var(--mist-2); }
.sec__rail { display: none; }
@media (min-width: 1000px) {
  .spine { display: block; position: absolute; z-index: 2; top: 0; bottom: 0; left: calc((100% - min(100% - 2 * var(--gut), var(--max))) / 2 + var(--rail) - 1px); width: 2px; background: linear-gradient(var(--line), var(--line)); pointer-events: none; }
  .spine::after { content: ""; position: absolute; left: 0; top: 0; width: 2px; height: calc(var(--sp, 0) * 100%); background: linear-gradient(var(--sage), var(--coral)); }
  .sec__grid { display: grid; grid-template-columns: var(--rail) minmax(0, 1fr); column-gap: clamp(28px, 3.6vw, 60px); }
  .sec__rail { display: flex; flex-direction: column; align-items: flex-end; gap: 14px; position: sticky; top: 108px; align-self: start; padding-right: 20px; height: max-content; z-index: 3; }
  .sec__rail::after { content: ""; position: absolute; right: -7px; top: 5px; width: 13px; height: 13px; border-radius: 50%; background: var(--morning); border: 3px solid var(--sage); }
  .sec--tint .sec__rail::after { background: var(--mist-2); }
  .rail__no { font: 500 22px/1 var(--serif); color: var(--pine); }
  .rail__tag { writing-mode: vertical-rl; transform: rotate(180deg); font: 800 11px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
}

/* hero */
.hero { padding-top: clamp(28px, 4vw, 56px); padding-bottom: clamp(56px, 7vw, 96px); overflow: hidden; }
.hero__grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .hero__grid { grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: clamp(24px, 4vw, 64px); } }
.today { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 26px; padding: 8px 15px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font: 700 13px/1.2 var(--sans); }
.today i { width: 9px; height: 9px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 4px rgba(255, 138, 91, .25); }
.hero .h1 { margin-bottom: 26px; }
.hero .lead { max-width: 52ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.facts { margin: 34px 0 0; display: grid; gap: 12px; max-width: 52ch; }
.facts li { position: relative; padding-left: 32px; font-size: 15.5px; line-height: 1.45; color: var(--pine-2); }
.facts li::before { content: ""; position: absolute; left: 0; top: .1em; width: 20px; height: 20px; border-radius: 50%; background: var(--sage); }
.facts li::after { content: ""; position: absolute; left: 7px; top: .3em; width: 6px; height: 10px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }

.hero__art { position: relative; width: 100%; max-width: 560px; margin-inline: auto; aspect-ratio: 620 / 640; }
.ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ring__base { fill: none; stroke: var(--line); stroke-width: 1.5; stroke-dasharray: 1 7; }
.ring__q { fill: none; stroke-width: 22; stroke-dasharray: 100; stroke-dashoffset: 0; transition: stroke-dashoffset 1.1s var(--ease); }
.ring__ticks { fill: none; stroke: var(--pine); stroke-width: 1.6; opacity: .45; stroke-linecap: round; }
.ring__prog { fill: none; stroke: var(--pine); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--p, 78.6)); transform: rotate(-90deg); transform-origin: 280px 340px; transition: stroke-dashoffset 2.4s cubic-bezier(.5, 0, .1, 1) .3s; }
.ring__lab circle { fill: var(--morning); stroke: var(--line); stroke-width: 1.5; }
.ring__lab text { font: 800 12px var(--sans); fill: var(--pine); text-anchor: middle; dominant-baseline: central; letter-spacing: .02em; }
.ring__hand { transform-origin: 280px 340px; transform: rotate(var(--deg, 283deg)); transition: transform 2.4s cubic-bezier(.5, 0, .1, 1) .3s; }
.ring__hand circle:first-child { fill: var(--coral); stroke: var(--morning); stroke-width: 4; }
.ring__hand circle:last-child { fill: var(--pine); }
.js .ring:not(.is-in) .ring__q { stroke-dashoffset: 100; }
.js .ring:not(.is-in) .ring__prog { stroke-dashoffset: 100; }
.js .ring:not(.is-in) .ring__hand { transform: rotate(0deg); }
.ring__q:nth-of-type(2) { transition-delay: .12s; } .ring__q:nth-of-type(3) { transition-delay: .24s; } .ring__q:nth-of-type(4) { transition-delay: .36s; }
.ring__year { position: absolute; left: 3%; top: 4%; margin: 0; font: 800 11px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.arch { position: absolute; margin: 0; left: 19.4%; top: 12.4%; width: 61.2%; border-radius: 999px 999px 26px 26px; overflow: hidden; background: var(--mist); box-shadow: 0 30px 60px -34px rgba(22, 59, 54, .55); }
.arch img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.art__cap { position: absolute; left: 3%; bottom: -2%; margin: 0; font: 700 11.5px/1 var(--sans); color: var(--muted); }
.hero__art::before { content: ""; position: absolute; inset: -8% -14%; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, var(--mist-2), rgba(234, 242, 236, 0)); }
.next { position: absolute; right: -2%; bottom: 5%; width: min(292px, 62%); padding: 16px 18px 6px; border-radius: 22px; background: var(--paper); border: 1px solid var(--line); box-shadow: 0 24px 50px -24px rgba(22, 59, 54, .5); }
.next p { margin: 0; }
.next__k { display: flex; align-items: center; gap: 8px; font: 800 10.5px/1.2 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.next__k i { width: 8px; height: 8px; border-radius: 50%; background: var(--coral); flex: none; }
.next__list { margin: 10px 0 0; }
.next__list li { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 12px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line-2); }
.next__list li:first-child { border-top: 0; }
.nl__d { display: grid; align-content: center; justify-items: center; width: 44px; height: 46px; border-radius: 12px; background: var(--mist-2); color: var(--pine); }
.nl__d b { font: 500 21px/1 var(--serif); }
.nl__d small { margin-top: 3px; font: 800 9px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--sage-ink); }
.next__list li:first-child .nl__d { background: var(--coral); }
.next__list li:first-child .nl__d small { color: var(--pine); }
.nl__t { display: grid; gap: 1px; font: 700 13.5px/1.3 var(--sans); }
.nl__t em { font: 500 12px/1.3 var(--sans); font-style: normal; color: var(--muted); }
.next__a { display: inline-flex; align-items: center; gap: 6px; margin-top: 2px; min-height: 44px; font: 700 13px var(--sans); color: var(--sage-ink); text-decoration: none; }
.next__a svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.next__a:hover svg { transform: translateX(4px); }
@media (min-width: 1200px) {
  .hero__art { margin-bottom: 64px; }
  .next { bottom: -17%; right: -4%; }
}
@media (max-width: 1199px) {
  .hero__art { margin-bottom: 292px; }
  .next { left: 50%; right: auto; top: calc(100% + 30px); bottom: auto; transform: translateX(-50%); width: min(100%, 340px); }
}

/* calendar */
.profile { display: grid; gap: 22px 36px; grid-template-columns: 1fr; margin-top: 36px; padding: 24px 28px 26px; background: var(--paper); border: 1px solid var(--line); border-radius: 26px; }
.seg { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-wrap: wrap; align-content: flex-start; gap: 8px; }
.seg legend { padding: 0; margin: 0 0 10px; font: 800 11.5px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.seg label { position: relative; display: inline-flex; }
.seg input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.seg span { display: inline-flex; align-items: center; min-height: 46px; padding: 0 16px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; font: 600 14.5px/1.2 var(--sans); transition: background .2s, color .2s, border-color .2s; }
.seg label:hover span { border-color: var(--pine); }
.seg input:checked + span { background: var(--pine); border-color: var(--pine); color: var(--morning); }
.seg input:focus-visible + span { outline: 3px solid var(--coral); outline-offset: 2px; }
.seg input:disabled { cursor: not-allowed; }
.seg input:disabled + span { opacity: .38; }

.cal { display: grid; gap: 36px; margin-top: 40px; }
@media (min-width: 1100px) { .profile { grid-template-columns: auto minmax(0, 1fr) auto; } }
@media (min-width: 900px) { .cal { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 4.4vw, 72px); } .cal__side { position: sticky; top: 100px; align-self: start; } }
.dial { margin: 0 auto; width: min(100%, 460px); }
.dial__box { position: relative; background: var(--paper); border-radius: 50%; box-shadow: 0 30px 60px -40px rgba(22, 59, 54, .5), inset 0 0 0 1px var(--line-2); }
.dial svg { display: block; width: 100%; height: auto; overflow: visible; }
.dial__ro { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 44%; text-align: center; }
.dial__ro p { margin: 0; }
.dial__k { font: 800 10px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.dial__d { margin-top: 8px !important; font: 500 clamp(26px, 4.4vw, 38px)/1 var(--serif); letter-spacing: -.02em; }
.dial__t { margin-top: 8px !important; font: 600 13px/1.3 var(--sans); }
.dial__r { margin-top: 6px !important; font-size: 12.5px; color: var(--muted); }
.dial__cap { margin-top: 18px; font-size: 12.5px; line-height: 1.5; color: var(--muted); text-align: center; }
.js .dial__box:not(.is-built) { opacity: .0; }
.dial__box { transition: opacity .6s; }
.d-q { fill: none; stroke-width: 26; stroke-dasharray: 100; stroke-dashoffset: 0; transition: stroke-dashoffset 1.2s var(--ease); }
.dial__box:not(.is-in) .d-q { stroke-dashoffset: 100; }
.d-ql text { font: 800 9.5px var(--sans); fill: var(--pine); text-anchor: middle; dominant-baseline: central; letter-spacing: .08em; opacity: .8; }
.d-m line { stroke: var(--pine); stroke-width: 1.4; opacity: .4; }
.d-m text { font: 700 11.5px var(--sans); fill: var(--muted); text-anchor: middle; dominant-baseline: central; }
.d-now rect { fill: var(--pine); }
.d-now text { font: 800 10px var(--sans); fill: var(--morning); text-anchor: middle; dominant-baseline: central; letter-spacing: .08em; text-transform: uppercase; }
.d-now line { stroke: var(--pine); stroke-width: 2; }
.d-hand { transform-origin: 220px 220px; transform: rotate(var(--deg, 0deg)); transition: transform 1.3s cubic-bezier(.5, 0, .1, 1); }
.d-hand line { stroke: var(--coral); stroke-width: 2.5; stroke-linecap: round; }
.d-mark { cursor: pointer; transform-box: fill-box; transform-origin: center; transition: transform .4s var(--ease); }
.d-mark circle { fill: #fff; stroke: var(--coral); stroke-width: 3; transition: fill .3s, stroke .3s; }
.d-mark text { font: 800 12.5px var(--sans); fill: var(--pine); text-anchor: middle; dominant-baseline: central; pointer-events: none; }
.d-mark:focus { outline: none; }
.d-mark .d-focus { fill: none; stroke: var(--pine); stroke-width: 2.5; stroke-dasharray: 4 3; opacity: 0; pointer-events: none; transition: opacity .2s; }
.d-mark:focus-visible .d-focus { opacity: 1; }
.d-mark.is-active { transform: scale(1.28); }
.d-mark.is-active circle { fill: var(--coral); stroke: var(--pine); }

.cal__sum { margin: 0 0 22px; font: 800 12px/1.4 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--sage-ink); }
.tl { --tl-d: 108px; position: relative; }
.tl::before { content: ""; position: absolute; top: 14px; bottom: 28px; left: calc(var(--tl-d) + 10px); width: 2px; background: var(--line); }
.tl__item { position: relative; display: grid; grid-template-columns: var(--tl-d) minmax(0, 1fr); column-gap: 20px; padding-bottom: 18px; }
.tl__item::before { content: ""; position: absolute; left: calc(var(--tl-d) + 3px); top: 16px; width: 16px; height: 16px; border-radius: 50%; background: var(--morning); border: 3px solid var(--sage); transition: background .3s, border-color .3s, transform .3s var(--ease); z-index: 1; }
.tl__item.is-active::before { background: var(--coral); border-color: var(--pine); transform: scale(1.2); }
.tl__item.is-past::before { border-color: var(--line); background: var(--mist-2); }
.tl__date { padding: 2px 14px 0 0; text-align: right; }
.tl__date b { display: block; font: 500 clamp(40px, 5vw, 62px)/.95 var(--serif); letter-spacing: -.03em; }
.tl__date span { display: block; margin-top: 4px; font: 700 12px/1.25 var(--sans); color: var(--muted); }
.tl__card { padding: 18px 22px 20px; background: var(--paper); border: 1.5px solid var(--line-2); border-radius: 20px; transition: border-color .3s, box-shadow .3s, background .3s; cursor: default; }
.tl__item.is-active .tl__card { border-color: var(--coral); box-shadow: 0 22px 44px -30px rgba(178, 74, 34, .55); }
.tl__item.is-past .tl__card { background: transparent; border-style: dashed; border-color: var(--line); }
.tl__item.is-past .tl__date b { color: var(--muted); }
.tl__tags { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; margin-bottom: 10px; }
.tl__n { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--coral); color: var(--pine); font: 800 12px/1 var(--sans); }
.tl__n:empty { display: none; }
.tl__item.is-past .tl__n { display: none; }
.chip { display: inline-flex; align-items: center; min-height: 26px; padding: 0 11px; border-radius: 999px; background: var(--mist); color: var(--pine-2); font: 700 12px/1.2 var(--sans); }
.tl__rel { margin-left: auto; font: 600 12.5px var(--sans); color: var(--muted); }
.tl__title { font-size: clamp(1.2rem, 1.9vw, 1.5rem); line-height: 1.2; }
.tl__text { margin: 8px 0 0; font-size: 15px; color: var(--pine-2); line-height: 1.5; }
.tl__who { margin: 14px 0 0; display: grid; gap: 8px; }
.tl__who div { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 10px; font-size: 14px; line-height: 1.45; }
.tl__who dt { font: 800 11px/1.6 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--sage-ink); }
.tl__who dd { margin: 0; color: var(--pine-2); }
.tl__empty { padding: 18px 20px; border: 1.5px dashed var(--line); border-radius: 16px; background: var(--paper); font-size: 15px; color: var(--pine-2); }
.tl__more { margin: 0 0 8px; }
.linkbtn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 4px; border: 0; background: none; font: 700 14px var(--sans); color: var(--sage-ink); text-decoration: underline; text-decoration-color: var(--sage); text-underline-offset: .25em; }
.linkbtn:hover { color: var(--pine); }

.ctrl { margin-top: 36px; padding: 24px 26px 6px; border-radius: 22px; background: var(--paper); border: 1px solid var(--line); }
.ctrl__h { font: 800 12px/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.ctrl__list li { position: relative; padding: 0 0 18px 26px; font-size: 15px; line-height: 1.55; color: var(--pine-2); }
.ctrl__list li::before { content: ""; position: absolute; left: 0; top: .5em; width: 10px; height: 10px; border-radius: 3px; background: var(--sage); transform: rotate(45deg); }
.ctrl__list b { color: var(--pine); }
.cal__cta { margin-top: 28px; }
.calnote { margin-top: 34px; max-width: 880px; }
.calnote .est__meta { margin-top: 0; }
.cal__cta .small { margin-top: 12px; }

/* estimator */
.est { margin-top: clamp(48px, 6vw, 80px); padding: clamp(24px, 3.4vw, 40px); background: var(--paper); border: 1px solid var(--line); border-radius: 30px; }
.est__head { margin-bottom: 24px; }
.est__head .kicker { margin-bottom: 14px; }
.est__head .h3 { max-width: 34ch; }
.est__grid { display: grid; gap: 28px 44px; }
@media (min-width: 860px) { .est__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; } }
.est label { display: block; margin-bottom: 8px; font: 700 14px/1.3 var(--sans); }
.est label small { font-weight: 500; color: var(--muted); }
input[type="text"], input[type="tel"], select { width: 100%; min-height: 52px; padding: 0 16px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; font: 600 16px var(--sans); color: var(--pine); transition: border-color .2s, box-shadow .2s; }
select { appearance: none; padding-right: 44px; background-image: linear-gradient(45deg, transparent 50%, var(--pine) 50%), linear-gradient(135deg, var(--pine) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
input[type="text"]:focus, input[type="tel"]:focus, select:focus { outline: none; border-color: var(--pine); box-shadow: 0 0 0 4px rgba(255, 138, 91, .35); }
.est__rows > div { padding: 16px 0; border-top: 1px solid var(--line-2); display: grid; gap: 4px; }
.est__rows > div:first-child { border-top: 0; padding-top: 0; }
.est__rows dt { font: 700 13.5px/1.35 var(--sans); color: var(--muted); }
.est__rows dd { margin: 0; font: 500 clamp(26px, 3.2vw, 36px)/1.1 var(--serif); letter-spacing: -.015em; }
.est__rows dd[data-extra].is-hint { font: 600 16px/1.4 var(--sans); color: var(--muted); letter-spacing: 0; }
.est__rows .est__due { font: 600 13px/1.4 var(--sans); color: var(--sage-ink); letter-spacing: 0; }
.est__sum dd { color: var(--pine); }
.est__state { margin: 0; font-size: 15.5px; line-height: 1.55; color: var(--pine-2); }
p.est__state { padding: 18px 20px; border-radius: 16px; background: var(--mist-2); }
.est__meta { margin: 28px 0 0; padding-top: 22px; border-top: 1px solid var(--line-2); display: grid; gap: 8px; font-size: 13.5px; line-height: 1.55; color: var(--pine-2); }
.est__meta b { color: var(--pine); }
.disclaimer { margin: 18px 0 0; padding: 2px 0 2px 16px; border-left: 3px solid var(--coral); font-size: 12.5px; line-height: 1.6; color: var(--muted); }

/* rhythm */
.rhythm { margin-top: clamp(40px, 5vw, 64px); }
.per { display: grid; gap: 22px 56px; padding: clamp(30px, 4vw, 52px) 0; border-top: 1px solid var(--line); align-items: start; }
.per:last-child { border-bottom: 1px solid var(--line); }
@media (min-width: 860px) {
  .per { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .per__lab { grid-column: 1 / -1; }
  .per--r .per__body { order: 2; } .per--r .per__frag { order: 1; }
  .per--r .per__lab { text-align: right; flex-direction: row-reverse; }
}
.per__lab { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.per__big { margin: 0; font: 400 clamp(3.6rem, 10vw, 8.4rem)/.9 var(--serif); letter-spacing: -.04em; color: transparent; -webkit-text-stroke: 1.5px var(--sage); }
.per__n { margin: 0; font: 700 14px var(--sans); color: var(--muted); }
.per__n b { font: 500 34px var(--serif); color: var(--pine); margin-right: 6px; }
.per__body p { color: var(--pine-2); max-width: 52ch; }
.per__body .h3 { margin-bottom: 14px; }
.two { display: grid; gap: 12px; margin-top: 20px; }
.two li { padding: 14px 16px; border-radius: 14px; background: var(--paper); border: 1px solid var(--line-2); font-size: 15px; line-height: 1.5; }
.two b { display: block; margin-bottom: 2px; font: 800 11px/1.6 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--sage-ink); }
.frag { padding: 20px 22px; border-radius: 20px; background: var(--paper); border: 1px solid var(--line); box-shadow: 0 24px 44px -34px rgba(22, 59, 54, .5); }
.frag__t { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; margin: 0 0 8px; font: 700 15px var(--sans); }
.frag__t span { font: 600 11.5px var(--sans); color: var(--muted); padding: 2px 8px; border: 1px dashed var(--line); border-radius: 999px; }
.frag__rows li { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 11px 0; border-top: 1px solid var(--line-2); font-size: 14.5px; }
.frag__rows li:first-child { border-top: 0; }
.st { flex: none; font-style: normal; font: 700 12.5px/1 var(--sans); padding: 6px 11px; border-radius: 999px; }
.st--ok { background: #DDF0E5; color: #1D5742; }
.st--wait { background: #FFE6DA; color: #8C3815; }
.frag__steps { counter-reset: s; margin-top: 8px; }
.frag__steps li { position: relative; padding: 12px 0 12px 38px; font-size: 14.5px; border-top: 1px solid var(--line-2); color: var(--muted); }
.frag__steps li:first-child { border-top: 0; }
.frag__steps li::before { content: ""; position: absolute; left: 0; top: 12px; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); background: #fff; }
.frag__steps li.is-done { color: var(--pine); }
.frag__steps li.is-done::before { background: var(--sage); border-color: var(--sage); }
.frag__steps li.is-done::after { content: ""; position: absolute; left: 8px; top: 17px; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.frag__steps li.is-now { color: var(--pine); font-weight: 700; }
.frag__steps li.is-now::before { border-color: var(--coral); box-shadow: 0 0 0 5px rgba(255, 138, 91, .25); }
.frag--s { margin-top: 18px; padding: 14px 16px; box-shadow: none; background: var(--mist-2); }
.bar__t { margin: 0 0 10px; font: 600 13.5px var(--sans); }
.bar { height: 12px; border-radius: 99px; background: #fff; border: 1px solid var(--line); overflow: hidden; }
.bar i { display: block; width: 62%; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--sage), var(--coral)); }
.photo { position: relative; margin: 0; border-radius: 26px; overflow: hidden; background: var(--mist); }
.photo img { width: 100%; }
.photo figcaption { position: absolute; left: 14px; bottom: 14px; padding: 6px 12px; border-radius: 999px; background: rgba(253, 252, 249, .9); font: 700 11.5px/1 var(--sans); color: var(--pine-2); }
.per__frag--photo .photo { max-width: 400px; }
@media (min-width: 860px) { .per__frag--photo .photo { margin-left: auto; } }

/* checklist */
.start { display: grid; gap: 40px; }
@media (min-width: 960px) { .start { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(36px, 5vw, 80px); } .start__intro { position: sticky; top: 100px; align-self: start; } }
.start__intro .btn { margin-top: 6px; }
.prog { position: relative; width: 132px; height: 132px; margin: 28px 0 14px; }
.prog__ring { width: 100%; height: 100%; }
.prog__bg { fill: none; stroke: var(--mist); stroke-width: 10; }
.prog__fg { fill: none; stroke: var(--coral); stroke-width: 10; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--v, 0)); transform: rotate(-90deg); transform-origin: 60px 60px; transition: stroke-dashoffset .7s var(--ease); }
.prog__n { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; margin: 0; }
.prog__n b { font: 500 40px/1 var(--serif); }
.prog__n span { font: 700 12px var(--sans); color: var(--muted); }
.prog__msg { min-height: 3.2em; margin: 0 0 14px; font-size: 15.5px; color: var(--pine-2); max-width: 32ch; }
.ck { display: grid; gap: 10px; }
.ck label { position: relative; display: flex; align-items: flex-start; gap: 16px; min-height: 64px; padding: 16px 20px; border-radius: 18px; background: var(--paper); border: 1.5px solid var(--line-2); cursor: pointer; transition: border-color .25s, background .25s, transform .25s var(--ease); }
.ck label:hover { border-color: var(--sage); transform: translateX(3px); }
.ck input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ck__box { flex: none; position: relative; width: 28px; height: 28px; margin-top: 1px; border-radius: 9px; border: 2px solid var(--sage-ink); background: #fff; transition: background .25s, border-color .25s; }
.ck__box::after { content: ""; position: absolute; left: 8px; top: 3px; width: 7px; height: 13px; border: solid #fff; border-width: 0 3px 3px 0; transform: rotate(45deg) scale(0); transition: transform .25s var(--ease); }
.ck input:checked + .ck__box { background: var(--pine); border-color: var(--pine); }
.ck input:checked + .ck__box::after { transform: rotate(45deg) scale(1); }
.ck input:focus-visible + .ck__box { outline: 3px solid var(--coral); outline-offset: 3px; }
.ck label:has(input:checked) { background: var(--mist); border-color: var(--sage); }
.ck__t { display: grid; gap: 3px; }
.ck__t b { font: 700 16px/1.35 var(--sans); }
.ck__t small { font-size: 14px; line-height: 1.5; color: var(--muted); }

/* prices */
.ptable, .itable { width: 100%; border-collapse: collapse; margin-top: 38px; }
.ptable th, .itable th { text-align: left; font: 800 11.5px/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 0 16px 14px 0; }
.ptable td, .ptable tbody th, .itable td, .itable tbody th { padding: 20px 20px 20px 0; border-top: 1px solid var(--line); vertical-align: top; font-size: 15.5px; line-height: 1.5; }
.ptable tbody th { font: 600 17px/1.35 var(--serif); letter-spacing: -.005em; text-transform: none; color: var(--pine); width: 34%; }
.ptable td:nth-child(2) { width: 24%; font: 500 26px/1.15 var(--serif); letter-spacing: -.01em; white-space: nowrap; }
.ptable td:nth-child(2) small { display: block; margin-top: 3px; font: 600 12.5px/1.3 var(--sans); color: var(--muted); letter-spacing: 0; white-space: normal; }
.from { font: 700 13px var(--sans); color: var(--muted); margin-right: 2px; letter-spacing: 0; }
.ptable td:nth-child(3) { color: var(--pine-2); }
.ptable tbody tr { transition: background .25s; }
.ptable tbody tr:hover { background: rgba(217, 232, 223, .45); }
.itable { border-collapse: separate; border-spacing: 0; border-radius: 20px; overflow: hidden; }
.itable thead th { padding: 14px 18px; background: var(--pine); color: var(--morning); letter-spacing: .1em; }
.itable td, .itable tbody th { padding: 18px; }
.itable tbody th { font: 700 15.5px var(--sans); text-transform: none; letter-spacing: 0; color: var(--pine); width: 17%; }
.itable td:nth-child(2) { background: var(--mist-2); width: 42%; }
.itable td:nth-child(3) { background: var(--coral-soft); width: 41%; }
@media (max-width: 859px) {
  .ptable thead, .itable thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .ptable, .ptable tbody, .ptable tr, .ptable td, .ptable tbody th, .itable, .itable tbody, .itable tr, .itable td, .itable tbody th { display: block; width: 100% !important; }
  .ptable tr { padding: 18px 0; border-top: 1px solid var(--line); display: grid; gap: 6px; }
  .ptable td, .ptable tbody th { border: 0; padding: 0; }
  .ptable td:nth-child(2) { white-space: normal; }
  .ptable td:nth-child(3)::before { content: "Что влияет: "; font-weight: 800; color: var(--sage-ink); }
  .itable tr { margin-bottom: 14px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
  .itable tbody th { background: var(--pine); color: var(--morning); padding: 12px 16px; }
  .itable td { padding: 14px 16px; }
  .itable td::before { content: attr(data-label); display: block; margin-bottom: 4px; font: 800 11px var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--sage-ink); }
  .itable td:nth-child(3)::before { color: var(--coral-ink); }
}

/* responsibility */
.resp { display: grid; gap: 18px; margin-top: clamp(36px, 5vw, 56px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); }
.resp li { padding: 26px 26px 24px; background: var(--paper); border: 1px solid var(--line-2); border-radius: 24px; }
.resp__n { display: inline-grid; place-items: center; width: 40px; height: 40px; margin-bottom: 16px; border-radius: 50%; background: var(--pine); color: var(--morning); font: 500 18px/1 var(--serif); }
.resp h3 { font-size: 1.3rem; line-height: 1.2; margin-bottom: 10px; }
.resp p { margin: 0; font-size: 15.5px; line-height: 1.6; color: var(--pine-2); }
.resp__note { background: transparent !important; border: 1.5px dashed var(--sage) !important; }

/* cases */
.cases { display: grid; gap: 20px; margin-top: clamp(36px, 5vw, 56px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.case { padding: 26px; background: var(--paper); border: 1px solid var(--line-2); border-radius: 26px; display: flex; flex-direction: column; }
.case__tag { align-self: flex-start; margin: 0 0 16px; padding: 5px 11px; border: 1px dashed var(--coral-ink); border-radius: 999px; font: 700 11.5px/1 var(--sans); color: var(--coral-ink); }
.case h3 { font-size: 1.35rem; line-height: 1.2; margin-bottom: 16px; }
.case dl { display: grid; gap: 12px; margin: 0; flex: 1; }
.case dl div { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 10px; font-size: 14.5px; line-height: 1.5; }
.case dt { font: 800 11px/1.7 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--sage-ink); }
.case dd { margin: 0; color: var(--pine-2); }

/* about */
.about { display: grid; gap: 36px; }
@media (min-width: 900px) { .about { grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr); gap: clamp(36px, 5vw, 80px); align-items: start; } .about__photo { position: sticky; top: 100px; } }
.about__text .h2 { margin-bottom: 22px; }
.about__text > p { color: var(--pine-2); max-width: 56ch; }
.cred { margin: 26px 0 8px; display: grid; gap: 0; border-top: 1px solid var(--line); }
.cred div { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cred dt { font: 700 15.5px var(--sans); }
.cred dd { margin: 0; color: var(--pine-2); font-size: 15px; }
.demo { display: inline-block; margin-left: 6px; padding: 2px 8px; border: 1px dashed var(--coral-ink); border-radius: 999px; font: 800 10px/1.4 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--coral-ink); vertical-align: 2px; }
.safe { margin-top: 30px; padding: 22px 24px; border-radius: 20px; background: var(--pine); color: var(--morning); }
.safe h3 { font-size: 1.2rem; margin-bottom: 8px; }
.safe p { margin: 0; font-size: 15px; line-height: 1.6; color: #DCE9E2; }

/* faq */
.faq { margin-top: 36px; max-width: 860px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 66px; padding: 14px 0; list-style: none; cursor: pointer; font: 500 clamp(1.05rem, 1.7vw, 1.3rem)/1.3 var(--serif); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--mist) linear-gradient(var(--pine), var(--pine)) center / 12px 2px no-repeat, linear-gradient(var(--pine), var(--pine)) center / 2px 12px no-repeat; transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(135deg); }
.faq summary:hover { color: var(--sage-ink); }
.faq details p { margin: 0; padding: 0 0 22px; max-width: 64ch; color: var(--pine-2); }

/* contact */
.contact { display: grid; gap: 28px; margin-top: 40px; }
@media (min-width: 960px) { .contact { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 3.4vw, 56px); align-items: start; } }
.lead-form { display: grid; gap: 16px; padding: clamp(22px, 3vw, 34px); background: var(--paper); border: 1px solid var(--line); border-radius: 28px; }
.fld label { display: block; margin-bottom: 7px; font: 700 14px/1.3 var(--sans); }
.lead-form__warn { display: flex; align-items: center; gap: 10px; margin: 0; padding: 12px 14px; border-radius: 12px; background: var(--coral-soft); font: 700 14.5px/1.35 var(--sans); color: #7A3213; }
.lead-form__warn svg { width: 22px; height: 22px; flex: none; }
.chk { display: flex; align-items: flex-start; gap: 12px; min-height: 44px; font-size: 14.5px; line-height: 1.5; color: var(--pine-2); cursor: pointer; }
.chk input { flex: none; width: 24px; height: 24px; margin: 1px 0 0; accent-color: var(--pine); cursor: pointer; }
.chk a { color: var(--pine); font-weight: 700; }
.lead-form .btn { justify-self: start; }
.mapc { background: var(--paper); border: 1px solid var(--line); border-radius: 28px; overflow: hidden; }
.mapc__map svg { display: block; width: 100%; height: auto; }
.mapc__in { padding: 22px 26px 26px; }
.mapc__h { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin: 0 0 10px; font: 600 1.2rem/1.2 var(--serif); }
.mapc__a { margin: 0 0 14px; font: 700 16px/1.45 var(--sans); }
.mapc__a small { font: 500 13px var(--sans); color: var(--muted); }
.hours { margin: 0 0 8px; display: grid; gap: 0; }
.hours li { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-top: 1px solid var(--line-2); font-size: 14.5px; }
.hours b { font-weight: 700; text-align: right; }
.mapc__tel { margin: 4px 0 8px; font-size: 14.5px; }
.mapc__act { display: flex; flex-wrap: wrap; gap: 8px; }

/* documents (privacy, consent) */
.doc { max-width: 780px; margin: 0 auto; padding: clamp(40px, 6vw, 80px) 0 clamp(56px, 8vw, 104px); }
.doc__h1 { max-width: none; margin-bottom: 22px; }
.doc__demo { margin: 0 0 8px; padding: 14px 18px; border-left: 3px solid var(--coral); border-radius: 0 12px 12px 0; background: var(--coral-soft); font-size: 15px; line-height: 1.55; color: #6E2E11; }
.doc h2 { margin: 2.1em 0 .6em; font-size: clamp(1.25rem, 2vw, 1.55rem); line-height: 1.25; }
.doc p { color: var(--pine-2); }
.doc a { color: var(--pine); font-weight: 600; }
.doc__table { width: 100%; margin: 14px 0 6px; border-collapse: collapse; }
.doc__table th, .doc__table td { padding: 14px 16px 14px 0; border-top: 1px solid var(--line); text-align: left; vertical-align: top; font-size: 15.5px; line-height: 1.55; }
.doc__table th { width: 30%; font: 700 14.5px/1.5 var(--sans); }
.doc__table td { color: var(--pine-2); }
.doc__act { display: flex; flex-wrap: wrap; gap: 8px; }
.doc__upd { margin-top: 2.4em; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
@media (max-width: 560px) { .doc__table th, .doc__table td { display: block; width: 100%; padding: 4px 0; } .doc__table tr { display: block; padding: 12px 0; border-top: 1px solid var(--line); } .doc__table th, .doc__table td { border: 0; } }

/* footer */
.ftr { background: var(--pine); color: #DCE9E2; padding: 56px 0 calc(48px + 8px); }
.ftr__in { display: grid; gap: 30px; }
@media (min-width: 900px) { .ftr__in { grid-template-columns: 1.1fr .9fr 1.6fr; gap: 56px; } }
.ftr p { margin: 0 0 10px; font-size: 14px; line-height: 1.6; }
.ftr a { text-decoration-color: rgba(255, 255, 255, .4); }
.ftr a:hover { text-decoration-color: var(--coral); }
.ftr__logo { display: flex; align-items: center; gap: 12px; color: var(--morning); font: 600 20px var(--serif) !important; }
.ftr__logo svg { width: 38px; height: 38px; }
.ftr__nav { display: grid; align-content: start; gap: 4px; }
.ftr__nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14.5px; }
.ftr :focus-visible { outline-color: var(--coral); }

/* sticky contact bar (phones) */
.mbar { display: none; }
@media (max-width: 820px) {
  body:not(.page-doc) .ftr { padding-bottom: calc(66px + env(safe-area-inset-bottom) + 28px); }
  .mbar { position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(4, 1fr); padding-bottom: env(safe-area-inset-bottom); background: rgba(253, 252, 249, .96); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
  .mbar button { display: grid; place-items: center; align-content: center; gap: 3px; min-height: 62px; padding: 6px 2px; border: 0; background: none; font: 700 11.5px/1 var(--sans); color: var(--pine); }
  .mbar button:first-child { background: var(--coral); }
  .mbar svg { width: 22px; height: 22px; }
}

/* balanced headings, no stranded last words */
h1, h2, h3, .tl__title, .faq summary { text-wrap: balance; }
.lead, .per__body p, .resp p, .faq details p, .small, .tl__text { text-wrap: pretty; }

/* without JS the dial stays hidden; the list carries the content */
html:not(.js) .profile, html:not(.js) .cal__cta, html:not(.js) .prog, html:not(.js) .prog__msg, html:not(.js) #ck-send { display: none; }
html:not(.js) .cal__side { display: none; }
html:not(.js) .cal { grid-template-columns: 1fr; }

/* small screens */
@media (max-width: 899px) { .about__photo img { max-height: 420px; object-fit: cover; } }
@media (max-width: 899px) {
  .tl { --tl-d: 66px; }
  .tl__item { column-gap: 16px; }
  .tl__date b { font-size: 34px; }
  .tl__date span { font-size: 11px; }
  .tl__card { padding: 16px 16px 18px; }
  .tl__who div { grid-template-columns: 1fr; gap: 0; }
  .profile { padding: 20px 18px; }
  .est { padding: 22px 18px; }
}
@media (max-width: 420px) {
  .lead-form .btn { justify-self: stretch; }
  .per__big { -webkit-text-stroke-width: 1.2px; }
  .case dl div { grid-template-columns: 1fr; gap: 0; }
}

/* motion preferences */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .001ms !important; animation-duration: .001ms !important; transition-delay: 0s !important; }
}
