/* Sky66 — стиль аэронавигационной карты: холодная «бумага», чернила, пурпур воздушных зон */

@font-face {
  font-family: "Geologica";
  src: url("../fonts/geologica.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Sofia Sans Extra Condensed";
  src: url("../fonts/sofia-xcond.woff2") format("woff2");
  font-weight: 1 1000;
  font-display: swap;
}

:root {
  --paper: #EAF0F4;
  --sheet: #FFFFFF;
  --ink: #15253B;
  --ink-soft: #4A5B70;
  --rule: #C4D2DD;
  --magenta: #A3195B;
  --blue: #2C6E9E;
  --buff: #C68B1E;

  /* Основной шрифт — Geologica; заголовки им же, но с острыми углами (ось SHRP) */
  --font-text: "Geologica", "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Geologica", "Segoe UI", Roboto, Arial, sans-serif;
  /* Второй шрифт — узкий «табличный», как указатели и табло аэропорта */
  --font-board: "Sofia Sans Extra Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --sharp: "SHRP" 100;

  --wrap: 72rem;
  --gap: clamp(1rem, 3vw, 2rem);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0E1A28;
    --sheet: #15253A;
    --ink: #E4ECF3;
    --ink-soft: #9FB1C3;
    --rule: #2A3F57;
    --magenta: #E2679F;
    --blue: #7FB2DA;
    --buff: #E0B25A;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--font-text);
}

/* Заголовочный рисунок Geologica: острые углы */
.logo, .hero-title, .page-title, .section-title, .prose h2 { font-variation-settings: var(--sharp); }

img, svg { max-width: 100%; display: block; }

a { color: var(--blue); text-underline-offset: 0.18em; }
a:hover { color: var(--magenta); }

:focus-visible { outline: 3px solid var(--magenta); outline-offset: 2px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gap); }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--paper); padding: .5rem 1rem; z-index: 10;
}
.skip:focus { left: 1rem; top: 1rem; }

/* ---------- Шапка ---------- */
.site-header { border-bottom: 1px solid var(--rule); background: var(--paper); }
.header-row { display: flex; align-items: center; justify-content: space-between; min-height: 4.75rem; gap: 1rem; }

.logo {
  display: inline-flex; align-items: center; gap: .7rem;
  font: 800 1.85rem/1 var(--font-display);
  letter-spacing: -0.02em;
  color: var(--ink); text-decoration: none;
}
.logo:hover { color: var(--ink); }
.logo-mark { width: 2.75rem; height: 2.75rem; flex: none; }
.logo-bg { fill: var(--ink); }
.logo-plane { fill: var(--paper); }
.logo-trail { stroke: var(--magenta); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 3 4; fill: none; }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem; }
.site-nav a {
  display: block; padding: .45rem .75rem; border-radius: 3px;
  color: var(--ink); text-decoration: none; font-weight: 500; font-size: .98rem;
}
.site-nav a:hover { background: var(--sheet); color: var(--ink); }
.site-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--magenta); border-radius: 0; }

.nav-toggle {
  display: none;
  font: 500 .95rem var(--font-text); color: var(--ink);
  background: transparent; border: 1px solid var(--rule); border-radius: 3px;
  padding: .45rem .8rem; cursor: pointer;
}

@media (max-width: 52rem) {
  .logo { font-size: 1.55rem; }
  .logo-mark { width: 2.4rem; height: 2.4rem; }
  .nav-toggle { display: block; }
  .header-row { flex-wrap: wrap; }
  .site-nav { display: none; width: 100%; padding-bottom: .75rem; }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; }
  .site-nav a { padding: .7rem .25rem; border-bottom: 1px solid var(--rule); border-radius: 0; }
  .site-nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--magenta); padding-left: .75rem; }
}

/* ---------- Первый экран ---------- */
.hero { padding: clamp(2rem, 6vw, 4.5rem) 0 clamp(2rem, 5vw, 3.5rem); }
.hero-grid {
  display: grid; gap: clamp(1.5rem, 4vw, 3rem);
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: center;
}
.hero-title {
  font: 800 clamp(2.2rem, 10vw, 4.4rem)/0.98 var(--font-display);
  letter-spacing: -0.03em;
  margin: 0 0 1.25rem;
  overflow-wrap: break-word;
}
.hero-lead { font-size: clamp(1.08rem, 1.8vw, 1.25rem); color: var(--ink-soft); max-width: 34rem; margin: 0 0 1.75rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }

