/* Общая база демо: сброс, структурные стили виджетов (чат, тикер, графики, диалоги, переключатель вариантов).
 * Цвета и шрифты — из переменных варианта:
 * --c-bg --c-surface --c-surface-2 --c-text --c-muted --c-line --c-brand --c-brand-ink --c-accent
 * --font --font-num --radius --radius-sm --chart-1…5
 */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--c-bg); color: var(--c-text); font-family: var(--font); line-height: 1.5; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.num { font-variant-numeric: tabular-nums; }
:focus-visible { outline: 2px solid var(--c-focus, var(--c-brand)); outline-offset: 2px; }
.i { flex: none; vertical-align: middle; }

/* ---------- тикер ---------- */
.ticker { overflow: hidden; position: relative; -webkit-mask: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.ticker__track { display: flex; width: max-content; animation: cc-ticker var(--ticker-speed, 40s) linear infinite; }
.ticker--reverse .ticker__track { animation-direction: reverse; }
.ticker:hover .ticker__track { animation-play-state: paused; }
@keyframes cc-ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- появление ---------- */
[data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1); }
[data-reveal].is-in { opacity: 1; transform: none; }
.is-entering { animation: cc-enter .35s cubic-bezier(.2, .7, .2, 1); }
@keyframes cc-enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes cc-pulse { 0% { box-shadow: 0 0 0 0 var(--pulse, rgba(37, 173, 80, .5)); } 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--c-live, #25ad50); animation: cc-pulse 2s infinite; flex: none; }

/* ---------- диалоги ---------- */
dialog { border: 0; padding: 0; max-width: min(640px, calc(100vw - 32px)); width: 100%; border-radius: var(--radius); background: var(--c-surface); color: var(--c-text); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .45); }
dialog::backdrop { background: rgba(10, 12, 16, .55); backdrop-filter: blur(4px); }
dialog[open] { animation: cc-enter .25s ease; }
dialog.drawer { margin: auto 0 0; max-width: 100vw; border-radius: var(--radius) var(--radius) 0 0; max-height: 88vh; }

/* ---------- графики ---------- */
.cc-chart__wrap { position: relative; }
.cc-chart { width: 100%; height: auto; overflow: visible; display: block; }
.cc-chart__grid { stroke: var(--c-line); stroke-width: 1; }
.cc-chart__axis { fill: var(--c-muted); font-size: 11px; font-family: var(--font-num, var(--font)); }
.cc-chart__line { fill: none; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.cc-chart__cursor { stroke: var(--c-muted); stroke-dasharray: 3 3; transition: opacity .15s; }
.cc-chart__tip { position: absolute; top: 8px; min-width: 168px; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--c-surface); color: var(--c-text); border: 1px solid var(--c-line); box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .3); font-size: 12px; display: grid; gap: 4px; pointer-events: none; font-variant-numeric: tabular-nums; }
.cc-chart__tip i, .cc-chart__key i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 6px; }
.cc-chart__legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 12px; font-size: 13px; color: var(--c-muted); }
.cc-bars { display: grid; gap: 12px; }
.cc-bars__row { display: grid; grid-template-columns: minmax(90px, 160px) 1fr auto; gap: 12px; align-items: center; font-size: 14px; }
.cc-bars__track { height: 10px; border-radius: 99px; background: var(--c-surface-2); overflow: hidden; }
.cc-bars__fill { height: 100%; width: var(--w); border-radius: inherit; transform-origin: left; animation: cc-grow 1s cubic-bezier(.2, .7, .2, 1); }
.cc-bars__value { font-variant-numeric: tabular-nums; font-weight: 600; text-align: right; white-space: nowrap; }
.cc-bars__value small { display: block; font-weight: 400; color: var(--c-muted); font-size: 12px; }
@keyframes cc-grow { from { transform: scaleX(0); } }

