/* WebLM · nostero.com */
@font-face { font-family: "Familjen Grotesk"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(fonts/familjen-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Familjen Grotesk"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(fonts/familjen-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(fonts/instrument-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(fonts/instrument-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --linen: #EDE9E1;
  --paper: #F7F5F0;
  --ink: #121633;
  --ink-2: #4F526A;
  --indigo: #24308F;
  --indigo-deep: #1C2675;
  --indigo-l: #E1E4F4;
  --madder: #D24A28;
  --madder-l: #F07A55;
  --night: #1A1F45;
  --bezel: #0D1030;
  --on-dark: #EDE9E1;
  --on-dark-2: rgba(237, 233, 225, .72);
  --pad: clamp(20px, 4.2vw, 64px);
  --hdr: 68px;
  --ff-d: "Familjen Grotesk", "Helvetica Neue", Arial, sans-serif;
  --ff-t: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html:has(dialog[open]) { overflow: hidden; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--hdr); }
body { margin: 0; background: var(--linen); color: var(--ink); font: 400 18px/1.55 var(--ff-t);
  -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
p, h1, h2, h3, ul, ol, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: var(--indigo-l); color: var(--ink); }
:focus-visible { outline: 2px solid var(--indigo); outline-offset: 3px; border-radius: 2px; }
[data-theme="dark"] :focus-visible, [data-theme="indigo"] :focus-visible { outline-color: var(--on-dark); }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--indigo); color: #fff; padding: 10px 16px; border-radius: 6px; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- type ---------- */
.name, .statement, .figure, .hero__quote, .how__step { font-family: var(--ff-d); font-weight: 600; }
.lead { font-size: clamp(18px, 1.45vw, 23px); line-height: 1.45; }
.statement { font-size: clamp(36px, 5.3vw, 86px); line-height: 1.02; letter-spacing: -.032em; text-wrap: balance; }
.name { font-size: clamp(44px, 5.6vw, 92px); line-height: .98; letter-spacing: -.035em; }
.figure { font-size: clamp(64px, 12vw, 190px); line-height: .86; letter-spacing: -.045em; white-space: nowrap; }

/* ---------- buttons, links ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px;
  border-radius: 6px; background: var(--indigo); color: #fff; font: 600 17px/1 var(--ff-t); text-decoration: none;
  transition: background .2s; white-space: nowrap; }
.btn:hover { background: var(--indigo-deep); }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: 15px; }
.textlink { font: 500 17px/1.3 var(--ff-t); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .25em; }
.textlink:hover { text-decoration-thickness: 2px; }
.biglink { display: inline-flex; align-items: baseline; gap: .3em; font: 600 clamp(24px, 2.2vw, 34px)/1.1 var(--ff-d); letter-spacing: -.02em;
  color: var(--indigo); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .18em; }
.biglink:hover { text-decoration-thickness: 3px; }
.biglink__arrow { font-size: .8em; text-decoration: none; display: inline-block; }
.biglink--sm { font-size: clamp(20px, 1.6vw, 26px); }

/* the madder thread: a line, never text or fill */
.thread { position: absolute; left: 0; height: clamp(3px, .25vw, 4px); background: var(--madder); transform-origin: left center;
  transform: scaleX(0); pointer-events: none; z-index: 0; }
.thread.is-drawn { transform: scaleX(1); transition: transform 1.5s var(--ease-io); }
[data-theme="dark"] .thread { background: var(--madder-l); }

/* ---------- reveal ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(30px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- header ---------- */
.hdr { position: fixed; inset: 0 0 auto; height: var(--hdr); z-index: 50; display: flex; align-items: center; gap: 40px;
  padding: 0 var(--pad); background: rgba(237, 233, 225, .92); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(18, 22, 51, .08); transition: background-color .35s, color .35s, border-color .35s; }
