/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
  
    /* основной зелёный (единый для кнопок/акцентов) */
    --primary-color: #10b981;
    --primary-dark: #059669;
    /* красный бренда (как в logo `fs-svg.svg`: #E73C3E) */
    --brand-red: #E73C3E;
    --secondary-color: #4a8eff;    
    --text-dark: #1b1028;
    --text-light: #6c6f8c;
    --bg-light: #f4f6ff;
    --white: #ffffff;
    --border-color: #e0e3f2;
    --shadow: 0 2px 10px rgba(17, 24, 39, 0.12);
    --shadow-hover: 0 8px 22px rgba(17, 24, 39, 0.18);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Глобальная подложка (только там, где body.site-bg) */
body.site-bg {
    background: #071018;
}

body.site-bg::before {
    content: '';
    position: fixed;
    inset: 0;
    background: url('images/hero-main.jpg') center/cover no-repeat;
    z-index: -2;
    transform: translateZ(0);
}

body.site-bg::after {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(1200px 600px at 50% 0%, rgba(0, 0, 0, 0.06) 0%, rgba(0, 0, 0, 0.22) 70%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.12) 0%, rgba(0, 0, 0, 0.08) 35%, rgba(0, 0, 0, 0.18) 100%);
    z-index: -1;
}

/* Полупрозрачные панели поверх подложки */
.panel {
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 22px;
    padding: 22px 20px;
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.20);
    backdrop-filter: blur(10px);
}

.panel--glass {
    /* Белое матовое "стекло" */
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.68) 0%,
        rgba(255, 255, 255, 0.58) 55%,
        rgba(255, 255, 255, 0.64) 100%
    );
    border: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.18);
    color: var(--text-dark);
}

.panel--white {
    /* Белая подложка модуля (без "стекла") */
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.14);
    color: var(--text-dark);
}

/* Footer на главной: без чёрного фона, в стиле "матового стекла" */
body.site-bg .footer {
    background: transparent !important;
    color: var(--text-dark) !important;
    padding: 34px 0 16px !important;
}
body.site-bg .footer > .container {
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.68) 0%,
        rgba(255, 255, 255, 0.58) 55%,
        rgba(255, 255, 255, 0.64) 100%
    );
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 22px;
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(10px);
    padding: 18px 18px;
}
body.site-bg .footer-map {
    max-width: 100%;
    margin: 0 0 28px;
}
body.site-bg .footer-map iframe {
    height: 220px !important;
}
@media (max-width: 980px) {
    body.site-bg .footer-map iframe {
        height: 240px !important;
    }
}
@media (max-width: 640px) {
    body.site-bg .footer-map iframe {
        height: 220px !important;
    }
}
body.site-bg .footer-content {
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 24px;
    margin-bottom: 16px;
}
body.site-bg .footer-section h4 {
    font-size: 14px;
    margin-bottom: 10px;
}
body.site-bg .footer-section p,
body.site-bg .footer-section ul li a {
    font-size: 13px;
}
body.site-bg .footer-section ul li {
    margin-bottom: 8px;
}
body.site-bg .social-links {
    margin-top: 12px;
}
body.site-bg .social-links a {
    width: 34px;
    height: 34px;
}
body.site-bg .footer-bottom {
    padding-top: 14px;
    font-size: 12px;
}
body.site-bg .footer-section p,
body.site-bg .footer-section ul li a,
body.site-bg .footer-bottom {
    color: var(--text-light) !important;
}
body.site-bg .footer-section h3,
body.site-bg .footer-section h4 {
    color: var(--text-dark) !important;
}
body.site-bg .footer-section ul li a:hover,
body.site-bg .footer-bottom a:hover {
    color: var(--text-dark) !important;
}

.panel--dark {
    background: rgba(15, 23, 42, 0.42);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #fff;
}

/* Header — прозрачный поверх hero */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: transparent;
    box-shadow: none;
    /* Держим шапку выше обычного контента,
       но ниже внешних модалок/виджетов (Tourvisor и др.) */
    z-index: 1000;
    pointer-events: auto;
    isolation: isolate;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.header.scrolled {
    background: #ffffff !important;
    box-shadow: var(--shadow) !important;
}

/* Страницы без hero: шапка всегда непрозрачная (статьи, круизы и т.д.) */
.header.header--static {
    background: #ffffff !important;
    box-shadow: var(--shadow) !important;
}
.header.header--static .nav-menu a,
.header.header--static .btn-phone,
.header.header--static .nav-actions .callback-open-btn,
.header.header--static .nav-email,
.header.header--static .logo img,
.header.header--static .btn-menu-toggle span { color: var(--text-dark); }
.header.header--static .logo img { filter: none; }
.header.header--static .btn-menu-toggle span { background: var(--text-dark); }

.header.scrolled .nav-menu a { color: var(--text-dark); }
.header.scrolled .btn-menu-toggle span {
    color: var(--text-dark);
    background: var(--text-dark);
}
.header.scrolled .nav-menu a:hover { color: var(--brand-red); }
.header.scrolled .nav-menu a::after { background: var(--brand-red); }
.header.scrolled .logo img { filter: none; }
.header.scrolled .btn-phone { color: var(--text-dark); }
.header.scrolled .btn-phone:hover { color: var(--primary-color); }

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100px;
}

.logo img,
.logo svg {
    display: block;
    height: 100px;
    width: auto;
    max-width: 250px;
    object-fit: contain;
    opacity: 1;
    transition: filter 0.3s ease, color 0.3s ease;
}

/* Логотип (img) — белый на прозрачной шапке, цветной при прокрутке */
.logo img {
    filter: none;
}

.header.scrolled .logo img {
    filter: none;
}

.logo svg {
    height: 60px;
    width: auto;
    color: rgba(255, 255, 255, 0.95);
}

.header.scrolled .logo svg {
    color: var(--text-dark);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 32px;
    align-items: center;
}

.nav-menu a {
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: var(--transition);
    position: relative;
}

.nav-menu a:hover {
    color: var(--brand-red);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: rgba(255, 255, 255, 0.9);
    transition: var(--transition);
}

.nav-menu a:hover::after {
    width: 100%;
}

/* Телефон в меню — показывается только на мобильных */
.nav-phone-item,
.nav-email-item {
    display: none;
}

/* Подменю «Подбор тура» */
.nav-item-dropdown {
    position: relative;
}
.nav-submenu {
    position: absolute;
    top: 100%;
    left: 0;
    margin: 0;
    padding: 8px 0;
    list-style: none;
    min-width: 220px;
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    z-index: 100;
}
.nav-item-dropdown:hover .nav-submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(4px);
}
.nav-submenu li {
    margin: 0;
    padding: 0;
}
.nav-submenu a {
    display: block;
    padding: 10px 16px;
    color: var(--text-dark);
    font-size: 14px;
    white-space: nowrap;
}
.nav-submenu a::after {
    display: none;
}
.nav-submenu a:hover {
    background: var(--bg-light);
    color: var(--primary-color);
}
.header.scrolled .nav-submenu a {
    color: var(--text-dark);
}
.header.scrolled .nav-submenu a:hover {
    color: var(--primary-color);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.btn-phone {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition);
}

.btn-phone:hover {
    color: #ffdd8a;
}

.nav-actions .callback-open-btn {
    background: none;
    border: none;
    padding: 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--white);
    cursor: pointer;
    text-decoration: none;
    font-family: inherit;
}
.nav-actions .callback-open-btn:hover {
    color: #ffdd8a;
}

/* CTA-кнопки в хэдере (Подберите тур / Заказ звонка) */
.nav-actions .nav-cta-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
.nav-actions .nav-ctas {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
    justify-content: flex-end;
}
.nav-actions .nav-cta-stack .btn-phone {
    align-self: center;
    text-align: center;
}
.nav-actions .nav-cta-stack .nav-ctas {
    justify-content: center;
}
.nav-actions .nav-cta-btn {
    background: var(--primary-color);
    color: var(--white);
    border: 1px solid transparent;
    padding: 9px 12px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    line-height: 1;
    white-space: nowrap;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.10);
}

.nav-actions .nav-cta-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

/* В мобильном меню кнопки должны выглядеть как пункты списка */
.nav-menu .nav-lead-item .lead-open-btn,
.nav-menu .nav-callback-item .callback-open-btn {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    color: inherit;
    cursor: pointer;
    text-align: left;
}

/* В десктопном меню «Заказ звонка» не показываем — только под телефоном справа и в мобильном меню */
@media (min-width: 969px) {
    .nav-menu .nav-callback-item {
        display: none !important;
    }
    .nav-menu .nav-lead-item {
        display: none !important;
    }
}
.header.scrolled .nav-actions .callback-open-btn {
    color: var(--text-dark);
}
.header.scrolled .nav-actions .callback-open-btn:hover {
    color: var(--primary-color);
}

/* Чтобы CTA-кнопки не “перекрашивались” правилами scrolled/header--static */
.header.header--static .nav-actions .nav-cta-btn,
.header.scrolled .nav-actions .nav-cta-btn {
    background: var(--primary-color);
    color: var(--white);
}
.header.header--static .nav-actions .nav-cta-btn:hover,
.header.scrolled .nav-actions .nav-cta-btn:hover {
    background: var(--primary-dark);
    color: var(--white);
}

/* В состоянии scrolled текстовые кнопки (без nav-cta-btn) остаются текстовыми */
.header.scrolled .nav-actions .callback-open-btn:not(.nav-cta-btn) {
    color: var(--text-dark);
}
.header.scrolled .nav-actions .callback-open-btn:not(.nav-cta-btn):hover {
    color: var(--primary-color);
}

.nav-email {
    color: var(--white);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: var(--transition);
}

.nav-email:hover {
    color: #ffdd8a;
}

.header.scrolled .nav-email {
    color: var(--text-dark);
}

.header.scrolled .nav-email:hover {
    color: var(--primary-color);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-actions {
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.btn-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.btn-menu-toggle span {
    width: 24px;
    height: 2px;
    background: rgba(255, 255, 255, 0.95);
    transition: background 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
}

.btn-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.btn-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.btn-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Hero Section — подтянут под прозрачный header */
.hero {
    position: relative;
    min-height: 100vh;
    /* На мобильных 100dvh может "прыгать" при скрытии адресной строки */
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 0;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.75) 50%),
        url('images/hero-main.jpg') center/cover no-repeat;
}

