/* Layout: microfiber-yellow hero with a full-size floor mat you wipe clean; quiet pale chapters;
   one price board that turns yellow when a package is picked. Single (light) theme by design. */
@font-face { font-family: Archivo; src: url(assets/fonts/archivo-latin-ext.woff2) format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C4; }
@font-face { font-family: Archivo; src: url(assets/fonts/archivo-latin.woff2) format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Instrument Sans"; src: url(assets/fonts/instrumentsans-latin-ext.woff2) format("woff2"); font-weight: 400 700; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C4; }
@font-face { font-family: "Instrument Sans"; src: url(assets/fonts/instrumentsans-latin.woff2) format("woff2"); font-weight: 400 700; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }

/* Cyrillic companions for the Russian version; downloaded only when Cyrillic text is shown. */
@font-face { font-family: "Roboto Flex"; src: url(assets/fonts/robotoflex-cyrillic.woff2) format("woff2"); font-weight: 700 800; font-stretch: 100% 125%; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Golos Text"; src: url(assets/fonts/golostext-cyrillic.woff2) format("woff2"); font-weight: 400 700; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

:root {
  --cloth: #ffc933;      /* microfiber yellow */
  --cloth-soft: #ffe392;
  --ink: #122a30;
  --ink-2: #48605f;
  --paper: #f2f6f5;
  --white: #ffffff;
  --line: #c9d5d3;
  --edge: #7d9290;
  --bad: #a3221b;
  --display: Archivo, "Roboto Flex", "Arial Black", Arial, sans-serif;
  --text: "Instrument Sans", "Golos Text", system-ui, "Segoe UI", sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 3.5rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.55 var(--text); }
[hidden] { display: none !important; }
.i18n-pending body { visibility: hidden; }
h1, h2, h3, p, ul, ol, dl, dd, figure, fieldset { margin: 0; padding: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
h1, h2, h3, .brand, .price { font-family: var(--display); font-stretch: 112%; font-weight: 800; letter-spacing: -0.02em; line-height: 1.08; text-wrap: balance; }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h3 { font-size: 1.35rem; }
.wrap { max-width: 1160px; margin-inline: auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
h2:focus, h3:focus { outline: none; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 30; background: var(--white); padding: .5rem 1rem; }

/* bar */
.bar { position: sticky; top: 0; z-index: 20; background: var(--ink); color: var(--white); }
.bar-in { display: flex; align-items: center; justify-content: space-between; gap: .25rem 1.5rem; min-height: 3.5rem; }
.bar a { color: inherit; text-decoration: none; }
.bar a:focus-visible { outline-color: var(--cloth); }
.brand { font-size: 1.4rem; white-space: nowrap; }
nav { display: flex; margin-left: auto; gap: 1.75rem; font-weight: 500; font-size: .98rem; }
nav a { padding-block: .95rem .8rem; border-bottom: 3px solid transparent; white-space: nowrap; }
nav a:hover, nav a[aria-current] { border-bottom-color: var(--cloth); }

.lang { display: flex; }
.lang button { min-width: 2.6rem; min-height: 2.5rem; padding: 0 .5rem; font: 600 .92rem var(--text); color: var(--white); background: none; border: 0; border-radius: 6px; cursor: pointer; }
.lang button:hover { text-decoration: underline; text-underline-offset: .3em; }
.lang button[aria-pressed="true"] { background: var(--cloth); color: var(--ink); text-decoration: none; }
.lang button:focus-visible { outline-color: var(--cloth); }

/* buttons */
.btn { display: inline-block; font: 600 1.0625rem/1.2 var(--text); color: var(--white); background: var(--ink); border: 2px solid var(--ink); border-radius: 6px; padding: .95rem 1.5rem; text-decoration: none; text-align: center; cursor: pointer; transition: background .15s, color .15s; }
.btn:hover { background: var(--white); color: var(--ink); }
.btn:disabled { opacity: .6; cursor: progress; }

/* hero */
.hero { background: var(--cloth); }
.hero-in { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: clamp(2rem, 5vw, 4.5rem); padding-block: clamp(2.5rem, 5vw, 4.5rem); }
.hero-text { display: grid; gap: 1.35rem; justify-items: start; min-width: 0; }
.cities { font-weight: 600; }
h1 { font-size: clamp(2rem, 4.5vw, 3.6rem); }
:lang(ru) h1 { font-size: clamp(1.65rem, 3.9vw, 3.1rem); } /* longer words */
.lead { font-size: 1.2rem; line-height: 1.5; max-width: 36ch; }
.mat { min-width: 0; width: 100%; max-width: 480px; justify-self: end; }
.mat-stage { --split: 56%; position: relative; aspect-ratio: 1; max-width: 100%; }
.mat canvas { display: block; width: 100%; height: 100%; }
.mat-line { position: absolute; top: 0; bottom: 0; left: var(--split); width: 4px; margin-left: -2px; background: var(--white); pointer-events: none; }
.mat-line::after { content: ""; position: absolute; top: 50%; left: 50%; width: 52px; height: 52px; margin: -26px; border-radius: 50%; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 52 52' fill='none' stroke='%23122a30' stroke-width='3'%3E%3Cpath d='M20 18l-8 8 8 8M32 18l8 8-8 8'/%3E%3C/svg%3E"); }
#mat-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; touch-action: pan-y; }
.mat-stage:has(:focus-visible) { outline: 3px solid var(--ink); outline-offset: 4px; }
figcaption { display: flex; justify-content: space-between; gap: 1rem; padding-top: .75rem; font-weight: 600; }
.hint { font-weight: 400; font-size: .92rem; text-align: center; }

/* chapters */
.block { padding-block: clamp(3.25rem, 7vw, 5.5rem); }
.block h2 { margin-bottom: 2rem; }
.work { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(2rem, 5vw, 4.5rem); }
.work > div { border-top: 1px solid var(--line); padding-block: 1.35rem 1.6rem; }
.work dt { font: 700 1.35rem/1.2 var(--display); font-stretch: 105%; letter-spacing: -.01em; margin-bottom: .35rem; }
.work dd { color: var(--ink-2); max-width: 44ch; }
.promise { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem 2.5rem; background: var(--cloth-soft); padding: 1.6rem 1.75rem; margin-top: 1rem; }
.promise b { display: block; }

.how { background: var(--white); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem 2.5rem; counter-reset: s; }
.steps li { counter-increment: s; }
.steps li::before { content: counter(s); display: block; font: 800 3.4rem/1 var(--display); font-stretch: 112%; margin-bottom: .85rem; padding-bottom: .75rem; border-bottom: 6px solid var(--cloth); }
.steps p { color: var(--ink-2); margin-top: .35rem; }

/* price board */
.plans { transition: background .25s; }
.plans.is-launch { background: var(--cloth); }
.board { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--white); border: 2px solid var(--ink); }
.plan { position: relative; display: flex; flex-direction: column; gap: 1.1rem; padding: 1.75rem; transition: background .15s; min-width: 0; }
.plan + .plan { border-left: 2px solid var(--ink); }
.plan:hover, .plan:focus-within { background: var(--cloth); }
.price { font-size: clamp(2rem, 3.6vw, 2.75rem); font-variant-numeric: tabular-nums; white-space: nowrap; }
.price b { font-weight: inherit; }
.price span { font-size: .42em; letter-spacing: 0; }
.plan ul { display: grid; gap: .5rem; margin-bottom: auto; padding-bottom: .75rem; }
.plan li { padding-left: 1.5rem; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23122a30' stroke-width='2.4'%3E%3Cpath d='M2 8.5l4 4 8-9'/%3E%3C/svg%3E") 0 .42em / .9rem no-repeat; }
.plan .btn::after { content: ""; position: absolute; inset: 0; } /* whole column is clickable */
.note { margin-top: 1.25rem; color: var(--ink-2); }

/* pre-launch view */
.launch { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.launch-text { display: grid; gap: 1.1rem; justify-items: start; min-width: 0; }
.launch-text h2 { margin: 0; font-size: clamp(1.75rem, 3.3vw, 2.5rem); }
.picked { border: 2px solid var(--ink); padding: .4rem .85rem; }
.back { font: 600 1rem var(--text); color: var(--ink); background: none; border: 0; padding: .5rem 0; text-decoration: underline; text-underline-offset: .25em; cursor: pointer; }
form, .thanks { background: var(--white); padding: clamp(1.35rem, 3vw, 2.25rem); display: grid; gap: 1.4rem; min-width: 0; }
.thanks { gap: .6rem; }
.field { display: grid; gap: .45rem; min-width: 0; align-content: start; }
label, legend { font-weight: 600; padding: 0; }
legend { margin-bottom: .45rem; }
input[type="text"], select { width: 100%; min-height: 3rem; font: 400 1.0625rem var(--text); color: var(--ink); background: var(--white); border: 1.5px solid var(--edge); border-radius: 6px; padding: .6rem .8rem; }
input::placeholder { color: #667a79; }
input[aria-invalid="true"] { border-color: var(--bad); }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem 1rem; align-items: end; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chips label { position: relative; font-weight: 500; }
.chips input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.chips span { display: block; border: 1.5px solid var(--edge); border-radius: 6px; padding: .6rem .9rem; }
.chips input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--white); }
.chips input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 3px; }
.opt, .fine { font-size: .95rem; color: var(--ink-2); }
.opt { border-top: 1px solid var(--line); padding-top: 1.2rem; }
.err { color: var(--bad); font-size: .95rem; font-weight: 500; }
.trap { position: absolute; left: -9999px; }

footer { background: var(--ink); color: var(--white); padding-block: 1.75rem; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem 2rem; }

@media (max-width: 860px) {
  html { scroll-padding-top: 5.9rem; }
  .bar-in { flex-wrap: wrap; padding-top: .5rem; gap: 0 1rem; }
  nav { order: 3; width: 100%; margin: 0; }
  nav a { padding-block: .6rem .5rem; }
  .hero-in, .launch { grid-template-columns: minmax(0, 1fr); }
  .mat { justify-self: center; }
  .board, .promise, .steps { grid-template-columns: minmax(0, 1fr); }
  .plan + .plan { border-left: 0; border-top: 2px solid var(--ink); }
  .steps { gap: 1.5rem; }
  .steps li { display: grid; grid-template-columns: 3.25rem 1fr; column-gap: 1rem; }
  .steps li::before { grid-row: span 2; font-size: 2.4rem; margin: 0; align-self: start; padding-bottom: .4rem; }
}
@media (max-width: 620px) {
  nav { justify-content: space-between; gap: .75rem; }
  .work, .pair { grid-template-columns: minmax(0, 1fr); }
  .hero-text .btn, .plan .btn, form .btn { width: 100%; }
}
@media (max-width: 375px) {
  .brand { font-size: 1.15rem; }
  .bar-in { gap: 0 .5rem; }
  .lang button { min-width: 2.3rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