.hdr__logo { display: block; flex: none; }
.hdr__lockup { height: 34px; width: auto; }
.hdr__lockup--dark { display: none; }
.hdr__nav { display: flex; align-items: center; gap: 32px; margin-left: auto; font: 500 16px/1 var(--ff-t); }
.hdr__nav a, .hdr__nav button { text-decoration: none; padding: 8px 0; position: relative; }
.hdr__nav a:not(.btn)::after, .hdr__nav button::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.hdr__nav a:not(.btn):hover::after, .hdr__nav button:hover::after { transform: scaleX(1); }
.hdr__menu { display: none; }
.hdr__bars, .hdr__bars::before { display: block; width: 20px; height: 2px; background: currentColor; position: relative;
  transition: transform .25s var(--ease), background-color .2s; }
.hdr__bars { background: transparent; }
.hdr__bars::before, .hdr__bars::after { content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: currentColor;
  transition: transform .25s var(--ease); }
.hdr__bars::before { top: -4px; }
.hdr__bars::after { top: 4px; }
.hdr.is-open .hdr__bars::before { transform: translateY(4px) rotate(45deg); }
.hdr.is-open .hdr__bars::after { transform: translateY(-4px) rotate(-45deg); }
.nw { white-space: nowrap; }
.hdr[data-theme="dark"], .hdr[data-theme="indigo"] { color: var(--on-dark); border-color: rgba(237, 233, 225, .1); }
.hdr[data-theme="dark"] { background: rgba(26, 31, 69, .92); }
.hdr[data-theme="indigo"] { background: rgba(36, 48, 143, .92); }
.hdr[data-theme="dark"] .hdr__lockup--light, .hdr[data-theme="indigo"] .hdr__lockup--light { display: none; }
.hdr[data-theme="dark"] .hdr__lockup--dark, .hdr[data-theme="indigo"] .hdr__lockup--dark { display: block; }
.hdr[data-theme="dark"] .btn, .hdr[data-theme="indigo"] .btn { background: var(--on-dark); color: var(--ink); }
.hdr[data-theme="dark"] .btn:hover, .hdr[data-theme="indigo"] .btn:hover { background: #fff; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column;
  padding: calc(var(--hdr) + clamp(48px, 12vh, 120px)) var(--pad) clamp(40px, 8vh, 80px); }
.hero__src { font-size: 18px; color: var(--ink-2); margin-bottom: clamp(16px, 2.6vh, 28px); }
.hero__quote { position: relative; z-index: 1; font-size: clamp(44px, 8vw, 124px); line-height: 1.0; letter-spacing: -.036em;
  max-width: 14.5em; text-wrap: balance; padding-bottom: .08em; }
.hero__q { margin-left: -.42em; }
.hero__thread { top: 0; }
.hero__foot { margin-top: auto; padding-top: clamp(32px, 7vh, 72px); display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; }
.hero__foot .lead { grid-column: 7 / span 5; }
.hero__foot .actions { grid-column: 7 / span 6; display: flex; align-items: center; gap: 32px; margin-top: 28px; flex-wrap: wrap; }

/* ---------- doubt ---------- */
.doubt { padding: clamp(80px, 18vh, 180px) var(--pad) clamp(96px, 22vh, 220px); }
.doubt__quote { font: 600 clamp(34px, 4.7vw, 76px)/1.06 var(--ff-d); letter-spacing: -.03em; max-width: 17em; text-wrap: balance; }
.doubt__quote .w { opacity: var(--o, 1); transition: opacity .25s linear; }
.js .doubt__quote .w { --o: .18; }
.doubt__src { margin-top: 24px; font-size: 17px; color: var(--ink-2); }
.doubt__answer { margin: clamp(48px, 10vh, 96px) 0 0 auto; max-width: 21em; font: 500 clamp(22px, 1.9vw, 30px)/1.35 var(--ff-d);
  letter-spacing: -.01em; margin-left: calc(50% + 12px); }

/* ---------- screens (frames for real pages) ---------- */
.screen { position: relative; background: var(--bezel); border-radius: 16px; padding: 8px;
  box-shadow: 0 0 0 1px rgba(237, 233, 225, .08), 0 40px 90px -30px rgba(0, 0, 0, .65); }