/* Если hero-main используется как глобальная подложка, не дублируем фон внутри hero */
body.site-bg .hero-background {
    display: none;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.55) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
    color: var(--white);
    padding: 130px 20px 34px;
    box-sizing: border-box;
}

.hero-search {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1200px;
    padding: 0 20px 80px;
    box-sizing: border-box;
}

.hero-search .tv-search-form.tv-moduleid-9975241 {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.hero-title {
    margin: 0 0 14px;
    line-height: 1.12;
    letter-spacing: -0.6px;
}
.hero-title span {
    display: block;
}
.hero-line-1 {
    font-family: 'Manrope', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 48px;
    font-weight: 800;
}
.hero-line-2 {
    margin-top: 8px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 26px;
    font-weight: 600;
    opacity: 0.95;
}

.hero-subtitle {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    align-items: center;
    justify-content: flex-start;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 28px;
    opacity: 1;
}
.hero-subtitle-link {
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.35);
    padding-bottom: 1px;
    transition: color 0.2s ease, border-color 0.2s ease;
}
.hero-subtitle-link:hover {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.75);
}
.hero-subtitle-sep {
    color: rgba(255, 255, 255, 0.55);
}

@media (max-width: 768px) {
    .hero-content {
        padding-top: 118px;
    }
    .hero-line-1 {
        font-size: 34px;
    }
    .hero-line-2 {
        font-size: 20px;
    }
}

/* ========== Tourvisor: только маленький модуль на главной (hero 9975241). Остальное закомментировано. ========== */
/* Убираем синий фон формы Tourvisor в hero */
.hero .TVMainForm,
.hero .TVMainFilter {
    background-color: transparent !important;
    background-image: none !important;
}
.hero .TVSearchButton.TVButtonColor {
    background-color: var(--primary-color) !important;
    background-image: none !important;
    color: var(--white) !important;
}
.hero .TVSearchButton.TVButtonColor:hover {
    background-color: var(--primary-dark) !important;
}
/* Закомментировано: общие .tv-search-form (без .hero), чтобы не трогать модули на других страницах:
.tv-search-form .TVMainForm { ... }
.tv-search-form .TVMainFilter { ... }
.tv-search-form .TVSearchButton.TVButtonColor { ... }
*/

.search-container {
    background: var(--white);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    margin-top: 32px;
}

.search-form {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr auto;
    gap: 16px;
    align-items: end;
}

.search-field {
    display: flex;
    flex-direction: column;
    position: relative;
}

.search-field label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.search-field input {
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    transition: var(--transition);
    background: var(--white);
}

.search-field input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
}

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-top: 4px;
    max-height: 200px;
    overflow-y: auto;
    display: none;
    z-index: 100;
    box-shadow: var(--shadow-hover);
}

.search-suggestions.active {
    display: block;
}

.suggestion-item {
    padding: 12px 16px;
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 1px solid var(--border-color);
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background: var(--bg-light);
}

.btn-search {
    padding: 12px 32px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    height: fit-content;
}

.btn-search:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.3);
}

/* Sale Banner */
.sale-banner {
    background: var(--white);
    padding: 48px 0 32px;
    text-align: left;
}

/* Авиабилеты: 3 модуля в ряд (DXB, IST, BKK) */
.avia-cards-section {
    background: var(--white);
    padding: 48px 0 32px;
}
.avia-cards-section .module-heading {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-dark);
}
.avia-cards-row {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
}
.avia-card-item {
    flex: 0 0 260px;
    min-width: 260px;
}
@media (max-width: 900px) {
    .avia-cards-row {
        flex-direction: column;
        align-items: center;
    }
}

.about-min-price h2 {
    font-size: 28px;
    font-weight: 700;
    margin: 32px 0 12px;
    color: var(--text-dark);
}

.sale-content h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.sale-content p {
    font-size: 16px;
    margin-bottom: 16px;
    color: var(--text-light);
}

/* Promo directions (как на mpzefir — Пора лететь на отдых!) */
.promo-directions {
    padding: 64px 0;
    background: var(--bg-light);
}

.promo-directions .section-header {
    margin-bottom: 40px;
}

.promo-directions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.promo-direction-card {
    background: var(--white);
    border-radius: 12px;
    padding: 28px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.promo-direction-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 8px 24px rgba(255, 44, 138, 0.12);
}

.promo-direction-card h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.promo-direction-card p {
    font-size: 15px;
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.5;
}

.promo-direction-card .btn-sale {
    display: inline-block;
}

/* Нужна помощь? — форма заявки */
.help-request {
    padding: 64px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    text-align: center;
}

.help-request h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
}

.help-request .help-request-lead {
    font-size: 18px;
    opacity: 0.95;
    margin-bottom: 32px;
}

.help-request-form {
    max-width: 420px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.help-request-form input {
    padding: 14px 18px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
}

.help-request-form input::placeholder {
    color: var(--text-light);
}

.help-request-form button {
    padding: 14px 28px;
    background: var(--white);
    color: var(--primary-color);
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.help-request-form button:hover {
    background: var(--bg-light);
    transform: translateY(-1px);
}

/* FAQ — Вопросы и ответы */
.faq-section {
    padding: 64px 0;
    background: var(--white);
}

.faq-section .section-header p {
    margin-bottom: 40px;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 12px;
    overflow: hidden;
}

.faq-item summary {
    padding: 20px 24px;
    cursor: pointer;
    font-size: 17px;
    font-weight: 600;
    color: var(--text-dark);
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: var(--transition);
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    font-size: 24px;
    font-weight: 300;
    color: var(--primary-color);
}

.faq-item[open] summary::after {
    content: '−';
}

.faq-item summary:hover {
    background: var(--bg-light);
}

.faq-item .faq-answer {
    padding: 0 24px 24px;
    font-size: 15px;
    line-height: 1.65;
    color: var(--text-light);
}

.faq-item .faq-answer p {
    margin: 0 0 12px;
}

.faq-item .faq-answer p:last-child {
    margin-bottom: 0;
}

/* FAQ компактный — перед футером */
.faq-section.faq-compact {
    padding: 40px 0 48px;
    background: var(--bg-light);
}

.faq-compact-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 24px;
    text-align: center;
}

.faq-list-compact {
    max-width: 720px;
    margin: 0 auto;
}

.faq-list-compact .faq-item {
    margin-bottom: 8px;
    border-radius: 6px;
}

.faq-list-compact .faq-item summary {
    padding: 12px 16px;
    font-size: 15px;
    font-weight: 600;
}

.faq-list-compact .faq-item summary::after {
    font-size: 18px;
}

.faq-list-compact .faq-item .faq-answer {
    padding: 0 16px 14px;
    font-size: 14px;
    line-height: 1.55;
}

.faq-list-compact .faq-item .faq-answer p {
    margin: 0 0 6px;
}

/* Блок «Остались вопросы» — узкая полоска на всю ширину body */
.help-cta {
    padding: 0;
    background: var(--bg-light);
    border-top: 1px solid rgba(15, 23, 42, .06);
    border-bottom: 1px solid rgba(15, 23, 42, .06);
}

.help-cta.help-cta--in-about {
    /* Внутри блока "О нас" это не full-width полоска, а карточка в панели */
    margin-top: 18px;
    background: transparent;
    border: none;
}

.help-cta-inner {
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 16px 24px;
    padding: 14px 20px;
    margin: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    text-align: center;
    border: none;
}

.help-cta--in-about .help-cta-inner {
    justify-content: space-between;
    text-align: left;
    padding: 16px 18px;
    border-radius: 16px;
    border: 1px solid rgba(15, 23, 42, 0.10);
    background: linear-gradient(
        180deg,
        rgba(16, 185, 129, 0.06) 0%,
        rgba(255, 255, 255, 1) 70%
    );
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.10);
}

.help-cta-text {
    font-size: 14px;
    color: var(--text-dark);
    line-height: 1.5;
    margin: 0;
}

.help-cta--in-about .help-cta-text {
    max-width: 720px;
}

.help-cta-text a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.help-cta-text a:hover {
    text-decoration: underline;
}

.help-cta-btn {
    display: inline-block;
    padding: 8px 20px;
    background: var(--primary-color);
    color: var(--white) !important;
    text-decoration: none !important;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
    border: none;
    box-shadow: 0 4px 14px rgba(255, 44, 138, 0.35);
}

.help-cta--in-about .help-cta-btn {
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.28);
}

.help-cta-btn:hover {
    background: var(--primary-dark);
    color: var(--white) !important;
    text-decoration: none !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 44, 138, 0.4);
}

.help-cta--in-about .help-cta-btn:hover {
    box-shadow: 0 10px 26px rgba(16, 185, 129, 0.32);
}

@media (max-width: 720px) {
    .help-cta--in-about .help-cta-inner {
        justify-content: center;
        text-align: center;
    }
}

/* Наши партнёры — бегущая строка логотипов */
.partners {
    padding: 48px 0 40px;
    background: var(--white);
    color: var(--text-dark);
}

.partners .section-header {
    text-align: center;
    margin-bottom: 24px;
}

.partners .section-header h2 {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-dark);
}

.partners-strip {
    position: relative;
    overflow: hidden;
}

.partners-track {
    display: flex;
    width: max-content;
    align-items: center;
    gap: 40px;
    animation: partners-marquee 40s linear infinite;
    will-change: transform;
}

.partners-track:hover {
    animation-play-state: paused;
}

.partner-logo {
    flex: 0 0 auto;
    filter: grayscale(0.2);
    opacity: 0.9;
    transition: transform 0.25s ease, filter 0.25s ease, opacity 0.25s ease;
}

.partner-logo img {
    height: 48px;
    width: auto;
    display: block;
}

.partner-logo:hover {
    transform: translateY(-4px);
    filter: grayscale(0);
    opacity: 1;
}

