:root {
  color-scheme: light;
  --cf-font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --cf-font-display: Georgia, "Times New Roman", serif;
  --cf-canvas: #faf7f0;
  --cf-surface: #fffdf8;
  --cf-surface-muted: #efeee6;
  --cf-ink: #122d2c;
  --cf-ink-soft: #58635f;
  --cf-line: #d4d7ce;
  --cf-accent: #245c51;
  --cf-accent-hover: #18483f;
  --cf-on-accent: #ffffff;
  --cf-accent-soft: #e3ebe4;
  --cf-terra: #a34429;
  --cf-terra-soft: #f6dfd0;
  --cf-amber: #ffdea1;
  --cf-on-amber: #65400c;
  --cf-focus: #a34429;
  --cf-desk-opacity: 1;
  --cf-desk-filter: none;
  --cf-shadow: 0 28px 45px -20px #17372d40;
  /* Motion, from the mark's storyboard (design/brand/explorations/2026-10-06-vector/Storyboard.dc.html):
     enter = «Сборка», settle = «Сошлось», one element after another every 80 ms. */
  --cf-ease-enter: cubic-bezier(.22, .9, .3, 1);
  --cf-ease-settle: cubic-bezier(.3, .7, .2, 1);
  --cf-ease-exit: cubic-bezier(.55, 0, 1, .45);
  --cf-stagger: 80ms;
  /* Mark A «Пространство», source: design/brand/mark/customs-flow-mark.svg */
  --cf-brand-mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath fill='%23133B31' d='M23 0H45A4 4 0 0 1 49 4V20A23 23 0 0 1 26 43H4A4 4 0 0 1 0 39V23A23 23 0 0 1 23 0ZM4 55H26A23 23 0 0 1 49 78V96A4 4 0 0 1 45 100H23A23 23 0 0 1 0 77V59A4 4 0 0 1 4 55ZM87 40H96A4 4 0 0 1 100 44V77A23 23 0 0 1 77 100H65A4 4 0 0 1 61 96V66A26 26 0 0 1 87 40Z'/%3E%3Crect fill='%23B75B3F' x='69.5' y='4.56' width='22' height='22' rx='4' transform='rotate(45 80.5 15.56)'/%3E%3C/svg%3E");
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --cf-canvas: #10231f;
  --cf-surface: #172d27;
  --cf-surface-muted: #20392f;
  --cf-ink: #f7f3e8;
  --cf-ink-soft: #b4c4bb;
  --cf-line: #3b5147;
  --cf-accent: #b3d2b8;
  --cf-accent-hover: #cce4cf;
  --cf-on-accent: #10231f;
  --cf-accent-soft: #2b483c;
  --cf-terra: #efab8a;
  --cf-terra-soft: #483328;
  --cf-amber: #62471f;
  --cf-on-amber: #ffe1a7;
  --cf-focus: #f2bd93;
  --cf-desk-opacity: .42;
  --cf-desk-filter: brightness(.58) saturate(.6);
  --cf-shadow: 0 28px 48px -15px #000a;
  /* design/brand/mark/customs-flow-mark-dark.svg */
  --cf-brand-mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath fill='%23F4EDE1' d='M23 0H45A4 4 0 0 1 49 4V20A23 23 0 0 1 26 43H4A4 4 0 0 1 0 39V23A23 23 0 0 1 23 0ZM4 55H26A23 23 0 0 1 49 78V96A4 4 0 0 1 45 100H23A23 23 0 0 1 0 77V59A4 4 0 0 1 4 55ZM87 40H96A4 4 0 0 1 100 44V77A23 23 0 0 1 77 100H65A4 4 0 0 1 61 96V66A26 26 0 0 1 87 40Z'/%3E%3Crect fill='%23E3906F' x='69.5' y='4.56' width='22' height='22' rx='4' transform='rotate(45 80.5 15.56)'/%3E%3C/svg%3E");
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --cf-canvas: #10231f;
    --cf-surface: #172d27;
    --cf-surface-muted: #20392f;
    --cf-ink: #f7f3e8;
    --cf-ink-soft: #b4c4bb;
    --cf-line: #3b5147;
    --cf-accent: #b3d2b8;
    --cf-accent-hover: #cce4cf;
    --cf-on-accent: #10231f;
    --cf-accent-soft: #2b483c;
    --cf-terra: #efab8a;
    --cf-terra-soft: #483328;
    --cf-amber: #62471f;
    --cf-on-amber: #ffe1a7;
    --cf-focus: #f2bd93;
    --cf-desk-opacity: .42;
    --cf-desk-filter: brightness(.58) saturate(.6);
    --cf-shadow: 0 28px 48px -15px #000a;
    --cf-brand-mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath fill='%23F4EDE1' d='M23 0H45A4 4 0 0 1 49 4V20A23 23 0 0 1 26 43H4A4 4 0 0 1 0 39V23A23 23 0 0 1 23 0ZM4 55H26A23 23 0 0 1 49 78V96A4 4 0 0 1 45 100H23A23 23 0 0 1 0 77V59A4 4 0 0 1 4 55ZM87 40H96A4 4 0 0 1 100 44V77A23 23 0 0 1 77 100H65A4 4 0 0 1 61 96V66A26 26 0 0 1 87 40Z'/%3E%3Crect fill='%23E3906F' x='69.5' y='4.56' width='22' height='22' rx='4' transform='rotate(45 80.5 15.56)'/%3E%3C/svg%3E");
  }
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; color: var(--cf-ink); background: var(--cf-canvas); font: 16px/1.5 var(--cf-font-body); }
button, select { font: inherit; color: inherit; }
button, a, select { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-underline-offset: 5px; }
button { cursor: pointer; }
svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
svg.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
:focus-visible { outline: 3px solid var(--cf-focus); outline-offset: 5px; }
.skip-link { position: fixed; top: 8px; left: 16px; z-index: 10; clip-path: inset(50%); padding: 12px 20px; background: var(--cf-surface); }
.skip-link:focus { clip-path: none; }
.site-shell { width: min(100% - 112px, 1440px); margin: auto; }
.site-header { min-height: 102px; display: flex; align-items: center; gap: 32px; border-bottom: 1px solid var(--cf-line); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font: 600 32px/1 var(--cf-font-display); letter-spacing: -1.5px; white-space: nowrap; }
.brand-mark { display: block; flex: none; width: 30px; height: 30px; background: var(--cf-brand-mark) center / contain no-repeat; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 35px; }
.site-nav a { min-height: 44px; display: inline-flex; align-items: center; font-size: 14px; text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { text-decoration: underline; }
.theme-control { display: flex; gap: 7px; align-items: center; padding-left: 22px; border-left: 1px solid var(--cf-line); }
.theme-control svg { width: 19px; height: 19px; }
.theme-control select { min-height: 44px; width: 114px; border: 0; border-radius: 0; background: var(--cf-canvas); font-size: 13px; cursor: pointer; }
.js-only { display: none; }
.js .js-only { display: inline-flex; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 56px; padding: 15px 24px; border: 0; border-radius: 6px; color: var(--cf-on-accent); background: var(--cf-accent); text-decoration: none; font-size: 16px; line-height: 1.4; }
.button:hover { background: var(--cf-accent-hover); }
:root:not(.js) .js-only { display: none; }
.button svg { width: 22px; height: 22px; }
.pilot-badge { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 100px; color: var(--cf-terra); background: var(--cf-terra-soft); font-size: 13px; font-weight: 500; }
.pilot-badge::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.eyebrow { margin: 0; color: var(--cf-ink-soft); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.page-footer { display: flex; justify-content: space-between; align-items: center; gap: 24px; min-height: 88px; padding: 24px 0; border-top: 1px solid var(--cf-line); color: var(--cf-ink-soft); font-size: 12px; }
.page-footer .footer-brand { color: var(--cf-ink); font: 18px var(--cf-font-display); }
.page-footer p { margin: 0; }
@media (max-width: 1100px) {
  .site-shell { width: calc(100% - 64px); }
  .site-header { gap: 20px; }
  .site-nav { gap: 22px; }
}
@media (max-width: 700px) {
  .site-shell { width: calc(100% - 40px); }
  .site-header { min-height: 108px; padding: 20px 0 12px; flex-wrap: wrap; gap: 13px 10px; }
  .brand { font-size: 25px; letter-spacing: -1px; gap: 8px; }
  .brand-mark { width: 23px; height: 23px; }
  .site-nav { order: 3; width: 100%; margin: 0; gap: 24px; }
  .site-nav a { font-size: 13px; min-height: 30px; }
  .theme-control { margin-left: auto; padding: 0; border: 0; gap: 0; }
  .theme-control svg { display: none; }
  .theme-control select { width: 94px; min-height: 36px; font-size: 12px; }
  .page-footer { align-items: flex-start; font-size: 11px; gap: 20px; }
  .page-footer p:last-child { max-width: 165px; text-align: right; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media (max-width: 350px) {
  .brand { font-size: 22px; gap: 6px; }
  .theme-control select { width: 82px; font-size: 11px; }
}

.site-shell { min-height: 100svh; display: flex; flex-direction: column; }
.site-shell > main { flex: 1; display: flex; flex-direction: column; }
.showcase { flex: 1; }
.showcase { display: grid; grid-template-columns: 1.03fr 1fr; align-items: center; position: relative; }
.hero-copy { padding: 66px 0 72px; position: relative; z-index: 1; }
.hero-copy h1 { margin: 25px 0 27px; font: 400 clamp(60px, 5.6vw, 88px)/1.04 var(--cf-font-display); letter-spacing: -.03em; text-wrap: balance; }
.hero-copy h1 span { display: block; }
.hero-copy .lede { max-width: 515px; margin: 0 0 32px; font-size: clamp(17px, 1.5vw, 22px); line-height: 1.55; }
.hero-copy .button { min-width: 326px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.text-link { min-height: 44px; display: inline-flex; align-items: center; font-size: 15px; font-weight: 500; }
.hero-art { position: relative; min-height: 680px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 34px 0 36px 45px; isolation: isolate; }
.desk { position: absolute; inset: 0 -56px 0 -50px; z-index: -1; overflow: hidden; pointer-events: none; mask-image: linear-gradient(to right, transparent, #000 22%), linear-gradient(to bottom, transparent, #000 9%, #000 92%, transparent); mask-composite: intersect; }
.desk img { height: 100%; width: 100%; object-fit: cover; opacity: var(--cf-desk-opacity); filter: var(--cf-desk-filter); }
.phone { width: 318px; height: 620px; max-width: 100%; border: 2px solid var(--cf-line); border-radius: 26px; padding: 12px 17px 14px; background: var(--cf-surface); box-shadow: var(--cf-shadow); position: relative; display: flex; flex-direction: column; }
.phone > * { flex-shrink: 0; }
.phone-top { display: flex; justify-content: space-between; align-items: center; height: 28px; padding: 0 8px; font-size: 12px; font-weight: 600; }
.app-back { margin: 20px 0 17px; display: flex; align-items: center; gap: 7px; font-size: 12px; }
.app-back svg { width: 16px; height: 16px; }
.app-heading { margin: 0 0 7px; font-size: 25px; letter-spacing: -.04em; line-height: 1.2; }
.case-meta { display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--cf-ink-soft); }
.status { background: var(--cf-amber); color: var(--cf-on-amber); padding: 3px 8px; border-radius: 20px; font-size: 10px; white-space: nowrap; }
.status::before { content: "●"; font-size: 8px; margin-right: 4px; }
.app-tabs { display: flex; justify-content: space-around; margin: 20px 0; border-bottom: 1px solid var(--cf-line); font-size: 11px; color: var(--cf-ink-soft); }
.app-tabs button { padding: 10px 12px; min-height: 44px; background: none; border: 0; border-bottom: 2px solid transparent; font: inherit; color: inherit; }
.app-tabs button[aria-current="step"] { border-bottom-color: var(--cf-accent); margin-bottom: -1px; font-weight: 600; color: var(--cf-accent); }
.app-tabs:not(.js-only) span { padding: 10px 12px; }
.app-tabs.js-only { display: none; }
.js .app-tabs { display: flex; }
.no-js-caption { display: block; }
.js .no-js-caption { display: none; }
.demo-panels { flex: 1; min-height: 0; overflow-y: auto; overflow-wrap: anywhere; scrollbar-width: thin; }
.message { padding: 13px 12px; border: 1px solid var(--cf-line); border-radius: 7px; }
.message-heading { display: flex; align-items: center; gap: 9px; }
.message-heading strong { font-size: 12px; }
.message-heading time { font-size: 10px; color: var(--cf-ink-soft); margin-left: auto; }
.message p { margin: 9px 0 0; font-size: 12px; line-height: 1.6; }
.icon-tile { width: 29px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: 5px; background: var(--cf-accent-soft); color: var(--cf-accent); flex-shrink: 0; }
.icon-tile svg { width: 18px; height: 18px; }
.icon-tile.terra { background: var(--cf-terra-soft); color: var(--cf-terra); }
.app-caption { font-size: 11px; color: var(--cf-ink-soft); margin: 16px 0 8px; }
.doc-list { list-style: none; padding: 0; margin: 0; }
.doc-row { display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--cf-line); padding: 10px 0; }
.doc-row:last-child { border-bottom: 0; }
.doc-row .file { min-width: 0; flex: 1; }
.doc-row strong { display: block; font-size: 11px; font-weight: 500; overflow-wrap: anywhere; }
.doc-row small { display: block; font-size: 10px; color: var(--cf-ink-soft); margin-top: 2px; }
.doc-row > svg { width: 15px; height: 15px; color: var(--cf-accent); }
.panel-title { margin: 0 0 10px; font-size: 15px; line-height: 1.4; }
.panel-copy { margin: 0 0 14px; color: var(--cf-ink-soft); font-size: 12px; line-height: 1.6; }
.reply { border-left: 2px solid var(--cf-accent); padding: 5px 0 5px 12px; font-size: 12px; line-height: 1.65; margin: 0; }
.signature-symbol { width: 50px; height: 50px; padding: 12px; background: var(--cf-accent-soft); color: var(--cf-accent); border-radius: 50%; margin: 5px 0 14px; }
.signature-note { padding-top: 12px; border-top: 1px solid var(--cf-line); font-size: 11px; color: var(--cf-ink-soft); }
.phone .button { width: 100%; min-height: 48px; margin-top: 12px; padding: 12px 14px; gap: 8px; font-size: 12px; }
.phone .button svg { width: 18px; height: 18px; }
.demo-label { display: flex; align-items: center; justify-content: center; gap: 5px; margin: 15px 0 12px; font-size: 11px; color: var(--cf-ink-soft); }
.demo-label svg { width: 12px; height: 12px; }
.sequence { display: grid; grid-template-columns: repeat(5, 1fr); padding: 0; margin: 0; list-style: none; }
.sequence li { border-right: 1px solid var(--cf-line); padding: 0 24px; }
.sequence li:first-child { padding-left: 0; }
.sequence li:last-child { padding-right: 0; border-right: 0; }
.step-link { display: grid; grid-template-columns: 24px 1fr; gap: 11px; text-decoration: none; position: relative; border-radius: 2px; }
.step-number { color: var(--cf-ink-soft); font: 13px/1.8 var(--cf-font-body); font-variant-numeric: lining-nums tabular-nums; padding-top: 1px; }
.step-title { font: 20px/1.2 var(--cf-font-display); }
.step-copy { display: block; color: var(--cf-ink-soft); font-size: 12px; line-height: 1.55; margin-top: 10px; max-width: 190px; }
.step-link[aria-current="step"] .step-number { color: var(--cf-terra); }
.step-link[aria-current="step"]::before { content: ""; position: absolute; width: 18px; height: 2px; background: var(--cf-terra); left: 0; bottom: -10px; }
.step-link:hover .step-title { text-decoration: underline; text-underline-offset: 5px; }
.demo-intro h1 { font-size: clamp(60px, 5.6vw, 88px); }
.connection { display: grid; grid-template-columns: 1.08fr 1fr; gap: 90px; padding: 75px 0 85px; align-items: start; min-height: 640px; }
.connection h1 { font: 400 clamp(52px, 5.4vw, 84px)/1.05 var(--cf-font-display); letter-spacing: -.03em; margin: 24px 0; }
.connection .lede { max-width: 460px; font-size: 19px; line-height: 1.6; }
.connection-note { color: var(--cf-ink-soft); font-size: 14px; max-width: 410px; margin-top: 24px; }
.connect-steps { padding: 30px 0 0; margin: 0 0 34px; list-style: none; }
.connect-steps li { display: flex; gap: 22px; border-bottom: 1px solid var(--cf-line); padding: 25px 0; }
.connect-steps li:first-child { padding-top: 0; }
.connect-steps .number { color: var(--cf-terra); font: 18px var(--cf-font-body); font-variant-numeric: lining-nums tabular-nums; padding-top: 4px; }
.connect-steps h2, .connect-steps h3 { font: 22px/1.25 var(--cf-font-display); margin: 0 0 8px; }
.connect-steps p { color: var(--cf-ink-soft); font-size: 14px; line-height: 1.65; margin: 0; }
.connection-action .button { width: 100%; max-width: 440px; }
.connection-action > p { font-size: 12px; color: var(--cf-ink-soft); max-width: 400px; }
@media (min-width: 1600px) { .hero-art { min-height: 680px; } }
@media (max-width: 1100px) {
  .hero-copy h1 { font-size: clamp(56px, 6.3vw, 76px); }
  .hero-art { min-height: 660px; padding-left: 25px; }
  .phone { padding-left: 13px; padding-right: 13px; }
  .desk { right: -32px; left: -20px; }
  .hero-copy .button { min-width: 0; gap: 15px; font-size: 14px; padding: 15px 20px; }
  .sequence li { padding: 0 14px; }
  .step-title { font-size: 18px; }
  .step-link { gap: 6px; grid-template-columns: 20px 1fr; }
  .connection { gap: 45px; }
}
@media (max-width: 800px) {
  .showcase { grid-template-columns: 1fr; }
  .hero-copy { padding: 42px 0 10px; }
  .hero-copy h1 { font-size: clamp(53px, 9vw, 74px); margin-top: 24px; }
  .hero-copy .lede { max-width: 490px; font-size: 18px; }
  .hero-art { min-height: 660px; padding: 35px 0; }
  .desk { left: 0; right: 0; mask-image: linear-gradient(to bottom, transparent, #000 15%, #000 88%, transparent); }
  .sequence { grid-template-columns: repeat(2, 1fr); gap: 26px 0; }
  .sequence li { padding: 0 20px; }
  .sequence li:nth-child(odd) { padding-left: 0; }
  .sequence li:nth-child(even) { padding-right: 0; border: 0; }
  .step-title { font-size: 21px; }
  .step-copy { font-size: 12px; max-width: 230px; }
  .connection { grid-template-columns: 1fr; gap: 12px; padding: 45px 0 55px; }
  .connection h1 { font-size: 62px; }
}
@media (max-width: 420px) {
  .hero-copy h1 { font-size: clamp(45px, 12.8vw, 54px); }
  .hero-copy .lede { font-size: 16px; margin-bottom: 26px; }
  .hero-copy .button { width: 100%; font-size: 14px; }
  .hero-art { min-height: 640px; padding: 35px 0; }
  .phone { width: min(318px, 100% - 8px); }
  .desk { left: -20px; right: -20px; }
  .step-title { font-size: 18px; }
  .step-copy { font-size: 11px; }
  .sequence li { padding: 0 12px; }
  .connection h1 { font-size: 49px; }
  .connection .lede { font-size: 17px; }
  .connect-steps h3 { font-size: 20px; }
}

/* Fit the complete desktop composition to the available browser height.
   Short/zoomed windows keep natural scrolling; content is never clipped. */
@media (min-width: 801px) {
  .site-header { min-height: clamp(64px, 8svh, 88px); }
  .page-footer { min-height: 52px; padding: 14px 0; }
  .showcase { grid-template-rows: 1fr auto; }
  .hero-copy { padding: 24px 24px 24px 0; }
  .hero-copy h1 { font-size: clamp(48px, min(6.3vw, 8.8svh), 92px); margin: 20px 0; }
  .hero-copy .lede { font-size: clamp(17px, 1.5vw, 21px); margin-bottom: 24px; }
  .hero-art { min-height: 0; padding: 14px 0 14px 24px; }
  .phone { height: 620px; width: 318px; }
  .app-back { margin: 10px 0 12px; }
  .app-tabs { margin: 12px 0; }
  .demo-label { margin: 10px 0 8px; }
  .step-copy { margin-top: 6px; }
  .connection { flex: 1; min-height: 0; padding: 36px 0; gap: 50px; align-items: center; }
  .connection h1 { font-size: clamp(48px, min(5.4vw, 8svh), 80px); }
  .connect-steps { padding-top: 0; margin-bottom: 24px; }
  .connect-steps li { padding: 18px 0; }
}
@media (min-width: 801px) and (max-height: 760px) {
  .site-header { min-height: 60px; }
  .hero-art { padding-top: 8px; padding-bottom: 8px; }
  .page-footer { min-height: 46px; padding: 10px 0; }
}

@media (min-width: 801px) and (max-width: 1000px) {
  .step-title { font-size: 16px; }
  .step-copy { font-size: 11px; }
  .sequence li { padding-left: 10px; padding-right: 10px; }
  .connection { padding-top: 24px; padding-bottom: 24px; gap: 30px; }
  .connect-steps h3 { font-size: 20px; }
}
@media (max-width: 800px) {
  .app-back { margin: 12px 0; }
  .app-tabs { margin: 12px 0; }
}

/* Content sections below the hero: facts, product features, company line. */
.section-title { margin: 0 0 28px; font: 400 clamp(30px, 3vw, 42px)/1.15 var(--cf-font-display); letter-spacing: -.02em; }
.facts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.facts-grid article { padding: 4px 28px 8px; border-left: 1px solid var(--cf-line); }
.facts-grid article:nth-child(3n + 1) { padding-left: 0; border-left: 0; }
.facts-grid article:nth-child(n + 4) { margin-top: 36px; }
.facts-grid h3 { margin: 0 0 10px; font: 400 22px/1.25 var(--cf-font-display); }
.facts-grid p { margin: 0 0 12px; color: var(--cf-ink-soft); font-size: 15px; line-height: 1.65; }
.facts-grid a { font-size: 15px; font-weight: 500; }

/* Text pages: FAQ, support, company. Title column and content column share the header's left edge. */
.page-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: 80px; padding: 64px 0 80px; align-items: start; }
.page-grid > header h1 { margin: 22px 0 22px; font: 400 clamp(42px, 4.6vw, 68px)/1.08 var(--cf-font-display); letter-spacing: -.025em; text-wrap: balance; }
.page-grid > header .lede { margin: 0; color: var(--cf-ink-soft); font-size: 17px; line-height: 1.65; max-width: 440px; }
.page-body > :first-child { margin-top: 0; }
.info-block { padding: 26px 0 30px; border-top: 1px solid var(--cf-line); }
.info-block:first-child { border-top: 0; padding-top: 0; }
.info-block h2 { margin: 0 0 14px; font: 400 26px/1.25 var(--cf-font-display); }
.info-block p, .plain-list { color: var(--cf-ink-soft); font-size: 16px; line-height: 1.7; margin: 0 0 12px; }
.plain-list { padding-left: 20px; }
.plain-list li + li { margin-top: 6px; }
.plain-list strong { color: var(--cf-ink); font-weight: 600; }
.contact-list { margin: 0; display: grid; gap: 12px; }
.contact-list > div { display: grid; grid-template-columns: 190px 1fr; gap: 16px; }
.contact-list dt { color: var(--cf-ink-soft); font-size: 14px; padding-top: 1px; }
.contact-list dd { margin: 0; font-size: 16px; line-height: 1.55; overflow-wrap: anywhere; }
.draft-tag { display: inline-block; vertical-align: middle; margin-left: 8px; padding: 2px 10px; border-radius: 100px; background: var(--cf-amber); color: var(--cf-on-amber); font: 500 13px/1.6 var(--cf-font-body); }
.faq-list details { border-top: 1px solid var(--cf-line); padding: 16px 0; }
.faq-list details:first-child { border-top: 0; padding-top: 0; }
.faq-list summary { cursor: pointer; font-size: 18px; font-weight: 500; min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 16px; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ""; flex: 0 0 auto; width: 9px; height: 9px; margin-right: 4px; border: solid var(--cf-ink-soft); border-width: 0 2px 2px 0; transform: rotate(45deg) translateY(-3px); }
.faq-list details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq-list details p { color: var(--cf-ink-soft); line-height: 1.7; margin: 8px 0 0; }

/* Footer: identity, navigation and seller details (ЗУ «Про електронну комерцію», ст. 7) on every page. */
.page-footer { display: block; padding: 40px 0 28px; font-size: 13px; line-height: 1.6; }
.footer-main { display: grid; grid-template-columns: 1.1fr .8fr 1.4fr; gap: 40px; }
.footer-id p + p { margin-top: 8px; }
.footer-links { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.footer-links a { min-height: 32px; display: inline-flex; align-items: center; text-decoration: none; color: var(--cf-ink); }
.footer-links a:hover { text-decoration: underline; }
.footer-req { font-style: normal; display: flex; flex-direction: column; gap: 4px; }
.footer-req strong { color: var(--cf-ink); font-weight: 600; }
.footer-req a { color: var(--cf-ink); }
.footer-fine { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--cf-line); }

@media (max-width: 1000px) {
  .facts-grid { grid-template-columns: 1fr 1fr; }
  .facts-grid article, .facts-grid article:nth-child(3n + 1) { padding: 0 24px 0 0; border-left: 0; margin-top: 0; }
  .facts-grid article:nth-child(n + 4) { margin-top: 0; }
  .facts-grid { gap: 32px 0; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-req { grid-column: 1 / -1; }
}
@media (max-width: 800px) {
  .page-grid { grid-template-columns: 1fr; gap: 36px; padding: 40px 0 56px; }
  .contact-list > div { grid-template-columns: 1fr; gap: 2px; }
}
@media (max-width: 700px) {
  .site-nav { gap: 2px 13px; flex-wrap: wrap; }
  .site-nav a { min-height: 40px; }
  .theme-control select { font-size: 16px; min-height: 44px; width: 116px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .text-link { justify-content: center; }
}
@media (max-width: 560px) {
  .facts-grid { grid-template-columns: 1fr; }
  .facts-grid article { padding-right: 0; }
  .footer-main { grid-template-columns: 1fr; gap: 28px; }
}
@media (forced-colors: active) {
  .step-link[aria-current="step"] { outline: 2px solid Highlight; outline-offset: 2px; }
}
@media (max-width: 700px) {
  .page-footer { font-size: 13px; }
  .page-footer p:last-child { max-width: none; text-align: left; }
}
/* Four navigation items no longer fit beside the brand below ~900px: move them to their own row. */
.site-nav a { white-space: nowrap; }
@media (max-width: 900px) {
  .site-header { flex-wrap: wrap; padding: 18px 0 8px; gap: 8px 16px; }
  .site-nav { order: 3; width: 100%; margin: 0; gap: 2px 20px; flex-wrap: wrap; }
  .theme-control { margin-left: auto; }
}

/* Home sections after the hero. */
.band { border-top: 1px solid var(--cf-line); padding: 56px 0 60px; }
.band .section-title { margin-bottom: 14px; }
.section-lede, .band-text { margin: 0 0 14px; color: var(--cf-ink-soft); font-size: 17px; line-height: 1.65; max-width: 640px; }
.band .facts-grid { margin-top: 28px; }
.band .sequence { margin-top: 30px; }
.band-note { margin: 32px 0 0; color: var(--cf-ink-soft); font-size: 15px; line-height: 1.65; max-width: 760px; }
.band-note a, .band-text a { color: var(--cf-ink); font-weight: 500; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: 80px; align-items: start; }
.beta-steps { margin: 0 0 28px; padding: 0; list-style: none; counter-reset: beta; }
.beta-steps li { counter-increment: beta; position: relative; padding: 16px 0 16px 44px; border-top: 1px solid var(--cf-line); color: var(--cf-ink-soft); line-height: 1.6; }
.beta-steps li:first-child { border-top: 0; padding-top: 0; }
.beta-steps li::before { content: "0" counter(beta); position: absolute; left: 0; color: var(--cf-terra); font-variant-numeric: lining-nums tabular-nums; }
.beta-steps strong { color: var(--cf-ink); font-weight: 600; }
.split .faq-list { border-top: 0; }

/* Header call to action. */
.header-cta { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 16px; border-radius: 6px; background: var(--cf-accent); color: var(--cf-on-accent); text-decoration: none; font-size: 14px; font-weight: 500; white-space: nowrap; }
.header-cta:hover { background: var(--cf-accent-hover); }

/* Demo screens. */
.chip-row { display: flex; gap: 6px; margin: 4px 0 12px; }
.chip-row span { flex: 1; text-align: center; padding: 8px 4px; border-radius: 8px; background: var(--cf-surface-muted); font-size: 12px; }
.check-rows { list-style: none; margin: 4px 0 0; padding: 0; }
.check-rows li { padding: 10px 0; border-bottom: 1px solid var(--cf-line); font-size: 13px; }
.sent-row { display: flex; align-items: center; gap: 8px; margin: 2px 0 14px; font-size: 13px; color: var(--cf-ink-soft); }
.sent-row svg { width: 18px; height: 18px; color: var(--cf-accent); }
.sent-row strong { color: var(--cf-ink); }
.demo-label { margin-top: 14px; }

/* Lead-in definitions on «КЕП і дані». */
.lead-list { margin: 0; }
.lead-list > div { padding: 12px 0; border-top: 1px solid var(--cf-line); }
.lead-list > div:first-child { border-top: 0; padding-top: 0; }
.lead-list dt { display: inline; font-weight: 600; }
.lead-list dd { display: inline; margin: 0 0 0 4px; color: var(--cf-ink-soft); line-height: 1.7; }
.page-body .info-block > p { color: var(--cf-ink-soft); }
.faq-list h2 { margin-bottom: 8px; }

@media (max-width: 1100px) {
  .sequence { grid-template-columns: repeat(3, 1fr); gap: 26px 0; }
  .sequence li:nth-child(3) { border-right: 0; padding-right: 0; }
  .sequence li:nth-child(4) { padding-left: 0; }
}
@media (max-width: 900px) {
  .header-cta { margin-left: auto; }
  .header-cta + .theme-control { margin-left: 0; }
}
@media (max-width: 800px) {
  .split { grid-template-columns: 1fr; gap: 8px; }
  .band { padding: 44px 0 48px; }
  .sequence li:nth-child(3) { border-right: 1px solid var(--cf-line); padding-right: 20px; }
  .sequence li:nth-child(4) { padding-left: 20px; }
}
@media (max-width: 560px) {
  .header-cta { display: none; }
  .header-cta + .theme-control { margin-left: auto; }
  .sequence { grid-template-columns: 1fr; gap: 0; }
  .sequence li, .sequence li:nth-child(n) { border-right: 0; padding: 14px 0; border-top: 1px solid var(--cf-line); }
  .sequence li:first-child { border-top: 0; }
}
/* Two-column variant for the four «when it helps» scenes. */
.facts-grid.two { grid-template-columns: repeat(2, 1fr); }
.facts-grid.two article:nth-child(odd) { padding-left: 0; border-left: 0; }
.facts-grid.two article:nth-child(even) { padding-left: 28px; border-left: 1px solid var(--cf-line); }
.facts-grid.two article:nth-child(n + 3) { margin-top: 36px; }
@media (max-width: 560px) {
  .facts-grid.two { grid-template-columns: 1fr; }
  .facts-grid.two article:nth-child(n) { padding-left: 0; border-left: 0; margin-top: 0; }
}

/* Demo motion, stage 1: the steps play by themselves (demo.js). Rhythm and curves come from the mark's
   storyboard; the reduced-motion rule in rhythm.components.css removes every animation below. */
.hero-art > .demo-label { order: 1; }
.demo-autoplay { position: relative; width: 24px; height: 24px; margin-right: 6px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--cf-ink); }
.demo-autoplay::before { content: ""; position: absolute; inset: -10px; }
.demo-label .demo-autoplay svg { display: block; width: 24px; height: 24px; }
.demo-autoplay:hover { color: var(--cf-accent); }
.autoplay-track { stroke: var(--cf-line); }
.autoplay-progress { stroke: var(--cf-terra); stroke-linecap: butt; stroke-dasharray: 1; stroke-dashoffset: 1; }
/* A step lasts 3.6 s (the first 4.8 s, the outcome 6 s): the ring, then demo.js's 260 ms press. */
.autoplay-progress.is-running { animation: cf-progress 3.34s linear both; }
.demo-autoplay[data-hold="first"] .autoplay-progress { animation-duration: 4.54s; }
.demo-autoplay[data-hold="final"] .autoplay-progress { animation-duration: 5.74s; }
.demo-autoplay[data-state="paused"] .autoplay-progress { animation-play-state: paused; }
.demo-autoplay[data-state="stopped"] .autoplay-progress { animation: none; }
.autoplay-play { display: none; fill: currentColor; }
.demo-autoplay[data-state="stopped"] .autoplay-pause { display: none; }
.demo-autoplay[data-state="stopped"] .autoplay-play { display: inline; }
@keyframes cf-progress { to { stroke-dashoffset: 0; } }

/* A step leaves as a fading copy and the next one slides in, one element after another. */
.demo-panels { position: relative; overflow-x: hidden; }
.demo-ghost { position: absolute; right: 0; pointer-events: none; animation: cf-leave 220ms var(--cf-ease-exit) both; }
[data-panel].is-entering > * { animation: cf-enter 640ms var(--cf-ease-enter) 100ms both; }
[data-panel].is-entering > :nth-child(2) { animation-delay: calc(100ms + var(--cf-stagger)); }
[data-panel].is-entering > :nth-child(3) { animation-delay: calc(100ms + 2 * var(--cf-stagger)); }
[data-panel].is-entering > :nth-child(4) { animation-delay: calc(100ms + 3 * var(--cf-stagger)); }
[data-panel].is-entering > .check-rows { animation: none; }
[data-panel].is-entering .check-rows li { animation: cf-enter 640ms var(--cf-ease-enter) calc(100ms + var(--cf-stagger)) both; }
[data-panel].is-entering .check-rows li:nth-child(2) { animation-delay: calc(100ms + 2 * var(--cf-stagger)); }
[data-panel].is-entering .check-rows li:nth-child(3) { animation-delay: calc(100ms + 3 * var(--cf-stagger)); }
[data-panel].is-entering .doc-row > svg, [data-panel].is-entering .sent-row > svg { stroke-dasharray: 21; animation: cf-draw 560ms var(--cf-ease-settle) 520ms both; }
[data-panel].is-entering > .signature-symbol { animation: cf-enter 640ms var(--cf-ease-enter) 100ms both, cf-halo 1400ms var(--cf-ease-settle) 420ms both; }
/* The outcome: the sent check draws, the status settles at 700 ms, then customs answers. */
[data-panel].is-entering .sent-row > svg { animation-delay: 200ms; }
[data-panel="answer"].is-entering > .message { animation-delay: 1000ms; }
[data-panel="answer"].is-entering > .panel-copy { animation-delay: 1120ms; }
@keyframes cf-leave { to { opacity: 0; transform: translateX(-16px); } }
@keyframes cf-enter { from { opacity: 0; transform: translateX(18px); } }
@keyframes cf-draw { from { stroke-dashoffset: 21; } to { stroke-dashoffset: 0; } }
@keyframes cf-halo {
  from { box-shadow: 0 0 0 0 color-mix(in srgb, var(--cf-accent) 45%, transparent); }
  to { box-shadow: 0 0 0 16px color-mix(in srgb, var(--cf-accent) 0%, transparent); }
}

/* Status: the app shows «Очікує митницю» in its muted tone. The old pill rises away, the new one rises in. */
.case-meta { position: relative; }
.status[data-tone="muted"] { background: var(--cf-surface-muted); color: var(--cf-ink-soft); }
.status.is-changing { animation: cf-status-in 420ms var(--cf-ease-settle) both; }
.status-ghost { position: absolute; margin: 0; pointer-events: none; animation: cf-status-out 300ms var(--cf-ease-exit) both; }
.phone[data-step="answer"] .status.is-changing, .phone[data-step="answer"] .status-ghost { animation-delay: 700ms; }
@keyframes cf-status-in { from { opacity: 0; transform: translateY(6px); } }
@keyframes cf-status-out { to { opacity: 0; transform: translateY(-6px); } }

/* The button is pressed just before the autoplay turns the page; a new label fades in. */
/* Only the press eases its colour, so a theme switch never shows a stale button. */
.phone .button { transition: transform 160ms ease; }
.phone .button.is-autopress { background: var(--cf-accent-hover); transform: scale(.985); transition: background-color 160ms ease, transform 160ms ease; }
.phone .button > span.is-new { animation: cf-fade 260ms ease-out both; }
@keyframes cf-fade { from { opacity: 0; } }

/* «Як це працює» follows the phone: the current step's stroke grows from the left. */
.js .step-link[aria-current="step"]::before { transform-origin: left; animation: cf-dash 520ms var(--cf-ease-enter) both; }
.js .step-number { transition: color 320ms ease; }
@keyframes cf-dash { from { transform: scaleX(0); } }