/* ---------- чат ---------- */
.cc-chat { position: fixed; right: 20px; bottom: 20px; z-index: 60; font-family: var(--font); }
.cc-chat__fab { width: 58px; height: 58px; border-radius: 50%; border: 0; background: var(--chat-bg, var(--c-brand)); color: var(--chat-ink, var(--c-brand-ink)); display: grid; place-items: center; box-shadow: 0 12px 30px -8px rgba(0, 0, 0, .45); position: relative; transition: transform .2s; }
.cc-chat__fab:hover { transform: scale(1.06); }
.cc-chat.is-open .cc-chat__fab { transform: scale(.9); }
.cc-chat__badge { position: absolute; top: -2px; right: -2px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: #e5383b; color: #fff; font: 700 12px/20px var(--font); border: 2px solid var(--c-bg); }
.cc-chat__panel { position: absolute; right: 0; bottom: 72px; width: min(400px, calc(100vw - 32px)); height: min(600px, calc(100vh - 110px)); display: flex; flex-direction: column; background: var(--c-surface); color: var(--c-text); border-radius: var(--radius); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .5); border: 1px solid var(--c-line); overflow: hidden; animation: cc-enter .25s ease; }
.cc-chat__head { display: flex; align-items: center; gap: 12px; padding: 14px 14px 10px 16px; }
.cc-chat__who { min-width: 0; }
.cc-chat__who b { display: block; font-size: 15px; line-height: 1.25; }
.cc-chat__who small { color: var(--c-muted); font-size: 12px; }
.cc-chat__avatar { position: relative; width: 40px; height: 40px; border-radius: 50%; background: var(--c-brand); color: var(--c-brand-ink); display: grid; place-items: center; font-weight: 700; font-size: 14px; flex: none; }
.cc-chat__avatar i { position: absolute; right: 0; bottom: 0; width: 11px; height: 11px; border-radius: 50%; background: #25ad50; border: 2px solid var(--c-surface); }
.cc-chat__close { margin-left: auto; background: none; border: 0; color: var(--c-muted); padding: 6px; border-radius: 8px; flex: none; }
.cc-chat__close:hover { background: var(--c-surface-2); color: var(--c-text); }
.cc-chat__channels { display: flex; gap: 4px; padding: 0 16px 12px; overflow-x: auto; border-bottom: 1px solid var(--c-line); }
.cc-chat__ch { flex: none; display: inline-flex; align-items: center; gap: 5px; padding: 5px 9px; border-radius: 99px; background: var(--c-surface-2); font-size: 12px; font-weight: 500; text-decoration: none; color: var(--c-text); }
.cc-chat__ch:hover { background: var(--c-line); }
.cc-chat__log { flex: 1; overflow-y: auto; padding: 8px 16px 12px; display: flex; flex-direction: column; gap: 2px; -webkit-mask: linear-gradient(transparent, #000 18px); mask: linear-gradient(transparent, #000 18px); }
.cc-chat__day { align-self: center; font-size: 11px; color: var(--c-muted); padding: 8px 0 6px; }
.cc-chat__msg { max-width: 86%; padding: 9px 13px; border-radius: 16px; font-size: 14px; line-height: 1.45; margin-top: 6px; overflow-wrap: anywhere; }
.cc-chat__msg--bot { background: var(--c-surface-2); border-bottom-left-radius: 4px; align-self: flex-start; }
.cc-chat__msg--me { background: var(--chat-bg, var(--c-brand)); color: var(--chat-ink, var(--c-brand-ink)); align-self: flex-end; border-bottom-right-radius: 4px; }
.cc-chat__meta { font-size: 10px; color: var(--c-muted); padding: 2px 4px 0; }
.cc-chat__meta--me { align-self: flex-end; }
.cc-chat__carmsg { display: flex; gap: 10px; align-items: center; padding: 6px 12px 6px 6px; max-width: 92%; }
.cc-chat__carmsg img { width: 64px; height: 48px; object-fit: cover; border-radius: 10px; flex: none; }
.cc-chat__carmsg span { display: grid; min-width: 0; line-height: 1.3; }
.cc-chat__carmsg small { font-size: 11px; opacity: .75; }
.cc-chat__carmsg em { font-style: normal; font-size: 12px; opacity: .85; font-variant-numeric: tabular-nums; }
.cc-chat__actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.cc-chat__action { border: 0; border-radius: 99px; padding: 6px 12px; font-size: 13px; font-weight: 600; background: var(--chat-bg, var(--c-brand)); color: var(--chat-ink, var(--c-brand-ink)); }
.cc-chat__sugg { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; margin-top: 10px; animation: cc-enter .3s ease; }
.cc-chat__sugg button { border: 1px solid var(--c-line); background: var(--c-surface); color: var(--c-text); border-radius: 99px; padding: 6px 12px; font-size: 13px; line-height: 1.3; text-align: left; transition: border-color .15s, background .15s; }
.cc-chat__sugg button:hover { border-color: var(--c-text); }
.cc-chat__lead { display: flex; gap: 6px; margin-top: 8px; align-self: stretch; }
.cc-chat__lead input { flex: 1; min-width: 0; border: 1px solid var(--c-line); background: var(--c-surface); border-radius: 12px; padding: 9px 12px; }
.cc-chat__lead.is-error input { border-color: #e5383b; }
.cc-chat__lead button { border: 0; border-radius: 12px; padding: 0 14px; font-weight: 600; background: var(--chat-bg, var(--c-brand)); color: var(--chat-ink, var(--c-brand-ink)); white-space: nowrap; }
.cc-chat__typing { display: flex; gap: 4px; padding: 13px 14px; }
.cc-chat__typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--c-muted); animation: cc-blink 1s infinite; }
.cc-chat__typing i:nth-child(2) { animation-delay: .15s; } .cc-chat__typing i:nth-child(3) { animation-delay: .3s; }
@keyframes cc-blink { 50% { opacity: .2; } }
.cc-chat__form { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--c-line); }
.cc-chat__form input { flex: 1; min-width: 0; border: 0; background: var(--c-surface-2); border-radius: 12px; padding: 10px 14px; outline-offset: 0; }
.cc-chat__form button { border: 0; width: 44px; border-radius: 12px; background: var(--chat-bg, var(--c-brand)); color: var(--chat-ink, var(--c-brand-ink)); display: grid; place-items: center; flex: none; }
.cc-chat__note { font-size: 11px; color: var(--c-muted); text-align: center; padding: 0 0 8px; }
@media (max-width: 640px) {
  .cc-chat__panel { position: fixed; inset: 0; width: auto; height: auto; max-height: none; border-radius: 0; border: 0; }
  .cc-chat.is-open .cc-chat__fab { display: none; }
  body.cc-chat-open { overflow: hidden; }
}

/* ---------- утилиты ---------- */
.no-scrollbar { scrollbar-width: none; -ms-overflow-style: none; position: relative; } /* relative: .sr-only внутри не раздувает ширину страницы */
.no-scrollbar::-webkit-scrollbar { display: none; }

/* ---------- цифры (.cc-stat) ---------- */
.cc-stat { min-width: 0; }
.cc-stat__value { white-space: nowrap; font-variant-numeric: tabular-nums; line-height: 1; display: flex; align-items: baseline; gap: .12em; }
.cc-stat__pre, .cc-stat__unit { font-size: .52em; font-weight: inherit; opacity: .8; letter-spacing: 0; }
.cc-stat__pre { margin-right: .12em; }
.cc-stat__label { margin-top: 6px; font-size: 13px; line-height: 1.35; color: var(--c-muted); }

/* ---------- чипы активных фильтров ---------- */
.cc-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.cc-chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--c-line); background: var(--c-surface); color: var(--c-text); border-radius: 99px; padding: 5px 8px 5px 12px; font-size: 13px; line-height: 1.2; transition: border-color .15s; }
.cc-chip span { font-size: 16px; line-height: 1; color: var(--c-muted); }
.cc-chip:hover { border-color: var(--c-text); }
.cc-chip--reset { border-style: dashed; padding-right: 12px; color: var(--c-muted); }