@keyframes partners-marquee {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

@media (max-width: 768px) {
    .partners {
        padding: 32px 0 28px;
    }

    .partner-logo img {
        height: 40px;
    }

    .partners-track {
        gap: 28px;
        animation-duration: 24s;
    }
}

.btn-sale {
    display: inline-block;
    padding: 10px 28px;
    background: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
}

.btn-sale:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(0, 35, 82, 0.35);
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.section-header p {
    font-size: 18px;
    color: var(--text-light);
}

/* Featured Trips */
.featured-trips {
    padding: 80px 0;
    background: var(--bg-light);
}

/* 3D Slider for trips */
.slider-wrapper {
    overflow: hidden;
    width: 100%;
    height: 480px;
    perspective: 1140px;
    position: relative;
    margin: 60px 0;
}

/* Navigation arrows */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--text-dark);
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.slider-nav:hover {
    background: var(--text-dark);
    color: var(--white);
    transform: translateY(-50%) scale(1.1);
}

.slider-nav--prev {
    left: 20px;
}

.slider-nav--next {
    right: 20px;
}

.slider-nav svg {
    width: 20px;
    height: 20px;
}

@media (max-width: 768px) {
    .slider-nav {
        width: 40px;
        height: 40px;
    }

    .slider-nav--prev {
        left: 10px;
    }

    .slider-nav--next {
        right: 10px;
    }
}

.micro-slider {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
}

.micro-slider__item.slider-item {
    position: absolute;
    height: 400px;
    width: 280px;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.6s ease;
    cursor: pointer;
    display: block;
    top: 0;
    left: 0;
    opacity: 0.2;
    transform: translateX(0) translateY(52.5px) translateZ(0);
    will-change: transform, opacity;
}

.micro-slider__item.slider-item.active {
    opacity: 1;
    z-index: 0;
}

.slider-item__img {
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 0;
    position: relative;
}

.slider-item__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slider-item__info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent);
    padding: 24px;
    color: var(--white);
    z-index: 1;
}

.slider-item__title {
    font-size: 20px;
    font-weight: 300;
    margin-bottom: 8px;
    color: var(--white);
    letter-spacing: -0.01em;
}

.slider-item__text {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 12px;
    font-weight: 300;
}

.slider-item__price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-top: 12px;
}

.slider-item__price .trip-price-old {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: line-through;
}

.slider-item__price .trip-price-new {
    font-size: 22px;
    font-weight: 400;
    color: var(--white);
}

.slider-item .trip-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--text-dark);
    padding: 6px 12px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    z-index: 2;
}

/* Indicators */
.indicators {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 40px;
    padding: 0;
    position: relative;
    z-index: 10;
}

.indicator {
    display: inline-block;
}

.indicator a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 32px;
    line-height: 1;
    transition: var(--transition);
    display: block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--text-light);
    text-indent: -9999px;
    overflow: hidden;
}

.indicator.active a {
    background: var(--primary-color);
    transform: scale(1.3);
}

.indicator a:hover {
    background: var(--text-dark);
    transform: scale(1.2);
}

.trip-image {
    width: 100%;
    height: 240px;
    object-fit: cover;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.trip-content {
    padding: 24px;
}

.trip-badge {
    display: inline-block;
    padding: 4px 12px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 12px;
}

.trip-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.trip-duration {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 16px;
}

.trip-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-top: 16px;
}

.trip-price-old {
    font-size: 16px;
    color: var(--text-light);
    text-decoration: line-through;
}

.trip-price-new {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary-color);
}

.trip-price-currency {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-light);
}

/* Features */
.features {
    padding: 80px 0;
    background: var(--white);
}

/* На главной с подложкой-картинкой сам блок "О нас" прозрачный,
   а читаемость обеспечиваем белой панелью внутри */
body.site-bg .features.about-block {
    background: transparent !important;
}

/* Подписка на рассылку на главной — как остальные модули (без отдельного градиента/карточки) */
body.site-bg .newsletter {
    background: transparent !important;
}
body.site-bg .newsletter .newsletter-inner {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
}

@media (max-width: 768px) {
    /* Компактнее модуль рассылки на мобильных */
    body.site-bg .newsletter .container.panel.panel--glass {
        padding: 16px 14px;
        border-radius: 18px;
    }
    body.site-bg .newsletter .newsletter-inner {
        gap: 10px;
    }
    body.site-bg .newsletter .newsletter-text {
        margin-bottom: 8px;
    }
    body.site-bg .newsletter .newsletter-text p {
        font-size: 14px;
        line-height: 1.45;
    }
    /* На мобильных переводим форму в grid, чтобы не было "прыгающих" отступов в flex (особенно в Safari) */
    body.site-bg .newsletter .newsletter-form {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
        align-items: start;
    }
    body.site-bg .newsletter .newsletter-form label {
        margin-bottom: 4px;
        font-size: 12px;
        line-height: 1.2;
    }
    body.site-bg .newsletter .newsletter-form .form-group {
        min-width: 0;
        width: 100%;
    }
    body.site-bg .newsletter .newsletter-form input[type="text"],
    body.site-bg .newsletter .newsletter-form input[type="email"] {
        padding: 10px 12px;
        font-size: 14px;
        border-radius: 10px;
    }
    body.site-bg .newsletter .newsletter-form .form-checkbox {
        margin: 2px 0 0;
        gap: 8px;
        font-size: 12px;
        line-height: 1.25;
    }
    body.site-bg .newsletter .newsletter-form .btn-submit {
        padding: 11px 16px;
        font-size: 14px;
        border-radius: 10px;
        width: 100%;
    }
    body.site-bg .newsletter .newsletter-image {
        width: 100%;
        max-width: 160px;
        padding: 0;
        margin: -22px auto 0;
    }
}

@media (max-width: 420px) {
    /* На узких экранах чемодан оставляем, но маленьким */
    body.site-bg .newsletter .newsletter-image {
        display: block;
        max-width: 140px;
    }
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
}

.feature-card {
    text-align: center;
    padding: 32px 24px;
    border-radius: 16px;
    transition: var(--transition);
}

.feature-card:hover {
    background: var(--bg-light);
    transform: translateY(-4px);
}

.feature-icon {
    margin-bottom: 16px;
}

.feature-icon img {
    display: block;
    width: 64px;
    height: 64px;
    object-fit: contain;
    margin: 0 auto;
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.feature-card p {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.6;
}

/* О нас — расширенный блок */
.about-block .section-label {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary-color);
    margin-bottom: 12px;
}

/* Почему выбирают нас: иконки по центру карточки */
.about-block .features-grid .feature-icon {
    margin-left: auto;
    margin-right: auto;
    transform: translateX(-10px);
}

.about-block .about-lead {
    font-size: 18px;
    color: var(--text-dark);
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* Фото в блоке «О нас» */
.about-photos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin: 40px 0 32px;
}

.about-photo-item {
    margin: 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    background: var(--bg-light);
    transition: var(--transition);
}

.about-photo-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.about-photo-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    background: linear-gradient(135deg, #e8ecff 0%, #f0e6f0 100%);
}

.about-photo-item figcaption {
    padding: 14px 16px;
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.5;
    background: var(--white);
}

.about-photo-item figcaption strong {
    color: var(--primary-color);
    font-weight: 600;
}

.about-story-brief {
    max-width: 720px;
    margin: 0 auto 48px;
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.7;
    text-align: center;
}

.about-story {
    max-width: 800px;
    margin: 0 auto 48px;
    text-align: left;
}

.about-story p {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.75;
    margin-bottom: 16px;
}

.about-story p:last-child {
    margin-bottom: 0;
}

.about-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 48px 64px;
    margin-bottom: 56px;
    padding: 40px 24px;
    background: var(--bg-light);
    border-radius: 20px;
}

.about-stat {
    text-align: center;
    flex: 1 1 200px;
    max-width: 260px;
}

.about-stat-value {
    display: block;
    font-size: 42px;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1.1;
    margin-bottom: 4px;
}

.about-stat-label {
    font-size: 15px;
    color: var(--text-light);
    font-weight: 500;
    line-height: 1.35;
}

/* Поочерёдное появление цифр при прокрутке */
.about-stats .about-stat {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.75s ease, transform 0.75s ease;
    will-change: opacity, transform;
}

.about-stats.is-visible .about-stat {
    opacity: 1;
    transform: translateY(0);
}

.about-stats.is-visible .about-stat:nth-child(1) { transition-delay: 0ms; }
.about-stats.is-visible .about-stat:nth-child(2) { transition-delay: 180ms; }
.about-stats.is-visible .about-stat:nth-child(3) { transition-delay: 360ms; }
.about-stats.is-visible .about-stat:nth-child(4) { transition-delay: 540ms; }

@media (prefers-reduced-motion: reduce) {
    .about-stats .about-stat {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

.about-block .section-header-small {
    margin-bottom: 32px;
}

.about-block .section-header-small h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.about-block .about-module-heading {
    text-align: left;
    margin: 0 0 24px;
}

.about-cta {
    text-align: center;
    margin-top: 56px;
    padding-top: 48px;
    border-top: 1px solid var(--border-color);
}

.about-cta p {
    font-size: 18px;
    color: var(--text-dark);
    margin-bottom: 20px;
    font-weight: 600;
}

.about-cta .btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: var(--transition);
    margin: 0 8px 12px;
}

.btn-about-cta {
    background: var(--primary-color);
    color: var(--white);
    border: none;
}

.btn-about-cta:hover {
    background: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-about-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-about-outline:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

/* Loyalty secret banner */
.loyalty-secret {
    padding: 40px 0 10px;
    background: transparent;
}

.loyalty-secret .container {
    display: flex;
    justify-content: center;
}

.loyalty-trigger {
    border: none;
    background: none;
    padding: 0;
    cursor: pointer;
}

.loyalty-image {
    max-width: 100%;
    height: auto;
    display: block;
    transition: opacity 0.5s ease;
}

/* Баннер должен выглядеть как модуль (скруглённая панель) */
.loyalty-secret .container.panel.panel--media {
    padding: 0;
    overflow: hidden;
}
.loyalty-secret .container.panel.panel--media .loyalty-trigger {
    display: block;
    width: 100%;
}
.loyalty-secret .container.panel.panel--media .loyalty-image {
    width: 100%;
    max-width: 100%;
}

.loyalty-image-fade {
    opacity: 0;
}

.loyalty-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 1900;
}

.loyalty-overlay.active {
    display: flex;
}

.loyalty-modal {
    max-width: 520px;
    width: 100%;
    background: var(--white);
    border-radius: 18px;
    box-shadow: var(--shadow-hover);
    padding: 28px 24px 24px;
}

.loyalty-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 18px;
}

