/* ФотоНаПК: дорожная разметка + документ. Цвета и шрифты заданы токенами. */
@font-face { font-family: "Oswald"; src: url("/static/fonts/Oswald.ttf") format("truetype"); font-weight: 200 700; font-display: swap; }
@font-face { font-family: "Golos Text"; src: url("/static/fonts/GolosText.ttf") format("truetype"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/static/fonts/JetBrainsMono.ttf") format("truetype"); font-weight: 100 800; font-display: swap; }

:root {
  --asphalt: #1B2430;
  --paper: #F4F6F8;
  --white: #FFFFFF;
  --blue: #0B5CAD;
  --blue-deep: #084A8C;
  --signal: #FFC20E;
  --signal-deep: #E5AA00;
  --ok: #1F8A4C;
  --warn: #B3261E;
  --line: #D3DAE2;
  --muted: #55616F;
  --font-head: "Oswald", "Arial Narrow", "Roboto Condensed", "Liberation Sans Narrow", "DejaVu Sans Condensed", sans-serif;
  --font-body: "Golos Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, "Liberation Sans", sans-serif;
  --font-mono: "JetBrains Mono", Consolas, "DejaVu Sans Mono", "Courier New", monospace;
  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 32px);
}
:root[data-theme="dark"] {
  --asphalt: #E8EDF2; --paper: #11161D; --white: #1A212B; --blue: #6EB1F2; --blue-deep: #9CCBFA;
  --line: #2F3946; --muted: #9AA7B6; --ok: #5CCB8A; --warn: #FF8A80;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --asphalt: #E8EDF2; --paper: #11161D; --white: #1A212B; --blue: #6EB1F2; --blue-deep: #9CCBFA;
    --line: #2F3946; --muted: #9AA7B6; --ok: #5CCB8A; --warn: #FF8A80;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--asphalt); font: 400 1.0625rem/1.6 var(--font-body); }
img, svg { max-width: 100%; display: block; }
a { color: var(--blue); text-underline-offset: .18em; }
a:hover { color: var(--blue-deep); }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; border-radius: 3px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--signal); color: #1B2430; padding: 8px 14px; z-index: 10; }
.skip:focus { left: 8px; }

h1, h2, h3 { font-family: var(--font-head); font-weight: 600; line-height: 1.12; margin: 0 0 .5em; letter-spacing: .005em; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.3rem; font-weight: 500; }
p { margin: 0 0 1em; max-width: 68ch; }
ul, ol { padding-left: 1.3em; margin: 0 0 1em; max-width: 68ch; }
li { margin-bottom: .35em; }
small, .muted { color: var(--muted); }
code, kbd { font-family: var(--font-mono); font-size: .92em; }

/* шапка */
.top { background: var(--white); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 20px; min-height: 64px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--asphalt); margin-right: auto; }
.brand svg, .brand img { width: 38px; height: 38px; }
.brand b { font: 600 1.45rem/1 var(--font-head); letter-spacing: .01em; }
.nav { display: flex; gap: 4px 20px; flex-wrap: wrap; }
@media (max-width: 720px) {
  .top .wrap { gap: 4px 12px; }
  .top .btn { order: 2; }
  .nav { order: 3; width: 100%; flex-wrap: nowrap; overflow-x: auto; white-space: nowrap; gap: 4px 18px; padding-bottom: 2px; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
}
.nav a { color: var(--asphalt); text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--signal); }

