/* Сайт «Катим». Цвета — из brand/build.mjs. */
:root {
  --orange: #ff5a1f;
  --orange-ink: #e84a12;
  --ink: #111827;
  --muted: #5b6475;
  --line: #e8e9ef;
  --bg: #ffffff;
  --soft: #f6f7fb;
  --card: #ffffff;
  --shadow: 0 18px 50px -24px rgb(17 24 39 / 0.25);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #eef0f5;
    --muted: #9aa3b5;
    --line: #232838;
    --bg: #0b0d14;
    --soft: #11141e;
    --card: #151926;
    --orange-ink: #ff7a45;
    --shadow: 0 18px 50px -24px rgb(0 0 0 / 0.7);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Inter, 'Helvetica Neue', Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}
a { color: var(--orange-ink); }
img, svg { display: block; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--card); padding: 8px 12px; border-radius: 8px; z-index: 10; }

/* ---------- Шапка ---------- */
header.top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
header.top .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 22px; letter-spacing: -0.03em; }
.logo i { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--orange); box-shadow: 0 6px 16px -6px rgb(255 90 31 / 0.7); }
nav.links { display: flex; gap: 22px; margin-left: 12px; }
nav.links a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; }
nav.links a:hover { color: var(--ink); }
.top .actions { margin-left: auto; display: flex; gap: 10px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 20px; border-radius: 14px; font-weight: 650; font-size: 15.5px; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .15s, filter .15s, background .15s; white-space: nowrap; }
.btn:active { transform: scale(0.97); }
.btn.primary { background: var(--orange); color: #fff; box-shadow: 0 10px 24px -10px rgb(255 90 31 / 0.8); }
.btn.primary:hover { filter: brightness(1.06); }
.btn.ghost { background: var(--card); color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { background: var(--soft); }
.btn.sm { height: 40px; padding: 0 16px; font-size: 14.5px; border-radius: 12px; }

/* ---------- Первый экран ---------- */
.hero { position: relative; overflow: hidden; padding: 72px 0 80px; }
.hero::before { content: ''; position: absolute; width: 720px; height: 720px; right: -220px; top: -260px; border-radius: 50%; background: radial-gradient(circle, rgb(255 90 31 / 0.22), transparent 65%); pointer-events: none; }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 99px; background: rgb(255 90 31 / 0.1); color: var(--orange-ink); font-weight: 650; font-size: 14px; }
h1 { font-size: clamp(36px, 5.4vw, 60px); line-height: 1.05; letter-spacing: -0.035em; margin: 18px 0 18px; }
h1 em { font-style: normal; color: var(--orange); }
.lead { font-size: 19px; color: var(--muted); max-width: 560px; margin: 0 0 28px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }
.note { margin-top: 18px; color: var(--muted); font-size: 14.5px; }

/* Карточка заказа на первом экране — иллюстрация, а не скриншот */
.demo { position: relative; justify-self: center; width: min(380px, 100%); }
.demo .card { background: var(--card); border: 1px solid var(--line); border-radius: 26px; padding: 22px; box-shadow: var(--shadow); }
.demo .card + .card { margin-top: 14px; }
.demo .row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.demo .status { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.demo .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 0 rgb(255 90 31 / 0.6); animation: ping 1.8s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgb(255 90 31 / 0.55); } 80%, 100% { box-shadow: 0 0 0 10px rgb(255 90 31 / 0); } }
.demo .price { font-weight: 800; font-size: 22px; letter-spacing: -0.02em; }
.demo .route { margin: 16px 0 6px; padding-left: 22px; position: relative; font-size: 15px; }
.demo .route::before { content: ''; position: absolute; left: 6px; top: 10px; bottom: 10px; width: 2px; background: repeating-linear-gradient(var(--line) 0 4px, transparent 4px 8px); }
.demo .route p { margin: 0 0 10px; position: relative; }
.demo .route p::before { content: ''; position: absolute; left: -21px; top: 7px; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--orange); background: var(--card); }
.demo .route p:last-child::before { background: var(--orange); }
.demo small { color: var(--muted); display: block; font-size: 13px; }
.steps { display: flex; gap: 6px; margin-top: 14px; }
.steps span { flex: 1; height: 6px; border-radius: 6px; background: var(--line); }
.steps span.on { background: var(--orange); }
.pin { display: flex; align-items: center; justify-content: space-between; }
.pin b { font-size: 26px; letter-spacing: 0.32em; }
.demo .tag { position: absolute; right: -10px; top: -16px; background: var(--ink); color: var(--bg); font-size: 13px; font-weight: 650; padding: 6px 12px; border-radius: 99px; transform: rotate(4deg); }

/* ---------- Разделы ---------- */
section { padding: 84px 0; }
section.soft { background: var(--soft); }
.head { max-width: 680px; margin-bottom: 40px; }
h2 { font-size: clamp(28px, 3.6vw, 42px); line-height: 1.12; letter-spacing: -0.03em; margin: 0 0 12px; }
.head p { color: var(--muted); margin: 0; font-size: 18px; }