.screen__view { position: relative; overflow: hidden; border-radius: 9px; background: #fff; width: 100%; height: 100%; }
.screen__view img { width: 100%; height: auto; }
.screen--phone { border-radius: 30px; padding: 7px; }
.screen--phone .screen__view { border-radius: 24px; }
.screen--small { border-radius: 12px; padding: 6px; }
.screen--small .screen__view { border-radius: 7px; aspect-ratio: 16 / 10; }
[data-theme="light"] .screen { box-shadow: 0 30px 70px -28px rgba(18, 22, 51, .45); background: var(--ink); }

/* ---------- Krótka trawka ---------- */
.kt { background: var(--night); color: var(--on-dark); }
.kt__pin { position: relative; height: 430vh; }
.kt__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: clip; display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: clamp(32px, 3.5vw, 56px); align-items: center;
  padding: calc(var(--hdr) + 32px) var(--pad) 32px; }
.kt__text .name { margin-bottom: 24px; }
.kt__who { font: 500 clamp(19px, 1.5vw, 22px)/1.3 var(--ff-t); color: var(--on-dark); margin-bottom: 14px; }
.kt__text .lead { color: var(--on-dark-2); max-width: 22em; }
.note { margin-top: 18px; font-size: clamp(17px, 1.45vw, 23px); line-height: 1.45; color: var(--on-dark-2); max-width: 24em; }
.kt__shots { position: relative; height: 100%; min-height: 0; }
.kt__laptop { position: absolute; left: 0; top: 50%; transform: translateY(-50%); height: 90%; aspect-ratio: 16 / 10; max-width: 88%; }
.kt__phone { position: absolute; right: 0; bottom: 0; height: 74%; aspect-ratio: 9 / 19.5; }
.kt__laptop .screen__view, .kt__phone .screen__view { height: 100%; }
.kt__roll { will-change: transform; }
.kt__roll img { display: block; width: 100%; height: auto; }

.kt__more { padding: clamp(64px, 12vh, 140px) var(--pad) clamp(96px, 18vh, 180px); }
.kt__pages { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.2vw, 36px); }
.kt__pages li:nth-child(2) { transition-delay: .08s; }
.kt__pages li:nth-child(3) { transition-delay: .16s; }
.kt__pages figcaption { margin-top: 16px; font: 500 19px/1.2 var(--ff-t); color: var(--on-dark); }
.kt__code { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: clamp(32px, 5vw, 96px); align-items: end;
  margin-top: clamp(80px, 16vh, 160px); }
.kt__code-text { max-width: 34em; padding-bottom: .6em; }
.kt__code-line { font: 500 clamp(22px, 1.9vw, 30px)/1.3 var(--ff-d); letter-spacing: -.01em; }
.kt__facts { margin-top: 18px; color: var(--on-dark-2); font-size: 18px; }

/* ---------- Klinika Barku ---------- */
.kb { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); column-gap: clamp(40px, 5vw, 88px); align-items: center;
  padding: clamp(88px, 15vh, 160px) var(--pad); }
.kb__shots { position: relative; padding: 0 10% 7% 0; }
.kb__laptop { aspect-ratio: 16 / 10; }
.kb__laptop .screen__view img { height: 100%; object-fit: cover; object-position: top; }
.kb__phone { position: absolute; right: 0; bottom: 0; width: 22%; aspect-ratio: 600 / 1298; }
.kb__phone .screen__view img { height: 100%; object-fit: cover; object-position: top; }
.kb__who { margin-top: 20px; font: 500 clamp(18px, 1.4vw, 21px)/1.35 var(--ff-t); color: var(--ink-2); }
.kb__text .lead { margin-top: 28px; max-width: 16em; }
.kb__text .biglink { margin-top: 36px; }

/* ---------- agency ---------- */
.agency { background: var(--indigo); color: #fff; padding: clamp(96px, 20vh, 200px) var(--pad) clamp(96px, 18vh, 180px);
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; }
.agency .statement { grid-column: 1 / span 11; max-width: 15.5em; }
.agency__cols { grid-column: 6 / span 7; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: clamp(64px, 12vh, 120px);
  color: rgba(255, 255, 255, .86); }