.btn {
  display: inline-block; padding: .8rem 1.2rem; border-radius: 3px;
  font-weight: 600; text-decoration: none; line-height: 1.2;
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--magenta); color: #fff; }
.btn-ghost { border: 1.5px solid var(--ink); color: var(--ink); }
.btn-ghost:hover { border-color: var(--magenta); color: var(--magenta); }

.hero-chart { margin: 0; }
.hero-chart figcaption { font-size: .85rem; color: var(--ink-soft); margin-top: .5rem; }

.chart { width: 100%; height: auto; background: var(--sheet); border: 1px solid var(--rule); }
.chart-grid { fill: none; stroke: var(--rule); stroke-width: .6; opacity: .6; }
.chart-graticule { stroke: var(--blue); stroke-width: .8; opacity: .55; }
.chart-rose { fill: none; stroke: var(--magenta); stroke-width: 1.2; }
.chart-tick { stroke: var(--magenta); stroke-width: 1; }
.chart-label { fill: var(--magenta); font: 700 17px var(--font-board); }
.chart-small { fill: var(--ink-soft); font: 500 14px var(--font-board); letter-spacing: .02em; }
.chart-rwy { fill: var(--ink); }
.chart-rwy-cl { stroke: var(--sheet); stroke-width: 1; stroke-dasharray: 6 5; }
.chart-rwy-num { fill: var(--ink); font: 800 21px var(--font-board); }
.chart-approach { fill: none; stroke: var(--magenta); stroke-width: 1.6; stroke-dasharray: 5 5; }
.chart-arp { fill: var(--sheet); stroke: var(--magenta); stroke-width: 2; }
.chart-arrow { fill: none; stroke: var(--ink-soft); stroke-width: 1.5; stroke-linecap: round; }

@media (prefers-reduced-motion: no-preference) {
  .chart-approach { animation: approach 2.4s ease-out .3s both; }
  @keyframes approach { from { stroke-dashoffset: 300; opacity: 0; } to { stroke-dashoffset: 0; opacity: 1; } }
}

@media (max-width: 52rem) {
  .hero-grid { grid-template-columns: 1fr; }
}

/* ---------- Разделы в виде полётных стрипов ---------- */
.section-title {
  font: 700 clamp(1.45rem, 2.8vw, 1.9rem)/1.2 var(--font-display);
  letter-spacing: -0.02em; margin: 0 0 1.25rem;
}
.strips-section { padding: clamp(1.5rem, 4vw, 3rem) 0; }
.strips { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }

.strip {
  display: grid;
  grid-template-columns: .7rem 8.5rem minmax(0, 1fr) 7.5rem;
  align-items: stretch;
  background: var(--sheet);
  border: 1px solid var(--rule);
  color: var(--ink); text-decoration: none;
  min-height: 4.75rem;
}
.strip:hover { border-color: var(--ink); color: var(--ink); }
.strip:hover .strip-title { color: var(--magenta); }

.strip-band { background: var(--blue); }
.strip-ground .strip-band { background: var(--buff); }
.strip-info .strip-band { background: var(--magenta); }

.strip-kind, .strip-status {
  display: flex; align-items: center; padding: 0 1rem;
  font: 500 1.08rem/1.1 var(--font-board); letter-spacing: .02em; color: var(--ink-soft);
}
.strip-kind { border-right: 1px solid var(--rule); }
.strip-status { border-left: 1px solid var(--rule); justify-content: center; }
.strip-status.is-ready { color: var(--blue); font-weight: 600; }

.strip-body { padding: .85rem 1.1rem; display: flex; flex-direction: column; justify-content: center; gap: .15rem; }
.strip-title { font-weight: 700; font-size: 1.08rem; }
.strip-lead { color: var(--ink-soft); font-size: .95rem; line-height: 1.45; max-width: 60ch; }

@media (max-width: 44rem) {
  .strip { grid-template-columns: .55rem minmax(0, 1fr); }
  .strip-kind { display: none; }
  .strip-body { grid-column: 2; }
  .strip-status {
    grid-column: 2; justify-content: flex-start;
    border-left: 0; border-top: 1px dashed var(--rule);
    padding: .45rem 1.1rem;
  }
  .strip-band { grid-row: 1 / span 2; }
}