/* ---------- дропдаун города ---------- */
.city-select { position: relative; display: inline-block; }
.city-select__btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--c-line); background: var(--c-surface); color: var(--c-text); border-radius: var(--radius-sm); padding: 8px 12px; font-size: 14px; white-space: nowrap; }
.city-select__btn:hover { border-color: var(--c-text); }
.city-select__pre { color: var(--c-muted); }
.city-select.is-open .city-select__btn .i { transform: rotate(180deg); }
.city-select__pop { position: absolute; z-index: 45; top: calc(100% + 6px); right: 0; width: 300px; max-width: calc(100vw - 32px); padding: 6px; border-radius: var(--radius-sm); background: var(--c-surface); border: 1px solid var(--c-line); box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .35); animation: cc-enter .18s ease; }
.city-select__opt { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; text-align: left; border: 0; background: none; color: var(--c-text); padding: 9px 10px; border-radius: 8px; }
.city-select__opt:hover, .city-select__opt.is-active { background: var(--c-surface-2); }
.city-select__opt span { display: grid; gap: 2px; }
.city-select__opt b { font-size: 14px; font-weight: 600; }
.city-select__opt small { font-size: 12px; color: var(--c-muted); }
.city-select--left .city-select__pop { left: 0; right: auto; }

/* ---------- шторка фильтров ---------- */
dialog.cc-drawer { margin: 0 0 0 auto; height: 100vh; max-height: 100vh; width: min(440px, 100vw); max-width: 100vw; border-radius: var(--radius) 0 0 var(--radius); }
dialog.cc-drawer[open] { display: flex; flex-direction: column; animation: cc-slide-l .3s cubic-bezier(.2, .7, .2, 1); }
.cc-drawer__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--c-line); }
.cc-drawer__body { flex: 1; overflow-y: auto; padding: 20px; display: grid; gap: 20px; align-content: start; }
.cc-drawer__foot { padding: 14px 20px; border-top: 1px solid var(--c-line); display: grid; grid-template-columns: auto 1fr; gap: 10px; background: var(--c-surface); }
@keyframes cc-slide-l { from { transform: translateX(40px); opacity: 0; } }
@keyframes cc-slide-u { from { transform: translateY(40px); opacity: 0; } }
@media (max-width: 640px) {
  dialog.cc-drawer { margin: auto 0 0; height: auto; max-height: 90vh; width: 100vw; border-radius: var(--radius) var(--radius) 0 0; }
  dialog.cc-drawer[open] { animation-name: cc-slide-u; }
}

