/* Страницы сервисов (/kuda/, /indeks-cen/, /prazdniki/): всё основное — из site.css, routes.css и билетиков (ticket.css).
   Здесь только то, чего на сайте нет: форма подбора, широкие таблицы, графики индекса. Без inline-стилей (CSP). */

/* форма подбора: поля как у поиска на хабе направлений, выбор — чипами rt-chip */
.sv-form { display: grid; gap: 18px; margin-top: 8px; }
.sv-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.sv-f { display: flex; flex-direction: column; gap: 8px; border: 0; margin: 0; padding: 0; min-width: 0; }
.sv-f > span, .sv-f legend { font-size: 13px; font-weight: 700; color: var(--muted); padding: 0; margin-bottom: 2px; }
.sv-f select, .sv-f input[type=number], .sv-f input[type=date] { width: 100%; min-height: 52px; padding: 0 16px; border-radius: 16px; border: 0; font: inherit; font-size: 16px; color: var(--ink);
  background: var(--glass); box-shadow: inset 0 1px 0 var(--glass-rim), inset 0 0 0 1px var(--line-2); }
.sv-f select:focus-visible, .sv-f input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sv-money { display: grid; grid-template-columns: minmax(0, 1fr) 84px; gap: 8px; }
.sv-opt { position: relative; display: inline-flex; }
.sv-opt input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.sv-opt .rt-chip { cursor: pointer; font-weight: 600; }
.sv-opt input:checked + .rt-chip { background: var(--accent-soft); color: var(--accent-text); box-shadow: inset 0 0 0 2px var(--accent); }
.sv-opt input:focus-visible + .rt-chip { outline: 2px solid var(--accent); outline-offset: 2px; }
.sv-when__m, .sv-when__d { margin-top: 4px; max-width: 420px; }
.sv-when__d { display: flex; gap: 10px; }
.sv-when__d label { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; font-weight: 600; color: var(--muted); }
.sv-when__d .dp-btn { min-height: 52px; border-radius: 16px; }
.sv-f [hidden], .sv [hidden] { display: none !important; }
.sv-form .cta { margin-top: 0; }
.sv-date { margin-top: 28px; }