/* ---------- Блок «самолёты над городом» ---------- */
.radar { padding: clamp(1.5rem, 4vw, 3rem) 0 clamp(2.5rem, 6vw, 4.5rem); }
.radar-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: var(--gap); border-top: 1px solid var(--rule); padding-top: clamp(1.5rem, 4vw, 2.5rem); }
.radar p { margin: 0; max-width: 62ch; color: var(--ink-soft); }
@media (max-width: 52rem) { .radar-grid { grid-template-columns: 1fr; } }

/* ---------- Внутренние страницы ---------- */
.page { padding: clamp(1.5rem, 4vw, 3rem) 0 clamp(3rem, 7vw, 5rem); }
.page-wrap { max-width: 50rem; margin-left: max(var(--gap), calc((100% - var(--wrap)) / 2)); }
.crumbs { font-size: .9rem; color: var(--ink-soft); margin-bottom: 1.25rem; }
.crumbs a { color: var(--ink-soft); }
.page-title {
  font: 800 clamp(2rem, 5vw, 3.2rem)/1.06 var(--font-display);
  letter-spacing: -0.025em; margin: 0 0 1rem;
}
.page-lead { font-size: 1.2rem; color: var(--ink-soft); margin: 0 0 2rem; max-width: 60ch; }

.prose { max-width: 66ch; }
.prose h2 { font: 700 1.5rem/1.25 var(--font-display); letter-spacing: -0.02em; margin: 2.25rem 0 .75rem; }
.prose h3 { font-size: 1.15rem; margin: 1.75rem 0 .5rem; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.1rem; }

.empty-state { border: 1px dashed var(--rule); background: var(--sheet); padding: 1.25rem 1.5rem; max-width: 40rem; }
.empty-state p { margin: 0 0 .5rem; }
.empty-state p:last-child { margin: 0; }

.plain-list { padding-left: 1.2rem; }
.plain-list li { margin-bottom: .35rem; }

/* ---------- Подвал ---------- */
.site-footer { border-top: 1px solid var(--rule); background: var(--sheet); padding-top: 2.25rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: var(--gap); }
.logo-footer { font-size: 1.4rem; margin-bottom: 1rem; gap: .55rem; }
.logo-footer .logo-mark { width: 2.1rem; height: 2.1rem; }
.footer-note { font-size: .9rem; color: var(--ink-soft); max-width: 52ch; margin: 0; }
.footer-nav { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 1.5rem; }
.footer-nav li { margin-bottom: .4rem; font-size: .95rem; }
.footer-nav a { color: var(--ink); text-decoration: none; }
.footer-nav a:hover { color: var(--magenta); text-decoration: underline; }
.footer-bottom { font-size: .85rem; color: var(--ink-soft); padding-top: 1.5rem; padding-bottom: 1.5rem; margin-top: 1.5rem; border-top: 1px solid var(--rule); }
@media (max-width: 44rem) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Новости ---------- */
.news-filter { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 1.75rem; }
.news-filter a {
  font: 500 1.05rem/1 var(--font-board); letter-spacing: .02em;
  padding: .5rem .75rem; border: 1px solid var(--rule); background: var(--sheet);
  color: var(--ink); text-decoration: none;
}
.news-filter a:hover { border-color: var(--ink); color: var(--ink); }
.news-filter a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.news-list { display: grid; gap: 0; border-top: 1px solid var(--rule); }
.news-item { padding: 1.1rem 0 1.2rem; border-bottom: 1px solid var(--rule); }
.news-meta { display: flex; flex-wrap: wrap; gap: .35rem 1rem; align-items: baseline; font: 500 1rem/1.2 var(--font-board); letter-spacing: .02em; color: var(--ink-soft); margin-bottom: .35rem; }
.news-cat { color: var(--magenta); text-decoration: none; }
.news-cat:hover { text-decoration: underline; }
.news-title { font-size: 1.15rem; line-height: 1.35; margin: 0 0 .35rem; font-weight: 700; }
.news-title a { color: var(--ink); text-decoration: none; }
.news-title a:hover { color: var(--magenta); text-decoration: underline; }
.news-summary { margin: 0 0 .35rem; max-width: 70ch; }
.news-source { margin: 0; font-size: .88rem; color: var(--ink-soft); }

