/* Компоненты вне первого экрана. Токены и база в critical.css */

/* Кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--tap); padding: 10px 20px; border: 2px solid transparent; border-radius: var(--radius-sm);
  font-weight: 600; line-height: 1.2; text-align: center; text-decoration: none; cursor: pointer;
  background: var(--blue-700); color: #fff;
}
.btn:hover { background: var(--blue-900); color: #fff; }
.btn--primary { background: var(--cta); color: var(--cta-text); font-weight: 700; }
.btn--primary:hover { background: var(--cta-hover); color: var(--cta-text); }
.btn--secondary { background: var(--surface); color: var(--blue-700); border-color: currentColor; }
.btn--secondary:hover { background: var(--blue-50); color: var(--blue-900); }
.btn--ghost { background: transparent; color: var(--blue-700); }
.btn--ghost:hover { background: var(--blue-50); color: var(--blue-900); }
.btn--sm { min-height: 36px; padding: 6px 14px; font-size: .875rem; }
.btn--lg { min-height: 56px; padding-inline: 28px; font-size: 1.0625rem; }
.btn--block { display: flex; width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }

/* Карточки */
.card h3 { margin-bottom: 6px; }
.card--link { display: block; color: inherit; text-decoration: none; transition: box-shadow .15s; }
.card--link:hover { color: inherit; box-shadow: var(--shadow-lg); }
.card--link:focus-visible { outline-offset: 3px; }
/* Билет: маршрут, дата, цена и кнопка */
.ticket { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; }
.ticket__route { font-weight: 700; }
.ticket__meta { grid-column: 1; font-size: .875rem; color: var(--muted); }
.ticket__price { grid-row: 1 / span 2; grid-column: 2; text-align: right; }
.ticket__logo { width: 72px; height: 32px; object-fit: contain; }
.ticket .btn { grid-column: 1 / -1; margin-top: 8px; }

/* Цены и бейджи */
.price { font-weight: 700; font-size: 1.25rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.price small { font-size: .75em; font-weight: 500; color: var(--muted); }
.badge {
  display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px;
  font-size: .8125rem; font-weight: 600; line-height: 1.5; white-space: nowrap;
  background: var(--blue-50); color: var(--blue-700);
}
.badge--price { background: var(--surface); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); font-variant-numeric: tabular-nums; }
.badge--cheap { background: var(--green-50); color: var(--green-700); }
.badge--hot { background: var(--magenta-50); color: var(--magenta-700); }
.badge--muted { background: var(--bg); color: var(--muted); }
a.badge { text-decoration: none; }
a.badge--price:hover { box-shadow: inset 0 0 0 1px var(--blue-700); color: var(--blue-700); }

/* Чипы-ссылки */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: var(--tap); padding: 0 14px; border-radius: 999px;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); color: var(--text); text-decoration: none; font-size: .9375rem;
}
a.chip:hover { box-shadow: inset 0 0 0 1px var(--blue-700); color: var(--blue-700); }
.chip b { font-weight: 600; color: var(--muted); }

