/* Укатим — общие стили. Токены из дизайна (холст «Укатим — дизайн сайта»). */
:root {
  --ink: #13202B;
  --ink-2: #3C4954;
  --muted: #56636D;
  --paper: #F2F4EF;
  --card: #FFFFFF;
  --line: #DCE1DA;
  --soft: #EEF1EC;
  --signal: #FF6A2B;
  --signal-hover: #FF8247;
  --pine: #0F6B5C;
  --pine-dark: #0A4F44;
  --amber: #E0A100;
  --fit-bg: #DDF0EA; --fit-fg: #0A4F44;
  --tight-bg: #FFF1C7; --tight-fg: #6B4700;
  --near-bg: #FDE3D6; --near-fg: #8A2E05;
  --over-bg: #E6EAE4; --over-fg: #3C4954;
  --radius: 22px;
  --display: 'Unbounded', 'Onest', system-ui, sans-serif;
  --text: 'Onest', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--text); color: var(--ink); background: var(--paper); font-size: 16px; line-height: 1.5; }
a { color: var(--pine); }
a:hover { color: var(--pine-dark); }
img { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.disp { font-family: var(--display); letter-spacing: -0.02em; }
.eyebrow { font-size: 14px; font-weight: 700; color: var(--pine); text-transform: uppercase; letter-spacing: .08em; }
.h1 { font-family: var(--display); font-weight: 800; font-size: 64px; line-height: 1.02; margin: 0; letter-spacing: -0.02em; }
.h2 { font-family: var(--display); font-weight: 700; font-size: 40px; line-height: 1.08; margin: 0; letter-spacing: -0.02em; }
.lead { margin: 0; font-size: 19px; line-height: 1.5; color: var(--ink-2); max-width: 560px; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* шапка */
.top { border-bottom: 1px solid var(--line); background: var(--paper); position: relative; z-index: 5; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.logo span { font-family: var(--display); font-size: 22px; font-weight: 800; }
.logo:hover { color: var(--ink); }
.nav { display: flex; gap: 28px; align-items: center; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; }
.nav a:hover { color: var(--pine); }
.nav .btn-dark { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 12px; background: var(--ink); color: #fff; }
.nav .btn-dark:hover { background: #22323F; color: #fff; }
.burger { display: none; width: 44px; height: 44px; border: 1.5px solid var(--ink); border-radius: 12px; background: transparent; align-items: center; justify-content: center; cursor: pointer; }
.mobile-nav { display: none; }

/* кнопки, чипы */
.cta { font: inherit; font-family: var(--display); font-weight: 700; font-size: 18px; min-height: 60px; padding: 0 32px; border: 0; border-radius: 16px; background: var(--signal); color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none; transition: background .15s; }
.cta:hover { background: var(--signal-hover); color: var(--ink); }
.btn-line { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 14px; border-radius: 12px; border: 1.5px solid var(--ink); color: var(--ink); text-decoration: none; font-weight: 700; font-size: 14px; white-space: nowrap; background: transparent; cursor: pointer; font-family: inherit; transition: background .15s, color .15s; }
.btn-line:hover { background: var(--ink); color: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span, button.chip-btn { display: inline-flex; align-items: center; font: inherit; font-size: 15px; font-weight: 600; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid #C9D0C7; background: #fff; color: var(--ink); cursor: pointer; transition: background .15s, color .15s; }
.chip input:checked + span, button.chip-btn[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid var(--signal); outline-offset: 2px; }
.seg-group { display: inline-flex; background: #E6EAE4; border-radius: 12px; padding: 4px; }
.seg { font: inherit; font-size: 14px; font-weight: 600; min-height: 40px; padding: 0 14px; border-radius: 10px; border: 0; background: transparent; color: var(--ink-2); cursor: pointer; }
.seg[aria-pressed="true"] { background: var(--ink); color: #fff; }

/* герой и форма */
.hero { padding: 56px 0 72px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 48px; align-items: center; }
.hero-left { display: flex; flex-direction: column; gap: 28px; }
.live { display: inline-flex; align-self: flex-start; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 14px; font-weight: 600; }
.live i { width: 8px; height: 8px; border-radius: 50%; background: var(--pine); }
.search { background: #fff; border-radius: 24px; padding: 24px; display: flex; flex-direction: column; gap: 18px; box-shadow: 0 20px 48px -28px rgba(19, 32, 43, .45); }
.slots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.slot { display: flex; flex-direction: column; justify-content: center; background: var(--paper); border: 1.5px solid var(--ink); border-radius: 14px; padding: 6px 14px 8px; min-height: 60px; }
.slot > span { font-size: 12px; color: var(--muted); font-weight: 500; }
.slot select, .slot input { font: inherit; font-size: 18px; font-weight: 600; color: var(--ink); border: 0; background: transparent; padding: 0; outline: none; width: 100%; min-width: 0; appearance: none; -webkit-appearance: none; }
.slot:focus-within { box-shadow: 0 0 0 3px var(--signal); }
.search-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }

/* билеты */
.tickets { display: flex; flex-direction: column; gap: 14px; }
.tickets-head { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; color: var(--muted); font-weight: 600; }
.ticket { background: #fff; border-radius: 18px; display: grid; grid-template-columns: minmax(0, 1fr) 132px; box-shadow: 0 1px 0 var(--line), 0 12px 32px -18px rgba(19, 32, 43, .35); text-decoration: none; color: var(--ink); transition: transform .15s; }
a.ticket:hover { transform: translateY(-2px); color: var(--ink); }
.ticket-main { padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.ticket-tags { display: flex; flex-wrap: wrap; gap: 6px; font-size: 12px; color: var(--ink-2); font-weight: 700; }
.ticket-tags span { padding: 3px 8px; border-radius: 6px; background: var(--soft); }
.ticket-city { font-family: var(--display); font-size: 24px; font-weight: 700; }
.ticket-bar { height: 8px; border-radius: 99px; background: var(--soft); overflow: hidden; }
.ticket-bar i { display: block; height: 8px; border-radius: 99px; }
.ticket-split { font-size: 13px; color: var(--ink-2); }
.stub { border-left: 2px dashed var(--line); padding: 16px; display: flex; flex-direction: column; justify-content: center; align-items: flex-end; text-align: right; gap: 2px; }
.stub small { font-size: 12px; color: var(--muted); font-weight: 600; }
.stub b { font-family: var(--display); font-size: 20px; white-space: nowrap; }
.tag { margin-top: 6px; font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 6px; white-space: nowrap; }
.st-fit .tag { background: var(--fit-bg); color: var(--fit-fg); } .st-fit .ticket-bar i { background: var(--pine); }
.st-tight .tag { background: var(--tight-bg); color: var(--tight-fg); } .st-tight .ticket-bar i { background: var(--amber); }
.st-near .tag { background: var(--near-bg); color: var(--near-fg); } .st-near .ticket-bar i { background: var(--signal); }
.st-over .tag { background: var(--over-bg); color: var(--over-fg); } .st-over .ticket-bar i { background: #9AA8B2; }

/* полоса преимуществ */
.band { background: var(--ink); color: #fff; padding: 28px 0; }
.band .wrap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.band b { font-family: var(--display); font-size: 18px; color: #FFB08A; display: block; }
.band p { font-size: 15px; color: #C9D3DA; margin: 6px 0 0; }

/* секции */
.section { padding: 80px 0 40px; }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.route-card { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); border: 1px solid var(--line); transition: transform .15s; }
.route-card:hover { transform: translateY(-3px); color: var(--ink); }
.route-cover { height: 190px; padding: 18px; display: flex; flex-direction: column; justify-content: space-between; }
.route-cover .pills { display: flex; gap: 6px; flex-wrap: wrap; }
.route-cover .pills span { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 99px; background: rgba(255, 255, 255, .92); color: var(--ink); }
.route-cover small { font-size: 12px; color: rgba(255, 255, 255, .85); font-weight: 600; }
.route-body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.route-body h3 { font-family: var(--display); font-size: 21px; line-height: 1.2; margin: 0; }
.route-body p { font-size: 14px; color: var(--ink-2); margin: 0; line-height: 1.45; flex: 1; }
.route-foot { display: flex; justify-content: space-between; align-items: center; padding-top: 14px; border-top: 1px dashed var(--line); }
.route-foot span { font-size: 13px; color: var(--muted); font-weight: 600; }
.route-foot b { font-family: var(--display); font-size: 17px; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.panel { background: #fff; border-radius: var(--radius); padding: 24px; border: 1px solid var(--line); }
.weeks { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 8px; align-items: end; height: 220px; }
.week { display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; text-decoration: none; color: var(--ink); }
.week i { width: 100%; border-radius: 10px 10px 4px 4px; display: block; min-height: 8px; }
.week b { font-size: 11px; font-weight: 700; white-space: nowrap; }
.week small { font-size: 11px; color: var(--muted); white-space: nowrap; }
.legend { display: flex; gap: 18px; flex-wrap: wrap; font-size: 14px; color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend i { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }

.radar { background: var(--signal); border-radius: 32px; padding: 48px; display: flex; flex-wrap: wrap; gap: 32px; align-items: center; justify-content: space-between; }
.radar > div { flex: 1 1 340px; display: flex; flex-direction: column; gap: 12px; }
.radar a.big { display: flex; align-items: center; justify-content: center; min-height: 56px; border-radius: 16px; text-decoration: none; font-weight: 700; font-size: 17px; }
.links { display: flex; flex-wrap: wrap; gap: 10px; }
.links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 12px; background: #fff; border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500; }
.links a:hover { border-color: var(--ink); }

/* подвал */
.foot { background: var(--ink); color: #C9D3DA; padding: 56px 0 40px; margin-top: 40px; }
.foot-grid { display: grid; grid-template-columns: 2fr repeat(3, minmax(0, 1fr)); gap: 32px; }
.foot-grid div { display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.foot-grid b { color: #fff; }
.foot a { color: #C9D3DA; }
.foot a:hover { color: #fff; }
.foot-legal { border-top: 1px solid #2C3B47; padding-top: 20px; margin-top: 36px; font-size: 13px; color: #9AA8B2; }

/* выдача */
.res-top { background: #fff; border-bottom: 1px solid var(--line); }
.res-top form { display: flex; align-items: center; gap: 10px; padding: 12px 24px; flex-wrap: wrap; }
.res-top .slot { min-height: 52px; border-width: 1px; border-color: var(--line); flex: 1 1 150px; }
.budget { display: flex; align-items: center; gap: 12px; flex: 2 1 320px; justify-content: flex-end; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.budget input[type=range] { flex: 1; accent-color: var(--signal); min-height: 44px; }
.budget output { font-family: var(--display); font-size: 18px; font-weight: 700; color: var(--ink); min-width: 104px; text-align: right; }
.layout { display: grid; grid-template-columns: minmax(0, 540px) minmax(0, 1fr); min-height: calc(100vh - 150px); }
.list { padding: 20px 24px 40px; display: flex; flex-direction: column; gap: 12px; border-right: 1px solid var(--line); }
.list-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.map-wrap { position: sticky; top: 0; align-self: start; height: 100vh; min-height: 480px; background: #DCE8EE; }
#map { position: absolute; inset: 0; }
.map-note { position: absolute; left: 16px; top: 16px; z-index: 2; background: #fff; border-radius: 14px; padding: 10px 14px; font-size: 13px; color: var(--ink-2); max-width: 260px; box-shadow: 0 6px 20px -10px rgba(19,32,43,.4); }
.dcard { background: #fff; border-radius: 18px; border: 1.5px solid #fff; transition: border-color .15s; }
.dcard:hover, .dcard.hl { border-color: var(--ink); }
.dcard summary { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; padding: 16px 18px; cursor: pointer; }
.dcard summary::-webkit-details-marker { display: none; }
.dcard .sum-right { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 8px; }
.dcard .sum-right b { font-family: var(--display); font-size: 19px; white-space: nowrap; }
.dcard h3 { font-family: var(--display); font-size: 20px; margin: 0; }
.detail { padding: 0 18px 18px; display: flex; flex-direction: column; gap: 12px; border-top: 1px dashed var(--line); margin-top: -4px; padding-top: 14px; }
.leg { display: grid; grid-template-columns: 80px minmax(0, 1fr) auto; gap: 10px; font-size: 14px; align-items: baseline; }
.leg b { font-weight: 700; }
.costs { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; font-size: 14px; }
.costs .est { color: var(--muted); }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.empty { background: #fff; border-radius: 18px; padding: 24px; text-align: center; color: var(--ink-2); }
.pin { font-family: var(--display); font-size: 12px; font-weight: 700; padding: 5px 9px; border-radius: 10px; white-space: nowrap; box-shadow: 0 4px 12px -4px rgba(19,32,43,.5); cursor: pointer; border: 0; }
.pin.fit { background: var(--pine); color: #fff; }
.pin.tight { background: var(--amber); color: var(--ink); }
.pin.near { background: #fff; color: var(--near-fg); }
.pin { transition: transform .15s; }
.pin.dot { width: 14px; height: 14px; padding: 0; border-radius: 50%; border: 2px solid #fff; }
.pin:hover { transform: scale(1.15); }
.pin.origin { background: var(--ink); color: #fff; }
.view-switch { display: none; }
.disclaimer { font-size: 12px; color: var(--muted); line-height: 1.5; margin: 8px 0 0; }

/* маршрут */
.route-hero { padding: 36px 0 24px; }
.route-hero .wrap { display: flex; flex-direction: column; gap: 18px; }
.crumbs { font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.pills-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pills-row span { font-size: 14px; font-weight: 700; padding: 6px 12px; border-radius: 99px; background: #fff; border: 1px solid var(--line); }
.cover { height: 280px; border-radius: 24px; display: flex; align-items: flex-end; padding: 20px; color: rgba(255,255,255,.85); font-size: 13px; font-weight: 600; }
.cols { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; align-items: start; }
.day { background: #fff; border-radius: var(--radius); padding: 8px 24px 12px; border: 1px solid var(--line); }
.day-head { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 0 12px; gap: 12px; flex-wrap: wrap; }
.step { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 16px; padding: 16px 0; border-top: 1px dashed var(--line); align-items: start; }
.step time { font-family: var(--display); font-size: 16px; font-weight: 700; color: var(--pine); }
.step h4 { margin: 0; font-size: 16px; }
.step p { margin: 4px 0; font-size: 14px; color: var(--ink-2); }
.step small { font-size: 13px; color: var(--muted); font-weight: 600; }
.rain-only, .sun-only { display: contents; }
[data-weather="sun"] .rain-only, [data-weather="rain"] .sun-only { display: none; }
.rain-note { background: var(--tight-bg); color: var(--tight-fg); border-radius: 14px; padding: 12px 16px; font-size: 14px; font-weight: 600; }
.bar-stack { display: flex; height: 12px; border-radius: 99px; overflow: hidden; gap: 2px; }
.cost-row { display: flex; justify-content: space-between; gap: 8px; font-size: 15px; }
.cost-row span { display: inline-flex; align-items: center; gap: 8px; }
.cost-row i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
details.faq { background: #fff; border-radius: 16px; padding: 16px 20px; border: 1px solid var(--line); }
details.faq summary { font-weight: 700; cursor: pointer; }

@media (max-width: 1024px) {
  .hero .wrap, .split, .cols { grid-template-columns: minmax(0, 1fr); }
  .band .wrap, .grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .slots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .list { border-right: 0; padding: 16px; }
  .map-wrap { position: relative; height: auto; min-height: 380px; }
  .view-switch { display: inline-flex; position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); z-index: 10; background: #fff; box-shadow: 0 10px 30px -10px rgba(19,32,43,.5); }
  [data-view="list"] .map-wrap { display: none; }
  [data-view="map"] .list { display: none; }
  [data-view="map"] .map-wrap { height: calc(100vh - 150px); }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .nav { display: none; }
  .burger { display: inline-flex; }
  .mobile-nav.open { display: flex; flex-direction: column; gap: 4px; padding: 8px 16px 16px; border-bottom: 1px solid var(--line); }
  .mobile-nav a { min-height: 44px; display: flex; align-items: center; color: var(--ink); font-weight: 600; text-decoration: none; }
  .h1 { font-size: 38px; }
  .h2 { font-size: 28px; }
  .hero { padding: 32px 0 48px; }
  .slots { grid-template-columns: minmax(0, 1fr); }
  .cta { width: 100%; }
  .band .wrap, .grid3, .foot-grid { grid-template-columns: minmax(0, 1fr); }
  .ticket { grid-template-columns: minmax(0, 1fr) 108px; }
  .radar { padding: 28px 20px; }
  .weeks { height: 180px; gap: 4px; }
  .week b, .week small { font-size: 10px; }
  .res-top form { padding: 12px 16px; }
  .budget { flex-basis: 100%; }
  .step { grid-template-columns: 56px minmax(0, 1fr); }
  .step .act { grid-column: 2; }
  .leg { grid-template-columns: 64px minmax(0, 1fr); }
  .leg > :last-child { grid-column: 2; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
