:root {
  /* Стиль в духе apple.com: системный шрифт, крупные скруглённые карточки,
     пилюли-кнопки радиусом 980px, чёрный/серый текст + синий + один тёплый
     акцент. */
  --bg: #fbfbfd;
  --surface: #ffffff;
  --surface-2: #f5f5f7;
  --text: #1d1d1f;
  --text-muted: #6e6e73;
  --text-muted-2: #86868b;
  --border: #d2d2d7;
  --primary: #0071e3;
  --primary-dark: #0058b0;
  --primary-soft: #e8f2fd;
  --accent: #bf4800;
  --accent-soft: #fdecdf;
  --warning: #bf4800;
  --success: #1b8f5f;
  --shadow-sm: 0 1px 2px rgba(29, 29, 31, 0.04);
  --shadow: 0 4px 16px rgba(29, 29, 31, 0.08);
  --shadow-lg: 0 10px 30px rgba(29, 29, 31, 0.12);
  --radius: 20px;
  --radius-sm: 12px;
  --radius-lg: 28px;
  --radius-pill: 980px;
  --container: 1180px;
  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue',
    Helvetica, Arial, sans-serif;
  --font-display: var(--font);
}

* {
  box-sizing: border-box;
}

html,
html, body {
  margin: 0;
  padding: 0;
  max-width: 100%;
}
/* overflow-x:hidden убран намеренно — он ломает position:sticky у шапки.
   Горизонтальный скролл карты решён через width:100% у .karta-fullbleed. */

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--primary);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

h1,
h2,
h3,
h4 {
  line-height: 1.2;
  color: var(--text);
  margin: 0 0 0.5em;
}
h1,
h2 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
}
h1 {
  font-size: clamp(2.2rem, 5.5vw, 4.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.07;
  overflow-wrap: anywhere;
  word-break: break-word;
}
h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
h3 {
  font-size: clamp(1.3rem, 2.5vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.015em;
}
p {
  margin: 0 0 1em;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.muted {
  color: var(--text-muted);
}

/* ---------- Верхняя тонкая полоса (новый элемент): доверие + быстрые ссылки ---------- */
.topbar {
  background: #1d1d1f;
  color: #a1a1a6;
  font-size: 0.8rem;
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 32px;
}
.topbar-note { display: flex; align-items: center; gap: 6px; }
.topbar-note b { color: #fff; font-weight: 600; }
@media (max-width: 480px) { .topbar-note span:last-child { display: none; } }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
/* Карты (MapLibre/Leaflet) не должны перекрывать плавающую шапку. */
.karta-map, .citymap, .maplibregl-map { z-index: 0; }
.site-header .container {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 56px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--text);
  letter-spacing: -0.02em;
  flex: none;
}
.logo:hover {
  text-decoration: none;
}

/* Кольцо с орбитой — планета обращается вокруг логотипа-кольца. */
.logo-mark {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  position: relative;
  border-radius: 50%;
  border: 2px solid currentColor;
  box-sizing: border-box;
}
.logo-orbit {
  position: absolute;
  inset: -3.6px;
  animation: at-orbit 4s linear infinite;
}
.logo-orbit::before {
  content: '';
  position: absolute;
  top: 0;
  right: 1px;
  width: 6.8px;
  height: 6.8px;
  border-radius: 50%;
  background: var(--primary);
}
@keyframes at-orbit {
  100% { transform: rotate(360deg); }
}
/* Nav — сразу после логотипа (слева), а не в дальнем правом углу. */
.main-nav {
  display: flex;
  gap: 26px;
  align-items: center;
  flex: 1 1 0%;
  justify-content: center;
}
.main-nav a {
  color: #424245;
  font-weight: 500;
  font-size: 0.75rem;
}
.main-nav a:hover {
  color: var(--text);
  text-decoration: none;
}
/* Активный раздел в шапке — жирный тёмный текст, без подсветки и подчёркивания */
.main-nav a.nav-link.is-active,
.dropdown-toggle.is-active {
  color: var(--text);
  font-weight: 600;
}
.nav-toggle {
  display: none;
}

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 72px;
  background: var(--surface-2);
  color: var(--text-muted);
  font-size: 0.75rem;
}
.site-footer a {
  color: var(--text-muted);
}
.site-footer a:hover {
  color: var(--text);
}
/* CTA-полоса над подвалом — чёрная, как в референсе. */
.footer-cta {
  background: #000;
}
.footer-cta-inner {
  padding: 100px 20px;
  color: var(--bg);
  text-align: center;
}
.footer-cta-title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5.5vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  margin: 0;
  color: var(--bg);
}
.footer-cta-inner p { margin: 12px 0 32px; font-size: 1.3125rem; color: #a1a1a6; }
.footer-cta .btn-primary { flex: none; color: #fff; }
@media (max-width: 620px) {
  .footer-cta-inner { padding: 64px 20px; }
}
/* Активный раздел в подвале */
.footer-col.is-active h4 { color: var(--primary); }
.footer-col.is-active h4::before {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--primary);
  vertical-align: middle;
}
.site-footer a.is-active { color: var(--text); font-weight: 700; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(4, 1fr);
  gap: 32px;
  padding: 40px 0 40px;
}
.footer-grid h4 {
  color: var(--text);
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 16px;
}
.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 22px 0;
  font-size: 0.75rem;
  color: var(--text-muted);
}
.footer-disclaimer {
  font-size: 0.75rem;
  color: var(--text-muted);
  max-width: 42ch;
  margin-top: 12px;
}

/* ---------- Hero — центрированный, в духе apple.com ---------- */
.hero {
  background: var(--bg);
  padding: 56px 0 8px;
  text-align: center;
}
.hero .breadcrumbs { text-align: left; margin-bottom: 8px; }
.hero-centered {
  max-width: 760px;
}
.hero h1 { max-width: none; }
.hero .lead {
  font-size: 1.3rem;
  color: var(--text-muted);
  max-width: 56ch;
  margin-left: auto;
  margin-right: auto;
}
.hero-eyebrow {
  display: block;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 18px;
}
.hero-eyebrow a { color: var(--accent); }
.hero-h1-muted { color: var(--text-muted-2); }
.hero-alt { margin-top: 18px; color: var(--text-muted); font-size: 0.92rem; }
.hero-alt a { color: var(--primary); font-weight: 500; }

/* Пилюля-форма поиска в hero */
.ks-pill { max-width: 900px; margin: 32px auto 0; }

/* Карточки «Сейчас в продаже» под hero */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 48px 0 8px;
  text-align: left;
}
.hero-stat {
  background: var(--surface-2);
  border-radius: var(--radius);
  padding: 26px 28px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hero-stat-label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}
.hero-stat-name { font-weight: 700; font-size: 1.1rem; margin-top: 4px; }
.hero-stat-price { color: var(--accent); font-weight: 600; font-size: 0.95rem; }
@media (max-width: 720px) {
  .hero-stats { grid-template-columns: 1fr; }
}

