/* go7.uz — «Витрина туров» (assets/js/showcase.js) */
.c5-head .row { align-items: center; }
.c5-from { display: inline-flex; align-items: center; gap: 6px; padding-left: 10px; border-radius: 12px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.c5-from .ico { flex: none; color: var(--accent); }
.c5-from select { border: 0; box-shadow: none; background-color: transparent; min-width: 170px; font-weight: 700; }
/* «За 1 чел. / За тур» */
.c5-per { flex-wrap: nowrap; padding: 3px; }
.c5-per button { padding: 6px 12px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.c5-perrow { display: inline-flex; align-items: center; gap: 8px; }
.c5-perrow > span { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.c4-intro + .c5-perrow { margin: 0 0 12px; }
.c5-ai { margin: 0 0 12px; font-size: 13px; }
.c5-ai .ico { flex: none; margin-top: 1px; }
.c5-note { display: flex; gap: 6px; align-items: flex-start; margin: 0 0 12px; }
.c5-note .ico { flex: none; margin-top: 2px; color: var(--accent); }
.c5-hotnote .ico { color: #EA580C !important; }

/* ---------- Подборки дня ---------- */
.c5-picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 14px; }
.c5-pick { padding: 0; overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.c5-cover { position: relative; min-height: 138px; padding: 12px 14px; display: flex; flex-direction: column; justify-content: space-between; gap: 10px; color: #fff;
  background: linear-gradient(135deg, #0B1F3A, #1E3A6E) center / cover no-repeat; }
.c5-cover::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.05) 20%, rgba(0,0,0,.62)); }
.c5-cover > * { position: relative; }
.c5-cover h3 { margin: 0; font-size: 18px; line-height: 1.25; color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.35); overflow-wrap: anywhere; }
.c5-cover small { display: block; margin-top: 3px; font-size: 12.5px; color: rgba(255,255,255,.88); }
.c5-cover small .ico { vertical-align: -2px; }
.c5-cover .c5-b { align-self: flex-start; }
.c5-pb { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; min-width: 0; }
.c5-pm { display: flex; align-items: baseline; gap: 10px; margin: 0; }
.c5-pm b { font-size: 17px; font-variant-numeric: tabular-nums; }
.c5-pm span { color: var(--muted); font-size: 12.5px; }
.c5-pm small { margin-left: -6px; color: var(--muted); font-size: 12px; font-weight: 700; }
.c5-prv { flex: none; display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.c5-prv small { font-size: 10.5px; white-space: nowrap; }
.c5-pl { min-width: 0; }
.c5-pr { display: flex; align-items: center; gap: 10px; padding: 7px 0; min-width: 0; }
.c5-pr + .c5-pr { box-shadow: 0 -1px 0 var(--line); }
.c5-pr .grow { min-width: 0; }
.c5-pr b { display: block; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.c5-pr b i, .c5-card h4 i { font-style: normal; color: var(--ink-3); font-weight: 700; }
.c5-pr small { display: block; font-size: 11.5px; color: var(--muted); }
.c5-pr em { flex: none; font-style: normal; font-weight: 800; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.c5-pacts { display: flex; gap: 8px; margin-top: auto; padding-top: 4px; flex-wrap: wrap; }
.c5-pacts .btn { flex: 1 1 auto; justify-content: center; }

/* ---------- Метки ---------- */
.c5-b { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 800; white-space: nowrap; }
.c5-b.hot { background: #FFEDD5; color: #C2410C; }
.c5-b.deal { background: #DCFCE7; color: #047857; }
.c5-b.ok { background: rgba(8,145,178,.1); color: #0E7490; }
html[data-theme="dark"] .c5-b.hot { background: rgba(251,146,60,.16); color: #FDBA74; }
html[data-theme="dark"] .c5-b.deal { background: rgba(16,185,129,.16); color: #6EE7B7; }
html[data-theme="dark"] .c5-b.ok { background: rgba(34,211,238,.12); color: #67E8F9; }

/* ---------- Фильтры ---------- */
/* Две строки: поиск · направление · месяц · даты, затем ночи · питание · взрослые · звёзды · бюджет — поля не сжимаются, даты видны целиком */
.c5-filters { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; align-items: end; margin-bottom: 10px; }
.c5-filters > .c5-q, .c5-filters > .c5-dates, .c5-filters > .c5-nf { grid-column: span 2; }
/* Даты вылета / заезда: «с — по» в одной рамке по высоте обычного поля */
.c5-dr { position: relative; display: flex; align-items: center; gap: 6px; min-width: 0; }
.c5-dr .input { flex: 1 1 0; min-width: 0; padding-left: 10px; padding-right: 8px; }
.c5-dr i { flex: none; font-style: normal; color: var(--muted); }
.c5-drx { flex: none; display: inline-grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 8px; background: var(--surface-2, rgba(0,0,0,.05)); color: var(--muted); cursor: pointer; }
.c5-drx:hover { color: var(--ink, inherit); }
.c5-drx[hidden] { display: none; }
.c5-filters .field { margin: 0; min-width: 0; }
.c5-q { position: relative; display: flex; align-items: center; min-width: 0; }
.c5-q .ico { position: absolute; left: 12px; color: var(--muted); pointer-events: none; }
.c5-q input { padding-left: 36px; width: 100%; }
.c5-mq { display: none; }
.c5-ftog b { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 11px; }
.c5-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.c5-chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border: 0; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line);
  font: inherit; font-size: 13px; font-weight: 700; color: var(--ink-2); cursor: pointer; transition: background .15s, color .15s, box-shadow .15s; }
.c5-chip:hover { box-shadow: inset 0 0 0 1px var(--accent); }
.c5-chip.on { background: var(--accent); color: #fff; box-shadow: none; }
.c5-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.c5-count { display: flex; align-items: baseline; gap: 10px; margin: 0; flex: 1 1 auto; }
.c5-count b { font-size: 15px; }
.c5-count span { font-size: 12.5px; color: var(--muted); }
.c5-sort { display: inline-flex; align-items: center; gap: 6px; }
.c5-sort .ico { color: var(--muted); }
.c5-sort select { min-width: 170px; }

/* ---------- Карточки туров ---------- */
.c5-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 12px; }
.c5-grid > .spinner, .c5-grid > .c5-empty, .c5-grid > .alert { grid-column: 1 / -1; }
.c5-card { display: flex; flex-direction: column; gap: 7px; padding: 14px; min-width: 0; transition: box-shadow .15s; }
.c5-card.sel { box-shadow: 0 0 0 2px var(--accent), var(--shadow); }
.c5-top { display: flex; align-items: flex-start; gap: 8px; }
.c5-badges { display: flex; flex-wrap: wrap; gap: 5px; min-width: 0; }
.c5-chk { flex: none; position: relative; width: 22px; height: 22px; cursor: pointer; }
.c5-chk input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.c5-chk span { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; box-shadow: inset 0 0 0 1.5px var(--line-2, var(--line)); background: var(--surface); color: transparent; transition: background .15s; }
.c5-chk input:checked + span { background: var(--accent); color: #fff; box-shadow: none; }
.c5-chk input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.c5-card h4 { margin: 2px 0 0; font-size: 15.5px; line-height: 1.3; overflow-wrap: anywhere; }
.c5-place { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 0; font-size: 12.5px; color: var(--ink-2); font-weight: 700; }
.c5-place > span { display: inline-flex; align-items: center; gap: 4px; }
.c5-place .ico { color: var(--accent); flex: none; }
.c5-dep { color: var(--ink-3); }
.c5-facts { display: flex; flex-wrap: wrap; gap: 5px; }
.c5-facts > span { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 8px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); font-size: 12px; font-weight: 700; color: var(--ink-2); }
.c5-facts small { color: var(--muted); font-weight: 600; }
.c5-facts .ico { color: var(--ink-4, var(--muted)); }
.c5-room { font-size: 11.5px; color: var(--muted); overflow-wrap: anywhere; }
.c5-op { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; font-size: 12px; color: var(--muted); }
.c5-op .ico { color: #0E7490; }
.c5-op b { color: #0E7490; font-weight: 800; }
html[data-theme="dark"] .c5-op b, html[data-theme="dark"] .c5-op .ico { color: #67E8F9; }
.c5-price { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 6px; border-top: 1px solid var(--line); }
.c5-price em { display: block; font-style: normal; font-weight: 800; font-size: 19px; font-variant-numeric: tabular-nums; }
.c5-price small { display: block; font-size: 11.5px; color: var(--muted); }
.c5-pv { min-width: 0; }
.c5-price .c5-unit { font-weight: 700; color: var(--ink-3); }
.c5-price .c5-nopax { color: #B45309; }
html[data-theme="dark"] .c5-price .c5-nopax { color: #FCD34D; }
.c5-price .c5-alt { font-variant-numeric: tabular-nums; }
.c5-your { flex: none; text-align: right; }
.c5-your b { display: block; font-size: 14px; font-variant-numeric: tabular-nums; }
.c5-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.c5-acts .btn { flex: 1 1 auto; justify-content: center; }
.c5-moreb { display: flex; justify-content: center; margin: 14px 0 70px; }
.c5-moreb:empty { margin-bottom: 70px; }
.c5-empty { text-align: center; padding: 36px 20px; }
.c5-empty > .ico { color: var(--accent); }
.c5-empty h3 { margin: 10px 0 6px; }
.c5-empty p { max-width: 520px; margin: 0 auto 14px; }
.c5-er { justify-content: center; gap: 8px; }

/* ---------- Панель выбора ---------- */
.c5-selbar { box-sizing: border-box; position: fixed; z-index: 40; left: 50%; transform: translateX(-50%); bottom: 18px; width: min(640px, calc(100vw - 32px)); display: flex; align-items: center; gap: 10px;
  padding: 10px 12px 10px 16px; border-radius: 16px; background: var(--ink, #0B1F3A); color: #fff; box-shadow: 0 12px 40px rgba(11,31,58,.35); }
.c5-selbar[hidden] { display: none; }
html[data-theme="dark"] .c5-selbar { background: #1E293B; box-shadow: 0 12px 40px rgba(0,0,0,.5), inset 0 0 0 1px rgba(255,255,255,.08); }
.c5-selt { flex: 1 1 auto; min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.c5-selt small { color: rgba(255,255,255,.75); font-size: 12px; }
.c5-selbar .btn.ghost { color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.3); background: transparent; }

@media (max-width: 1399px) {
  .c5-filters { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .c5-head .row { width: 100%; }
  .c5-from { flex: 1 1 auto; }
  .c5-head .c5-per { flex: 1 1 100%; display: flex; order: -1; }
  .c5-head .c5-per button { flex: 1 1 0; }
  .c5-inper .c5-head .c5-per { display: none; }
  .c5-perrow { display: flex; width: 100%; }
  .c5-perrow .c5-per { flex: 1 1 auto; display: flex; }
  .c5-perrow .c5-per button { flex: 1 1 0; }
  .c5-from select { min-width: 0; width: 100%; }
  .c5-mq { display: flex; margin-bottom: 10px; }
  .c5-filters { display: none; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .c5-filters.open { display: grid; }
  .c5-filters > .c5-q, .c5-filters > .c5-dates, .c5-filters > .c5-nf { grid-column: span 2; }
  .c5-chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; margin-inline: -16px; padding-inline: 16px; scrollbar-width: none; }
  .c5-chip { flex: none; }
  .c5-selbar { bottom: calc(76px + env(safe-area-inset-bottom)); padding-left: 12px; gap: 8px; width: calc(100vw - 24px); }
  .c5-selt small:last-child { display: none; }
  .c5-selbar .btn.ghost span { display: none; }
  .c5-sort select { min-width: 0; }
}

/* «Только отели» (без перелёта) */
.c5-b.ho { background: #E8F1FF; color: #1F4FA3; }
html[data-theme="dark"] .c5-b.ho { background: rgba(96,145,255,.16); color: #9DBBFF; }
.c5-tn { min-width: 20px; padding: 1px 6px; border-radius: 999px; background: var(--bg-2); color: var(--ink-2); font-size: 11.5px; font-weight: 800; line-height: 17px; text-align: center; }
.av-tabs a.on .c5-tn { background: var(--accent-soft); color: var(--accent-ink); }
.c5-nofrom .c5-from { display: none; }
.c5-selt small .ico, .c5-selt small svg { vertical-align: -2px; }
.c5-op .c4-old .ico, html[data-theme="dark"] .c5-op .c4-old .ico { color: inherit; }
.c5-selt .c5-oldn { color: #B45309; font-weight: 700; }
html[data-theme="dark"] .c5-selt .c5-oldn { color: #FBBF24; }

/* Витрина без расширения go7 — экран «Установите расширение» (showcase.js → gate) */
.sh-gate { display: grid; place-items: start center; padding: 8px 0 40px; }
.sh-gate-wait { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 60px 0; color: var(--muted); font-size: 14px; }
.sh-gate-wait .empty { padding: 0; }
.sh-gate-card { width: min(560px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 32px 32px 26px; box-shadow: 0 1px 2px rgba(11,31,58,.04), 0 12px 32px -18px rgba(11,31,58,.18); }
.sh-gate-ic { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #FF7A4D, #FF5A36); box-shadow: 0 10px 22px -10px rgba(255,90,54,.7); margin-bottom: 18px; }
.sh-gate-card h2 { font-size: 24px; line-height: 1.25; letter-spacing: -.02em; color: var(--ink); }
.sh-gate-lead { margin-top: 8px; color: var(--ink-2); font-size: 15px; line-height: 1.5; }
.sh-gate-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px; }
.sh-gate-list li { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; line-height: 1.4; color: var(--ink); }
.sh-gate-list li > :first-child { flex: none; margin-top: 2px; color: #16A34A; }
.sh-gate-steps { list-style: none; margin: 22px 0 0; padding: 16px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; border-radius: 16px; background: var(--surface-2); }
.sh-gate-steps li { display: flex; gap: 10px; align-items: flex-start; min-width: 0; }
.sh-gate-steps i { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 800; font-size: 13px; color: #fff; background: var(--ink); }
.sh-gate-steps span { display: grid; gap: 2px; min-width: 0; }
.sh-gate-steps b { font-size: 14px; color: var(--ink); }
.sh-gate-steps small { font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.sh-gate-warn { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; padding: 12px 14px; border-radius: 14px; background: #FFF7ED; color: #9A3412; font-size: 13.5px; line-height: 1.45; }
.sh-gate-warn > :first-child { flex: none; margin-top: 1px; }
.sh-gate-act { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.sh-gate-act .btn { white-space: nowrap; }
.sh-gate-note { margin-top: 14px; font-size: 12.5px; color: var(--muted); line-height: 1.45; }
html[data-theme="dark"] .sh-gate-steps i { background: #E8EEF7; color: #0B1F3A; }
html[data-theme="dark"] .sh-gate-warn { background: rgba(251,146,60,.12); color: #FDBA74; }
@media (max-width: 640px) {
  .sh-gate-card { padding: 22px 18px 20px; border-radius: 18px; }
  .sh-gate-card h2 { font-size: 20px; }
  .sh-gate-list, .sh-gate-steps { grid-template-columns: minmax(0, 1fr); }
  .sh-gate-act .btn { flex: 1 1 100%; justify-content: center; white-space: normal; }
}

/* «Сбросить фильтры» — одна кнопка на вкладках витрины (Горящие, Все туры, Только отели, Цены рынка, История цен) */
.sh-reset { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 13px; border: 0; border-radius: 999px; background: var(--surface);
  color: var(--danger); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--danger) 45%, transparent); font: inherit; font-size: 13px; font-weight: 650;
  cursor: pointer; white-space: nowrap; transition: background .15s, box-shadow .15s, color .15s; }
.sh-reset:hover:not(:disabled) { background: var(--danger-soft); box-shadow: inset 0 0 0 1.5px var(--danger); }
.sh-reset:focus-visible { outline: 2px solid var(--danger); outline-offset: 2px; }
.sh-reset:disabled { color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); cursor: default; opacity: .75; }
.sh-reset b { display: inline-grid; place-items: center; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: var(--danger); color: #fff; font-size: 11px; font-weight: 800; }
.c5-chips .sh-reset { margin-left: auto; flex: none; }
.c5-mq .sh-reset { margin-left: auto; height: 32px; }
/* Цены рынка и История цен: кнопка — отдельной строкой под фильтрами, справа (колонки фильтров не сжимаются) */
.c4-filters .sh-rf, .ph-filters .sh-rf { grid-column: 1 / -1; justify-self: end; margin-top: -2px; }
.sh-rf > span { display: none; }
@media (max-width: 700px) {
  .c5-chips .sh-reset { display: none; }
  .c4-filters .sh-rf, .ph-filters .sh-rf { justify-self: stretch; }
  .c4-filters .sh-rf .sh-reset, .ph-filters .sh-rf .sh-reset { width: 100%; justify-content: center; }
}

/* «Подборки дня»: страны кнопками и «Показать ещё» */
.c5-pcs { margin: 2px 0 14px; }
.c5-pcn { display: inline-grid; place-items: center; min-width: 20px; height: 18px; padding: 0 6px; margin-left: 2px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: 11px; font-weight: 700; font-style: normal; }
.c5-chip.on .c5-pcn { background: rgba(255,255,255,.22); color: #fff; }
.c5-moreb .btn .c5-pcn { margin-left: 4px; }

/* «Есть и для: 3 взр. · 2+1 · 2+2» — другие составы этого же тура */
.c5-comps { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin: -2px 0 10px; font-size: 12px; color: var(--muted, #6b7280); }
.c5-comps button { border: 1px solid var(--line, #e5e7eb); background: transparent; color: inherit; border-radius: 99px; padding: 2px 9px; font: inherit; font-weight: 600; cursor: pointer; line-height: 1.5; }
.c5-comps button:hover, .c5-comps button:focus-visible { border-color: var(--accent, #0b57d0); color: var(--accent, #0b57d0); outline: none; }

/* ---------- «Плитка / Список» — вид туров на вкладках «Горящие», «Все туры», «Только отели» (showcase.js → viewSeg, row) ---------- */
.c5-view { flex-wrap: nowrap; padding: 3px; }
.c5-view button { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; font-size: 13px; white-space: nowrap; }
.c5-view .ico { flex: none; }

/* Список: одна таблица — колонки строк выровнены по общей сетке (subgrid) */
.c5-grid.c5-list { grid-template-columns: max-content minmax(0, 2fr) minmax(0, 1.85fr) minmax(0, 1.1fr) minmax(124px, max-content) max-content; gap: 0 14px; }
.c5-list:has(> .c5-row) { background: var(--surface); border-radius: var(--radius, 16px); box-shadow: var(--shadow), inset 0 0 0 1px var(--line); overflow: hidden; }
.c5-lh, .c5-list > .c5-row { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; }
.c5-lh { padding: 8px 14px; background: var(--surface-2); border-bottom: 1px solid var(--line); font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.c5-lh > span:nth-child(5) { text-align: right; }
.c5-list > .c5-row { align-items: center; padding: 9px 14px; border-radius: 0; background: transparent; box-shadow: none; transition: background .12s, box-shadow .12s; }
.c5-list > .c5-row + .c5-row { border-top: 1px solid var(--line); }
.c5-list > .c5-row:hover { background: var(--surface-2); }
.c5-list > .c5-row.sel { background: var(--accent-soft); box-shadow: inset 3px 0 0 var(--accent); }
.c5-rc { min-width: 0; display: flex; flex-direction: column; gap: 2px; }

/* Отель и направление */
.c5-row h4 { margin: 0; font-size: 14px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; overflow-wrap: normal; }
.c5-rl { display: flex; align-items: center; flex-wrap: wrap; gap: 3px 10px; margin: 0; min-width: 0; font-size: 12px; font-weight: 700; color: var(--ink-2); }
.c5-rl > span { display: inline-flex; align-items: center; gap: 3px; min-width: 0; }
.c5-rl .c5-rp .ico { flex: none; color: var(--accent); }
.c5-rl .c5-dep, .c5-rl .c5-dep .ico { color: var(--ink-3); }
.c5-rl .c5-b { padding: 1px 7px; font-size: 11px; gap: 3px; }
.c5-rl .c5-b.c5-bi { padding: 2px 4px; }
.c5-rcomps { margin: 2px 0 0; font-size: 11.5px; }
.c5-rcomps button { padding: 0 7px; line-height: 1.6; }

/* Даты, питание, рейс */
.c5-rt > b { font-size: 13px; font-weight: 800; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c5-rt > b .ico { display: inline-block; vertical-align: -2px; margin-right: 4px; color: var(--ink-4, var(--muted)); }
.c5-rt > b small { color: var(--muted); font-weight: 600; font-size: 12px; }
.c5-rm, .c5-rf { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c5-rm > span:first-child { color: var(--ink-2); font-weight: 700; }
/* рейс: время сжимается с «…», метка «ночной прилёт» видна всегда */
.c5-rf { display: flex; align-items: center; min-width: 0; }
.c5-rf .ico { flex: none; margin-right: 4px; color: var(--accent); }
.c5-rf b { flex: 0 0 auto; max-width: 48%; overflow: hidden; text-overflow: ellipsis; margin-right: 6px; color: var(--ink-2); font-weight: 700; }
.c5-rf > span { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.c5-rf .nf-night { flex: none; margin-left: 6px; }

/* Туроператор и свежесть цены */
.c5-ro > b { display: flex; align-items: center; gap: 4px; min-width: 0; font-size: 12.5px; font-weight: 800; color: #0E7490; }
.c5-ro > b > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.c5-ro > b .ico { flex: none; }
.c5-ro > b .muted { font-weight: 600; }
html[data-theme="dark"] .c5-ro > b { color: #67E8F9; }
.c5-ra { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 6px; font-size: 11.5px; color: var(--muted); }
.c5-rhist { display: inline-flex; align-items: center; gap: 3px; height: 22px; padding: 0 7px; border: 0; border-radius: 999px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line);
  color: var(--accent); font: inherit; font-size: 11px; cursor: pointer; }
.c5-rhist:hover, .c5-rhist:focus-visible { box-shadow: inset 0 0 0 1px var(--accent); outline: none; }
.c5-rhist .ico { flex: none; }
.c5-rhist em { font-style: normal; font-weight: 800; padding: 0 4px; border-radius: 999px; }
.c5-rhist em.down { color: var(--ph-down, #047857); background: var(--ph-down-soft, rgba(16,185,129,.1)); }
.c5-rhist em.up { color: var(--ph-up, #C2410C); background: var(--ph-up-soft, rgba(234,88,12,.09)); }

/* Цена */
.c5-rpr { align-items: flex-end; text-align: right; }
.c5-rpr em { font-style: normal; font-weight: 800; font-size: 16px; line-height: 1.2; font-variant-numeric: tabular-nums; white-space: nowrap; }
.c5-rpr small { font-size: 11px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.c5-rpr .c3-dots > span:first-child { font-weight: 700; color: var(--ink-3); }
.c5-rpr .c5-nopax { color: #B45309; }
html[data-theme="dark"] .c5-rpr .c5-nopax { color: #FCD34D; }
.c5-ryour b { color: var(--accent-ink, var(--accent)); font-weight: 800; }

/* Действия */
.c5-racts { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.c5-racts .btn { height: 34px; min-width: 34px; padding: 0; justify-content: center; gap: 6px; }
.c5-racts .c5-rad { padding: 0 12px; }
.c5-racts .c5-ib, .c5-racts .c5-bot { width: 34px; }
.c5-racts .c5-bot > span { display: none; }

/* Узкий кабинет: у «Сделать рекламу» — только значок */
@media (max-width: 1360px) {
  .c5-racts .c5-rad { width: 34px; padding: 0; }
  .c5-racts .c5-rad > span { display: none; }
}
/* Планшет: два ряда — отель · даты · цена / туроператор · кнопки */
@media (max-width: 1100px) {
  .c5-grid.c5-list { display: flex; flex-direction: column; }
  .c5-lh { display: none; }
  .c5-list > .c5-row { grid-template-columns: 22px minmax(0, 1.25fr) minmax(0, 1fr) auto; grid-template-areas: "chk h t pr" "chk o o a"; gap: 6px 14px; align-items: start; padding: 10px 12px; }
  .c5-row > .c5-chk { grid-area: chk; margin-top: 1px; }
  .c5-row > .c5-rh { grid-area: h; }
  .c5-row > .c5-rt { grid-area: t; }
  .c5-row > .c5-ro { grid-area: o; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 2px 8px; align-self: center; }
  .c5-row > .c5-rpr { grid-area: pr; }
  .c5-row > .c5-racts { grid-area: a; align-self: center; }
}
/* Телефон: отель и цена · даты и рейс на всю ширину · туроператор и кнопки */
@media (max-width: 700px) {
  .c5-view { margin-left: auto; }
  .c5-list > .c5-row { grid-template-columns: 22px minmax(0, 1fr) auto; grid-template-areas: "chk h pr" "chk t t" "chk o a"; gap: 4px 10px; padding: 10px; }
  .c5-row h4 { font-size: 13.5px; }
  .c5-rl { gap: 2px 8px; }
  .c5-rcomps { display: none; }   /* «Есть и для» — в виде «Плитка» */
  .c5-rpr em { font-size: 15px; }
  .c5-rpr .c3-dots > span { display: block; }
  .c5-rpr .c3-dots > span + span::before { content: none; }
  .c5-ro > b { font-size: 12px; }
  .c5-racts { gap: 4px; }
  .c5-racts .btn { height: 32px; min-width: 32px; }
  .c5-racts .c5-rad, .c5-racts .c5-ib, .c5-racts .c5-bot { width: 32px; }
}
@media (max-width: 420px) {
  .c5-view button { padding: 6px 10px; }
  .c5-view button > span { display: none; }
}

/* ---------- Название отеля — кнопка окна отеля (во всех видах) ---------- */
.c5-hn { display: inline; padding: 0; margin: 0; border: 0; background: none; font: inherit; color: inherit; text-align: inherit; cursor: pointer; }
.c5-hn:hover > span, .c5-hn:focus-visible > span { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.c5-hn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.c5-card h4 > i { font-style: normal; color: var(--ink-3); font-weight: 700; }
/* в строках списка название — в одну строку с «…», звёзды видны всегда */
.c5-row h4 { display: flex; align-items: baseline; gap: 4px; }
.c5-row h4 > .c5-hn { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.c5-row h4 > i { flex: none; }

/* ---------- «По отелям»: строка на отель ---------- */
.c5-groups > .c5-grow { cursor: pointer; }
.c5-gn { position: relative; box-sizing: border-box; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; width: 64px; padding: 6px 6px 5px; border: 0; border-radius: 12px;
  background: var(--accent-soft); color: var(--accent-ink, var(--accent)); font: inherit; cursor: pointer; transition: box-shadow .12s; }
.c5-gn:hover { box-shadow: inset 0 0 0 1.5px var(--accent); }
.c5-gn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.c5-gn b { font-size: 17px; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.c5-gn small { font-size: 10px; font-weight: 700; line-height: 1.2; }
.c5-gsel { position: absolute; top: -7px; right: -7px; padding: 1px 6px; border-radius: 999px; background: var(--accent); color: #fff; font-style: normal; font-size: 10px; font-weight: 800; box-shadow: 0 0 0 2px var(--surface); }
.c5-gsel[hidden] { display: none; }
.c5-lbl { font-style: normal; font-weight: 700; color: #047857; }
html[data-theme="dark"] .c5-lbl { color: #6EE7B7; }
.c5-grow .c5-rm .c3-dots > span:first-child { color: var(--ink-2); font-weight: 700; }
.c5-pfrom { font-size: 11px; font-weight: 700; color: var(--muted); }
.c5-racts .btn.c5-gopen { width: auto; padding: 0 13px; }
.c5-racts .c5-gopen > span { display: inline; }

/* ---------- Окно отеля ---------- */
.modal.c5-hm { max-width: 1180px; min-width: 0; }
.c5-hmb { min-width: 0; }
.c5-hm .mh h3 .c5-hst { font-style: normal; color: var(--ink-3); }
.c5-hm .mf { padding-top: 12px; padding-bottom: 12px; }
.c5-hh { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 14px; margin-bottom: 12px; }
.c5-hh .c5-rl { font-size: 12.5px; }
.c5-hall, .c5-hsort { flex-wrap: nowrap; padding: 3px; }
.c5-hall button, .c5-hsort button { padding: 6px 12px; font-size: 13px; white-space: nowrap; }
.c5-hall button b { margin-left: 4px; font-variant-numeric: tabular-nums; }
.c5-hnote { margin: 0 0 12px; font-size: 13px; }
.c5-hnote .ico { flex: none; margin-top: 1px; }
/* Сводка */
.c5-hk { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 14px; }
.c5-hkt { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 10px 12px; border-radius: 14px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.c5-hkt small { font-size: 10.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.c5-hkt b { font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink); }
.c5-hkt span { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
/* Блоки */
.c5-hcard { margin-bottom: 14px; padding: 12px 14px 14px; border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.c5-hch { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; margin-bottom: 10px; }
.c5-hch h4 { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 14px; }
.c5-hch h4 .ico { color: var(--accent); }
.c5-hch small { font-size: 12px; }
/* График: самая низкая цена по датам (столбики — кнопки) */
.c5-hc { display: flex; gap: 8px; }
.c5-hcy { flex: none; display: flex; flex-direction: column; justify-content: space-between; padding: 16px 0 22px; font-size: 10.5px; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.c5-hcb { flex: 1; min-width: 0; display: flex; align-items: flex-end; gap: 3px; height: 168px; overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; }
.c5-hb { flex: 1 1 0; min-width: 16px; max-width: 48px; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 3px;
  padding: 0; border: 0; background: none; font: inherit; color: inherit; cursor: pointer; }
.c5-hcb.many .c5-hb { min-width: 11px; }
.c5-hb i { display: block; width: 100%; height: calc(var(--h) * 1.15px); border-radius: 5px 5px 2px 2px; background: color-mix(in srgb, var(--accent) 34%, var(--surface-2)); transition: background .12s, opacity .12s; }
.c5-hb:hover i { background: var(--accent); }
.c5-hb.low i { background: #10B981; }
.c5-hb.on i { background: var(--accent); box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--accent); }
.c5-hb.dim i { opacity: .35; }
.c5-hb b { font-size: 10px; font-weight: 800; color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.c5-hb small { height: 14px; font-size: 10px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.c5-hb small.sk { visibility: hidden; }
.c5-hb:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.c5-hcl { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 14px; margin: 10px 0 0; font-size: 12.5px; color: var(--muted); }
.c5-hcl .lo { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); }
.c5-hcl .lo i { width: 10px; height: 10px; border-radius: 3px; background: #10B981; }
/* Цены по условиям — кнопки-фильтры */
.c5-hfr { display: flex; align-items: flex-start; gap: 10px; padding: 7px 0; }
.c5-hfr + .c5-hfr { border-top: 1px dashed var(--line); }
.c5-hfl { flex: none; width: 112px; padding-top: 7px; font-size: 12px; font-weight: 700; color: var(--muted); }
.c5-hfc { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.c5-fc { display: inline-flex; flex-direction: column; align-items: flex-start; padding: 5px 10px; border: 0; border-radius: 10px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line);
  font: inherit; font-size: 12.5px; font-weight: 700; line-height: 1.25; color: var(--ink-2); text-align: left; cursor: pointer; transition: background .12s, box-shadow .12s, color .12s; }
.c5-fc small { font-size: 11px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.c5-fc:hover { box-shadow: inset 0 0 0 1px var(--accent); }
.c5-fc:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.c5-fc.low small { color: #047857; font-weight: 800; }
.c5-fc.on { background: var(--accent); color: #fff; box-shadow: none; }
.c5-fc.on small { color: rgba(255,255,255,.88); }
html[data-theme="dark"] .c5-fc.low small { color: #6EE7B7; }
html[data-theme="dark"] .c5-fc.on small { color: rgba(255,255,255,.88); }
/* Панель над вариантами */
.c5-mtb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 4px 0 10px; }
.c5-hcheap { font-size: 13px; }
.c5-hcheap small { margin-left: 4px; font-size: 12px; font-weight: 600; color: var(--muted); }
.c5-mtb .sh-reset { margin-left: auto; }
.c5-hdx { padding: 6px 10px; }
/* Варианты отеля — таблица (колонки выровнены через subgrid) */
.c5-mt { display: grid; grid-template-columns: max-content max-content max-content minmax(0, 1.3fr) max-content minmax(0, 1.4fr) minmax(0, 1fr) max-content max-content;
  column-gap: 12px; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.c5-mh, .c5-mt > .c5-mr { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; align-items: center; }
.c5-mh { padding: 8px 12px; background: var(--surface-2); border-bottom: 1px solid var(--line); font-size: 10.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.c5-mh > span:nth-child(8) { text-align: right; }
.c5-mt > .c5-mr { padding: 8px 12px; border-radius: 0; background: transparent; box-shadow: none; transition: background .12s; }
.c5-mt > .c5-mr + .c5-mr { border-top: 1px solid var(--line); }
.c5-mt > .c5-mr:hover { background: var(--surface-2); }
.c5-mt > .c5-mr.sel { background: var(--accent-soft); box-shadow: inset 3px 0 0 var(--accent); }
.c5-mc { min-width: 0; display: flex; flex-direction: column; gap: 1px; font-size: 12.5px; }
.c5-mc small { font-size: 11.5px; color: var(--muted); }
.c5-md, .c5-mn { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 2px 4px; }
.c5-md b, .c5-mn b { font-size: 13.5px; font-weight: 800; font-variant-numeric: tabular-nums; }
.c5-md .c5-b { padding: 1px 6px; font-size: 10.5px; }
.c5-mm b { font-size: 12.5px; color: var(--ink); }
.c5-mm small, .c5-mo b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c5-mp { font-weight: 700; color: var(--ink-2); white-space: nowrap; }
.c5-mfc { display: block; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c5-mfc b { font-size: 12.5px; }
.c5-mfc small { margin-left: 6px; }
.c5-mo b { font-weight: 800; color: #0E7490; }
html[data-theme="dark"] .c5-mo b { color: #67E8F9; }
.c5-mo small { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.c5-mt .c5-rpr em { font-size: 15px; }
.c5-mdeal { color: #047857 !important; font-weight: 800; }
html[data-theme="dark"] .c5-mdeal { color: #6EE7B7 !important; }
.c5-mt .c5-racts { gap: 4px; }
.c5-mt .c5-racts .btn { width: 32px; height: 32px; min-width: 32px; }
.c5-hmore { margin: 12px 0 4px; }
.c5-hempty { padding: 28px 16px; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line); }
/* Низ окна: история цены и выбор для рекламы */
.c5-hmf { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; width: 100%; }
.c5-hms { flex: 1 1 auto; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; min-width: 0; }
.c5-hms small { font-size: 12.5px; color: var(--muted); }

@media (max-width: 1100px) {
  .c5-list > .c5-grow { grid-template-columns: auto minmax(0, 1.25fr) minmax(0, 1fr) auto; }
  .c5-row > .c5-gn { grid-area: chk; }
}
@media (max-width: 860px) {
  .c5-mt { display: flex; flex-direction: column; }
  .c5-mh { display: none; }
  .c5-mt > .c5-mr { grid-template-columns: 22px auto minmax(0, 1fr) auto; grid-template-areas: "chk d d pr" "chk n p pr" "chk m m m" "chk f f f" "chk o o a"; gap: 3px 10px; align-items: start; padding: 10px; }
  .c5-mr > .c5-mp { white-space: normal; }
  .c5-mr > .c5-chk { grid-area: chk; margin-top: 1px; }
  .c5-mr > .c5-md { grid-area: d; } .c5-mr > .c5-mn { grid-area: n; } .c5-mr > .c5-mp { grid-area: p; }
  .c5-mr > .c5-mm { grid-area: m; } .c5-mr > .c5-mf { grid-area: f; } .c5-mr > .c5-mo { grid-area: o; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 2px 8px; align-self: center; }
  .c5-mr > .c5-rpr { grid-area: pr; } .c5-mr > .c5-racts { grid-area: a; align-self: center; }
  .c5-mr > .c5-mf:empty { display: none; }
}
@media (max-width: 700px) {
  /* «По отелям» на телефоне: число вариантов · отель · цена / даты и ночи / туроператор · «Варианты» */
  .c5-list > .c5-grow { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "chk h pr" "t t t" "o o a"; }
  .c5-grow .c5-rl > .c5-rp { max-width: 100%; }
  .c5-grow .c5-rl > .c5-rp > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .c5-gn { width: 58px; }
  .c5-racts .btn.c5-gopen { padding: 0 10px; }
  .c5-hk { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .c5-hkt b { font-size: 15px; }
  .c5-hcard { padding: 10px 10px 12px; }
  .c5-hfr { flex-direction: column; gap: 5px; }
  .c5-hfl { width: auto; padding-top: 0; }
  .c5-hcb { height: 150px; }
  .c5-hb { min-width: 20px; }
  .c5-hb b { display: none; }
  .c5-hcy { padding-top: 4px; }
  .c5-hall { width: 100%; flex-wrap: wrap; border-radius: 14px; } .c5-hall button { flex: 1 1 auto; white-space: normal; }
  .c5-mtb .sh-reset { margin-left: 0; }
  .c5-hms small { display: none; }
  .c5-hmf .btn.ghost > span { display: none; }
}

/* Ваш доход с тура (наценка за весь тур) — 2026-12-02 */
.c5-inc { display: inline-block; margin-top: 3px; padding: 1px 7px; border-radius: 999px; background: rgba(22,163,74,.12); color: #15803D; font-size: 11.5px; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.c5-your .c5-inc { display: block; width: fit-content; margin-left: auto; }
html[data-theme="dark"] .c5-inc { background: rgba(74,222,128,.14); color: #4ADE80; }
.c5-inc b { font-weight: 800; font-size: inherit; display: inline; }
/* Семья: цена «за всех» и состав крупно — 2026-12-02 */
.c5-famu > span:first-child { font-weight: 800; color: var(--ink, inherit); }
.c5-famu .c5-pax { font-weight: 800; color: var(--ink, inherit); }
.c5-mfam { display: block; color: var(--muted); font-size: 11.5px; white-space: nowrap; }

/* Фильтры компактно (2026-12-02): главное в две строки — поиск, куда, когда, кто, бюджет, ночи; даты, питание и звёзды — «Ещё фильтры» */
.c5-filters:not(.more) > .c5-fx { display: none; }
.c5-fmw { display: flex; align-items: flex-end; min-width: 0; }
.c5-fmore { width: 100%; justify-content: center; min-height: 40px; gap: 6px; }
.c5-fmore b { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--brand, #F2552C); color: #fff; font-size: 11px; line-height: 18px; text-align: center; }
.c5-filters.more .c5-fmore { background: var(--soft, rgba(0,0,0,.05)); }
@media (min-width: 1400px) {
  .c5-filters > .c5-fmw { grid-column: span 1; }
}

/* Три раздела + подразделы (2026-12-02) */
.c5-sub { display: flex; gap: 6px; margin: -6px 0 14px; overflow-x: auto; scrollbar-width: none; }
.c5-sub::-webkit-scrollbar { display: none; }
.c5-sub a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--ink-2); white-space: nowrap; text-decoration: none; box-shadow: inset 0 0 0 1px var(--line, rgba(0,0,0,.1)); }
.c5-sub a .ico { color: var(--ink-4); }
.c5-sub a:hover { color: var(--ink); background: var(--bg-2); }
.c5-sub a.on { background: var(--ink, #0F172A); color: #fff; box-shadow: none; }
.c5-sub a.on .ico { color: inherit; }
.c5-sub .c5-tn { margin-left: 2px; padding: 0 6px; border-radius: 999px; background: var(--bg-2); color: var(--ink-3); font-size: 11px; line-height: 17px; }
.c5-sub a.on .c5-tn { background: rgba(255,255,255,.2); color: #fff; }
html[data-theme="dark"] .c5-sub a.on { background: #F1F5F9; color: #0F172A; }
html[data-theme="dark"] .c5-sub a.on .c5-tn { background: rgba(15,23,42,.12); color: #0F172A; }
@media (max-width: 700px) {
  .c5-tabs a { flex: 1 1 0; justify-content: center; padding: 9px 6px; gap: 6px; font-size: 13px; }
}
@media (max-width: 400px) {
  .c5-tabs a .ico, .c5-tabs a svg { display: none; }
}

/* «Мои направления» (2026-12-02) */
.c5-myw { display: contents; }
.c5-myw[hidden] { display: none; }
.c5-chip.c5-my .ico, .c5-chip.c5-my svg { color: #EAB308; }
.c5-chip.c5-my.on .ico, .c5-chip.c5-my.on svg { color: inherit; }
.c5-chip.c5-dedit { color: var(--ink-3); }
.c5-chip.c5-dedit:only-child, .c5-chip.c5-dedit span { font-weight: 700; }
.modal.c5-dm { max-width: 560px; }
.c5-dgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-top: 12px; }
.c5-dc { display: flex; align-items: center; gap: 8px; padding: 9px 11px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line, rgba(0,0,0,.1)); cursor: pointer; font-weight: 700; font-size: 14px; }
.c5-dc:has(input:checked) { box-shadow: inset 0 0 0 2px var(--brand, #F2552C); background: rgba(242,85,44,.06); }
.c5-dc:has(input:disabled) { opacity: .5; cursor: not-allowed; }
.c5-dc small { margin-left: auto; color: var(--muted); font-weight: 600; font-size: 12px; }
.c5-dc input { accent-color: var(--brand, #F2552C); }
.c5-selt b { white-space: nowrap; }

/* Компактная карточка (2026-12-02): «Из системы туроператора» — галочка у туроператора, номер — в строке фактов, «История цены» — в строке туроператора */
.c5-card .c5-facts .c5-room { flex: 1 1 100%; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0; background: none; box-shadow: none; border: 0; }
.c5-ex { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: rgba(14,116,144,.12); color: #0E7490; margin-left: -4px; }
.c5-ex .ico, .c5-ex svg { width: 11px; height: 11px; color: inherit; }
.c5-op .c5-hist { margin-left: auto; padding: 3px 9px; font-size: 11.5px; min-height: 0; }
html[data-theme="dark"] .c5-ex { background: rgba(103,232,249,.14); color: #67E8F9; }
/* Галочка выбора — в правом верхнем углу карточки, без отдельной строки */
.c5-card:not(.c5-row):not(.c5-mr) { position: relative; }
.c5-card:not(.c5-row):not(.c5-mr) > .c5-chk { position: absolute; top: 14px; right: 14px; z-index: 1; }
.c5-card:not(.c5-row):not(.c5-mr) > .c5-top, .c5-card:not(.c5-row):not(.c5-mr) > h4 { padding-right: 30px; }
.c5-card:not(.c5-row):not(.c5-mr) > .c5-top + h4 { padding-right: 0; }
.c5-hist.c5-hist0 { padding: 4px 7px; }
.c5-hist.c5-hist0 > span { display: none; }

/* «Сегодня по направлениям» (2026-12-03): наборы «куда полететь» с ценами «от» и реклама одной кнопкой */
.c5-ds { margin: 4px 0 16px; }
.c5-ds[hidden] { display: none; }
.c5-dsh { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin-bottom: 10px; }
.c5-dsh h3 { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: 17px; }
.c5-dsh h3 .ico { color: var(--brand, #F2552C); }
/* Одна строка наборов: до 5 в ряд — сколько помещается по ширине блока (не уже 205 px; считает showcase.js), остальные — «Все наборы».
   На телефоне — одна строка с прокруткой вбок */
.c5-dsl { display: grid; grid-template-columns: repeat(var(--dsc, 5), minmax(0, 1fr)); gap: 12px; }
.c5-dset.c5-dx { display: none; }
.c5-dsmore { display: flex; justify-content: center; margin-top: 10px; }
.c5-dsmore[hidden] { display: none; }
.c5-dset { scroll-snap-align: start; display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 14px; border-radius: 18px; background: var(--surface, #fff); box-shadow: inset 0 0 0 1px var(--line, rgba(0,0,0,.08)); }
.c5-dst { display: flex; align-items: center; gap: 7px; font-size: 14.5px; }
.c5-dst .ico { flex: none; color: var(--brand, #F2552C); }
.c5-dst b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.c5-dsr { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; flex: 1 1 auto; }
.c5-dsr li { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 4px 0; border-bottom: 1px dashed var(--line, rgba(0,0,0,.08)); font-size: 13.5px; }
.c5-dsr li:last-child { border-bottom: 0; }
.c5-dsp { display: inline-flex; align-items: baseline; gap: 6px; min-width: 0; font-weight: 700; }
.c5-dsp > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.c5-dsp i { font-style: normal; }
.c5-dsv { flex: none; white-space: nowrap; font-variant-numeric: tabular-nums; }
.c5-dsv small { color: var(--muted); font-size: 11.5px; }
.c5-dsv b { font-weight: 800; }
.c5-dsm { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: 11.5px; }
.c5-dsb { width: 100%; justify-content: center; }
.modal.c5-dm2 { max-width: 920px; }
.c5-dmr { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 18px; align-items: start; }
.c5-dmi img { display: block; width: 100%; height: auto; border-radius: 14px; box-shadow: 0 6px 24px rgba(0,0,0,.12); }
.c5-dmn { display: grid; place-items: center; gap: 8px; min-height: 220px; padding: 20px; border-radius: 14px; background: var(--bg-2); color: var(--muted); text-align: center; font-size: 13px; }
.c5-dmt textarea { width: 100%; min-height: 300px; font-size: 13.5px; line-height: 1.45; resize: vertical; }
.c5-dm2 .mf { flex-wrap: wrap; gap: 8px; }
@media (max-width: 700px) {
  .c5-dsl { grid-template-columns: none; grid-template-rows: auto; grid-auto-flow: column; grid-auto-columns: 80%; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; margin-inline: -16px; padding: 0 16px 4px; }
  .c5-dsl::-webkit-scrollbar { display: none; }
  .c5-dset.c5-dx { display: flex; }
  .c5-dsmore { display: none; }
  .c5-dmr { grid-template-columns: 1fr; }
  .c5-dmt textarea { min-height: 200px; }
  .c5-dm2 .mf .btn { flex: 1 1 auto; justify-content: center; }
}
.c5-dmi img { aspect-ratio: 4 / 5; object-fit: cover; background: var(--bg-2); }
/* Пояснение в строке набора: «−12% за неделю», «2 взр. + 1 реб.», название известного отеля */
.c5-dsp > span { display: flex; flex-direction: column; min-width: 0; }
.c5-dsp > span > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.c5-dse { font-style: normal; font-weight: 600; font-size: 11.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.c5-dse.dn { color: #15803D; font-weight: 800; }
html[data-theme="dark"] .c5-dse.dn { color: #4ADE80; }
.c5-dst b { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.25; }
/* Узкая карточка набора (5 в ряд на ноутбуке): «от» прячем, шрифт строк чуть меньше — названия курортов и цены помещаются */
.c5-dset { container-type: inline-size; }
@container (max-width: 240px) {
  .c5-dset { padding: 12px; }
  .c5-dsr li { font-size: 12.5px; gap: 6px; }
  .c5-dsv small { display: none; }
  .c5-dst { font-size: 13.5px; }
  .c5-dse { font-size: 11px; }
}

/* Набор: «Подробно» и «Рекламу» в одну строку; окно «Подробно» (2026-12-03) */
.c5-dsa { display: grid; grid-template-columns: auto 1fr; gap: 6px; }
.c5-dsa .btn { justify-content: center; min-width: 0; }
.c5-dsa .btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@container (max-width: 240px) { .c5-dsa .btn.ghost span { display: none; } }
.modal.c5-dim { max-width: 980px; }
.c5-di { display: flex; flex-direction: column; gap: 14px; }
.c5-dib { border-radius: 16px; box-shadow: inset 0 0 0 1px var(--line, rgba(0,0,0,.08)); overflow: hidden; }
.c5-dib > header { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; background: var(--bg-2); }
.c5-dib > header .c5-dsp { align-items: baseline; gap: 8px; font-size: 15px; }
.c5-dib > header .c5-dsp small { color: var(--muted); font-weight: 600; }
.c5-dibm { display: flex; align-items: baseline; gap: 10px; white-space: nowrap; }
.c5-dibm small { color: var(--muted); font-size: 12px; }
.c5-dibm b { font-size: 16px; font-variant-numeric: tabular-nums; }
.c5-dibm b small { font-weight: 600; margin-right: 3px; }
.c5-dit { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) auto; gap: 6px 14px; align-items: center; padding: 10px 14px; border-top: 1px solid var(--line, rgba(0,0,0,.06)); }
.c5-dit.best { background: rgba(22,163,74,.05); }
.c5-dih { min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; }
.c5-dih > b { font-size: 14px; }
.c5-dih > i { font-style: normal; color: var(--muted); font-weight: 700; }
.c5-dih .c5-b { margin-left: 2px; }
.c5-dih > small { flex: 1 1 100%; color: var(--muted); font-size: 12px; }
.c5-dih > small .ico { margin-right: 3px; vertical-align: -1px; }
.c5-dio { min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 12px; }
.c5-dio > b { display: inline-flex; align-items: center; gap: 5px; color: #0E7490; font-size: 13px; }
html[data-theme="dark"] .c5-dio > b { color: #67E8F9; }
.c5-dix { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-weight: 600; }
.c5-dix.ok { color: #15803D; }
html[data-theme="dark"] .c5-dix.ok { color: #4ADE80; }
.c5-dip { display: flex; flex-direction: column; align-items: flex-end; text-align: right; white-space: nowrap; }
.c5-dip em { font-style: normal; font-weight: 800; font-size: 16px; font-variant-numeric: tabular-nums; }
.c5-dip small { font-size: 11.5px; color: var(--muted); }
@media (max-width: 700px) {
  .c5-dit { grid-template-columns: minmax(0, 1fr) auto; }
  .c5-dio { grid-column: 1 / -1; grid-row: 2; flex-direction: row; flex-wrap: wrap; gap: 4px 10px; }
  .c5-dib > header { flex-wrap: wrap; }
}
.c5-dsa .c5-dsl2 { display: none; }
@container (max-width: 240px) { .c5-dsa .c5-dsl1 { display: none; } .c5-dsa .c5-dsl2 { display: inline; } }
.c5-dsr[data-dsinfo] { cursor: pointer; border-radius: 10px; transition: background .15s; }
.c5-dsr[data-dsinfo]:hover { background: var(--bg-2); }