.loyalty-modal-title {
    font-size: 22px;
    font-weight: 800;
    margin: 0;
    color: var(--text-dark);
}

.loyalty-modal-close {
    border: none;
    background: transparent;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    color: var(--text-light);
}

.loyalty-modal-close:hover {
    color: var(--primary-color);
}

.loyalty-modal-body p {
    margin-bottom: 14px;
    color: var(--text-dark);
}

.loyalty-modal-body ul {
    margin: 0 0 16px 18px;
    padding: 0;
}

.loyalty-modal-body li {
    margin-bottom: 6px;
}

.loyalty-modal-note {
    font-weight: 600;
    margin-top: 8px;
}

.loyalty-modal-cta {
    margin-top: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--primary-color);
}

/* Articles */
.articles {
    padding: 80px 0;
    background: var(--white);
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 32px;
}

/* На главной: превью — одна строка, до 5 карточек */
.articles--preview .section-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.articles-all-link {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
    white-space: nowrap;
}
.articles-all-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}
.articles-preview-cta {
    text-align: center;
    margin-top: 40px;
}
.btn-articles-all {
    display: inline-block;
    padding: 14px 32px;
    background: var(--primary-color);
    color: var(--white);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 12px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}
.btn-articles-all:hover {
    background: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}
.articles-grid--preview {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
@media (min-width: 900px) {
    .articles-grid--preview {
        grid-template-columns: repeat(3, 1fr);
    }
}

.article-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.article-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.article-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.article-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.article-category {
    display: inline-block;
    padding: 4px 12px;
    background: var(--bg-light);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 12px;
    width: fit-content;
}

.article-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-dark);
    line-height: 1.4;
}

.article-excerpt {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 16px;
    flex-grow: 1;
}

.article-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
    font-size: 13px;
    color: var(--text-light);
}

.article-date {
    display: flex;
    align-items: center;
    gap: 6px;
}

.article-read-more {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.article-read-more:hover {
    color: var(--primary-dark);
}

@media (max-width: 768px) {
    /* Блог: компактные карточки на мобильных */
    .articles {
        padding: 56px 0;
    }
    .articles-grid {
        gap: 16px;
    }
    .article-card {
        border-radius: 14px;
    }
    .article-image {
        height: 150px;
    }
    .article-content {
        padding: 14px 14px 12px;
    }
    .article-category {
        font-size: 11px;
        padding: 3px 10px;
        margin-bottom: 10px;
    }
    .article-card .article-title {
        font-size: 16px;
        line-height: 1.3;
        margin-bottom: 8px;
        font-weight: 700;
        letter-spacing: -0.2px;
    }
    .article-card .article-excerpt {
        font-size: 13px;
        line-height: 1.45;
        margin-bottom: 12px;
        display: -webkit-box;
        line-clamp: 3;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .article-meta {
        padding-top: 12px;
        font-size: 12px;
    }
}

/* Article Modal */
.article-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    overflow-y: auto;
    padding: 40px 20px;
}

.article-modal.active {
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.article-modal-content {
    background: var(--white);
    border-radius: 16px;
    max-width: 900px;
    width: 100%;
    margin: 40px auto;
    position: relative;
    animation: fadeIn 0.3s ease-out;
}

.article-modal-header {
    position: relative;
    height: 300px;
    overflow: hidden;
    border-radius: 16px 16px 0 0;
}

.article-modal-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--text-dark);
    transition: var(--transition);
    z-index: 10;
}

.article-modal-close:hover {
    background: var(--white);
    transform: rotate(90deg);
}

.article-modal-body {
    padding: 40px;
}

.article-modal-category {
    display: inline-block;
    padding: 6px 16px;
    background: var(--bg-light);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
}

.article-modal-title {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--text-dark);
    line-height: 1.2;
}

.article-modal-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
    color: var(--text-light);
}

.article-modal-text {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-dark);
}

.article-modal-text h3 {
    font-size: 24px;
    font-weight: 700;
    margin: 32px 0 16px;
    color: var(--text-dark);
}

.article-modal-text p {
    margin-bottom: 20px;
}

.article-modal-text ul,
.article-modal-text ol {
    margin: 20px 0;
    padding-left: 30px;
}

.article-modal-text li {
    margin-bottom: 12px;
    line-height: 1.7;
}

.article-modal-text strong {
    font-weight: 600;
    color: var(--text-dark);
}

/* Hotel presentation blocks in articles */
.article-modal-text .hotel-presentation {
    background: #f8f9fa;
    padding: 24px;
    border-radius: 12px;
    margin: 24px 0;
    border-left: 4px solid var(--primary-color);
}

.article-modal-text .hotel-presentation h3 {
    color: var(--primary-color);
    margin-top: 0;
    font-size: 22px;
}

.article-modal-text .hotel-presentation p {
    color: #666;
    font-size: 14px;
    margin-bottom: 16px;
}

.article-modal-text .hotel-presentation ul {
    margin: 16px 0;
    padding-left: 20px;
}

.article-modal-text .hotel-presentation li {
    margin-bottom: 10px;
}

/* Thailand souvenirs article: image + text layout */
.article-thailand-souvenirs .item,
.article-modal-text .article-thailand-souvenirs .item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}

.article-thailand-souvenirs .item img,
.article-modal-text .article-thailand-souvenirs .item img {
    max-width: 220px;
    width: 100%;
    height: auto;
    flex-shrink: 0;
    border-radius: 8px;
    object-fit: cover;
    display: block;
    margin-top: 4px; /* визуально выравниваем верх картинки с заголовком */
}

.article-thailand-souvenirs .item .text,
.article-modal-text .article-thailand-souvenirs .item .text {
    flex: 1 1 auto;
}

/* Убираем верхний отступ у заголовка, чтобы выровнять его с верхом картинки */
.article-thailand-souvenirs .item .text h3,
.article-modal-text .article-thailand-souvenirs .item .text h3 {
    margin-top: 0;
}

@media (max-width: 768px) {
    .article-thailand-souvenirs .item,
    .article-modal-text .article-thailand-souvenirs .item {
        flex-direction: column;
    }

    .article-thailand-souvenirs .item img,
    .article-modal-text .article-thailand-souvenirs .item img {
        max-width: 100%;
    }
}

/* Section headers */
.article-modal-text div[style*="background: linear-gradient"] {
    font-weight: 700;
    font-size: 20px;
    padding: 16px 24px !important;
    border-radius: 12px;
    margin: 32px 0 !important;
    text-align: left;
}

/* Call to action blocks */
.article-modal-text div[style*="background: #fff"] {
    background: #fff !important;
    padding: 12px !important;
    border-radius: 8px;
    margin-top: 16px;
    font-weight: 600;
    color: var(--text-dark) !important;
}

/* CTA banner */
.article-modal-text div[style*="background: linear-gradient"][style*="text-align: center"] {
    text-align: center !important;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%) !important;
    color: white !important;
    padding: 24px !important;
}

.article-modal-text div[style*="background: linear-gradient"][style*="text-align: center"] h3,
.article-modal-text div[style*="background: linear-gradient"][style*="text-align: center"] p {
    color: white !important;
    margin-bottom: 0;
}

/* Полноформатная страница статьи */
.article-page {
    margin-top: 80px;
    padding: 40px 0 80px;
    background: var(--bg-light);
}

/* Страницы с классом .page под статичным хедером (страны и др.) */
.header.header--static + .page {
    margin-top: 100px;
}

.article-full {
    max-width: 900px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 18px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.article-full-header {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 24px;
    padding: 28px 28px 0;
}

.article-full-meta {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.article-full-title {
    font-size: 28px;
    font-weight: 800;
    margin: 0;
    color: var(--text-dark);
}

.article-full-image-wrap {
    align-self: stretch;
}

.article-full-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 14px;
    display: block;
}

.article-full-body {
    padding: 24px 28px 32px;
}

@media (max-width: 768px) {
    .article-full {
        border-radius: 0;
        box-shadow: none;
        margin: 0 -16px;
    }
    .article-full-header {
        grid-template-columns: 1fr;
        padding: 20px 20px 0;
    }
    .article-full-body {
        padding: 20px;
    }
}

/* Destinations */
.destinations {
    padding: 80px 0;
    background: var(--bg-light);
}

.destinations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.destination-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    height: 320px;
}

.destination-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.destination-image {
    width: 100%;
    height: 100%;
    background-image: url('images/destinations/default.jpg');
    background-size: cover;
    background-position: center;
    transition: var(--transition);
}

.destination-card:hover .destination-image {
    transform: scale(1.1);
}

.destination-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: var(--white);
}

.destination-content h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 4px;
}

.destination-content p {
    font-size: 14px;
    opacity: 0.9;
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 60px 0 24px;
}

/* Карта в футере — чёрно-белая */
.footer-map {
    max-width: 1200px;
    margin: 0 auto 40px;
    border-radius: 12px;
    overflow: hidden;
    filter: grayscale(100%);
}
.footer-map iframe {
    display: block;
    width: 100%;
    max-width: 100%;
    height: 300px;
}
@media (max-width: 980px) {
    .footer-map iframe {
        height: 400px;
    }
}
@media (max-width: 640px) {
    .footer-map iframe {
        height: 300px;
    }
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--white);
}

.footer-section h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-section p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 16px;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: var(--white);
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: underline;
}
.footer-bottom a:hover {
    color: var(--white);
}

.footer-bottom-logo {
    vertical-align: middle;
    display: inline-block;
    height: 28px;
    width: auto;
}