.pager { display: flex; gap: 1.25rem; align-items: center; margin-top: 1.75rem; font-weight: 500; }
.pager span { color: var(--ink-soft); }

.home-news { padding: clamp(1rem, 3vw, 2rem) 0 clamp(1.5rem, 4vw, 3rem); }
.home-news-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.home-news .news-list { max-width: 50rem; }

/* ---------- Справочные страницы ---------- */
.table-scroll { overflow-x: auto; margin: 0 0 .75rem; -webkit-overflow-scrolling: touch; }
.compare { width: 100%; min-width: 34rem; border-collapse: collapse; background: var(--sheet); border: 1px solid var(--rule); font-size: .98rem; }
.compare th {
  text-align: left; font: 600 1.05rem/1.2 var(--font-board); letter-spacing: .03em; color: var(--ink-soft);
  padding: .65rem .85rem; border-bottom: 2px solid var(--ink);
}
.compare td { padding: .7rem .85rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
.compare td:first-child { font-weight: 600; }
.compare td:nth-child(3) { white-space: nowrap; font-variant-numeric: tabular-nums; }
.note { font-size: .92rem; color: var(--ink-soft); }

.faq { max-width: 66ch; margin-top: 2.5rem; }
.faq h2 { font: 700 1.5rem/1.25 var(--font-display); font-variation-settings: var(--sharp); letter-spacing: -0.02em; margin: 0 0 1rem; }
.faq details { border-top: 1px solid var(--rule); }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; padding: .85rem 2rem .85rem 0; font-weight: 600; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .25rem; top: .7rem; font: 500 1.4rem/1 var(--font-board); color: var(--magenta); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 1rem; color: var(--ink-soft); }

.updated { margin-top: 2rem; font-size: .9rem; color: var(--ink-soft); }

/* ---------- Калькулятор «Во сколько выезжать» ---------- */
.planner { margin: 1.5rem 0 2.5rem; background: var(--sheet); border: 1px solid var(--rule); padding: clamp(1rem, 3vw, 1.75rem); max-width: none; }
.prose .planner-title, .planner-title { margin: 0 0 1rem; font: 800 1.6rem/1.2 var(--font-display); font-variation-settings: var(--sharp); letter-spacing: -0.02em; }
.planner-controls { display: grid; gap: 1rem; margin-bottom: 1.5rem; }
.planner-row { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: flex-end; }
.chips { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.chips legend, .time-field span { display: block; width: 100%; font: 500 1.05rem/1 var(--font-board); letter-spacing: .03em; color: var(--ink-soft); margin-bottom: .5rem; padding: 0; }
.chips button {
  font: 500 .95rem/1.2 var(--font-text); color: var(--ink); cursor: pointer;
  background: var(--paper); border: 1px solid var(--rule); padding: .5rem .8rem; border-radius: 3px;
}
.chips button:hover { border-color: var(--ink); }
.chips button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.time-field { display: block; }
.time-field input {
  font: 700 1.6rem/1 var(--font-board); letter-spacing: .03em; color: var(--ink);
  background: var(--paper); border: 1px solid var(--rule); border-radius: 3px; padding: .35rem .6rem; width: 10.5rem;
}

/* Полоса времени — как полётный стрип */
.flight-strip {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--ink); background: var(--paper);
}
.flight-strip li { padding: .6rem .9rem .7rem; border-left: 1px solid var(--rule); position: relative; }
.flight-strip li:first-child { border-left: 0; }
.flight-strip li::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; }
.fs-leave::before { background: var(--magenta); }
.fs-arrive::before { background: var(--buff); }
.fs-close::before { background: var(--blue); }
.fs-flight::before { background: var(--ink); }
.fs-label { display: block; font: 500 1rem/1.1 var(--font-board); letter-spacing: .03em; color: var(--ink-soft); }
.fs-time { display: block; font: 800 clamp(1.7rem, 4.5vw, 2.6rem)/1.05 var(--font-board); letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.fs-leave .fs-time { color: var(--magenta); }
.planner-summary { margin: .9rem 0 1.25rem; max-width: 70ch; }

.planner-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 1.25rem; align-items: start; }
.options { display: grid; gap: .5rem; }
.option {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .15rem 1rem; text-align: left;
  font: inherit; color: var(--ink); cursor: pointer;
  background: var(--paper); border: 1px solid var(--rule); border-left: 6px solid var(--rule);
  padding: .7rem .9rem;
}
.option:hover { border-color: var(--ink); }
.option[aria-checked="true"] { border-color: var(--ink); background: var(--sheet); box-shadow: inset 0 0 0 1px var(--ink); }
.option-car { border-left-color: var(--ink); }
.option-bus66 { border-left-color: var(--blue); }
.option-bus65 { border-left-color: var(--buff); }
.option-metro { border-left-color: var(--blue); }
.option-train { border-left-color: var(--magenta); }
.option.is-dim { opacity: .6; }
.op-name { font-weight: 700; grid-column: 1; }
.op-meta { font-size: .88rem; color: var(--ink-soft); grid-column: 1; }
.op-leave { grid-column: 2; grid-row: 1 / span 2; align-self: center; text-align: right; font: 800 1.5rem/1 var(--font-board); font-variant-numeric: tabular-nums; }
.op-leave small { display: block; font: 500 .9rem/1 var(--font-board); color: var(--ink-soft); letter-spacing: .03em; }

