/* Сквозные стили сайта t-v.by.
   Один файл без препроцессора и сборки: объём вёрстки пока небольшой, а
   отсутствие build-шага заметно упрощает деплой (см. ansible/tvby-web). */

/* Палитра снята с фирменного стиля старого сайта — файлы
   local/templates/travelsoft/css/{main,ts-theme_v2}.css. Бирюза #55c4c6 там
   встречается 282 раза, это основной цвет бренда (он же в логотипе),
   #424d58 — цвет текста, #f56363 — акцент распродаж. */
:root {
    --brand: #55c4c6;          /* фирменная бирюза */
    --brand-deep: #3fb6b8;     /* для кнопок: белый текст на #55c4c6 читается плохо */
    --brand-dark: #2f9799;     /* ховер */
    --ink: #424d58;
    --ink-soft: #939ea9;
    --line: #e6eaed;
    --bg: #ffffff;
    --bg-soft: #f0f4f7;
    --accent: #f56363;         /* цена, скидка, распродажа */
    --amber: #f9b91e;
    --radius: 10px;
    --shadow: 0 1px 2px rgba(66, 77, 88, .06), 0 8px 24px rgba(66, 77, 88, .09);
    --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0;
    color: var(--ink);
    background: var(--bg);
    font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem); }
h2 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem); }
h3 { font-size: 1.15rem; }

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