/* Policy page */
.policy-page {
    padding: 100px 0 60px;
}
.policy-content {
    max-width: 720px;
    margin: 0 auto;
}
.policy-content h1 {
    font-size: 28px;
    margin-bottom: 8px;
}
.policy-subtitle {
    font-size: 18px;
    color: var(--text-dark);
    margin-bottom: 4px;
}
.policy-updated {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 32px;
}
.policy-content section {
    margin-bottom: 28px;
}
.policy-content h2 {
    font-size: 18px;
    margin-bottom: 12px;
}
.policy-content p,
.policy-content li {
    margin-bottom: 10px;
}
.policy-content ul {
    margin: 12px 0 12px 20px;
}
.policy-content a {
    color: var(--secondary-color);
    text-decoration: underline;
}
.policy-content a:hover {
    color: var(--primary-color);
}

/* Cookie banner */
/* Cookie overlay — затемнение страницы до согласия */
.cookie-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 9998;
    transition: opacity 0.25s ease;
}
.cookie-overlay[hidden] {
    display: none !important;
}

/* Модальное окно «Заказ звонка» */
.callback-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}
.callback-overlay.is-open {
    opacity: 1;
    visibility: visible;
}
.callback-modal {
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    max-width: 420px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}
.callback-modal__header {
    padding: 20px 24px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.callback-modal__title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}
.callback-modal__close {
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 50%;
    color: var(--text-light);
    font-size: 24px;
    line-height: 1;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
}
.callback-modal__close:hover {
    background: var(--bg-light);
    color: var(--text-dark);
}
.callback-form {
    padding: 16px 24px 24px;
}
.callback-form .form-group {
    margin-bottom: 16px;
}
.callback-form label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 6px;
}
.callback-form input[type="text"],
.callback-form input[type="tel"],
.callback-form input[type="email"],
.callback-form select,
.callback-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.2s;
}
.callback-form input:focus,
.callback-form select:focus,
.callback-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}
.callback-form select {
    cursor: pointer;
    appearance: auto;
}
.callback-form .form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
}
.callback-form .form-checkbox input {
    margin-top: 4px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary-color);
}
.callback-form .form-checkbox label {
    margin-bottom: 0;
    font-weight: 400;
    font-size: 13px;
    color: var(--text-light);
}
.callback-form .form-checkbox a {
    color: var(--primary-color);
    text-decoration: none;
}
.callback-form .form-checkbox a:hover {
    text-decoration: underline;
}
.callback-form .btn-submit {
    width: 100%;
    padding: 14px 20px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}
.callback-form .btn-submit:hover {
    background: var(--primary-dark);
}
.callback-form .btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}
.callback-form .form-message {
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 14px;
    display: none;
}
.callback-form .form-message.success {
    display: block;
    background: #d1fae5;
    color: #065f46;
}
.callback-form .form-message.error {
    display: block;
    background: #fee2e2;
    color: #991b1b;
}
.footer-section .callback-open-btn {
    background: none;
    border: none;
    padding: 0;
    font-size: inherit;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
    font-family: inherit;
}
.footer-section .callback-open-btn:hover {
    color: var(--white);
}

/* Футер: кнопка "Заказ звонка" как CTA (зелёная) */
body.site-bg .footer .callback-open-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--primary-color);
    color: var(--white) !important;
    border: 1px solid transparent;
    padding: 9px 12px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.10);
}
body.site-bg .footer .callback-open-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 -2px 16px rgba(0, 0, 0, 0.12);
    z-index: 9999;
    padding: 16px 0;
}
.cookie-banner[hidden] {
    display: none !important;
}
.cookie-banner-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}
.cookie-banner-text {
    flex: 1;
    min-width: 280px;
    font-size: 14px;
    color: var(--text-dark);
    margin: 0;
    line-height: 1.5;
}
.cookie-banner-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}
.cookie-btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: opacity 0.2s;
}
.cookie-btn:hover {
    opacity: 0.9;
}
.cookie-btn-policy {
    background: var(--white);
    color: #b04242;
    border: 1px solid #b04242;
}
.cookie-btn-accept {
    background: #296eb4;
    color: var(--white);
}
@media (max-width: 640px) {
    .cookie-banner-inner {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    .cookie-banner-actions {
        justify-content: center;
    }
}

/* Responsive Design */
@media (max-width: 968px) {
    .search-form {
        grid-template-columns: 1fr;
    }

    /* В шапке только кнопка меню; телефон и «Заказ звонка» — в открытом меню под телефоном */
    .nav-actions .btn-phone,
    .nav-actions .callback-open-btn,
    .nav-actions .nav-ctas,
    .nav-actions .nav-cta-stack,
    .nav-actions .nav-email {
        display: none;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        bottom: auto;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow);
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        gap: 0;
        z-index: 2147479999;
    }

    .nav-menu.active {
        transform: translateX(0);
        display: flex;
    }

    /* Видимость пунктов меню и подменю на светлом фоне */
    .nav-menu a {
        color: var(--text-dark);
    }
    .nav-menu a:hover {
        color: var(--primary-color);
    }
    .nav-menu a::after {
        background: var(--primary-color);
    }
    .nav-submenu a {
        color: var(--text-dark);
        padding: 8px 0;
        font-size: 14px;
    }
    .nav-submenu a:hover {
        color: var(--primary-color);
    }

    /* Телефон последним в меню (сверху вниз: Подбор тура → … → Помощь, затем телефон) */
    .nav-phone-item {
        display: block;
        padding: 12px 0;
        border-top: 1px solid var(--border-color);
        margin-top: 4px;
    }
    .nav-phone-link {
        font-weight: 700;
        font-size: 18px;
        color: var(--primary-color);
    }
    .nav-phone-link:hover {
        color: var(--primary-dark);
    }

    .nav-email-item {
        display: block;
        padding: 12px 0;
        border-top: 1px solid var(--border-color);
    }
    .nav-email-link {
        font-weight: 600;
        font-size: 15px;
        color: var(--primary-color);
        text-decoration: none;
    }
    .nav-email-link:hover {
        color: var(--primary-dark);
    }

    .nav-menu li {
        width: 100%;
        padding: 12px 0;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-menu li:last-child {
        border-bottom: none;
    }

    .nav-item-dropdown .nav-submenu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: rgba(0, 0, 0, 0.04);
        border-radius: 8px;
        margin-top: 8px;
        margin-left: 0;
        padding: 4px 0 4px 12px;
        min-width: auto;
    }

    .btn-menu-toggle {
        display: flex;
        position: relative;
        z-index: 2147480001;
        touch-action: manipulation;
    }

    .hero-title {
        font-size: 36px;
    }

    .slider-wrapper {
        height: 420px;
        perspective: 900px;
    }

    .micro-slider__item.slider-item {
        height: 360px;
        width: 240px;
    }

    .slider-item__info {
        padding: 20px;
    }

    .slider-item__title {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .section-header h2 {
        font-size: 28px;
    }

    .slider-wrapper {
        height: 380px;
        perspective: 700px;
    }

    .micro-slider__item.slider-item {
        height: 320px;
        width: 200px;
    }

    .slider-item__info {
        padding: 16px;
    }

    .slider-item__title {
        font-size: 16px;
    }

    .slider-item__text {
        font-size: 12px;
    }

    .indicators {
        margin-top: 24px;
        gap: 8px;
    }

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

    .article-modal-body {
        padding: 24px;
    }

    .article-modal-title {
        font-size: 28px;
    }

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

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

    .about-photos {
        grid-template-columns: 1fr;
        gap: 20px;
        margin: 32px 0 24px;
    }
    .about-photo-item img {
        height: 200px;
    }
    .about-stats {
        gap: 32px 40px;
        padding: 28px 16px;
    }
    .about-stat-value {
        font-size: 34px;
    }
    .about-cta .btn {
        display: block;
        margin: 0 0 12px;
    }
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Loading Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.trip-card {
    animation: fadeIn 0.6s ease-out;
}


.trip-badge {
    border-radius: 0;
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-light);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 10px;
    padding: 6px 12px;
}

.trip-title,
.article-title {
    font-weight: 300;
    font-size: clamp(20px, 3vw, 28px);
    letter-spacing: -0.01em;
    margin-bottom: 12px;
}

.trip-price-new,
.article-read-more {
    color: var(--text-dark);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 12px;
}

/* Features: minimal cards */
.feature-card {
    background: transparent;
    border: none;
    box-shadow: none;
    text-align: left;
    padding: 0;
}

.feature-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    margin: 0 0 24px 0;
    border-radius: 0;
    background: transparent;
    border: none;
    font-size: 32px;
}

.feature-card h3 {
    font-weight: 300;
    font-size: clamp(18px, 2.5vw, 24px);
    letter-spacing: -0.01em;
    margin-bottom: 16px;
}

.feature-card p {
    font-weight: 300;
    color: var(--text-light);
    line-height: 1.7;
}

/* Destinations: minimal */
.destination-card {
    border-radius: 0;
    border: none;
    overflow: visible;
}

.destination-content {
    background: transparent;
    padding: 24px 0;
    position: relative;
}

.destination-content h3 {
    font-weight: 300;
    font-size: clamp(20px, 3vw, 28px);
    letter-spacing: -0.01em;
    color: var(--text-dark);
}

.destination-content p {
    font-weight: 300;
    color: var(--text-light);
    font-size: 14px;
}

/* Footer: dark-navy (not black) */
.footer {
    background: #0b1a2e;
}

.footer-section p,
.footer-section ul li a,
.footer-bottom {
    color: rgba(255, 255, 255, 0.78);
}

.footer-section ul li a:hover {
    color: rgba(255, 255, 255, 0.96);
}

/* ========== ЗАКОММЕНТИРОВАНО: стили Tourvisor для страниц Отели, Подбор тура (9975241 на .page, 9975270). Раскомментировать по мере надобности. ========== */
/*
.tv-search-form.tv-moduleid-9975241 { width: 100%; max-width: 1200px; margin-left: auto; margin-right: auto; }
.page .tv-search-form.tv-moduleid-9975241 { background: var(--white) !important; ... }
... весь блок .page 9975241 и весь 9975270 и tv-widget-* ...
*/

