/* ===== transfer-panemune.eu — основной стиль ===== */
:root {
  --bg: #f5f7fa;
  --surface: #ffffff;
  --surface-2: #eef2f6;
  --text: #121821;
  --muted: #5b6573;
  --line: #dde3ea;
  --brand: #0f3d5e;
  --brand-2: #16577f;
  --brand-soft: #e3eef6;
  --accent: #f2a516;
  --accent-ink: #1b1300;
  --accent-soft: #fff4dc;
  --ok: #1f9d55;
  --warn: #d99a00;
  --few: #e5641e;
  --full: #c62f2f;
  --req: #6b5bd6;
  --closed: #9aa3ae;
  --radius: 16px;
  --shadow: 0 6px 24px rgba(15, 30, 50, .07);
  --max: 1180px;
  color-scheme: light;
}
[data-theme="dark"] {
  --bg: #0e1218;
  --surface: #161c25;
  --surface-2: #1e2632;
  --text: #e8edf3;
  --muted: #9ba7b6;
  --line: #2a3442;
  --brand: #7cc0ec;
  --brand-2: #9ad0f3;
  --brand-soft: #1a2d3d;
  --accent-soft: #2e2512;
  --shadow: 0 6px 24px rgba(0, 0, 0, .35);
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: "Manrope", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px; line-height: 1.6; color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
body.sheet-open { overflow: hidden; }
img, svg { max-width: 100%; }
a { color: var(--brand-2); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .6em; letter-spacing: -.02em; }
h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.12rem; }
p { margin: 0 0 1em; }
.hl { color: var(--accent); }
[data-theme="light"] .hl, :root:not([data-theme="dark"]) .hl { color: #c27c06; }
.container { width: min(100% - 32px, var(--max)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 200; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: 8px; }
.skip-link:focus { left: 8px; }
.kicker { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-2); margin-bottom: 14px; }
.kicker::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }

