/* Сайт Ортуса. Цвета и шрифты — из @ortus/tokens продукта (frontend/packages/tokens). */
@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-display: swap;
  font-weight: 400 900;
  src: url(/assets/fonts/golos-text-cyrillic-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-display: swap;
  font-weight: 400 900;
  src: url(/assets/fonts/golos-text-latin-wght-normal.woff2) format("woff2-variations");
  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+20BD, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(/assets/fonts/ibm-plex-mono-cyrillic-500-normal.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(/assets/fonts/ibm-plex-mono-latin-500-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+2000-206F;
}

:root {
  --accent: #1f6b52;
  --accent-hover: #185a44;
  --accent-soft: #e3efe7;
  --accent-tint: #f1f7f3;
  --chrome: #22302c;
  --chrome-2: #2c3c37;
  --text: #1c2a26;
  --muted: #5c6964;
  --bg: #e6e9e3;
  --surface: #f2f3ef;
  --card: #ffffff;
  --line: #dce2d9;
  --warn: #7a5214;
  --warn-soft: #f4ecdf;
  --on-dark: #e9eeeb;
  --on-dark-muted: #a9b6b1;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgb(28 42 38 / 6%), 0 8px 24px rgb(28 42 38 / 8%);
  --font: "Golos Text", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font: 400 16px/1.55 var(--font);
  color: var(--text);
  background: var(--surface);
  font-feature-settings: "tnum" 0;
}
img, svg { display: block; }
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { color: var(--accent-hover); }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -0.015em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -48px; z-index: 50; padding: 8px 14px; background: var(--card); border-radius: 8px; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }
@media (min-width: 768px) { .wrap { padding: 0 32px; } }

/* Кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 40px; padding: 0 16px; border-radius: 10px; border: 1px solid transparent;
  font: 600 15px/1 var(--font); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn--lg { min-height: 48px; padding: 0 22px; font-size: 16px; }
.btn--block { width: 100%; }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-hover); color: #fff; }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn--ghost:hover { background: var(--card); color: var(--text); border-color: #c9d1c6; }

/* Шапка */
.top { position: sticky; top: 0; z-index: 20; background: rgb(242 243 239 / 92%); backdrop-filter: saturate(1.2) blur(8px); border-bottom: 1px solid var(--line); }
.top__in { display: flex; align-items: center; gap: 24px; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 9px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 21px; letter-spacing: -0.02em; }
.logo:hover { color: var(--text); }
.logo__mark { width: 28px; height: 28px; fill: var(--accent); }
.logo--small { font-size: 18px; }
.logo--small .logo__mark { width: 24px; height: 24px; }
.nav { display: none; gap: 4px; margin-left: 8px; }
.nav a { padding: 8px 12px; border-radius: 8px; color: var(--muted); text-decoration: none; font-weight: 500; font-size: 15px; }
.nav a:hover { color: var(--text); background: var(--bg); }
.top__cta { display: flex; gap: 8px; margin-left: auto; }
@media (min-width: 1024px) { .nav { display: flex; } }
@media (max-width: 420px) { .top__cta .btn--ghost { display: none; } }

/* Общие секции */
.section { padding: 72px 0; }
.section--alt { background: var(--bg); }
.section--dark { background: var(--chrome); color: var(--on-dark); }
.section__head { max-width: 760px; margin-bottom: 36px; }
.section__head h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 700; }
.section__lead { margin-top: 14px; color: var(--muted); font-size: 18px; }
.eyebrow { margin-bottom: 12px; color: var(--accent); font-weight: 600; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; }
.eyebrow--light { color: #8fd0b5; }
@media (min-width: 768px) { .section { padding: 96px 0; } }

.chip {
  display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent); font: 600 12px/1.4 var(--font); font-style: normal; white-space: nowrap;
}
.badge { flex: none; white-space: nowrap; display: inline-flex; padding: 4px 10px; border-radius: 999px; font: 600 12px/1.3 var(--font); }
.badge--ok { background: var(--accent-soft); color: var(--accent); }
.pilot { display: inline-block; margin-left: 4px; padding: 1px 7px; border-radius: 999px; background: var(--warn-soft); color: var(--warn); font: 600 11px/1.5 var(--font); font-style: normal; vertical-align: 2px; }