/* Подбор тура (9975270): убираем только синий хедер формы и красим основную кнопку */
body.site-bg .page .tv-search-form.tv-moduleid-9975270 .TVMainFormHeader,
body.site-bg .page .tv-search-form.tv-moduleid-9975270 .TVHeader {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
}

/* Подбор тура (9975270): убираем синий фон самой TVMainForm и радиокнопок */
body.site-bg .page .tv-search-form.tv-moduleid-9975270 .TVMainForm {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    color: inherit !important;
}

/* Радио "Туры с перелетом / Отели": убираем синий кружок и белый текст */
body.site-bg .page .tv-search-form.tv-moduleid-9975270 .TVMainForm .TVInputRadioLabelCheck {
    background: transparent !important;
}
body.site-bg .page .tv-search-form.tv-moduleid-9975270 .TVMainForm .TVInputRadioContent {
    color: inherit !important;
}

/* Подбор тура (9975270): полностью скрываем переключатель "Туры с перелетом / Отели" */
body.site-bg .page .tv-search-form.tv-moduleid-9975270 .TVMainForm .TVSearchFormMode {
    display: none !important;
}

/* Сам контейнер модалки Tourvisor (TVModalContainer TVToursCartWindow) и крестик закрытия.
   Возвращаем поведение, близкое к стандартному, чтобы не ломать прокрутку,
   но слегка приподнимаем крестик и делаем его чёрным. */
body.site-bg .TVModalContainer.TVToursCartWindow {
    top: 15px !important; /* как в исходном инлайновом стиле Tourvisor */
}

body.site-bg .TVClosePopUp {
    top: 0px !important;   /* ещё выше на 10px */
    right: 0px !important; /* и правее на 5px */
    background: transparent !important;
    color: #000000 !important;
}

/* Окно «Подборка туров»: убираем синюю подложку шапки и футера */
body.site-bg .TVToursCartHeader.TVMainColor,
body.site-bg .TVSideNavContent.TVMainColor {
    background: #ffffff !important;
    background-color: #ffffff !important;
    color: var(--text-dark) !important;
}

body.site-bg .TVToursCartFooterBlock.TVMainColor {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: var(--text-dark) !important;
}

/* Кнопка в футере окна подборки — зелёная, как на остальных страницах */
body.site-bg .TVToursCartFooterBtn.TVButtonColor {
    background-color: var(--primary-color) !important;
    background-image: none !important;
    color: #ffffff !important;
    border: none !important;
}
body.site-bg .TVToursCartFooterBtn.TVButtonColor:hover {
    background-color: var(--primary-dark) !important;
}

/* Подбор тура (9975270): только основная кнопка поиска в форме — зелёная */
body.site-bg .page .tv-search-form.tv-moduleid-9975270 .TVMainForm .TVSearchButton,
body.site-bg .page .tv-search-form.tv-moduleid-9975270 .TVMainForm .TVSearchButton.TVButtonColor {
    background-color: var(--primary-color) !important;
    background-image: none !important;
    color: var(--white) !important;
    border: none !important;
}
body.site-bg .page .tv-search-form.tv-moduleid-9975270 .TVMainForm .TVSearchButton:hover,
body.site-bg .page .tv-search-form.tv-moduleid-9975270 .TVMainForm .TVSearchButton.TVButtonColor:hover {
    background-color: var(--primary-dark) !important;
}

/* Подбор тура (9975270): кнопка "Найти больше туров" в результатах — зелёная */
body.site-bg .page .tv-search-form.tv-moduleid-9975270 .TVResultListViewMore.TVButtonColor {
    background-color: var(--primary-color) !important;
    background-image: none !important;
    color: #ffffff !important;
    border: none !important;
}
body.site-bg .page .tv-search-form.tv-moduleid-9975270 .TVResultListViewMore.TVButtonColor:hover {
    background-color: var(--primary-dark) !important;
}

/* (9975270): дополнительных чисток фонов и inline-background не делаем, чтобы не ломать картинки и другие элементы */

/* Tourvisor overlay (TVOverLay): возвращаем нативное поведение — без наших правок */

/* Страны (9988668): унифицируем Tourvisor-кнопки под зелёный */
body.site-bg .page .tv-country.tv-moduleid-9988668 .TVSearchButton,
body.site-bg .page .tv-country.tv-moduleid-9988668 .TVSearchButton.TVButtonColor,
body.site-bg .page .tv-country.tv-moduleid-9988668 .TVButton,
body.site-bg .page .tv-country.tv-moduleid-9988668 [class*="Button"] {
    background-color: var(--primary-color) !important;
    background-image: none !important;
    color: var(--white) !important;
    border: none !important;
}
body.site-bg .page .tv-country.tv-moduleid-9988668 .TVSearchButton:hover,
body.site-bg .page .tv-country.tv-moduleid-9988668 .TVSearchButton.TVButtonColor:hover,
body.site-bg .page .tv-country.tv-moduleid-9988668 .TVButton:hover,
body.site-bg .page .tv-country.tv-moduleid-9988668 [class*="Button"]:hover {
    background-color: var(--primary-dark) !important;
}

/* Календарь туров (9988367): оставляем белую подложку у формы, но убираем "синий" фон/градиенты */
body.site-bg .page .tv-calendar.tv-moduleid-9988367,
body.site-bg .page .tv-calendar.tv-moduleid-9988367 .TVMainForm,
body.site-bg .page .tv-calendar.tv-moduleid-9988367 .TVMainFilter,
body.site-bg .page .tv-calendar.tv-moduleid-9988367 .TVInterfaceWrapper,
body.site-bg .page .tv-calendar.tv-moduleid-9988367 .TVSearchingForm,
body.site-bg .page .tv-calendar.tv-moduleid-9988367 .TVSearchingFormFlexBlock {
    background: #fff !important;
    background-color: #fff !important;
    background-image: none !important;
    box-shadow: none !important;
    border: none !important;
}

/* Календарь (9988367): убрать синие "плашки" сверху/снизу (они часто живут в Header/Footer контейнерах) */
body.site-bg .page .tv-calendar.tv-moduleid-9988367 .TVMainFormHeader,
body.site-bg .page .tv-calendar.tv-moduleid-9988367 .TVHeader,
body.site-bg .page .tv-calendar.tv-moduleid-9988367 .TVFooter,
body.site-bg .page .tv-calendar.tv-moduleid-9988367 .TVMainFormFooter,
body.site-bg .page .tv-calendar.tv-moduleid-9988367 [class*="FormHeader"],
body.site-bg .page .tv-calendar.tv-moduleid-9988367 [class*="FormFooter"],
body.site-bg .page .tv-calendar.tv-moduleid-9988367 [class*="HeaderWrapper"],
body.site-bg .page .tv-calendar.tv-moduleid-9988367 [class*="FooterWrapper"],
body.site-bg .page .tv-calendar.tv-moduleid-9988367 [class*="Header"],
body.site-bg .page .tv-calendar.tv-moduleid-9988367 [class*="Footer"],
body.site-bg .page .tv-calendar.tv-moduleid-9988367 [class*="Top"],
body.site-bg .page .tv-calendar.tv-moduleid-9988367 [class*="Bottom"] {
    background: #fff !important;
    background-color: #fff !important;
    background-image: none !important;
    box-shadow: none !important;
}

/* Если Tourvisor красит шапку inline-стилем — перекрываем фон для любых элементов с background,
   но НЕ трогаем кнопки (они должны оставаться зелёными). */
body.site-bg .page .tv-calendar.tv-moduleid-9988367 [style*="background"]:not(.TVSearchButton):not(.TVButton):not([class*="Button"]) {
    background: #fff !important;
    background-color: #fff !important;
    background-image: none !important;
    box-shadow: none !important;
}

/* Конкретно фильтры (ваш элемент): убираем синий фон у блока фильтров */
body.site-bg .page .tv-calendar.tv-moduleid-9988367 .TVModuleFiltersBlock {
    background: #fff !important;
    background-color: #fff !important;
    background-image: none !important;
    box-shadow: none !important;
    border: none !important;
}

/* На случай синей рамки/бордера у обёрток */
body.site-bg .page .tv-calendar.tv-moduleid-9988367,
body.site-bg .page .tv-calendar.tv-moduleid-9988367 [class^="TV"],
body.site-bg .page .tv-calendar.tv-moduleid-9988367 [class*="TV"] {
    border-color: rgba(15, 23, 42, 0.14) !important;
}

/* Календарь (9988367): убрать "синюю рамку" у полей/контейнеров и фокус-обводки */
body.site-bg .page .tv-calendar.tv-moduleid-9988367 input,
body.site-bg .page .tv-calendar.tv-moduleid-9988367 select,
body.site-bg .page .tv-calendar.tv-moduleid-9988367 textarea,
body.site-bg .page .tv-calendar.tv-moduleid-9988367 [class*="Input"],
body.site-bg .page .tv-calendar.tv-moduleid-9988367 [class*="Select"],
body.site-bg .page .tv-calendar.tv-moduleid-9988367 [class*="Field"] {
    border-color: rgba(15, 23, 42, 0.16) !important;
    box-shadow: none !important;
    outline: none !important;
}
body.site-bg .page .tv-calendar.tv-moduleid-9988367 input:focus,
body.site-bg .page .tv-calendar.tv-moduleid-9988367 select:focus,
body.site-bg .page .tv-calendar.tv-moduleid-9988367 textarea:focus,
body.site-bg .page .tv-calendar.tv-moduleid-9988367 [class*="Input"]:focus,
body.site-bg .page .tv-calendar.tv-moduleid-9988367 [class*="Select"]:focus,
body.site-bg .page .tv-calendar.tv-moduleid-9988367 [class*="Field"]:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18) !important;
    outline: none !important;
}
body.site-bg .page .tv-calendar.tv-moduleid-9988367 .TVSearchButton,
body.site-bg .page .tv-calendar.tv-moduleid-9988367 .TVSearchButton.TVButtonColor,
body.site-bg .page .tv-calendar.tv-moduleid-9988367 .TVButton,
body.site-bg .page .tv-calendar.tv-moduleid-9988367 [class*="Button"] {
    background-color: var(--primary-color) !important;
    background-image: none !important;
    color: var(--white) !important;
    border: none !important;
}
body.site-bg .page .tv-calendar.tv-moduleid-9988367 .TVSearchButton:hover,
body.site-bg .page .tv-calendar.tv-moduleid-9988367 .TVSearchButton.TVButtonColor:hover,
body.site-bg .page .tv-calendar.tv-moduleid-9988367 .TVButton:hover,
body.site-bg .page .tv-calendar.tv-moduleid-9988367 [class*="Button"]:hover {
    background-color: var(--primary-dark) !important;
}