.how { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: step; }
.how li { list-style: none; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 22px; counter-increment: step; }
.how li::before { content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: rgb(255 90 31 / 0.12); color: var(--orange-ink); font-weight: 800; margin-bottom: 14px; }
.how b { display: block; margin-bottom: 4px; }
.how p { margin: 0; color: var(--muted); font-size: 15.5px; }
ol.how { padding: 0; margin: 0; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 26px; padding: 32px; }
.panel.dark { background: #111827; color: #eef0f5; border-color: #111827; }
.panel.dark .muted, .panel.dark li span { color: #a7b0c2; }
.panel h3 { font-size: 26px; letter-spacing: -0.02em; margin: 0 0 6px; }
.panel .muted { color: var(--muted); margin: 0 0 22px; }
.panel ul { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 14px; }
.panel li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; }
.panel li svg { margin-top: 3px; }
.panel li b { display: block; font-size: 16.5px; }
.panel li span { color: var(--muted); font-size: 15px; }

/* ---------- Тарифы ---------- */
.tariff { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: 22px; }
.tariff table { width: 100%; border-collapse: collapse; min-width: 620px; font-size: 15.5px; }
.tariff th, .tariff td { padding: 14px 16px; text-align: center; border-bottom: 1px solid var(--line); }
.tariff thead th { font-size: 13px; color: var(--muted); font-weight: 600; }
.tariff tbody th { text-align: left; font-weight: 600; white-space: nowrap; }
.tariff tr:last-child td, .tariff tr:last-child th { border-bottom: 0; }
.tariff td { font-weight: 700; font-variant-numeric: tabular-nums; }
.tariff td.same { color: var(--orange-ink); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 18px; }
.fact { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 20px; }
.fact b { display: block; font-size: 24px; letter-spacing: -0.02em; }
.fact > span { color: var(--muted); font-size: 15px; }

/* ---------- Безопасность ---------- */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 24px; }
.feature i { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: rgb(255 90 31 / 0.12); margin-bottom: 14px; }
.feature b { display: block; font-size: 17px; margin-bottom: 4px; }
.feature p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* ---------- Вопросы ---------- */
.faq { max-width: 820px; }
details { border-bottom: 1px solid var(--line); padding: 4px 0; }
summary { cursor: pointer; list-style: none; padding: 16px 0; font-weight: 650; font-size: 18px; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; color: var(--orange-ink); font-size: 24px; line-height: 1; transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 0 0 18px; color: var(--muted); }

/* ---------- Приложения ---------- */
.apps { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.app { display: flex; gap: 20px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 26px; padding: 26px; }
.app img { width: 84px; height: 84px; border-radius: 22%; box-shadow: 0 10px 24px -12px rgb(0 0 0 / 0.5); flex-shrink: 0; }
.app h3 { margin: 0 0 2px; font-size: 21px; }
.app p { margin: 0 0 12px; color: var(--muted); font-size: 15px; }
.stores { display: flex; flex-wrap: wrap; gap: 8px; }
.stores span { font-size: 13px; padding: 6px 12px; border-radius: 99px; border: 1px dashed var(--line); color: var(--muted); }

/* ---------- Подвал ---------- */
footer { border-top: 1px solid var(--line); padding: 48px 0 56px; color: var(--muted); font-size: 14.5px; }
footer .cols { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; }
footer h4 { color: var(--ink); margin: 0 0 12px; font-size: 15px; }
footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--ink); }
footer .req { line-height: 1.7; }
footer .copy { margin-top: 32px; }

/* ---------- Текстовые страницы ---------- */
.page { padding: 56px 0 80px; }
.page .wrap { max-width: 820px; }
.page h1 { font-size: clamp(32px, 4.4vw, 46px); }
.page h2 { font-size: 26px; margin-top: 40px; }
.page p, .page li { color: var(--ink); }
.page .muted { color: var(--muted); }
.page .box { background: var(--soft); border: 1px solid var(--line); border-radius: 18px; padding: 18px 22px; margin: 18px 0; }
/* Страница «Скачать приложение» */
[hidden] { display: none !important; }
.dl { display: flex; gap: 20px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 22px; margin: 22px 0; box-shadow: var(--shadow); }
.dl img { border-radius: 18px; flex: none; }
.dl-body { min-width: 0; flex: 1; }
.page .dl h2 { margin: 0 0 4px; font-size: 22px; }
.dl-body > p { margin: 0 0 14px; }
.dl-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; }
.btn[aria-disabled="true"] { pointer-events: none; color: var(--muted); }
.page .dl-meta { margin: 4px 0 0; font-size: 14px; color: var(--muted); }
.dl-sha { margin: 0; font: 12.5px/1.6 ui-monospace, SFMono-Regular, Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--muted); }
@media (max-width: 560px) {
  .dl { flex-direction: column; gap: 14px; padding: 18px; }
  .dl img { width: 60px; height: 60px; }
  .dl-actions .btn { flex: 1 1 100%; }
}

@media (max-width: 960px) {
  nav.links { display: none; }
  .hero { padding: 40px 0 56px; }
  .hero .wrap, .split, .apps { grid-template-columns: 1fr; }
  .how { grid-template-columns: 1fr 1fr; }
  .grid3, .facts { grid-template-columns: 1fr; }
  footer .cols { grid-template-columns: 1fr; }
  section { padding: 60px 0; }
  .demo .tag { right: 6px; }
}
@media (max-width: 560px) {
  .how { grid-template-columns: 1fr; }
  .top .actions .ghost { display: none; }
  .panel { padding: 24px; }
  .app { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .demo .dot { animation: none; }
}
