/* Табель: зарплата и кадры на аутсорсе. Направление «Ритм периода».
   Палитра: Утро / Хвоя (сине-зелёная) / Шалфей / Туман + сиреневый маркер. */
:root {
  --bg: #F7F5EF;
  --bg-2: #EFEBDF;
  --card: #FFFFFF;
  --mist: #D9E8DF;
  --mist-2: #EAF2EC;
  --ink: #12363A;
  --ink-2: #1F4A4D;
  --text: #1D3335;
  --muted: #52676A;
  --line: #D8DDD2;
  --line-2: #C6CFC4;
  --sage: #67A98E;
  --sage-d: #3E7F66;
  --lilac: #CDBFF5;
  --lilac-2: #ECE7FB;
  --lilac-d: #5B49A8;
  --coral: #FF8A5B;
  --r: 22px;
  --r-s: 14px;
  --serif: "Literata", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gut: clamp(16px, 4vw, 40px);
  --maxw: 1280px;
  --mbar: 0px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1rem/1.62 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip; padding-bottom: var(--mbar); }
img, svg { max-width: 100%; display: block; }
img { height: auto; }
h1, h2, h3, h4, p, ul, ol, dl, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--lilac-d); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
.num { font-variant-numeric: tabular-nums lining-nums; font-feature-settings: "tnum" 1, "lnum" 1; }
.nb { white-space: nowrap; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--lilac-d); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 100; background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 10px; text-decoration: none; }
.skip:focus { top: 12px; }