.agency__cols p:nth-child(2) { transition-delay: .1s; }

/* ---------- how it works ---------- */
.how { background: var(--night); color: var(--on-dark); }
.how__pin { position: relative; height: 340vh; }
.how__stage { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center;
  padding: var(--hdr) var(--pad) 0; overflow: clip; }
.how__list { position: relative; z-index: 1; width: 100%; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  column-gap: clamp(40px, 5vw, 96px); align-items: center; }
.how__item { display: contents; }
.how__step { grid-column: 1; font-size: clamp(32px, 3.75vw, 60px); line-height: 1.08; letter-spacing: -.03em;
  padding: .14em 0 .18em; opacity: .28; transition: opacity .5s var(--ease); }
.how__step span { display: inline-block; }
.how__item:nth-child(1) .how__step { grid-row: 1; }
.how__item:nth-child(2) .how__step { grid-row: 2; }
.how__item:nth-child(3) .how__step { grid-row: 3; }
.how__item:nth-child(4) .how__step { grid-row: 4; }
.how__item:nth-child(5) .how__step { grid-row: 5; }
.how__detail { grid-column: 2; grid-row: 1 / span 5; align-self: center; font-size: clamp(18px, 1.45vw, 23px); line-height: 1.5;
  color: var(--on-dark); opacity: 0; transform: translateY(14px); transition: opacity .45s var(--ease), transform .45s var(--ease);
  max-width: 24em; }
.how__item.is-active .how__step { opacity: 1; }
.how__item.is-active .how__detail { opacity: 1; transform: none; transition-delay: .12s; }
.how__item:not(.is-active) .how__detail { pointer-events: none; }
.how__item.is-active .how__detail { position: relative; z-index: 1; }
.how__thread { transform: scaleX(1); transition: top .6s var(--ease-io), width .6s var(--ease-io); }
.how__thread:not(.is-drawn) { transform: scaleX(0); }

/* ---------- pricing ---------- */
.price { padding: clamp(96px, 20vh, 200px) var(--pad) clamp(64px, 12vh, 120px); }
.price__top { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: clamp(32px, 4vw, 72px); align-items: end; }
.price__fig { font-size: clamp(60px, 14vw, 216px); }
.price__line { font: 500 clamp(22px, 1.9vw, 30px)/1.3 var(--ff-d); letter-spacing: -.01em; max-width: 15em; padding-bottom: .5em; }
.price__plans { margin-top: clamp(64px, 13vh, 128px); display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; }
.price__lead { grid-column: 1 / -1; font-size: clamp(18px, 1.45vw, 23px); color: var(--ink-2); margin-bottom: 18px; }
.price__list { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  font: 600 clamp(30px, 3.4vw, 54px)/1.05 var(--ff-d); letter-spacing: -.03em; padding-bottom: clamp(40px, 7vh, 64px);
  border-bottom: 1px solid rgba(18, 22, 51, .16); }
.price__small { grid-column: 1 / span 7; margin-top: 28px; color: var(--ink-2); }