/* Только hero на главной: маленький модуль 9975241 — прозрачный фон, белый текст, скругления */
.hero .tv-search-form.tv-moduleid-9975241 {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}
.hero .tv-search-form.tv-moduleid-9975241 .TVMainForm,
.hero .tv-search-form.tv-moduleid-9975241 .TVMainFilter,
.hero .tv-search-form.tv-moduleid-9975241 .TVInterfaceWrapper,
.hero .tv-search-form.tv-moduleid-9975241 .TVSearchingForm,
.hero .tv-search-form.tv-moduleid-9975241 .TVSearchingFormFlexBlock,
.hero .tv-search-form.tv-moduleid-9975241 [class^="TV"] {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
}
.hero .tv-search-form.tv-moduleid-9975241 .TVMainForm {
    border: none !important;
    color: #fff !important;
}
.hero .tv-search-form.tv-moduleid-9975241 .TVMainSelect {
    background: rgba(255, 255, 255, 0.12) !important;
    background-color: rgba(255, 255, 255, 0.12) !important;
    border: 1px solid rgba(255, 255, 255, 0.35) !important;
    color: #fff !important;
}
.hero .tv-search-form.tv-moduleid-9975241 .TVMainSelectPlaceholder,
.hero .tv-search-form.tv-moduleid-9975241 .TVMainSelectContent {
    color: #fff !important;
}
.hero .tv-search-form.tv-moduleid-9975241 .TVSearchButton {
    background: #10b981 !important;
    background-color: #10b981 !important;
    background-image: none !important;
    color: #fff !important;
    border: none !important;
}

/* Весь текст в модуле поиска hero — белый (в т.ч. «из Екатеринбурга», вкладки Туры/Отели) */
.hero .tv-search-form.tv-moduleid-9975241,
.hero .tv-search-form.tv-moduleid-9975241 .TVMainForm,
.hero .tv-search-form.tv-moduleid-9975241 .TVMainFilter,
.hero .tv-search-form.tv-moduleid-9975241 [class^="TV"] {
    color: #fff !important;
}
.hero .tv-search-form.tv-moduleid-9975241 span,
.hero .tv-search-form.tv-moduleid-9975241 div,
.hero .tv-search-form.tv-moduleid-9975241 label,
.hero .tv-search-form.tv-moduleid-9975241 a,
.hero .tv-search-form.tv-moduleid-9975241 .TVMainSelectPlaceholder,
.hero .tv-search-form.tv-moduleid-9975241 .TVMainSelectContent,
.hero .tv-search-form.tv-moduleid-9975241 input,
.hero .tv-search-form.tv-moduleid-9975241 select,
.hero .tv-search-form.tv-moduleid-9975241 option {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
}
.hero .tv-search-form.tv-moduleid-9975241 input::placeholder {
    color: rgba(255, 255, 255, 0.85) !important;
    -webkit-text-fill-color: rgba(255, 255, 255, 0.85) !important;
}

/* Выравниваем размер текста полей и кнопки поиска в hero на десктопе */
@media (min-width: 1024px) {
    .hero .tv-search-form.tv-moduleid-9975241 .TVMainSelect,
    .hero .tv-search-form.tv-moduleid-9975241 input,
    .hero .tv-search-form.tv-moduleid-9975241 select,
    .hero .tv-search-form.tv-moduleid-9975241 .TVSearchButton {
        font-size: 15px !important;
    }
}

/* Мобильная версия — принудительно белый текст (Туры/Отели, из Екатеринбурга, карточки) */
@media (max-width: 768px) {
    .hero .tv-search-form.tv-moduleid-9975241,
    .hero .tv-search-form.tv-moduleid-9975241 *,
    .hero .tv-search-form.tv-moduleid-9975241 .TVMainForm,
    .hero .tv-search-form.tv-moduleid-9975241 .TVMainFilter,
    .hero .tv-search-form.tv-moduleid-9975241 [class^="TV"] {
        color: #fff !important;
    }
    .hero .tv-search-form.tv-moduleid-9975241 span,
    .hero .tv-search-form.tv-moduleid-9975241 div,
    .hero .tv-search-form.tv-moduleid-9975241 label,
    .hero .tv-search-form.tv-moduleid-9975241 a,
    .hero .tv-search-form.tv-moduleid-9975241 .TVMainSelect,
    .hero .tv-search-form.tv-moduleid-9975241 .TVMainSelectPlaceholder,
    .hero .tv-search-form.tv-moduleid-9975241 .TVMainSelectContent,
    .hero .tv-search-form.tv-moduleid-9975241 input,
    .hero .tv-search-form.tv-moduleid-9975241 select {
        color: #fff !important;
        -webkit-text-fill-color: #fff !important;
    }

    /* Модуль поиска — не выходить за границы */
    .hero .tv-search-form.tv-moduleid-9975241 {
        overflow-x: hidden !important;
        max-width: 100% !important;
    }
    .hero .tv-search-form.tv-moduleid-9975241 .TVMainForm,
    .hero .tv-search-form.tv-moduleid-9975241 .TVSearchingForm {
        max-width: 100% !important;
        overflow-x: hidden !important;
    }
    /* Туры / Отели — контейнер с рамкой, по ширине модуля */
    .hero .tv-search-form.tv-moduleid-9975241 .TVToggleSwitchItems {
        background: rgba(255, 255, 255, 0.12) !important;
        background-color: rgba(255, 255, 255, 0.12) !important;
        border: 1px solid rgba(255, 255, 255, 0.35) !important;
        border-radius: 10px !important;
        padding: 10px 14px !important;
        margin-bottom: 10px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    .hero .tv-search-form.tv-moduleid-9975241 .TVToggleSwitchItem {
        color: #fff !important;
        -webkit-text-fill-color: #fff !important;
    }
    /* Поле «Введите город или отель» — рамка как у остальных карточек */
    .hero .tv-search-form.tv-moduleid-9975241 .TVAdaptiveHotelsSearch {
        background: rgba(255, 255, 255, 0.12) !important;
        background-color: rgba(255, 255, 255, 0.12) !important;
        border: 1px solid rgba(255, 255, 255, 0.35) !important;
        border-radius: 10px !important;
        padding: 10px 14px !important;
    }
    .hero .tv-search-form.tv-moduleid-9975241 .TVAdaptiveHotelsContent {
        color: #fff !important;
        -webkit-text-fill-color: #fff !important;
    }

    /* Синие иконки Tourvisor в мобильной версии — делаем светлыми (белыми/серыми) */
    .hero .tv-search-form.tv-moduleid-9975241 [class^="TV"] i,
    .hero .tv-search-form.tv-moduleid-9975241 [class^="TV"] svg {
        color: #f5f5f5 !important;
        fill: #f5f5f5 !important;
    }
    .hero .tv-search-form.tv-moduleid-9975241 [class^="TV"] img {
        filter: brightness(0) invert(1);
    }
}

/* Осветляем фон в hero */
.hero-background {
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.10) 0%, rgba(0, 0, 0, 0.1) 50%),
        url('images/hero-main.jpg') center/cover no-repeat;
}

.hero-overlay {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.35) 100%);
}

/* Мобильная версия: показываем больше hero-картинки (меньше обрезки по бокам) */
@media (max-width: 600px) {
    .hero .hero-background {
        background-position: center top;
        background-size: 70% auto;
    }
}

/* Поиск отелей (9975470) — в стиле hero поиска */
.hotels-search {
    position: relative;
    padding: 56px 0 60px;
    overflow: hidden;
    color: #fff;
}

.hotels-search .container {
    position: relative;
    z-index: 1;
}

.hotels-search-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.75) 60%),
        url('images/hero-main.jpg') center/cover no-repeat;
}

.hotels-search-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.55) 100%);
}

.hotels-search-header {
    margin-bottom: 16px;
}

.hotels-search .module-heading {
    color: #fff;
}

/* (очищено) */

/* На странице с глобальной подложкой делаем секции прозрачными,
   а читаемость обеспечиваем через .panel в разметке */
body.site-bg .sale-banner,
body.site-bg .avia-cards-section,
body.site-bg .min-price-preview,
body.site-bg .articles,
body.site-bg .partners {
    background: transparent !important;
}

/* Унификация внутренних страниц: фон должен быть прозрачным,
   т.к. глобальная подложка лежит на body.site-bg */
body.site-bg .page,
body.site-bg .help-page,
body.site-bg .articles-page,
body.site-bg .policy-page {
    background: transparent !important;
}

/* (партнёры перенесены внутрь блока "О нас" на главной) */

body.site-bg .sale-banner .container.panel:not(.panel--dark),
body.site-bg .avia-cards-section .container.panel:not(.panel--dark),
body.site-bg .min-price-preview .container.panel:not(.panel--dark),
body.site-bg .articles .container.panel:not(.panel--dark),
body.site-bg .partners .container.panel:not(.panel--dark) {
    color: var(--text-dark);
}

body.site-bg .partners .container.panel:not(.panel--dark) .section-header h2 {
    color: var(--text-dark);
}

/* Тёмные панели: делаем заголовки/ссылки читабельными */
body.site-bg .panel--dark .module-heading,
body.site-bg .panel--dark h2,
body.site-bg .panel--dark h3 {
    color: #fff;
}
body.site-bg .panel--dark p {
    color: rgba(255, 255, 255, 0.82);
}
body.site-bg .panel--dark .articles-all-link {
    color: rgba(255, 255, 255, 0.90);
}
body.site-bg .panel--dark .articles-all-link:hover {
    color: #fff;
}