/* Таблица, которая на телефоне становится карточками: у td есть data-label */
.rtable { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; font-variant-numeric: tabular-nums; }
.rtable th, .rtable td { padding: 12px 16px; text-align: left; vertical-align: middle; }
.rtable thead th { font-size: .8125rem; font-weight: 600; color: var(--muted); background: var(--bg); }
.rtable tbody tr + tr { border-top: 1px solid var(--line); }
.rtable .num { text-align: right; }
.rtable a { font-weight: 600; }
@media (max-width: 639px) {
  .rtable, .rtable tbody, .rtable tr, .rtable td, .rtable th { display: block; }
  .rtable { background: none; box-shadow: none; overflow: visible; }
  .rtable thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .rtable tbody { display: grid; gap: 10px; }
  .rtable tbody tr { padding: 6px 16px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
  .rtable tbody tr + tr { border-top: 0; }
  .rtable td, .rtable tbody th { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 40px; padding: 6px 0; text-align: right; }
  .rtable td + td { border-top: 1px solid var(--line); }
  .rtable td::before, .rtable tbody th::before { content: attr(data-label); font-size: .875rem; font-weight: 400; color: var(--muted); text-align: left; }
  .rtable td:not([data-label])::before, .rtable td[data-label=""]::before { display: none; }
  .rtable td:first-child { font-weight: 700; }
}

/* Вопрос-ответ на details/summary */
.faq { display: grid; gap: 8px; }
.faq details { border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 12px 16px;
  font-weight: 600; cursor: pointer; list-style: none; border-radius: var(--radius);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 10px; height: 10px; margin-right: 4px; border: solid var(--muted); border-width: 0 2px 2px 0; transform: rotate(45deg) translateY(-3px); }
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq__body { padding: 0 16px 16px; }
.faq__body > :last-child { margin-bottom: 0; }

/* Пустое состояние */
.empty { display: grid; justify-items: center; gap: 8px; padding: 32px 16px; text-align: center; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.empty .icon { width: 48px; height: 48px; color: var(--blue-700); opacity: .7; }
.empty__title { margin: 0; font-size: 1.125rem; font-weight: 700; }
.empty__text { margin: 0; max-width: 46ch; color: var(--muted); }
.empty .btn { margin-top: 8px; }

/* Заметка */
.notice { display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--radius); background: var(--blue-50); }
.notice .icon { color: var(--blue-700); }
.notice > :last-child { margin-bottom: 0; }

/* Списки ссылок справочника в колонки */
.link-columns { columns: 2 150px; column-gap: 24px; margin: 0; padding: 0; list-style: none; }
.link-columns li { break-inside: avoid; }
.link-columns a { display: inline-flex; align-items: center; min-height: 36px; }
@media (min-width: 768px) { .link-columns { columns: 4 180px; } }

/* Текст статьи */
.prose > :first-child { margin-top: 0; }
.prose { max-width: 72ch; font-size: 1.0625rem; line-height: 1.65; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.25em; margin: 0 0 1em; }
.prose li + li { margin-top: .35em; }
.prose img { display: block; margin: 1.25em 0; border-radius: var(--radius); }
.prose table { display: block; overflow-x: auto; width: 100%; border-collapse: collapse; margin: 1em 0; font-size: .9375rem; }
.prose th, .prose td { padding: 8px 10px; border: 1px solid var(--line); text-align: left; }
.prose blockquote { margin: 1em 0; padding: 4px 16px; border-left: 4px solid var(--blue-700); color: var(--muted); }

/* Вкладки и лента месяцев */
.tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.tab {
  flex: none; display: grid; justify-items: center; min-width: 76px; min-height: var(--tap); padding: 6px 12px; border: 0; border-radius: var(--radius-sm);
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); color: var(--text); font-size: .875rem; text-decoration: none;
}
.tab small { color: var(--muted); font-variant-numeric: tabular-nums; }
.tab[aria-current=true], .tab[aria-selected=true], .tab.is-active { background: var(--blue-700); color: #fff; box-shadow: none; }
.tab[aria-current=true] small, .tab[aria-selected=true] small, .tab.is-active small { color: rgb(255 255 255 / .85); }

/* Заглушка загрузки */
.skeleton { border-radius: var(--radius-sm); background: linear-gradient(90deg, #e9edf3 25%, #f4f6fa 50%, #e9edf3 75%) 0 0/200% 100%; animation: shimmer 1.4s infinite linear; }
@keyframes shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .skeleton { animation: none; } .sticky-cta { transition: none; } }

/* Выпадающие части формы поиска: подсказки городов и пассажиры */
.ac { position: relative; }
.ac-list {
  position: absolute; z-index: 30; top: calc(100% + 4px); left: 0; right: 0; max-height: min(60vh, 360px); margin: 0; padding: 4px 0; overflow-y: auto;
  list-style: none; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-lg); color: var(--text);
}
.ac-list li { position: relative; min-height: var(--tap); padding: 10px 64px 10px 16px; cursor: pointer; line-height: 1.3; color: var(--muted); }
.ac-list li + li { border-top: 1px solid var(--line); }
.ac-list li b { font-weight: 600; color: var(--text); }
.ac-list li span { position: absolute; top: 50%; right: 16px; transform: translateY(-50%); font-size: .8125rem; font-weight: 600; }
.ac-list li:hover, .ac-list [aria-selected=true] { background: var(--blue-50); }
.sf__pax-body {
  position: absolute; z-index: 30; top: 60px; right: 0; width: min(340px, calc(100vw - 32px)); padding: 8px 16px 16px;
  border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-lg); color: var(--text);
}
.sf__count { display: flex; align-items: center; gap: 4px; min-height: 56px; }
.sf__count + .sf__count { border-top: 1px solid var(--line); }
.sf__count label { flex: 1; font-size: .9375rem; line-height: 1.25; }
.sf__count input { width: 36px; padding: 0; border: 0; background: none; text-align: center; font-weight: 700; font-size: 1.0625rem; -moz-appearance: textfield; }
.sf__count input::-webkit-inner-spin-button, .sf__count input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.sf__step {
  display: inline-flex; align-items: center; justify-content: center; width: var(--tap); height: var(--tap); padding: 0; border: 0; border-radius: 50%;
  background: var(--blue-50); color: var(--blue-700); font-size: 1.375rem; font-weight: 600;
}
html:not(.js) .sf__step { display: none; }
.sf__check { display: flex; align-items: center; gap: 10px; min-height: var(--tap); margin: 4px 0 12px; padding-top: 8px; border-top: 1px solid var(--line); }
.sf__check input { width: 22px; height: 22px; accent-color: var(--blue-700); }

