
body {
    background-color: var(--color-bg) !important;
}

.booking__price,
.booking__price span {
    font-family: var(--font-base);
}

.booking__price span {
    font-size: 32px;
}

.review__box {
    display: grid;
    gap: 15px;
}

.feedback__more__custom.feedback__more-new {
    max-height: 50px;
}

/* Локальные шрифты. Сабсеты: cyrillic, cyrillic-ext, latin, latin-ext. */

/* Montserrat Alternates 600 — cyrillic-ext */
@font-face {
    font-family: 'Montserrat Alternates';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('/fonts/montserrat-alternates-600-cyrillic-ext.woff2') format('woff2');
    unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

/* Montserrat Alternates 600 — cyrillic */
@font-face {
    font-family: 'Montserrat Alternates';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('/fonts/montserrat-alternates-600-cyrillic.woff2') format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* Montserrat Alternates 600 — latin-ext */
@font-face {
    font-family: 'Montserrat Alternates';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('/fonts/montserrat-alternates-600-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Montserrat Alternates 600 — latin */
@font-face {
    font-family: 'Montserrat Alternates';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('/fonts/montserrat-alternates-600-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Nunito 300 — cyrillic-ext */
@font-face {
    font-family: 'Nunito';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('/fonts/nunito-300-cyrillic-ext.woff2') format('woff2');
    unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

/* Nunito 300 — cyrillic */
@font-face {
    font-family: 'Nunito';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('/fonts/nunito-300-cyrillic.woff2') format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* Nunito 300 — latin-ext */
@font-face {
    font-family: 'Nunito';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('/fonts/nunito-300-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Nunito 300 — latin */
@font-face {
    font-family: 'Nunito';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('/fonts/nunito-300-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Nunito 400 — cyrillic-ext */
@font-face {
    font-family: 'Nunito';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/fonts/nunito-400-cyrillic-ext.woff2') format('woff2');
    unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

/* Nunito 400 — cyrillic */
@font-face {
    font-family: 'Nunito';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/fonts/nunito-400-cyrillic.woff2') format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* Nunito 400 — latin-ext */
@font-face {
    font-family: 'Nunito';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/fonts/nunito-400-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Nunito 400 — latin */
@font-face {
    font-family: 'Nunito';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/fonts/nunito-400-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Nunito 600 — cyrillic-ext */
@font-face {
    font-family: 'Nunito';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('/fonts/nunito-600-cyrillic-ext.woff2') format('woff2');
    unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

/* Nunito 600 — cyrillic */
@font-face {
    font-family: 'Nunito';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('/fonts/nunito-600-cyrillic.woff2') format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* Nunito 600 — latin-ext */
@font-face {
    font-family: 'Nunito';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('/fonts/nunito-600-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Nunito 600 — latin */
@font-face {
    font-family: 'Nunito';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('/fonts/nunito-600-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Nunito 700 — cyrillic-ext */
@font-face {
    font-family: 'Nunito';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('/fonts/nunito-700-cyrillic-ext.woff2') format('woff2');
    unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

/* Nunito 700 — cyrillic */
@font-face {
    font-family: 'Nunito';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('/fonts/nunito-700-cyrillic.woff2') format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* Nunito 700 — latin-ext */
@font-face {
    font-family: 'Nunito';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('/fonts/nunito-700-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Nunito 700 — latin */
@font-face {
    font-family: 'Nunito';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('/fonts/nunito-700-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Nunito 800 — cyrillic-ext */
@font-face {
    font-family: 'Nunito';
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url('/fonts/nunito-800-cyrillic-ext.woff2') format('woff2');
    unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

/* Nunito 800 — cyrillic */
@font-face {
    font-family: 'Nunito';
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url('/fonts/nunito-800-cyrillic.woff2') format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* Nunito 800 — latin-ext */
@font-face {
    font-family: 'Nunito';
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url('/fonts/nunito-800-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Nunito 800 — latin */
@font-face {
    font-family: 'Nunito';
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url('/fonts/nunito-800-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}



/* ==========================================================================
   Дизайн-токены. Единственное место, где живут «сырые» значения.
   В компонентах используем только переменные отсюда.
   ========================================================================== */

:root{
    /* Цвета */
    --color-bg: #F6F5F9;
    --color-surface: #FFFFFF;
    --color-text: #1B1B1B;
    --color-text-secondary: #8E8888;
    --color-divider: #CECECE;
    --color-divider-soft: #F0EEF3;
    --color-input-bg: #F5F7FA;

    --color-accent: #FF7600;
    --color-accent-hover: #E56A00;
    --color-accent-tint: #FFE4CC;
    --color-accent-tint-soft: rgba(255,118,0,0.12);
    --color-accent-text: #B85400;   /* оранжевый текст на светлом фоне */

    --color-logo: #513F2E;

    /* Производные оттенки — тоже токенами, чтобы компоненты оставались чистыми */
    --color-accent-tint-hover: #FFD5B3;  /* ховер кнопки «Войти» */
    --color-input-bg-hover: #ECEFF4;     /* ховер кнопок «Позвонить» / Telegram */
    --color-overlay: rgba(27,27,27,0.55);/* плашка под подписью на фото */
    --color-footer-bg: #EAE8ED;
    --color-footer-link: #4A4A4A;
    --shadow-bar: 0 -4px 20px rgba(27,27,27,0.08); /* нижняя панель на мобильном */
    --color-success: #2E9E5B;
    --color-warning: #C8890B;

    /* Радиусы */
    --radius-lg: 24px;   /* карточки-секции */
    --radius-md: 16px;   /* инпуты, плитки */
    --radius-sm: 8px;    /* кнопки, бейджи */

    /* Радиусы, которых нет в базовом наборе ТЗ, но которые требует макет.
       Заведены здесь, чтобы в компонентах не было ни одного «сырого» значения. */
    --radius-tile: 14px; /* поля виджета, миниатюры, плитки статистики */
    --radius-xs: 12px;   /* номер дня, аватар отзыва, кнопки связи */
    --radius-pill: 20px; /* чипы городов и подписи-пилюли на фото */

    /* Тень карточки */
    --shadow-card: 0 1px 4px rgba(235,233,232,0.73), 0 24px 48px rgba(230,235,245,0.4);

    /* Раскладка */
    --container-max: 1160px;
    --container-pad: 40px;
    --sidebar-width: 320px;
    --grid-gap: 24px;

    /* Отступ прилипающего сайдбара сверху.
       Появится фиксированная шапка — сюда идёт её высота + 24px. */
    --sticky-offset: 24px;

    /* Шрифты. Museo Sans Cyrl подменяется одной строкой здесь. */
    --font-base: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    --font-logo: 'Montserrat Alternates', var(--font-base);
}

/* ==========================================================================
   Контраст AA — блок под вопрос к заказчику.

   Значения токенов выше взяты из ТЗ буквально и совпадают с макетом.
   Проверка контраста показала, что часть из них не добирает до AA
   (4.5:1 для текста мельче 18.66px bold):

     --color-text-secondary #8E8888  → 3.48:1 на белом, 3.25:1 на #F5F7FA
     --color-accent-text    #B85400  → 4.88:1 на белом (ок),
                                       но 4.00:1 на плашке #FFE4CC (гастро-теги)
     белый текст на --color-accent   → 2.68:1 (кнопка «Забронировать»)

   Ниже — минимально затемнённые варианты того же тона, которые проходят AA.
   Раскомментируйте блок, чтобы включить их: правки компонентов не нужны.
   Кнопку CTA сюда не выношу — там смена фона видна в макете, нужен ваш ответ.
   ========================================================================== */

/*
:root{
  --color-text-secondary: #747070;
  --color-accent-text:    #AB4E00;
}
*/

/* ==========================================================================
   Сетка страницы, sticky-колонка, адаптив
   ========================================================================== */

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

.page{ padding-bottom: 56px; }

/* --- Двухколоночная сетка -------------------------------------------------
   Три прямых потомка: галерея, контент и сайдбар. Галерея вынесена из
   контентной колонки, чтобы на мобильном сайдбар встал между ней и
   остальным контентом одним лишь `order`, без дублирования разметки.
   -------------------------------------------------------------------------- */
.tour-layout{
    display: grid;
    grid-template-columns: 1fr var(--sidebar-width);
    gap: var(--grid-gap);
    align-items: start;   /* критично: иначе sticky не сработает */
}

.tour-layout__gallery{ grid-area: 1 / 1 / 2 / 2; }
.tour-layout__content{ grid-area: 2 / 1 / 3 / 2; }
.tour-layout__sidebar{ grid-area: 1 / 2 / 3 / 3; }

.tour-layout__content{
    display: flex;
    flex-direction: column;
    gap: var(--grid-gap);
    min-width: 0;
}

/* --- Sticky-сайдбар -------------------------------------------------------
   Чистый CSS, без JS. Ни у одного предка нет overflow, отличного от visible,
   иначе прилипание молча ломается.
   -------------------------------------------------------------------------- */
.tour-layout__sidebar{
    position: sticky;
    top: var(--sticky-offset);
    align-self: start;
    min-width: 0;
    /* На невысоких экранах виджет скроллится сам, а не обрезается */

    overflow-y: auto;
    overscroll-behavior: contain;
}

/*!* ===== 1024–1200px: сайдбар уже, «Что входит» в 3 колонки ================= *!*/
/*@media (max-width: 1200px){*/
/*    :root{ --sidebar-width: 320px; --container-pad: 24px; }*/

/*    .site-header__inner{ gap: 24px; }*/
/*    .site-nav{ gap: 20px; }*/

/*    .includes__list{ grid-template-columns: repeat(3, 1fr); }*/
/*}*/

/* ===== < 1024px: одна колонка, сайдбар уезжает под галерею =============== */
@media (max-width: 1023px){
    .tour-layout{
        grid-template-columns: 1fr;
    }

    .tour-layout__gallery{ grid-area: auto; order: 1; }
    .tour-layout__sidebar{ grid-area: auto; order: 2; }
    .tour-layout__content{ grid-area: auto; order: 3; }

    /* Прилипание — только на десктопе */
    .tour-layout__sidebar{
        position: static;
        max-height: none;
        overflow-y: visible;
    }

    .site-header__nav{ display: none; }
}







/* ==========================================================================
   Reset, типографика, утилиты
   ========================================================================== */

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

html{ -webkit-text-size-adjust: 100%; }

body,
h1, h2, h3, h4,
p, ul, ol, figure, blockquote{ margin: 0; padding: 0; }

ul, ol{ list-style: none; }

body{
    min-height: 100vh;
    background: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-base);
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img{
    display: block;
    max-width: 100%;
    height: auto;
}

a{
    color: inherit;
    text-decoration: none;
}

button,
input,
select{
    font: inherit;
    color: inherit;
    margin: 0;
}

button{
    background: none;
    border: 0;
    cursor: pointer;
}

/* Заголовки */
h1{ font-size: 32px; line-height: 40px; font-weight: 700; letter-spacing: -0.01em; }
h2{ font-size: 20px; line-height: 28px; font-weight: 700; }
h3{ font-size: 17px; line-height: 24px; font-weight: 700; }

/* Видимый фокус с клавиатуры — на всех интерактивных элементах */
:where(a, button, select, input, [tabindex]):focus-visible{
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

/* Утилиты */
.visually-hidden{
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

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



/* ==========================================================================
   Компоненты
   ========================================================================== */

/* --- Кнопки --------------------------------------------------------------- */
.btn{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    text-align: center;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn--accent{
    min-height: 48px;
    padding: 12px 20px;
    background: var(--color-accent);
    color: var(--color-surface);
    font-size: 17px;
}

.btn--accent:hover{ background: var(--color-accent-hover); }

.btn--tint{
    min-height: 36px;
    padding: 8px 18px;
    background: var(--color-accent-tint);
    color: var(--color-accent-text);
    font-size: 14px;
}

.btn--tint:hover{ background: var(--color-accent-tint-hover); }

.btn--outline{
    min-height: 40px;
    padding: 8px 18px;
    border: 2px solid var(--color-accent-tint);
    color: var(--color-accent);
    font-size: 14px;
}

.btn--outline:hover{ border-color: var(--color-accent-text); }

.btn--soft{
    min-height: 44px;
    padding: 10px 14px;
    border-radius: var(--radius-xs);
    background: var(--color-input-bg);
    color: var(--color-text);
    font-size: 13px;
}

.btn--soft:hover{ background: var(--color-input-bg-hover); }

.btn--block{ width: 100%; }

/* --- Шапка ---------------------------------------------------------------- */
.site-header{
    height: 72px;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-divider-soft);
}

.site-header__inner{
    display: flex;
    align-items: center;
    gap: 40px;
    height: 100%;
}

.site-header__phone{
    margin-left: auto;
    font-size: 16px;
    font-weight: 700;
    white-space: nowrap;
}

.logo{
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--color-logo);
    font-family: var(--font-logo);
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 0.06em;
    white-space: nowrap;
}

.logo__dot{
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--color-accent);
}

.site-nav{
    display: flex;
    align-items: center;
    gap: 28px;
}

.site-nav__link{
    font-size: 15px;
    white-space: nowrap;
    color: var(--color-text);
    transition: color 0.15s ease;
}

.site-nav__link:hover{ color: var(--color-accent-text); }

/* --- Крошка-возврат ------------------------------------------------------- */
.back-link{
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 24px 0 20px;
    color: var(--color-accent);
    font-size: 14px;
    font-weight: 700;
}

.back-link:hover{ color: var(--color-accent-text); }

/* --- Карточка-секция ------------------------------------------------------ */
.card{
    padding: 28px;
    border-radius: var(--radius-lg);
    background: var(--color-surface);
    box-shadow: var(--shadow-card);
}

.card__title{ margin-bottom: 22px; }

/* ==========================================================================
   Галерея тура — сетка 2×2 (1 большое слева, 2 маленьких справа)
   ========================================================================== */

.tour-layout__gallery.gallery {
    position: relative;
    height: 340px;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

/* Сетка — на внутреннем контейнере */
.gallery__slider {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 8px;
    width: 100%;
    height: 100%;
    min-height: 0;
}

/* Скрываемые элементы — через opacity/visibility, чтобы figcaption не мигал */
.gallery__slider .gallery__item {
    position: relative;
    overflow: hidden;
    opacity: 0;
    min-height: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s;
}

.gallery__item--main {
    height: 340px;
}

.gallery__slider .gallery__item.is-visible {
    opacity: 1;
    visibility: visible;
}

/* Большое фото — левая колонка, на всю высоту */
.gallery__slider .gallery__item.gallery__item--main.is-visible {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
}

/* Маленькие — правая колонка */
.gallery__slider .gallery__item.is-small-top.is-visible {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
}

.gallery__slider .gallery__item.is-small-bottom.is-visible {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
}

.gallery__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Подпись — всегда внутри фигуры, поверх картинки */
.gallery__caption {
    position: absolute;
    left: 12px;
    bottom: 12px;
    z-index: 2;
    max-width: calc(100% - 24px);
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    background: rgba(27, 27, 27, 0.65);
    color: #fff;
    font-size: 13px;
    line-height: 18px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    pointer-events: none;
}

/* ===== Стрелки ===== */
.gallery__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1B1B1B;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: background-color 0.2s ease, transform 0.2s ease;
    padding: 0;
}

.gallery__nav:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.08);
    background: rgba(255, 255, 255, 0.9);
}

.gallery__nav:active {
    transform: translateY(-50%) scale(0.95);
}

.gallery__nav--prev { left: 12px; }
.gallery__nav--next { right: 12px; }

/* ===== Мобильный — горизонтальный скролл ===== */
@media (max-width: 767px) {
    .tour-layout__gallery.gallery { height: 220px; }

    .gallery__item--main {
        height: 100%;
    }

    .gallery__slider {
        display: flex;
        gap: 10px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }

    .gallery__slider .gallery__item,
    .gallery__slider .gallery__item.is-visible {
        opacity: 1;
        visibility: visible;
        flex: 0 0 86%;
        scroll-snap-align: start;
        border-radius: var(--radius-lg);
        grid-column: auto !important;
        grid-row: auto !important;
    }

    .gallery__nav { display: none; }
}

/* --- Заголовок тура ------------------------------------------------------- */
.tour-head__badges{
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 7px 14px;
    border: 1px solid var(--color-divider);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 400;
}

.badge b {
    font-weight: 700;
}

.badge strong {
    margin-right: 4px;
    font-family: var(--font-base), serif;
    font-size: 13px;
}

.tour-head__route{
    margin-top: 14px;
    color: var(--color-text-secondary);
    font-size: 14px;
    line-height: 22px;
}

.tour-head__meta{
    display: flex;
    flex-wrap: wrap;
    gap: 10px 26px;
    margin-top: 18px;
}

.meta-fact{
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.meta-fact b{ font-weight: 700; }

.meta-fact__icon{
    flex: none;
    color: var(--color-accent);
}

/* --- Что входит в стоимость ----------------------------------------------- */
.includes__list{
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 18px 12px;
}

.include{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
}

.include__icon {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background: var(--color-input-bg);
    color: var(--color-accent);
    transition:
            transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
            background 0.4s ease,
            border-color 0.4s ease,
            box-shadow 0.4s ease;
}

/* Мягкое оранжевое свечение под иконкой */
.include__icon::after {

    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: radial-gradient(
            circle at 50% 100%,
            rgba(255, 118, 0, 0.15),
            transparent 70%
    );
    opacity: 0;
    transition: opacity 0.45s ease;
    pointer-events: none;
    z-index: -1;
}

.include:hover .include__icon {
    transform: translateY(-6px) scale(1.08);
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(255, 118, 0, 0.45);
    box-shadow:
            0 14px 32px rgba(255, 118, 0, 0.18),
            0 0 0 1px rgba(255, 118, 0, 0.12),
            inset 0 1px 0 rgba(255, 255, 255, 1);
}

.include:hover .include__icon::after {
    opacity: 1;
}

.include__icon svg {
    display: block;
    transition: transform 0.4s ease;
}

.include:hover .include__icon svg {
    transform: scale(1.05);
}

.include:hover .include__label {
    color: #ff7600;
    text-shadow: 0 0 12px rgba(255, 118, 0, 0.25);
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
    .include__icon,
    .include__icon::after,
    .include__icon svg,
    .include__label {
        transition-duration: 0.01ms !important;
    }
}

.include__label,
.include__label b,
.include__label strong,
.include__label span,
.include__label p {
    font-size: 13px;
    line-height: 18px;
    font-weight: 600;
}

/* --- Маршрут -------------------------------------------------------------- */
.route-chain {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.route-chain__city {
    transition:
            transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
            background 0.4s ease,
            border-color 0.4s ease,
            box-shadow 0.4s ease;
}

.route-chain__city:hover {
    transform: translateY(-6px) scale(1.08);
    background: rgba(255, 255, 255, 0.85);
    box-shadow:
            0 14px 32px rgba(255, 118, 0, 0.18),
            0 0 0 1px rgba(255, 118, 0, 0.12),
            inset 0 1px 0 rgba(255, 255, 255, 1);
}

.route-chain__city:hover a {
    color: #ff7600;
}

section.card.route > ol > li.route-chain__city {
    padding: 7px 16px;
    border-radius: var(--radius-pill);
    background: var(--color-input-bg);
    font-family: var(--font-base), serif;
    font-size: 14px;
    font-weight: 600;
}

section.card.route > ol > li.route-chain__city a {
    font-family: var(--font-base), serif;
    font-size: 14px;
    font-weight: 600;
}

.route-chain__arrow{
    color: var(--color-text-secondary);
    font-size: 14px;
}

.route-map{
    position: relative;
    height: 320px;
    margin-top: 22px;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.route-map__img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.route-map__caption{
    position: absolute;
    left: 14px;
    bottom: 14px;
    padding: 7px 16px;
    border-radius: var(--radius-pill);
    background: var(--color-overlay);
    color: var(--color-surface);
    font-size: 13px;
}

/* --- Программа по дням ---------------------------------------------------- */
.days{ display: flex; flex-direction: column; }

.day{
    display: flex;
    gap: 20px;
    padding: 22px 0;
    border-top: 1px solid var(--color-divider-soft);
}

.day:first-child{
    padding-top: 0;
    border-top: 0;
}

.day__photo{
    flex: none;
    width: 150px;
    height: 104px;
    border-radius: var(--radius-tile);
    object-fit: cover;
}

.day__body{ min-width: 0; }

.day__head{
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.day__num{
    display: grid;
    place-items: center;
    flex: none;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-xs);
    background: var(--color-accent);
    color: var(--color-surface);
    font-size: 17px;
    font-weight: 800;
}

.day__title{
    margin-top: 8px;
    font-size: 17px;
    line-height: 24px;
    font-weight: 700;
}

.day__text{
    font-size: 14px;
    line-height: 22px;
}

.day__tag{
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    background: var(--color-accent-tint);
    color: var(--color-accent-text);
    font-size: 13px;
    line-height: 18px;
    font-weight: 700;
}

/* --- Отели ---------------------------------------------------------------- */
.hotels__list{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.hotel{
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.hotel__img{
    flex: none;
    width: 72px;
    height: 72px;
    border-radius: var(--radius-tile);
    object-fit: cover;
}

.hotel__name{
    font-size: 17px;
    line-height: 24px;
    font-weight: 700;
}

.hotel__place{
    margin-top: 4px;
    color: var(--color-text-secondary);
    font-size: 14px;
    line-height: 20px;
}

/* --- О туроператоре ------------------------------------------------------- */
.about__stats{
    display: grid;
    grid-template-columns: repeat(2, 1fr);   /* 2×2 — цифры не переносятся */
    gap: 14px;
    margin-bottom: 22px;
}

.stat{
    padding: 16px 18px;
    border-radius: var(--radius-tile);
    background: var(--color-input-bg);
}

.stat__value{
    color: var(--color-accent);
    font-size: 22px;
    line-height: 30px;
    font-weight: 800;
    white-space: nowrap;
}

.stat__label{
    margin-top: 2px;
    color: var(--color-text-secondary);
    font-size: 12.5px;
    line-height: 18px;
}

.review{
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 18px;
    border: 2px solid var(--color-accent-tint);
    border-radius: var(--radius-lg);
}

.review__avatar{
    display: grid;
    place-items: center;
    flex: none;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-xs);
    background: var(--color-accent);
    color: var(--color-surface);
    font-size: 18px;
    font-weight: 800;
}

.review__body{ min-width: 0; }

.review__name{
    font-size: 16px;
    line-height: 22px;
    font-weight: 700;
}

.review__date{
    color: var(--color-text-secondary);
    font-size: 14px;
    line-height: 20px;
}

.review__comment-short{
    font-size: 14px;
    line-height: 20px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.review__container {
    display: flex;
    gap: 20px;
}

.review__comment-short {

    text-overflow: ellipsis;  /* добавить ... */
    min-width: 200px;
}

.review__action{ margin-left: auto; }



/* --- Виджет бронирования -------------------------------------------------- */
.booking{
    padding: 24px;
    border-radius: var(--radius-lg);
    background: var(--color-surface);
    box-shadow: var(--shadow-card);
}

.booking__label{
    color: var(--color-text-secondary);
    font-size: 13px;
    line-height: 18px;
}

.booking__price{
    margin-top: 4px;
    font-size: 32px;
    line-height: 42px;
    font-weight: 800;
    letter-spacing: -0.01em;

}

.booking__price-note{
    margin-top: 4px;
    color: var(--color-text-secondary);
    font-size: 13px;
    line-height: 18px;
}

.booking__fields{
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

/* Поле: нативный select поверх плитки, стрелка/иконка — своя */
.field{
    position: relative;
    padding: 16px 18px;
    border-radius: var(--radius-tile);
    background: var(--color-input-bg);
}

.field__label{
    display: block;
    color: var(--color-text-secondary);
    font-size: 12px;
    line-height: 16px;
}

.field__control{
    width: 100%;
    padding: 0;
    padding-right: 32px;
    border: 0;
    background: transparent;
    font-size: 15px;
    font-weight: 700;
    line-height: 22px;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.field__control:focus-visible{
    outline: 2px solid var(--color-accent);
    outline-offset: 4px;
}

.field__icon{
    position: absolute;
    right: 18px;
    bottom: 18px;
    color: var(--color-text-secondary);
    pointer-events: none;
}

.booking__total{
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px dashed var(--color-divider);
}

.booking__total-label{
    color: var(--color-text-secondary);
    font-size: 14px;
}

.booking__total-value{
    font-size: 20px;
    line-height: 28px;
    font-weight: 800;
    white-space: nowrap;
}

.booking__submit{ margin-top: 16px; }

.booking__hint{
    margin-top: 12px;
    color: var(--color-text-secondary);
    font-size: 12.5px;
    line-height: 18px;
    text-align: center;
}

.booking__contacts{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 16px;
}

/* --- Подвал --------------------------------------------------------------- */
.site-footer{
    margin-top: 32px;
    padding: 44px 0 48px;
    background: var(--color-footer-bg);
}

.site-footer__cols{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px 24px;
}

.footer-col__title{
    margin-bottom: 14px;
    font-size: 15px;
    line-height: 22px;
    font-weight: 700;
}

.footer-col__item{ margin-bottom: 14px; }

.footer-col__link{
    font-size: 14px;
    line-height: 20px;
    color: var(--color-footer-link);
    transition: color 0.15s ease;
}

.footer-col__link:hover{ color: var(--color-accent-text); }

/* --- Нижняя панель (только на мобильном) ---------------------------------- */
.mobile-bar{
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 20;
    align-items: center;
    gap: 14px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: var(--color-surface);
    border-top: 1px solid var(--color-divider-soft);
    box-shadow: var(--shadow-bar);
}

.mobile-bar__price{
    font-size: 18px;
    line-height: 24px;
    font-weight: 800;
    white-space: nowrap;
}

.mobile-bar__note{
    color: var(--color-text-secondary);
    font-size: 12px;
    line-height: 16px;
}

.mobile-bar__cta{
    flex: 1;
    min-height: 44px;
    font-size: 15px;
}

/* ===== Адаптив компонентов ============================================== */

@media (max-width: 767px){
    .card{ padding: 20px 18px; }

    .hotels__list{ grid-template-columns: 1fr; }

    /* День — в столбик, фото сверху на всю ширину */
    .day{ flex-direction: column; gap: 14px; }

    .day__photo{
        width: 100%;
        height: 180px;
    }

    .site-footer__cols{ grid-template-columns: repeat(2, 1fr); }

}

@media (max-width: 380px){
    .booking__contacts{ grid-template-columns: 1fr; }
}

.booking .tour-details__content-input-card {
    padding: 0;
}




/* ==========================================================================
   Поля формы в сайдбаре бронирования. правки с DEEPSEEK
   Единый стиль: подпись — 12px Nunito, значение — 15px Nunito bold.
   Покрывает: «Выберите дату», «Количество туристов», «Гостиница», «Размещение».
   ========================================================================== */



@keyframes spin {
    to { transform: rotate(360deg); }
}
#map {
    min-height: 450px;
}


/* Стили для карты */
#yandex-map {
    background: #f5f5f5;
    transition: all 0.3s ease;
}

/* Стили для балунов */
.ymaps-2-1-79-balloon {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-radius: 8px;
}

/* Адаптивность */
@media (max-width: 768px) {
    #map {
        height: 300px !important;
    }
}

/* Убираем серую полосу справа у карты */
#yandex-map,
.ymaps-2-1-79-map,
.ymaps-2-1-79-copyrights-pane,
.ymaps-2-1-79-controls__toolbar {
    max-width: 100% !important;
    overflow: hidden !important;
}

.ymaps-2-1-79-map {
    width: 100% !important;
}

.ymaps-2-1-79-copyright {
    display: none !important;
}


/* Убираем отступы у контейнера карты */
.map.dropdown__body {
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    border-radius: 0 !important;
}



/* ==========================================================================
 Мобильная панель бронирования + раскрытие формы на весь экран.
 Форма — #tour-details-form (class='booking') в .tour-layout__sidebar.
 ========================================================================== */

.mobile-bar {
    display: none;               /* на десктопе скрыто */
}

/* На десктопе крестик не нужен */
@media (min-width: 768px) {
    .booking__close {
        display: none;
    }
}

@media (max-width: 1023px) {

    /* ---------- Нижняя панель ---------- */
    .mobile-bar {
        display: flex;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 30;
        align-items: center;
        gap: 14px;
        padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
        background: var(--color-surface);
        border-top: 1px solid var(--color-divider-soft);
        box-shadow: var(--shadow-bar);
        transition: transform 0.25s ease;
    }

    /* Панель прячется, когда форма раскрыта */
    body.booking-open .mobile-bar {
        transform: translateY(100%);
        pointer-events: none;
    }

    /* ---------- Сайдбар как модальное окно на весь экран ---------- */
    .tour-layout__sidebar {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        max-width: 100vw;
        height: 100vh;
        height: 100dvh;                /* корректная высота на мобильных с адресной строкой */
        max-height: 100vh;
        max-height: 100dvh;
        margin: 0;
        padding: 30px 20px;
        z-index: 100;                  /* выше шапки сайта */
        background: var(--color-surface);
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;

        /* Скрыто по умолчанию */
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(16px);
        transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
    }

    body.booking-open .tour-layout__sidebar {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }

    /* ---------- Карточка формы на всю ширину, без скруглений и тени ---------- */
    body.booking-open .tour-layout__sidebar .booking {
        width: 100%;
        min-height: 100%;
        margin: 0;
        border-radius: 0;
        box-shadow: none;
        padding: 64px 16px calc(20px + env(safe-area-inset-bottom));
        box-sizing: border-box;
    }

    /* Верхний отступ карточке, чтобы крестик не наезжал на контент */
    body.booking-open .tour-layout__sidebar .booking > :first-child:not(.booking__close) {
        margin-top: 0;
    }

    /* ---------- Кнопка закрытия ---------- */
    .booking__close {
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: calc(12px + env(safe-area-inset-top));
        right: 12px;
        width: 40px;
        height: 40px;
        border-radius: var(--radius-xs);
        background: var(--color-input-bg);
        color: var(--color-text);
        cursor: pointer;
        z-index: 2;
        border: 0;
        padding: 0;
    }

    .booking__close:active {
        background: var(--color-input-bg-hover);
    }

    /* ---------- Блокируем скролл body, пока форма открыта ---------- */
    body.booking-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
        height: 100%;
        /* Фиксируем текущую позицию скролла, чтобы страница не «прыгала» */
        top: 0;
        left: 0;
    }

    /* ---------- Скрываем шапку и футер сайта под модалкой ---------- */
    body.booking-open .header,
    body.booking-open .footer {
        visibility: hidden;
    }
}

/* Очень узкие экраны (iPhone SE и т.п.) */
@media (max-width: 360px) {
    body.booking-open .tour-layout__sidebar .booking {
        padding: 60px 12px calc(16px + env(safe-area-inset-bottom));
    }
}
















/* --- 1. Подписи-плейсхолдеры, отрисованные через ::before (Choices.js) --- */
.booking .tour-details__second-input-holder > .choices > .choices__inner::before,
.booking .tour-details__third-input-holder > .choices > .choices__inner::before,
.booking .tour-details__first-input-holder > .choices > .choices__inner::before {
    font-family: 'Nunito', sans-serif;
    font-size: 12px;
    line-height: 16px;
    font-weight: 400;
    color: var(--color-text-secondary);
}

/* --- 2. Подписи, отрисованные самим Choices.js как .choices__placeholder --- */
.booking .tour-details__first-input-holder .choices__placeholder,
.booking .tour-details__second-input-holder .choices__placeholder,
.booking .tour-details__third-input-holder .choices__placeholder {
    font-family: 'Nunito', sans-serif;
    font-size: 12px;
    line-height: 16px;
    font-weight: 400;
    color: var(--color-text-secondary);
}

/* --- 3. Нативный placeholder у поля даты --- */
.booking .custom-start-date_sidebar::placeholder {
    font-family: 'Nunito', sans-serif;
    font-size: 12px;
    line-height: 16px;
    font-weight: 400;
    color: var(--color-text-secondary);
    opacity: 1; /* Firefox по умолчанию уменьшает opacity */
}

/* --- 4. Выбранные значения в Choices.js (Гостиница, Размещение, Кол-во туристов) --- */
.booking .tour-details__first-input-holder .choices__list--single .choices__item,
.booking .tour-details__second-input-holder .choices__list--single .choices__item,
.booking .tour-details__third-input-holder .choices__list--single .choices__item {
    font-family: 'Nunito', sans-serif;
    font-size: 15px;
    line-height: 22px;
    font-weight: 700;
    color: var(--color-text);
}

/* --- 5. Выбранное значение в поле даты (текст в <input>) --- */
.booking .custom-start-date_sidebar {
    font-family: 'Nunito', sans-serif;
    font-size: 15px;
    line-height: 22px;
    font-weight: 700;
    color: var(--color-text);
}


    /* ==========================================================================
       Блок стоимости в сайдбаре бронирования.
       Явно переопределяем font-family, иначе побеждает * { font-family: Museo Sans }
       из style-tour.css.
       ========================================================================== */

    /* «Стоимость тура» — 13px Nunito */
.booking .booking__label {
    font-family: 'Nunito', sans-serif;
    font-size: 13px;
    line-height: 18px;
    font-weight: 400;
    color: var(--color-text-secondary);
}

/* Число «34 990» внутри «от ... ₽» — 32px Nunito */
.booking .booking__price,
.booking .booking__price #booking-price {
    font-family: 'Nunito', sans-serif;
    font-size: 32px;
    line-height: 42px;
    font-weight: 800;
    letter-spacing: -0.01em;
}

/* «за человека, 2-местное размещение» — 13px Nunito */
.booking .booking__price-note {
    font-family: 'Nunito', sans-serif;
    font-size: 13px;
    line-height: 18px;
    font-weight: 400;
    color: var(--color-text-secondary);
}

/* «Итого за 2 чел.» — 14px Nunito */
.booking .booking__total-label {
    font-family: 'Nunito', sans-serif;
    font-size: 14px;
    line-height: 20px;
    font-weight: 400;
    color: var(--color-text-secondary);
}

#booking-occupancy {
    font-size: 13px;
}

    /* «Не выбрана дата» / итоговая сумма — 20px Nunito */
.booking .booking__total-value,
.booking #totalPrice {
    font-family: 'Nunito', sans-serif;
    font-size: 20px;
    line-height: 28px;
    font-weight: 800;
    white-space: nowrap;
}

.public-places {
    gap: 5px;
}

.tour-details__checkbox-price {
    font-size: 12px;
}

.btn--accent {
    font-size: 16px;
}


/* ==========================================================================
   Выпадающие списки Choices.js в сайдбаре бронирования.
   Уменьшенный шрифт, перенос по словам, без полос прокрутки.
   ========================================================================== */

/* --- Пункты выпадающего списка --- */
.booking .choices__list--dropdown .choices__item {
    font-family: 'Nunito', sans-serif;
    font-size: 14px;
    line-height: 20px;
    font-weight: 400;
    color: var(--color-text);

    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
    hyphens: none;
}

/* --- Подсветка при наведении / выборе с клавиатуры --- */
.booking .choices__list--dropdown .choices__item--selectable.is-highlighted {
    background-color: var(--color-accent-tint);
}

/* --- Убираем полосы прокрутки на самом дропдауне --- */
.booking .choices.is-focused .choices__list--dropdown,
.booking .choices.is-active .choices__list--dropdown {
    max-height: none;
    overflow: hidden;
    border: 2px solid var(--color-accent);
    border-radius: 12px;
}

.booking .choices__list--dropdown::-webkit-scrollbar,
.booking .choices__list--dropdown .choices__list::-webkit-scrollbar {
    display: none;
}

/* --- Профилактика: перенос слов внутри всего дропдауна --- */
.booking .choices__list--dropdown,
.booking .choices__list--dropdown .choices__list {
    word-wrap: break-word;
    overflow-wrap: anywhere;
}

/* ==========================================================================
   Шрифт Nunito для контентной колонки тура (левая колонка).
   Перебиваем наследие `* { font-family: Museo Sans }` из style-tour.css.
   ========================================================================== */

/* --- Заголовок тура ------------------------------------------------------- */
#tour-title {
    font-family: 'Nunito', sans-serif !important;
}

/* --- «Что входит в стоимость» — подписи ---------------------------------- */
.include__label {
    font-family: 'Nunito', sans-serif !important;
}

/* --- Маршрут: строка городов + мета-факты -------------------------------- */
.tour-head__route {
    font-family: 'Nunito', sans-serif !important;
}

ul.tour-head__meta li.meta-fact > span,
ul.tour-head__meta li.meta-fact > span b,
ul.tour-head__meta li.meta-fact > span strong{
    font-family: 'Nunito', sans-serif !important;
    font-size: 14px;
}

/* --- Заголовки карточек-секций ------------------------------------------- */
.card__title {
    font-family: 'Nunito', sans-serif !important;
}

/* --- Программа по дням --------------------------------------------------- */
.day__num {
    font-family: 'Nunito', sans-serif !important;
}

.day__title {
    font-family: 'Nunito', sans-serif !important;
}

.day__text {
    font-family: 'Nunito', sans-serif !important;
}

.day__tag {
    font-family: 'Nunito', sans-serif !important;
}

/* --- О туроператоре: блок отзывов ---------------------------------------- */
.review {
    font-family: 'Nunito', sans-serif !important;
}

/* --- Отели по маршруту: карточка ----------------------------------------- */
.hotel {
    font-family: 'Nunito', sans-serif !important;
}

ul.about__stats li.stat p.stat__value,
ul.about__stats li.stat p.stat__label,
a.btn.btn--outline.review__action {
    font-family: 'Nunito', sans-serif !important;
}

p.review__name,
span.review__avatar,
p.review__date time {
    font-family: 'Nunito', sans-serif !important;
}

p.review__date time {
    font-size: 14px;
}

.hotel__name,
.hotel__place {
    font-family: 'Nunito', sans-serif !important;
}

.hidden_data {
    display: none;
}

.review__action.feedback__more.feedback__more-new {
    margin-left: auto;
    max-height: 30px;
}


.copyright__text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}


.copyright__text a {
    margin: 0 auto;
}


/* ==========================================================================
   FIX: перебиваем жёсткие max-width: 288px/320px из style-tour.css и site.css.
   Правила идут последними, специфичность достаточная, чтобы выиграть.
   ========================================================================== */

@media (max-width: 768px) {
    .container,
    main.page > .container,
    .tour-layout,
    .tour-layout__content,
    .tour-layout__gallery,
    .tour-layout__sidebar,
    .card,
    .booking {
        max-width: 100% !important;
        width: 100% !important;
        min-width: 0 !important;
    }

    /* Внутренние блоки карточек, где тоже 288px */
    .section-container,
    .agency-contacts,
    .tour-details__container,
    .tour-request__container,
    .reservation__container,
    .faq__container,
    .hotels__container,
    .profile__account-main-container,
    .article_container,
    .common-tours__container,
    .important-info__container,
    .partners-info__container,
    .contract__container,
    .booking-conditions__block,
    .tourist-memo__block,
    .transportation-services__block,
    .bank-details__container {
        max-width: 100% !important;
        width: 100% !important;
    }
}

@media (max-width: 1280px) {
    .footer__row {
        grid-template-columns: repeat(auto-fill, 280px) !important;
    }

    .header__content {
        display: none !important;
    }

    .header__content__mobile {
        display: flex !important;
        justify-content: space-between;
        padding: 0 20px;
    }

    .footer__container {
        width: auto !important;
    }

    header.header .header__container {
        max-width: 100% !important;
    }

    .header__content {
        width: 100% !important;
        display: flex;
        justify-content: space-between;
    }


}


/* ===== < 768px =========================================================== */
@media (max-width: 767px){
    :root{ --container-pad: 16px; --radius-lg: 20px; }

    .page{ padding-bottom: 96px; }   /* место под нижнюю панель */

    h1{ font-size: 26px; line-height: 34px; }

    .includes__list {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    .site-header__phone{ display: none; }

    /* Телефон скрыт — вправо кнопку толкает уже она сама */
    .site-header__login{ margin-left: auto; }

    .about__stats {
        grid-template-columns: repeat(1, 1fr);
    }

    header.header .header__container {
        max-width: 100% !important;
    }

    .footer__row {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }

    .copyright__row {
        margin-bottom: 95px !important;
    }

    .review__comment-short {
        max-height: 1.6em;
    }

    .review.feedback-card__custom {
        justify-content: start;
        flex-wrap: wrap;
    }

    .review__container {
        flex-direction: column;
    }


    .tour-details__content-input-card > .tour-details__second-input-select > .tour-details__second-input-holder > .choices > .choices__inner::before,
    .tour-details__content-input-card > .tour-details__input-block > .tour-details__third-input-select > .tour-details__third-input-holder > .choices > .choices__inner::before, .tour-details__content-input-card > .tour-details__input-block > .tour-details__first-input-select > .tour-details__first-input-holder > .choices > .choices__inner::before {
        top: 20px !important;
    }

    .tour-details__content-input-card > .tour-details__second-input-select > .tour-details__second-input-holder.has-value > .choices > .choices__inner::before,
    .tour-details__content-input-card > .tour-details__input-block > .tour-details__third-input-select > .tour-details__third-input-holder.has-value > .choices > .choices__inner::before,
    .tour-details__content-input-card > .tour-details__input-block > .tour-details__first-input-select > .tour-details__first-input-holder.has-value > .choices > .choices__inner::before {
        top: 8px !important;
    }

}


@media (max-width: 550px) {

    .review__action {
        margin: 0 auto 0 0;
    }

    .feedback__more__custom.feedback__more-new {
        min-width: 130px;
    }
}



/* ==========================================================================
   FIX: при ширине 768–1023px контент вылезает за экран.
   Причина — фиксированные width: 800px/752px/904px в style-tour.css
   и двухколоночная сетка при недостаточной ширине.
   ========================================================================== */

/*@media (max-width: 1023px) {*/
/*    .tour-layout {*/
/*        grid-template-columns: 1fr;*/
/*    }*/

/*    .tour-layout__gallery { order: 1; }*/
/*    .tour-layout__sidebar { order: 2; position: static; }*/
/*    .tour-layout__content { order: 3; }*/

/*    !* Все «резиновые» контейнеры из старых стилей *!*/
/*    .tour-details__container,*/
/*    .tour-request__container,*/
/*    .reservation__container,*/
/*    .common-tours__container,*/
/*    .faq__container,*/
/*    .hotels__container,*/
/*    .section-container,*/
/*    .about-company__container,*/
/*    .important-info__container,*/
/*    .partners-info__container,*/
/*    .contract__container,*/
/*    .tour-cost-descr,*/
/*    .tour-cost-table,*/
/*    .tour-cost-table-content,*/
/*    .reservation-hidden-policy,*/
/*    .tour-details__result-container {*/
/*        width: 100% !important;*/
/*        max-width: 100% !important;*/
/*        min-width: 0 !important;*/
/*    }*/

/*    !* Карточка маршрута — цепочка городов не должна вылезать *!*/
/*    .card.route,*/
/*    .route-chain {*/
/*        max-width: 100%;*/
/*        min-width: 0;*/
/*        overflow-wrap: anywhere;*/
/*    }*/

/*    .route-chain__city {*/
/*        max-width: 100%;*/
/*        overflow-wrap: anywhere;*/
/*    }*/
/*}*/

/*!* Отдельно — для 951px, если нужно сохранить двухколоночную сетку,*/
/*   уменьшаем сайдбар и внутренние отступы *!*/
/*@media (max-width: 1023px) and (min-width: 900px) {*/
/*    :root {*/
/*        --sidebar-width: 280px;*/
/*        --container-pad: 20px;*/
/*    }*/
/*}*/





/*!* ==========================================================================*/
/*   FIX: горизонтальный скролл на ноутбуках (1024–1280px).*/
/*   Причина — жёсткие width: 800/752/904/1215/1216px в style.css,*/
/*   style-tour.css, site.css, которые не переопределены выше 1023px.*/
/*   ========================================================================== *!*/

/* 1. Глобально: ни один блок не должен быть шире вьюпорта */


/**,*/
/**::before,*/
/**::after {*/
/*    min-width: 0; !* ломает распор flex/grid от фиксированных width *!*/
/*}*/



/*!* 3. Снимаем фиксированные ширины у всех «резиновых» контейнеров *!*/
/*@media (max-width: 1280px) {*/
/*    .tour-details__container,*/
/*    .tour-request__container,*/
/*    .tour-request__content-container,*/
/*    .reservation__container,*/
/*    .common-tours__container,*/
/*    .faq__container,*/
/*    .hotels__container,*/
/*    .section-container,*/
/*    .about-company__container,*/
/*    .important-info__container,*/
/*    .partners-info__container,*/
/*    .contract__container,*/
/*    .tour-cost-descr,*/
/*    .tour-cost-table,*/
/*    .tour-cost-table-content,*/
/*    .reservation-hidden-policy,*/
/*    .tour-details__result-container,*/
/*    .profile__account-main-container,*/
/*    .article_container,*/
/*    .tour-details__content-card-pic,*/
/*    .tour-request__content-card-pic,*/
/*    .tour-request__input-container,*/
/*    .tour-details__result-container,*/
/*    .tour-cost-descr-name {*/
/*        width: 100% !important;*/
/*        max-width: 100% !important;*/
/*        min-width: 0 !important;*/
/*    }*/

/*    !* Внутренние инпуты и таблицы, которые тоже были фиксированными *!*/
/*    .phone-input,*/
/*    .email-input,*/
/*    .fio-input,*/
/*    .input_large,*/
/*    .passport-input,*/
/*    .tour-input-form,*/
/*    .note-input,*/
/*    .tour-request__first-input,*/
/*    .tour-request__second-input,*/
/*    .tour-request__input-container,*/
/*    .reservation__input-container,*/
/*    .reservation__first-input,*/
/*    .reservation__second-input,*/
/*    .reservation__first-input-holder,*/
/*    .reservation__search-tour-form,*/
/*    .reservation__search-tour-form .custom-date {*/
/*        width: 100% !important;*/
/*        max-width: 100% !important;*/
/*    }*/

/*    !* Футер *!*/
/*    .footer__container,*/
/*    .footer__row {*/
/*        width: 100% !important;*/
/*        max-width: 100% !important;*/
/*    }*/

/*    !* Шапка *!*/
/*    .header__container,*/
/*    .header__content {*/
/*        width: 100% !important;*/
/*        max-width: 100% !important;*/
/*    }*/
/*}*/

/*!* 4. Особый случай — карта маршрута и галерея *!*/
/*#yandex-map,*/
/*.map-widget-map-component,*/
/*.gallery,*/
/*.gallery__img,*/
/*.route-map,*/
/*.route-map__img {*/
/*    max-width: 100% !important;*/
/*    overflow: hidden;*/
/*}*/

/*!* 5. Choices.js — не даёт дропдауну растянуть страницу *!*/
/*.choices {*/
/*    max-width: 100%;*/
/*}*/

/*.choices__inner,*/
/*.choices__list--dropdown {*/
/*    max-width: 100% !important;*/
/*    box-sizing: border-box;*/
/*}*/

/*!* 6. Таблицы, которые могут вылезать *!*/
/*table {*/
/*    max-width: 100%;*/
/*    overflow-x: auto;*/
/*    display: block; !* либо обернуть в .table-wrapper с overflow-x: auto *!*/
/*}*/

/*!* 7. Карточки туров в каталоге (если такие есть на странице) *!*/
/*.tour-card,*/
/*.tour-card-info,*/
/*.tour-img {*/
/*    max-width: 100% !important;*/
/*    min-width: 0 !important;*/
/*}*/




@media (max-width: 420px) {
    .mobile-bar {
        flex-direction: column;
        align-items: stretch;   /* кнопка растягивается на всю ширину */
        gap: 5px;
        padding: 10px;
    }

    /* Правый блок с ценой и надписью — сверху */
    .mobile-bar > div {
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

    /* Кнопка идёт сразу после блока с ценой */
    .mobile-bar__cta {
        flex: none;
        width: 100%;
    }

    .mobile-bar__price,
    .mobile-bar__note {
        margin: 0 auto;
    }

    .btn--accent {
        font-size: 14px;
    }

    .copyright__row {
        margin-top: 20px !important;
        margin-bottom: 120px !important;
    }

    .footer__nav-links {
        height: auto !important;
    }
}


.mobile-bar__price {
    font-family: var(--font-base), 'sans-serif';
}



/* ==========================================================================
   Кнопка Read More + анимированные SVG-иконки
   ========================================================================== */

/* --- Кнопка (в стиле .btn--accent) --------------------------------------- */

.readmore {
    margin-top: 12px;
}

.cs_readmore-btn {
    margin-top: 12px;
}

article.day .day__body .readmore p,
article.day .day__body .readmore font,
article.day .day__body .readmore p strong,
article.day .day__body .readmore p b,
article.day .day__body .readmore p em,
article.day .day__body .readmore p span {
    font-size: 14px !important;
    font-family: var(--font-base), 'sans-serif';
}

article.day .day__body .readmore p u,
article.day .day__body .readmore p span u {
    font-size: 14px !important;
    font-family: var(--font-base), 'sans-serif';
    text-decoration: underline;
}

article.day .day__body .readmore p a {
    font-size: 14px;
}




/* Текст с постоянным переливанием серый → белый (как договорились ранее) */
.cs_readmore-btn > span {
    font-family: var(--font-base), 'sans-serif';
    font-size: 14px;
    color: #8e8888;
}

.cs_readmore-btn > span:hover {
    color: var(--color-accent);
}


    /* ==========================================================================
       SVG-иконки
       ========================================================================== */

.readmore-icon {
    flex: none;
    display: inline-block;
    vertical-align: middle;
    overflow: visible;
}

/* Общий стиль для всех линий во всех иконках */
.readmore-icon .readmore-icon__line {
    fill: none;
    stroke-width: 1.4;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke: #1B1B1B;                    /* чёрный по умолчанию */
}

/* --------------------------------------------------------------------------
   Свёрнуто: три галочки вниз — волна перекраски сверху вниз
   -------------------------------------------------------------------------- */

.readmore-icon--triple-down .readmore-icon__line {
    animation: readmore-wave 1.8s ease-in-out infinite;
}

.readmore-icon--triple-down .readmore-icon__line--1 { animation-delay: 0s;   }  /* верх */
.readmore-icon--triple-down .readmore-icon__line--2 { animation-delay: 0.4s; }  /* центр */
.readmore-icon--triple-down .readmore-icon__line--3 { animation-delay: 0.8s; }  /* низ  */

/* --------------------------------------------------------------------------
   Развёрнуто: одна галочка вверх — мигает жёлтым
   -------------------------------------------------------------------------- */

.readmore-icon--up .readmore-icon__line {
    animation: readmore-wave-single 1.8s ease-in-out infinite;
}

/* --------------------------------------------------------------------------
   Ключевые кадры
   -------------------------------------------------------------------------- */

/* Волна: подсветка жёлтым на треть цикла, потом возврат в чёрный */
@keyframes readmore-wave {
    0%, 33%   { stroke: #FF7600; }
    66%, 100% { stroke: #F5F7FAFF; }
}

/* Одиночная галочка — то же поведение */
@keyframes readmore-wave-single {
    0%, 33%   { stroke: #FF7600; }
    66%, 100% { stroke: #F5F7FAFF; }
}

/* ==========================================================================
   Развёрнутое состояние кнопки — нейтральный серый фон
   ========================================================================== */

.cs_readmore-btn[data-readmore-btn-toggle="expanded"] {
    margin-top: 10px;
}

/* ==========================================================================
   Мобильная адаптация
   ========================================================================== */

@media (max-width: 767px) {
    .cs_readmore-btn {

        min-height: 44px;
        font-size: 15px;
        gap: 10px;
    }


    .readmore-icon--triple-down,
    .readmore-icon--up {
        width: 18px;
    }

    .readmore-icon--triple-down {
        height: 20px;
    }
}

/* ==========================================================================
   prefers-reduced-motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    .cs_readmore-btn > span,
    .readmore-icon .readmore-icon__line {
        animation: none;
    }

    .cs_readmore-btn > span {
        background-image: none;
        color: var(--color-surface, #fff);
        -webkit-text-fill-color: var(--color-surface, #fff);
    }

    .cs_readmore-btn[data-readmore-btn-toggle="expanded"] > span {
        color: var(--color-text, #1B1B1B);
        -webkit-text-fill-color: var(--color-text, #1B1B1B);
    }

    .readmore-icon .readmore-icon__line {
        stroke: #1B1B1B;
    }
}



/* Кнопка не должна «растягиваться» на всю ширину на мобильном —
   иначе тап по тексту рядом попадает в неё */
@media (max-width: 767px) {
    .cs_readmore-btn {
        width: auto !important;
        align-self: flex-start;
    }
}

/* Отключаем 300ms-задержку и double-tap zoom на кнопке */
.cs_readmore-btn {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

/* Текст внутри .readmore участвует в вертикальном скролле,
   а не в жестах кнопки */
.readmore {
    touch-action: pan-y;
}

div.tour-details__table-cost {
    overflow: auto !important;
}
table.tour-detail-table-main .common-text {
    font-family: var(--font-base), 'sans-serif';
    font-size: 13px;
    word-break: keep-all;
    overflow-wrap: normal;
}

table.tour-detail-table-main th,
table.tour-detail-table-main td {
    padding: 5px;
}

table.tour-detail-table-main th.tour-detail-table-head {
    min-width: 180px;
}


@media screen and (max-width: 768px) {
    .tour-details__table-cost-container {
        width: 100% !important;
    }
}



/* =========================================================
   Попап информации о городе
   ========================================================= */

.city-info-popup {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;

    /* Полупрозрачный фон + размытие как в оригинальном попапе */
    background: rgba(0, 0, 0, 0.35);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);

    padding: 20px;

    /* Скрытое состояние */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
            opacity 0.3s ease,
            visibility 0s linear 0.3s;
}

.city-info-popup.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition:
            opacity 0.3s ease,
            visibility 0s linear 0s;
}

/* Контент попапа */
.city-info-popup .read-more-popup__content {
    position: relative;
    background: #fff;
    border-radius: 12px;
    max-width: 560px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    padding: 45px 34px 32px 34px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);

    /* Анимация появления контента */
    transform: translateY(16px) scale(0.97);
    opacity: 0;
    transition:
            transform 0.35s cubic-bezier(0.2, 0.9, 0.3, 1),
            opacity   0.35s ease;
}

.city-info-popup.is-open .read-more-popup__content {
    transform: translateY(0) scale(1);
    opacity: 1;
}

/* Кнопка закрытия */
.city-info-popup .read-more-popup__close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #333;
    padding: 4px;
    line-height: 0;
    transition: color 0.2s ease, transform 0.2s ease;
}

.city-info-popup .read-more-popup__close:hover {
    color: #FF7600;
    transform: scale(1.08);
}

/* =========================================================
   Картинка города
   ========================================================= */

.city-info-popup .read-more-popup__img {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;       /* резервируем место, попап не дёргается */
    border-radius: 8px;
    margin-bottom: 16px;
    overflow: hidden;
    background: #f3f3f3;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Если картинки нет — контейнер не занимает места */
.city-info-popup .read-more-popup__img:empty {
    display: none;
    margin-bottom: 0;
}

/* Скелетон-мерцание, пока грузится картинка */
.city-info-popup .read-more-popup__img::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
            90deg,
            #f3f3f3 0%,
            #e9e9e9 50%,
            #f3f3f3 100%
    );
    background-size: 200% 100%;
    animation: city-img-skeleton 1.4s ease-in-out infinite;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 0;
}

/* Когда картинка загружена — скелетон исчезает */
.city-info-popup .read-more-popup__img.is-loaded::before {
    opacity: 0;
}

/* Сама картинка */
.city-info-popup .read-more-popup__img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 1;

    /* Начальное состояние — прозрачная, чуть увеличена */
    opacity: 0;
    transform: scale(1.03);
    transition:
            opacity   0.45s ease,
            transform 0.6s ease;
}

/* Плавное появление после загрузки */
.city-info-popup .read-more-popup__img.is-loaded img {
    opacity: 1;
    transform: scale(1);
}

/* Анимация скелетона */
@keyframes city-img-skeleton {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* =========================================================
   Текст
   ========================================================= */

.city-info-popup .read-more-popup__text {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    white-space: pre-line;
}

/* =========================================================
   Блокировка скролла при открытом попапе города.
   Замораживаем body на текущей позиции через position: fixed,
   поэтому страница не «прыгает» ни вниз, ни вверх.
   ========================================================= */

body.no-scroll {
    position: fixed;
    top: calc(-1 * var(--scroll-position, 0px));
    left: 0;
    right: 0;
    width: 100%;
    overflow: hidden;
    /* Ширина скроллбара компенсируется, чтобы контент не дёргался вправо */
    padding-right: var(--scrollbar-width, 0px);
}

/* Фиксированные элементы тоже сдвигаем на ширину скроллбара */
body.no-scroll .header,
body.no-scroll .footer,
body.no-scroll .mobile-bar {
    padding-right: var(--scrollbar-width, 0px);
}

/* =========================================================
   Мобильная адаптация
   ========================================================= */

@media (max-width: 600px) {
    .city-info-popup {
        padding: 12px;
    }

    .city-info-popup .read-more-popup__content {
        padding: 40px 20px 24px 20px;
        max-height: 88vh;
    }

    .city-info-popup .read-more-popup__img {
        aspect-ratio: 4 / 3;   /* на телефоне удобнее повыше */
        margin-bottom: 12px;
    }

    .city-info-popup .read-more-popup__text {
        font-size: 15px;
    }
}


.custom-start-date_sidebar ~ .air-datepicker,
.tour-details_string-datepicker-sidebar.air-datepicker {
    margin-top: -2px !important;  /* оставляем как есть */
    padding-top: 0 !important;  /* компенсируем: контент начинается ниже */
}



/* ==========================================================================
   Лайтбокс для галереи тура
   ========================================================================== */

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(15, 15, 15, 0.92);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.28s ease, visibility 0s linear 0.28s;
}

.lightbox.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 0.28s ease, visibility 0s linear 0s;
}

/* --- Контент ------------------------------------------------------------- */
.lightbox__content {
    position: relative;
    max-width: min(92vw, 1400px);
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;

    /* Появление */
    transform: scale(0.96);
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.3, 1), opacity 0.35s ease;
}

.lightbox.is-open .lightbox__content {
    transform: scale(1);
    opacity: 1;
}

.lightbox__img {
    display: block;
    max-width: 100%;
    max-height: 82vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
    background: #111;
}

.lightbox__caption {
    position: absolute;
    bottom: 10px;
    margin: 16px 0;
    padding: 8px 18px;
    border-radius: var(--radius-pill, 20px);
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-family: var(--font-base, sans-serif);
    font-size: 14px;
    line-height: 20px;
    max-width: 90vw;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* --- Кнопка закрытия ----------------------------------------------------- */
.lightbox__close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, transform 0.2s ease;
    padding: 0;
}

.lightbox__close:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.08);
}

.lightbox__close:active {
    transform: scale(0.95);
}

/* --- Стрелки навигации --------------------------------------------------- */
.lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, transform 0.2s ease;
    padding: 0;
    z-index: 99;
}

.lightbox__nav:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-50%) scale(1.08);
}

.lightbox__nav:active {
    transform: translateY(-50%) scale(0.95);
}

.lightbox__nav--prev { left: 24px; }
.lightbox__nav--next { right: 24px; }

/* --- Счётчик ------------------------------------------------------------- */
.lightbox__counter {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    padding: 6px 16px;
    border-radius: var(--radius-pill, 20px);
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-family: var(--font-base, sans-serif);
    font-size: 13px;
    line-height: 18px;
    font-weight: 600;
    letter-spacing: 0.05em;
}

/* --- Курсор на картинках в галерее -------------------------------------- */
.gallery__slider .gallery__item {
    cursor: zoom-in;
}

/* --- Блокировка скролла body -------------------------------------------- */
body.lightbox-open {
    overflow: hidden;
}

/* --- Мобильная адаптация ------------------------------------------------- */
@media (max-width: 767px) {
    .lightbox__close {
        top: calc(12px + env(safe-area-inset-top));
        right: 12px;
        width: 40px;
        height: 40px;
    }

    .lightbox__nav {
        width: 44px;
        height: 44px;
    }

    .lightbox__nav--prev { left: 8px; }
    .lightbox__nav--next { right: 8px; }

    .lightbox__img {
        max-height: 72vh;
    }

    .lightbox__caption {
        font-size: 13px;
        max-width: 80vw;
    }

    .lightbox__counter {
        bottom: 16px;
    }
}

/* Уважаем prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    .lightbox,
    .lightbox__content {
        transition-duration: 0.01ms !important;
    }
}

.city-info-loader {
    display: flex;
    justify-content: center;
    padding: 24px 0;
    color: var(--color-accent);
}

.city-info-loader svg {
    animation: city-info-spin 0.9s linear infinite;
}

@keyframes city-info-spin {
    to { transform: rotate(360deg); }
}

.readmore em {
    font-style: italic;
}

.tour-details__additional-cost {
    margin: 20px 0 0 5px;
}

.tour-details__additional-cost,
.tour-details__additional-cost p,
.tour-details__additional-cost p strong,
.tour-details__additional-cost p b,
.tour-details__additional-cost p span,
.tour-details__additional-cost p i,
.tour-details__additional-cost p u,
.tour-details__additional-cost p em {
    font-size: 14px !important;
    font-family: var(--font-base), 'sans-serif';
}

.tour-details__additional-cost p em {
    font-style: italic;
}


.booking-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
}
.booking-modal.is-open {
    display: block;
}

.booking-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .55);
    backdrop-filter: blur(2px);
}

.booking-modal__content {
    position: absolute;
    inset: 0;
    background: #fff;
    overflow-y: auto;
    padding: 24px;
}

@media (min-width: 992px) {
    /* На десктопе — тоже на весь экран, но с ограничением контента */
    .booking-modal__content {
        padding: 40px 24px;
    }
}

.booking-modal__body {
    max-width: 720px;
    margin: 0 auto;
}

.booking-modal__close {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 10;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: #f2f2f2;
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.booking-modal__close:hover {
    background: #e5e5e5;
}

body.booking-modal-open {
    overflow: hidden;
}


/* форма бронирования */
.tour-booking-scope .tour-details__content-input-card,
.tour-booking-scope .tour-request__input-container,
.tour-booking-scope .tour-request__input-container_agency,
.tour-booking-scope .tour-request__first-input,
.tour-booking-scope .tour-request__first-input-holder,
.tour-booking-scope .tour-request__first-input-eat,
.tour-booking-scope .tour-request__second-input,
.tour-booking-scope .tour-request__second-input-holder,
.tour-booking-scope .tour-request__second-input-select,
.tour-booking-scope .tour-request__second-input-residence,
.tour-booking-scope .tour-request__field,
.tour-booking-scope .first-input,
.tour-booking-scope .second-input {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box;
}

.tour-booking-scope .tour-request__input-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    width: 100%;
    max-width: 100%;
}

.tour-booking-scope .tour-request__input-container > .first-input,
.tour-booking-scope .tour-request__input-container > .second-input,
.tour-booking-scope .tour-request__input-container > .tour-request__first-input,
.tour-booking-scope .tour-request__input-container > .tour-request__second-input,
.tour-booking-scope .tour-request__input-container > .tour-request__first-input-eat,
.tour-booking-scope .tour-request__input-container > .tour-request__second-input-select,
.tour-booking-scope .tour-request__input-container > .tour-request__second-input-residence {
    flex: 1 1 0;
    min-width: 0;
}

.tour-booking-scope .tour-request__input-container > .svg-icon-input {
    flex: 0 0 auto;
    display: none;
}

.tour-booking-scope .tour-input-form,
.tour-booking-scope .input-main,
.tour-booking-scope .number-of-programm,
.tour-booking-scope .number-of-tourists,
.tour-booking-scope .number-of-attendant,
.tour-booking-scope .fio-input,
.tour-booking-scope .phone-input,
.tour-booking-scope .email-input,
.tour-booking-scope .note-input,
.tour-booking-scope .input_large {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box;
}

.tour-booking-scope .choices,
.tour-booking-scope .choices__inner {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .tour-booking-scope .tour-request__input-container {
        flex-wrap: nowrap;
    }
    .tour-booking-scope .tour-request__input-container > .svg-icon-input {
        display: block;
    }
}

@media (max-width: 480px) {
    .tour-booking-scope .tour-request__input-container > .first-input,
    .tour-booking-scope .tour-request__input-container > .second-input,
    .tour-booking-scope .tour-request__input-container > .tour-request__first-input,
    .tour-booking-scope .tour-request__input-container > .tour-request__second-input,
    .tour-booking-scope .tour-request__input-container > .tour-request__first-input-eat,
    .tour-booking-scope .tour-request__input-container > .tour-request__second-input-select,
    .tour-booking-scope .tour-request__input-container > .tour-request__second-input-residence {
        flex: 1 1 100%;
    }
}