/* ---------- лайтбокс ---------- */
.cc-lb { position: fixed; inset: 0; z-index: 90; background: rgba(8, 9, 12, .96); color: #fff; display: grid; grid-template-rows: auto 1fr auto; font-family: var(--font); animation: cc-fade .2s ease; }
@keyframes cc-fade { from { opacity: 0; } }
body.cc-lb-open { overflow: hidden; }
.cc-lb__top { display: flex; align-items: center; gap: 16px; padding: 14px 20px; font-size: 14px; }
.cc-lb__cap { font-weight: 600; }
.cc-lb__count { color: rgba(255, 255, 255, .6); font-variant-numeric: tabular-nums; }
.cc-lb__close { margin-left: auto; border: 0; background: rgba(255, 255, 255, .1); color: #fff; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; }
.cc-lb__stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 0 72px; }
.cc-lb__img { max-width: 100%; max-height: calc(100vh - 190px); object-fit: contain; border-radius: 8px; user-select: none; -webkit-user-drag: none; }
.cc-lb__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .12); color: #fff; display: grid; place-items: center; }
.cc-lb__nav:hover { background: rgba(255, 255, 255, .22); }
.cc-lb__nav--prev { left: 14px; } .cc-lb__nav--next { right: 14px; }
.cc-lb__thumbs { display: flex; gap: 8px; justify-content: center; padding: 14px 20px 20px; overflow-x: auto; }
.cc-lb__thumbs button { flex: none; width: 84px; height: 60px; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; background: none; opacity: .55; transition: opacity .2s, border-color .2s; }
.cc-lb__thumbs button.is-active { opacity: 1; border-color: #f8d602; }
.cc-lb__thumbs img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 640px) { .cc-lb__stage { padding: 0 8px; } .cc-lb__nav { width: 40px; height: 40px; background: rgba(0, 0, 0, .45); } .cc-lb__nav--prev { left: 8px; } .cc-lb__nav--next { right: 8px; } }