/* Липкая кнопка поиска на телефоне */
.sticky-cta {
  position: fixed; z-index: 25; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 12px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--surface); box-shadow: 0 -4px 20px rgb(16 48 107 / .15);
  transform: translateY(110%); transition: transform .2s ease-out; visibility: hidden;
}
.sticky-cta.is-visible { transform: none; visibility: visible; }
.sticky-cta__info { flex: 1; min-width: 0; font-size: .875rem; line-height: 1.3; }
.sticky-cta__info b { display: block; font-size: 1rem; }
.sticky-cta .btn { flex: 1 0 auto; }
.sticky-cta__info + .btn { flex: none; }
@media (max-width: 1023px) { .has-sticky-cta { padding-bottom: 76px; } }
@media (min-width: 1024px) { .sticky-cta { display: none; } }

/* Подвал */
.site-footer { margin-top: var(--section); padding: 32px 0 calc(24px + env(safe-area-inset-bottom)); background: var(--blue-900); color: rgb(255 255 255 / .82); font-size: .9375rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer__title { margin: 0 0 12px; font-size: 1rem; font-weight: 700; color: #fff; }
.site-footer__links { display: grid; gap: 0 24px; }
.site-footer__links details { border-bottom: 1px solid rgb(255 255 255 / .14); }
.site-footer__links summary {
  display: flex; align-items: center; justify-content: space-between; min-height: 52px; font-weight: 600; color: #fff; cursor: pointer; list-style: none;
}
.site-footer__links summary::-webkit-details-marker { display: none; }
.site-footer__links summary::after { content: ""; width: 8px; height: 8px; margin-right: 6px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg) translateY(-2px); }
.site-footer__links details[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.site-footer__links ul { margin: 0 0 12px; padding: 0; list-style: none; }
.site-footer__links li a { display: inline-flex; align-items: center; min-height: 36px; }
.site-footer__all a { font-weight: 600; color: #ffd34d; }
.site-footer__main { display: grid; gap: 24px; margin-top: 28px; }
.site-footer__service ul { margin: 0; padding: 0; list-style: none; columns: 2 150px; }
.site-footer__service li a { display: inline-flex; align-items: center; min-height: 36px; }
.site-footer__contact { display: grid; gap: 12px; align-content: start; }
.site-footer__phone { display: inline-flex; align-items: center; gap: 8px; min-height: var(--tap); font-size: 1.25rem; font-weight: 700; }
.site-footer__contact .btn--secondary { justify-self: start; background: transparent; color: #fff; }
.site-footer__contact .btn--secondary:hover { background: rgb(255 255 255 / .1); color: #fff; }
.site-footer__legal { margin-top: 24px; padding-top: 20px; border-top: 1px solid rgb(255 255 255 / .14); font-size: .8125rem; line-height: 1.6; color: rgb(255 255 255 / .72); }
.site-footer__legal p { margin: 0 0 6px; }
.site-footer :focus-visible { outline-color: #ffd34d; }
.promo-form { display: flex; flex-wrap: wrap; gap: 8px; max-width: 360px; }
.promo-form input[type=text] { flex: 1; min-width: 0; min-height: var(--tap); padding: 0 12px; border: 1px solid rgb(255 255 255 / .3); border-radius: var(--radius-sm); background: rgb(255 255 255 / .08); color: #fff; }
.promo-form input::placeholder { color: rgb(255 255 255 / .7); }
.promo-form input[type=submit] { min-height: var(--tap); padding: 0 16px; border: 0; border-radius: var(--radius-sm); background: #fff; color: var(--blue-900); font-weight: 600; cursor: pointer; }
.promo-form .er-s:not(:empty) { flex-basis: 100%; color: #ffc2d4; font-size: .875rem; }
@media (min-width: 768px) {
  .site-footer__links { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
  .site-footer__links details { border: 0; }
  .site-footer__links summary { min-height: 0; margin-bottom: 8px; pointer-events: none; }
  .site-footer__links details::details-content { content-visibility: visible; display: block; }
  .site-footer__links summary::after { display: none; }
  .site-footer__main { grid-template-columns: 2fr 1fr; }
}

/* Страницы */
.note { margin: 12px 0 0; font-size: .875rem; color: var(--muted); }
.muted { color: var(--muted); }
.clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.split { display: grid; gap: 20px; align-items: start; }
@media (min-width: 900px) { .split { grid-template-columns: minmax(0, 1fr) 300px; } }
.cta-card { display: grid; gap: 8px; justify-items: start; margin-top: var(--section); }
.cta-card .card__title, .cta-card .card__meta { margin: 0; }
.notice--warn { background: #fff6e5; }
.notice--warn .icon { color: #a35a00; }
.map-frame, .board-frame { display: block; width: 100%; border: 0; border-radius: var(--radius); background: var(--surface); }
.board-frame { height: 660px; max-width: 1000px; margin-top: 16px; }
.widget-frame { min-height: 400px; }

.dest-card { display: flex; flex-direction: column; }
.dest-card .card__title a { color: inherit; text-decoration: none; }
.dest-card .card__title a:hover { color: var(--blue-700); }
.dest-card__lines { margin: 8px 0 0; padding: 0; list-style: none; }
.dest-card__lines .card__row a:first-child { color: var(--text); }

.offer-card { display: flex; flex-direction: column; gap: 10px; }
.offer-card > p { margin: 0; }
.offer-card__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.offer-card__logo { width: 91px; height: 40px; object-fit: contain; }
.offer-card__price { display: grid; justify-items: end; }
.offer-card__date { font-size: .875rem; color: var(--muted); }
.offer-card__desc { flex: 1; font-size: .9375rem; }

.features { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); margin: 16px 0 20px; padding: 0; list-style: none; }
.feature { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); font-weight: 500; line-height: 1.35; }
.feature .icon { padding: 8px; box-sizing: content-box; border-radius: 50%; background: var(--blue-50); color: var(--blue-700); }

.article-card .card__media { aspect-ratio: 16 / 7; }
.link-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.link-list a { display: flex; align-items: center; min-height: var(--tap); padding: 10px 16px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); text-decoration: none; font-weight: 500; }
.link-list a:hover { box-shadow: var(--shadow-lg); }

/* Формы */
.form-stack { display: grid; gap: 14px; }
.form-card { max-width: 560px; }
.field { display: grid; gap: 6px; }
.field__label { font-size: .875rem; font-weight: 600; }
.field input, .field textarea, .filter-form input[type=text] {
  width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); font-size: 1rem;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue-700); box-shadow: 0 0 0 3px rgb(26 81 172 / .15); }
.field [aria-invalid=true] { border-color: #c62828; }
.field:has([aria-invalid=true]) .field__label, .field__error { color: #c62828; }
.field__error { font-size: .875rem; font-weight: 600; }
.field__hint { margin: 0; font-size: .8125rem; color: var(--muted); }
.captcha { display: flex; align-items: center; gap: 16px; }
.captcha img { border-radius: 6px; }
.filter-form { display: grid; gap: 12px; margin-top: 16px; }
.filter-form__actions { display: flex; gap: 8px; align-items: end; }
@media (min-width: 768px) { .filter-form { grid-template-columns: 1fr 1fr auto; align-items: end; } }

/* О нас, контакты, FAQ, вакансии */
.about-blocks { display: grid; gap: 16px; margin-top: var(--section); }
.about-block { display: grid; gap: 16px; align-items: center; }
.about-block img { justify-self: center; }
@media (min-width: 768px) { .about-block { grid-template-columns: 320px 1fr; } .about-block:nth-child(even) img { order: 2; } }
.contact-grid { display: grid; gap: 16px; align-items: start; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.contact-list { padding: 0 !important; list-style: none; }
.contact-list li { display: flex; gap: 10px; align-items: flex-start; }
.contact-list .icon { margin-top: 3px; color: var(--blue-700); }
.faq-columns { display: grid; gap: 8px; }
@media (min-width: 900px) { .faq-columns { grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; } }

/* Справка визы */
.visa-answer { margin: 16px 0; }
.visa-answer__lead { font-size: 1.125rem; line-height: 1.45; }
.facts-table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.facts-table th, .facts-table td { padding: 8px 0; text-align: left; vertical-align: top; border-top: 1px solid var(--line); }
.facts-table th { width: 42%; padding-right: 12px; font-weight: 400; color: var(--muted); }
@media (max-width: 639px) { .facts-table th, .facts-table td { display: block; width: auto; } .facts-table td { border-top: 0; padding-top: 0; } }

/* Фото и цены из других городов (разметка бывает из кеша PHP, классы старые) */
.gallery { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); margin: 0; padding: 0; list-style: none; }
.gallery li { aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius-sm); background: var(--blue-50); }
.gallery .gallery__big { grid-column: span 2; }
.gallery a { display: block; height: 100%; }
.gallery figure { position: relative; height: 100%; margin: 0; }
.gallery img { display: block; width: 100%; height: 100%; object-fit: cover; }
.gallery .photo-credit { position: absolute; inset: auto 0 0; padding: 2px 6px; background: rgb(0 0 0 / .45); color: #fff; }
.gallery .photo-credit a { color: inherit; }
.cheap-tickets-content { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.cheap-ticket { padding: 6px 16px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.cheap-ticket-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: var(--tap); }
.cheap-ticket-line + .cheap-ticket-line { border-top: 1px solid var(--line); }
.cheap-ticket-line-right { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.graph { display: block; max-width: 100%; height: auto; border-radius: var(--radius); background: var(--surface); }
.chip.is-active { background: var(--blue-700); color: #fff; box-shadow: none; }

/* Таблица агентств /oplata на kz */
.oplata_site { margin-top: var(--section); overflow-x: auto; }
.table_oplata { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); font-size: .9375rem; }
.table_oplata th, .table_oplata td { padding: 10px 14px; text-align: left; vertical-align: top; border-top: 1px solid var(--line); }
.table_oplata th { background: var(--bg); color: var(--muted); font-size: .8125rem; }
.table_oplata p { margin: 4px 0 0; color: var(--muted); }

/* Календарь цен: у дня цена всех рейсов и прямых, показ выбирает data-mode */
.mm { margin-top: 12px; }
.mm__filter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 10px 0 12px; }
.mm__filter .chip { min-height: 36px; font-size: .875rem; cursor: pointer; border: 0; }
.mm__filter .chip[aria-pressed=true] { background: var(--blue-700); color: #fff; box-shadow: none; }
.mm__filter .note { margin: 0 0 0 auto; }
html:not(.js) .mm__filter .chip { display: none; }
.mm turbo-frame { display: block; transition: opacity .2s; }
.mm turbo-frame[aria-busy=true] { opacity: .5; }
.mm__grid { width: 100%; border-collapse: separate; border-spacing: 3px; table-layout: fixed; }
.mm__grid caption { padding: 0 3px 6px; text-align: left; font-weight: 600; }
.mm__grid th { padding: 4px 0; font-size: .75rem; font-weight: 600; color: var(--muted); }
.mm__grid th.is-weekend { color: var(--magenta-700); }
.mm__grid td { height: 52px; padding: 0; vertical-align: top; border-radius: 8px; font-size: .75rem; color: var(--muted); }
.mm__grid td.is-past { padding: 4px; background: var(--bg); }
.mm__grid a { display: flex; flex-direction: column; justify-content: space-between; height: 100%; min-height: 52px; padding: 4px 4px 5px; border-radius: 8px;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); line-height: 1; text-decoration: none; }
.mm__grid a:hover { box-shadow: inset 0 0 0 2px var(--blue-700); }
.mm__p { font-weight: 700; line-height: 1.1; text-align: right; color: var(--blue-700); font-variant-numeric: tabular-nums; white-space: nowrap; }
.mm[data-mode=all] .mm__p--direct, .mm[data-mode=direct] .mm__p:not(.mm__p--direct) { display: none; }
.mm[data-mode=all] .is-min a, .mm[data-mode=direct] .is-min-direct a { background: var(--green-50); box-shadow: inset 0 0 0 2px var(--green-700); }
.mm[data-mode=all] .is-min .mm__p, .mm[data-mode=direct] .is-min-direct .mm__p { color: var(--green-700); }
@media (min-width: 640px) { .mm__grid td, .mm__grid a { height: 60px; min-height: 60px; } .mm__p { font-size: .875rem; } }

/* График цен по месяцам */
.chart__box { padding: 12px 12px 6px; }
.chart__svg { display: block; width: 100%; height: 120px; }
.chart__bar { fill: #b9c8e6; }
.chart__bar--min { fill: var(--green-700); }
.chart__labels { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); }
.chart__lab { display: grid; justify-items: center; min-height: var(--tap); padding: 4px 0; border-radius: 6px; color: var(--muted); text-decoration: none; font-size: .6875rem; line-height: 1.2; }
.chart__lab b { color: var(--text); font-weight: 600; white-space: nowrap; }
.chart__lab--min b, .chart__lab--min span { color: var(--green-700); }
.chart__lab:hover { background: var(--blue-50); }
@media (max-width: 639px) { .chart__lab b { display: none; } .chart__lab--min b { display: block; } }
@media (min-width: 640px) { .chart__lab { font-size: .8125rem; } .chart__svg { height: 160px; } }

/* Направление */
.ticket--best { box-shadow: inset 0 0 0 2px var(--green-700), var(--shadow); }
.flights { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); margin: 0; padding: 0; list-style: none; }
.flight { display: grid; gap: 6px; }
.flight__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.flight__times { display: flex; align-items: center; gap: 8px; font-size: 1.25rem; font-weight: 700; font-variant-numeric: tabular-nums; }
/* Стрелка маской, а не инлайновым SVG: на направлении бывает сотня рейсов */
.flight__times i { flex: none; width: 16px; height: 16px; background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14m-6-6 6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat; }
.flight__times small { margin-left: auto; font-size: .875rem; font-weight: 500; color: var(--muted); }
.flight__days { font-size: .8125rem; color: var(--muted); }
.more { margin-top: 12px; }
.more > summary { list-style: none; }
.more > summary::-webkit-details-marker { display: none; }
.more[open] > summary { margin-bottom: 12px; }
.airline-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); margin: 0; padding: 0; list-style: none; }
.airline-tile { display: grid; gap: 8px; justify-items: start; padding: 12px; }
.airline-tile a { display: grid; gap: 6px; color: var(--text); text-decoration: none; font-size: .875rem; font-weight: 600; }
.airline-tile img { width: 120px; height: 30px; object-fit: contain; object-position: left center; }
.split-even { display: grid; gap: 16px; }
@media (min-width: 768px) { .split-even { grid-template-columns: 1fr 1fr; } }
.dest-mini { display: grid; gap: 8px; justify-items: start; }
.cta-row { text-align: center; }
.section-gap { margin-top: 16px; }
.widget-box { overflow-x: auto; }
.rtable small { display: block; font-size: .75rem; color: var(--muted); font-weight: 400; }
@media (max-width: 639px) { .rtable small { display: inline; margin-left: 6px; } }
@media (max-width: 639px) {
  .price-tickets-table tbody tr { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; padding: 10px 14px; }
  .price-tickets-table tbody th { grid-column: 1 / -1; justify-content: flex-start; min-height: 0; padding: 0 0 6px; }
  .price-tickets-table tbody th::before { display: none; }
  .price-tickets-table td, .price-tickets-table td + td { display: grid; justify-items: start; align-content: start; gap: 2px; min-height: 0; padding: 0; border: 0; text-align: left; font-weight: 400; }
  .price-tickets-table td::before { font-size: .75rem; }
  .price-tickets-table td small { margin: 0; }
}
.price-facts .strong-title { display: block; margin-bottom: 8px; font-size: 1.25rem; }

/* Витрина /design */
.swatches { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.swatch { overflow: hidden; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); font-size: .8125rem; }
.swatch i { display: block; height: 56px; }
.swatch span { display: block; padding: 8px 10px; }
.demo-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