.container { width: min(100% - 2 * var(--gut), var(--maxw)); margin-inline: auto; }
.sec { padding-block: clamp(56px, 9vw, 120px); }
.sec--tight { padding-block: clamp(40px, 6vw, 72px); }
.sec--mist { background: var(--mist-2); }
.sec--ink { background: var(--ink); color: #E5F0EA; }
.sec--ink a:not(.btn) { color: #D9CCFB; }

.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 700 .74rem/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--sage-d); }
.eyebrow::before { content: ""; width: 22px; height: 8px; background: linear-gradient(90deg, var(--sage) 0 6px, transparent 6px 8px, var(--sage) 8px 14px, transparent 14px 16px, var(--lilac) 16px 22px); border-radius: 2px; }
.sec--ink .eyebrow { color: #A8D4C0; }
.h1 { font: 600 clamp(2.3rem, 4.9vw, 4.1rem)/1.04 var(--serif); letter-spacing: -.022em; color: var(--ink); }
.h2 { font: 500 clamp(1.9rem, 4.2vw, 3.3rem)/1.08 var(--serif); letter-spacing: -.016em; color: var(--ink); text-wrap: balance; }
.sec--ink .h2 { color: #fff; }
.h3 { font: 600 clamp(1.2rem, 2vw, 1.5rem)/1.2 var(--serif); letter-spacing: -.01em; color: var(--ink); }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.22rem); line-height: 1.6; color: var(--muted); max-width: 60ch; }
.sec--ink .lead { color: #B9D2C8; }
.sec-head { display: grid; gap: 16px; margin-bottom: clamp(32px, 5vw, 56px); max-width: 780px; }
.hl { background: linear-gradient(transparent 60%, var(--lilac) 60% 92%, transparent 92%) no-repeat 0 0 / 100% 100%; padding-inline: .06em; margin-inline: -.06em; }
.note { font-size: .86rem; line-height: 1.5; color: var(--muted); }
.note b { color: var(--ink); font-weight: 700; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 999px; border: 1.5px solid transparent; font: 700 .98rem/1 var(--sans); text-decoration: none; transition: transform .25s var(--ease), background-color .2s, color .2s, border-color .2s, box-shadow .25s; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--primary { background: var(--ink); color: #fff; }
.btn--primary:hover { background: var(--ink-2); box-shadow: 0 10px 24px -10px rgba(18, 54, 58, .6); transform: translateY(-1px); }
.btn--lilac { background: var(--lilac); color: var(--ink); }
.btn--lilac:hover { background: #BFAEF0; transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.sec--ink .btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .5); }
.sec--ink .btn--ghost:hover { background: #fff; color: var(--ink); }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: .9rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.link-arrow svg { width: 18px; height: 18px; flex: none; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 700; color: var(--ink); text-decoration: none; border-bottom: 1.5px solid var(--lilac); }
.link-arrow:hover { border-bottom-color: var(--ink); }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(247, 245, 239, .9); backdrop-filter: saturate(1.3) blur(14px); border-bottom: 1px solid var(--line); }
.site-header__in { display: flex; align-items: center; gap: 20px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); min-height: 44px; }
.brand__mark { width: 40px; height: 40px; flex: none; }
.brand__name { display: block; font: 600 1.4rem/1 var(--serif); letter-spacing: -.01em; }
.brand__tag { display: block; margin-top: 4px; font: 600 .68rem/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 999px; color: var(--ink); font: 600 .92rem/1 var(--sans); text-decoration: none; transition: background-color .2s; }
.nav a:hover { background: var(--mist); }
.nav a[aria-current="page"] { background: var(--lilac-2); box-shadow: inset 0 0 0 1.5px var(--lilac); }
.nav .btn { margin-left: 8px; color: #fff; }
.nav .btn:hover { background: var(--ink-2); }
.nav-toggle { display: none; margin-left: auto; width: 48px; height: 48px; border: 1.5px solid var(--ink); border-radius: 14px; background: transparent; place-items: center; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; content: ""; position: relative; transition: transform .25s var(--ease), background-color .2s; }
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* hero */
.hero { position: relative; padding-block: clamp(32px, 5vw, 64px) clamp(24px, 4vw, 48px); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 56px 56px; opacity: .45; -webkit-mask-image: linear-gradient(180deg, #000 0, transparent 85%); mask-image: linear-gradient(180deg, #000 0, transparent 85%); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 6.4fr) minmax(0, 5.6fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.hero__copy { display: grid; gap: 26px; }
.hero__copy .h1 { text-wrap: balance; }
.hero__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding-top: 22px; border-top: 1px solid var(--line-2); }
.hero__facts div { display: grid; gap: 4px; }
.hero__facts b { font: 600 1.6rem/1 var(--serif); color: var(--ink); }
.hero__facts span { font-size: .84rem; line-height: 1.4; color: var(--muted); }

@keyframes rise { from { opacity: 0; transform: translate3d(0, 22px, 0); } to { opacity: 1; transform: none; } }
@keyframes mark { from { background-size: 0 100%; } to { background-size: 100% 100%; } }
@media (prefers-reduced-motion: no-preference) {
  .hero__copy > * { animation: rise .9s var(--ease) both; }
  .hero__copy > :nth-child(2) { animation-delay: .08s; }
  .hero__copy > :nth-child(3) { animation-delay: .16s; }
  .hero__copy > :nth-child(4) { animation-delay: .24s; }
  .hero__copy > :nth-child(5) { animation-delay: .32s; }
  .hero .hl { animation: mark 1.1s .55s var(--ease) both; }
  .hero__card { animation: rise 1s .2s var(--ease) both; }
}

/* timesheet card */
.hero__card { background: var(--card); border: 1px solid var(--line); border-radius: 26px; padding: clamp(16px, 2.2vw, 26px); box-shadow: 0 40px 70px -40px rgba(18, 54, 58, .45), 0 2px 0 rgba(18, 54, 58, .04); }
.tcard__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.tcard__top h2 { font: 600 1.15rem/1.2 var(--serif); color: var(--ink); }
.tcard__top p { font-size: .8rem; color: var(--muted); margin-top: 2px; }
.pill { display: inline-flex; align-items: center; gap: 6px; min-height: 26px; padding: 0 10px; border-radius: 999px; background: var(--lilac-2); color: var(--lilac-d); font: 700 .72rem/1 var(--sans); letter-spacing: .02em; white-space: nowrap; }
.pill--sage { background: var(--mist); color: #2D6650; }
.pill--ink { background: var(--ink); color: #fff; }
.pill--line { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line-2); color: var(--muted); }
.tbl { --namew: 112px; --cols: 14; --i: 6; position: relative; font-size: .78rem; margin-top: 26px; }
.tbl__row { display: grid; grid-template-columns: var(--namew) repeat(var(--cols), minmax(0, 1fr)); align-items: center; }
.tbl__row--head { color: var(--muted); font-weight: 700; font-size: .7rem; padding-bottom: 6px; }
.tbl__name { padding-right: 8px; font-weight: 600; color: var(--ink); line-height: 1.25; font-size: .78rem; }
.tbl__name small { display: block; font-weight: 500; color: var(--muted); font-size: .68rem; }
.d { text-align: center; padding: 2px 0; }
.d--we { color: var(--lilac-d); }
.c { display: grid; place-items: center; height: 30px; margin: 2px; border-radius: 7px; font-weight: 700; font-size: .72rem; background: var(--mist-2); color: var(--ink); }
.c--v { background: repeating-linear-gradient(135deg, var(--bg-2) 0 4px, #E6E1D2 4px 6px); color: var(--muted); font-weight: 600; }
.c--b { background: var(--lilac); color: var(--ink); }
.c--o { background: var(--ink); color: #fff; }
.c--k { background: var(--sage); color: var(--ink); }
.tbl__mark { position: absolute; z-index: 2; top: 0; bottom: 0; left: var(--namew); width: calc((100% - var(--namew)) / var(--cols)); transform: translateX(calc(var(--i) * 100%)); pointer-events: none; }
.tbl__mark::before { content: ""; position: absolute; inset: 22px 1px 0; border-radius: 8px; border: 2px solid var(--lilac-d); background: rgba(205, 191, 245, .18); }
.tbl__mark b { position: absolute; left: 50%; top: -22px; transform: translateX(-50%); background: var(--lilac-d); color: #fff; font: 700 .66rem/1 var(--sans); padding: 5px 7px; border-radius: 999px; white-space: nowrap; }
@keyframes sweep { from { transform: translateX(0); } to { transform: translateX(calc(var(--i) * 100%)); } }
@media (prefers-reduced-motion: no-preference) { .tbl__mark { animation: sweep 2.4s .5s cubic-bezier(.3, .7, .2, 1) both; } .c { animation: rise .7s var(--ease) both; } .tbl__row:nth-child(2) .c { animation-delay: .1s; } .tbl__row:nth-child(3) .c { animation-delay: .2s; } .tbl__row:nth-child(4) .c { animation-delay: .3s; } .tbl__row:nth-child(5) .c { animation-delay: .4s; } .tbl__row:nth-child(6) .c { animation-delay: .5s; } }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 14px; font-size: .74rem; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line-2); }
.flow li { position: relative; display: grid; gap: 2px; padding-top: 22px; font-size: .78rem; line-height: 1.3; color: var(--muted); }
.flow li b { color: var(--ink); font-size: .82rem; }
.flow li::before { content: ""; position: absolute; left: 0; top: 0; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line-2); background: var(--card); }
.flow li::after { content: ""; position: absolute; left: 16px; right: -8px; top: 6px; height: 2px; background: var(--line-2); }
.flow li:last-child::after { display: none; }
.flow li.is-done::before { background: var(--sage); border-color: var(--sage); }
.flow li.is-done::after { background: var(--sage); }
.flow li.is-now::before { background: var(--lilac); border-color: var(--lilac-d); box-shadow: 0 0 0 4px rgba(205, 191, 245, .5); }

/* year ribbon */
.ribbon { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(18px, 3vw, 32px); }
.ribbon__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 22px; }
.ribbon__head h2 { font: 500 clamp(1.4rem, 2.6vw, 2rem)/1.15 var(--serif); color: var(--ink); }
.ribbon__q { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-bottom: 6px; }
.ribbon__q .q-s { display: none; }
.ribbon__q span { display: block; padding: 7px 12px; border-radius: 10px 10px 0 0; background: var(--mist-2); color: var(--ink); font: 700 .72rem/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; }
.ribbon__track { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); border-radius: 0 0 14px 14px; overflow: hidden; background: var(--mist-2); }
.ribbon__tw { position: relative; }
.ribbon__track > span { position: relative; z-index: 1; display: flex; align-items: center; padding-left: 9px; min-height: 54px; font: 600 .78rem/1 var(--sans); color: var(--ink); border-left: 1px solid rgba(18, 54, 58, .1); }
.ribbon__track > span:nth-child(3n+1) { border-left: 2px solid var(--card); }
.ribbon__track > span:first-child { border-left: 0; }
.ribbon__track .m-short { display: none; }
.ribbon__track b { font-weight: 700; }
.ribbon__fill { position: absolute; z-index: 0; left: 0; top: 0; bottom: 0; width: var(--p, 78.5%); background: linear-gradient(90deg, var(--mist), #BFDCCD); transition: width 2.2s .3s cubic-bezier(.3, .7, .2, 1); }
.ml-ready .ribbon:not(.is-in) .ribbon__fill { width: 0; }
.ribbon__dots { position: relative; height: 58px; margin-top: 34px; }
.ribbon__dot--end { transform: translateX(-84%); }
.ribbon__dot { position: absolute; top: 4px; transform: translateX(-50%); display: grid; justify-items: center; gap: 4px; width: 70px; text-align: center; font: 700 .68rem/1.15 var(--sans); color: var(--ink); }
.ribbon__dot i { width: 14px; height: 14px; border-radius: 50%; background: var(--lilac); border: 2px solid var(--lilac-d); }
.ribbon__dot--ip i { background: var(--sage); border-color: var(--sage-d); }
.ribbon__now { position: absolute; z-index: 3; left: var(--p, 78.5%); top: -6px; bottom: -6px; width: 0; border-left: 2px solid var(--coral); transition: left 2.2s .3s cubic-bezier(.3, .7, .2, 1); }
.ribbon__now::before { content: "14 окт"; position: absolute; top: 100%; margin-top: 3px; left: 50%; transform: translateX(-50%); background: var(--coral); color: var(--ink); font: 800 .66rem/1 var(--sans); padding: 5px 8px; border-radius: 999px; white-space: nowrap; }
.ml-ready .ribbon:not(.is-in) .ribbon__now { left: 0; }
.ribbon__legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 8px; font-size: .8rem; color: var(--muted); }
.ribbon__legend span { display: inline-flex; align-items: center; gap: 8px; }
.ribbon__legend i { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--lilac-d); background: var(--lilac); }
.ribbon__legend .ip { border-color: var(--sage-d); background: var(--sage); }

/* periods */
.period { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 6vw, 96px); padding-block: clamp(36px, 6vw, 72px); border-top: 1px solid var(--line-2); }
.period__lead { position: sticky; top: 100px; align-self: start; display: grid; gap: 14px; }
.period__num { font: 500 clamp(5.5rem, 13vw, 10.5rem)/.8 var(--serif); color: var(--lilac); letter-spacing: -.04em; }
.period__unit { font: 700 .8rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--sage-d); }
.period__lead p { color: var(--muted); max-width: 44ch; }
.stl { position: relative; display: grid; align-content: start; align-self: start; gap: 28px; padding-left: 48px; --p: 1; }
.stl::before { content: ""; position: absolute; z-index: 0; left: 13px; top: 6px; bottom: 6px; width: 2px; background: var(--line-2); border-radius: 2px; }
.stl::after { content: ""; position: absolute; z-index: 0; left: 13px; top: 6px; width: 2px; height: calc((100% - 12px) * var(--p)); background: linear-gradient(var(--sage), var(--lilac-d)); border-radius: 2px; }
.stl li { position: relative; display: grid; gap: 6px; }
.stl li::before { content: ""; position: absolute; z-index: 1; left: -45px; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--bg); border: 2px solid var(--sage); }
.stl li:nth-child(odd)::before { border-color: var(--lilac-d); }
.stl h4 { font: 700 1.1rem/1.3 var(--sans); color: var(--ink); display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.stl p { color: var(--muted); max-width: 58ch; }

/* mini calculator (home) */
.mini { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(28px, 6vw, 88px); align-items: center; }
.mini__box { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .16); border-radius: var(--r); padding: clamp(20px, 3vw, 34px); display: grid; gap: 20px; }
.mini__row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.mini__row label { font-weight: 700; color: #fff; }
.mini__n { font: 500 2.4rem/1 var(--serif); color: #fff; }
.mini__out { display: grid; gap: 6px; padding-top: 18px; border-top: 1px dashed rgba(255, 255, 255, .25); }
.mini__out b { font: 500 clamp(2.4rem, 5vw, 3.4rem)/1 var(--serif); color: var(--lilac); }
.mini__out span { font-size: .86rem; color: #B9D2C8; }

/* range */
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; background: transparent; cursor: pointer; --fill: 12%; }
input[type="range"]::-webkit-slider-runnable-track { height: 8px; border-radius: 8px; background: linear-gradient(90deg, var(--lilac) var(--fill), rgba(127, 150, 144, .35) var(--fill)); }
input[type="range"]::-moz-range-track { height: 8px; border-radius: 8px; background: rgba(127, 150, 144, .35); }
input[type="range"]::-moz-range-progress { height: 8px; border-radius: 8px; background: var(--lilac); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; margin-top: -11px; border-radius: 50%; background: #fff; border: 5px solid var(--lilac-d); box-shadow: 0 4px 12px rgba(18, 54, 58, .35); }
input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 5px solid var(--lilac-d); }
input[type="range"]:focus-visible { outline-offset: -2px; border-radius: 12px; }
.sec--ink input[type="range"]:focus-visible { outline-color: var(--lilac); }

/* prices */
.pricing { display: grid; gap: clamp(28px, 4vw, 44px); }
.pgroup { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: clamp(16px, 4vw, 56px); padding-top: 24px; border-top: 1px solid var(--line-2); }
.pgroup__label { display: grid; gap: 6px; align-content: start; }
.pgroup__label b { font: 500 1.7rem/1 var(--serif); color: var(--ink); }
.pgroup__label span { font-size: .84rem; color: var(--muted); }
.prow { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(130px, 3fr); gap: 8px 24px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--line); }
.prow:first-child { padding-top: 0; }
.prow h3 { font: 700 1.05rem/1.3 var(--sans); color: var(--ink); }
.prow p { font-size: .9rem; color: var(--muted); line-height: 1.5; }
.prow__price { text-align: right; font: 500 1.35rem/1.2 var(--serif); color: var(--ink); white-space: nowrap; }
.prow__price--txt { white-space: normal; font-size: 1.1rem; }
.prow__price small { display: block; font: 500 .74rem/1.3 var(--sans); color: var(--muted); }
.pnote { margin-top: 8px; padding: 18px 20px; border-radius: var(--r-s); background: var(--lilac-2); color: var(--ink); font-size: .92rem; line-height: 1.55; display: grid; gap: 4px; }

/* responsibility */
.resp { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.rcard { grid-column: span 2; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(20px, 2.4vw, 30px); display: grid; gap: 12px; align-content: start; }
.rcard--wide { grid-column: span 4; }
.rcard__n { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--lilac); color: var(--ink); font: 600 1.1rem/1 var(--serif); }
.rcard p { color: var(--muted); font-size: .96rem; }
.rcard ul { display: grid; gap: 6px; font-size: .94rem; color: var(--muted); }
.rcard li { position: relative; padding-left: 18px; }
.rcard li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; border-radius: 2px; background: var(--sage); }
.journal { display: grid; gap: 8px; margin-top: 4px; padding: 14px; border-radius: var(--r-s); background: var(--bg); border: 1px solid var(--line); }
.journal__h { display: flex; justify-content: space-between; gap: 8px; font-size: .74rem; font-weight: 700; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
.jrow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; padding: 10px 12px; border-radius: 12px; background: var(--card); font-size: .88rem; }
.jrow b { font-weight: 700; color: var(--ink); }
.jrow small { grid-column: 1 / -1; color: var(--muted); font-size: .76rem; }
.st { display: inline-flex; align-items: center; gap: 6px; min-height: 26px; padding: 0 10px; border-radius: 999px; font: 700 .72rem/1 var(--sans); white-space: nowrap; }
.st::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.st--wait { background: var(--bg-2); color: #6A5F3F; }
.st--work { background: var(--lilac-2); color: var(--lilac-d); }
.st--check { background: #DCEBFA; color: #2A5C8A; }
.st--agree { background: #FFE8DC; color: #A24E27; }
.st--done { background: var(--mist); color: #2D6650; }

.ie { margin-top: clamp(32px, 5vw, 56px); }
.ie h3 { margin-bottom: 14px; }
.ie table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; font-size: .94rem; }
.ie th, .ie td { padding: 16px 20px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); line-height: 1.5; }
.ie tr:last-child td, .ie tr:last-child th { border-bottom: 0; }
.ie thead th { background: var(--ink); color: #fff; font: 700 .78rem/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; }
.ie tbody th { width: 20%; font: 700 .96rem/1.4 var(--sans); color: var(--ink); background: var(--mist-2); }
.ie td:nth-child(2) { width: 40%; }
.ie td ul { display: grid; gap: 4px; }
.ie td li { position: relative; padding-left: 20px; }
.ie td:nth-child(2) li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 10px; height: 6px; border-left: 2px solid var(--sage-d); border-bottom: 2px solid var(--sage-d); transform: rotate(-45deg); }
.ie td:nth-child(3) li::before { content: "+"; position: absolute; left: 3px; top: 0; font-weight: 800; color: var(--lilac-d); }

/* protected channel */
.channel { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(28px, 6vw, 88px); align-items: center; }
.channel__text { display: grid; gap: 20px; }
.checks { display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 32px; color: #B9D2C8; }
.checks li::before { content: ""; position: absolute; left: 4px; top: .45em; width: 14px; height: 8px; border-left: 3px solid var(--lilac); border-bottom: 3px solid var(--lilac); transform: rotate(-45deg); }
.matrix { background: #fff; color: var(--text); border-radius: var(--r); padding: clamp(16px, 2.4vw, 26px); display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; min-width: 0; }
.matrix h3 { font: 600 1.1rem/1.2 var(--serif); color: var(--ink); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; align-items: center; }
.mxt { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: .86rem; }
.mxt th:first-child { width: 38%; }
.mxt th, .mxt td { padding: 12px 8px; border-bottom: 1px solid var(--line); text-align: center; }
.mxt thead th { font: 800 .68rem/1.2 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.mxt tbody th { text-align: left; font-weight: 700; color: var(--ink); padding-left: 4px; }
.mxt tr:last-child th, .mxt tr:last-child td { border-bottom: 0; }
.mxt thead th:first-child { text-align: left; padding-left: 4px; }
.mxt i { display: inline-block; width: 18px; height: 18px; border-radius: 50%; vertical-align: middle; }
.mxt i.y { background: var(--sage); }
.mxt i.p { background: var(--lilac); box-shadow: inset 0 0 0 2px var(--lilac-d); }
.mxt i.n { background: transparent; box-shadow: inset 0 0 0 2px var(--line-2); }

/* scenarios */
.cases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.case { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(20px, 2.4vw, 30px); display: grid; gap: 14px; align-content: start; }
.case__top { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.case__steps { display: grid; gap: 8px; padding-top: 12px; border-top: 1px dashed var(--line-2); counter-reset: cs; }
.case__steps li { position: relative; padding-left: 34px; font-size: .92rem; color: var(--muted); counter-increment: cs; }
.case__steps li::before { content: counter(cs); position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--mist); color: var(--ink); font: 700 .78rem/24px var(--sans); text-align: center; }
.case__out { margin-top: 4px; padding: 12px 14px; border-radius: 12px; background: var(--lilac-2); font-size: .9rem; color: var(--ink); }
.case p { color: var(--muted); font-size: .96rem; }

/* team */
.team { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 5vw, 72px); align-items: stretch; }
.photo { position: relative; border-radius: var(--r); overflow: hidden; background: var(--mist); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo figcaption { position: absolute; left: 14px; bottom: 14px; background: rgba(247, 245, 239, .92); color: var(--ink); padding: 8px 12px; border-radius: 999px; font: 600 .76rem/1.2 var(--sans); }
.people { display: grid; gap: 12px; }
.person { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 14px; align-items: center; padding: 14px; border-radius: var(--r-s); background: var(--card); border: 1px solid var(--line); }
.person__av { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--mist); color: var(--ink); font: 600 1.1rem/1 var(--serif); }
.person:nth-child(2) .person__av { background: var(--lilac); }
.person:nth-child(3) .person__av { background: #F8D9CB; }
.person b { display: block; color: var(--ink); }
.person span { font-size: .86rem; color: var(--muted); }
.creds { display: grid; gap: 8px; margin-top: 8px; }
.creds li { display: grid; gap: 2px; padding: 12px 14px; border-radius: 12px; border: 1.5px dashed var(--line-2); font-size: .9rem; color: var(--ink); background: rgba(255, 255, 255, .5); }
.creds small { color: var(--muted); font-size: .76rem; }

/* faq */
.faq-wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(20px, 4vw, 56px); align-items: start; }
.card.ask { position: sticky; top: 100px; display: grid; gap: 14px; background: var(--ink); color: #D6E7DF; border-color: var(--ink); }
.ask .h3 { color: #fff; }
.ask .note { color: #9DBFB1; }
.ask .btn--ghost { color: #fff; border-color: rgba(255,255,255,.5); }
.ask .btn--ghost:hover { background: #fff; color: var(--ink); }
.ask .btn--primary { background: var(--lilac); color: var(--ink); }
.faq { display: grid; gap: 10px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-s); overflow: hidden; }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; padding: 14px 20px; cursor: pointer; font: 700 1.02rem/1.35 var(--sans); color: var(--ink); list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 12px; height: 12px; border-right: 2.5px solid var(--lilac-d); border-bottom: 2.5px solid var(--lilac-d); transform: rotate(45deg) translate(-2px, -2px); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq details[open] { border-color: var(--lilac); box-shadow: 0 0 0 3px var(--lilac-2); }
.faq .faq__a { padding: 0 20px 18px; color: var(--muted); max-width: 70ch; }

/* contact */
.contact { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(20px, 4vw, 56px); align-items: start; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(20px, 3vw, 34px); }
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font: 700 .86rem/1.3 var(--sans); color: var(--ink); }
.field input, .field select { width: 100%; min-height: 52px; padding: 0 16px; border-radius: 14px; border: 1.5px solid var(--line-2); background: var(--bg); font-size: 1rem; transition: border-color .2s, box-shadow .2s; }
.field input:hover, .field select:hover { border-color: var(--sage); }
.field input:focus-visible, .field select:focus-visible { outline: none; border-color: var(--lilac-d); box-shadow: 0 0 0 4px var(--lilac-2); }
.field--row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form__warn { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--lilac-2); color: var(--ink); font-size: .9rem; font-weight: 600; line-height: 1.45; }
.form__warn svg { width: 20px; height: 20px; flex: none; margin-top: 1px; color: var(--lilac-d); }
.check { position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; align-items: start; min-height: 44px; font-size: .9rem; line-height: 1.5; color: var(--text); cursor: pointer; }
.check input { position: absolute; opacity: 0; width: 28px; height: 28px; margin: 0; cursor: pointer; }
.check i { width: 28px; height: 28px; border-radius: 8px; border: 2px solid var(--line-2); background: var(--card); display: grid; place-items: center; transition: background-color .2s, border-color .2s; }
.check i::after { content: ""; width: 12px; height: 7px; border-left: 3px solid #fff; border-bottom: 3px solid #fff; transform: rotate(-45deg) scale(0); transition: transform .2s var(--ease); margin-top: -2px; }
.check input:checked + i { background: var(--ink); border-color: var(--ink); }
.check input:checked + i::after { transform: rotate(-45deg) scale(1); }
.check input:focus-visible + i { outline: 3px solid var(--lilac-d); outline-offset: 3px; }
.channels { display: flex; flex-wrap: wrap; gap: 10px; }
.chan { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--ink); background: transparent; color: var(--ink); font: 700 .92rem/1 var(--sans); }
.chan:hover { background: var(--ink); color: #fff; }
.chan svg { width: 18px; height: 18px; }
.tel { appearance: none; border: 0; background: none; padding: 0; min-height: 44px; font: 600 1.5rem/1 var(--serif); color: var(--ink); text-decoration: underline; text-decoration-color: var(--lilac); text-decoration-thickness: 3px; text-underline-offset: 6px; text-align: left; }
.tel:hover { text-decoration-color: var(--lilac-d); }
.map { position: relative; border-radius: var(--r); overflow: hidden; background: var(--mist); border: 1px solid var(--line); }
.map svg { width: 100%; height: auto; }
.map__tag { position: absolute; left: 12px; top: 12px; }
.office { display: grid; gap: 14px; margin-top: 18px; }
.office dl { display: grid; gap: 10px; }
.office dl div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); font-size: .94rem; }
.office dt { color: var(--muted); font-weight: 600; }
.office dd { margin: 0; color: var(--ink); font-weight: 600; }
.open-badge { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 0 12px; border-radius: 999px; background: var(--card); box-shadow: inset 0 0 0 1.5px var(--line-2); font: 700 .8rem/1 var(--sans); color: var(--ink); }
.open-badge i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.open-badge.is-open i { background: var(--sage); box-shadow: 0 0 0 4px rgba(103, 169, 142, .3); }
.open-badge.is-closed i { background: var(--coral); }

/* footer */
.site-footer { background: var(--ink); color: #B9D2C8; padding-block: clamp(40px, 6vw, 72px) 28px; font-size: .92rem; }
.site-footer a { color: #E5F0EA; }
.site-footer .brand { color: #fff; }
.site-footer .brand__tag { color: #9DBFB1; }
.foot { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 4fr); gap: clamp(24px, 4vw, 56px); }
.foot h4 { font: 700 .74rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: #9DBFB1; margin-bottom: 14px; }
.foot ul { display: grid; gap: 2px; }
.foot li a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.foot li a:hover { text-decoration: underline; }
.foot p + p { margin-top: 10px; }
.foot__legal { margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .14); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: .8rem; color: #9DBFB1; }

/* mobile bar */
.mbar { display: none; }

/* ---------- calculator ---------- */
.page-head { padding-block: clamp(32px, 5vw, 64px) clamp(20px, 3vw, 36px); position: relative; }
.page-head::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 56px 56px; opacity: .4; -webkit-mask-image: linear-gradient(180deg, #000 0, transparent 90%); mask-image: linear-gradient(180deg, #000 0, transparent 90%); }
.page-head__in { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.stamp .pill { white-space: normal; padding-block: 5px; line-height: 1.25; }
.page-head__in > * { max-width: 860px; }
.page-head h1 { font: 600 clamp(2.1rem, 4.4vw, 3.4rem)/1.06 var(--serif); letter-spacing: -.02em; color: var(--ink); text-wrap: balance; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px 10px; font-size: .84rem; color: var(--muted); }
.crumbs a { color: var(--muted); display: inline-flex; align-items: center; min-height: 44px; }
.crumbs { align-items: center; }
.stamp { display: flex; flex-wrap: wrap; gap: 8px; }

.calc { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
.steps { display: grid; gap: 16px; }
.step { border: 1px solid var(--line); background: var(--card); border-radius: var(--r); padding: clamp(18px, 2.6vw, 30px); margin: 0; min-width: 0; }
.step legend { padding: 0; float: left; width: 100%; display: flex; align-items: center; gap: 14px; margin-bottom: 18px; font: 600 clamp(1.15rem, 2vw, 1.4rem)/1.2 var(--serif); color: var(--ink); }
.step legend + * { clear: both; }
.step__n { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--lilac); color: var(--ink); font: 600 1rem/1 var(--serif); }
.step__hint { font-size: .86rem; color: var(--muted); margin-top: 10px; line-height: 1.5; }
.qrow { display: grid; align-content: start; gap: 10px; margin-bottom: 20px; }
.qrow:last-child { margin-bottom: 0; }
.qlabel { font: 700 .92rem/1.3 var(--sans); color: var(--ink); }
.qlabel small { display: block; margin-top: 3px; font-weight: 500; font-size: .8rem; color: var(--muted); }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.seg span { display: inline-flex; align-items: center; min-height: 48px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--line-2); background: var(--bg); font: 600 .94rem/1.2 var(--sans); color: var(--ink); transition: background-color .2s, border-color .2s, color .2s; }
.seg label:hover span { border-color: var(--sage); }
.seg input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.seg input:focus-visible + span { outline: 3px solid var(--lilac-d); outline-offset: 3px; }
.seg input:disabled + span { opacity: .4; cursor: not-allowed; text-decoration: line-through; }
.seg input:disabled { cursor: not-allowed; }
.stepper { display: inline-grid; grid-template-columns: 48px 76px 48px; align-items: center; border: 1.5px solid var(--line-2); border-radius: 16px; background: var(--bg); overflow: hidden; width: max-content; }
.stepper button { height: 48px; border: 0; background: transparent; font: 600 1.4rem/1 var(--sans); color: var(--ink); }
.stepper button:hover { background: var(--mist); }
.stepper input { width: 100%; height: 48px; border: 0; background: transparent; text-align: center; font: 700 1.1rem/1 var(--sans); -moz-appearance: textfield; appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper input:focus-visible { outline: 3px solid var(--lilac-d); outline-offset: -3px; border-radius: 4px; }
.qgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; }
.qgrid .qrow { margin: 0; align-content: start; }
.rate { margin-top: 18px; display: grid; gap: 4px; font-size: .88rem; }
.rate__r { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.rate__r b { color: var(--ink); font-weight: 700; }
.rate__r.is-on { color: var(--ink); background: var(--lilac-2); margin-inline: -10px; padding-inline: 10px; border-radius: 8px; border-bottom-color: transparent; }
.mrot { margin-top: 10px; padding: 12px 14px; border-radius: 12px; background: var(--lilac-2); font-size: .88rem; line-height: 1.5; color: var(--ink); }
.mrot[hidden] { display: none; }
.field-inline { display: flex; align-items: center; gap: 10px; }
.field-inline input { width: 180px; min-height: 48px; padding: 0 14px; border-radius: 14px; border: 1.5px solid var(--line-2); background: var(--bg); font-size: 1rem; }
.field-inline input:focus-visible { outline: none; border-color: var(--lilac-d); box-shadow: 0 0 0 4px var(--lilac-2); }

.res { position: sticky; top: 92px; display: grid; gap: 18px; background: var(--card); border: 1px solid var(--line); border-radius: 26px; padding: clamp(20px, 2.6vw, 32px); box-shadow: 0 40px 70px -46px rgba(18, 54, 58, .5); }
.res__k { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.res__price { font: 500 clamp(2.5rem, 4.6vw, 3.7rem)/1 var(--serif); letter-spacing: -.02em; color: var(--ink); }
.res__price small { font: 600 1rem/1 var(--sans); letter-spacing: 0; color: var(--muted); }
.res__sum { color: var(--muted); font-size: .94rem; line-height: 1.5; margin-top: 10px; }
.bar { display: flex; height: 16px; gap: 3px; border-radius: 999px; overflow: hidden; background: var(--bg-2); }
.bar i { display: block; min-width: 4px; transition: flex-grow .7s var(--ease); }
.lines { display: grid; gap: 2px; }
.line { display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; gap: 10px; align-items: baseline; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.line:last-child { border-bottom: 0; }
.line i { width: 12px; height: 12px; border-radius: 4px; transform: translateY(1px); }
.line small { display: block; color: var(--muted); font-size: .78rem; }
.line b { font-weight: 700; color: var(--ink); white-space: nowrap; }
.line[hidden] { display: none; }
.k1 { background: var(--ink); } .k2 { background: var(--sage); } .k3 { background: var(--lilac); } .k4 { background: #9DC9B6; } .k5 { background: var(--lilac-d); } .k6 { background: var(--coral); }
.gauge { display: grid; gap: 8px; padding: 14px; border-radius: var(--r-s); background: var(--bg); }
.gauge__t { display: flex; justify-content: space-between; gap: 8px; font-size: .82rem; color: var(--muted); }
.gauge__t b { color: var(--ink); }
.gauge__track { position: relative; height: 10px; border-radius: 10px; background: linear-gradient(90deg, var(--mist), var(--lilac)); margin: 8px 8px 4px; }
.gauge__dot { position: absolute; top: 50%; left: var(--g, 20%); width: 24px; height: 24px; margin: -12px 0 0 -12px; border-radius: 50%; background: #fff; border: 5px solid var(--ink); box-shadow: 0 4px 10px rgba(18, 54, 58, .3); transition: left .7s var(--ease); }
.gauge__s { display: flex; justify-content: space-between; font-size: .72rem; color: var(--muted); font-weight: 600; }
.res__send { display: grid; gap: 10px; }
.res__send .channels { gap: 8px; }
.fine { font-size: .78rem; line-height: 1.5; color: var(--muted); }
.fine b { color: var(--ink); }
.bounds { display: grid; gap: 16px; margin-top: clamp(24px, 4vw, 40px); grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bounds--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bounds .card h3 { margin-bottom: 10px; }
.bounds ul { display: grid; gap: 8px; font-size: .92rem; color: var(--muted); }
.bounds li { position: relative; padding-left: 18px; }
.bounds li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; border-radius: 2px; background: var(--sage); }
.bounds .no li::before { background: var(--lilac-d); }
.disclaimer { margin-top: 16px; padding: 18px 22px; border-radius: var(--r-s); background: var(--lilac-2); font-size: .88rem; line-height: 1.6; color: var(--ink); }
.disclaimer b { font-weight: 800; }
.psn-link { display: none; }
.psn-link.is-on { display: block; }

/* ---------- calendar ---------- */
.cal-ctrl { display: grid; gap: 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(18px, 2.6vw, 30px); }
.cal-ctrl__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 28px; }
.switch { display: inline-flex; align-items: center; gap: 12px; min-height: 48px; cursor: pointer; font-weight: 600; color: var(--ink); position: relative; }
.switch input { position: absolute; opacity: 0; width: 56px; height: 32px; margin: 0; cursor: pointer; }
.switch i { position: relative; flex: none; width: 56px; height: 32px; border-radius: 999px; background: var(--line-2); transition: background-color .25s; }
.switch i::after { content: ""; position: absolute; left: 4px; top: 4px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .25); transition: transform .3s var(--ease); }
.switch input:checked + i { background: var(--ink); }
.switch input:checked + i::after { transform: translateX(24px); }
.switch input:focus-visible + i { outline: 3px solid var(--lilac-d); outline-offset: 3px; }

.yr { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(16px, 2.4vw, 28px); display: grid; gap: 14px; }
.yr__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 20px; }
.yr__head h2 { font: 500 clamp(1.3rem, 2.4vw, 1.8rem)/1.15 var(--serif); color: var(--ink); }
.yr__nav { display: flex; gap: 8px; align-items: center; }
.yr__nav button { min-width: 44px; min-height: 44px; border-radius: 50%; border: 1.5px solid var(--ink); background: transparent; display: grid; place-items: center; color: var(--ink); }
.yr__nav button:hover { background: var(--ink); color: #fff; }
.yr__nav svg { width: 18px; height: 18px; }
.yr__nav .btn { min-width: 0; border-radius: 999px; }
.yr__qs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.yr__qs span { padding: 6px 10px; border-radius: 10px 10px 0 0; background: var(--mist-2); font: 800 .7rem/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }
.yr__months { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0; margin-top: -8px; background: var(--mist-2); border-radius: 0 0 14px 14px; padding: 4px; }
.mbtn { position: relative; display: grid; align-content: center; justify-items: center; gap: 6px; min-height: 64px; padding: 6px 2px; border: 0; background: transparent; border-radius: 10px; font: 700 .8rem/1 var(--sans); color: var(--ink); transition: background-color .2s; }
.mbtn:hover { background: rgba(255, 255, 255, .7); }
.mbtn[aria-pressed="true"] { background: var(--ink); color: #fff; }
.mbtn.is-past { color: var(--muted); }
.mbtn[aria-pressed="true"].is-past { color: #fff; }
.mbtn__dots { display: flex; gap: 3px; min-height: 8px; }
.mbtn__dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--lilac-d); }
.mbtn__dots i.s { background: var(--sage-d); }
.mbtn[aria-pressed="true"] .mbtn__dots i { background: var(--lilac); }
.mbtn[aria-pressed="true"] .mbtn__dots i.s { background: #A8D4C0; }
.mbtn.is-today::after { content: ""; position: absolute; top: 4px; right: 5px; width: 8px; height: 8px; border-radius: 50%; background: var(--coral); }
.yr__legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .8rem; color: var(--muted); }
.yr__legend span { display: inline-flex; align-items: center; gap: 8px; }
.yr__legend i { width: 10px; height: 10px; border-radius: 50%; background: var(--lilac-d); }
.yr__legend i.s { background: var(--sage-d); }
.yr__legend i.t { background: var(--coral); }

.cal-body { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(20px, 3vw, 40px); align-items: start; margin-top: clamp(20px, 3vw, 32px); }
.mg { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(16px, 2.2vw, 26px); position: sticky; top: 92px; }
.mg__t { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 14px; }
.mg__t h3 { font: 600 1.5rem/1 var(--serif); color: var(--ink); text-transform: capitalize; }
.mg__head, .mg__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.mg__grid { list-style: none; margin: 0; padding: 0; }
.mg__grid li { display: flex; min-width: 0; }
.mg__grid .day { flex: 1; width: 100%; }
.mg__w { text-align: center; font: 800 .68rem/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding-bottom: 6px; }
.mg__w.we { color: var(--lilac-d); }
.day { position: relative; display: grid; place-items: center; min-height: 46px; border-radius: 12px; border: 0; background: var(--bg); font: 600 .95rem/1 var(--sans); color: var(--ink); }
.day--empty { background: transparent; }
.day.we { background: var(--bg-2); color: var(--muted); }
.day.has-ev { background: var(--lilac); box-shadow: inset 0 0 0 2px var(--lilac-d); font-weight: 800; }
.day.has-sv::before { content: ""; position: absolute; bottom: 5px; left: 50%; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: var(--sage-d); }
.day.has-ev.has-sv::before { bottom: 4px; }
.day.is-today { box-shadow: inset 0 0 0 2.5px var(--coral); }
.day.has-ev.is-today { box-shadow: inset 0 0 0 2px var(--lilac-d), 0 0 0 3px var(--coral); }
button.day::after { content: ""; position: absolute; inset: -3px; }
button.day:hover { transform: translateY(-1px); background: var(--mist); }
button.day.has-ev:hover { background: #BFAEF0; }
.mg__note { margin-top: 14px; display: grid; gap: 6px; font-size: .8rem; color: var(--muted); }
.mg__note span { display: inline-flex; align-items: center; gap: 8px; }
.mg__note i { width: 14px; height: 14px; border-radius: 4px; background: var(--lilac); box-shadow: inset 0 0 0 2px var(--lilac-d); }
.mg__note i.s { background: var(--bg); box-shadow: none; position: relative; }
.mg__note i.s::after { content: ""; position: absolute; left: 4px; top: 4px; width: 6px; height: 6px; border-radius: 50%; background: var(--sage-d); }

.tl { position: relative; display: grid; gap: 0; }
.tl__h { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.tl__h h3 { font: 600 1.5rem/1.1 var(--serif); color: var(--ink); }
.evs { position: relative; display: grid; gap: 14px; padding-left: 44px; }
.evs::before { content: ""; position: absolute; left: 12px; top: 8px; bottom: 8px; width: 2px; background: var(--line-2); border-radius: 2px; }
.evs__mark { position: absolute; left: 3px; top: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--coral); border: 3px solid var(--bg); box-shadow: 0 0 0 2px var(--coral); transition: transform .8s var(--ease); z-index: 2; }
.ev { position: relative; display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 4px 18px; padding: 18px 20px; border-radius: var(--r-s); background: var(--card); border: 1px solid var(--line); transition: border-color .3s, box-shadow .3s; scroll-margin-top: 100px; }
.ev::before { content: ""; position: absolute; left: -38px; top: 22px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 3px solid var(--lilac-d); }
.ev--s::before { border-color: var(--sage-d); }
.ev.is-focus { border-color: var(--lilac-d); box-shadow: 0 0 0 4px var(--lilac-2); }
.ev.is-past { background: transparent; border-style: dashed; }
.ev.is-past h4, .ev.is-past .ev__d b { color: var(--muted); }
.ev__d { display: grid; align-content: start; justify-items: start; gap: 2px; font-size: .78rem; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.ev__d b { font: 500 2rem/1 var(--serif); color: var(--ink); letter-spacing: 0; text-transform: none; }
.ev h4 { font: 700 1.05rem/1.3 var(--sans); color: var(--ink); display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.ev p { color: var(--muted); font-size: .92rem; line-height: 1.5; margin-top: 4px; }
.ev__who { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.ev__who div { padding: 10px 12px; border-radius: 10px; background: var(--bg); font-size: .84rem; line-height: 1.45; color: var(--text); }
.ev__who b { display: block; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.tl__empty { padding: 22px; border-radius: var(--r-s); border: 1.5px dashed var(--line-2); color: var(--muted); font-size: .94rem; background: rgba(255, 255, 255, .5); }
.past-d { margin-top: 14px; border-radius: var(--r-s); }
.past-d summary { min-height: 48px; display: flex; align-items: center; padding-left: 44px; cursor: pointer; font-weight: 700; color: var(--muted); }
.past-d .evs { margin-top: 12px; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: clamp(24px, 4vw, 40px); }
.fact { padding: 20px 22px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); display: grid; gap: 8px; align-content: start; }
.fact .pill { justify-self: start; }
.fact b { font: 600 1.05rem/1.3 var(--serif); color: var(--ink); }
.fact p { font-size: .9rem; color: var(--muted); line-height: 1.55; }
.fact[hidden] { display: none; }
.service { margin-top: clamp(28px, 4vw, 48px); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(20px, 4vw, 56px); align-items: start; }
.service__list { display: grid; gap: 10px; counter-reset: sv; }
.service__list li { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 4px 16px; padding: 14px 16px; border-radius: var(--r-s); background: var(--card); border: 1px solid var(--line); }
.service__list b { grid-row: span 2; font: 500 1.45rem/1.15 var(--serif); color: var(--sage-d); white-space: nowrap; }
.service__list strong { color: var(--ink); font-size: .98rem; }
.service__list span { font-size: .88rem; color: var(--muted); line-height: 1.5; }
.pic { border-radius: var(--r); overflow: hidden; }
.pic img { width: 100%; height: auto; }

/* legal */
.legal { padding-block: clamp(32px, 5vw, 64px) clamp(48px, 7vw, 96px); }
.legal__box { max-width: 820px; display: grid; gap: 16px; }
.legal h1 { font: 600 clamp(2rem, 4.4vw, 3rem)/1.1 var(--serif); letter-spacing: -.015em; color: var(--ink); }
.legal h2 { font: 600 1.35rem/1.25 var(--serif); color: var(--ink); margin-top: 14px; }
.legal p, .legal li { color: var(--text); }
.legal ul { display: grid; gap: 6px; padding-left: 20px; list-style: disc; }
.legal dl { display: grid; gap: 10px; padding: 18px 20px; border-radius: var(--r-s); background: var(--card); border: 1px solid var(--line); }
.legal dl div { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 12px; font-size: .94rem; }
.legal dt { color: var(--muted); font-weight: 600; }
.legal dd { margin: 0; }
.demo-note { padding: 14px 18px; border-radius: var(--r-s); background: var(--lilac-2); color: var(--ink); font-size: .92rem; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .hero__grid, .mini, .channel, .team, .contact, .calc, .cal-body, .service, .faq-wrap { grid-template-columns: minmax(0, 1fr); }
  .card.ask { position: static; }
  .photo img { height: auto; }
  .res, .mg { position: static; }
  .period { grid-template-columns: minmax(0, 1fr); }
  .period__lead { position: static; }
  .resp { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rcard, .rcard--wide { grid-column: span 1; }
  .rcard--wide { grid-column: 1 / -1; }
  .cases, .bounds, .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .foot > :first-child { grid-column: 1 / -1; }
  .pgroup { grid-template-columns: minmax(0, 1fr); }
  .nav a:not(.btn) { padding: 0 9px; font-size: .88rem; }
}
@media (max-width: 860px) {
  .nav-toggle { display: grid; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 2px; margin: 0; padding: 12px var(--gut) 20px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 20px 40px -20px rgba(18, 54, 58, .35); display: none; }
  .nav.is-open { display: flex; }
  .nav a { min-height: 52px; font-size: 1rem; padding: 0 14px; }
  .nav .btn { margin: 8px 0 0; justify-content: center; }
  .brand__tag { display: none; }
}
@media (max-width: 760px) {
  :root { --mbar: 76px; }
  .mbar { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; position: fixed; z-index: 55; left: 0; right: 0; bottom: 0; padding: 10px var(--gut) calc(10px + env(safe-area-inset-bottom)); background: rgba(247, 245, 239, .95); backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
  .mbar .btn { min-height: 52px; padding: 0 12px; font-size: .92rem; }
  .mbar__sum { display: grid; align-content: center; line-height: 1.2; }
  .mbar__sum small { font-size: .72rem; color: var(--muted); font-weight: 600; }
  .mbar__sum b { font: 500 1.4rem/1.1 var(--serif); color: var(--ink); }
  .hero__facts { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .hero__facts div { align-items: center; }
  .tbl { --namew: 88px; --cols: 10; --i: 2; }
  .tbl .d--x, .tbl .c--x { display: none; }
  .tbl__name small { display: none; }
  .ribbon__q .q-f { display: none; }
  .ribbon__q .q-s { display: block; }
  .ribbon__dot--end { left: auto !important; right: 0; transform: none; }
  .mxt thead th { font-size: .6rem; letter-spacing: .02em; }
  .hero__facts b { white-space: nowrap; }
  .hero__facts div { grid-template-columns: 112px minmax(0, 1fr); }
  .ribbon__track .m-full { display: none; }
  .ribbon__track .m-short { display: inline; }
  .ribbon__dot { width: 56px; font-size: .62rem; }
  .ribbon__dots { height: 128px; }
  .ribbon__dot--end { top: 64px; }
  .ribbon__dot--end::before { content: ""; position: absolute; left: 50%; bottom: 100%; width: 2px; height: 96px; margin-left: -1px; background: var(--sage-d); opacity: .45; }
  .prow { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .prow__price { text-align: left; }
  .resp, .cases, .bounds, .facts { grid-template-columns: minmax(0, 1fr); }
  .rcard--wide { grid-column: auto; }
  .ie table, .ie tbody, .ie tr, .ie th, .ie td { display: block; width: 100% !important; }
  .ie thead { display: none; }
  .ie tbody tr { border-bottom: 1px solid var(--line); }
  .ie tbody th { border-bottom: 0; }
  .ie td::before { content: attr(data-l); display: block; margin-bottom: 6px; font: 800 .7rem/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
  .ie td { border-bottom: 0; padding-top: 10px; }
  .field--row, .qgrid, .cal-ctrl__grid { grid-template-columns: minmax(0, 1fr); }
  .office dl div { grid-template-columns: 90px minmax(0, 1fr); }
  .yr__qs { display: none; }
  .yr__months { margin-top: 0; border-radius: 14px; }
  .yr__months { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 2px; }
  .yr__months .mbtn { min-height: 56px; }
  .ev { grid-template-columns: minmax(0, 1fr); padding: 16px; }
  .ev__d { grid-auto-flow: column; justify-content: start; align-items: baseline; gap: 10px; }
  .ev__who { grid-template-columns: minmax(0, 1fr); }
  .evs { padding-left: 34px; }
  .evs::before { left: 8px; }
  .evs__mark { left: -1px; }
  .ev::before { left: -32px; }
  .service__list li { grid-template-columns: 84px minmax(0, 1fr); }
  .service .pic img { aspect-ratio: 16 / 9; object-fit: cover; }
  .foot { grid-template-columns: minmax(0, 1fr); }
  .legal dl div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
    .stepper { grid-template-columns: 52px 80px 52px; }
}
@media (max-width: 420px) {
  .btn { padding: 0 20px; }
  .ribbon__dot { font-size: .58rem; width: 50px; }
  .tcard__top { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
}

/* the shared demo ribbon is slightly too wide between 760 and 900 px: hide its note earlier */
@media (max-width: 900px) { .nx-ribbon__note { display: none; } }