.visually-hidden {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.skip-link {
    position: absolute; left: -9999px; top: 0; z-index: 100;
    background: var(--brand); color: #fff; padding: 10px 16px;
}
.skip-link:focus { left: 0; }

/* --------------------------- Верхняя строка ---------------------------- */

/* Телефоны, курсы валют и соцсети над шапкой — как на старом сайте.
   Тёмная подложка отделяет служебную строку от навигации. */
.topbar { background: var(--ink); color: #c9d3dc; font-size: .82rem; }
.topbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px 28px;
    padding-top: 7px;
    padding-bottom: 7px;
}
.topbar a { color: #fff; }

/* Телефоны занимают всю свободную ширину и переносятся внутри себя.
   min-width: 0 обязателен: без него flex-элемент не сжимается уже своего
   содержимого, строка распирает полосу и выталкивает курсы с соцсетями
   на отдельный ряд. */
.topbar__phones {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    flex-wrap: wrap;
    gap: 2px 20px;
}
.topbar__phone { white-space: nowrap; }
.topbar__label { color: #93a1ad; margin-right: 5px; }
.topbar__note { color: #93a1ad; margin-left: 5px; }

/* Курсы и соцсети прижаты вправо и не сжимаются: цифры и значки должны
   оставаться целыми, ужимается пусть блок телефонов. */
.topbar__aside { display: flex; align-items: center; flex: 0 0 auto; gap: 20px; }

/* Две даты в столбик, как на старом сайте. Табличные цифры — чтобы при
   смене курса значения не «прыгали» по ширине. */
.topbar__rates { display: flex; flex-direction: column; font-variant-numeric: tabular-nums; }
.topbar__rate { display: flex; gap: 8px; white-space: nowrap; }
.topbar__rate b { color: #93a1ad; font-weight: 600; }
.topbar__rate span { min-width: 52px; }

.topbar__social { display: flex; gap: 10px; }
.topbar__social a { display: flex; color: #c9d3dc; }
.topbar__social a:hover { color: var(--accent); }

/* ------------------------------- Шапка ------------------------------- */

.site-header {
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 20;
}

.site-header__inner {
    display: flex;
    align-items: center;
    gap: 12px 28px;
    flex-wrap: wrap;
    padding-top: 12px;
    padding-bottom: 12px;
}

/* Крупный логотип слева, как на старом сайте (там он шёл с классом
   big-logo). Картинка квадратная 177×177 — «арка + птица + надпись», поэтому
   мельче ~72px подпись «туристическая компания» становится нечитаемой. */
.brand { display: block; flex: 0 0 auto; }
.brand:hover { text-decoration: none; }
.brand__logo { height: 84px; width: auto; }

/* align-items: baseline обязателен: пункты с выпадающим списком обёрнуты
   в .site-nav__item, и при выравнивании по умолчанию (stretch) их текст
   уезжает вверх относительно пунктов-ссылок без обёртки. */
.site-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 20px;
    margin-right: auto;
    align-items: baseline;
}
.site-nav__link {
    color: var(--ink);
    padding: 6px 0;
    border-bottom: 2px solid transparent;
    font-weight: 500;
}
.site-nav__link:hover { color: var(--brand); text-decoration: none; }
.site-nav__link.is-active { color: var(--brand); border-bottom-color: var(--accent); }

/* Пункт с выпадающим списком («Туристам», «Агентствам»). Раскрытие на
   :hover и :focus-within — без JS; сам пункт остаётся ссылкой на хаб. */
.site-nav__item { position: relative; }
.site-nav__drop {
    display: none;
    position: absolute;
    top: 100%;
    left: -16px;
    min-width: 210px;
    padding: 8px 0;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .12);
    z-index: 30;
}
.site-nav__item:hover .site-nav__drop,
.site-nav__item:focus-within .site-nav__drop { display: block; }
.site-nav__droplink {
    display: block;
    padding: 8px 16px;
    color: var(--ink);
    font-weight: 500;
    white-space: nowrap;
}
.site-nav__droplink:hover { color: var(--brand); background: var(--bg-soft); text-decoration: none; }
.site-nav__droplink.is-active { color: var(--brand); }

.site-search { display: flex; gap: 6px; }
.site-search input {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 8px 12px;
    min-width: 200px;
    font: inherit;
    font-size: .9rem;
}
.site-search input:focus { outline: 2px solid var(--brand); outline-offset: 1px; }
.site-search button {
    border: 0;
    border-radius: var(--radius);
    background: var(--brand-deep);
    color: #fff;
    padding: 8px 16px;
    font: inherit;
    font-size: .9rem;
    font-weight: 600;
    cursor: pointer;
}
.site-search button:hover { background: var(--brand-dark); }

/* ------------------------------- Подвал ------------------------------ */

.site-footer {
    margin-top: 64px;
    background: var(--ink);
    color: #c2ccd6;
    padding: 32px 0;
    border-top: 4px solid var(--brand);
}
.site-footer__inner {
    display: flex;
    flex-wrap: wrap;
    gap: 20px 40px;
    justify-content: space-between;
}
.site-footer p { margin: 0 0 4px; }
.site-footer__logo { height: 56px; width: auto; margin-bottom: 10px; }
.site-footer__note { font-size: .9rem; }
.site-footer__nav { display: flex; flex-wrap: wrap; gap: 8px 24px; align-content: flex-start; }
.site-footer__nav a { color: #c2ccd6; font-size: .9rem; }
.site-footer__nav a:hover { color: var(--brand); }

/* ------------------------- Общие блоки страниц ------------------------ */

/* Колонка обычной страницы (её ставит base.html вокруг блока content). */
.page { padding: 32px 0 0; }
.page > h1:first-child { margin-bottom: .4em; }
.page p, .page li { max-width: 80ch; }
.page ul, .page ol { padding-left: 1.3em; }
.page ul li, .page ol li { margin-bottom: .35em; }
.page h2 { margin-top: 1.4em; }
.page small { color: var(--ink-soft); }
.page .gallery { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); margin: 20px 0; }
.page .gallery img { border-radius: var(--radius); width: 100%; }

.section { padding: 48px 0 0; }
.section__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}
.section__head h2 { margin: 0; }
.section__more { font-weight: 600; white-space: nowrap; }

.grid { display: grid; gap: 20px; }
.grid--4 { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }

.card {
    display: flex;
    flex-direction: column;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: box-shadow .15s ease, transform .15s ease;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card__media { aspect-ratio: 3 / 2; background: var(--bg-soft); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
/* Для сканов документов (награды, сертификаты) — вписывать целиком:
   обрезка по рамке съедает у диплома и текст, и печати. */
.card__media--fit { padding: 10px; }
.card__media--fit img { object-fit: contain; }
/* Карточка без картинки (визы): места под медиа не оставляем, иначе
   сверху зияет пустая серая полоса. */
.card--plain { background: var(--bg-soft); }
.card__body { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card__title { font-size: 1.05rem; font-weight: 700; margin: 0; }
.card__title a { color: var(--ink); }
.card__title a:hover { color: var(--brand); text-decoration: none; }
.card__meta { font-size: .85rem; color: var(--ink-soft); margin: 0; }
.card__text { font-size: .92rem; color: var(--ink-soft); margin: 0; }
.card__foot { margin-top: auto; padding-top: 8px; font-size: .85rem; color: var(--ink-soft); }

.badge {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    border-radius: 999px;
    padding: 2px 10px;
    font-size: .78rem;
    font-weight: 700;
}

/* --------------------------- Главная страница ------------------------- */

/* Первого экрана (.hero) на главной больше нет: заголовок «Отдых, который
   вы запомните» с подзаголовком и счётчиками убран как лишний. Страница
   начинается сразу со слайдера баннеров, за ним — подбор тура. */

/* Карусель рекламных баннеров.
   Прокрутка на scroll-snap, а не на JS-трансформах: свайп на телефоне,
   колесо на десктопе и клавиатура работают сами, без библиотеки.
   JS в tvby_site.js только листает по таймеру и подсвечивает точки. */
.banners { position: relative; background: var(--ink); }
.banners__track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
}
.banners__track::-webkit-scrollbar { display: none; }
.banners__slide { flex: 0 0 100%; scroll-snap-align: start; }
.banners__slide a { display: block; }
/* Широкая версия баннера всегда 19:6 (1900×600 либо 7600×2400). */
.banners__slide img { width: 100%; aspect-ratio: 19 / 6; object-fit: cover; }

.banners__dots {
    position: absolute;
    left: 0; right: 0; bottom: 14px;
    display: flex;
    justify-content: center;
    gap: 8px;
}
.banners__dot { padding: 6px; line-height: 0; }
.banners__dot span {
    display: block;
    width: 10px; height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .55);
    transition: background .2s ease, transform .2s ease;
}
.banners__dot:hover span { background: #fff; }
.banners__dot.is-active span { background: var(--brand); transform: scale(1.2); }

/* Направления — плитки без фотографий: у стран нет собственных изображений,
   а подставлять случайное фото отеля значит врать про направление. */
.directions { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.direction {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--bg-soft);
    font-weight: 600;
    color: var(--ink);
}
.direction:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }
.direction span { font-size: .82rem; font-weight: 500; color: var(--ink-soft); }

.review { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.review__text { margin: 0 0 12px; font-size: .95rem; }
/* В списке отзывов цитата целиком кликабельна. Красить её в фирменную
   бирюзу нельзя: получается сплошная синяя простыня вместо текста. */
.review__text a { color: inherit; }
.review__text a:hover { color: var(--brand); text-decoration: none; }
.review__author { margin: 0; font-weight: 700; font-size: .92rem; }
.review__meta { margin: 0; font-size: .82rem; color: var(--ink-soft); }

.about { margin-top: 56px; background: var(--bg-soft); border-radius: var(--radius); padding: 32px; }
.about h2 { margin-top: 0; }
.about__text { max-width: 75ch; }

/* ------------------------------ Списки -------------------------------- */

.list { list-style: none; padding: 0; margin: 0; }
.list li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.list li:last-child { border-bottom: 0; }
.list__meta { color: var(--ink-soft); font-size: .85rem; }

/* --------------------------- Подбор туров ----------------------------- */

/* Подбор тура идёт сразу под слайдером баннеров. Поиска по каталогу
   на главной больше нет — он дублировал строку в шапке. */
.toursearch { margin: 36px 0 0; }

/* Тёмная панель, а не светлая карточка. Первая версия была белой карточкой
   на белом фоне: форма сливалась со страницей (контраст 1.0), а белые поля
   ввода — с самой формой, границы в --line давали 1.21. Читать было нечего.
   Тёмная подложка решает это разом.

   Почему не фирменная бирюза фоном: белый текст на --brand даёт всего
   2.4:1, то есть ту же нечитаемость с другого конца. Бирюза работает там,
   где она акцент на тёмном: полоса сверху и кнопка. */
.toursearch__panel {
    background: linear-gradient(160deg, #4b5764 0%, var(--ink) 55%, #39434e 100%);
    border-top: 4px solid var(--brand);
    border-radius: var(--radius);
    padding: 20px 24px 22px;
    box-shadow: var(--shadow);
    /* Страховка: блок вставляли и в hero, а тот центрирует текст. */
    text-align: left;
}

.toursearch__title { margin: 0 0 14px; font-size: 1.15rem; color: #fff; }

.toursearch__form {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: end;
}

.toursearch__field { display: flex; flex-direction: column; gap: 5px; flex: 1 1 180px; }
/* Числовым полям (ночи, взрослые, дети) широкая колонка ни к чему. */
.toursearch__field--narrow { flex: 0 1 96px; }

/* Обязательно, иначе строкой выше мы сами сломали атрибут hidden: у браузера
   он реализован правилом [hidden] { display: none }, а наш display: flex
   специфичнее и его перебивает. Без этого поля возраста показывались всегда,
   даже когда детей ноль. */
.toursearch__field[hidden] { display: none; }

/* Сплошной светлый, без прозрачности: opacity срезала бы контраст ровно
   там, где он и был проблемой. */
.toursearch__field label { font-size: .8rem; color: #e3eaf0; }

.toursearch__field select {
    width: 100%;
    padding: 9px 10px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: var(--bg);
    color: var(--ink);
    font: inherit;
    font-size: .95rem;
}
.toursearch__field select:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* --- Календарь дат заезда --- */

/* Позиционируем всплывающий календарь относительно поля. */
.toursearch__field--date { position: relative; flex: 0 1 150px; }

/* Кнопка притворяется полем ввода: рядом стоят select'ы, и выпадать из
   строки она не должна. */
.datepick__toggle {
    width: 100%;
    padding: 9px 10px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: var(--bg);
    color: var(--ink);
    font: inherit;
    font-size: .95rem;
    text-align: left;
    cursor: pointer;
}
.datepick__toggle:disabled { color: var(--ink-soft); cursor: default; }
.datepick__toggle:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

.datepick {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    z-index: 20;
    width: 268px;
    padding: 12px;
    background: var(--bg);
    border-radius: var(--radius);
    box-shadow: 0 12px 32px rgba(0, 0, 0, .28);
    color: var(--ink);
}

.datepick__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}
.datepick__month { font-weight: 700; font-size: .95rem; }
.datepick__nav {
    border: 0;
    background: var(--bg-soft);
    color: var(--ink);
    border-radius: 6px;
    width: 28px;
    height: 28px;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
}
.datepick__nav:disabled { opacity: .35; cursor: default; }
.datepick__nav:hover:not(:disabled) { background: var(--line); }

.datepick__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.datepick__wd {
    text-align: center;
    font-size: .72rem;
    color: var(--ink-soft);
    padding-bottom: 4px;
}

.datepick__day {
    aspect-ratio: 1;
    border: 0;
    border-radius: 6px;
    background: transparent;
    /* Дни без вылетов не убираем, а гасим: пустая сетка читалась бы хуже,
       чем видимый «в этот день не летим». */
    color: var(--ink-soft);
    opacity: .4;
    font: inherit;
    font-size: .85rem;
    cursor: default;
}
.datepick__day.is-free {
    background: var(--bg-soft);
    color: var(--ink);
    opacity: 1;
    font-weight: 600;
    cursor: pointer;
}
.datepick__day.is-free:hover { background: #d9f0f0; }
.datepick__day.is-selected { background: var(--brand); color: #1f262c; }

.toursearch__submit { flex: 0 0 auto; }
.toursearch__submit button {
    padding: 10px 26px;
    border: 0;
    border-radius: 8px;
    background: var(--brand);
    /* Текст темнее --ink: на бирюзе тот дал бы 4.15:1, чуть ниже нормы. */
    color: #1f262c;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}
.toursearch__submit button:hover { background: #6fd2d4; }

.toursearch__note { margin: 14px 2px 0; font-size: .85rem; color: #c3ced8; }
.toursearch__note a { color: #fff; text-decoration: underline; }

/* --------------------------- Карусель ---------------------------------- */

/* Горизонтальная лента карточек («Хит продаж»), как на старом сайте.
   Прокрутка на scroll-snap, без JS: свайп на телефоне, колесо и клавиатура
   на десктопе работают сами. Тот же приём, что у слайдера баннеров. */
.carousel {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    /* Место под тень карточки при наведении, иначе её срезает overflow. */
    padding: 4px 4px 14px;
    margin: 0 -4px;
    scrollbar-width: thin;
}
.carousel__item { flex: 0 0 300px; scroll-snap-align: start; }
.carousel:focus-visible { outline: 2px solid var(--brand); outline-offset: 4px; }

/* ----------------------- Детальные страницы --------------------------- */

.detail__head { margin-bottom: 20px; }
.detail__head h1 { margin-bottom: .25em; }
.detail__meta { margin: 0; color: var(--ink-soft); font-size: .95rem; }
.stars { color: var(--amber); font-size: .7em; vertical-align: .25em; margin-left: .2em; }

/* Галерея с единым размером плиток. Раньше картинки шли в естественных
   пропорциях, и сетка получалась рваной: соседние плитки разной высоты,
   между рядами дыры. Здесь размер задаёт fill-…, поэтому ряды ровные. */
.photos__lead { margin: 0 0 10px; }
.photos__lead img { width: 100%; border-radius: var(--radius); }
.photos {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    margin: 0 0 24px;
}
.photos img { width: 100%; border-radius: 8px; }

/* Хвост галереи — нативный details, без единой строчки JS. */
.photos__more { margin: -12px 0 24px; }
.photos__more summary { cursor: pointer; color: var(--brand); font-size: .92rem; }
.photos__more summary:hover { text-decoration: underline; }
.photos__more[open] summary { margin-bottom: 12px; }

/* Две колонки: текст и панель фактов. На узком экране факты уходят вниз,
   под описание. */
.detail__cols { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr) 300px; align-items: start; }
.detail__main { min-width: 0; }
.detail__main > :first-child { margin-top: 0; }

.facts {
    background: var(--bg-soft);
    border-radius: var(--radius);
    padding: 18px 20px;
    position: sticky;
    top: 96px;
}
.facts__title { margin: 0 0 12px; font-size: 1.05rem; }
.facts__list { margin: 0; display: grid; gap: 2px 0; }
.facts__list dt { font-size: .78rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .02em; }
.facts__list dd { margin: 0 0 12px; font-size: .92rem; }
.facts__list dd:last-child { margin-bottom: 0; }
.facts__map { margin: 14px 0 0; font-size: .9rem; }
.facts__dates { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.facts__dates li { background: var(--bg); border-radius: 6px; padding: 3px 8px; font-size: .85rem; }

.post__lead { margin: 0 0 20px; }
.post__lead img { width: 100%; border-radius: var(--radius); }
/* Анонс — врезка перед основным текстом, чтобы не сливался с ним. */
.post__intro { font-size: 1.05rem; color: var(--ink); border-left: 3px solid var(--brand); padding-left: 16px; margin: 0 0 20px; }
.post__video { margin: 20px 0; }

.back-link { margin: 32px 0 0; font-size: .92rem; }

/* -------------------------- Каталог отелей ---------------------------- */

.filterbar {
    margin: 20px 0 8px;
    padding: 16px 18px;
    background: var(--bg-soft);
    border-radius: var(--radius);
}
.filterbar__row { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; }
.filterbar__row--bottom { margin-top: 12px; justify-content: space-between; }

.filterbar__field { display: flex; flex-direction: column; gap: 4px; flex: 0 1 200px; }
.filterbar__field--grow { flex: 1 1 220px; }
.filterbar__field label { font-size: .8rem; color: var(--ink-soft); }
.filterbar__field select,
.filterbar__field input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--bg);
    color: var(--ink);
    font: inherit;
    font-size: .95rem;
}
.filterbar__field select:disabled { color: var(--ink-soft); background: var(--bg-soft); }

.filterbar__stars { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.filterbar__stars legend { float: left; margin-right: 12px; font-size: .8rem; color: var(--ink-soft); }
.filterbar__star { display: inline-flex; align-items: center; gap: 5px; font-size: .9rem; cursor: pointer; }

.filterbar__actions { display: flex; align-items: center; gap: 14px; }
.filterbar__actions button {
    padding: 9px 22px;
    border: 0;
    border-radius: 8px;
    background: var(--brand-deep);
    color: #fff;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}
.filterbar__actions button:hover { background: var(--brand-dark); }
.filterbar__reset { font-size: .9rem; }

.listcount { margin: 14px 0 4px; color: var(--ink-soft); font-size: .9rem; }
.listcount b { color: var(--ink); }
.listcount__page { margin-left: 10px; }

/* Заглушка вместо фото: у трёх десятков отелей картинок нет, и без неё
   карточка «схлопывалась» бы, ломая ряд сетки. */
.card__nophoto {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--ink-soft);
    font-size: .85rem;
}
.hotels .card__title { font-size: 1rem; }
.hotels .stars { color: var(--amber); margin-right: 4px; }

.pager { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 28px 0 8px; }
.pager__link {
    padding: 8px 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: .9rem;
}
.pager__link.is-off { color: var(--ink-soft); border-color: var(--line); opacity: .5; }
.pager__pos { color: var(--ink-soft); font-size: .9rem; }

.listempty { margin: 24px 0; }

/* ------------------------------- Офисы -------------------------------- */

/* Врезка в начале страницы: тот же блок .about, но без верхнего отступа —
   на «О компании» и «Контактах» он идёт сразу под заголовком. */
.about--lead { margin-top: 24px; }

.offices { display: grid; gap: 24px; margin: 24px 0 8px; }

.office {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
    align-items: start;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
/* Без фото карточка не должна оставлять пустую колонку. */
.office:not(:has(.office__media)) { grid-template-columns: 1fr; }

.office__img { width: 100%; height: auto; border-radius: var(--radius); display: block; }
.office__title { margin: 0 0 8px; font-size: 1.15rem; }
.office__address { margin: 0 0 12px; color: var(--ink-soft); }

.office__phones { list-style: none; padding: 0; margin: 0 0 14px; }
.office__phones li { padding: 3px 0; }
.office__phones a { font-weight: 600; }
.office__phone-label { color: var(--ink-soft); font-size: .85rem; margin-left: 6px; }

.office__desc { font-size: .95rem; }
.office__desc p { margin: 0 0 8px; }
.office__map { margin: 12px 0 0; font-size: .9rem; }

.requisites { background: var(--bg-soft); border-radius: var(--radius); padding: 20px 24px; }
.requisites p { margin: 0 0 8px; }
.requisites p:last-child { margin-bottom: 0; }

@media (max-width: 720px) {
    /* Фото офиса над текстом — в 280px колонке на телефоне смысла нет. */
    .office { grid-template-columns: 1fr; }
    /* На узком экране форма подбора идёт в одну колонку. */
    .toursearch__panel { padding: 16px 14px 18px; }
    .toursearch__field, .toursearch__field--narrow { flex: 1 1 100%; }
    .toursearch__submit, .toursearch__submit button { width: 100%; }
    .site-header__inner { gap: 10px 16px; }
    .brand__logo { height: 56px; }
    .site-search { width: 100%; }
    .site-search input { min-width: 0; flex: 1; }
    /* На телефоне курсы валют убираем — они длиннее всего остального,
       а за ними всё равно ходят на страницу курсов. Значки соцсетей
       узкие, их оставляем. */
    .topbar__rates { display: none; }
    /* Панель фактов на телефоне идёт под описанием, а не сбоку. */
    .detail__cols { grid-template-columns: 1fr; }
    .facts { position: static; }
    /* На узком экране приходит квадратный вариант баннера. */
    .banners__slide img { aspect-ratio: 1 / 1; }
}