/* индекс: графики и широкие таблицы */
.sv-chart { display: block; width: 100%; height: auto; overflow: visible; }
.sv-chartbox { padding: 18px 20px; }
.sv-chart .ln { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.sv-chart .pt { fill: var(--accent); }
.sv-chart .base { stroke: var(--line-2); stroke-width: 1.5; stroke-dasharray: 5 5; }
.sv-chart .grid { stroke: var(--line); stroke-width: 1; }
.sv-tbl { max-width: none; }
.sv-tbl .sv-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.sv-tbl table { min-width: 760px; }
.sv-tbl th, .sv-tbl td { text-align: right; padding: 8px 6px; white-space: nowrap; font-size: 14px; }
.sv-tbl th:first-child, .sv-tbl td:first-child { text-align: left; }
.sv-tbl tbody th { font-weight: 700; color: var(--ink); font-size: 14px; }
.sv-tbl .lo { color: var(--accent-text); font-weight: 800; }
.sv-cite { padding: 20px 22px; }
.sv-cite p { margin: 8px 0 0; color: var(--ink-2); }
.sv-cite code { font-size: 14px; word-break: break-word; }

/* подбор: страна = билетик + до двух городов строкой-ссылкой; вторичные действия — ссылками */
.sv-ccs { align-items: start; }
.sv-cc { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.sv-cc[hidden] { display: none; }
.sv-alts { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0; padding: 0 6px; font-size: 15px; color: var(--muted); }
.sv-alt { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.sv-alt b { color: var(--ink); font-weight: 700; }
.sv-morewrap { margin: 18px 0 0; }
.sv-more, .sv-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0; border: 0; background: none; font: inherit; font-weight: 700; color: var(--accent-text);
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.sv-links { display: flex; flex-wrap: wrap; gap: 0 22px; margin: 6px 0 0; }

/* общие мелочи страниц сервисов */
.sv .rt-hero + .rt-chips, .sv .rt-hero + .rt-facts { margin-top: 6px; }
.sv .rt-chip[aria-current] { background: var(--accent-soft); color: var(--accent-text); box-shadow: inset 0 0 0 2px var(--accent); }
.sv .note a { text-decoration: underline; text-underline-offset: 2px; display: inline-flex; min-height: 32px; align-items: center; }
.sv-cite a { text-decoration: underline; text-underline-offset: 2px; display: inline-flex; min-height: 32px; align-items: center; }
.sv-holtbl td:first-child { white-space: nowrap; padding-right: 18px; }
.sv-holtbl td:last-child, .sv-holtbl th:last-child { text-align: left; }

/* праздники: период — заголовок, срок плашкой, билетики под ним */
.sv-hol + .sv-hol { margin-top: 8px; }
.sv-hol .sec__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.sv-hol .sec__head h2 { margin: 0; }
.sv-hol .eyebrow { margin: 0; }
.sv-hol__more { margin-top: 14px; }

/* графики для вставки (/vstroit-grafik/) */
.sv-row--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.em-fig { margin: 0; padding: 18px; }
.em-fig a { display: block; border-radius: 18px; }
.em-fig img { display: block; width: 100%; max-width: 600px; height: auto; }
.em-fig figcaption { margin-top: 10px; }
.em-codes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.em-box { padding: 20px 22px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.em-box h3 { margin: 0; font-size: 18px; }
.em-box .note { margin: 0; }
.em-ta { width: 100%; box-sizing: border-box; min-height: 120px; padding: 12px 14px; border: 0; border-radius: 14px; resize: vertical;
  font: 13px/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--ink); background: var(--glass);
  box-shadow: inset 0 1px 0 var(--glass-rim), inset 0 0 0 1px var(--line-2); }
.em-ta:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.em-box .btn { align-self: flex-start; }
.em-ok { min-height: 20px; font-weight: 700; color: var(--accent-text); }

/* калькулятор 90/180 */
.kl-rule { margin: 0; color: var(--ink-2); font-weight: 600; }
.kl-rule a { margin-left: 4px; text-decoration: underline; text-underline-offset: 2px; display: inline-flex; min-height: 32px; align-items: center; }
.kl-trips { display: grid; gap: 12px; }
.kl-trip { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; align-items: end; gap: 12px; margin: 0; padding: 14px 16px 16px;
  border: 0; border-radius: 18px; background: var(--glass); box-shadow: inset 0 0 0 1px var(--line-2); min-width: 0; }
.kl-trip__h { margin: 0 0 2px; font-weight: 800; grid-column: 1 / -1; }
.kl-trip.kl-bad { box-shadow: inset 0 0 0 2px var(--warn, #b45309); }
.kl-del { min-height: 52px; padding: 0 6px; border: 0; background: none; font: inherit; font-weight: 700; color: var(--muted); text-decoration: underline;
  text-underline-offset: 3px; cursor: pointer; }
.kl-res { margin-top: 18px; padding: 22px 24px; }
.kl-big { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin: 0; }
.kl-big b { font-size: clamp(32px, 6vw, 44px); line-height: 1.1; font-weight: 800; color: var(--accent-text); }
.kl-big b.kl-over { color: var(--warn-text); }
.kl-big span { color: var(--ink-2); font-weight: 600; }
.kl-lines { margin: 14px 0 0; padding-left: 20px; display: grid; gap: 6px; }
.kl-warn { color: var(--warn-text, #9a3412); font-weight: 700; }
.kl-tbl { margin-top: 18px; }
.sv .sec > p + p { margin-top: 12px; }
.kl-trip input[type=date] { -webkit-appearance: none; appearance: none; display: flex; align-items: center; padding: 0 12px; text-align: left; background: var(--bg); }
.kl-trip input[type=date]::-webkit-date-and-time-value { text-align: left; }
.kl-tbl table { min-width: 0; width: 100%; }
.kl-tbl th, .kl-tbl td { white-space: normal; text-align: left; }

@media (max-width: 900px) { .sv-row { grid-template-columns: 1fr 1fr; } .sv-row .sv-f:last-child { grid-column: 1 / -1; } }
@media (max-width: 760px) { .em-codes { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .sv-row { grid-template-columns: 1fr; } .sv-form .btn--primary { width: 100%; }
  .kl-trip { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .kl-del { grid-column: 1 / -1; min-height: 40px; justify-self: start; } }
@media (max-width: 420px) { .kl-trip { grid-template-columns: 1fr; } }
/* сезоны (/kogda-ehat/, /kuda-poehat/) */
.se-cal { padding: 16px 18px; }
.se-tblw { overflow-x: auto; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--card); max-width: 100%; }
.se-tbl, .se-cities { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.se-tbl th, .se-tbl td, .se-cities th, .se-cities td { padding: 11px 12px; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--line); }
.se-tbl thead th { font-weight: var(--fw-semibold); color: var(--muted); background: var(--card-2); white-space: nowrap; }
.se-tbl tbody tr:last-child > *, .se-cities tbody tr:last-child > * { border-bottom: 0; }
.se-tbl tbody th, .se-cities th { font-weight: var(--fw-semibold); white-space: nowrap; }
.se-tbl td { white-space: nowrap; }
.se-tbl .se-why { white-space: normal; min-width: 220px; color: var(--ink-2); }
.se-p small { display: block; color: var(--muted); font-size: 12px; font-weight: 400; }
.se-cities th { width: 30%; }
.se-cities th a { color: var(--ink); }
.se-cities td { min-width: 300px; }
.se-months { margin: 4px 0 8px; }
@media (max-width: 900px) {                                  /* на телефоне и планшете город над полосой месяцев: иначе подписи месяцев обрезаются (08.11.2026: было 560px, на 768 полоса сжималась) */
  .se-cities tr { display: block; padding: 10px 12px; border-bottom: 1px solid var(--line); }
  .se-cities tbody tr:last-child { border-bottom: 0; }
  .se-cities th, .se-cities td { display: block; width: auto; min-width: 0; padding: 0; border-bottom: 0; white-space: normal; }
  .se-cities th { margin-bottom: 6px; }
}

/* хаб «Когда ехать» (08.11.2026): поиск, фильтр по месяцу, подсветка выбранного месяца, флаги */
.se-hub th a { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; }
.se-fl { font-size: 18px; line-height: 1; }
.se .se-legend { margin: 4px 0 12px; }
.se-hub[data-fx-m="1"] .se-c:nth-child(1) { box-shadow: inset 0 0 0 2px var(--accent); }
.se-hub[data-fx-m="2"] .se-c:nth-child(2) { box-shadow: inset 0 0 0 2px var(--accent); }
.se-hub[data-fx-m="3"] .se-c:nth-child(3) { box-shadow: inset 0 0 0 2px var(--accent); }
.se-hub[data-fx-m="4"] .se-c:nth-child(4) { box-shadow: inset 0 0 0 2px var(--accent); }
.se-hub[data-fx-m="5"] .se-c:nth-child(5) { box-shadow: inset 0 0 0 2px var(--accent); }
.se-hub[data-fx-m="6"] .se-c:nth-child(6) { box-shadow: inset 0 0 0 2px var(--accent); }
.se-hub[data-fx-m="7"] .se-c:nth-child(7) { box-shadow: inset 0 0 0 2px var(--accent); }
.se-hub[data-fx-m="8"] .se-c:nth-child(8) { box-shadow: inset 0 0 0 2px var(--accent); }
.se-hub[data-fx-m="9"] .se-c:nth-child(9) { box-shadow: inset 0 0 0 2px var(--accent); }
.se-hub[data-fx-m="10"] .se-c:nth-child(10) { box-shadow: inset 0 0 0 2px var(--accent); }
.se-hub[data-fx-m="11"] .se-c:nth-child(11) { box-shadow: inset 0 0 0 2px var(--accent); }
.se-hub[data-fx-m="12"] .se-c:nth-child(12) { box-shadow: inset 0 0 0 2px var(--accent); }
.se-hub[data-fx-m] .se-c { opacity: 0.55; }
.se-hub[data-fx-m="1"] .se-c:nth-child(1),.se-hub[data-fx-m="2"] .se-c:nth-child(2),.se-hub[data-fx-m="3"] .se-c:nth-child(3),.se-hub[data-fx-m="4"] .se-c:nth-child(4),.se-hub[data-fx-m="5"] .se-c:nth-child(5),.se-hub[data-fx-m="6"] .se-c:nth-child(6),.se-hub[data-fx-m="7"] .se-c:nth-child(7),.se-hub[data-fx-m="8"] .se-c:nth-child(8),.se-hub[data-fx-m="9"] .se-c:nth-child(9),.se-hub[data-fx-m="10"] .se-c:nth-child(10),.se-hub[data-fx-m="11"] .se-c:nth-child(11),.se-hub[data-fx-m="12"] .se-c:nth-child(12) { opacity: 1; }
@media (max-width: 560px) {                                  /* 08.11.2026: «Погода и цены по месяцам» на телефоне — карточки месяцев без прокрутки вбок */
  .se-tbl thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .se-tbl tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 12px; padding: 14px 14px; border-bottom: 1px solid var(--line); }
  .se-tbl tbody tr:last-child { border-bottom: 0; }
  .se-tbl th, .se-tbl td { padding: 0; border: 0 !important; white-space: normal; min-width: 0; }
  .se-tbl tbody th { grid-column: 1 / 3; align-self: center; font-size: 16px; font-weight: var(--fw-bold); }
  .se-tbl td:nth-child(2) { grid-column: 3; grid-row: 1; justify-self: end; align-self: center; }
  .se-tbl td[data-l]::before { content: attr(data-l); display: block; margin-bottom: 1px; font-size: 11.5px; font-weight: 600; color: var(--muted); }
  .se-tbl td[data-l] { font-weight: var(--fw-semibold); }
  .se-tbl td.se-p { grid-column: 1 / -1; }
  .se-tbl td.se-p small { display: inline; margin-left: 6px; }
  .se-tbl .se-why { grid-column: 1 / -1; min-width: 0; font-size: 13.5px; }
  .se-tbl .se-why:empty { display: none; }
  .se-tblw:has(.se-tbl) { overflow-x: visible; }
}

.safety { margin: 10px 0 4px; font-size: var(--fs-sm); color: var(--muted); }
.safety b { display: inline; padding: 3px 10px; border-radius: var(--r-pill); font-weight: var(--fw-bold); margin-right: 2px; color: var(--ink); background: var(--glass); box-shadow: inset 0 0 0 1px var(--glass-edge); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.safety b::before { content: ""; display: inline-block; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--dot, var(--muted)); margin-right: 7px; vertical-align: 0.1em; }
.safety--calm b { --dot: var(--good); } .safety--caution b { --dot: var(--warn); } .safety--avoid b { --dot: var(--bad); }
.safety a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* ───────── «Когда ехать» блоками (круг 6, владелец 09.11: «текст простыней») ─────────
   Главное — карточками с крупным значением (.stat-bento в site.css), что значит сезон — списком с плашками,
   погода и цены — сетка 12 карточек месяцев (2 → 3 → 4 → 6 колонок), тон карточки — сезон (бирюза по насыщенности, как календарь). */
.se-facts { margin: 18px 0 8px; }
.se-fact { min-height: 0; gap: 4px; justify-content: flex-start; }
.se .se-note { margin: 10px 0 0; font-size: var(--fs-sm); color: var(--muted); }
.se-fact b { font-size: clamp(20px, 2.3vw, 26px); line-height: 1.15; letter-spacing: -0.02em; }
.se-fact span { font-weight: 500; }
.se-legend2 { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 14px 0 0; padding: 0; font-size: var(--fs-sm); color: var(--ink-2); }
.se-legend2 li { display: inline-flex; align-items: center; gap: 8px; }
.se-legend2 .se-k { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: var(--r-pill); font-weight: 700; font-size: var(--fs-xs); }
.se-months-g { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.se-mc { --tone-mix: 0%; display: flex; flex-direction: column; gap: 8px; padding: 14px 14px 12px; border-radius: var(--r-lg);
  background: color-mix(in srgb, var(--accent) var(--tone-mix), var(--card)); box-shadow: var(--shadow), inset 0 0 0 1px var(--line); }
.se-mc--high { --tone-mix: 11%; } .se-mc--mid { --tone-mix: 4%; }
.se-mc--low { background: color-mix(in srgb, var(--ink) 3%, var(--card)); }
.se-mc--now { box-shadow: var(--shadow), inset 0 0 0 2px color-mix(in srgb, var(--accent) 60%, transparent); }
.se-mc__h { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 6px; }   /* «Февраль · межсезонье» в узкой клетке — метка на новую строку (320, 12.11) */
.se-mc__h h3 { margin: 0; font-size: var(--fs-md); font-weight: 800; letter-spacing: -0.01em; }
.se-mc__h .se-k { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: var(--r-pill); font-size: 11px; font-weight: 700; white-space: nowrap; }
.se-mc__t { display: flex; align-items: baseline; gap: 8px; margin: 0; }
.se-mc__t b { font-size: 26px; line-height: 1; font-weight: 800; letter-spacing: -0.03em; color: var(--ink); font-variant-numeric: tabular-nums; }
.se-mc__t span { font-size: var(--fs-xs); color: var(--muted); }
.se-mc__f { list-style: none; margin: 0; padding: 8px 0 0; display: grid; gap: 4px; border-top: 1px solid var(--line); font-size: var(--fs-xs); }
.se-mc__f li { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0 6px; }
.se-mc__f span { color: var(--muted); }
.se-mc__f b { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.se-mc__f small { flex-basis: 100%; text-align: right; color: var(--muted); font-size: 11px; }
.se-mc__why { margin: auto 0 0; font-size: 11.5px; line-height: 1.35; color: var(--ink-2); }
.se-cal .se-strip { margin-bottom: 0; }
@media (max-width: 1100px) { .se-months-g { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 760px) { .se-months-g { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 520px) { .se-months-g { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .se-mc { padding: 12px; } .se-mc__t b { font-size: 22px; } .se-legend2 { flex-direction: column; gap: 6px; } }


/* /tury/ — пакетные туры (site/_svc_tury.py, 15.11): карточка rt-hub с ценой на двоих и отметкой «дешевле перелета» */
.tr-cities { margin: 4px 0 18px; }
.tr .rt-hub { align-items: flex-start; }
.tr .rt-hub__n b { overflow-wrap: anywhere; }
.tr .rt-hub__n small + small { margin-top: 2px; }
.tr-price { display: flex; flex-direction: column; align-items: flex-end; }
.tr-price small { color: var(--muted); font-weight: 500; font-size: 12px; }
.tr-from { color: var(--accent-text); font-weight: 700; font-size: 0.8em; white-space: nowrap; }
.tr-mark { align-self: flex-start; margin-top: 6px; padding: 2px 10px; border-radius: 99px; font-size: 12px; font-weight: 700; background: var(--accent-soft); color: var(--accent-text); }
.tr-mark--hot { background: var(--good-soft); color: var(--good-text); }
@media (max-width: 520px) { .tr .rt-hub { padding: 12px 14px; } .tr .rt-hubgrid { grid-template-columns: 1fr; } }