/* ---------- бронь ---------- */
dialog.cc-book { max-width: min(1040px, calc(100vw - 32px)); width: 100%; max-height: min(760px, calc(100vh - 32px)); padding: 0; overflow: hidden; }
body.cc-book-open { overflow: hidden; }
dialog.cc-book:focus, .cc-book__main:focus, .cc-book__aside:focus { outline: none; }
.cc-book__wrap { display: grid; grid-template-columns: 360px minmax(0, 1fr); height: min(760px, calc(100vh - 32px)); }
.cc-book__aside { background: var(--book-aside-bg, var(--c-surface-2)); padding: 20px; display: flex; flex-direction: column; gap: 16px; overflow-y: auto; }
.cc-book__photo { position: relative; margin: 0; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 4 / 3; }
.cc-book__photo img { width: 100%; height: 100%; object-fit: cover; }
.cc-book__photo figcaption { position: absolute; inset: auto 0 0; padding: 40px 14px 12px; background: linear-gradient(transparent, rgba(0, 0, 0, .72)); color: #fff; display: grid; }
.cc-book__photo figcaption b { font-size: 18px; line-height: 1.2; }
.cc-book__photo figcaption span { font-size: 13px; opacity: .85; }
.cc-book__sum { margin: 0; display: grid; gap: 8px; font-size: 14px; }
.cc-book__sum div { display: flex; justify-content: space-between; gap: 12px; }
.cc-book__sum dt { color: var(--c-muted); }
.cc-book__sum dd { margin: 0; font-variant-numeric: tabular-nums; }
.cc-book__total { border-top: 1px solid var(--c-line); padding-top: 14px; display: grid; gap: 2px; }
.cc-book__total span { font-size: 13px; color: var(--c-muted); }
.cc-book__total b { font-size: 30px; line-height: 1.1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.cc-book__total small { font-size: 12px; color: var(--c-muted); }
.cc-book__eta { display: flex; align-items: center; gap: 8px; font-size: 14px; margin: 0; }
.cc-book__trust, .cc-book__next { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 13px; color: var(--c-muted); }
.cc-book__trust li, .cc-book__next li { display: flex; gap: 8px; align-items: center; }
.cc-book__next { color: var(--c-text); font-size: 14px; }
.cc-book__main { display: flex; flex-direction: column; min-height: 0; overflow-y: auto; position: relative; }
.cc-book__head { display: flex; align-items: center; gap: 12px; padding: 18px 24px 0; }
.cc-book__steps { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; flex-wrap: wrap; font-size: 13px; color: var(--c-muted); }
.cc-book__steps li { display: flex; align-items: center; gap: 6px; }
.cc-book__steps li + li::before { content: ''; width: 18px; height: 1px; background: var(--c-line); margin-right: 2px; }
.cc-book__steps span { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 600; background: var(--c-surface-2); color: var(--c-muted); }
.cc-book__steps .is-current { color: var(--c-text); font-weight: 600; }
.cc-book__steps .is-current span, .cc-book__steps .is-done span { background: var(--c-brand); color: var(--c-brand-ink); }
.cc-book__x { margin-left: auto; border: 0; background: var(--c-surface-2); color: var(--c-text); width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.cc-book__body { padding: 20px 24px; flex: 1; }
.cc-book__title { font-size: clamp(22px, 2.4vw, 28px); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 6px; }
.cc-book__lead { color: var(--c-muted); font-size: 15px; margin: 0 0 18px; max-width: 56ch; }
.cc-book__h { font-size: 14px; font-weight: 600; margin: 20px 0 10px; }
.cc-book__cities { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.cc-book__city, .cc-book__mode, .cc-book__opt, .cc-book__chip { border: 1px solid var(--c-line); background: var(--c-surface); color: var(--c-text); border-radius: var(--radius-sm); text-align: left; transition: border-color .15s, box-shadow .15s, background .15s; }
.cc-book__city { padding: 12px 14px; display: grid; gap: 2px; }
.cc-book__city b { font-size: 15px; }
.cc-book__city span { font-size: 15px; font-variant-numeric: tabular-nums; }
.cc-book__city small { font-size: 12px; color: var(--c-muted); line-height: 1.3; }
.cc-book__city.is-active, .cc-book__mode.is-active, .cc-book__chip.is-active { border-color: var(--c-text); box-shadow: inset 0 0 0 1px var(--c-text); }
.cc-book__modes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.cc-book__mode { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; }
.cc-book__mode span { display: grid; gap: 2px; } .cc-book__mode small { color: var(--c-muted); font-size: 12px; }
.cc-book__opts { display: grid; gap: 8px; }
.cc-book__opt { display: flex; align-items: center; gap: 10px; padding: 11px 14px; cursor: pointer; font-size: 14px; }
.cc-book__opt span { flex: 1; } .cc-book__opt b { font-weight: 500; font-variant-numeric: tabular-nums; }
.cc-book__opt input { width: 18px; height: 18px; accent-color: var(--c-brand); }
.cc-book__fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.cc-book__field { display: grid; gap: 6px; font-size: 13px; color: var(--c-muted); }
.cc-book__field input { border: 1px solid var(--c-line); background: var(--c-surface); color: var(--c-text); border-radius: var(--radius-sm); padding: 12px 14px; font-size: 16px; }
.cc-book__channels { display: flex; flex-wrap: wrap; gap: 8px; }
.cc-book__chip { padding: 9px 16px; border-radius: 99px; font-size: 14px; }
.cc-book__fine { font-size: 12px; color: var(--c-muted); margin: 18px 0 0; max-width: 60ch; }
.cc-book__err { color: #e5383b; font-size: 13px; margin: 8px 0 0; }
.cc-book__foot { position: sticky; bottom: 0; display: flex; align-items: center; gap: 12px; padding: 14px 24px; border-top: 1px solid var(--c-line); background: var(--c-surface); }
.cc-book__foot-total { margin-left: auto; display: grid; text-align: right; line-height: 1.2; }
.cc-book__foot-total small { font-size: 12px; color: var(--c-muted); }
.cc-book__foot-total b { font-size: 18px; font-variant-numeric: tabular-nums; }
.cc-book__btn { display: inline-flex; align-items: center; gap: 8px; justify-content: center; border: 0; border-radius: var(--btn-radius, 12px); padding: 13px 22px; font-weight: 600; font-size: 15px; background: var(--c-brand); color: var(--c-brand-ink); white-space: nowrap; }
.cc-book__btn--ghost { background: var(--c-surface-2); color: var(--c-text); }
.is-done .cc-book__foot { justify-content: flex-end; }
.cc-book__done { display: grid; gap: 4px; }
.cc-book__check { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--c-brand); color: var(--c-brand-ink); margin-bottom: 10px; animation: cc-pop .5s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes cc-pop { from { transform: scale(.3); opacity: 0; } }
.cc-book__timer { display: inline-flex; align-items: baseline; gap: 10px; margin: 6px 0 4px; padding: 10px 16px; border-radius: var(--radius-sm); background: var(--c-surface-2); justify-self: start; }
.cc-book__timer span { font-size: 13px; color: var(--c-muted); }
.cc-book__timer b { font-size: 24px; font-variant-numeric: tabular-nums; letter-spacing: .02em; font-family: var(--font-num, var(--font)); }
.cc-book__road { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; position: relative; }
.cc-book__road::before { content: ''; position: absolute; left: 6px; right: 6px; top: 6px; height: 2px; background: var(--c-line); }
.cc-book__road li { position: relative; padding-top: 22px; display: grid; gap: 2px; font-size: 13px; }
.cc-book__road li::before { content: ''; position: absolute; top: 0; left: 0; width: 14px; height: 14px; border-radius: 50%; background: var(--c-surface); border: 2px solid var(--c-line); }
.cc-book__road li.is-next::before { background: var(--c-brand); border-color: var(--c-brand); }
.cc-book__road b { font-size: 15px; }
.cc-book__road small { color: var(--c-muted); font-size: 12px; }
.cc-book__confetti { position: absolute; inset: 0; pointer-events: none; z-index: 5; }
@media (max-width: 860px) {
  dialog.cc-book { max-width: 100vw; max-height: 100vh; height: 100vh; margin: 0; border-radius: 0; }
  .cc-book__wrap { grid-template-columns: 1fr; height: 100vh; overflow-y: auto; }
  .cc-book__aside { display: none; }
  .cc-book__main { overflow: visible; }
  .cc-book__cities, .cc-book__modes, .cc-book__fields { grid-template-columns: 1fr 1fr; }
  .cc-book__road { grid-template-columns: 1fr 1fr; row-gap: 16px; }
  .cc-book__road::before { display: none; }
  .cc-book__steps li { font-size: 0; } .cc-book__steps li span { font-size: 12px; }
  .cc-book__steps .is-current { font-size: 13px; }
}
@media (max-width: 420px) { .cc-book__modes, .cc-book__fields { grid-template-columns: 1fr; } .cc-book__foot { padding: 12px 16px; } .cc-book__btn { padding: 12px 16px; } .cc-book__body { padding: 16px; } }

/* ---------- переключатель вариантов ---------- */
.cc-variants { position: fixed; left: 16px; bottom: 16px; z-index: 70; display: flex; gap: 2px; padding: 4px; border-radius: 99px; background: rgba(20, 20, 24, .92); backdrop-filter: blur(8px); box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .5); font: 500 13px/1 system-ui, -apple-system, 'Segoe UI', sans-serif; }
.cc-variants a { color: #d6d6db; text-decoration: none; padding: 8px 12px; border-radius: 99px; display: flex; align-items: center; transition: background .2s, color .2s; }
.cc-variants a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.cc-variants a.is-active { background: #f8d602; color: #111; }
.cc-variants__hub { color: #9a9aa3 !important; border-right: 1px solid rgba(255, 255, 255, .12); border-radius: 99px 0 0 99px !important; margin-right: 2px; }
@media (max-width: 640px) { .cc-variants a span { display: none; } .cc-variants { left: 8px; bottom: 8px; } .cc-chat { right: 12px; bottom: 12px; } body.cc-chat-open .cc-variants { display: none; } }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .ticker__track { animation: none; }
  [data-reveal] { opacity: 1; transform: none; }
}
.cc-bars__label { display: flex; align-items: center; gap: 8px; min-width: 0; }
.cc-bars__label img { display: inline-block; flex: none; }

/* ---------- «сборка» карточек (CC.ui.stagger) ---------- */
.cc-in { animation: cc-card-in .42s cubic-bezier(.2, .8, .2, 1) both; animation-delay: var(--cc-d, 0ms); }
@keyframes cc-card-in { from { opacity: 0; transform: translateY(18px) scale(.97); } }

/* ---------- выпадающие меню вместо <select> ---------- */
.cc-select { position: relative; display: inline-block; vertical-align: middle; max-width: 100%; overflow: clip; overflow-clip-margin: 4px; }
.cc-select--block { display: block; width: 100%; min-width: 0; contain: inline-size; } /* ширину задаёт ячейка, а не длинная подпись */
.cc-select__native { position: absolute !important; inset: 0; width: 100% !important; height: 100% !important; opacity: 0; pointer-events: none; }
.cc-select__btn { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; text-align: left; cursor: pointer; white-space: nowrap; transition: border-color .15s, box-shadow .15s; }
.cc-select__btn:hover { border-color: var(--c-text) !important; }
.cc-select.is-open .cc-select__btn { border-color: var(--c-text) !important; }
.cc-select__label { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.cc-select__btn.is-placeholder .cc-select__label { opacity: .75; }
.cc-select__btn .i { transition: transform .2s; opacity: .7; }
.cc-select.is-open .cc-select__btn .i { transform: rotate(180deg); }
.cc-menu { position: fixed; z-index: 95; padding: 6px; border-radius: var(--radius-sm, 12px); background: var(--c-surface); color: var(--c-text); border: 1px solid var(--c-line); box-shadow: 0 24px 50px -18px rgba(0, 0, 0, .35); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; font-family: var(--font); animation: cc-menu-in .16s ease; max-width: calc(100vw - 16px); }
.cc-menu.is-up { animation-name: cc-menu-up; }
@keyframes cc-menu-in { from { opacity: 0; transform: translateY(-4px); } }
@keyframes cc-menu-up { from { opacity: 0; transform: translateY(4px); } }
.cc-menu__opt { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 12px; border: 0; background: none; color: inherit; text-align: left; padding: 9px 10px; border-radius: 8px; font-size: 14px; line-height: 1.3; white-space: nowrap; }
.cc-menu__opt:hover, .cc-menu__opt:focus-visible { background: var(--c-surface-2); outline: none; }
.cc-menu__opt.is-active { font-weight: 600; }
.cc-menu__opt:disabled { opacity: .4; }
.cc-menu__group { padding: 8px 10px 4px; font-size: 12px; color: var(--c-muted); }

/* ---------- логотип ---------- */
.cc-logo { display: inline-flex; align-items: center; gap: .45em; line-height: 1; white-space: nowrap; }
.cc-logo__mark { flex: none; display: block; }
.cc-logo__word { font-weight: 400; letter-spacing: -.025em; }
.cc-logo__word b { font-weight: 800; }

/* ---------- счётчики на кнопках фильтров ---------- */
[data-cond][data-count]::after, [data-market-btn][data-count]::after { content: attr(data-count); margin-left: .4em; font-size: .78em; font-weight: 500; opacity: .5; font-variant-numeric: tabular-nums; }
[data-cond].is-empty, [data-market-btn].is-empty { opacity: .45; }

/* ---------- ползунок цены ---------- */
.cc-range { display: grid; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--c-line); min-width: 240px; }
.cc-range__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 13px; color: var(--c-muted); }
.cc-range__head b { color: var(--c-text); font-size: 14px; font-variant-numeric: tabular-nums; }
.cc-range__scale { display: flex; justify-content: space-between; font-size: 11px; color: var(--c-muted); }
.cc-range input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 22px; background: transparent; margin: 0; cursor: pointer; --fill: 100%; }
.cc-range input[type=range]::-webkit-slider-runnable-track { height: 6px; border-radius: 99px; background: linear-gradient(90deg, var(--c-text) var(--fill), var(--c-line) var(--fill)); }
.cc-range input[type=range]::-moz-range-track { height: 6px; border-radius: 99px; background: var(--c-line); }
.cc-range input[type=range]::-moz-range-progress { height: 6px; border-radius: 99px; background: var(--c-text); }
.cc-range input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -8px; border-radius: 50%; background: var(--c-brand); border: 3px solid var(--c-surface); box-shadow: 0 1px 4px rgba(0, 0, 0, .3); }
.cc-range input[type=range]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--c-brand); border: 3px solid var(--c-surface); box-shadow: 0 1px 4px rgba(0, 0, 0, .3); }
/* «Все авто» и «Все рынки» без счётчика — он совпадает с «Найдено N». */
[data-cond="all"][data-count]::after, [data-market-btn=""][data-count]::after { content: none; }