.route-map { margin: 0; }
.route-map svg { width: 100%; height: auto; background: var(--paper); border: 1px solid var(--rule); }
.route-map figcaption { font-size: .85rem; color: var(--ink-soft); margin-top: .4rem; }
.rm-city { fill: var(--sheet); stroke: var(--rule); stroke-width: 1.5; }
.rm-city-label { fill: var(--ink-soft); font: 500 17px var(--font-board); letter-spacing: .04em; opacity: .7; }
.rm-layer path { fill: none; stroke: var(--rule); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; transition: stroke .25s, stroke-width .25s, opacity .25s; }
.rm-layer[data-layer^="feed"] path { stroke-dasharray: 2 6; opacity: 0; }
.rm-metro path { stroke-dasharray: 10 4; }
.rm-train path { stroke-dasharray: 6 6; }
.rm-layer.is-on path { stroke-width: 6; opacity: 1; }
.rm-car.is-on path, .rm-layer[data-layer^="feed"].is-on path { stroke: var(--ink); }
.rm-bus66.is-on path, .rm-metro.is-on path { stroke: var(--blue); }
.rm-bus65.is-on path { stroke: var(--buff); }
.rm-train.is-on path { stroke: var(--magenta); }
.rm-nodes circle { fill: var(--sheet); stroke: var(--ink-soft); stroke-width: 2; }
.rm-nodes text, .rm-airport text { fill: var(--ink-soft); font: 600 17px var(--font-board); letter-spacing: .03em; }
.rm-nodes .is-origin circle { fill: var(--magenta); stroke: var(--magenta); r: 7; }
.rm-nodes .is-origin text { fill: var(--ink); font-weight: 700; }
.rm-airport rect { fill: var(--ink); }
.rm-airport text { fill: var(--ink); font-weight: 800; font-size: 19px; }

@media (max-width: 52rem) {
  .planner-grid { grid-template-columns: 1fr; }
}
@media (max-width: 34rem) {
  .flight-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flight-strip li:nth-child(3) { border-left: 0; }
  .flight-strip li:nth-child(n+3) { border-top: 1px solid var(--rule); }
}
@media (prefers-reduced-motion: reduce) { .rm-layer path { transition: none; } }

/* ---------- Блоки со способами и иллюстрации ---------- */
.way {
  display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 1.5rem;
  padding: 1.75rem 0; border-top: 1px solid var(--rule); align-items: start;
  --acc: var(--ink);
}
.way-ill { background: var(--sheet); border: 1px solid var(--rule); padding: .6rem .5rem .3rem; }
.way-text h2 { margin-top: 0 !important; }
.way-text p:last-child { margin-bottom: 0; }
.way-bus66 { --acc: var(--blue); }
.way-bus65 { --acc: var(--buff); }
.way-train { --acc: var(--magenta); }
.way-taxi  { --acc: var(--buff); }
.way-car   { --acc: var(--blue); }
.way-coach { --acc: var(--ink-soft); }
.way-clock { --acc: var(--magenta); }
.way-phone { --acc: var(--blue); }