/* ---------- close ---------- */
.close { padding: clamp(96px, 18vh, 180px) var(--pad) clamp(96px, 16vh, 160px); }
.close__top { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: clamp(40px, 5vw, 96px); align-items: center; }
.close__h { font-size: clamp(40px, 6.4vw, 104px); max-width: 9.5em; }
.close__text .lead { margin-top: 32px; max-width: 24em; }
.close__mark { justify-self: end; width: 100%; max-width: 520px; }
.weave { width: 100%; height: auto; overflow: visible; }
.weave__line { fill: none; stroke: #fff; stroke-width: 12; stroke-linejoin: round; stroke-dasharray: 1 1; }
.js .weave__line { stroke-dashoffset: 1; }
.weave.is-woven .weave__line--i { stroke-dashoffset: 0; transition: stroke-dashoffset 1.2s var(--ease-io); }
.weave.is-woven .weave__line--m { stroke-dashoffset: 0; transition: stroke-dashoffset 1.6s var(--ease-io) 1s; }
.close__brandline { margin-top: 28px; font: 500 20px/1.3 var(--ff-d); color: var(--ink-2); }

.close__doors { margin-top: clamp(32px, 6vh, 56px); display: flex; align-items: center; gap: 20px 40px; flex-wrap: wrap; }
.door { font-size: 18px; color: var(--ink-2); display: flex; flex-direction: column; gap: 6px; }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 24px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field--wide { grid-column: 1 / -1; }
.field label { font: 500 16px/1.3 var(--ff-t); }
.field input, .field textarea { font: 400 18px/1.4 var(--ff-t); color: var(--ink); background: var(--paper);
  border: 1px solid rgba(18, 22, 51, .22); border-radius: 6px; padding: 13px 15px; width: 100%; transition: border-color .2s; }
.field textarea { resize: vertical; min-height: 84px; }
.field input:hover, .field textarea:hover { border-color: rgba(18, 22, 51, .45); }
.field input:focus, .field textarea:focus { outline: 2px solid var(--indigo); outline-offset: 0; border-color: var(--indigo); }
.field input[aria-invalid="true"] { border-color: var(--ink); border-width: 2px; padding: 12px 14px; }
.field input::placeholder, .field textarea::placeholder { color: #8A8C9C; }
.field__err { font: 500 15px/1.3 var(--ff-t); display: flex; align-items: center; gap: 10px; margin-top: -2px; }
.field__err:empty { display: none; }
.field__err::before { content: ""; width: 18px; height: 3px; background: var(--madder); flex: none; }
.form__end { grid-column: 1 / -1; display: flex; align-items: center; gap: 28px; flex-wrap: wrap; margin-top: 8px; }
.form__consent { font-size: 15px; line-height: 1.45; color: var(--ink-2); max-width: 30em; }
.form__sending { display: none; }
.form.is-sending .form__label { display: none; }
.form.is-sending .form__sending { display: inline; }
.form.is-sending .form__submit { opacity: .75; pointer-events: none; }
.form__error { grid-column: 1 / -1; font-size: 16px; line-height: 1.45; display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 12px; }
.form__error::before { content: ""; width: 18px; height: 3px; background: var(--madder); margin-top: .65em; }
.form__error a { overflow-wrap: anywhere; }
.form__thanks { padding-top: 8px; }
.form__thanks-title { font: 600 clamp(36px, 4vw, 60px)/1 var(--ff-d); letter-spacing: -.03em; margin-bottom: 16px; }
.form__thanks:focus { outline: none; }

/* ---------- footer ---------- */
.foot { background: var(--night); color: var(--on-dark-2); padding: clamp(72px, 14vh, 128px) var(--pad) 40px; font-size: 16px; line-height: 1.6; }
.foot__contact { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: 48px; align-items: end;
  padding-bottom: clamp(56px, 10vh, 96px); }
.foot__intro { font-size: 18px; margin-bottom: 8px; }
.foot__name { font: 600 clamp(28px, 3.3vw, 52px)/1.08 var(--ff-d); letter-spacing: -.02em; color: var(--on-dark); }
.foot__lines { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.foot__lines a { font: 600 clamp(22px, 3.3vw, 52px)/1.08 var(--ff-d); letter-spacing: -.02em; color: var(--on-dark);
  text-decoration-thickness: 2px; text-underline-offset: .18em; }
.foot__base { display: grid; grid-template-columns: auto 1fr auto; column-gap: 64px; align-items: end; padding-top: 32px;
  border-top: 1px solid rgba(237, 233, 225, .14); }
.foot__lockup { height: 36px; width: auto; }
.foot__text p:first-child { color: var(--on-dark); }
.foot .textlink { font-size: inherit; color: var(--on-dark); }
.foot__meta { text-align: right; }
.foot__base a { text-underline-offset: .2em; }

/* ---------- panels (form, brief) ---------- */
.panel { width: min(820px, calc(100% - 32px)); max-height: calc(100vh - 48px); max-height: calc(100svh - 48px); padding: 0; border: 0;
  border-radius: 10px; background: var(--paper); color: var(--ink); box-shadow: 0 40px 120px rgba(0, 0, 0, .4); overflow: hidden; }
.panel[open] { display: flex; flex-direction: column; }
.panel::backdrop { background: rgba(18, 22, 51, .62); }
.panel__bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px clamp(20px, 5vw, 56px);
  border-bottom: 1px solid rgba(18, 22, 51, .12); flex: none; }
.panel__title { font: 600 clamp(26px, 2.6vw, 36px)/1.1 var(--ff-d); letter-spacing: -.02em; }
.panel__close { font: 500 16px/1 var(--ff-t); padding: 12px 16px; border-radius: 6px; border: 1px solid rgba(18, 22, 51, .25); flex: none; }
.panel__close:hover { border-color: var(--ink); }
.panel__body { overflow-y: auto; padding: 22px clamp(20px, 5vw, 56px) 32px; overscroll-behavior: contain; }
.panel__intro { font-size: 19px; line-height: 1.5; color: var(--ink-2); margin-bottom: 22px; }
.panel--brief .panel__body { padding-bottom: 44px; }
.panel--brief .panel__intro { padding-bottom: 28px; border-bottom: 1px solid rgba(18, 22, 51, .12); }
.panel .field input, .panel .field textarea { background: #fff; }
.brief__doc { font-size: 17px; line-height: 1.62; }
.brief__doc h3 { font: 600 15px/1.3 var(--ff-t); color: var(--ink-2); margin: 28px 0 8px; }
.brief__doc h3:first-child { margin-top: 0; }
.brief__doc p, .brief__doc ul, .brief__doc ol { margin-bottom: 14px; }
.brief__doc ol { list-style: decimal; padding-left: 1.4em; }
.brief__doc ul { list-style: disc; padding-left: 1.2em; }
.brief__doc li { margin-bottom: 8px; }
.brief__doc code { font: 15px/1 ui-monospace, Consolas, monospace; background: rgba(18, 22, 51, .06); padding: 2px 5px; border-radius: 4px; overflow-wrap: anywhere; }
.brief__doc a { color: var(--indigo); overflow-wrap: anywhere; }

/* ---------- laptop heights below 800 ---------- */
@media (min-width: 821px) and (max-height: 800px) {
  .hero { padding-top: calc(var(--hdr) + clamp(40px, 9vh, 80px)); }
}

/* ---------- tablet / phone ---------- */
@media (max-width: 1100px) {
  .hdr__nav { gap: 22px; }
  .hero__foot .lead, .hero__foot .actions { grid-column: 5 / -1; }
  .agency__cols { grid-column: 1 / -1; }
}
@media (max-width: 920px) {
  :root { --hdr: 60px; }
  .hdr { gap: 12px; }
  .hdr__lockup { height: 28px; }
  .hdr__cta { margin-left: auto; }
  .hdr__menu { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 44px; height: 42px;
    border-radius: 6px; border: 1px solid currentColor; }
  .hdr__nav { position: fixed; left: 0; right: 0; top: var(--hdr); flex-direction: column; align-items: flex-start; gap: 4px;
    padding: 20px var(--pad) 32px; background: var(--linen); font: 600 30px/1.1 var(--ff-d); letter-spacing: -.02em;
    border-bottom: 1px solid rgba(18, 22, 51, .1); visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .25s, transform .25s, visibility 0s .25s; margin: 0;
    -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
  .hdr.is-open .hdr__nav { visibility: visible; opacity: 1; transform: none; transition: opacity .25s, transform .25s; }
  .hdr__nav a, .hdr__nav button { padding: 10px 0; }
  .hdr__nav a:not(.btn)::after, .hdr__nav button::after { display: none; }
  .hdr[data-theme="dark"] .hdr__nav { background: var(--night); border-color: rgba(237, 233, 225, .1); }
  .hdr[data-theme="indigo"] .hdr__nav { background: var(--indigo); border-color: rgba(237, 233, 225, .1); }
  .hero__foot { display: block; }
  .hero__foot .actions { gap: 24px; }

  .doubt__answer { margin-left: 0; }

  .kt__pin { height: 330vh; }
  .kt__stage { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); row-gap: 24px; align-items: start;
    padding: calc(var(--hdr) + 20px) var(--pad) 24px; }
  .kt__text .name { margin-bottom: 10px; }
  .kt__who { margin-bottom: 6px; }
  .kt__text .note { display: none; }
  .kt__laptop { display: none; }
  .kt__shots { display: flex; justify-content: center; }
  .kt__phone { position: relative; right: auto; bottom: auto; height: 100%; max-width: 100%; }
  .kt__more { padding-top: 56px; }
  .kt__pages { grid-template-columns: 1fr; gap: 28px; }
  .kt__code { grid-template-columns: 1fr; row-gap: 20px; margin-top: 72px; }

  .kb { grid-template-columns: 1fr; row-gap: 48px; }
  .kb__shots { padding: 0 12% 9% 0; }
  .kb__phone { width: 27%; }

  .agency .statement { grid-column: 1 / -1; }
  .agency__cols { grid-template-columns: 1fr; gap: 20px; }

  .how__pin { height: auto; }
  .how__stage { position: relative; height: auto; display: block; padding: 96px var(--pad) 104px; }
  .how__list { display: block; }
  .how__item { display: block; margin-bottom: 44px; }
  .how__item:last-child { margin-bottom: 0; }
  .how__step { opacity: 1; position: relative; padding: 0 0 14px; margin-bottom: 14px; }
  .how__step::after { content: ""; position: absolute; left: calc(-1 * var(--pad)); bottom: 0; height: 3px; width: calc(100% + var(--pad));
    background: var(--madder-l); transform: scaleX(0); transform-origin: left; transition: transform 1s var(--ease-io); }
  .how__item.is-in .how__step::after { transform: scaleX(1); }
  .how__step { width: fit-content; }
  .how__detail { opacity: 1; transform: none; max-width: none; }
  .how__thread { display: none; }

  .price__top { grid-template-columns: 1fr; row-gap: 18px; }
  .price__line { padding-bottom: 0; }
  .price__list { grid-template-columns: 1fr; gap: 10px; }
  .price__small { grid-column: 1 / -1; }

  .close__top { grid-template-columns: 1fr; row-gap: 56px; }
  .close__mark { justify-self: start; max-width: 300px; }
  .close__doors { flex-direction: column; align-items: flex-start; }

  .foot__contact { grid-template-columns: 1fr; row-gap: 20px; }
  .foot__lines { align-items: flex-start; }
  .foot__lines a { font-size: clamp(17px, 4.9vw, 26px); overflow-wrap: anywhere; }
  .foot__base { grid-template-columns: 1fr; row-gap: 20px; }
  .foot__meta { text-align: left; }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  .hdr__lockup { height: 24px; }
  .hdr__cta { padding: 0 14px; font-size: 14px; min-height: 40px; }
  .hdr__menu { height: 40px; width: 42px; }
  .screen--phone { border-radius: 22px; padding: 5px; }
  .screen--phone .screen__view { border-radius: 18px; }
  .kb__phone { border-radius: 16px; padding: 4px; }
  .kb__phone .screen__view { border-radius: 12px; }
  .hero__quote { font-size: clamp(40px, 11.6vw, 56px); line-height: 1.02; }
  .hero__q { margin-left: -.36em; }
  .hero__foot .actions { flex-direction: column; align-items: flex-start; }
  .hero__foot .btn { width: 100%; }
  .form { grid-template-columns: 1fr; }
  .form__end .btn, .close__doors .btn { width: 100%; }
  .panel { width: 100%; max-width: none; height: 100svh; max-height: none; margin: 0; border-radius: 0; }
  .panel__bar { padding-top: 14px; padding-bottom: 14px; }
  .panel__title { font-size: 24px; }
  .biglink { font-size: 24px; }
  .biglink--sm { font-size: 19px; }
}

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .js .doubt__quote .w { --o: 1; }
  .thread, .thread.is-drawn { transform: scaleX(1); transition: none; }
  .how__thread { transition: none; }
  .js .weave__line { stroke-dashoffset: 0; }
  .how__step, .how__detail { transition: none; }
}