/* Светло-серые панели: возвращаем тёмную типографику */
body.site-bg .panel--glass .module-heading,
body.site-bg .panel--glass h2,
body.site-bg .panel--glass h3 {
    color: var(--text-dark);
}
body.site-bg .panel--glass p {
    color: var(--text-light);
}
body.site-bg .panel--glass .articles-all-link {
    color: var(--primary-color);
}
body.site-bg .panel--glass .articles-all-link:hover {
    color: var(--primary-dark);
}

/* Блог на светло-серой подложке: усиливаем контраст карточек и текста */
body.site-bg .articles .container.panel--glass .article-card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(15, 23, 42, 0.08);
}
body.site-bg .articles .container.panel--glass .article-title {
    color: var(--text-dark);
}
body.site-bg .articles .container.panel--glass .article-excerpt,
body.site-bg .articles .container.panel--glass .article-meta {
    color: rgba(15, 23, 42, 0.72);
}
body.site-bg .articles .container.panel--glass .article-category {
    background: rgba(15, 23, 42, 0.06);
    color: var(--primary-color);
}

body.site-bg .hotels-search {
    background: transparent !important;
}

/* На главной меньше отступ между "Отели" и "Блог" */
body.site-bg .hotels-search {
    padding-bottom: 28px;
}
body.site-bg .hotels-search + .articles {
    padding-top: 44px;
}

/* На главной меньше отступ между "Блог" и "О нас" */
body.site-bg .articles {
    padding-bottom: 44px;
}
body.site-bg .articles + .features.about-block {
    padding-top: 44px;
}

body.site-bg .hotels-search-background {
    display: none;
}

/* Бронирование отелей (9975470): оставляем только удаление "синей" подложки + скрытие шапки */
.hotels-search .tv-search-form.tv-moduleid-9975470 .TVMainForm,
.hotels-search .tv-search-form.tv-moduleid-9975470 .TVMainFilter,
.hotels-search .tv-search-form.tv-moduleid-9975470 .TVInterfaceWrapper,
.hotels-search .tv-search-form.tv-moduleid-9975470 .TVSearchingForm,
.hotels-search .tv-search-form.tv-moduleid-9975470 .TVSearchingFormFlexBlock {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
}

/* (9975470): на мобильных Tourvisor иногда рисует синие плашки в блоке фильтров/футере — убираем их */
.hotels-search .tv-search-form.tv-moduleid-9975470 .TVModuleFiltersBlock,
.hotels-search .tv-search-form.tv-moduleid-9975470 .TVMainFormHeader,
.hotels-search .tv-search-form.tv-moduleid-9975470 .TVHeader,
.hotels-search .tv-search-form.tv-moduleid-9975470 .TVFooter,
.hotels-search .tv-search-form.tv-moduleid-9975470 .TVMainFormFooter,
.hotels-search .tv-search-form.tv-moduleid-9975470 [class*="FormHeader"],
.hotels-search .tv-search-form.tv-moduleid-9975470 [class*="FormFooter"],
.hotels-search .tv-search-form.tv-moduleid-9975470 [class*="Header"],
.hotels-search .tv-search-form.tv-moduleid-9975470 [class*="Footer"],
.hotels-search .tv-search-form.tv-moduleid-9975470 [class*="Top"],
.hotels-search .tv-search-form.tv-moduleid-9975470 [class*="Bottom"] {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
}

/* (9975470): если фон задан inline-стилем — перекрываем, но не трогаем кнопки */
.hotels-search .tv-search-form.tv-moduleid-9975470 [style*="background"]:not(.TVSearchButton):not(.TVButton):not([class*="Button"]) {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
}
/* Скрываем "шапку" внутри модуля (если присутствует) */
.hotels-search .tv-search-form.tv-moduleid-9975470 .TVMainFormHeader,
.hotels-search .tv-search-form.tv-moduleid-9975470 .TVHeader,
.hotels-search .tv-search-form.tv-moduleid-9975470 [class*="FormHeader"],
.hotels-search .tv-search-form.tv-moduleid-9975470 [class*="HeaderTitle"] {
    display: none !important;
}

/* Бронирование отелей (9975470): только цвет кнопки — как у верхнего (hero) модуля */
.hotels-search .tv-search-form.tv-moduleid-9975470 .TVSearchButton,
.hotels-search .tv-search-form.tv-moduleid-9975470 .TVSearchButton.TVButtonColor,
.hotels-search .tv-search-form.tv-moduleid-9975470 .TVButton,
.hotels-search .tv-search-form.tv-moduleid-9975470 [class*="Button"] {
    background-color: var(--primary-color) !important;
    background-image: none !important;
    color: var(--white) !important;
    border: none !important;
}
.hotels-search .tv-search-form.tv-moduleid-9975470 .TVSearchButton:hover,
.hotels-search .tv-search-form.tv-moduleid-9975470 .TVSearchButton.TVButtonColor:hover,
.hotels-search .tv-search-form.tv-moduleid-9975470 .TVButton:hover,
.hotels-search .tv-search-form.tv-moduleid-9975470 [class*="Button"]:hover {
    background-color: var(--primary-dark) !important;
}

@media (max-width: 768px) {
    .hotels-search {
        padding: 40px 0 44px;
    }
    .hotels-search-background {
        background-position: center top;
        background-size: 100% auto;
    }
}
/* Закругляем маленький модуль Tourvisor в hero */
.hero .TVMainForm {
    border-radius: 14px !important;
    overflow: hidden !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

/* ========== ЗАКОММЕНТИРОВАНО: календарь (9988367), горящие (9988368), минимальные цены (9988369). Раскомментировать по мере надобности. ========== */
/*
.tv-calendar.tv-moduleid-9988367 { ... }
.tv-hot-tours.tv-moduleid-9988368 { ... }
.tv-min-price.tv-moduleid-9988369 { ... }
*/

/* Плавающий модуль контактов (кнопка + «шарики» с мессенджерами) — теперь часть chat_widget */
#hde-contact-widget {
    position: fixed;
    right: 16px;
    bottom: 70px; /* чуть ниже к нижнему краю экрана */
    z-index: 1200;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

#hde-contact-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 8px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

#hde-contact-widget.hde-open #hde-contact-buttons {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.hde-contact-item {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0ea5e9;
    overflow: hidden;
    border: none;
    cursor: pointer;
}

.hde-contact-item--vk {
    background: #1877f2;
}

.hde-contact-item--tel {
    background: #ffffff;
}

.hde-contact-item--tel img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
}

.hde-contact-item--tg img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
}

.hde-contact-item--vk img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
}

.hde-contact-item--chat-main {
    background: #2563eb;
    color: #fff;
    font-size: 20px;
}

#hde-contact-open-btn {
    background: #f52e16;
    width: 3.2rem;
    height: 3.2rem;
    padding: 0;
    line-height: 3.2rem;
    text-align: center;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.8rem;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    /* лёгкая пульсация, чтобы модуль был заметнее */
    animation: hde-contact-pulse 4.5s ease-in-out infinite;
}

#hde-contact-open-btn svg {
    width: 55%;
    height: 55%;
}

#hde-contact-open-btn #hde-contact-show {
    display: block;
}

#hde-contact-open-btn #hde-contact-hide {
    display: none;
}

#hde-contact-widget.hde-open #hde-contact-open-btn #hde-contact-show {
    display: none;
}

#hde-contact-widget.hde-open #hde-contact-open-btn #hde-contact-hide {
    display: block;
}

@keyframes hde-contact-pulse {
    0%, 60%, 100% {
        transform: scale(1);
        box-shadow: 0 0 12px rgba(0, 0, 0, 0.5);
    }
    70% {
        transform: scale(1.08) translateY(-2px);
        box-shadow: 0 0 20px rgba(245, 46, 22, 0.7);
    }
    80% {
        transform: scale(1);
        box-shadow: 0 0 14px rgba(245, 46, 22, 0.6);
    }
}

@media (max-width: 768px) {
    #hde-contact-widget {
        right: 12px;
        bottom: 60px; /* тоже немного ниже на мобильных */
    }

    /* ==========
       Tourvisor: окно «Подборка туров» на мобильных
       ========== */

    /* Контейнер модалки: чуть ниже шапки */
    body.site-bg .TVModalContainer.TVToursCartWindow {
        top: 70px !important;
    }

    /* Кнопка закрытия — правый верхний угол, чёрная (0,0 как просил) */
    body.site-bg .TVClosePopUp {
        top: 0 !important;
        right: 0 !important;
        background: transparent !important;
        color: #000000 !important;
    }

    /* Белая шапка и боковая панель вместо синей
       (на мобильных у Tourvisor могут быть свои доп.классы, поэтому берём все Header/MainColor
       внутри окна подборки) */
    body.site-bg .TVToursCartWindow [class*="Header"].TVMainColor,
    body.site-bg .TVToursCartWindow .TVSideNavContent,
    body.site-bg .TVToursCartWindow .TVMainColor {
        background: #ffffff !important;
        background-color: #ffffff !important;
        color: var(--text-dark) !important;
    }

    /* Футер без синей подложки, текст тёмный */
    body.site-bg .TVToursCartWindow .TVToursCartFooterBlock,
    body.site-bg .TVToursCartWindow [class*="Footer"].TVMainColor {
        background: transparent !important;
        background-color: transparent !important;
        border: none !important;
        box-shadow: none !important;
        color: var(--text-dark) !important;
    }

    /* Кнопка в футере и основные кнопки окна — зелёные */
    body.site-bg .TVToursCartWindow .TVToursCartFooterBtn.TVButtonColor,
    body.site-bg .TVToursCartWindow .TVButtonColor,
    body.site-bg .TVToursCartWindow [class*="Button"].TVMainColor {
        background-color: var(--primary-color) !important;
        background-image: none !important;
        color: #ffffff !important;
        border: none !important;
    }
    body.site-bg .TVToursCartWindow .TVToursCartFooterBtn.TVButtonColor:hover,
    body.site-bg .TVToursCartWindow .TVButtonColor:hover,
    body.site-bg .TVToursCartWindow [class*="Button"].TVMainColor:hover {
        background-color: var(--primary-dark) !important;
    }
}