/* ---------- Сетка направлений (/tury/, главная) — карточки с иллюстрацией ---------- */
.dest-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.dest-card {
  display: flex;
  flex-direction: column;
  background: var(--surface-2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  color: var(--text);
  text-decoration: none;
  transition: transform 0.25s ease;
}
.dest-card:hover { text-decoration: none; transform: translateY(-4px); }
.dest-card-media {
  aspect-ratio: 16 / 10;
  position: relative;
  overflow: hidden;
}
.dest-card-media svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.dest-card-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 3px; position: relative; }
.dest-card .dest-name { font-weight: 700; font-size: 1.3rem; letter-spacing: -0.01em; }
.dest-card .dest-note { color: var(--text-muted); font-size: 0.92rem; }
.dest-card-arw {
  position: absolute; right: 18px; bottom: 18px;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--surface); color: var(--text);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; transition: background 0.2s, color 0.2s;
}
.dest-card:hover .dest-card-arw { background: var(--primary); color: #fff; }
@media (max-width: 720px) { .dest-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .dest-grid { grid-template-columns: 1fr; } }
.bento-card.is-featured .bento-cta {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff;
}
@media (max-width: 900px) {
  .bento-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Карточки внутри серой панели — белые, для контраста слоёв */
.split-main-card .card { background: var(--surface); }

/* ---------- Сплит-секция: контент + боковая карточка-навигатор ---------- */
.split-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}
.split-main-card {
  background: var(--surface-2);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.split-aside {
  position: sticky;
  top: 96px;
  background: #1d1d1f;
  color: #fff;
  border: none;
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.split-aside .muted { color: #a1a1a6; }
.aside-head { font-weight: 700; font-size: 1.3rem; letter-spacing: -0.01em; }
.aside-link {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: #fff;
  text-decoration: none;
  margin-top: 10px;
}
.aside-link:hover { background: rgba(255, 255, 255, 0.16); transform: none; text-decoration: none; }
.aside-link .hcc-ic { flex: none; }
.aside-link b { display: block; font-size: 0.95rem; }
.aside-link small { display: block; color: #a1a1a6; font-size: 0.8rem; font-weight: 400; }
.aside-arw { margin-left: auto; color: #fff; font-weight: 700; flex: none; }
.split-aside .btn-outline { color: #fff; border-color: rgba(255, 255, 255, 0.3); margin-top: 4px; }
.split-aside .btn-outline:hover { background: rgba(255, 255, 255, 0.1); border-color: #fff; }
@media (max-width: 860px) {
  .split-2 { grid-template-columns: 1fr; }
  .split-aside { position: static; }
}

/* ---------- Search tabs ---------- */
.search-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 10px;
  margin-top: 28px;
}
.search-tabs {
  display: flex;
  gap: 6px;
  padding: 6px;
}
.search-tab {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  padding: 10px 18px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.search-tab[aria-selected='true'] {
  background: var(--primary);
  color: #fff;
}
.search-tab:not([aria-selected='true']):hover {
  background: var(--surface-2);
  color: var(--text);
}
.search-panel {
  padding: 14px;
  min-height: 96px;
}
.widget-frame {
  width: 100%;
  border: 0;
  display: block;
}
.widget-note {
  font-size: 0.82rem;
  color: var(--text-muted);
  padding: 4px 14px 10px;
}

/* Native search form */
.search-form {
  padding: 8px 14px 6px;
}
.sf-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr 150px 150px 110px auto;
  gap: 10px;
  align-items: end;
}
.sf-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.sf-field > span {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.sf-field input,
.sf-field select {
  font: inherit;
  font-size: 0.98rem;
  padding: 12px 13px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  width: 100%;
  height: 48px;
}
.sf-field input:focus,
.sf-field select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}
.sf-swap {
  height: 48px;
  width: 42px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--primary);
  font-size: 18px;
  cursor: pointer;
}
.sf-swap:hover {
  border-color: var(--primary);
}
.sf-submit {
  height: 48px;
  justify-content: center;
  white-space: nowrap;
}
@media (max-width: 900px) {
  .sf-grid {
    grid-template-columns: 1fr 1fr;
  }
  .sf-swap {
    display: none;
  }
  .sf-submit {
    grid-column: 1 / -1;
  }
}
@media (max-width: 620px) {
  .sf-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Sections ---------- */
section.block {
  padding: 44px 0;
}
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.section-head p {
  margin: 4px 0 0;
  color: var(--text-muted);
}

/* ---------- Cards grid ---------- */
.grid {
  display: grid;
  gap: 18px;
}
.grid.cols-2 {
  grid-template-columns: repeat(2, 1fr);
}
.grid.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}
.grid.cols-4 {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  background: var(--surface-2);
  border: none;
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
a.card:hover {
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* Direction / price card */
.dir-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.dir-card .route {
  font-weight: 750;
  font-size: 1.1rem;
  color: var(--text);
}
.dir-card .arrow {
  color: var(--primary);
  margin: 0 6px;
}
.dir-card .meta {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.dir-card .price {
  margin-top: auto;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
}
.dir-card .price small {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
}

.badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--accent);
}
.badge.hot {
  background: var(--accent-soft);
  color: var(--accent);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 500;
  font-size: 1rem;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
}
.btn:hover {
  text-decoration: none;
}
/* Кнопки внутри текста статьи (последний абзац) — ровно по одной линии. */
.prose p .btn { vertical-align: middle; margin: 4px 8px 4px 0; }
.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--primary-dark);
}
.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--border);
}
.btn-outline:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
}

/* ---------- Table ---------- */
.table-wrap {
  overflow-x: auto;
  border: none;
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: 0 2px 16px rgba(0,0,0,.05);
  padding: 0 24px;
}
table.data {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
}
table.data th,
table.data td {
  text-align: left;
  padding: 13px 18px;
  border-bottom: 1px solid var(--border);
  font-size: 0.94rem;
}
table.data th {
  background: var(--surface-2);
  font-weight: 700;
  color: var(--text-muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
table.data tr:last-child td {
  border-bottom: none;
}
table.data td.price {
  font-weight: 750;
  color: var(--primary);
}

/* ---------- Prose (blog / legal) ---------- */
.prose {
  max-width: 760px;
}
.prose h2 {
  margin-top: 1.6em;
}
.prose h3 {
  margin-top: 1.3em;
}
.prose ul,
.prose ol {
  padding-left: 1.3em;
  margin: 0 0 1em;
}
.prose li {
  margin-bottom: 0.4em;
}
.prose blockquote {
  margin: 1.2em 0;
  padding: 12px 20px;
  border-left: 3px solid var(--primary);
  background: var(--primary-soft);
  border-radius: 0 8px 8px 0;
  color: var(--text);
}

/* ---------- Breadcrumbs ---------- */
.breadcrumbs {
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 18px 0 0;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.breadcrumbs a {
  color: var(--text-muted);
}
.breadcrumbs a:hover {
  color: var(--primary);
}

/* ---------- Feature / info tiles ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.feature-num {
  flex: 0 0 auto;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary);
  line-height: 1;
  padding-top: 2px;
}
.feature h3 {
  font-size: 1.05rem;
  margin-bottom: 4px;
}
.feature p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* Chips */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.chip {
  display: inline-block;
  padding: 8px 15px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
}
.chip:hover {
  text-decoration: none;
  border-color: var(--primary);
  color: var(--primary);
}

.page-intro {
  max-width: 70ch;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.note {
  background: var(--accent-soft);
  border: 1px solid #bfeee9;
  border-radius: var(--radius);
  padding: 16px 20px;
  font-size: 0.92rem;
  color: var(--text);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid.cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid.cols-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .features {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
}
@media (max-width: 620px) {
  .main-nav {
    display: none;
  }
  .main-nav.open {
    display: flex;
    position: absolute;
    top: 66px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 8px 20px 16px;
  }
  .main-nav.open a {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
  }
  .main-nav.open .has-dropdown,
  .main-nav.open .dropdown-toggle {
    width: 100%;
  }
  .nav-toggle {
    display: inline-grid;
    place-items: center;
    margin-left: auto;
    width: 42px;
    height: 42px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
  }
  .nav-toggle:hover { border-color: var(--primary); color: var(--primary); }
  /* Поиск на мобильном: в закрытой шапке его нет (не помещается рядом с
     гамбургером), но при открытии меню app.js переносит его внутрь панели
     .main-nav.open — тут он показывается на всю ширину, под пунктами меню. */
  .main-nav.open .site-search {
    display: flex; width: 100%; margin-top: 10px;
  }
  .main-nav.open .ss-results {
    left: 0; right: 0; width: 100%; max-width: 100%;
  }
  .grid.cols-2,
  .grid.cols-3,
  .grid.cols-4 {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   Форма поиска в стиле kupibilet (.ks)
   ============================================================ */
.ks {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow-lg);
  padding: 14px;
  margin-top: 28px;
  position: relative;
}
/* Тонкая акцентная полоса сверху — делает поиск «фирменным».
   Радиус паруется с .ks, а не overflow:hidden на всём блоке — иначе
   выпадающие автокомплит городов и календарь дат обрезаются краем карточки. */
.ks::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  border-radius: calc(var(--radius) + 4px) calc(var(--radius) + 4px) 0 0;
  background: var(--primary);
}
.ks-tabs {
  display: inline-flex;
  gap: 0;
  padding: 3px;
  flex-wrap: wrap;
  background: rgba(0, 0, 0, .05);
  border-radius: var(--radius-pill);
  margin-bottom: 6px;
}
.ks-tab {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-weight: 500;
  font-size: 0.81rem;
  padding: 7px 20px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.15s ease;
}
.ks-tab[aria-selected='true'] {
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 1px 4px rgba(0,0,0,.12);
}
.ks-tab:not([aria-selected='true']):hover {
  color: var(--text);
}
.ks-form {
  padding: 8px 6px 4px;
}
.ks-fields {
  display: grid;
  grid-template-columns: 1.4fr auto 1.4fr 150px 150px 190px auto;
  gap: 8px;
  align-items: end;
}
/* Упрощённая форма (туры на главной/на /tury/): откуда, куда, дата, ночей —
   без свопа городов и пассажиров. Медиа-запросы .ks-fields ниже по каскаду
   продолжают сужать её на планшете/мобильном (та же специфичность класса). */
.ks-fields-tury {
  grid-template-columns: 1.1fr 1.1fr 150px 100px auto;
}
.ks-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}
.ks-field > span {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.ks-field input {
  font: inherit;
  font-size: 0.98rem;
  padding: 12px 13px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--text);
  width: 100%;
  height: 52px;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.ks-field input:hover { border-color: var(--primary-soft, var(--border)); background: var(--surface); }
.ks-field input:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--surface);
  box-shadow: 0 0 0 3px var(--primary-soft);
}
.ks-swap {
  height: 40px;
  width: 40px;
  align-self: end;
  margin-bottom: 6px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  color: var(--primary);
  font-size: 18px;
  cursor: pointer;
  transition: transform .2s ease, border-color .15s ease, box-shadow .15s ease;
}
.ks-swap:hover { border-color: var(--primary); box-shadow: 0 2px 10px rgba(0,0,0,.12); transform: rotate(180deg); }
.ks-submit {
  height: 52px;
  justify-content: center;
  white-space: nowrap;
  font-weight: 700;
  background: var(--primary);
  border: none;
}
.ks-submit:hover { filter: brightness(1.06); }

/* Пассажиры и класс */
.ks-pax { position: relative; }
.ks-pax-btn {
  height: 50px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font: inherit;
  font-size: 0.96rem;
  padding: 12px 13px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  text-align: left;
}
.ks-pax-btn:hover { border-color: var(--primary); }
.ks-pax-panel {
  position: absolute;
  z-index: 30;
  top: calc(100% + 8px);
  right: 0;
  width: 300px;
  max-width: 88vw;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
}
.ks-pax-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
}
.ks-pax-name { font-weight: 650; font-size: 0.95rem; display: flex; flex-direction: column; }
.ks-pax-name small { color: var(--text-muted); font-weight: 500; font-size: 0.8rem; }
.ks-stepper { display: flex; align-items: center; gap: 6px; }
.ks-stepper button {
  width: 34px; height: 34px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--primary);
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
}
.ks-stepper button:hover { border-color: var(--primary); }
.ks-stepper output { min-width: 22px; text-align: center; font-weight: 700; }
.ks-pax-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 6px 0 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}
.ks-pax-class { display: flex; gap: 18px; margin-bottom: 14px; }
.ks-pax-class label { display: flex; align-items: center; gap: 7px; font-weight: 600; cursor: pointer; }
.ks-pax-done { width: 100%; justify-content: center; }

.ks-link {
  background: none;
  border: none;
  color: var(--primary);
  font: inherit;
  font-weight: 650;
  font-size: 0.92rem;
  cursor: pointer;
  padding: 0;
}
.ks-link:hover { text-decoration: underline; }

@media (max-width: 920px) {
  .ks-fields { grid-template-columns: 1fr 1fr; }
  .ks-swap { display: none; }
  .ks-pax, .ks-submit { grid-column: 1 / -1; }
  .ks-pax-panel { left: 0; right: auto; }
}
@media (max-width: 560px) {
  .ks-fields { grid-template-columns: 1fr; }
}

/* ============================================================
   Блок «Нужна ли виза»
   ============================================================ */
.visa {
  background: transparent;
  border: none;
  padding: 0;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}
.visa-head h2 { margin-bottom: 6px; }
.visa-head p { color: var(--text-muted); margin: 0 0 20px; }
.visa-form {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}
.visa-form input {
  flex: 1 1 320px;
  font: inherit;
  font-size: 1rem;
  padding: 13px 20px;
  border: none;
  border-radius: var(--radius-pill);
  background: var(--surface-2);
  height: 50px;
}
.visa-form input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.visa-form .btn { height: 50px; }
.visa-result { margin-top: 18px; }
.visa-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 5px solid var(--text-muted);
  border-radius: 14px;
  padding: 16px 20px;
  flex-wrap: wrap;
}
.visa-card.visa-ok { border-left-color: var(--success); }
.visa-card.visa-warn { border-left-color: var(--warning); }
.visa-card.visa-danger { border-left-color: #e5484d; }
.visa-flag { font-size: 40px; line-height: 1; }
.visa-info { flex: 1 1 auto; min-width: 160px; }
.visa-country { font-weight: 750; font-size: 1.1rem; }
.visa-city { color: var(--text-muted); font-weight: 500; margin-left: 8px; font-size: 0.95rem; }
.visa-status { margin-top: 2px; font-weight: 650; }
.visa-status small { color: var(--text-muted); font-weight: 500; }
.visa-ok .visa-status { color: var(--success); }
.visa-warn .visa-status { color: var(--warning); }
.visa-danger .visa-status { color: #e5484d; }
.visa-card .btn { margin-left: auto; }
.visa-miss { color: var(--text-muted); border-left-color: var(--border); }
@media (max-width: 560px) {
  .visa { padding: 22px; }
  .visa-card .btn { margin-left: 0; width: 100%; justify-content: center; }
}

/* ============================================================
   Карта цен (/karta)
   ============================================================ */
.karta-origin { margin-top: 18px; display: inline-flex; }
.karta-origin label { display: flex; flex-direction: column; gap: 5px; }
.karta-origin span { font-size: 0.74rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.03em; }
.karta-origin select {
  font: inherit; font-size: 1rem; padding: 11px 14px; height: 48px;
  border: 1px solid var(--border); border-radius: 12px; background: var(--surface); min-width: 220px;
}
.karta-filters {
  display: flex; align-items: center; gap: 14px 18px; flex-wrap: wrap;
  padding: 14px 16px; margin-bottom: 14px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
}
.karta-modes { display: flex; gap: 6px; }
.karta-chip {
  border: 1px solid var(--border); background: var(--surface); color: var(--text-muted);
  font: inherit; font-weight: 650; font-size: 0.9rem; padding: 8px 14px; border-radius: 999px; cursor: pointer;
}
.karta-chip.is-active { background: var(--primary); color: #fff; border-color: var(--primary); }
.karta-check { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: 0.92rem; cursor: pointer; }
.karta-more { color: var(--text-muted); font-size: 0.85rem; margin-left: auto; }
.karta-map {
  height: 560px; width: 100%;
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  background: var(--surface-2);
  z-index: 0;
}
/* Метки-ценники */
.karta-pin {
  display: inline-flex; align-items: center; gap: 5px; white-space: nowrap;
  background: var(--primary); color: #fff;
  font-weight: 700; font-size: 12px; line-height: 1;
  padding: 5px 10px 5px 8px; border-radius: 999px;
  box-shadow: 0 2px 8px rgba(20,33,61,0.25);
  border: 2px solid #fff;
  transform: translate(-50%, -50%);
  cursor: pointer;
}
.karta-pin-i { font-size: 12px; line-height: 1; }
.karta-pin-jd { background: var(--accent); }
/* «Метки на карте» выкл — прячем название, оставляем компактную иконку. */
.karta-hide-labels .karta-pin-name { display: none; }
.karta-hide-labels .karta-pin { padding: 5px 7px; gap: 0; }
.karta-pop { text-align: center; min-width: 150px; }
.karta-pop-c { color: var(--text-muted); font-size: 0.82rem; }
.karta-pop-p { font-weight: 750; color: var(--primary); margin: 6px 0 10px; }
.karta-pop-btn {
  display: inline-block; background: var(--primary); color: #fff !important;
  padding: 8px 16px; border-radius: 10px; font-weight: 700; text-decoration: none;
}

/* Интерактивная карта маршрутов (построение пути) */
.rmap-panel {
  margin-top: 18px; padding: 16px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow);
}
.rmap-modes { display: flex; gap: 8px; margin-bottom: 14px; }
.rmap-mode {
  border: 1px solid var(--border); background: var(--surface-2); color: var(--text);
  font: inherit; font-weight: 700; font-size: 0.95rem; padding: 9px 18px; border-radius: 999px; cursor: pointer;
}
.rmap-mode.is-active { background: var(--primary); color: #fff; border-color: var(--primary); }
.rmap-fields { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; }
.rmap-field { position: relative; display: flex; flex-direction: column; gap: 5px; flex: 1; min-width: 190px; }
.rmap-field > span { font-size: 0.74rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.03em; }
.rmap-field input {
  font: inherit; padding: 11px 13px; border: 1px solid var(--border); border-radius: 12px;
  background: var(--surface); color: var(--text); width: 100%;
}
.rmap-field input:focus { outline: none; border-color: var(--primary); }
.rmap-reset { align-self: flex-end; }
.rmap-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  margin-top: 14px; padding: 12px 16px; border-radius: 12px;
  background: var(--surface-2); border: 1px solid var(--border);
}
.rmap-cta-tx { font-weight: 700; }
.rmap-routeinfo { font-weight: 500; color: var(--text-muted); }
/* Метки городов, иконка транспорта, подписи концов (MapLibre-маркеры) */
.rmap-dot {
  width: 11px; height: 11px; border-radius: 50%; background: #8a94a6;
  border: 2px solid #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.3); cursor: pointer;
}
.rmap-dot.is-end { width: 17px; height: 17px; }
.rmap-dot.is-dim { width: 7px; height: 7px; background: #c2c8d2; opacity: .55; cursor: default; box-shadow: none; }
.rmap-veh { display: block; font-size: 22px; line-height: 1; transform-origin: 50% 50%; filter: drop-shadow(0 1px 2px rgba(0,0,0,0.35)); }
.rmap-veh svg { display: block; overflow: visible; }

/* Самолёт: машет крыльями */
.veh-plane .body, .veh-plane .nose { fill: var(--text); }
.veh-plane .wings {
  fill: #2b3a67; transform-box: fill-box; transform-origin: center;
  animation: veh-wingflap 0.5s ease-in-out infinite alternate;
}
@keyframes veh-wingflap { from { transform: scaleX(1); } to { transform: scaleX(0.72); } }

/* Поезд: крутятся колёса + идёт дым */
.veh-train .body, .veh-train .cab { fill: #0aa06e; }
.veh-train .chimney { fill: #0a7a54; }
.veh-train .win { fill: #e6fff5; }
.veh-train .wheel {
  fill: #0a7a54; stroke: #e6fff5; stroke-width: 1.3;
  transform-box: fill-box; transform-origin: center;
  animation: veh-wheelspin 0.7s linear infinite;
}
@keyframes veh-wheelspin { to { transform: rotate(360deg); } }
.veh-train .smoke circle {
  fill: #c2ccd8; opacity: 0; transform-box: fill-box; transform-origin: center;
  animation: veh-smoke 1.8s ease-out infinite;
}
@keyframes veh-smoke {
  0% { opacity: 0.55; transform: translate(0, 0) scale(0.4); }
  100% { opacity: 0; transform: translate(-9px, -16px) scale(1.35); }
}
@media (prefers-reduced-motion: reduce) {
  .veh-plane .wings, .veh-train .wheel, .veh-train .smoke circle { animation: none; }
}
.rmap-pin {
  display: inline-block; white-space: nowrap;
  background: var(--primary); color: #fff; font-weight: 700; font-size: 12px; line-height: 1;
  padding: 5px 10px; border-radius: 999px; border: 2px solid #fff; box-shadow: 0 2px 8px rgba(20,33,61,0.25);
  margin-bottom: 6px;
}
.rmap-fallback {
  display: flex; align-items: center; justify-content: center; height: 100%;
  padding: 24px; text-align: center; color: var(--text-muted); font-size: 0.95rem;
}
@media (max-width: 620px) { .rmap-reset { width: 100%; } }
@media (max-width: 620px) {
  .karta-more { margin-left: 0; width: 100%; }
  .karta-map { height: 440px; }
}

/* Карточки отелей на странице результатов */
.hotel-card { display: flex; flex-direction: column; gap: 6px; min-height: 130px; }
.hotel-stars { color: #f5a623; font-size: 0.95rem; letter-spacing: 1px; min-height: 1.1em; }
.hotel-name { font-weight: 650; font-size: 0.98rem; color: var(--text); }
.hotel-card .price { font-size: 1.15rem; }

/* ============================================================
   Coastal Sunset — фирменный слой поверх базовых стилей (2026)
   ============================================================ */
body { font-size: 16.5px; letter-spacing: -0.006em; }

/* Хедер — светлый, полупрозрачный, с блюром (как sticky-навбар apple.com) */
.site-header {
  background: rgba(251, 251, 253, 0.8);
  border-bottom: 1px solid var(--border);
}
.logo { font-size: 1.2rem; letter-spacing: -0.01em; }

/* Поисковая пилюля-карточка */
.search-card, .ks {
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow);
  border: none;
  background: var(--surface-2);
}
.ks-tab[aria-selected='true'], .search-tab[aria-selected='true'] {
  background: var(--primary);
  color: #fff;
}

.dir-card .price { color: var(--text); }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); letter-spacing: -0.02em; }

/* Секции — чуть больше воздуха */
section.block { padding: 64px 0; }

/* Цвет логотипа в шапке и футере (кольцо и текст наследуют currentColor) */
.logo { color: var(--text); }

/* ============================================================
   Правки (заголовок в строку, крошки в контенте, меню «О сервисе»)
   ============================================================ */
/* H1 в hero: на страницах-каталогах (авиа-направления, отели и т.п.) —
   умеренный размер, т.к. заголовок часто длинный («Авиабилеты
   Санкт-Петербург — Буэнос-Айрес»). На главной и /tury/ (.hero-centered,
   короткий маркетинговый текст в 1-2 строки) — крупный, как в референсе. */
.hero h1 {
  max-width: none;
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}
.hero-centered h1 {
  font-size: clamp(2.5rem, 7vw, 5rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
}
.hero .lead { max-width: 100%; }

/* Хлебные крошки: внутри контента, без серого фона */
.breadcrumbs {
  padding: 0;
  margin: 0 0 14px;
  background: transparent;
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--primary); }

/* Меню «О сервисе» с выпадающим списком */
.has-dropdown { position: relative; }
.dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  font: inherit;
  font-weight: 500;
  font-size: 0.75rem;
  color: #424245;
  padding: 0;
}
.dropdown-toggle:hover { color: var(--text); }
.dropdown-toggle i { font-style: normal; font-size: 0.7em; transition: transform 0.15s ease; }
.has-dropdown:hover .dropdown-toggle i,
.has-dropdown.open .dropdown-toggle i { transform: rotate(180deg); }
.dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  min-width: 230px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 8px;
  display: none;
  flex-direction: column;
  gap: 2px;
  z-index: 50;
}
.has-dropdown:hover .dropdown-menu,
.has-dropdown.open .dropdown-menu { display: flex; }
.dropdown-menu a {
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--text);
  font-weight: 600;
  font-size: 0.92rem;
}
.dropdown-menu a:hover { background: var(--surface-2); color: var(--primary); text-decoration: none; }
.dropdown-menu a.is-active { background: var(--surface-2); color: var(--primary); font-weight: 700; }
@media (max-width: 620px) {
  .dropdown-menu { position: static; display: flex; box-shadow: none; border: none; padding: 0 0 0 12px; min-width: 0; }
  .has-dropdown .dropdown-toggle { padding: 12px 0; width: 100%; }
}

/* Карта на всю ширину экрана */
.karta-fullbleed {
  width: 100%;
  margin-top: 14px;
}
.karta-fullbleed .karta-map {
  height: 70vh;
  min-height: 460px;
  border-radius: 0;
  border-left: none;
  border-right: none;
}

/* Фикс выпадающего меню «О сервисе»: убираем зазор (ховер не рвётся) */
.dropdown-menu { top: 100%; padding-top: 12px; }
.dropdown-menu::before {
  content: "";
  position: absolute;
  top: -10px; left: 0; right: 0; height: 14px;
}

/* FAQ (аккордеон) — плоский список с разделителями, как в референсе */
.faq-list { border-top: 1px solid var(--border); }
.faq-item {
  background: none;
  border: none;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  margin-bottom: 0;
  overflow: visible;
}
.faq-item summary {
  cursor: pointer;
  padding: 22px 0;
  font-weight: 600;
  font-size: 1.1875rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--primary); font-weight: 300; font-size: 1.5rem; flex: none; }
.faq-item[open] summary::after { content: "−"; }
.faq-item summary:hover { color: var(--primary); }
.faq-a { padding: 0 0 22px; color: var(--text-muted); }

/* Таблица дат */
.date-table td { vertical-align: middle; }
.date-table tr.is-cheapest { background: #eafaf0; }
.date-table tr.is-cheapest .price { color: var(--success); }

/* Поиск по сайту в шапке — компактная pill-капсула, как в референсе. */
.site-search {
  position: relative; display: flex; align-items: center; gap: 8px;
  flex: 0 0 auto; width: 200px;
  background: rgba(0, 0, 0, 0.05); border-radius: var(--radius-pill);
  padding: 7px 14px; transition: background .15s, box-shadow .15s;
}
.site-search .ui-ic { color: var(--text-muted-2); flex: none; }
.site-search:focus-within { background: var(--surface); box-shadow: 0 0 0 2px var(--primary); }
.ss-input {
  width: 100%; height: 18px;
  border: none; background: transparent; color: var(--text);
  font: inherit; font-size: 0.75rem; padding: 0;
  text-overflow: ellipsis;
}
.ss-input::placeholder { color: var(--text-muted-2); opacity: 1; }
.ss-input:focus { outline: none; }
.ss-results {
  position: absolute; top: calc(100% + 8px); right: 0; left: auto;
  width: max(100%, 560px); max-width: min(92vw, 720px);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 8px; z-index: 60;
  max-height: 66vh; overflow: auto;
}
.ss-item { display: block; padding: 10px 14px; border-radius: 10px; color: var(--text); font-size: 0.92rem; font-weight: 550; }
.ss-item:hover, .ss-item.is-active { background: var(--surface-2); color: var(--primary); text-decoration: none; }
@media (max-width: 820px) { .site-search { display: none; } }

/* Кастомный автокомплит городов */
.ks-ac { position: relative; }
.ks-ac-list {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 45;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 6px; margin-top: 4px;
  max-height: 300px; overflow: auto;
}
.ks-ac-item {
  display: flex; align-items: center; gap: 9px; width: 100%; text-align: left; border: none; background: none;
  font: inherit; font-size: 0.95rem; padding: 10px 12px; border-radius: var(--radius-sm); cursor: pointer; color: var(--text);
}
.ks-ac-item .ks-ac-pin { opacity: 0.6; font-size: 0.9rem; }
.ks-ac-item:hover, .ks-ac-item.is-active { background: var(--surface-2); color: var(--primary); }
.ks-ac-item:hover .ks-ac-pin, .ks-ac-item.is-active .ks-ac-pin { opacity: 1; }

/* Кастомный календарь на полях Туда/Обратно */
.ks-date { position: relative; }
.ks-date-disp { cursor: pointer; background: var(--surface) !important; }
.ks-cal-pop {
  position: absolute; top: 100%; left: 0; z-index: 60; margin-top: 6px;
  width: 300px; max-width: 92vw; padding: 14px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.ks-field-date:last-of-type .ks-cal-pop { left: auto; right: 0; }
.ks-cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.ks-cal-title { font-weight: 750; font-size: 0.98rem; }
.ks-cal-nav {
  border: 1px solid var(--border); background: var(--surface-2); color: var(--text);
  width: 32px; height: 32px; border-radius: var(--radius-sm); cursor: pointer; font-size: 1.1rem; line-height: 1;
}
.ks-cal-nav:hover { border-color: var(--primary); color: var(--primary); }
.ks-cal-wd { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; margin-bottom: 4px; }
.ks-cal-wd span { text-align: center; font-size: 0.72rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; }
.ks-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.ks-cal-day {
  border: none; background: none; font: inherit; font-size: 0.9rem; color: var(--text);
  aspect-ratio: 1; border-radius: var(--radius-sm); cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.ks-cal-day.is-empty { visibility: hidden; cursor: default; }
.ks-cal-day:hover:not(.is-disabled):not(.is-empty) { background: var(--surface-2); }
.ks-cal-day.is-today { box-shadow: inset 0 0 0 1px var(--border); font-weight: 700; }
.ks-cal-day.is-sel { background: var(--primary); color: #fff; font-weight: 750; }
.ks-cal-day.is-disabled { color: var(--text-muted); opacity: 0.4; cursor: default; }
/* Календарь с ценами: ячейки крупнее, число + цена столбиком */
.ks-cal-pop:has(.with-prices) { width: 360px; }
.with-prices .ks-cal-day { aspect-ratio: auto; flex-direction: column; gap: 1px; padding: 6px 2px; }
.ks-cal-p { font-size: 0.66rem; font-weight: 650; color: var(--text-muted); line-height: 1; }
.ks-cal-p-empty { opacity: 0.4; }
.ks-cal-day.has-price .ks-cal-n { font-size: 0.9rem; }
.ks-cal-day.is-cheap { background: #eafaf0; }
.ks-cal-day.is-cheap .ks-cal-p { color: var(--success); font-weight: 750; }
.ks-cal-day.is-sel .ks-cal-p { color: #fff; }

/* Календарь низких цен — настоящий календарь, 7 дней в строке, крупные ячейки. */
.lowcal { width: 100%; }
.lowcal-wd { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; margin-bottom: 6px; }
.lowcal-wd span { text-align: center; font-size: 0.75rem; font-weight: 600; color: var(--text-muted-2); }
.lowcal-wd span.is-weekend { color: var(--accent); }
.lowcal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.lowcal-day {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  aspect-ratio: 1.25 / 1; border: 1.5px solid transparent; border-radius: 16px;
  background: var(--surface-2); text-decoration: none; color: var(--text); padding: 0;
  transition: border-color 0.15s ease;
}
.lowcal-day .d { font-size: 1.1875rem; font-weight: 600; line-height: 1; }
.lowcal-day .p { font-size: 0.75rem; font-weight: 500; color: var(--text-muted); line-height: 1; }
.lowcal-day.is-empty { border: none; background: none; }
.lowcal-day.is-off { background: none; }
.lowcal-day.is-off .d { color: #c7c7cc; font-weight: 600; }
a.lowcal-day:hover { border-color: var(--primary); text-decoration: none; }
.lowcal-day.cheapest { background: var(--primary); }
.lowcal-day.cheapest .d, .lowcal-day.cheapest .p { color: #fff; }
@media (max-width: 620px) {
  .lowcal-day .d { font-size: 1rem; }
  .lowcal-day .p { font-size: 0.62rem; }
}

.ks-submit.pulse { animation: kspulse 0.6s ease 2; }
@keyframes kspulse { 50% { transform: scale(1.06); } }

/* Фото города на странице направления */
.city-photo {
  position: relative; margin: 20px 0 0; border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
}
.city-photo img { width: 100%; height: 320px; object-fit: cover; display: block; }
.city-photo figcaption {
  position: absolute; left: 0; bottom: 0; right: 0;
  padding: 40px 22px 16px; color: #fff; font-weight: 800; font-size: 1.5rem;
  background: linear-gradient(transparent, rgba(6,14,30,0.72));
}
@media (max-width: 620px) { .city-photo img { height: 200px; } .city-photo figcaption { font-size: 1.2rem; } }

/* Фото города рядом с текстом (страницы направлений) */
.prose-with-photo { display: grid; grid-template-columns: 320px 1fr; gap: 28px; align-items: start; }
.prose-with-photo .prose { min-width: 0; }
.city-photo.side { margin: 0; position: sticky; top: 90px; }
.city-photo.side img { height: 260px; }
@media (max-width: 780px) {
  .prose-with-photo { grid-template-columns: 1fr; gap: 18px; }
  .city-photo.side { position: static; }
  .city-photo.side img { height: 220px; }
}

/* Размер логотипа в подвале */
.site-footer .logo { font-size: 1.3rem; }
.site-footer .logo-mark { width: 24px; height: 24px; border-width: 2.2px; }
.site-footer .logo-orbit { inset: -4.3px; }
.site-footer .logo-orbit::before { width: 8.2px; height: 8.2px; }
@media (max-width: 620px) { .site-header .container { height: 52px; } }

/* Подвал: ссылки мельче */
.footer-grid ul { font-size: 0.84rem; gap: 8px; }
.footer-grid h4 { font-size: 0.9rem; }

/* Легенда «зелёный = дешёвый день» */
.legend { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 12px; font-size: 0.85rem; color: var(--text-muted); }
.legend .dot { display: inline-block; width: 12px; height: 12px; border-radius: 4px; margin-right: 6px; vertical-align: -1px; }
.legend .dot.green { background: #eafaf0; border: 1px solid var(--success); }

/* Навигационная панель маршрута */
.rnav { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 14px; }
.rnav-item {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 15px; border-radius: 999px; font-weight: 650; font-size: 0.9rem;
  background: var(--surface); border: 1px solid var(--border); color: var(--text);
}
.rnav-item:hover { border-color: var(--primary); color: var(--primary); text-decoration: none; }
.rnav-item.is-active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Вкладки по месяцам */
.mtabs-nav { display: flex; flex-wrap: wrap; gap: 2px; margin-bottom: 14px; }
.mtab {
  border: none; background: none; font: inherit; font-weight: 500; font-size: 0.81rem;
  padding: 7px 16px; border-radius: var(--radius-pill); cursor: pointer; color: var(--text-muted);
}
.mtab.is-active { background: var(--surface); color: var(--text); box-shadow: 0 1px 4px rgba(0,0,0,.12); }

/* Таблица цен с колонками по авиакомпаниям */
table.airline-matrix { min-width: 640px; }
table.airline-matrix th, table.airline-matrix td { border-bottom: 1px solid var(--border); padding: 16px 12px; }
table.airline-matrix th:first-child, table.airline-matrix td:first-child { padding-left: 0; }
table.airline-matrix th:last-child, table.airline-matrix td:last-child { padding-right: 0; }
table.airline-matrix tr:last-child th, table.airline-matrix tr:last-child td { border-bottom: none; }
table.airline-matrix th {
  background: none; font-size: 0.75rem; font-weight: 600; color: var(--text-muted-2);
  text-transform: none; letter-spacing: normal; white-space: nowrap;
}
.al-head { display: inline-flex; align-items: center; gap: 6px; text-align: left; }
.al-logo { width: 20px; height: 20px; border-radius: 6px; object-fit: contain; flex: none; }
.airline-matrix td.price { font-weight: 600; text-align: left; }
.airline-matrix td.muted { color: #c7c7cc; }
.airline-matrix td.price a {
  display: inline-block; color: var(--text); text-decoration: none;
  padding: 8px; border-radius: 10px; font-size: 0.94rem;
}
.airline-matrix td.price a:hover { text-decoration: none; }
.airline-matrix td.is-cheapest a { background: rgba(0,113,227,.08); color: var(--primary); font-weight: 600; }
.buy-link { color: #0066cc; font-size: 0.875rem; text-decoration: none; white-space: nowrap; }
.buy-link:hover { text-decoration: underline; }

/* Стилизованная иллюстрация маршрута (вместо интерактивной карты) */
.route-illus {
  position: relative; width: 100%; aspect-ratio: 2 / 1; max-height: 420px;
  border-radius: var(--radius-lg); overflow: hidden;
}
.route-illus-svg { display: block; width: 100%; height: 100%; }
.ri-label-name { font-size: 15px; font-weight: 700; fill: var(--text); font-family: var(--font); }
.ri-label-code { font-size: 13px; font-weight: 500; fill: var(--text-muted); }
.route-illus-info {
  position: absolute; left: 20px; bottom: 20px;
  display: flex; gap: 28px;
  background: rgba(255,255,255,.85); backdrop-filter: blur(6px);
  border-radius: var(--radius-sm); padding: 12px 18px;
}
.ri-label { display: block; font-size: 0.72rem; color: var(--text-muted); margin-bottom: 2px; }
.ri-val { display: block; font-size: 0.95rem; font-weight: 700; color: var(--text); }
@media (max-width: 620px) {
  .route-illus { aspect-ratio: 4 / 3; }
  .route-illus-info { left: 12px; bottom: 12px; gap: 16px; padding: 10px 14px; }
}

/* Мини-карта города на странице направления */
.citymap {
  height: 320px; width: 100%; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); background: var(--surface-2); z-index: 0;
}
@media (max-width: 620px) { .citymap { height: 240px; } }
.rm-veh { font-size: 20px; line-height: 1; filter: drop-shadow(0 1px 2px rgba(0,0,0,0.35)); }
.rm-veh-plane { display: block; width: 24px; height: 24px; }
.rm-veh-plane svg { display: block; transform-origin: 50% 50%; }
.linkgrid { gap: 8px; }
.linkgrid .chip { font-size: 0.88rem; }

/* Таблица поездов (Яндекс.Расписания) */
.train-table td { vertical-align: top; }
.train-table .tr-num { font-weight: 700; }
.train-table .tr-st { font-size: 0.8rem; margin-top: 2px; max-width: 190px; }
.train-table .tr-dt { font-size: 0.8rem; }
.th-sort { cursor: pointer; white-space: nowrap; }
.th-sort::after { content: ' ↕'; opacity: 0.4; font-size: 0.85em; }
.th-sort.is-asc::after { content: ' ↑'; opacity: 0.9; }
.th-sort.is-desc::after { content: ' ↓'; opacity: 0.9; }
.tr-badge {
  display: inline-block; font-size: 0.74rem; font-weight: 700; line-height: 1;
  padding: 4px 8px; border-radius: var(--radius-sm); margin: 0 4px 4px 0;
  background: var(--surface-2); color: var(--text-muted); border: 1px solid var(--border);
}
.tr-badge.tr-sapsan { background: #e11a17; color: #fff; border-color: #c1130f; }
.tr-badge.tr-lastochka { background: #eafaf0; color: #0a7a54; border-color: #b7e6cf; }
.tr-badge.tr-fast { background: #fff4e6; color: #b8620a; border-color: #ffd9a8; }
.tr-badge.tr-double { background: #f0e8ff; color: #6b3fd1; border-color: #d6c6fb; }
.tr-badge.tr-nevsky { background: #eaf2ff; color: #123a8a; border-color: #b9cdfb; }
.tr-badge.tr-through { background: var(--surface-2); color: var(--text-muted); border-color: var(--border); }
.train-table .tr-badges { margin-top: 5px; }
/* Цены по типам вагонов под ценой */
.wg-ic { width: 13px; height: 13px; flex: none; vertical-align: -2px; }
.ui-ic { width: 14px; height: 14px; flex: none; vertical-align: -2px; }
.tr-types { margin-top: 5px; display: flex; flex-wrap: wrap; gap: 4px; }
.tr-type { display: inline-flex; align-items: center; gap: 4px; font-size: 0.72rem; font-weight: 600; color: #0aa06e; background: rgba(10,160,110,.1); padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.tr-type .wg-ic { width: 12px; height: 12px; vertical-align: 0; }
.tr-wagons { margin-top: 6px; display: flex; flex-direction: column; gap: 2px; }
.tr-wagon { display: flex; justify-content: space-between; gap: 10px; font-size: 0.8rem; font-weight: 500; }
.tr-wagon span { color: var(--text-muted); display: inline-flex; align-items: center; gap: 5px; }
.tr-wagon b { color: var(--text); }
/* Маршрут поезда (остановки) */
.route-stops td { vertical-align: top; }
/* Список рейсов с подробностями */
.fl-list { display: flex; flex-direction: column; gap: 12px; }
.fl-row {
  background: var(--surface); border-radius: var(--radius); padding: 18px 24px;
  display: grid; grid-template-columns: 130px minmax(0,1.3fr) minmax(0,1fr) minmax(0,1fr) 110px auto;
  align-items: center; gap: 16px; box-shadow: 0 1px 8px rgba(0,0,0,.04);
}
.fl-date { display: flex; flex-direction: column; gap: 2px; font-size: 1.0625rem; font-weight: 600; }
.fl-date .fl-wd { font-size: 0.81rem; font-weight: 400; color: var(--text-muted); }
.fl-air { display: inline-flex; align-items: center; gap: 10px; font-size: 0.9375rem; }
.fl-avatar {
  width: 32px; height: 32px; border-radius: 50%; background: var(--surface-2);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.81rem; font-weight: 600; flex: 0 0 auto;
}
.fl-route { font-size: 0.9375rem; font-weight: 600; letter-spacing: 0.02em; }
.fl-dur { display: flex; flex-direction: column; font-size: 0.9375rem; }
.fl-dur .fl-transfers { font-size: 0.81rem; color: var(--text-muted); }
.fl-price { font-size: 1.3125rem; font-weight: 700; letter-spacing: -0.01em; text-align: right; }
.fl-buy { padding: 9px 20px; font-size: 0.875rem; }
@media (max-width: 900px) {
  .fl-row { grid-template-columns: 1fr 1fr; row-gap: 10px; }
  .fl-price { text-align: left; }
  .fl-buy { grid-column: 1 / -1; justify-content: center; }
}

/* Кросс-ссылка авиа⇄поезд */
.cross-transport {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin-top: 18px; padding: 16px 18px; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--border);
}
.cross-transport .cross-tx { flex: 1; min-width: 220px; font-size: 0.95rem; color: var(--text); }
.cross-transport .btn { white-space: nowrap; }

/* --- #10 Разделение Россия / весь мир --- */
.geo-tag {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.04em;
  margin-bottom: 14px;
  text-transform: uppercase;
}
.geo-tag .geo-dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }
.geo-ru { color: var(--primary-dark); }
.geo-ru .geo-dot { background: var(--primary); }
.geo-world { color: var(--accent); }
.geo-world .geo-dot { background: var(--accent); }
.block-world { background: var(--surface); }

.world-countries {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px;
}
.wc-group {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 14px 16px;
}
.wc-head {
  font-weight: 750; font-size: 1.02rem; color: var(--text);
  margin-bottom: 10px; display: flex; align-items: center; gap: 8px;
}
.wc-flag { line-height: 1; }
.dir-flag { line-height: 1; }
/* Флаг страны — картинка (см. country_flag() в app/lib/places.php), не эмодзи:
   на многих платформах (особенно в браузерах на Windows) флаг-эмодзи не
   рендерится и превращается в буквы кода страны или пустой прямоугольник. */
.flag-ic {
  width: 18px; height: 13px; border-radius: 2px; object-fit: cover;
  vertical-align: -1px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08);
}

/* --- #12 Диаграмма «когда дешевле лететь» (цены по месяцам) --- */
.mprices {
  display: flex; flex-direction: column;
  background: var(--surface); border-radius: var(--radius-lg);
  box-shadow: 0 2px 16px rgba(0,0,0,.05); padding: 12px 32px;
}
.mprice {
  display: grid; grid-template-columns: 150px 1fr 90px; align-items: center; gap: 20px;
  padding: 20px 0; border-bottom: 1px solid var(--border);
  color: var(--text); text-decoration: none;
}
.mprices .mprice:last-child { border-bottom: none; }
.mprice:hover { text-decoration: none; }
.mp-mon { font-weight: 500; font-size: 1.0625rem; text-transform: capitalize; }
.mp-bar { height: 8px; border-radius: 4px; background: var(--border); overflow: hidden; }
.mp-fill { display: block; height: 100%; border-radius: 4px; background: var(--text); }
.mp-price { font-weight: 600; font-size: 1.0625rem; white-space: nowrap; text-align: right; }
.mprice.is-min .mp-fill { background: var(--primary); }
.mprice.is-min .mp-price { color: var(--primary); }
@media (max-width: 620px) {
  .mprices { padding: 8px 16px; }
  .mprice { grid-template-columns: 90px 1fr 74px; gap: 10px; padding: 14px 0; }
}

/* --- Прямой рейс: бейдж в шапке направления --- */
.direct-note { margin: 4px 0 14px; font-size: 0.95rem; color: var(--text-muted); }
.badge-direct { background: var(--text); color: #fff; font-size: 0.75rem; font-weight: 600; text-transform: none; letter-spacing: 0; padding: 3px 10px; }

/* Перевозчик под названием поезда/электрички/автобуса */
.tr-carrier { font-size: 0.8rem; margin-top: 3px; }

/* Карточки вокзалов (страница /jd/vokzaly/) */
.vkz-card { display: flex; flex-direction: column; gap: 4px; }
.vkz-ic { font-size: 1.6rem; }
.vkz-name { font-weight: 700; font-size: 1.05rem; color: var(--text); }

/* --- Слайдер отелей --- */
.hslider { position: relative; }
.hslider-track {
  display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 4px 2px 12px; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  touch-action: pan-x; overscroll-behavior-x: contain;
}
/* Полосу прокрутки прячем — свайп/тач работают, скролл-снап остаётся. */
.hslider-track::-webkit-scrollbar { height: 0; width: 0; display: none; }
/* Вариант слайдера для карточек направлений (.card/.dir-card) вместо отелей. */
.hslider-track-cards { padding: 6px 2px 14px; }
.hslider-track-cards > .card { flex: 0 0 240px; scroll-snap-align: start; }
.blog-slide:hover, .hslide:hover { text-decoration: none; }
.hslide {
  flex: 0 0 220px; scroll-snap-align: start; min-height: 150px;
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); text-decoration: none;
  color: var(--text); transition: border-color .15s, transform .15s, box-shadow .15s;
}
.hslide:hover { border-color: var(--primary); box-shadow: none; }
.hslide-photo {
  position: relative; height: 120px; background: var(--primary-soft);
  background-size: cover; background-position: center;
}
.hslide-body { display: flex; flex-direction: column; gap: 5px; padding: 12px 14px 14px; flex: 1 1 auto; }
.hslide-top { min-height: 1.2em; }
.hslide-stars { position: absolute; left: 10px; top: 10px; color: #f5a623; letter-spacing: 1px; font-size: 0.85rem;
  background: rgba(0,0,0,.55); padding: 2px 8px; border-radius: 999px; }
.hslide-rating { position: absolute; right: 10px; top: 10px; font-weight: 700; color: #fff;
  background: #0aa06e; padding: 3px 9px; border-radius: 8px; font-size: .82rem; }
.hslide-name { font-weight: 650; font-size: 0.98rem; line-height: 1.3; }
.hslide-sub { color: var(--text-muted); font-size: .82rem; line-height: 1.3; }
.hslide-price { margin-top: auto; font-size: 0.95rem; color: var(--text-muted); }
.hslide-price b { color: var(--text); font-size: 1.1rem; }
.hslider-nav {
  position: absolute; top: 42%; transform: translateY(-50%); z-index: 2;
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); cursor: pointer;
  font-size: 1.5rem; line-height: 1; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 12px rgba(0,0,0,.12);
}
.hslider-nav:hover { border-color: var(--primary); color: var(--primary); }
.hslider-nav.prev { left: -8px; }
.hslider-nav.next { right: -8px; }
@media (max-width: 640px) { .hslider-nav { display: none; } }

/* --- Фильтр-поиск по списку (вокзалы, аэропорты) --- */
.filter-box { margin-bottom: 18px; }
.filter-input {
  width: 100%; max-width: 520px; padding: 12px 16px; font-size: 1rem;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--text);
}
.filter-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
/* --- Станции на карте маршрута + список остановок --- */
.routemap-wrap { display: block; }
.rm-stop {
  display: block; width: 13px; height: 13px; border-radius: 50%;
  background: #0aa06e; border: 2.5px solid #fff; box-shadow: 0 0 0 1.5px rgba(10,160,110,.55), 0 1px 3px rgba(0,0,0,.35);
  cursor: pointer;
}
.rm-stop:hover { transform: scale(1.25); }
.rm-stop.is-end { width: 17px; height: 17px; background: var(--text); box-shadow: 0 0 0 1.5px rgba(20,33,61,.5), 0 1px 3px rgba(0,0,0,.35); }
.rm-stop-link { color: var(--accent); text-decoration: underline; cursor: pointer; font-weight: 600; }
.route-stops tr.rm-stop-row:hover .rm-stop-link { text-decoration: none; }
.route-stops tr.is-active td { background: rgba(10,160,110,.14); }
.route-stops tr.is-active .rm-stop-link { color: var(--text); text-decoration: none; }

.price-cta { color: var(--accent); font-weight: 600; text-decoration: none; white-space: nowrap; }
.price-cta:hover { text-decoration: underline; }
.price-est { color: var(--text); font-weight: 650; white-space: nowrap; }

/* Расписание рейсов аэропорта (вкладки «Из/В»). */
.afl { margin-top: 4px; }
.afl .ap-tabs { margin-bottom: 14px; }
.afl-table td.afl-al { white-space: nowrap; }
.afl-al span { vertical-align: middle; }
.afl-logo { vertical-align: middle; border-radius: 4px; object-fit: contain; background: #fff; }
.afl-table td.price { font-weight: 750; color: var(--primary); white-space: nowrap; }
.prose .article-lead { font-size: 1.15rem; line-height: 1.6; color: var(--text); font-weight: 500; margin-bottom: 20px; }
.prose figure.blog-photo { margin: 22px 0; }
.prose figure.blog-photo img { width: 100%; height: auto; display: block; border-radius: 14px; background: var(--surface-2); aspect-ratio: 16 / 9; object-fit: cover; }
.prose figure.blog-photo .blog-photo-svg { width: 100%; height: auto; display: block; border-radius: 14px; aspect-ratio: 16 / 9; box-shadow: 0 6px 20px rgba(20,33,61,.14); }
.prose figure.blog-photo figcaption { margin-top: 8px; font-size: .88rem; color: var(--text-muted); text-align: center; }
.blog-chart { margin: 24px 0; padding: 18px; border: 1px solid var(--border); border-radius: 12px; background: #fff; }
.blog-chart figcaption { font-weight: 700; margin-bottom: 10px; font-size: 1.02rem; }
.blog-chart svg { width: 100%; height: auto; display: block; }
.blog-cta {
  display: flex; align-items: center; gap: 16px; margin: 24px 0; padding: 18px 20px;
  border: 1px solid var(--border); border-left: 4px solid var(--accent); border-radius: var(--radius-sm);
  background: var(--surface);
}
.blog-cta-body { display: flex; flex-direction: column; gap: 3px; flex: 1 1 auto; }
.blog-cta-body b { font-size: 1.05rem; }
.blog-cta-body span { color: var(--text-muted); font-size: .95rem; }
.blog-cta .btn { flex: none; }
@media (max-width: 620px) { .blog-cta { flex-direction: column; align-items: flex-start; } }
/* Контекстная форма заказа билетов внутри статьи блога */
.blog-cta-form {
  margin: 26px 0; padding: 18px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--primary-soft);
}
.blog-cta-form-head { display: flex; flex-direction: column; gap: 3px; margin-bottom: 12px; }
.blog-cta-form-head b { font-size: 1.12rem; }
.blog-cta-form-head span { color: var(--text-muted); font-size: .95rem; }
/* Внутри узкой колонки статьи форму делаем компактной и в один столбец,
   чтобы она не вылезала за ширину контента (сетка ks рассчитана на всю ширину). */
.blog-cta-form .ks { box-shadow: none; padding: 0; background: transparent; border: 0; }
.blog-cta-form .ks::before { display: none; }
.blog-cta-form .ks-fields { grid-template-columns: 1fr; gap: 10px; }
.blog-cta-form .ks-swap { display: none; }
.blog-cta-form .ks-field input,
.blog-cta-form .ks-date { width: 100%; }
.blog-cta-form .ks-actions,
.blog-cta-form .ks-submit { width: 100%; }
.blog-slide {
  flex: 0 0 300px; display: flex; flex-direction: column; gap: 8px; padding: 18px;
  border: 1px solid var(--border); border-radius: var(--radius-sm); background: #fff;
  text-decoration: none; color: inherit; scroll-snap-align: start;
}
.blog-slide:hover { border-color: var(--accent); box-shadow: none; }
.blog-slide-tag { font-size: .72rem; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: .04em; }
.blog-slide-title { font-weight: 700; line-height: 1.3; }
.blog-slide-desc { color: var(--text-muted); font-size: .9rem; }
.blog-card { display: flex; flex-direction: column; gap: 8px; }
.blog-card h3 { margin: 0; }
.blog-card p { margin: 0; }
.blog-card-more { margin-top: 4px; color: var(--accent); font-weight: 600; }
.card-date { margin: 6px 0 0; font-size: 0.8rem; color: var(--text-muted-2); }
.blog-plan > summary { cursor: pointer; font-size: 1.05rem; }
.blog-cat-nav { display: flex; flex-wrap: wrap; gap: 8px; }
.blog-cat-nav .chip.is-active { background: var(--accent); color: #fff; border-color: var(--accent); }
.blog-cat-nav .chip.is-active .muted { color: rgba(255,255,255,.8); }
.blog-topics { margin: 0; padding-left: 22px; columns: 2; column-gap: 40px; }
.blog-topics .blog-topic { margin: 0 0 8px; break-inside: avoid; }
.blog-topic-badge { margin-left: 8px; font-size: .7rem; font-weight: 700; color: #0aa06e; background: rgba(10,160,110,.1); padding: 1px 7px; border-radius: 999px; vertical-align: middle; }
.blog-topic.has-article a { font-weight: 600; }
@media (max-width: 720px) { .blog-topics { columns: 1; } }
.seo-longread { margin-top: 8px; width: 100%; }
/* Лонгрид «Подробно о маршруте» — на всю ширину рабочей области (не 760px). */
.seo-longread .seo-lr-lead.prose,
.seo-longread .seo-lr-body.prose { max-width: none; }
.seo-lr-heading { margin: 0 0 12px; font-size: 1.5rem; }
.seo-lr-lead { color: var(--text); }
.seo-lr-lead p { margin: 0 0 12px; }
.seo-lr-details { margin-top: 4px; }
/* Кнопка «Развернуть/Свернуть описание» — снизу блока */
.seo-lr-btn {
  margin-top: 14px; cursor: pointer; display: inline-flex; align-items: center;
  gap: 8px; padding: 10px 18px; font-weight: 700; font-size: 1rem;
  color: var(--accent); border: 1px solid var(--accent); border-radius: 999px;
  background: transparent; transition: background .15s, color .15s;
}
.seo-lr-btn:hover { background: var(--accent); color: #fff; }
.seo-lr-btn:hover .seo-lr-toggle::before, .seo-lr-btn:hover .seo-lr-toggle::after { background: #fff; }
.seo-lr-btn[aria-expanded="true"] .seo-lr-toggle::after { transform: translate(-50%, -50%) scaleY(0); }
/* Плавное сворачивание/разворачивание описания */
.seo-collapse { max-height: 0; overflow: hidden; transition: max-height .45s cubic-bezier(.4, 0, .2, 1); }
.seo-lr-summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center;
  gap: 8px; padding: 10px 16px; font-weight: 700; font-size: 1rem;
  color: var(--accent); border: 1px solid var(--accent); border-radius: 999px;
  background: transparent; transition: background .15s, color .15s;
}
.seo-lr-summary:hover { background: var(--accent); color: #fff; }
.seo-lr-summary:hover .seo-lr-toggle::before, .seo-lr-summary:hover .seo-lr-toggle::after { background: #fff; }
.seo-lr-summary::-webkit-details-marker { display: none; }
.hslider-track.is-dragging { cursor: grabbing; scroll-behavior: auto; }
.hslider-track.is-dragging a { pointer-events: none; }
.blog-more-wrap { display: flex; justify-content: center; margin-top: 26px; }
/* Пагинация ленты блога */
.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; margin-top: 36px; }
.pager-nums { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.pager-num, .pager-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 42px; height: 42px; padding: 0 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--bg, #fff); color: var(--text);
  font-weight: 600; font-size: 15px; text-decoration: none; line-height: 1;
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}
.pager-num:hover, .pager-btn:hover {
  border-color: var(--primary); color: var(--primary);
}
.pager-num.is-active {
  background: var(--primary);
  border-color: var(--primary); color: #fff; cursor: default;
}
.pager-btn { font-weight: 700; padding: 0 18px; }
.pager-gap { padding: 0 4px; color: var(--text-muted); user-select: none; align-self: flex-end; }
.pager-info { text-align: center; color: var(--text-muted); margin-top: 14px; font-size: 14px; }
@media (max-width: 560px) {
  .pager { gap: 8px; }
  .pager-btn { width: 100%; order: 2; }
  .pager-nums { order: 1; width: 100%; justify-content: center; }
  .pager-num { min-width: 40px; height: 40px; }
}
/* Кнопка «Наверх» — вверху слева, белый фон с рамкой, появляется при прокрутке */
.to-top {
  position: fixed; bottom: 22px; left: 16px; z-index: 70;
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0;
  color: var(--text); background: #fff; border: 1.5px solid var(--border);
  border-radius: 50%; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.10);
  opacity: 0; transform: translateY(8px); transition: opacity .2s, transform .2s, border-color .15s, color .15s;
}
.to-top svg { display: block; }
.to-top:not([hidden]) { opacity: 1; transform: translateY(0); }
.to-top:hover { border-color: var(--primary); color: var(--primary); }
@media (prefers-color-scheme: dark) { .to-top { background: #fff; color: var(--text); } }
.seo-lr-toggle { flex: none; width: 16px; height: 16px; position: relative; }
.seo-lr-toggle::before, .seo-lr-toggle::after {
  content: ""; position: absolute; background: var(--accent); border-radius: 2px;
  top: 50%; left: 50%; transform: translate(-50%, -50%);
}
.seo-lr-toggle::before { width: 11px; height: 2px; }
.seo-lr-toggle::after { width: 2px; height: 11px; transition: transform .2s; }
.seo-lr-details[open] .seo-lr-toggle::after { transform: translate(-50%, -50%) scaleY(0); }
.seo-lr-body { padding: 12px 0 0; }
.seo-lr-body h3 { margin: 20px 0 8px; font-size: 1.15rem; }
.seo-lr-body p { margin: 0 0 12px; color: var(--text); }
.hotel-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.hotel-card {
  display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: var(--radius-sm);
  overflow: hidden; background: #fff; text-decoration: none; color: inherit; transition: border-color .15s;
}
.hotel-card:hover { border-color: var(--primary); box-shadow: none; }
.hotel-card-photo {
  position: relative; height: 150px; background: var(--primary-soft);
  background-size: cover; background-position: center;
}
.hotel-card-stars { position: absolute; left: 10px; top: 10px; color: #f5a623; font-size: .85rem;
  background: rgba(0,0,0,.55); padding: 2px 8px; border-radius: 999px; letter-spacing: 1px; }
.hotel-card-rating { position: absolute; right: 10px; top: 10px; font-weight: 700; color: #fff;
  background: #0aa06e; padding: 3px 9px; border-radius: 8px; font-size: .85rem; }
.hotel-card-photos { position: absolute; right: 10px; bottom: 10px; color: #fff; font-size: .78rem;
  background: rgba(0,0,0,.55); padding: 2px 8px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 4px; }
.hotel-card-photos .ui-ic { vertical-align: 0; }
.hotel-card-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 5px; flex: 1 1 auto; }
.hotel-card-name { font-weight: 700; line-height: 1.3; }
.hotel-card-type { align-self: flex-start; font-size: .72rem; font-weight: 600; color: var(--primary);
  background: var(--primary-soft); padding: 2px 8px; border-radius: 999px; text-transform: uppercase; letter-spacing: .03em; }
.hotel-card-loc, .hotel-card-addr { color: var(--text-muted); font-size: .85rem; line-height: 1.3; }
.hotel-card-loc { display: flex; align-items: center; gap: 4px; }
.hotel-card-loc .ui-ic { vertical-align: 0; }
.hotel-card-fac { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 2px; }
.hotel-fac { font-size: .72rem; color: var(--text); background: var(--surface); border: 1px solid var(--border);
  padding: 2px 7px; border-radius: 6px; white-space: nowrap; }
.hotel-card-price { margin-top: auto; padding-top: 4px; color: var(--text-muted); }
.hotel-card-price b { color: var(--text); font-size: 1.05rem; }
.hotel-item {
  display: flex; flex-direction: column; gap: 6px; padding: 14px 16px;
  border: 1px solid var(--border); border-radius: 12px; background: #fff;
  text-decoration: none; color: inherit;
}
.hotel-item:hover { border-color: var(--accent); box-shadow: 0 4px 14px rgba(0,0,0,.06); }
.hotel-item-stars { color: #f5a623; font-size: .9rem; letter-spacing: 1px; min-height: 1em; }
.hotel-item-name { font-weight: 600; line-height: 1.3; }
.hotel-item-price { margin-top: auto; color: var(--text-muted); font-size: .95rem; }
.hotel-item-price b { color: var(--text); }
.rm-stops { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--border); }
.rm-stops-title { font-weight: 700; font-size: 1.05rem; margin: 0 0 14px; }
.route-stops td { padding: 9px 12px; }
.route-stops tr.rm-stop-row { cursor: pointer; }
.route-stops tr.rm-stop-row:hover td { background: rgba(10,160,110,.08); }

/* --- Континенты в разделе «весь мир» --- */
.wc-continent { margin-bottom: 28px; }
.wc-cont-title {
  font-size: 1.25rem; font-weight: 750; margin: 0 0 14px;
  padding-bottom: 8px; border-bottom: 2px solid var(--accent-soft);
}

/* --- Каталог аэропортов --- */
.ap-controls { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-bottom: 6px; }
.ap-controls .filter-input { flex: 1 1 320px; max-width: none; }
.ap-visa-toggle { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; cursor: pointer; user-select: none; white-space: nowrap; }
.ap-visa-toggle input { width: 18px; height: 18px; accent-color: var(--primary); }
.ap-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }
/* Вкладки каталога аэропортов (Россия / СНГ / Все страны) */
.ap-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 20px; border-bottom: 1px solid var(--border); }
.ap-tab {
  appearance: none; border: none; background: transparent; cursor: pointer;
  padding: 11px 16px; font: inherit; font-weight: 700; font-size: .98rem; color: var(--text-muted);
  border-bottom: 2.5px solid transparent; margin-bottom: -1px; transition: color .15s, border-color .15s;
}
.ap-tab:hover { color: var(--text); }
.ap-tab.is-active { color: var(--primary); border-bottom-color: var(--primary); }
.ap-tab-count { font-size: .78rem; font-weight: 600; color: var(--text-muted); background: var(--surface-2);
  padding: 1px 8px; border-radius: 999px; margin-left: 4px; }
/* Алфавитный указатель */
.ap-alpha-nav { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 18px; }
.ap-alpha-link { display: inline-grid; place-items: center; min-width: 30px; height: 30px; padding: 0 6px;
  border: 1px solid var(--border); border-radius: 8px; font-weight: 700; font-size: .88rem; color: var(--text); }
.ap-alpha-link:hover { border-color: var(--primary); color: var(--primary); text-decoration: none; }
.ap-letter-group { margin-bottom: 22px; scroll-margin-top: 90px; }
.ap-letter { font-size: 1.3rem; font-weight: 800; color: var(--primary); margin: 0 0 12px;
  padding-bottom: 6px; border-bottom: 2px solid var(--primary-soft); scroll-margin-top: 90px; }
.ap-item {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--text); text-decoration: none;
  transition: border-color .15s, transform .15s;
}
.ap-item:hover { border-color: var(--primary); transform: translateY(-1px); }
.ap-iata {
  flex: 0 0 auto; font-weight: 800; font-size: 0.85rem; letter-spacing: .04em;
  background: var(--primary-soft); color: var(--primary-dark);
  padding: 5px 8px; border-radius: 8px; min-width: 46px; text-align: center;
}
.ap-name { flex: 1 1 auto; font-weight: 650; line-height: 1.25; }
.ap-country { display: block; font-weight: 500; color: var(--text-muted); font-size: 0.82rem; }
.ap-airports { display: block; font-weight: 500; color: var(--text); font-size: 0.8rem; margin-top: 2px; }
/* Карточка информации об аэропорте (страница аэропорта) */
.ap-info-card { border: 1px solid var(--border); border-radius: 14px; background: var(--surface); padding: 16px 18px; }
.ap-info-row { display: flex; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--border); font-size: 0.95rem; }
.ap-info-row:last-of-type { border-bottom: none; }
.ap-info-lbl { flex: 0 0 160px; color: var(--text-muted); font-weight: 600; }
.ap-info-val { flex: 1 1 auto; font-weight: 600; }
.ap-info-note { margin: 10px 0 0; color: var(--text-muted); line-height: 1.5; }
/* Текстовая справка аэропорта (avia.tutu.ru): Об аэропорте / Контакты / Проезд */
.ap-desc { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.ap-desc-block { border: 1px solid var(--border); border-radius: 14px; background: var(--surface); padding: 16px 18px; }
.ap-desc-h { margin: 0 0 8px; font-size: 1.05rem; color: var(--primary); }
.ap-desc-block p { margin: 0 0 8px; line-height: 1.5; color: var(--text); overflow-wrap: anywhere; word-break: break-word; }
.ap-desc-block p:last-child { margin-bottom: 0; }
.ap-desc-block, .ap-desc-block a { overflow-wrap: anywhere; word-break: break-word; }
.ap-visa {
  flex: 0 0 auto; font-size: 0.74rem; font-weight: 700; padding: 4px 9px;
  border-radius: var(--radius-sm); white-space: nowrap;
}
.ap-visa-ok { background: #e7f6ec; color: #16794a; }
.ap-visa-warn { background: #fff4e5; color: #a35b00; }
.ap-visa-danger { background: #fdeaea; color: #c23636; }

/* --- Вокзалы города: карточки организаций (Яндекс.Карты) --- */
.vk-orgs { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 18px; }
.vk-org { border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); padding: 16px; }
.vk-org-name { font-weight: 750; font-size: 1.12rem; }
.vk-org-cat { font-size: 0.85rem; margin-top: 2px; }
.vk-org-info { margin-top: 10px; display: flex; flex-direction: column; gap: 5px; font-size: 0.94rem; }
.vk-org-info a { color: var(--primary); }
.vk-org-reviews { margin-top: 14px; }
.vk-org-reviews iframe { width: 100%; height: 340px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: #fff; }
.vk-org-reviews-link { display: inline-block; margin-top: 8px; font-size: 0.9rem; }

/* --- Карточки городов в разделе «Отели» --- */
.hotel-city-card { display: flex; flex-direction: column; gap: 4px; }
.hcc-ic { font-size: 1.6rem; }
.hcc-name { font-weight: 700; font-size: 1.05rem; color: var(--text); }

/* Маршрут с пересадкой в таблице поездов */
.tr-transfer-label { font-weight: 700; color: var(--text); }
.tr-badge.tr-transfer { background: #fff4e5; color: #b45309; border: 1px solid #f5c98b; }

/* =========================================================================
   Доступность и взаимодействие — единый слой по чек-листу UI/UX Pro Max.
   Применяется ко всему сайту: focus-visible для клавиатуры, отключение
   анимаций по prefers-reduced-motion, курсоры, тач-таргеты, плавные ховеры.
   Источник методики: ui-ux-pro-max-skill (MIT). См. .claude/skills/.
   ========================================================================= */

/* 1) Видимый фокус для клавиатурной навигации (мышью — не мешает). */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible,
[role="button"]:focus-visible,
[role="tab"]:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
  border-radius: 6px;
}
/* Поля ввода: мягкое кольцо вместо жёсткого контура. */
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline-color: transparent;
  box-shadow: 0 0 0 3px var(--primary-soft), inset 0 0 0 1px var(--primary);
}

/* 2) Курсор-указатель на всех кликабельных элементах. */
button,
[role="button"],
[role="tab"],
summary,
label[for],
.chip,
.btn,
.tab,
select { cursor: pointer; }
button[disabled],
[aria-disabled="true"] { cursor: not-allowed; }

/* 3) Плавные ховер-переходы (150–300мс) для кликабельного, где не заданы. */
a, button, .chip, .btn, .card, .tab, [role="tab"] {
  transition: color .18s ease, background-color .18s ease,
              border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

/* 4) Минимальный тач-таргет 44×44px на сенсорных экранах (навигация/кнопки). */
@media (hover: none) and (pointer: coarse) {
  .btn, button, .nav a, .chip, [role="tab"], .vk-board-tab, .mtab, .tab {
    min-height: 44px;
  }
}

/* 5) Respect prefers-reduced-motion — глушим анимации и скролл-поведение. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .rm-veh, .veh-plane, .veh-train { display: none !important; }
}

/* 6) Плавная прокрутка к якорям (только если пользователь не против движения). */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