/* ===== Header ===== */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 800; font-size: 1.08rem; }
.logo-mark { width: 36px; height: 36px; border-radius: 10px; background: var(--brand); display: grid; place-items: center; color: #fff; flex: none; }
[data-theme="dark"] .logo-mark { color: #0e1218; }
.logo small { display: block; font-weight: 500; font-size: .72rem; color: var(--muted); }
.nav { display: flex; gap: 2px; margin-left: 8px; }
.nav a { text-decoration: none; color: var(--text); padding: 8px 12px; border-radius: 8px; font-weight: 600; font-size: .94rem; }
.nav a:hover { background: var(--surface-2); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.lang { display: flex; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.lang a { padding: 6px 9px; font-size: .78rem; font-weight: 700; text-decoration: none; color: var(--muted); }
.lang a:hover { background: var(--surface-2); }
.lang a[aria-current] { background: var(--brand); color: #fff; }
[data-theme="dark"] .lang a[aria-current] { color: #0e1218; }
.icon-btn { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; text-decoration: none; font: inherit; font-size: 1.1rem; flex: none; }
.icon-btn:hover { background: var(--surface-2); }
.icon-btn:disabled { opacity: .35; cursor: default; }
.icon-btn svg { width: 18px; height: 18px; }
.burger { display: none; }

/* ===== Buttons ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 12px; font-weight: 700; font-size: .98rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; font-family: inherit; transition: transform .2s cubic-bezier(.34,1.56,.64,1), background .2s ease, box-shadow .25s ease, border-color .2s; line-height: 1.2; position: relative; overflow: hidden; isolation: isolate; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.97); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #ffb52e; }
.btn-dark { background: var(--brand); color: #fff; }
[data-theme="dark"] .btn-dark { color: #0e1218; }
.btn-outline { border-color: var(--line); color: var(--text); background: var(--surface); }
.btn-outline:hover { border-color: var(--brand-2); }
.btn-ghost-light { border-color: rgba(255,255,255,.5); color: #fff; background: transparent; }
.btn-wa { background: #25d366; color: #062b14; }
.btn-tg { background: #1979b3; color: #fff; }
.btn-sm { padding: 8px 14px; font-size: .88rem; border-radius: 10px; }
.btn-block { width: 100%; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* ===== Hero ===== */
.hero { padding: 40px 0 28px; }
.hero-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 22px; align-items: stretch; }
.hero-main { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 40px; box-shadow: var(--shadow); display: flex; flex-direction: column; justify-content: center; }
.hero-main .lead { font-size: 1.1rem; color: var(--muted); max-width: 600px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 20px; }
.checks { list-style: none; padding: 0; margin: 4px 0 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.checks li { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: .92rem; color: var(--muted); }
.checks li::before { content: "✓"; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-2); font-size: .72rem; font-weight: 800; }
.hero-side { display: grid; gap: 16px; }
.price-card { background: var(--brand); color: #fff; border-radius: 24px; padding: 26px; position: relative; overflow: hidden; }
[data-theme="dark"] .price-card { background: #12324a; }
.price-card::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(242,165,22,.35), transparent 70%); }
.price-card .label { font-size: .82rem; font-weight: 700; opacity: .8; text-transform: uppercase; letter-spacing: .06em; }
.price-card .price { font-size: 3.4rem; font-weight: 800; line-height: 1; margin: 8px 0 4px; }
.price-card .price small { font-size: 1rem; font-weight: 600; opacity: .8; }
.price-card p { margin: 0 0 16px; opacity: .85; }
.price-card .btn { position: relative; z-index: 1; }
.map-card { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 20px; box-shadow: var(--shadow); }
.map-card .row { display: flex; justify-content: space-between; gap: 12px; font-size: .85rem; color: var(--muted); }
.map-card .route-map { display: block; width: 100%; height: auto; margin: 10px 0 6px; }
/* --- Карта маршрута --- */
.route-map { --rm-land: #eef3f8; --rm-sea: #cfe4f3; --rm-wave: #8fbfe0; --rm-border: #9db0c3; --rm-text: #1d3346; --rm-muted: #7189a0; --rm-river: #7fb9e2; --rm-dot: #0f3d5e; --rm-halo: #eef3f8; border-radius: 14px; color: var(--rm-wave); }
[data-theme="dark"] .route-map { --rm-land: #1a2430; --rm-sea: #10283c; --rm-wave: #2a5677; --rm-border: #3f546a; --rm-text: #dbe6f0; --rm-muted: #8aa0b4; --rm-river: #2f6a96; --rm-dot: #7cc0ec; --rm-halo: #1a2430; }
.rm-land { fill: var(--rm-land); }
.rm-island { stroke: var(--rm-border); stroke-width: .4; stroke-opacity: .5; }
.rm-sea { fill: var(--rm-sea); }
.rm-waves { opacity: .28; animation: rm-sea 14s linear infinite; }
@keyframes rm-sea { from { transform: translateX(0); } to { transform: translateX(-14px); } }
.rm-border { fill: none; stroke: var(--rm-border); stroke-width: .9; stroke-dasharray: 3 3; }
.rm-river { fill: none; stroke: var(--rm-river); stroke-width: 2.2; stroke-linecap: round; }
.rm-country text { font-family: inherit; font-size: 9px; font-weight: 800; fill: var(--rm-muted); opacity: .55; letter-spacing: .1em; }
.rm-sea-label { font-family: inherit; font-size: 7.5px; font-style: italic; letter-spacing: .06em; fill: var(--rm-muted); opacity: .8; }
.rm-road { fill: none; stroke: var(--rm-border); stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; opacity: .35; }
.rm-route, .rm-route-glow, .rm-route-flow { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.rm-route { stroke: url(#rm-grad); stroke-width: 3.2; stroke-dasharray: 1; stroke-dashoffset: 1; }
.rm-route-glow { stroke: #f2a516; stroke-width: 7; opacity: 0; filter: url(#rm-blur); stroke-dasharray: 1; stroke-dashoffset: 1; }
.rm-route-flow { stroke: #fff; stroke-width: 1.1; opacity: 0; stroke-dasharray: .012 .05; }
.rm-walk { fill: none; stroke: #c62f2f; stroke-width: 2; stroke-linecap: round; stroke-dasharray: 1.5 2.5; opacity: 0; }
.rm-city { opacity: 0; transform-box: fill-box; transform-origin: center; transform: scale(.2); }
.rm-dot { fill: var(--rm-dot); stroke: #fff; stroke-width: 2; }
.rm-small { stroke-width: 1.6; }
.rm-end .rm-dot { fill: #f2a516; }
.rm-ru .rm-dot { fill: #c62f2f; }
.rm-ring { fill: none; stroke: #f2a516; stroke-width: 1.5; opacity: 0; transform-box: fill-box; transform-origin: center; }
.rm-start .rm-ring { stroke: var(--rm-dot); }
.rm-labels text { font-family: inherit; font-size: 10px; font-weight: 800; fill: var(--rm-text); paint-order: stroke; stroke: var(--rm-halo); stroke-width: 3px; stroke-linejoin: round; opacity: 0; }
.rm-labels .rm-minor { font-size: 8.5px; font-weight: 700; fill: var(--rm-muted); }
.rm-bus { opacity: 0; transition: opacity .4s; }
.rm-bus > circle:first-child { fill: #0f3d5e; stroke: #fff; stroke-width: 1.8; }
.rm-bus path, .rm-bus .rm-wheel { fill: #fff; }
.rm-bus .rm-wheel { fill: #f2a516; }
.rm-legend { display: flex; gap: 16px; justify-content: center; font-size: .78rem; color: var(--muted); margin: 2px 0 10px; }
.rm-legend span { display: inline-flex; align-items: center; gap: 6px; }
.rm-legend i { display: inline-block; width: 22px; height: 0; border-top: 3px solid #f2a516; border-radius: 3px; }
.rm-legend .rm-key-walk { border-top: 2px dashed #c62f2f; }

/* запуск: класс .is-on ставит main.js, когда карта видна */
.route-map.is-on .rm-route { animation: rm-draw 2.4s cubic-bezier(.45,.05,.25,1) .15s forwards; }
.route-map.is-on .rm-route-glow { animation: rm-draw 2.4s cubic-bezier(.45,.05,.25,1) .15s forwards, rm-fade-glow 2.4s .15s forwards; }
.route-map.is-on .rm-route-flow { animation: rm-show .6s 2.6s forwards, rm-flow 2.8s linear 2.6s infinite; }
.route-map.is-on .rm-walk { animation: rm-show .4s 2.7s forwards, rm-march .8s linear 2.7s infinite; }
.route-map.is-on .rm-city { animation: rm-pop .55s cubic-bezier(.34,1.56,.64,1) var(--d) forwards; }
.route-map.is-on .rm-labels text { animation: rm-show .5s ease var(--d) forwards; }
.route-map.is-on .rm-ring { animation: rm-ping 2.4s ease-out calc(var(--d, 0s) + 2.6s) infinite; }
.route-map.is-on .rm-end .rm-ring { animation-delay: 3s; }
.route-map.is-moving .rm-bus { opacity: 1; }
@keyframes rm-draw { to { stroke-dashoffset: 0; } }
@keyframes rm-fade-glow { 0% { opacity: 0; } 60% { opacity: .55; } 100% { opacity: .3; } }
@keyframes rm-show { to { opacity: 1; } }
@keyframes rm-flow { from { stroke-dashoffset: 0; opacity: .7; } to { stroke-dashoffset: -.124; opacity: .7; } }
@keyframes rm-march { to { stroke-dashoffset: -8; } }
@keyframes rm-pop { to { opacity: 1; transform: scale(1); } }
@keyframes rm-ping { 0% { opacity: .8; transform: scale(1); } 100% { opacity: 0; transform: scale(3.2); } }
@media (prefers-reduced-motion: reduce) {
  .route-map *, .route-map.is-on * { animation: none !important; }
  .rm-route, .rm-route-glow { stroke-dashoffset: 0; }
  .rm-route-glow { opacity: .3; }
  .rm-city, .rm-labels text, .rm-walk { opacity: 1; transform: none; }
}

.map-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.map-stats div { background: var(--surface-2); border-radius: 12px; padding: 10px 12px; }
.map-stats div > span { display: block; font-size: .78rem; color: var(--muted); }
.map-stats [data-count] { font-variant-numeric: tabular-nums; }
.map-stats b { font-size: 1.25rem; }

.hero-bottom { display: grid; grid-template-columns: 1.35fr 1fr; gap: 22px; margin-top: 22px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 20px 22px; box-shadow: var(--shadow); }
.panel h3, .panel .panel-h { font-size: 1rem; font-weight: 700; line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .6em; display: flex; align-items: center; gap: 8px; }
.companions { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; }
.companions button { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 10px; text-align: left; background: var(--surface-2); border: 1px solid transparent; border-radius: 12px; padding: 10px 14px; cursor: pointer; font: inherit; color: var(--text); }
.companions button:hover { border-color: var(--brand-2); }
.companions small { display: block; color: var(--muted); font-size: .8rem; }
.companions .badge { font-weight: 800; color: var(--brand-2); white-space: nowrap; }
.companions .empty { color: var(--muted); font-size: .92rem; }
.border-panel { background: var(--accent-soft); border-color: #f0d79a; }
[data-theme="dark"] .border-panel { border-color: #5c4a1a; }
.border-panel p { font-size: .93rem; margin-bottom: 10px; }
.link-arrow { font-weight: 700; text-decoration: none; }
.link-arrow::after { content: " →"; }

/* ===== Sections ===== */
section.block { padding: 72px 0; }
.section-head { max-width: 760px; margin-bottom: 30px; }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.card p { color: var(--muted); }
.card .ico { width: 46px; height: 46px; border-radius: 14px; background: var(--brand-soft); color: var(--brand-2); display: grid; place-items: center; margin-bottom: 14px; transition: background .3s, color .3s, transform .4s cubic-bezier(.34,1.56,.64,1); }
.card .ico .i { width: 24px; height: 24px; }
.card .card-price { font-size: 1.6rem; font-weight: 800; margin: auto 0 12px; }
.card .card-price small { font-size: .88rem; color: var(--muted); font-weight: 600; }

/* ===== Booking widget ===== */
.tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 6px; margin-bottom: 16px; }
.tab { display: flex; align-items: center; justify-content: center; gap: 10px; text-align: left; transition: background .2s, border-color .2s; border: 2px solid transparent; background: transparent; border-radius: 12px; padding: 10px 8px; cursor: pointer; font: inherit; color: var(--text); font-weight: 700; font-size: .92rem; line-height: 1.25; }
.tab small { display: block; font-weight: 600; color: var(--muted); font-size: .78rem; }
.tab[aria-selected="true"] { border-color: var(--accent); background: var(--accent-soft); }
.tab:hover:not([aria-selected="true"]) { background: var(--surface-2); }
.booking { display: grid; grid-template-columns: 1fr 300px; gap: 18px; align-items: start; }
.cal { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 20px; box-shadow: var(--shadow); }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.cal-head h3 { margin: 0; text-transform: capitalize; font-size: 1.25rem; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-dow { text-align: center; font-size: .75rem; font-weight: 700; color: var(--muted); padding: 4px 0; text-transform: uppercase; }
.day { min-height: 72px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; font: inherit; color: var(--text); cursor: pointer; position: relative; padding: 4px 2px; }
.day b { font-size: 1.02rem; }
.day .occ { font-size: .74rem; font-weight: 700; color: var(--muted); }
.day .st { font-size: .62rem; font-weight: 600; color: var(--st); line-height: 1.1; text-align: center; }
.day:hover:not(:disabled) { border-color: var(--brand-2); }
.day:disabled { cursor: not-allowed; opacity: .4; }
.day.empty { visibility: hidden; }
.day.today { border-color: var(--accent); }
.day::before { content: ""; position: absolute; left: 8px; right: 8px; bottom: 4px; height: 3px; border-radius: 3px; background: var(--st, transparent); opacity: .85; }
.st-free { --st: var(--ok); } .st-gathering { --st: var(--warn); } .st-few { --st: var(--few); }
.st-full { --st: var(--full); } .st-request { --st: var(--req); } .st-closed { --st: var(--closed); }
.cal-note { font-size: .82rem; color: var(--muted); margin: 12px 0 0; }
.cal-side { display: grid; gap: 16px; }
.legend { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 10px; font-size: .84rem; color: var(--muted); }
.legend li { display: flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 50%; background: var(--st); flex: none; }

/* ===== Sheet (dialog) ===== */
dialog.sheet { border: 0; padding: 0; margin: 12px 12px 12px auto; width: min(500px, calc(100% - 24px)); max-height: calc(100% - 24px); height: calc(100% - 24px); border-radius: 24px; background: var(--surface); color: var(--text); box-shadow: 0 30px 80px rgba(0,0,0,.35); overflow: hidden; }
dialog.sheet[open] { display: flex; flex-direction: column; animation: sheet-in .25s ease; }
dialog.sheet::backdrop { background: rgba(10, 18, 28, .45); backdrop-filter: blur(4px); }
@keyframes sheet-in { from { transform: translateX(30px); opacity: 0; } to { transform: none; opacity: 1; } }
.sheet-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 22px 24px 8px; }
.sheet-head h2 { font-size: 1.5rem; margin: 0; }
.sheet-body { overflow-y: auto; padding: 4px 24px 24px; flex: 1; }
.status-line { display: flex; align-items: center; gap: 10px; margin: 6px 0 8px; font-weight: 700; font-size: .92rem; }
.pill { display: inline-block; padding: 3px 10px; border-radius: 99px; font-size: .8rem; font-weight: 800; background: color-mix(in srgb, var(--st) 15%, transparent); color: var(--st); }
.occ-bar { height: 6px; border-radius: 6px; background: var(--surface-2); overflow: hidden; margin-bottom: 18px; }
.occ-bar span { display: block; height: 100%; background: var(--st, var(--ok)); border-radius: 6px; width: 0; transition: width .3s; }
.field { margin-bottom: 16px; }
.field > label, .field legend { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 7px; padding: 0; }
fieldset.field { border: 0; padding: 0; margin: 0 0 16px; min-width: 0; }
.field input[type=text], .field input[type=tel], .field input[type=email], .field input[type=date], .field select, .field textarea { width: 100%; padding: 12px 13px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--text); font: inherit; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--brand-2); outline-offset: 1px; }
.field .hint { font-size: .78rem; color: var(--muted); margin: 6px 0 0; }
.opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.opts.four { grid-template-columns: repeat(4, 1fr); }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.opt span { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; height: 100%; text-align: center; padding: 9px 8px; transition: border-color .2s, background .2s, transform .15s; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; font-weight: 700; font-size: .9rem; line-height: 1.25; background: var(--surface); }
.opt span small { display: block; font-weight: 500; font-size: .74rem; color: var(--muted); }
.opt input:checked + span { border-color: var(--accent); background: var(--accent-soft); }
.opt input:focus-visible + span { outline: 2px solid var(--brand-2); outline-offset: 1px; }
.stepper { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 14px; padding: 5px; }
.stepper output { min-width: 38px; text-align: center; font-weight: 800; font-size: 1.15rem; }
.phone-row { display: grid; grid-template-columns: 118px 1fr; gap: 8px; }
.total { display: flex; justify-content: space-between; align-items: center; background: var(--surface-2); padding: 14px 16px; border-radius: 14px; margin: 4px 0 14px; }
.total small { display: block; color: var(--muted); font-size: .82rem; }
.total b { font-size: 1.5rem; }
.fine { font-size: .8rem; color: var(--muted); margin-top: 10px; }
.form-msg { margin-top: 12px; padding: 12px 14px; border-radius: 12px; display: none; background: #fdecec; color: #8a1c1c; font-weight: 600; }
.form-msg.show { display: block; }
.success { text-align: center; padding: 30px 6px; }
.success .big { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%; background: color-mix(in srgb, var(--ok) 15%, transparent); color: var(--ok); display: grid; place-items: center; font-size: 2rem; }
.success .num { font-size: 1.3rem; font-weight: 800; color: var(--brand-2); }
.success .hero-cta { justify-content: center; }

/* ===== Table ===== */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; min-width: 640px; }
th, td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--surface-2); font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
tbody th { font-weight: 700; width: 20%; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }

/* ===== Steps / facts ===== */
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: s; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.steps li::before { content: counter(s); display: block; font-size: 2.2rem; font-weight: 800; color: var(--accent); line-height: 1; margin-bottom: 12px; }
.steps p { color: var(--muted); margin: 0; font-size: .93rem; }
.info-split { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; margin-top: 18px; }
.sources-box h3 { font-size: 1rem; }
.sources-box ul { margin: 0; padding-left: 1.1em; }
.sources-box li { margin-bottom: 6px; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 0 0 28px; }
.fact { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.fact .i { width: 22px; height: 22px; color: var(--accent); margin-bottom: 6px; }
.fact b { display: block; font-size: 1.5rem; color: var(--brand-2); }
.fact span { color: var(--muted); font-size: .88rem; }

/* ===== FAQ ===== */
.faq { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; align-items: start; }
.faq.one { grid-template-columns: 1fr; max-width: 860px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.faq summary { cursor: pointer; padding: 16px 20px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--brand-soft); font-size: 1.2rem; line-height: 1; color: var(--brand-2); transition: transform .35s cubic-bezier(.34,1.56,.64,1), background .2s; }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--accent-soft); }
.faq .a { padding: 0 20px 16px; color: var(--muted); }

/* ===== CTA ===== */
.cta { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 36px 40px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; box-shadow: var(--shadow); }
.cta h2 { margin-bottom: 6px; }
.cta p { color: var(--muted); margin: 0; }
.cta .hero-cta { margin: 0; }

/* ===== Article pages ===== */
.page-hero { padding: 48px 0 10px; }
.page-hero .inner { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 36px 40px; box-shadow: var(--shadow); }
.page-hero p { color: var(--muted); max-width: 760px; font-size: 1.08rem; }
.breadcrumbs { font-size: .85rem; margin-bottom: 14px; color: var(--muted); }
.prose { max-width: 860px; }
.prose h2 { margin-top: 1.6em; font-size: clamp(1.4rem, 3vw, 1.9rem); }
.prose ul, .prose ol:not(.steps) { padding-left: 1.3em; }
.prose li { margin-bottom: .35em; }
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; margin-bottom: 30px; }
.toc ol { margin: 8px 0 0; }
.callout { background: var(--accent-soft); border-left: 4px solid var(--accent); padding: 14px 18px; border-radius: 10px; margin: 18px 0; }
.sources { font-size: .86rem; color: var(--muted); margin-top: 22px; }
.updated { font-size: .82rem; color: var(--muted); }

/* ===== Footer ===== */
.site-footer { background: #0b1520; color: #b9c4d0; padding: 56px 0 28px; margin-top: 48px; font-size: .92rem; }
.site-footer a { color: #e3ebf3; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 30px; }
.site-footer h4, .site-footer .foot-h { color: #fff; margin: 0 0 12px; font-size: .95rem; font-weight: 700; line-height: 1.6; letter-spacing: normal; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; }
.socials { display: flex; gap: 8px; margin-top: 14px; }
.socials a { width: 36px; height: 36px; border-radius: 10px; background: #16263a; display: grid; place-items: center; }
.socials svg { width: 18px; height: 18px; fill: #e3ebf3; }
.foot-lang { display: flex; gap: 12px; margin-top: 14px; }
/* --- Счётчик посетителей: «стеклянная» карточка над подвалом, как на panemune.ee --- */
.vc-wrap { margin-top: 56px; }
.vc {
  --vc-accent: var(--accent); --vc-ink: #c47c06; --vc-text: var(--text); --vc-muted: var(--muted);
  --vc-line: color-mix(in srgb, var(--text) 22%, transparent); --vc-bg: var(--surface);
  --glass: rgba(255, 255, 255, .62); --glass-line: rgba(18, 24, 33, .07); --specular: rgba(255, 255, 255, .7);
  --spot: rgba(242, 165, 22, .13); --spot-line: rgba(242, 165, 22, .85);
  display: grid; grid-template-columns: auto auto minmax(10rem, 1fr) auto; align-items: center;
  gap: clamp(14px, 2.4vw, 34px); min-height: 104px; padding: 16px clamp(16px, 2.4vw, 28px); color: var(--vc-text);
  visibility: hidden; opacity: 0; transition: opacity .5s, visibility 0s .5s;
}
[data-theme="dark"] .vc {
  --vc-ink: var(--accent); --glass: rgba(22, 28, 37, .62); --glass-line: rgba(255, 255, 255, .07); --specular: rgba(255, 255, 255, .12);
  --spot: rgba(242, 165, 22, .15); --spot-line: rgba(255, 196, 90, .85);
}
.vc[hidden] { display: none; }
.vc[data-ready] { visibility: visible; opacity: 1; transition: opacity .5s; }
.vc p { margin: 0; }
/* стекло: полупрозрачный фон, блик сверху, мягкая тень */
.glass { position: relative; border: 1px solid var(--glass-line); border-radius: 28px;
  background: linear-gradient(160deg, var(--specular), transparent 42%), var(--glass);
  -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%);
  box-shadow: inset 0 1px 0 0 var(--specular), 0 28px 60px -36px rgba(15, 61, 94, .4), 0 2px 10px -6px rgba(18, 24, 33, .14); }
[data-theme="dark"] .glass { box-shadow: inset 0 1px 0 0 var(--specular), 0 34px 70px -40px rgba(0, 0, 0, .9), 0 2px 12px -6px rgba(0, 0, 0, .6); }
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) { .glass { background: var(--surface); } }
/* подсветка за курсором: пятно внутри и светящаяся кромка */
[data-spotlight] { isolation: isolate; }
[data-spotlight]::before, [data-spotlight]::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .45s; }
[data-spotlight]::before { z-index: -1; background: radial-gradient(420px circle at var(--mouse-x, 50%) var(--mouse-y, 0%), var(--spot), transparent 62%); }
[data-spotlight]::after { padding: 1.5px; background: radial-gradient(240px circle at var(--mouse-x, 50%) var(--mouse-y, 0%), var(--spot-line), transparent 65%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude; }
@media (hover: hover) and (pointer: fine) { [data-spotlight]:hover::before, [data-spotlight]:hover::after { opacity: 1; } }
@media (forced-colors: active) { .glass { border: 1px solid CanvasText; } }

.vc-live { display: flex; align-items: center; gap: 14px; padding-left: 6px; }
.vc-dot { position: relative; flex: none; width: 10px; height: 10px; border-radius: 99px; background: #22c55e; }
.vc-dot::after { content: ""; position: absolute; inset: -6px; border: 2px solid #22c55e; border-radius: 99px; opacity: 0; animation: vc-pulse 2.2s cubic-bezier(.2,.8,.2,1) infinite; }
@keyframes vc-pulse { 0% { opacity: .9; transform: scale(.5); } 80%, 100% { opacity: 0; transform: scale(1.35); } }
.vc-num { display: flex; overflow: hidden; height: 1.15em; line-height: 1.15; font-size: clamp(1.45rem, 1.1rem + 1.4vw, 2.1rem); font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: pre; }
.vc-digit { display: block; height: 1.15em; }
.vc-digit > span { display: flex; flex-direction: column; transform: translateY(calc(var(--n, 0) * -1.15em)); transition: transform 1.1s cubic-bezier(.34,1.56,.64,1); transition-delay: calc(var(--i, 0) * 70ms); }
.vc-digit i { height: 1.15em; font-style: normal; text-align: center; }
.vc-sep { display: block; height: 1.15em; }
.vc-cap { display: block; color: var(--vc-muted); font-size: .74rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.vc-chart { position: relative; min-width: 0; }
.vc-chart svg { display: block; width: 100%; height: 40px; overflow: visible; }
.vc-line { fill: none; stroke: var(--vc-accent); stroke-width: 2.25px; stroke-linecap: round; }
.vc-area { opacity: 0; transition: opacity .8s .6s; }
.vc[data-ready] .vc-area { opacity: 1; }
.vc[data-draw] .vc-chart svg { animation: vc-draw 1.5s cubic-bezier(.2,.8,.2,1) both; }
@keyframes vc-draw { from { clip-path: inset(-12px 100% -12px -12px); } to { clip-path: inset(-12px); } }
.vc-days { position: absolute; inset: 0 0 auto; height: 40px; margin: 0; padding: 0; list-style: none; display: flex; }
.vc-days li { position: relative; flex: 1 1 0; border-radius: 6px; cursor: default; }
.vc-days li:focus-visible { outline: 2px solid var(--vc-line); outline-offset: -2px; }
.vc-days li::before { content: ""; position: absolute; left: 50%; top: var(--y, 100%); width: 8px; height: 8px; border-radius: 99px; background: var(--vc-accent); border: 2px solid var(--vc-bg); transform: translate(-50%, -50%); opacity: 0; transition: opacity .2s; }
.vc-days li:last-child::before, .vc-days li:hover::before, .vc-days li:focus-visible::before { opacity: 1; }
.vc-days b { position: absolute; z-index: 2; bottom: calc(100% + 6px); left: 50%; padding: 4px 9px; border-radius: 9px; border: 1px solid var(--vc-line); background: var(--surface); color: var(--vc-text); font-weight: 700; font-size: .76rem; white-space: nowrap; pointer-events: none; opacity: 0; transform: translate(-50%, 4px); transition: opacity .2s ease, transform .3s cubic-bezier(.34,1.56,.64,1); }
.vc-days li:first-child b { transform: translate(-15%, 4px); }
.vc-days li:last-child b { transform: translate(-85%, 4px); }
.vc-days li:hover b, .vc-days li:focus-visible b { opacity: 1; transform: translate(-50%, 0); }
.vc-days li:first-child:hover b, .vc-days li:first-child:focus-visible b { transform: translate(-15%, 0); }
.vc-days li:last-child:hover b, .vc-days li:last-child:focus-visible b { transform: translate(-85%, 0); }
.vc-chart .vc-cap { text-align: right; margin-top: 6px; }
.vc-total { text-align: right; }
.vc-total .vc-num { justify-content: flex-end; color: var(--vc-ink); }
@media (max-width: 760px) {
  .vc { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 10px; min-height: 190px; text-align: center; }
  .vc-live { justify-content: center; gap: 10px; padding: 0; }
  .vc-num, .vc-total .vc-num { justify-content: center; }
  .vc-total { text-align: center; }
  .vc-chart { grid-area: 2 / 1 / auto / -1; }
  .vc-cap { white-space: normal; font-size: .66rem; }
  .vc-chart .vc-cap { text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  .vc-dot::after, .vc[data-draw] .vc-chart svg { animation: none; }
  .vc-digit > span { transition: none; }
}
.foot-bottom { border-top: 1px solid #1f2d3c; margin-top: 28px; padding-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .82rem; }

/* ===== Floating WA ===== */
.float-wa { position: fixed; right: 18px; bottom: 18px; z-index: 40; width: 56px; height: 56px; border-radius: 50%; background: #25d366; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.float-wa svg { width: 28px; height: 28px; fill: #fff; }

/* ===== Responsive ===== */
@media (max-width: 1020px) {
  .hero-grid, .hero-bottom, .booking, .info-split { grid-template-columns: 1fr; }
  .grid-4, .steps, .facts { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; background: var(--surface); border-bottom: 1px solid var(--line); padding: 10px 16px; }
  .nav.open { display: flex; }
  .burger { display: grid; }
  .header-actions .btn { display: none; }
}
@media (max-width: 640px) {
  section.block { padding: 52px 0; }
  .grid-2, .grid-4, .steps, .foot-grid, .faq { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr 1fr; gap: 10px; }
  .fact { padding: 14px; }
  .fact b { font-size: 1.25rem; }
  .hero { padding-top: 18px; }
  .hero-main, .page-hero .inner { padding: 26px 20px; }
  .tabs { grid-template-columns: 1fr 1fr; }
  .day { min-height: 54px; }
  .day .st { display: none; }
  .opts.four { grid-template-columns: 1fr 1fr; }
  .lang, .header-actions .icon-btn[data-cfg-href] { display: none; }
  .cta { padding: 26px 20px; }
  dialog.sheet { margin: auto 0 0; width: 100%; max-width: 100%; height: 92%; max-height: 92%; border-radius: 24px 24px 0 0; }
  @keyframes sheet-in { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
}

/* ================= Иконки ================= */
.i { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.2em; }
.btn .i, .btn svg { width: 18px; height: 18px; }
.i-arrow { transition: transform .3s cubic-bezier(.34,1.56,.64,1); }
.btn:hover .i-arrow, a:hover > .i-arrow { transform: translateX(4px); }
.i-ext { width: .85em; height: .85em; margin-left: 3px; opacity: .6; vertical-align: -.05em; }
.panel h3 .i, .panel .panel-h .i, .sources-box h3 .i { width: 20px; height: 20px; color: var(--accent); }
.border-panel h3 .i { color: #c47c06; }
[data-theme="dark"] .border-panel h3 .i { color: var(--accent); }
.tab .tab-ico { width: 22px; height: 22px; color: var(--muted); transition: color .2s, transform .3s; }
.tab[aria-selected="true"] .tab-ico { color: #c47c06; transform: scale(1.08); }
[data-theme="dark"] .tab[aria-selected="true"] .tab-ico { color: var(--accent); }
.opt span .i { width: 18px; height: 18px; color: var(--muted); margin-bottom: 2px; transition: color .2s, transform .3s cubic-bezier(.34,1.56,.64,1); }
.opt span b { font-weight: 700; }
.opt input:checked + span .i { color: #c47c06; transform: scale(1.12); }
[data-theme="dark"] .opt input:checked + span .i { color: var(--accent); }
.opt span .i-wa { color: #25d366; fill: currentColor; stroke: none; }
.opt span .i-tg { color: #2aa3df; fill: currentColor; stroke: none; }
.opt span:hover { border-color: var(--brand-2); }
.opt:active span { transform: scale(.97); }
.foot-ico { display: inline-flex; align-items: center; gap: 8px; }
.foot-ico svg { width: 16px; height: 16px; flex: none; opacity: .75; }
.foot-ico .i { stroke: currentColor; }
.foot-ico svg[fill="currentColor"] { fill: currentColor; }

/* ================= Микроанимации ================= */
/* блик на основной кнопке */
.btn-primary::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%); transform: translateX(-120%); transition: transform .7s ease; }
.btn-primary:hover::after { transform: translateX(120%); }
.btn-primary:hover { box-shadow: 0 8px 22px rgba(242,165,22,.35); }
.btn-wa:hover { box-shadow: 0 8px 22px rgba(37,211,102,.3); }
.btn-tg:hover { box-shadow: 0 8px 22px rgba(25,121,179,.35); }
.btn-outline:hover { box-shadow: 0 6px 18px rgba(15,30,50,.08); }

/* карточки */
.card, .steps li, .fact, .panel { transition: transform .35s cubic-bezier(.16,1,.3,1), box-shadow .35s ease, border-color .25s; }
.card:hover, .steps li:hover { transform: translateY(-5px); box-shadow: 0 18px 40px rgba(15,30,50,.12); border-color: color-mix(in srgb, var(--brand-2) 35%, var(--line)); }
[data-theme="dark"] .card:hover, [data-theme="dark"] .steps li:hover { box-shadow: 0 18px 40px rgba(0,0,0,.45); }
.card:hover .ico { background: var(--accent); color: var(--accent-ink); transform: rotate(-6deg) scale(1.06); }
.fact:hover { transform: translateY(-3px); }
.companions button { transition: border-color .2s, transform .25s cubic-bezier(.16,1,.3,1), background .2s; }
.companions button:hover { transform: translateX(4px); }
.day { transition: transform .2s cubic-bezier(.34,1.56,.64,1), border-color .2s, box-shadow .2s; }
.day:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(15,30,50,.12); }
.tab:hover .tab-ico { transform: translateY(-1px); }

/* смена месяца в календаре */
.cal-grid.cal-anim .day:not(.empty) { animation: day-in .45s cubic-bezier(.16,1,.3,1) both; animation-delay: calc(var(--k, 0) * 12ms); }
@keyframes day-in { from { opacity: 0; transform: translateY(8px) scale(.96); } to { opacity: 1; transform: none; } }

/* FAQ — плавное раскрытие */
.faq details { transition: border-color .25s, box-shadow .25s; }
.faq details[open] { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); box-shadow: var(--shadow); }
.faq details[open] .a { animation: faq-in .45s cubic-bezier(.16,1,.3,1); }
@keyframes faq-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.faq summary:hover { color: var(--brand-2); }

/* шапка при прокрутке + полоса прогресса */
.site-header { transition: box-shadow .3s ease, background .3s ease; }
.site-header.scrolled { box-shadow: 0 8px 28px rgba(15,30,50,.1); }
[data-theme="dark"] .site-header.scrolled { box-shadow: 0 8px 28px rgba(0,0,0,.45); }
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; background: linear-gradient(90deg, var(--accent), #ff7a1a); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); pointer-events: none; }

/* кнопка WhatsApp — мягкая пульсация */
.float-wa::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25d366; animation: wa-ping 2.8s cubic-bezier(.16,1,.3,1) infinite; }
.float-wa { transition: transform .3s cubic-bezier(.34,1.56,.64,1); }
.float-wa:hover { transform: scale(1.08) rotate(-6deg); }
@keyframes wa-ping { 0% { opacity: .7; transform: scale(1); } 70%, 100% { opacity: 0; transform: scale(1.6); } }

/* ценовая карточка — медленное «дыхание» свечения */
.price-card::after { animation: glow-drift 9s ease-in-out infinite alternate; }
@keyframes glow-drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(-60px, 40px) scale(1.25); } }

/* точка в «кикере» */
.kicker::before { animation: kicker-pulse 2.6s ease-in-out infinite; }
@keyframes kicker-pulse { 50% { box-shadow: 0 0 0 7px transparent; } }

/* первый экран — появление при загрузке */
.hero-main > *, .hero-side > *, .hero-bottom > *, .page-hero .inner > * { animation: hero-in .9s cubic-bezier(.16,1,.3,1) both; }
.hero-main > :nth-child(2), .page-hero .inner > :nth-child(2) { animation-delay: .08s; }
.hero-main > :nth-child(3), .page-hero .inner > :nth-child(3) { animation-delay: .16s; }
.hero-main > :nth-child(4), .page-hero .inner > :nth-child(4) { animation-delay: .24s; }
.hero-main > :nth-child(5), .page-hero .inner > :nth-child(5) { animation-delay: .32s; }
.hero-side > :nth-child(1) { animation-delay: .18s; }
.hero-side > :nth-child(2) { animation-delay: .3s; }
.hero-bottom > :nth-child(1) { animation-delay: .4s; }
.hero-bottom > :nth-child(2) { animation-delay: .5s; }
@keyframes hero-in { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

/* появление блоков при прокрутке (класс .reveal-on ставит main.js) */
.reveal-on [data-rv] { opacity: 0; translate: 0 26px; transition: opacity .8s cubic-bezier(.16,1,.3,1) var(--rd, 0s), translate .8s cubic-bezier(.16,1,.3,1) var(--rd, 0s); }
.reveal-on [data-rv].in { opacity: 1; translate: 0 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal-on [data-rv] { opacity: 1; translate: none; }
  .scroll-progress { display: none; }
}

/* ================= Новые функции ================= */
/* общий сегментный переключатель */
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; background: var(--surface-2); border-radius: 14px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.seg span { display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; padding: 9px 10px; border-radius: 10px; font-weight: 700; font-size: .9rem; cursor: pointer; text-align: center; line-height: 1.2; transition: background .25s, color .25s, box-shadow .25s; color: var(--muted); }
.seg span small { font-weight: 500; font-size: .74rem; width: 100%; }
.seg span .i { width: 16px; height: 16px; }
.seg input:checked + span { background: var(--surface); color: var(--text); box-shadow: 0 2px 10px rgba(15, 30, 50, .12); }
.seg input:checked + span .i { color: var(--accent); }
.seg input:focus-visible + span { outline: 2px solid var(--brand-2); outline-offset: 1px; }

/* калькулятор */
.calc { display: grid; grid-template-columns: 1fr 1.15fr; margin-top: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); overflow: hidden; }
.calc-ctl { padding: 24px; display: grid; gap: 14px; align-content: start; background: linear-gradient(160deg, var(--brand-soft), transparent 70%); }
.calc h3 { display: flex; align-items: center; gap: 8px; margin: 0; }
.calc h3 .i { width: 22px; height: 22px; color: var(--accent); }
.calc-n { display: flex; justify-content: space-between; align-items: baseline; font-weight: 700; }
.calc-n output { font-size: 2.6rem; font-weight: 800; line-height: 1; color: var(--brand-2); font-variant-numeric: tabular-nums; }
.calc input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 99px; background: linear-gradient(90deg, var(--accent) var(--fill, 14%), var(--line) var(--fill, 14%)); outline-offset: 6px; cursor: pointer; }
.calc input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 3px solid var(--accent); box-shadow: 0 3px 10px rgba(0,0,0,.2); transition: transform .2s cubic-bezier(.34,1.56,.64,1); }
.calc input[type=range]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 3px solid var(--accent); box-shadow: 0 3px 10px rgba(0,0,0,.2); }
.calc input[type=range]:active::-webkit-slider-thumb { transform: scale(1.2); }
.calc-scale { display: flex; justify-content: space-between; font-size: .75rem; color: var(--muted); padding: 0 6px; margin-top: -6px; }
.calc-res { padding: 24px; display: grid; gap: 10px; align-content: start; }
.calc-opt { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 14px; transition: border-color .3s, background .3s, transform .3s cubic-bezier(.34,1.56,.64,1); position: relative; }
.calc-opt span { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; }
.calc-opt span .i { grid-row: span 2; width: 24px; height: 24px; color: var(--muted); transition: color .3s; }
.calc-opt small { color: var(--muted); font-size: .8rem; }
.calc-opt strong { font-size: 1.5rem; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.calc-opt.best { border-color: var(--accent); background: var(--accent-soft); transform: scale(1.015); }
.calc-opt.best .i { color: #c47c06; }
.calc-opt.best::after { content: "★"; position: absolute; top: -10px; right: 14px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: .72rem; background: var(--accent); color: var(--accent-ink); animation: pop-in .45s cubic-bezier(.34,1.56,.64,1); }
.calc-verdict { margin: 2px 0 4px; font-weight: 700; color: var(--brand-2); min-height: 1.6em; }
.calc .fine { margin: 0; }
@keyframes pop-in { from { transform: scale(0); } to { transform: scale(1); } }

/* расписание поездки */
.planner { margin-top: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 22px 24px; box-shadow: var(--shadow); }
.prose .planner { margin: 18px 0 8px; }
.planner-ctl { display: grid; grid-template-columns: auto 1fr; gap: 12px 18px; align-items: end; margin-bottom: 20px; }
.planner-ctl h3 { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; margin: 0; }
.planner-ctl h3 .i { width: 22px; height: 22px; color: var(--accent); }
.pl-date { display: grid; gap: 4px; font-size: .82rem; font-weight: 700; color: var(--muted); }
.pl-date input { font: inherit; font-weight: 700; color: var(--text); background: var(--surface); border: 1.5px solid var(--line); border-radius: 10px; padding: 8px 12px; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, 1fr); position: relative; }
.timeline::before { content: ""; position: absolute; left: 7%; right: 7%; top: 40px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--brand-2) 0 62%, var(--accent) 62% 70%, #c0392b 70%); opacity: .4; }
.tl-item { display: grid; grid-template-rows: auto auto auto auto; justify-items: center; align-content: start; text-align: center; gap: 6px; padding: 0 4px; position: relative; }
.tl-item time { font-weight: 800; font-size: 1.02rem; font-variant-numeric: tabular-nums; white-space: nowrap; min-height: 1.5em; }
.tl-dot { width: 16px; height: 16px; border-radius: 50%; background: var(--surface); border: 3px solid var(--brand-2); position: relative; z-index: 1; }
.tl-border .tl-dot { border-color: var(--accent); box-shadow: 0 0 0 5px var(--accent-soft); }
.tl-ru .tl-dot { border-color: #c0392b; }
.tl-txt b { display: block; font-size: .95rem; }
.tl-txt small { display: block; color: var(--muted); font-size: .76rem; line-height: 1.3; }
.tl-item em { font-style: normal; font-size: .72rem; font-weight: 700; color: var(--brand-2); background: var(--brand-soft); border-radius: 99px; padding: 1px 8px; white-space: nowrap; }
.tl-item em:empty { display: none; }
.pl-anim .tl-item { animation: tl-in .55s cubic-bezier(.16,1,.3,1) both; animation-delay: calc(var(--i, 0) * 70ms); }
.pl-anim .tl-dot { animation: pop-in .5s cubic-bezier(.34,1.56,.64,1) both; animation-delay: calc(var(--i, 0) * 70ms + 120ms); }
@keyframes tl-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes tl-in-x { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }
.planner .fine { margin: 16px 0 0; }

/* чек-лист */
.checklist { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 22px 24px; box-shadow: var(--shadow); margin: 14px 0 22px; }
.cl-head { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 14px; }
.cl-sub { margin: 0; color: var(--muted); }
.cl-prog { display: flex; align-items: center; gap: 10px; min-width: 200px; }
.cl-prog b { font-variant-numeric: tabular-nums; }
.cl-bar { flex: 1; height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.cl-bar span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--accent), #f6c453); transition: width .5s cubic-bezier(.16,1,.3,1); }
.cl-done .cl-bar span { background: var(--ok); }
.cl-groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cl-group { border: 0; padding: 0; margin: 0; display: grid; gap: 4px; align-content: start; min-width: 0; }
.cl-group legend { font-weight: 800; margin-bottom: 6px; padding: 0; }
.cl-item { position: relative; display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border-radius: 10px; cursor: pointer; transition: background .2s; line-height: 1.35; font-size: .92rem; }
.cl-item:hover { background: var(--surface-2); }
.cl-item input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.cl-box { flex: none; width: 22px; height: 22px; border-radius: 7px; border: 2px solid var(--line); display: grid; place-items: center; transition: background .2s, border-color .2s; }
.cl-box .i { width: 22px; height: 22px; color: #fff; transform: scale(0); transition: transform .3s cubic-bezier(.34,1.56,.64,1); }
.cl-item input:checked + .cl-box { background: var(--ok); border-color: var(--ok); }
.cl-item input:checked + .cl-box .i { transform: scale(1); }
.cl-item input:checked ~ span:last-child { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--line); }
.cl-item input:focus-visible + .cl-box { outline: 2px solid var(--brand-2); outline-offset: 2px; }
.cl-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }

/* «Мои заявки» */
.mine { border-color: var(--accent); background: linear-gradient(180deg, var(--accent-soft), var(--surface) 70%); }
.mine-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.mine-list li { display: grid; gap: 2px; padding: 10px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; animation: tl-in .45s cubic-bezier(.16,1,.3,1) both; }
.mine-top { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.mine-when { font-size: .75rem; font-weight: 800; color: #9a5d00; background: var(--accent-soft); padding: 1px 8px; border-radius: 99px; white-space: nowrap; }
[data-theme="dark"] .mine-when { color: var(--accent); }
.mine-list small { color: var(--muted); font-size: .8rem; }
.mine-list code { font-size: .78rem; color: var(--muted); }
.mine-act { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.mine-btn { display: inline-flex; align-items: center; gap: 5px; font: inherit; font-size: .78rem; font-weight: 700; padding: 5px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; text-decoration: none; transition: border-color .2s, transform .2s; }
.mine-btn .i { width: 14px; height: 14px; }
.mine-btn:hover { border-color: var(--brand-2); transform: translateY(-1px); }
.mine-rm { margin-left: auto; color: var(--muted); }
.mine-rm:hover { color: var(--full); border-color: var(--full); }
/* узкий экран: кнопки заявки растягиваются ровными рядами, без «висящей» кнопки */
@media (max-width: 560px) {
  .mine-act .mine-btn { flex: 1 1 auto; justify-content: center; }
  .mine-act .mine-rm { flex: 0 0 auto; }
}

/* подсказка «выберите дату» после калькулятора */
.cal-hint { animation: cal-hint 1.6s ease-out; border-radius: 18px; }
@keyframes cal-hint { 0%, 60% { box-shadow: 0 0 0 0 rgba(242, 165, 22, .55); } 30% { box-shadow: 0 0 0 10px rgba(242, 165, 22, .25); } 100% { box-shadow: 0 0 0 0 transparent; } }

/* поиск по вопросам */
.faq-search { display: block; position: relative; max-width: 460px; margin: 0 0 16px; }
.faq-search .i { position: absolute; left: 14px; top: 50%; translate: 0 -50%; width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.faq-search input { width: 100%; font: inherit; color: var(--text); background: var(--surface); border: 1.5px solid var(--line); border-radius: 12px; padding: 11px 14px 11px 42px; transition: border-color .2s, box-shadow .2s; }
.faq-search input:focus { outline: none; border-color: var(--brand-2); box-shadow: 0 0 0 4px var(--brand-soft); }
.faq-none { color: var(--muted); margin-top: 10px; }

/* кнопка «наверх» */
.to-top { position: fixed; right: 25px; bottom: 86px; z-index: 39; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--text); display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow); opacity: 0; translate: 0 14px; pointer-events: none; transition: opacity .3s, translate .35s cubic-bezier(.34,1.56,.64,1), border-color .2s; }
.to-top .i { width: 20px; height: 20px; }
.to-top.show { opacity: 1; translate: 0 0; pointer-events: auto; }
.to-top:hover { border-color: var(--brand-2); }
.to-top:hover .i { animation: nudge-up .6s ease; }
@keyframes nudge-up { 50% { transform: translateY(-3px); } }

/* полоса «нет интернета» */
.net-bar { position: fixed; left: 50%; top: 74px; translate: -50% 0; z-index: 60; display: flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 99px; background: #121821; color: #fff; font-weight: 600; font-size: .88rem; box-shadow: 0 8px 24px rgba(0,0,0,.3); animation: tl-in .4s ease both; max-width: calc(100% - 24px); }
.net-bar .i { width: 18px; height: 18px; color: var(--accent); flex: none; }

@media (max-width: 1020px) {
  .timeline { grid-template-columns: 1fr; gap: 0; }
  .timeline::before { left: 89px; right: auto; top: 14px; bottom: 14px; width: 3px; height: auto; background: linear-gradient(180deg, var(--brand-2) 0 62%, var(--accent) 62% 70%, #c0392b 70%); }
  .tl-item { grid-template-columns: 70px 16px 1fr; grid-template-rows: auto; justify-items: start; text-align: left; column-gap: 12px; padding: 7px 0; align-items: center; }
  .tl-item time { justify-self: end; font-size: .92rem; }
  .tl-item em { grid-column: 3; justify-self: start; }
  .pl-anim .tl-item { animation-name: tl-in-x; }
}
@media (max-width: 760px) {
  .calc { grid-template-columns: 1fr; }
  .cl-groups { grid-template-columns: 1fr; }
  .planner-ctl { grid-template-columns: 1fr; }
  .planner, .checklist { padding: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .pl-anim .tl-item, .pl-anim .tl-dot, .mine-list li, .calc-opt.best::after { animation: none; }
}

/* печать: только содержимое страницы — удобно как памятка в дорогу */
@media print {
  .site-header, .site-footer, .float-wa, .to-top, .net-bar, .scroll-progress, .hero-cta, .booking-widget, .sheet, #calendar, .faq-search, .cl-actions, .calc, .skip-link { display: none !important; }
  body { background: #fff; color: #000; font-size: 12pt; }
  .reveal-on [data-rv] { opacity: 1 !important; translate: none !important; }
  .panel, .card, .planner, .checklist, .fact, details { box-shadow: none !important; break-inside: avoid; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .8em; color: #555; }
  .block { padding: 12px 0 !important; }
  .notice, .rev-actions, .rev-sheet { display: none !important; }
}

/* ================= Иконки в меню, таблицах, подвале ================= */
.nav { position: relative; }
.nav a { display: inline-flex; align-items: center; gap: 7px; position: relative; z-index: 1; transition: color .25s, background .25s; }
.nav-ico { width: 17px; height: 17px; color: var(--muted); transition: color .25s, transform .35s cubic-bezier(.34,1.56,.64,1); }
.nav a:hover .nav-ico, .nav a.active .nav-ico { color: var(--accent); transform: translateY(-1px) scale(1.08); }
.nav a.active { color: var(--brand-2); }
.nav-ind { position: absolute; left: 0; bottom: 2px; height: 3px; width: 0; border-radius: 3px; background: var(--accent); opacity: 0; transition: transform .45s cubic-bezier(.16,1,.3,1), width .45s cubic-bezier(.16,1,.3,1), opacity .3s; pointer-events: none; }
#tariffs th[scope=row] { white-space: nowrap; }
#tariffs th[scope=row] .i { color: var(--accent); margin-right: 8px; }
.foot-ico .i { flex: none; }

/* ================= Объявление под шапкой ================= */
.notice { position: relative; z-index: 45; border-bottom: 1px solid var(--line); animation: notice-in .6s cubic-bezier(.16,1,.3,1) both; overflow: hidden; }
.notice-in { display: flex; align-items: center; gap: 12px; padding: 10px 0; font-weight: 600; font-size: .94rem; }
.notice-in > .i { width: 20px; height: 20px; flex: none; }
.notice-in span { flex: 1; }
.notice-in a { font-weight: 800; white-space: nowrap; }
.notice-x { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; border: 0; background: transparent; color: inherit; cursor: pointer; transition: background .2s, transform .3s; }
.notice-x:hover { background: rgba(0,0,0,.08); transform: rotate(90deg); }
.notice-x .i { width: 16px; height: 16px; }
.n-info { background: var(--brand-soft); color: var(--brand); }
.n-warn { background: var(--accent-soft); color: #7a4a00; }
.n-alert { background: #fde3e3; color: #8f1d1d; }
[data-theme="dark"] .n-warn { color: var(--accent); }
[data-theme="dark"] .n-alert { background: #3a1717; color: #ffb4b4; }
.n-alert > .container > .i { animation: alert-pulse 1.6s ease-in-out infinite; }
.notice.out { animation: notice-out .35s ease forwards; }
@keyframes notice-in { from { max-height: 0; opacity: 0; } to { max-height: 120px; opacity: 1; } }
@keyframes notice-out { to { max-height: 0; opacity: 0; padding: 0; } }
@keyframes alert-pulse { 50% { transform: scale(1.18); } }

/* ================= Отзывы ================= */
.rev-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.rev-head .section-head { margin-bottom: 26px; }
.rev-score { display: grid; justify-items: end; gap: 2px; margin-bottom: 30px; text-align: right; }
.rev-score b { font-size: 3rem; line-height: 1; font-weight: 800; color: var(--brand-2); }
.rev-score small { color: var(--muted); }
.stars { display: inline-flex; gap: 2px; color: var(--line); }
.stars .i { width: 18px; height: 18px; }
.stars .i.on { color: var(--accent); fill: var(--accent); }
.rev-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.rev-empty { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; padding: 22px; border: 1.5px dashed var(--line); border-radius: 18px; color: var(--muted); margin: 0; }
.rev-empty .i { width: 24px; height: 24px; color: var(--accent); }
.rev-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 20px; box-shadow: var(--shadow); display: grid; gap: 10px; align-content: start; animation: tl-in .7s cubic-bezier(.16,1,.3,1) both; animation-delay: calc(var(--i, 0) * 80ms); transition: transform .3s cubic-bezier(.34,1.56,.64,1), box-shadow .3s; }
.rev-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(15,30,50,.12); }
.rev-card p { margin: 0; line-height: 1.55; }
.rev-top { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; }
.rev-top b { display: block; }
.rev-top small { color: var(--muted); font-size: .8rem; }
.rev-ava { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--brand-2), var(--accent)); }
.rev-reply { background: var(--surface-2); border-radius: 12px; padding: 10px 12px; font-size: .9rem; }
.rev-reply b { display: flex; align-items: center; gap: 6px; font-size: .8rem; color: var(--brand-2); margin-bottom: 2px; }
.rev-reply .i { width: 15px; height: 15px; }
.rev-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
/* выбор звёзд в форме: справа налево, наведение подсвечивает предыдущие */
.star-input { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.star-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-input label { cursor: pointer; color: var(--line); transition: transform .25s cubic-bezier(.34,1.56,.64,1), color .2s; }
.star-input label .i { width: 34px; height: 34px; }
.star-input input:checked ~ label, .star-input label:hover, .star-input label:hover ~ label { color: var(--accent); }
.star-input input:checked ~ label .i, .star-input label:hover .i, .star-input label:hover ~ label .i { fill: var(--accent); }
.star-input label:hover { transform: scale(1.18) rotate(-8deg); }
.star-input input:focus-visible + label { outline: 2px solid var(--brand-2); outline-offset: 2px; border-radius: 6px; }
.star-field { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.star-field legend { width: 100%; }
.star-word { font-weight: 800; color: #b06f00; }
[data-theme="dark"] .star-word { color: var(--accent); }

/* статус в «Мои заявки» */
.mine-st { justify-self: start; display: inline-flex; align-items: center; gap: 5px; font-size: .74rem; font-weight: 800; padding: 2px 9px; border-radius: 99px; background: #ece9ff; color: #4b3cc0; margin: 2px 0; animation: pop-in .4s cubic-bezier(.34,1.56,.64,1); }
.mine-st .i { width: 13px; height: 13px; }
.mine-st.st-confirmed, .mine-st.st-done { background: #dcf5e6; color: #13703b; }
.mine-st.st-cancelled { background: #fde3e3; color: #a32525; }

/* ================= Анимации ================= */
/* плавный переход между страницами (браузеры с View Transitions) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .25s ease both; }
::view-transition-new(root) { animation: vt-in .45s cubic-bezier(.16,1,.3,1) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-8px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(14px); } }

/* заголовок по словам */
h1.split { animation: none !important; }
h1.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
h1.split .w > span { display: inline-block; animation: word-up .95s cubic-bezier(.16,1,.3,1) both; animation-delay: calc(.12s + var(--wi) * 55ms); }
@keyframes word-up { from { transform: translateY(105%) rotate(4deg); opacity: 0; } to { transform: none; opacity: 1; } }

/* «северное сияние» за первым экраном */
.hero, .page-hero { position: relative; isolation: isolate; overflow-x: clip; }
.hero::before, .page-hero::before { content: ""; position: absolute; inset: -10% -5% auto; height: 120%; z-index: -1; pointer-events: none; opacity: .55;
  background: radial-gradient(40% 50% at 15% 20%, color-mix(in srgb, var(--accent) 30%, transparent), transparent 70%),
              radial-gradient(35% 45% at 85% 10%, color-mix(in srgb, var(--brand-2) 28%, transparent), transparent 70%),
              radial-gradient(30% 40% at 60% 80%, color-mix(in srgb, var(--brand-2) 18%, transparent), transparent 70%);
  filter: blur(30px); animation: aurora 18s ease-in-out infinite alternate; }
@keyframes aurora { 0% { transform: translate3d(0, 0, 0) scale(1); } 50% { transform: translate3d(3%, 2%, 0) scale(1.08); } 100% { transform: translate3d(-3%, -1%, 0) scale(1.02); } }

/* прожектор за курсором */
.spot { background-image: radial-gradient(420px circle at var(--mx, -999px) var(--my, -999px), color-mix(in srgb, var(--accent) 9%, transparent), transparent 45%); }

/* ценовая карточка: наклон */
.price-card { transition: transform .5s cubic-bezier(.16,1,.3,1); transform-style: preserve-3d; will-change: transform; }

/* волна от нажатия */
.ripple { position: absolute; border-radius: 50%; pointer-events: none; background: currentColor; opacity: .18; transform: scale(0); animation: ripple .65s ease-out forwards; z-index: 0; }
@keyframes ripple { to { transform: scale(1); opacity: 0; } }

@media (max-width: 1020px) {
  .rev-list { grid-template-columns: 1fr 1fr; }
  .nav-ind { display: none; }
  .nav a { padding: 12px 8px; }
}
@media (max-width: 640px) {
  .rev-list { grid-template-columns: 1fr; }
  .rev-score { justify-items: start; text-align: left; margin-bottom: 18px; }
  .notice-in { font-size: .86rem; }
}
@media (prefers-reduced-motion: reduce) {
  .hero::before, .page-hero::before, .n-alert > .container > .i, .rev-card, .mine-st { animation: none !important; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}

/* ================= «Бегущий луч» по рамке карточки «Групповая поездка» ================= */
.price-card { --beam: #ff3b2f; --beam-core: #ffe2db; --beam-radius: 24px;
  box-shadow: 0 22px 50px -24px rgba(255, 59, 47, .45), 0 2px 10px -6px rgba(0, 0, 0, .25); }
.beam { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; overflow: visible; pointer-events: none; border-radius: inherit; }
.beam rect { x: 1px; y: 1px; width: calc(100% - 2px); height: calc(100% - 2px); rx: calc(var(--beam-radius) - 1px); fill: none; stroke-linecap: round; }
.beam .beam-base { stroke: rgba(255, 59, 47, .3); stroke-width: 1.5px; }
.beam .beam-glow, .beam .beam-ray, .beam .beam-core { stroke-dasharray: 16 84; animation: beam-run 4.2s linear infinite; }
.beam .beam-ray { stroke: var(--beam); stroke-width: 2.5px; }
.beam .beam-glow { stroke: var(--beam); stroke-width: 9px; opacity: .6; filter: blur(7px); }
/* светлая «головка кометы» на переднем конце луча */
.beam .beam-core { stroke: var(--beam-core); stroke-width: 2px; stroke-dasharray: 4 96; stroke-dashoffset: -12; animation-name: beam-run-core; }
@keyframes beam-run { to { stroke-dashoffset: -100; } }
@keyframes beam-run-core { from { stroke-dashoffset: -12; } to { stroke-dashoffset: -112; } }
/* при наведении луч ярче */
.price-card:hover .beam-glow { opacity: .85; }
.price-card:hover .beam-base { stroke: rgba(255, 59, 47, .5); }
.beam rect { transition: opacity .4s, stroke .4s; }
@media (prefers-reduced-motion: reduce) {
  .beam .beam-glow, .beam .beam-ray, .beam .beam-core { display: none; }
  .beam .beam-base { stroke: var(--beam); }
}
@media print { .beam { display: none; } }

/* Луч внутри главных кнопок (первый экран, калькулятор, «Отправить заявку») — светлый, без видимой рамки */
.btn > .beam { --beam-radius: 12px; z-index: 1; }
.btn-sm > .beam { --beam-radius: 10px; }
.btn > .beam .beam-base { stroke: transparent; }
.btn > .beam .beam-ray, .btn > .beam .beam-glow { stroke: #fff6ee; }
.btn > .beam .beam-glow { stroke-width: 8px; opacity: .7; filter: blur(5px); }
.btn > .beam .beam-core { stroke: #fff; }
.btn > .beam rect { animation-duration: 3.6s; }
.calc .btn > .beam rect { animation-delay: -1.2s; }
#booking-form .btn > .beam rect { animation-delay: -2.4s; }
.btn:disabled > .beam { opacity: .35; }
@media (prefers-reduced-motion: reduce) { .btn > .beam .beam-base { stroke: transparent; } }

/* ================= Карта маршрута: поездка, подсказки, панель ================= */
.rm-wrap { position: relative; }
.map-card .rm-wrap .route-map { margin: 10px 0 6px; }
.rm-gulf { font-size: 6.2px; opacity: .7; }
.rm-vignette { pointer-events: none; }
/* пройденная часть ярче, остаток — приглушённый */
.rm-trail, .rm-trail-glow { fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.rm-trail { stroke: url(#rm-grad); stroke-width: 3.6; }
.rm-trail-glow { stroke: #f2a516; stroke-width: 8; opacity: .45; filter: url(#rm-blur); }
.route-map .rm-route { transition: opacity .8s ease; }
.route-map.is-moving .rm-route { opacity: .38; }
.route-map.is-moving .rm-route-glow { opacity: .12 !important; }
/* след за автобусом и лёгкое покачивание */
.rm-comet { fill: #f2a516; opacity: 0; filter: url(#rm-soft); transition: opacity .4s; pointer-events: none; }
.route-map.is-moving .rm-comet { opacity: .55; }
.rm-bus-in { animation: rm-bob .5s ease-in-out infinite alternate; }
@keyframes rm-bob { from { transform: translateY(-.35px); } to { transform: translateY(.35px); } }
.rm-bus.is-stopped .rm-bus-in { animation: none; }
/* пешеход и дорога на Калининград */
.rm-walker { opacity: 0; transition: opacity .3s; }
.rm-walker circle:last-child { fill: #c62f2f; stroke: #fff; stroke-width: 1.4; }
.rm-walker-halo { fill: #c62f2f; opacity: .3; transform-box: fill-box; transform-origin: center; animation: rm-halo 1s ease-out infinite; }
@keyframes rm-halo { from { transform: scale(.6); opacity: .45; } to { transform: scale(1.6); opacity: 0; } }
.rm-walker.on { opacity: 1; }
.rm-kgd { fill: none; stroke: var(--rm-muted); stroke-width: 1.8; stroke-linecap: round; stroke-dasharray: 2.5 3; opacity: 0; transition: stroke .4s; }
.route-map.is-on .rm-kgd { animation: rm-show .5s 3s forwards; }
.route-map .rm-kgd.on { stroke: #ff7a1a; opacity: 1; animation: rm-march .7s linear infinite; }
.rm-kgd-label { font-family: inherit; font-size: 7.5px; font-weight: 800; fill: var(--rm-muted); paint-order: stroke; stroke: var(--rm-halo); stroke-width: 3px; stroke-linejoin: round; opacity: 0; transition: fill .4s; }
.route-map.is-on .rm-kgd-label { animation: rm-show .5s 3.1s forwards; }
.rm-kgd-label.on { fill: #ff7a1a; }
/* остановка: вспышка и подсветка подписи */
.rm-hit-ring { fill: none; stroke: #f2a516; stroke-width: 1.6; opacity: 0; transform-box: fill-box; transform-origin: center; }
.rm-city.rm-hit .rm-hit-ring { animation: rm-hit .9s cubic-bezier(.2,.8,.2,1); }
.rm-city.rm-hit .rm-dot { animation: rm-dot-hit .6s cubic-bezier(.34,1.56,.64,1); transform-box: fill-box; transform-origin: center; }
@keyframes rm-hit { 0% { opacity: .95; transform: scale(1); } 100% { opacity: 0; transform: scale(3.6); } }
@keyframes rm-dot-hit { 40% { transform: scale(1.45); } }
.rm-labels text { transition: fill .35s; }
.rm-labels text.rm-lit { fill: #d2870a; }
[data-theme="dark"] .rm-labels text.rm-lit { fill: #f2a516; }
.rm-hot { fill: transparent; cursor: pointer; }
/* панель «где сейчас автобус» */
.rm-hud { position: absolute; right: 10px; bottom: 14px; display: flex; align-items: center; gap: 8px; padding: 6px 11px 6px 9px; border-radius: 12px;
  background: color-mix(in srgb, var(--surface) 82%, transparent); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid var(--line); box-shadow: 0 8px 22px -12px rgba(15, 30, 50, .45); pointer-events: none; opacity: 0; transform: translateY(6px); transition: opacity .5s, transform .5s cubic-bezier(.16,1,.3,1); max-width: calc(100% - 20px); }
.rm-wrap.is-on .rm-hud { opacity: 1; transform: none; }
.rm-hud-dot { width: 8px; height: 8px; flex: none; border-radius: 50%; background: #f2a516; box-shadow: 0 0 0 0 rgba(242,165,22,.6); animation: rm-live 1.6s ease-out infinite; }
@keyframes rm-live { to { box-shadow: 0 0 0 8px rgba(242,165,22,0); } }
.rm-hud-txt { display: grid; line-height: 1.2; min-width: 0; }
.rm-hud-txt b { font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rm-hud-txt small { font-size: .7rem; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
/* кнопка «повторить» */
.rm-replay { position: absolute; top: 18px; right: 10px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: var(--text); padding: 0;
  background: color-mix(in srgb, var(--surface) 82%, transparent); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border: 1px solid var(--line);
  opacity: 0; transition: opacity .4s, transform .5s cubic-bezier(.34,1.56,.64,1), border-color .2s; }
.rm-wrap.is-on .rm-replay { opacity: .85; }
.rm-replay:hover { opacity: 1; border-color: var(--brand-2); transform: rotate(-180deg); }
.rm-replay .i { width: 15px; height: 15px; }
/* подсказка у города */
.rm-tip { position: absolute; z-index: 3; left: 0; top: 0; padding: 6px 10px; border-radius: 10px; background: #121821; color: #fff; font-size: .76rem; line-height: 1.3; white-space: nowrap; pointer-events: none;
  transform: translate(-50%, calc(-100% - 12px)); box-shadow: 0 10px 24px -10px rgba(0,0,0,.5); animation: rm-tip .25s cubic-bezier(.16,1,.3,1); }
.rm-tip b { display: block; font-size: .82rem; }
.rm-tip::after { content: ""; position: absolute; left: 50%; bottom: -4px; width: 8px; height: 8px; background: #121821; transform: translateX(-50%) rotate(45deg); }
@keyframes rm-tip { from { opacity: 0; transform: translate(-50%, calc(-100% - 6px)); } }
.rm-legend .rm-key-kgd { border-top: 2px dashed var(--muted); }
.rm-legend { flex-wrap: wrap; row-gap: 4px; }
@media (max-width: 640px) { .rm-hud { right: 8px; bottom: 10px; padding: 5px 9px 5px 8px; } .rm-replay { top: 14px; } }
@media (prefers-reduced-motion: reduce) {
  .rm-bus, .rm-comet, .rm-walker, .rm-replay { display: none; }
  .rm-kgd, .rm-kgd-label { opacity: 1; }
  .rm-hud { opacity: 1; transform: none; }
}
.rm-kgd-label { font-size: 6.4px; letter-spacing: -.01em; }

/* ================= Карточка «Групповая поездка» ================= */
.price-card > *:not(.beam) { position: relative; z-index: 1; }
.price-card .price { margin: 4px 0 2px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.pc-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.pc-chip { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px 5px 9px; border-radius: 99px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16);
  font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.pc-chip .i { width: 15px; height: 15px; color: var(--accent); }
/* переключатель место / машина */
.pc-seg { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 3px; border-radius: 99px; background: rgba(0,0,0,.24); border: 1px solid rgba(255,255,255,.12); }
.pc-seg button { position: relative; z-index: 1; border: 0; background: none; color: rgba(255,255,255,.78); font: inherit; font-size: .76rem; font-weight: 800; padding: 5px 13px; border-radius: 99px; cursor: pointer; transition: color .3s; }
.pc-seg button:hover { color: #fff; }
.pc-seg button[aria-checked="true"] { color: #1b1300; }
.pc-seg button:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }
.pc-seg-pill { position: absolute; z-index: 0; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px); border-radius: 99px; background: var(--accent);
  box-shadow: 0 4px 14px -4px rgba(242,165,22,.8); transition: transform .5s cubic-bezier(.34,1.56,.64,1); }
.price-card[data-mode="car"] .pc-seg-pill { transform: translateX(100%); }
/* цена и маршрут «перелистываются» при смене тарифа */
.pc-num { display: inline-block; font-variant-numeric: tabular-nums; }
.pc-num.swap, .pc-route.swap { animation: pc-swap .4s cubic-bezier(.16,1,.3,1); }
@keyframes pc-swap { 0% { opacity: 1; transform: none; } 42% { opacity: 0; transform: translateY(-12px); } 43% { opacity: 0; transform: translateY(12px); } 100% { opacity: 1; transform: none; } }
.price-card .pc-route { margin: 0 0 12px; }
/* преимущества */
.pc-feats { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .82rem; font-weight: 600; }
.pc-feats li { display: inline-flex; align-items: center; gap: 5px; opacity: .92; }
.pc-feats .i { width: 14px; height: 14px; color: var(--accent); stroke-width: 2.6; }
/* ближайший выезд с местами */
.pc-next { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; gap: 4px 12px; align-items: center; width: 100%; margin: 0 0 14px; padding: 10px 12px;
  border-radius: 14px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); color: #fff; font: inherit; text-align: left; cursor: pointer;
  transition: background .25s, border-color .25s, transform .35s cubic-bezier(.34,1.56,.64,1); animation: tl-in .6s cubic-bezier(.16,1,.3,1) both; }
.pc-next:hover { background: rgba(255,255,255,.13); border-color: rgba(242,165,22,.65); transform: translateY(-2px); }
.pc-next:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pc-next-l { grid-row: span 2; display: grid; line-height: 1.25; }
.pc-next-l small { font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; opacity: .7; }
.pc-next-l b { font-size: 1rem; }
.pc-seats { display: flex; gap: 4px; justify-self: end; }
.pc-seats i { width: 11px; height: 11px; border-radius: 3px; background: rgba(255,255,255,.2); }
.pc-seats i.on { background: var(--accent); box-shadow: 0 0 8px rgba(242,165,22,.55); animation: pc-seat .45s cubic-bezier(.34,1.56,.64,1) both; animation-delay: calc(.3s + var(--k) * 70ms); }
@keyframes pc-seat { from { transform: scale(0); } }
.pc-next-free { justify-self: end; font-size: .74rem; font-weight: 700; opacity: .85; }
.price-card.is-car .pc-next { display: none; }
.price-card .btn .i-arrow { transition: transform .3s cubic-bezier(.34,1.56,.64,1); }
.price-card .btn:hover .i-arrow { transform: translateX(4px); }
@media (max-width: 400px) { .pc-seats i { width: 9px; height: 9px; } .pc-next { padding: 9px 10px; } }
@media (prefers-reduced-motion: reduce) { .pc-seg-pill { transition: none; } .pc-next, .pc-seats i.on { animation: none; } }

/* ================= Мобильные устройства: исправления ================= */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
a, button, label, summary, .day, .tab { -webkit-tap-highlight-color: transparent; }
/* название не переносится по дефису, подзаголовок обрезается многоточием */
.logo > span:last-child { min-width: 0; white-space: nowrap; }
.logo small { overflow: hidden; text-overflow: ellipsis; }
.header-inner { min-width: 0; }
@media (max-width: 420px) {
  .header-inner { gap: 10px; }
  .logo { font-size: 1rem; gap: 8px; min-width: 0; }
  .logo small { max-width: 46vw; }
}
@media (max-width: 359px) {
  .logo { font-size: .94rem; }
  .logo small { display: none; }
  .logo-mark { width: 32px; height: 32px; }
  .header-actions { gap: 6px; }
}
/* на iPhone поля со шрифтом меньше 16px увеличивают страницу при нажатии */
@media (max-width: 1020px), (pointer: coarse) {
  input:not([type="radio"]):not([type="checkbox"]):not([type="range"]):not([type="hidden"]), select, textarea { font-size: 16px; }
}
/* удобные размеры для пальца */
@media (pointer: coarse) {
  .pc-seg button { padding: 8px 15px; }
  .rm-replay { width: 38px; height: 38px; }
  .notice-x { width: 40px; height: 40px; }
  .mine-btn { padding: 8px 12px; }
  .faq summary { min-height: 52px; align-items: center; }
  .cal-head .icon-btn { width: 44px; height: 44px; }
}
/* на сенсорных экранах эффекты наведения не «залипают» после касания */
@media (hover: none) {
  .card:hover, .steps li:hover, .rev-card:hover, .pc-next:hover, .mine-btn:hover, .calc-opt:hover, .price-card:hover, .day:hover, .btn:hover { transform: none; }
  .price-card { transform: none !important; }
}
/* шторки с формами: прокрутка не «утягивает» страницу, отступ над полосой «домой» на iPhone */
dialog.sheet .sheet-body { overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
/* вырезы экрана (чёлка, скруглённые углы) и полоса «домой» */
body { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
.site-header { padding-top: env(safe-area-inset-top); }
.float-wa { right: calc(18px + env(safe-area-inset-right)); bottom: calc(18px + env(safe-area-inset-bottom)); }
.to-top { right: calc(25px + env(safe-area-inset-right)); bottom: calc(86px + env(safe-area-inset-bottom)); }
.site-footer { padding-bottom: calc(28px + env(safe-area-inset-bottom)); }
/* на телефоне последняя строка подвала не прячется под кнопками WhatsApp и «наверх» */
@media (max-width: 700px) { .site-footer { padding-bottom: calc(92px + env(safe-area-inset-bottom)); } }
/* повёрнутый телефон: невысокий экран */
@media (max-height: 480px) and (orientation: landscape) {
  .site-header { position: relative; }
  dialog.sheet { height: 96%; max-height: 96%; }
  .float-wa { width: 48px; height: 48px; }
  .to-top { bottom: calc(74px + env(safe-area-inset-bottom)); }
}
/* подсказка «Установите приложение» внизу: плавающие кнопки поднимаются над ней */
.float-wa { transition: transform .3s cubic-bezier(.34,1.56,.64,1), margin-bottom .4s cubic-bezier(.16,1,.3,1); }
.to-top { transition: opacity .3s, translate .35s cubic-bezier(.34,1.56,.64,1), border-color .2s, margin-bottom .4s cubic-bezier(.16,1,.3,1); }
.has-app-banner .float-wa, .has-app-banner .to-top { margin-bottom: calc(var(--app-banner-h, 74px) + 6px); }

/* ================= Приложение (PWA) ================= */
.app-promo { display: grid; grid-template-columns: 1.15fr .85fr; gap: 28px; align-items: center; background: linear-gradient(135deg, var(--brand), #0a2536); color: #fff;
  border-radius: 28px; padding: clamp(24px, 4vw, 44px); position: relative; overflow: hidden; box-shadow: 0 30px 60px -36px rgba(15,61,94,.6); }
[data-theme="dark"] .app-promo { background: linear-gradient(135deg, #12324a, #0a1a26); }
.app-promo::before { content: ""; position: absolute; right: -80px; top: -80px; width: 340px; height: 340px; border-radius: 50%; background: radial-gradient(circle, rgba(242,165,22,.32), transparent 70%); animation: glow-drift 10s ease-in-out infinite alternate; }
.app-promo > * { position: relative; }
.app-promo .kicker { color: var(--accent); }
.app-promo h2 { color: #fff; margin-bottom: 12px; }
.app-promo p { color: rgba(255,255,255,.82); }
.app-promo .fine { color: rgba(255,255,255,.6); margin: 0; }
.app-promo .hero-cta { margin: 18px 0 10px; }
.app-feats { list-style: none; margin: 6px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; }
.app-feats li { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: .95rem; }
.app-feats .i { flex: none; width: 34px; height: 34px; padding: 8px; border-radius: 10px; background: rgba(255,255,255,.1); color: var(--accent); }
/* телефон со скриншотом */
.app-visual { position: relative; display: grid; place-items: center; min-height: 320px; }
.app-phone { position: relative; width: min(230px, 62vw); aspect-ratio: 390 / 844; border-radius: 34px; padding: 9px; background: #05121d;
  box-shadow: 0 0 0 2px rgba(255,255,255,.14), 0 40px 70px -30px rgba(0,0,0,.7); transform: rotate(-4deg); animation: app-float 6s ease-in-out infinite; }
.app-phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 26px; display: block; }
.app-notch { position: absolute; z-index: 1; top: 15px; left: 50%; width: 64px; height: 18px; margin-left: -32px; border-radius: 99px; background: #05121d; }
.app-icon-float { position: absolute; left: 6%; bottom: 10%; width: 84px; height: 84px; border-radius: 22px; box-shadow: 0 20px 40px -14px rgba(0,0,0,.6); animation: app-float 6s ease-in-out -3s infinite; }
@keyframes app-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
/* окно установки */
.app-sheet-top { display: flex; align-items: center; gap: 14px; margin: 4px 0 16px; }
.app-sheet-top img { width: 64px; height: 64px; border-radius: 16px; box-shadow: 0 10px 24px -12px rgba(15,61,94,.6); }
.app-sheet-top b { display: block; font-size: 1.15rem; }
.app-sheet-top small { color: var(--muted); }
.app-feats-s { grid-template-columns: 1fr; margin-bottom: 18px; }
.app-feats-s li { font-size: .92rem; }
.app-feats-s .i { background: var(--accent-soft); color: #b06f00; }
[data-theme="dark"] .app-feats-s .i { color: var(--accent); }
.app-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: s; }
.app-steps li { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); font-weight: 600; line-height: 1.35; animation: tl-in .5s cubic-bezier(.16,1,.3,1) both; }
.app-steps li:nth-child(2) { animation-delay: .08s; } .app-steps li:nth-child(3) { animation-delay: .16s; }
.app-step-n { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--brand); color: #fff; }
[data-theme="dark"] .app-step-n { color: #0e1218; }
.app-step-n .i { width: 20px; height: 20px; }
.app-installed { display: flex; gap: 10px; align-items: center; padding: 14px; border-radius: 14px; background: #dcf5e6; color: #13703b; font-weight: 600; }
[data-theme="dark"] .app-installed { background: #12301f; color: #8be0ad; }
/* баннер-подсказка внизу экрана */
.app-banner { position: fixed; z-index: 55; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 12px;
  border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 18px 40px -16px rgba(0,0,0,.4); animation: app-banner-in .5s cubic-bezier(.16,1,.3,1); max-width: 520px; margin: 0 auto; }
.app-banner img { width: 44px; height: 44px; border-radius: 12px; flex: none; }
.app-banner-txt { flex: 1; min-width: 0; display: grid; line-height: 1.25; }
.app-banner-txt b { font-size: .92rem; }
.app-banner-txt small { color: var(--muted); font-size: .78rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-banner-x { flex: none; width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 10px; background: transparent; color: var(--muted); cursor: pointer; }
.app-banner-x .i { width: 16px; height: 16px; }
@keyframes app-banner-in { from { transform: translateY(120%); opacity: 0; } }
.foot-btn { background: none; border: 0; padding: 0; font: inherit; color: #e3ebf3; cursor: pointer; text-align: left; }
.foot-btn:hover { text-decoration: underline; }
/* открыто как приложение: предложения установки не нужны */
.is-app [data-app-section], .is-app .foot-btn[data-app-open], .is-app [data-app-banner] { display: none !important; }
@media (max-width: 860px) {
  .app-promo { grid-template-columns: 1fr; }
  .app-visual { min-height: 0; padding-top: 6px; }
  .app-phone { width: min(200px, 56vw); }
}
@media (max-width: 520px) { .app-feats { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .app-phone, .app-icon-float, .app-promo::before, .app-steps li, .app-banner { animation: none; } }
@media print { .app-promo, #app, .app-banner { display: none !important; } }

/* ================= Новые поля формы ================= */
.bk-opt { font-weight: 500; color: var(--muted); font-size: .78em; }
.bk-check { display: flex !important; align-items: center; gap: 10px; cursor: pointer; font-weight: 700; position: relative; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 12px; transition: border-color .2s, background .2s; }
.bk-check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.bk-check:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.bk-check input:checked + .cl-box { background: var(--ok); border-color: var(--ok); }
.bk-check input:checked + .cl-box .i { transform: scale(1); }
.bk-check input:focus-visible + .cl-box { outline: 2px solid var(--brand-2); outline-offset: 2px; }
.bk-check > span:last-child { display: inline-flex; align-items: center; gap: 6px; }
.bk-check .i { width: 16px; height: 16px; }
.bk-ret-row, .bk-pick-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.bk-ret-row label, .bk-pick-row label { display: grid; gap: 4px; font-size: .84rem; font-weight: 600; color: var(--muted); }
.field .bk-ret-row input, .field .bk-ret-row select, .field .bk-pick-row input, .field .bk-pick-row select { font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 11px 12px; width: 100%; min-width: 0; min-height: 46px; }
.bk-ret-row { padding-left: 12px; border-left: 3px solid var(--accent); }
.bk-pickup legend { display: flex; align-items: center; gap: 6px; }
.bk-pickup legend .i { width: 16px; height: 16px; color: var(--accent); }
.bk-pickup .btn { margin-top: 10px; }
.hint.ok { color: var(--ok); font-weight: 600; }
.hint.bad { color: var(--full); font-weight: 600; }
.bk-promo-row { display: flex; gap: 8px; }
.bk-promo-row input { flex: 1; min-width: 0; text-transform: uppercase; }
.bk-promo-row input::placeholder { text-transform: none; }
[data-total] s { color: var(--muted); font-weight: 600; font-size: .8em; margin-right: 4px; }
form.is-wait [type=submit] { background: var(--req); color: #fff; }
@media (max-width: 420px) { .bk-ret-row, .bk-pick-row { grid-template-columns: 1fr; } }

/* ================= Экран «Заявка принята»: билеты ================= */
.ok-trips { display: grid; gap: 10px; margin: 14px 0; text-align: left; }
.ok-trip { display: flex; gap: 14px; align-items: center; padding: 12px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface-2); animation: tl-in .5s cubic-bezier(.16,1,.3,1) both; }
.ok-trip + .ok-trip { animation-delay: .1s; }
.ok-qr { flex: none; width: 112px; height: 112px; border-radius: 10px; overflow: hidden; background: #fff; display: grid; place-items: center; }
.ok-qr svg { width: 100%; height: 100%; display: block; }
.ok-trip-txt { display: grid; gap: 3px; min-width: 0; }
.ok-trip-txt small { color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: .7rem; }
.ok-trip-txt .num { font-family: ui-monospace, Consolas, monospace; font-size: .85rem; color: var(--muted); }
.ok-trip-act { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
@media (max-width: 420px) { .ok-trip { flex-direction: column; text-align: center; } .ok-trip-txt { justify-items: center; } .ok-trip-act { justify-content: center; } }

/* ================= «Мои заявки»: этапы, водитель ================= */
.mine-st.st-waitlist { background: #ece9ff; color: #4b3cc0; }
.mine-stage { display: grid; gap: 4px; margin: 6px 0 2px; }
.mine-dots { display: flex; gap: 4px; }
.mine-dots i { flex: 1; height: 6px; border-radius: 99px; background: var(--line); transition: background .4s; }
.mine-dots i.past { background: color-mix(in srgb, var(--accent) 55%, var(--line)); }
.mine-dots i.cur { background: var(--accent); box-shadow: 0 0 8px rgba(242,165,22,.6); animation: stage-pulse 1.6s ease-in-out infinite; }
@keyframes stage-pulse { 50% { opacity: .55; } }
.mine-stage small { font-weight: 700; color: var(--text); }
.mine-driver { display: flex; align-items: center; gap: 10px; padding: 8px 10px; margin: 6px 0; border-radius: 10px; background: var(--surface-2); }
.mine-driver > .i { width: 28px; height: 28px; padding: 5px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-2); flex: none; }
.mine-driver div { flex: 1; min-width: 0; display: grid; line-height: 1.25; }
.mine-driver small { color: var(--muted); font-size: .76rem; }
.mine-pay { border-color: var(--accent) !important; background: var(--accent-soft) !important; }
.mine-tk { border-color: var(--brand-2) !important; }

/* ================= Билет: окно и страница ================= */
.tk-sheet { max-width: 420px; }
.tk-body { text-align: center; display: grid; gap: 10px; justify-items: center; }
.tk-qr { width: 240px; max-width: 100%; aspect-ratio: 1; padding: 10px; background: #fff; border-radius: 18px; box-shadow: 0 12px 30px -16px rgba(0,0,0,.35); display: grid; place-items: center; }
.tk-qr svg { width: 100%; height: 100%; display: block; }
.tk-hint { margin: 0; color: var(--muted); font-size: .88rem; }
.tk-id { font-family: ui-monospace, Consolas, monospace; font-weight: 800; font-size: 1.1rem; letter-spacing: .04em; }
.tk-page { min-height: 100vh; background: linear-gradient(160deg, var(--brand), #0a2536); padding: calc(20px + env(safe-area-inset-top)) 14px calc(28px + env(safe-area-inset-bottom)); }
[data-theme="dark"] .tk-page { background: linear-gradient(160deg, #12324a, #070d14); }
.tk { max-width: 440px; margin: 0 auto; display: grid; gap: 16px; }
.tk-brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 800; justify-self: center; }
.tk-brand img { border-radius: 10px; }
.tk-card { background: var(--surface); border-radius: 24px; padding: 22px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); display: grid; gap: 12px; justify-items: center; text-align: center; position: relative; overflow: hidden; }
.tk-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--ok); }
.tk-wait::before { background: var(--accent); }
.tk-bad::before { background: var(--full); }
.tk-state { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 99px; background: #dcf5e6; color: #13703b; font-size: 1.05rem; }
.tk-wait .tk-state { background: var(--accent-soft); color: #8a5600; }
.tk-bad .tk-state { background: #fde3e3; color: #a32525; }
.tk-bad .tk-qr { opacity: .35; filter: grayscale(1); }
.tk-dot { width: 10px; height: 10px; border-radius: 50%; background: currentColor; animation: stage-pulse 1.6s ease-in-out infinite; }
.tk-note { margin: 0; padding: 10px 12px; border-radius: 12px; background: #dcf5e6; color: #13703b; font-weight: 600; }
.tk-rows { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; margin: 4px 0; text-align: left; }
.tk-rows .wide { grid-column: 1 / -1; }
.tk-rows dt { font-size: .74rem; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.tk-rows dd { margin: 0; font-weight: 700; word-break: break-word; }
.tk-actions { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tk-actions .btn-block { grid-column: 1 / -1; }
[data-theme="dark"] .tk-state { background: #12301f; color: #8be0ad; }
[data-theme="dark"] .tk-wait .tk-state { background: #2e2512; color: var(--accent); }
[data-theme="dark"] .tk-bad .tk-state { background: #3a1717; color: #ffb4b4; }
@media print { .tk-page { background: #fff; } .tk-actions, .tk-brand { display: none; } .tk-card { box-shadow: none; } }
@media (prefers-reduced-motion: reduce) { .mine-dots i.cur, .tk-dot, .ok-trip { animation: none; } }

/* ---- «Показать водителю»: билет на весь экран (всегда светлый — так QR лучше считывается) ---- */
.tk-show-btn { margin-top: 2px; }
dialog.tk-show { width: 100%; max-width: 100%; height: 100%; max-height: 100%; margin: 0; padding: 0; border: 0; background: #fff; color: #0b1520; }
dialog.tk-show::backdrop { background: #fff; }
.tk-show-in { min-height: 100%; display: grid; align-content: center; justify-items: center; gap: 10px; text-align: center; padding: calc(14px + env(safe-area-inset-top)) 18px calc(18px + env(safe-area-inset-bottom)); border-top: 10px solid var(--ok); }
.tk-show.tk-wait .tk-show-in { border-top-color: var(--accent); }
.tk-show-top { width: 100%; max-width: 460px; display: flex; align-items: center; justify-content: space-between; color: #0f3d5e; }
.tk-show-top .icon-btn { background: #f1f4f8; color: #0b1520; border-color: #dfe5ec; }
.tk-show-state { padding: 6px 16px; border-radius: 99px; font-weight: 800; font-size: 1.15rem; background: #dcf5e6; color: #13703b; }
.tk-show.tk-wait .tk-show-state { background: #fff1d6; color: #8a5600; }
.tk-show-qr { width: min(82vw, 52vh, 360px); aspect-ratio: 1; }
.tk-show-qr svg { width: 100%; height: 100%; display: block; }
.tk-show-name { font-size: clamp(1.4rem, 6vw, 2rem); font-weight: 800; line-height: 1.15; word-break: break-word; }
.tk-show-meta { font-size: 1.05rem; line-height: 1.45; color: #2b3644; }
.tk-show-id { font-family: ui-monospace, Consolas, monospace; font-weight: 800; font-size: 1.2rem; letter-spacing: .05em; }
.tk-live { position: relative; width: min(100%, 360px); height: 40px; border-radius: 12px; overflow: hidden; background: #0f3d5e; display: grid; place-items: center; }
.tk-live i { position: absolute; top: 0; bottom: 0; width: 34%; background: linear-gradient(90deg, transparent, rgba(242,165,22,.85), transparent); animation: tk-live 2.2s linear infinite; }
.tk-live time { position: relative; color: #fff; font: 800 1.2rem/1 ui-monospace, Consolas, monospace; letter-spacing: .08em; }
@keyframes tk-live { from { left: -34%; } to { left: 100%; } }
.tk-show-hint { margin: 0; max-width: 360px; font-size: .84rem; color: #5b6878; }
@media (max-height: 640px) { .tk-show-in { gap: 6px; } .tk-show-meta { font-size: .95rem; } .tk-live { height: 32px; } }

/* ---- Проверка билета водителем (над билетом) ---- */
.drv-check { gap: 10px; text-align: left; justify-items: stretch; border: 3px solid var(--ok); }
.drv-check::before { display: none; }
.drv-warn.drv-check, .drv-check.drv-warn { border-color: var(--accent); }
.drv-check.drv-bad { border-color: var(--full); }
.drv-verdict { display: flex; align-items: center; gap: 12px; font-size: 1.15rem; line-height: 1.25; }
.drv-verdict span { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-size: 1.5rem; font-weight: 900; color: #fff; background: var(--ok); }
.drv-warn .drv-verdict span { background: var(--accent); color: #1b1300; }
.drv-bad .drv-verdict span { background: var(--full); }
.drv-who { margin: 0; }
.drv-twice { margin: 0; padding: 10px 12px; border-radius: 12px; background: #fff1d6; color: #7a4b00; font-weight: 700; font-size: .92rem; }
.drv-back { font-weight: 700; justify-self: center; }

/* ---- Страница водителя ---- */
.drv { max-width: 560px; }
.drv-card { justify-items: stretch; text-align: left; }
.drv-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.drv-head h1 { font-size: 1.35rem; margin: 0; }
.drv-head p { margin: 2px 0 0; color: var(--muted); font-weight: 600; }
.drv-count { text-align: right; display: grid; line-height: 1.1; }
.drv-count b { font-size: 1.7rem; }
.drv-count small { color: var(--muted); font-weight: 600; }
.drv-bar { height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; }
.drv-bar i { display: block; height: 100%; background: var(--ok); border-radius: inherit; transition: width .5s; }
.drv-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.drv-pax { background: var(--surface); border-radius: 18px; padding: 14px 16px; border: 2px solid transparent; box-shadow: 0 16px 40px -30px rgba(0,0,0,.6); scroll-margin-top: 16px; }
.drv-pax.is-on { border-color: var(--ok); }
.drv-pax-top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.drv-pax-top b { font-size: 1.08rem; margin-right: 6px; }
.drv-seats, .drv-warn:not(.drv-check) { display: inline-block; font-size: .76rem; font-weight: 800; padding: 2px 8px; border-radius: 99px; background: var(--brand-soft); color: var(--brand); vertical-align: middle; }
.drv-pax .drv-warn { background: #fff1d6; color: #8a5600; }
.drv-on { flex: none; font-weight: 800; color: #13703b; background: #dcf5e6; padding: 3px 10px; border-radius: 99px; }
.drv-meta { margin: 6px 0 10px; color: var(--muted); font-size: .92rem; line-height: 1.5; }
.drv-meta code { font-size: .82rem; }
.drv-act { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.drv-act form { margin-left: auto; }
.drv-stages { justify-items: stretch; text-align: left; }
.drv-stages h2 { font-size: 1.1rem; margin: 0; }
.drv-stages form { display: flex; flex-wrap: wrap; gap: 6px; }
.drv-fine { color: rgba(255,255,255,.7); font-size: .8rem; text-align: center; margin: 0; }
dialog.drv-scan { width: min(94vw, 480px); border: 0; border-radius: 20px; padding: 12px; background: var(--surface); color: var(--text); }
dialog.drv-scan::backdrop { background: rgba(5,12,20,.75); }
.drv-scan video { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 14px; background: #000; display: block; }
.drv-scan p { text-align: center; font-weight: 700; margin: 10px 0; }
[data-theme="dark"] .drv-on { background: #12301f; color: #8be0ad; }
[data-theme="dark"] .drv-pax .drv-warn, [data-theme="dark"] .drv-twice { background: #2e2512; color: var(--accent); }
@media (prefers-reduced-motion: reduce) { .tk-live i { animation-duration: 6s; } }
@media print { .tk-show-btn, [data-save-img], .drv-check { display: none !important; } }
.drv-fine a { color: #fff; font-weight: 700; }

/* ---- онлайн-оплата в билете ---- */
.tk-note-wait { background: #fff1d6; color: #7a4b00; }
.tk-note-bad { background: #fde3e3; color: #a32525; }
[data-theme="dark"] .tk-note-wait { background: #2e2512; color: var(--accent); }
[data-theme="dark"] .tk-note-bad { background: #3a1717; color: #ffb4b4; }
.tk-paynote { grid-column: 1 / -1; margin: -2px 0 2px; font-size: .78rem; color: var(--muted); text-align: center; }

/* ---- оплата в билете: кнопки, способы оплаты, иконки ---- */
.tk-i { width: 18px; height: 18px; flex: none; vertical-align: -3px; margin-right: 6px; }
.tk-pay { grid-column: 1 / -1; display: grid; gap: 8px; }
.tk-pay .btn { display: inline-flex; align-items: center; justify-content: center; }
.tk-methods { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.tk-methods span { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 99px; background: var(--bg); border: 1px solid var(--line); font-size: .76rem; font-weight: 700; color: var(--muted); }
.tk-methods .tk-i { width: 15px; height: 15px; margin-right: 5px; color: var(--brand-2); }
.tk-paid .tk-i { color: var(--ok); }
.tk-paid-pending .tk-i { color: var(--accent); }
.tk-paid-refunded .tk-i { color: var(--muted); }
.tk-receipt { white-space: nowrap; }
.tk-receipt .tk-i { width: 15px; height: 15px; margin-right: 3px; color: var(--brand-2); }
/* подсказка об онлайн-оплате в форме бронирования */
.pay-hint { display: flex; gap: 8px; align-items: flex-start; margin: 8px 0 14px; padding: 10px 12px; border-radius: 12px; background: var(--brand-soft); color: var(--text); font-size: .86rem; line-height: 1.45; }
.pay-hint .i { width: 18px; height: 18px; flex: none; color: var(--brand-2); margin-top: 1px; }
.tk-cash .tk-i { color: var(--accent); }
