/* «Статус рейса» — лендинг /srok-oplaty (ТЗ 11.3). Встроенных стилей нет (CSP). */
/* Стиль приложения «Статус рейса»: белый фон, чёрный текст, красный логотипа. Одна колонка, макеты экранов телефона рядом с текстом. */
:root {
  --bg: #ffffff;
  --ink: #111111;
  --muted: #5b5552;
  --line: #e6e1df;
  --soft: #f5f2f1;
  --red: #DA3B26;
  --red-dark: #b42318;
  --red-soft: #fff6f4;
  --font: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
  color-scheme: light;
}
/* обновлять жестом вниз здесь нечего — встроенное в браузер обновление выключено (решение владельца 19.10.2026) */
html, body { overscroll-behavior-y: none; }
* { box-sizing: border-box; }
body { background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.5; }
.wrap { max-width: 980px; margin: 0 auto; padding-inline: 20px; }
a { color: var(--ink); }
h1, h2, h3 { text-wrap: balance; margin: 0; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

/* Шапка */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 14px; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; text-decoration: none; }
.brand img { width: 36px; height: 36px; }
.topbtns { display: flex; gap: 8px; }

.btn { display: inline-flex; align-items: center; justify-content: center; height: 46px; padding: 0 18px; border-radius: 10px; font-size: 16px; font-weight: 600; text-decoration: none; border: 0; cursor: pointer; font-family: inherit; white-space: nowrap; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: #c23220; color: #fff; }
.btn-black { background: var(--ink); color: #fff; }
.btn-black:hover { background: #000; color: #fff; }
.btn-line { background: var(--bg); color: var(--ink); border: 1px solid #c9c9c9; }
.btn-sm { height: 38px; padding: 0 14px; font-size: 15px; }

/* Первый экран */
.hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 40px; align-items: center; padding-block: 48px 40px; }
.eyebrow { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.hero h1 { font-size: clamp(32px, 5.4vw, 54px); line-height: 1.04; letter-spacing: -0.02em; margin-top: 12px; }
.hero h1 .plus { color: var(--red); }
.lead { font-size: 19px; color: var(--muted); margin-top: 18px; max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }

/* Секции */
section { padding-block: 44px; border-top: 1px solid var(--line); }
.sh { font-size: clamp(24px, 3.6vw, 34px); line-height: 1.12; letter-spacing: -0.01em; }
.sp { color: var(--muted); font-size: 17px; margin-top: 10px; max-width: 40em; }

/* Ситуации */
.cases { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 36px; margin-top: 26px; }
.case { padding-block: 16px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; }
.case .ic { width: 26px; height: 26px; border-radius: 7px; background: var(--red-soft); border: 1px solid var(--red); color: var(--red-dark); font-weight: 700; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.case b { display: block; font-size: 17px; }
.case span { color: var(--muted); font-size: 15px; }

/* Способы */
.ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 26px; }
.way { border: 1px solid var(--line); border-radius: 14px; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.way .n { font-size: 44px; font-weight: 800; line-height: 1; color: var(--ink); letter-spacing: -0.03em; }
.way h3 { font-size: 20px; }
.way p { font-size: 15px; color: var(--muted); }
.pm { display: flex; flex-direction: column; gap: 6px; font-size: 14px; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); }
.pm div { padding-left: 20px; position: relative; }
.pm .p::before { content: "+"; position: absolute; left: 2px; font-weight: 700; }
.pm .m::before { content: "–"; position: absolute; left: 2px; font-weight: 700; color: var(--red-dark); }
.todo { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.todo li { display: flex; gap: 8px; align-items: flex-start; }
.todo li::before { content: ""; width: 14px; height: 14px; border: 1.5px solid #9b9592; border-radius: 3px; flex-shrink: 0; margin-top: 3px; }

/* Приложение */
.app { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; margin-top: 26px; align-items: start; }
.feat { display: flex; flex-direction: column; }
.feat div { padding-block: 13px; border-top: 1px solid var(--line); font-size: 15px; color: var(--muted); }
.feat div b { color: var(--ink); display: block; font-size: 16px; }
.plusbadge { display: inline-block; background: var(--red); color: #fff; border-radius: 8px; padding: 2px 10px; font-weight: 800; margin-right: 6px; }

/* Телефон */
.phone { width: 100%; max-width: 340px; margin: 0 auto; border: 10px solid var(--ink); border-radius: 34px; background: #fff; overflow: hidden; box-shadow: 0 20px 40px rgba(17,17,17,.12); position: relative; }
.ph-head { display: flex; align-items: center; gap: 6px; height: 54px; padding: 0 8px 0 10px; border-bottom: 1px solid #eee; }
.ph-head img { width: 34px; height: 34px; }
.ph-sums { flex-grow: 1; display: flex; justify-content: space-around; gap: 4px; min-width: 0; }
.ph-sum { display: flex; flex-direction: column; align-items: center; }
.ph-sum .l { font-size: 9px; color: #666; white-space: nowrap; }
.ph-sum .v { font-size: 13px; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; transition: color .3s; }
.ph-sum .v.up { color: #1d7a3a; }
.ph-burger { width: 22px; display: flex; flex-direction: column; gap: 4px; }
.ph-burger i { display: block; height: 2px; background: #111; border-radius: 2px; }
.ph-body { padding: 14px 12px 18px; display: flex; flex-direction: column; gap: 10px; min-height: 360px; font-size: 13px; }
.ph-title { font-size: 16px; font-weight: 700; }
.ph-btn { height: 36px; border-radius: 8px; background: #111; color: #fff; font-weight: 600; display: flex; align-items: center; justify-content: center; font-size: 13px; }
.ph-btn.line { background: #fff; color: #111; border: 1px solid #c9c9c9; }
.ph-f label { font-size: 10px; color: #555; display: block; }
.ph-f div { height: 30px; border: 1px solid #c9c9c9; border-radius: 7px; padding: 0 9px; display: flex; align-items: center; font-size: 12px; margin-top: 3px; white-space: nowrap; overflow: hidden; }
.ph-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.trip { border: 1px solid #e3e3e3; border-radius: 10px; padding: 10px; display: flex; flex-direction: column; gap: 7px; background: #fff; transition: background .3s, border-color .3s; }
.trip.red { border-color: var(--red); background: var(--red-soft); }
.trip .r1 { display: flex; justify-content: space-between; gap: 8px; font-weight: 700; font-size: 13px; }
.trip .r1 span:last-child { font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.trip .st { height: 28px; border: 1px solid #c9c9c9; border-radius: 7px; padding: 0 8px; display: flex; align-items: center; justify-content: space-between; font-size: 12px; background: #fff; }
.trip .st::after { content: "⌄"; font-size: 13px; line-height: 0; margin-top: -6px; }
.trip .nx { font-size: 12px; color: #555; }
.trip.red .nx { color: var(--red-dark); font-weight: 600; }
.ph-flash { font-size: 12px; padding: 9px 10px; border-radius: 8px; background: #111; color: #fff; }
.push { position: absolute; left: 8px; right: 8px; top: 8px; z-index: 2; background: rgba(245,245,245,.97); border-radius: 14px; padding: 9px 11px; box-shadow: 0 6px 18px rgba(0,0,0,.18); display: flex; gap: 9px; align-items: flex-start; font-size: 12px; }
.push img { width: 26px; height: 26px; border-radius: 6px; }
.push b { display: block; font-size: 12px; }
.push small { color: #777; font-size: 10px; display: block; }

/* Пошаговая работа */
.steps { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; margin-top: 26px; align-items: start; }
.steplist { display: flex; flex-direction: column; gap: 8px; }
.stepbtn { text-align: left; border: 1px solid var(--line); background: var(--bg); border-radius: 12px; padding: 14px 16px; cursor: pointer; font-family: inherit; color: var(--ink); display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 10px; }
.stepbtn:hover { border-color: #b9b2af; }
.stepbtn .k { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--ink); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; }
.stepbtn b { font-size: 16px; display: block; }
.stepbtn span { font-size: 14px; color: var(--muted); display: none; margin-top: 4px; }
.stepbtn[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.stepbtn[aria-pressed="true"] .k { background: var(--ink); color: #fff; }
.stepbtn[aria-pressed="true"] span { display: block; }
.stepnav { display: flex; gap: 8px; margin-top: 6px; }

/* Расчёт срока */
.calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; margin-top: 26px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.calc-in { padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.calc-out { padding: 22px; background: var(--soft); display: flex; flex-direction: column; gap: 14px; }
.fld label { font-size: 13px; color: var(--muted); display: block; margin-bottom: 5px; }
.fld select, .fld input { width: 100%; height: 46px; border: 1px solid #c9c9c9; border-radius: 10px; padding: 0 12px; font-size: 16px; font-family: inherit; color: var(--ink); background: var(--bg); }
.fld .row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.due-l { font-size: 13px; color: var(--muted); }
.due { font-size: clamp(32px, 5vw, 44px); font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1.05; }
.due-sub { font-size: 14px; color: var(--muted); }
.strip { display: flex; flex-wrap: wrap; gap: 3px; }
.strip i { width: 15px; height: 22px; border-radius: 3px; background: #fff; border: 1px solid #ddd; display: block; font-style: normal; }
.strip i.off { background: repeating-linear-gradient(135deg, #e7e2e0 0 3px, #f5f2f1 3px 6px); border-color: #e0dad8; }
.strip i.w { background: var(--ink); border-color: var(--ink); }
.strip i.c { background: var(--ink); border-color: var(--ink); }
.strip i.end { background: var(--red); border-color: var(--red); }
.legend { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12px; color: var(--muted); }
.legend span { display: inline-flex; gap: 5px; align-items: center; }
.legend i { width: 11px; height: 15px; border-radius: 2px; display: inline-block; border: 1px solid #ddd; }
.startnote { font-size: 14px; padding: 10px 12px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); }

/* Много рейсов */
.many { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; margin-top: 26px; align-items: start; }
.day { display: flex; flex-direction: column; gap: 8px; }
.day input[type="range"] { width: 100%; accent-color: var(--red); }
.day .d { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.trips-anim { display: flex; flex-direction: column; gap: 8px; position: relative; }
.rules { display: flex; flex-direction: column; margin-top: 16px; }
.rules div { padding-block: 11px; border-top: 1px solid var(--line); font-size: 15px; color: var(--muted); }
.rules b { color: var(--ink); }

/* Видео */

/* Экран «Домой» */
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 22px; }
.tab { height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid #c9c9c9; background: var(--bg); font-size: 15px; font-family: inherit; color: var(--ink); cursor: pointer; }
.tab[aria-selected="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.howto { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 30px; margin-top: 18px; align-items: start; }
.howto ol { margin: 0; padding: 0; list-style: none; counter-reset: s; display: flex; flex-direction: column; }
.howto li { counter-increment: s; padding: 13px 0 13px 42px; border-top: 1px solid var(--line); position: relative; font-size: 16px; }
.howto li::before { content: counter(s); position: absolute; left: 0; top: 12px; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 700; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.howto .note { font-size: 14px; color: var(--muted); margin-top: 12px; }
.kbd { display: inline-block; border: 1px solid #c9c9c9; border-radius: 6px; padding: 0 6px; font-size: 14px; background: var(--soft); white-space: nowrap; }
.homescreen { border-radius: 28px; background: linear-gradient(160deg, #3c4a5c, #1d2633); padding: 22px 18px 26px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px 10px; max-width: 260px; }
.homescreen .ap { display: flex; flex-direction: column; align-items: center; gap: 5px; font-size: 10px; color: #fff; text-align: center; }
.homescreen .ap i { width: 46px; height: 46px; border-radius: 12px; background: rgba(255,255,255,.22); display: block; }
.homescreen .ap img { width: 46px; height: 46px; border-radius: 12px; background: #fff; }
.homescreen .ap.me { animation: pop 1.6s ease-in-out infinite alternate; }
@keyframes pop { from { transform: scale(1); } to { transform: scale(1.08); } }

.arts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 22px; }
.art { display: flex; flex-direction: column; gap: 6px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: var(--ink); }
.art:hover { border-color: var(--ink); }
.art b { font-size: 18px; line-height: 1.25; }
.art span { font-size: 15px; color: var(--muted); }
.faqlink { display: inline-block; margin-top: 18px; font-weight: 600; font-size: 17px; }

/* Финал и подвал */
.final { text-align: left; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.final .sh { max-width: 18em; }
footer { border-top: 1px solid var(--line); padding-block: 30px 40px; background: var(--soft); }
.foot { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 30px; }
.foot h3 { font-size: 16px; margin-bottom: 8px; }
.foot p { font-size: 15px; color: var(--muted); }
.foot .big { font-size: 20px; font-weight: 700; color: var(--ink); text-decoration: none; }
.tg { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; font-weight: 600; }
.legal { margin-top: 24px; font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 18px; }
.legal a { color: var(--muted); }

/* служебные */

@media (max-width: 760px) {
  .hero, .app, .steps, .many, .calc, .foot { grid-template-columns: minmax(0, 1fr); }
  .hero { padding-block: 30px 30px; gap: 28px; }
  .cases, .ways, .arts { grid-template-columns: minmax(0, 1fr); }
  .howto { grid-template-columns: minmax(0, 1fr); }
  .homescreen { margin: 0 auto; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* Классы вместо встроенных стилей (CSP: style-src 'self') */
.legend i.lg-w { background: var(--ink); border-color: var(--ink); }
.legend i.lg-off { background: repeating-linear-gradient(135deg, #e7e2e0 0 3px, #f5f2f1 3px 6px); }
.legend i.lg-end { background: var(--red); border-color: var(--red); }
.kvs { display: flex; flex-direction: column; }
.kvr { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; border-bottom: 1px solid #f0f0f0; }
.kvr.last { border-bottom: 0; }
.kvr .k { color: #666; }
.kvr b.red { color: var(--red-dark); }
.kvr b.u { text-decoration: underline; }
.cta.cta0 { margin-top: 0; }
.cta.mt28 { margin-top: 28px; }
.mt6 { margin-top: 6px; }
.sh.mt8 { margin-top: 8px; }
.ph-body.pt64 { padding-top: 64px; }
.cap { font-size: 13px; color: var(--muted); margin-top: 14px; }