/* Первый экран */
.hero { padding: 48px 0 64px; }
.hero__in { display: grid; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(34px, 5.2vw, 58px); font-weight: 750; letter-spacing: -0.025em; max-width: 13em; }
.lead { margin-top: 20px; font-size: 18px; color: var(--muted); max-width: 36em; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 28px; color: var(--muted); font-size: 15px; }
.facts li { position: relative; padding-left: 22px; }
.facts li::before { content: ""; position: absolute; left: 0; top: 6px; width: 12px; height: 7px; border: solid var(--accent); border-width: 0 0 2.5px 2.5px; transform: rotate(-45deg); }
@media (min-width: 1024px) {
  .hero { padding: 72px 0 96px; }
  .hero__in { grid-template-columns: 1.05fr 1fr; gap: 56px; }
}

/* Карточка «Один рейс» — в стиле интерфейса Ортуса */
.day { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; }
.day__chrome { display: flex; align-items: center; gap: 14px; height: 44px; padding: 0 16px; background: var(--chrome); color: var(--on-dark); font-size: 13px; }
.day__logo { font-weight: 700; font-size: 15px; }
.day__crumb { color: var(--on-dark-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.day__avatar { margin-left: auto; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--chrome-2); font-size: 11px; font-weight: 600; }
.day__body { padding: 18px 18px 14px; }
.day__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.day__kicker { font-weight: 700; font-size: 17px; }
.day__car { margin-top: 4px; color: var(--muted); font-size: 14px; }
.plate { display: inline-block; margin-right: 6px; padding: 1px 7px; border: 1.5px solid var(--text); border-radius: 5px; color: var(--text); font: 500 13px/1.4 var(--mono); letter-spacing: .02em; }
.feed { position: relative; }
.feed::before { content: ""; position: absolute; left: 47px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.feed__item {
  position: relative; display: grid; grid-template-columns: 40px 1fr auto; gap: 18px; align-items: start;
  padding: 9px 10px 9px 0; border-radius: 10px; transition: opacity .4s, background-color .4s, transform .4s;
}
.feed__item::before { content: ""; position: absolute; left: 43px; top: 15px; width: 10px; height: 10px; border-radius: 50%; background: var(--card); border: 2px solid #b9c3bd; }
.feed__item time { color: var(--muted); font: 500 13px/1.6 var(--mono); }
.feed__item div { display: grid; gap: 1px; padding-left: 4px; min-width: 0; }
.feed__item b { font-weight: 600; font-size: 14.5px; line-height: 1.35; }
.feed__item span { color: var(--muted); font-size: 13px; line-height: 1.4; }
.feed__item .chip { margin-top: 1px; }
.js .feed__item { opacity: .32; }
.js .feed__item.is-on { opacity: 1; }
.js .feed__item.is-now { background: var(--accent-tint); }
.js .feed__item.is-on::before { border-color: var(--accent); background: var(--accent); }
.day__foot { margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.day__foot b { color: var(--text); }
@media (max-width: 560px) {
  .feed__item { grid-template-columns: 40px 1fr; }
  .feed__item .chip { grid-column: 2; justify-self: start; margin-left: 4px; }
}
@media (prefers-reduced-motion: reduce) { .feed__item { transition: none; } }

/* Боли */
.pains__tabs, .calc__tabs { display: flex; gap: 8px; margin-bottom: 20px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.pains__tabs button, .calc__tabs button {
  flex: none; min-height: 40px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--card);
  color: var(--text); font: 500 15px/1 var(--font); cursor: pointer;
}
.pains__tabs button:hover, .calc__tabs button:hover { border-color: #c2ccbf; }
.pains__tabs button[aria-selected="true"], .calc__tabs button[aria-selected="true"] { background: var(--chrome); border-color: var(--chrome); color: #fff; }
.no-js .pains__tabs, .no-js .calc__tabs { display: none; }
@media (min-width: 900px) { .pains__tabs { flex-wrap: wrap; overflow: visible; } }
.pain { display: grid; gap: 16px; }
.pain + .pain { margin-top: 16px; }
.js .pain + .pain { margin-top: 0; }
.js [role="tabpanel"][hidden] { display: none; }
.pain__was, .pain__now { border-radius: var(--radius); padding: 24px; }
.pain__was { background: var(--bg); }
.pain__was h3, .pain__now h3 { margin-bottom: 12px; font-size: 14px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.pain__now h3 { color: var(--accent); }
.pain__was p { font-size: 19px; line-height: 1.5; }
.pain__now { background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.ticks { display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 28px; }
.ticks li::before { content: ""; position: absolute; left: 3px; top: 7px; width: 12px; height: 7px; border: solid var(--accent); border-width: 0 0 2.5px 2.5px; transform: rotate(-45deg); }
.pain__mods { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 18px 0; color: var(--muted); font-size: 14px; }
@media (min-width: 900px) {
  .pain { grid-template-columns: 5fr 7fr; align-items: stretch; }
  .pain__was { padding: 32px; }
  .pain__now { padding: 32px; }
}

/* Конструктор */
.kit__presets { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 20px; }
.kit__label { color: var(--muted); font-size: 15px; margin-right: 4px; }
.kit__presets button { min-height: 38px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--text); font: 500 14.5px/1 var(--font); cursor: pointer; }
.kit__presets button:hover { border-color: var(--accent); color: var(--accent); }
.kit__presets button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.kit__body { display: grid; gap: 24px; align-items: start; }
.kit__groups { display: grid; gap: 22px; }
.kit__group { margin: 0; padding: 0; border: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.kit__group legend { grid-column: 1 / -1; margin-bottom: 10px; padding: 0; font-weight: 600; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.mod { position: relative; display: flex; gap: 12px; padding: 14px 14px 14px 12px; background: var(--card); border: 1.5px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; transition: border-color .15s, background-color .15s; }
.mod:hover { border-color: #c2ccbf; }
.mod input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent); }
.mod span { display: grid; gap: 3px; }
.mod b { font-weight: 600; font-size: 15px; line-height: 1.3; }
.mod small { color: var(--muted); font-size: 13.5px; line-height: 1.4; }
.mod:has(input:checked) { border-color: var(--accent); background: var(--accent-tint); }
.kit__sum { padding: 22px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.kit__sumtitle { font-weight: 700; font-size: 19px; }
.kit__count { margin-top: 4px; color: var(--muted); }
.kit__count b { color: var(--text); font-size: 22px; }
.kit__chosen { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0; min-height: 8px; }
.kit__always { padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.kit__always b { color: var(--text); font-weight: 600; }
.kit__notes { display: grid; gap: 6px; margin: 14px 0 18px; color: var(--muted); font-size: 14px; }
.kit__notes li { position: relative; padding-left: 16px; }
.kit__notes li::before { content: ""; position: absolute; left: 2px; top: 9px; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.no-js .kit__sum { display: none; }
@media (min-width: 1100px) {
  .kit__body { grid-template-columns: 1fr 340px; }
  .kit__sum { position: sticky; top: 84px; }
}

/* Расчёт */
.calc__panel { display: grid; gap: 20px; }
.calc__panel + .calc__panel { margin-top: 20px; }
.js .calc__panel + .calc__panel { margin-top: 0; }
.calc__inputs { display: grid; gap: 22px; padding: 26px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.calc__inputs label { display: grid; grid-template-columns: 1fr auto; gap: 10px 16px; align-items: center; font-weight: 500; }
.calc__inputs output { font: 600 17px/1 var(--font); font-variant-numeric: tabular-nums; color: var(--text); }
.calc__inputs input[type="range"] { grid-column: 1 / -1; width: 100%; accent-color: var(--accent); height: 28px; margin: 0; }
.calc__result { padding: 28px; border-radius: var(--radius); background: var(--chrome); color: var(--on-dark); display: grid; align-content: start; gap: 6px; }
.calc__result > p:first-child { color: var(--on-dark-muted); font-weight: 500; }
.calc__big { font-size: clamp(38px, 5vw, 54px); font-weight: 750; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1.1; color: #fff; }
.calc__big small { font-size: 18px; font-weight: 500; color: var(--on-dark-muted); letter-spacing: 0; }
.calc__year { font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; }
.calc__note { margin-top: 14px; padding-top: 14px; border-top: 1px solid rgb(255 255 255 / 12%); color: var(--on-dark-muted); font-size: 15px; }
@media (min-width: 900px) { .calc__panel { grid-template-columns: 7fr 5fr; } }

/* Безопасность */
.section--dark .section__head h2 { color: #fff; }
.trust { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.trust li { padding: 24px; border-radius: var(--radius); background: var(--chrome-2); border: 1px solid rgb(255 255 255 / 7%); }
.trust h3 { margin-bottom: 8px; font-size: 18px; font-weight: 650; color: #fff; }
.trust p { color: var(--on-dark-muted); font-size: 15px; }

/* Сделано */
.two { display: grid; gap: 8px; }
@media (min-width: 1024px) {
  .two { grid-template-columns: 4fr 7fr; gap: 56px; align-items: start; }
  .section__head--side { position: sticky; top: 96px; }
}
.log { display: grid; }
.log li { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); }
.log li:last-child { border-bottom: 1px solid var(--line); }
.log time { color: var(--muted); font-size: 15px; font-variant-numeric: tabular-nums; }
.log div { display: grid; gap: 3px; }
.log b { font-weight: 600; font-size: 17px; }
.log span { color: var(--muted); }
@media (max-width: 520px) { .log li { grid-template-columns: 1fr; gap: 4px; } }

/* Шаги */
.steps { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); counter-reset: s; }
.steps li { padding: 24px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.steps__n { display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 16px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 700; }
.steps h3 { margin-bottom: 8px; font-size: 18px; font-weight: 650; }
.steps p { color: var(--muted); font-size: 15px; }

/* Вопросы */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.faq summary { position: relative; padding: 18px 52px 18px 20px; font-weight: 600; font-size: 17px; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 22px; top: 24px; width: 9px; height: 9px; border: solid var(--muted); border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(-135deg); top: 28px; }
.faq details p { padding: 0 20px 20px; color: var(--muted); }

/* Заявка */
.section--cta { background: var(--chrome); color: var(--on-dark); }
.cta { display: grid; gap: 32px; align-items: start; }
.cta__text h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 700; color: #fff; }
.cta__text > p:last-child { margin-top: 16px; color: var(--on-dark-muted); font-size: 18px; }
.cta__text a { color: #8fd0b5; }
.cta__text a:hover { color: #b5e2cf; }
@media (min-width: 1024px) { .cta { grid-template-columns: 1fr 1fr; gap: 64px; } }
.form { display: grid; gap: 14px; padding: 26px; background: var(--card); color: var(--text); border-radius: 18px; box-shadow: var(--shadow); }
.form__row { display: grid; gap: 6px; }
.form__row label { font-weight: 500; font-size: 15px; }
.form__row label span { color: #a13a33; margin-left: 2px; }
.form input:not([type="checkbox"]), .form textarea {
  width: 100%; min-height: 44px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 10px;
  background: var(--card); color: var(--text); font: 400 16px/1.4 var(--font);
}
.form textarea { resize: vertical; min-height: 88px; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.form [aria-invalid="true"] { border-color: #a13a33 !important; }
.form__mods { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; color: var(--muted); font-size: 14px; }
.form__mods [data-form-mods-list] { display: contents; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.check input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form__status { min-height: 1.4em; font-size: 15px; }
.form__status.is-error { color: #a13a33; }
.form__status.is-ok { color: var(--accent); font-weight: 600; }
.form.is-sent > :not(.form__done) { display: none; }
.form__done { display: grid; gap: 8px; text-align: left; }
.form__done b { font-size: 20px; }
.form__done p { color: var(--muted); }
.form--off { gap: 8px; }
.form__offtitle { font-weight: 650; font-size: 19px; }

/* Подвал */
.foot { padding: 28px 0; background: var(--chrome); border-top: 1px solid rgb(255 255 255 / 8%); color: var(--on-dark-muted); font-size: 14px; }
.foot__in { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.foot .logo { color: #fff; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot a { color: var(--on-dark-muted); text-decoration: none; }
.foot a:hover { color: #fff; }
.foot p { margin-left: auto; }

/* Страница политики */
.doc h1 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 18px; }
.doc h2 { margin: 32px 0 10px; font-size: 21px; }
.doc p { color: #34433e; }
.doc p + p { margin-top: 10px; }
.doc__date { margin-top: 32px !important; color: var(--muted) !important; font-size: 14px; }