/* кнопки */
.btn { display: inline-block; font: 600 1.05rem/1 var(--font-body); padding: 15px 24px; border-radius: 8px; border: 2px solid var(--asphalt); text-decoration: none; cursor: pointer; background: transparent; color: var(--asphalt); }
.btn:hover { background: var(--asphalt); color: var(--paper); }
.btn-signal { background: var(--signal); border-color: var(--signal); color: #1B2430; }
.btn-signal:hover { background: var(--signal-deep); border-color: var(--signal-deep); color: #1B2430; }
.btn-sm { padding: 10px 16px; font-size: .95rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* hero */
.hero { padding: clamp(36px, 7vw, 84px) 0 clamp(40px, 6vw, 72px); }
.hero .wrap { display: grid; gap: clamp(28px, 5vw, 64px); grid-template-columns: 1fr; align-items: center; }
@media (min-width: 940px) { .hero .wrap { grid-template-columns: 1.05fr .95fr; } }
.hero h1 { max-width: 15ch; }
.hero .lead { font-size: 1.2rem; max-width: 46ch; }
.hero .fine { margin-top: 18px; color: var(--muted); font-size: .98rem; }

/* талон: единственное «живое» место страницы */
.ticket { background: var(--white); border: 2px solid var(--asphalt); border-radius: 6px; position: relative; padding: 0 0 4px; box-shadow: 8px 8px 0 -2px var(--line); }
.ticket::before { content: ""; display: block; height: 10px; background: repeating-linear-gradient(90deg, var(--signal) 0 28px, transparent 28px 44px); border-bottom: 2px solid var(--asphalt); }
.ticket header { padding: 16px 20px 10px; border-bottom: 1px dashed var(--line); }
.ticket header p { margin: 0; font-size: .95rem; color: var(--muted); }
.ticket header b { display: block; font: 500 1.05rem/1.3 var(--font-mono); letter-spacing: .02em; color: var(--asphalt); word-break: break-all; }
.ticket ul { list-style: none; margin: 0; padding: 6px 20px; max-width: none; }
.ticket li { display: grid; grid-template-columns: 1fr auto; gap: 4px 14px; padding: 12px 0; border-bottom: 1px dashed var(--line); margin: 0; }
.ticket li:last-child { border-bottom: 0; }
.ticket .fn { font: 400 .88rem/1.35 var(--font-mono); word-break: break-all; }
.ticket .via { color: var(--muted); font-size: .9rem; grid-column: 1; }
.ticket .ok { grid-row: 1 / span 2; grid-column: 2; align-self: center; width: 28px; height: 28px; border-radius: 50%; background: var(--ok); display: grid; place-items: center; }
.ticket .ok svg { width: 16px; height: 16px; stroke: #fff; fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.ticket footer { padding: 12px 20px 14px; background: var(--paper); border-top: 2px solid var(--asphalt); font-weight: 600; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.ticket footer span:last-child { color: var(--ok); }
@keyframes arrive { from { opacity: 0; transform: translateX(-14px); } to { opacity: 1; transform: none; } }
@keyframes tick { from { transform: scale(0); } to { transform: scale(1); } }
.ticket li { animation: arrive .5s cubic-bezier(.2,.7,.2,1) both; }
.ticket li:nth-child(1) { animation-delay: .35s; }
.ticket li:nth-child(2) { animation-delay: .95s; }
.ticket .ok { animation: tick .3s ease-out both; }
.ticket li:nth-child(1) .ok { animation-delay: .8s; }
.ticket li:nth-child(2) .ok { animation-delay: 1.4s; }
.ticket footer { animation: arrive .4s ease-out 1.6s both; }
@media (prefers-reduced-motion: reduce) { .ticket li, .ticket .ok, .ticket footer { animation: none; } html { scroll-behavior: auto; } }

/* секции */
section { padding: clamp(36px, 6vw, 72px) 0; }
.band { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { margin-bottom: clamp(22px, 4vw, 40px); }
.section-head p { color: var(--muted); }

/* шаги: пунктирная жёлтая линия как дорожная разметка */
.steps { list-style: none; padding: 0; margin: 0; max-width: none; display: grid; gap: 28px; position: relative; }
.steps li { position: relative; padding-left: 64px; margin: 0; }
.steps li::before { content: counter(step); counter-increment: step; position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 50%; background: var(--signal); color: #1B2430; display: grid; place-items: center; font: 600 1.35rem/1 var(--font-head); z-index: 1; }
.steps { counter-reset: step; }
.steps::before { content: ""; position: absolute; left: 21px; top: 20px; bottom: 20px; border-left: 4px dashed var(--signal); }
@media (min-width: 860px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 36px; }
  .steps li { padding: 64px 0 0; }
  .steps::before { left: 22px; right: calc(33.333% - 26px); top: 20px; bottom: auto; border-left: 0; border-top: 4px dashed var(--signal); }
}
.steps h3 { margin-bottom: .3em; }
.steps p { margin: 0; color: var(--muted); }

/* возможности: два столбца, без карточек */
.feat { display: grid; gap: 0 56px; grid-template-columns: 1fr; max-width: none; padding: 0; list-style: none; }
@media (min-width: 820px) { .feat { grid-template-columns: 1fr 1fr; } }
.feat li { padding: 20px 0; border-top: 1px solid var(--line); margin: 0; }
.feat h3 { margin-bottom: .25em; }
.feat p { margin: 0; color: var(--muted); }

/* тарифы: «номерной знак» */
.plans { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 820px) { .plans { grid-template-columns: 1fr 1fr; } }
.plan { background: var(--white); border: 2px solid var(--asphalt); border-radius: 14px; padding: 6px; }
.plan > div { border: 1px solid var(--line); border-radius: 9px; padding: 24px; height: 100%; display: flex; flex-direction: column; }
.plan.main { border-color: var(--signal-deep); border-width: 3px; }
.plan h3 { font-size: 1.5rem; }
.price { font: 600 clamp(2.6rem, 6vw, 3.4rem)/1 var(--font-head); margin: .1em 0 .1em; }
.price small { font: 400 1rem var(--font-body); color: var(--muted); margin-left: 6px; }
.plan ul { padding-left: 1.1em; margin: 14px 0 24px; flex: 1; }
.plan .btn { align-self: flex-start; }

/* FAQ */
details { border-top: 1px solid var(--line); padding: 16px 0; max-width: 76ch; }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font: 500 1.2rem/1.35 var(--font-head); list-style: none; padding-right: 30px; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; position: absolute; right: 4px; top: .5em; width: 10px; height: 10px; border-right: 2px solid var(--asphalt); border-bottom: 2px solid var(--asphalt); transform: rotate(45deg); transition: transform .2s; }
details[open] summary::after { transform: rotate(-135deg); top: .7em; }
details p { margin: .7em 0 0; color: var(--muted); }

/* формы */
.form { display: grid; gap: 22px; max-width: 720px; }
fieldset { border: 1px solid var(--line); border-radius: 10px; background: var(--white); padding: 18px 20px 20px; margin: 0; min-width: 0; }
legend { font: 500 1.25rem var(--font-head); padding: 0 8px; }
label { display: block; font-weight: 500; margin-bottom: 4px; }
.field { margin-bottom: 14px; }
.field:last-child { margin-bottom: 0; }
input[type=text], input[type=email], input[type=tel], input[type=password], select, textarea {
  width: 100%; font: inherit; padding: 12px 14px; border: 1.5px solid #8A97A6; border-radius: 8px; background: var(--paper); color: var(--asphalt); }
input:focus, select:focus, textarea:focus { border-color: var(--blue); outline: 3px solid color-mix(in srgb, var(--signal) 70%, transparent); outline-offset: 0; }
.hint { font-size: .92rem; color: var(--muted); margin-top: 4px; }
.err { color: var(--warn); font-weight: 500; }
.choice { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; margin-bottom: 10px; cursor: pointer; background: var(--paper); }
.choice:has(input:checked) { border-color: var(--asphalt); background: var(--white); box-shadow: inset 0 0 0 1px var(--asphalt); }
.choice input { margin-top: .35em; width: 18px; height: 18px; accent-color: var(--asphalt); flex: none; }
.choice b { font-weight: 600; }
.choice span.p { margin-left: auto; font: 600 1.25rem var(--font-head); white-space: nowrap; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; margin-bottom: 12px; }
.check input { margin-top: .3em; width: 18px; height: 18px; accent-color: var(--asphalt); flex: none; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.notice { border-left: 5px solid var(--signal); background: var(--white); padding: 14px 18px; border-radius: 0 8px 8px 0; max-width: 72ch; margin: 0 0 1.2em; }
.notice.bad { border-left-color: var(--warn); }
.notice.good { border-left-color: var(--ok); }

/* код активации */
.code { font: 500 clamp(1.6rem, 5vw, 2.4rem)/1.2 var(--font-mono); letter-spacing: .08em; background: var(--white); border: 2px solid var(--asphalt); border-radius: 8px; padding: 16px 20px; display: inline-block; user-select: all; }

/* консоль в инструкции: настоящий текст меню */
.term { background: #11161D; color: #E6EDF3; font: 400 .9rem/1.55 var(--font-mono); padding: 16px 18px; border-radius: 8px; overflow-x: auto; max-width: 100%; white-space: pre; margin: 0 0 1.2em; border-top: 6px solid var(--signal); }
.term .g { color: #5CCB8A; } .term .y { color: #FFC20E; } .term .c { color: #6EB1F2; } .term .r { color: #FF8A80; }

table { border-collapse: collapse; width: 100%; max-width: 760px; margin: 0 0 1.4em; background: var(--white); }
th, td { text-align: left; padding: 10px 12px; border: 1px solid var(--line); vertical-align: top; }
th { font-weight: 600; background: var(--paper); }

/* документы */
.doc { max-width: 78ch; }
.doc h2 { margin-top: 1.6em; font-size: 1.5rem; }
.doc p, .doc li { max-width: none; }
.doc .stamp { color: var(--muted); font-size: .95rem; }

/* подвал */
.foot { background: var(--asphalt); color: #D8E0E8; padding: 36px 0 44px; margin-top: 40px; font-size: .98rem; }
.foot a { color: #fff; }
.foot .cols { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 820px) { .foot .cols { grid-template-columns: 1.3fr 1fr 1fr; } }
.foot h3 { color: #fff; font-size: 1.15rem; }
.foot ul { list-style: none; padding: 0; }
.foot small { color: #A7B3C0; }
.page { padding: clamp(28px, 5vw, 56px) 0; }
.page h1 { font-size: clamp(1.9rem, 4.2vw, 2.8rem); }
.back { margin-bottom: 18px; display: inline-block; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; max-width: 640px; margin: 0 0 1.2em; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; font-weight: 500; }
@media (max-width: 520px) { .kv { grid-template-columns: 1fr; } .kv dt { margin-top: 8px; } }