.il { width: 100%; height: auto; display: block; overflow: visible; }
.il-ground { stroke: var(--rule); stroke-width: 2; stroke-dasharray: 4 4; fill: none; }
.il-body { fill: var(--paper); stroke: var(--ink); stroke-width: 2.2; stroke-linejoin: round; }
.il-line, .il-row { fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.il-row { stroke: var(--rule); stroke-width: 3; }
.il-glass { fill: var(--sheet); stroke: var(--ink); stroke-width: 1.8; stroke-linejoin: round; }
.il-wheel { fill: var(--ink); }
.il-hub { fill: var(--paper); }
.il-acc-fill { fill: var(--acc); }
.il-check { fill: var(--ink); }
.il-light { fill: var(--buff); }
.il-rail { fill: none; stroke: var(--ink-soft); stroke-width: 2; stroke-linecap: round; }
.il-hand { fill: none; stroke: var(--acc); stroke-width: 3; stroke-linecap: round; }
.il-arc { fill: none; stroke: var(--acc); stroke-width: 2; stroke-dasharray: 3 4; stroke-linecap: round; }
.il-sign { fill: var(--acc); }
.il-sign-line { stroke: var(--paper); stroke-width: 2; stroke-linecap: round; }
.il-num { font: 800 17px var(--font-board); fill: var(--paper); letter-spacing: .02em; }

@media (max-width: 40rem) {
  .way { grid-template-columns: 5.5rem minmax(0, 1fr); gap: 1rem; }
}
@media (max-width: 26rem) {
  .way { grid-template-columns: 1fr; }
  .way-ill { width: 7rem; }
}

.il-big { font: 800 40px var(--font-board); fill: var(--paper); }

/* ---------- Калькулятор парковки ---------- */
.pcalc { margin: 1.5rem 0 2.5rem; background: var(--sheet); border: 1px solid var(--rule); padding: clamp(1rem, 3vw, 1.75rem); }
.pcalc-custom { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: .9rem 0 1.4rem; color: var(--ink-soft); }
.pcalc-custom label { display: flex; gap: .5rem; align-items: center; }
.pcalc-custom input, .pcalc-custom select {
  font: 700 1.3rem/1 var(--font-board); color: var(--ink); background: var(--paper);
  border: 1px solid var(--rule); border-radius: 3px; padding: .35rem .5rem;
}
.pcalc-custom input { width: 4.5rem; }
.pbars { list-style: none; margin: 0 0 .75rem; padding: 0; display: grid; gap: .6rem; }
.pbar {
  display: grid; grid-template-columns: 3.4rem minmax(0, 1fr) 7.5rem; grid-template-rows: auto auto;
  gap: .35rem .9rem; align-items: center; padding: .75rem .9rem; background: var(--paper); border: 1px solid var(--rule);
}
.pbar.is-best { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: var(--sheet); }
.pb-code {
  grid-row: 1 / span 2; align-self: stretch; display: flex; align-items: center; justify-content: center;
  background: var(--blue); color: var(--paper); font: 800 1.45rem/1 var(--font-board); border-radius: 3px;
}
.pb-info { display: flex; flex-direction: column; min-width: 0; }
.pb-name { font-weight: 700; }
.pbar.is-best .pb-name { color: var(--magenta); }
.pb-walk { font-size: .86rem; color: var(--ink-soft); }
.pb-price { grid-column: 3; grid-row: 1 / span 2; text-align: right; font: 800 1.6rem/1 var(--font-board); font-variant-numeric: tabular-nums; }
.pbar.is-na .pb-price { font: 500 1rem/1.2 var(--font-board); color: var(--ink-soft); }
.pb-track { grid-column: 2; height: 8px; background: var(--rule); border-radius: 4px; overflow: hidden; }
.pb-fill { display: block; height: 100%; background: var(--ink-soft); border-radius: 4px; transition: width .35s ease; }
.pbar.is-best .pb-fill { background: var(--magenta); }
@media (max-width: 34rem) {
  .pbar { grid-template-columns: 2.8rem minmax(0, 1fr); }
  .pb-price { grid-column: 2; grid-row: auto; text-align: left; font-size: 1.35rem; }
  .pb-code { grid-row: 1 / span 3; font-size: 1.2rem; }
}
@media (prefers-reduced-motion: reduce) { .pb-fill { transition: none; } }
