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

:root {
    /* Базовая палитра в стиле "Зефир" (нежные голубые + фуксия) */
    --primary-color: #ff2c8a;        /* основная фуксия, как кнопка НАЙТИ */
    --primary-dark: #d1186a;
    --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;
}

/* Header — прозрачный поверх hero */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: transparent;
    box-shadow: none;
    z-index: 1000;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

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

.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(--primary-color); }
.header.scrolled .nav-menu a::after { background: var(--primary-color); }
.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: #ffdd8a;
}

.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-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;
    min-height: 100dvh;
    display: flex;
    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-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;
    text-align: center;
    color: var(--white);
    padding: 120px 20px 60px;
    max-width: 1000px;
}

.hero-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.25;
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-size: 18px;
    font-weight: 400;
    margin-bottom: 32px;
    opacity: 0.9;
}

/* Убираем синий фон формы Tourvisor в hero */
.hero .TVMainForm,
.tv-search-form .TVMainForm {
    background-color: transparent !important;
    background-image: none !important;
}

.hero .TVMainFilter,
.tv-search-form .TVMainFilter {
    background-color: transparent !important;
}

/* Кнопка «Найти туры» в цветах сайта */
.hero .TVSearchButton.TVButtonColor,
.tv-search-form .TVSearchButton.TVButtonColor {
    background-color: var(--primary-color) !important;
    background-image: none !important;
    color: var(--white) !important;
}

.hero .TVSearchButton.TVButtonColor:hover,
.tv-search-form .TVSearchButton.TVButtonColor:hover {
    background-color: var(--primary-dark) !important;
}

.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;
}

.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;
}

/* Блок «Остались вопросы» перед футером */
.help-cta {
    padding: 40px 20px 48px;
    background: var(--bg-light);
}

.help-cta-inner {
    max-width: 560px;
    margin: 0 auto;
    padding: 28px 32px 32px;
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow);
    text-align: center;
    border: 1px solid var(--border-color);
}

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

.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: 14px 32px;
    background: var(--primary-color);
    color: var(--white) !important;
    text-decoration: none !important;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    transition: var(--transition);
    border: none;
    box-shadow: 0 4px 14px rgba(255, 44, 138, 0.35);
}

.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);
}

.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);
}

.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 {
    font-size: 48px;
    margin-bottom: 16px;
}

.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 .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;
}

.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;
}

.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-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);
}

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

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

.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: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);
}

/* 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;
}

/* 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;
}

/* 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;
    vertical-align: top;
}
@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;
}

.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 .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;
    }

    .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;
    }

    .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);
}

/* Маленький модуль поиска на главной — без подложки, чуть пошире */
.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;
    background-color: var(--white) !important;
    border-radius: 14px !important;
    box-shadow: var(--shadow) !important;
    padding: 20px !important;
    color: var(--text-dark);
}
.page .tv-search-form.tv-moduleid-9975241 .TVMainForm,
.page .tv-search-form.tv-moduleid-9975241 .TVMainFilter,
.page .tv-search-form.tv-moduleid-9975241 [class^="TV"] {
    color: var(--text-dark) !important;
}
.page .tv-search-form.tv-moduleid-9975241 .TVMainSelect {
    background: var(--bg-light) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-dark) !important;
}
.page .tv-search-form.tv-moduleid-9975241 .TVMainSelectPlaceholder,
.page .tv-search-form.tv-moduleid-9975241 .TVMainSelectContent,
.page .tv-search-form.tv-moduleid-9975241 span,
.page .tv-search-form.tv-moduleid-9975241 label,
.page .tv-search-form.tv-moduleid-9975241 .TVToggleSwitchItem,
.page .tv-search-form.tv-moduleid-9975241 .TVAdaptiveHotelsContent {
    color: var(--text-dark) !important;
}
.page .tv-search-form.tv-moduleid-9975241 .TVToggleSwitchItems {
    background: var(--bg-light) !important;
    border: 1px solid var(--border-color) !important;
}
.page .tv-search-form.tv-moduleid-9975241 .TVAdaptiveHotelsSearch {
    background: var(--bg-light) !important;
    border: 1px solid var(--border-color) !important;
}
.page .tv-search-form.tv-moduleid-9975241 .TVSearchButton {
    background: var(--primary-color) !important;
    color: var(--white) !important;
}

.tv-search-form.tv-moduleid-9975241 .TVMainForm,
.tv-search-form.tv-moduleid-9975241 .TVMainFilter,
.tv-search-form.tv-moduleid-9975241 .TVInterfaceWrapper,
.tv-search-form.tv-moduleid-9975241 .TVSearchingForm,
.tv-search-form.tv-moduleid-9975241 .TVSearchingFormFlexBlock,
.tv-search-form.tv-moduleid-9975241 [class^="TV"] {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
}

.tv-search-form.tv-moduleid-9975241 .TVMainForm {
    border: none !important;
    color: #fff !important;
}

.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;
}

.tv-search-form.tv-moduleid-9975241 .TVMainSelectPlaceholder,
.tv-search-form.tv-moduleid-9975241 .TVMainSelectContent {
    color: #fff !important;
}

.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;
}

/* Мобильная версия — принудительно белый текст (Туры/Отели, из Екатеринбурга, карточки) */
@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;
    }
}

/* Осветляем фон в 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%);
}
/* Закругляем маленький модуль Tourvisor в hero */
.hero .TVMainForm {
    border-radius: 14px !important;
    overflow: hidden !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

/* Календарь туров — оформление как у модуля поиска (белая карточка, скругления, тень) */
.tv-calendar.tv-moduleid-9988367 {
    width: 100%;
    max-width: 100%;
    background: var(--white) !important;
    background-color: var(--white) !important;
    border-radius: 14px !important;
    box-shadow: var(--shadow) !important;
    overflow: hidden !important;
    padding: 20px !important;
}
/* Не сбрасываем background-image — картинки в календаре должны отображаться */
.tv-calendar.tv-moduleid-9988367 img {
    max-width: 100%;
    height: auto;
    display: block;
    vertical-align: middle;
}
.tv-calendar.tv-moduleid-9988367 {
    color: var(--text-dark);
}
.tv-calendar.tv-moduleid-9988367 a {
    color: var(--secondary-color);
}
.tv-calendar.tv-moduleid-9988367 a:hover {
    color: var(--primary-color);
}
/* Кнопки и активные элементы календаря — в цветах сайта */
.tv-calendar.tv-moduleid-9988367 button,
.tv-calendar.tv-moduleid-9988367 .TVButton,
.tv-calendar.tv-moduleid-9988367 [class*="Button"] {
    background: var(--primary-color) !important;
    background-color: var(--primary-color) !important;
    color: var(--white) !important;
    border: none !important;
    border-radius: 8px !important;
}
.tv-calendar.tv-moduleid-9988367 button:hover,
.tv-calendar.tv-moduleid-9988367 .TVButton:hover {
    background: var(--primary-dark) !important;
    background-color: var(--primary-dark) !important;
}

/* Горящие туры — оформление как у модуля поиска */
.tv-hot-tours.tv-moduleid-9988368 {
    width: 100%;
    max-width: 100%;
    background: var(--white) !important;
    background-color: var(--white) !important;
    border-radius: 14px !important;
    box-shadow: var(--shadow) !important;
    overflow: hidden !important;
    padding: 20px !important;
}
/* Не сбрасываем background-image у внутренних элементов — картинки туров должны отображаться */
.tv-hot-tours.tv-moduleid-9988368 img {
    max-width: 100%;
    height: auto;
    display: block;
    vertical-align: middle;
}
.tv-hot-tours.tv-moduleid-9988368 {
    color: var(--text-dark);
}
.tv-hot-tours.tv-moduleid-9988368 a {
    color: var(--secondary-color);
}
.tv-hot-tours.tv-moduleid-9988368 a:hover {
    color: var(--primary-color);
}
.tv-hot-tours.tv-moduleid-9988368 button,
.tv-hot-tours.tv-moduleid-9988368 .TVButton,
.tv-hot-tours.tv-moduleid-9988368 [class*="Button"] {
    background: var(--primary-color) !important;
    background-color: var(--primary-color) !important;
    color: var(--white) !important;
    border: none !important;
    border-radius: 8px !important;
}
.tv-hot-tours.tv-moduleid-9988368 button:hover,
.tv-hot-tours.tv-moduleid-9988368 .TVButton:hover {
    background: var(--primary-dark) !important;
    background-color: var(--primary-dark) !important;
}

/* Минимальные цены — оформление как у модуля поиска, картинки не скрываем */
.tv-min-price.tv-moduleid-9988369 {
    width: 100%;
    max-width: 100%;
    background: var(--white) !important;
    background-color: var(--white) !important;
    border-radius: 14px !important;
    box-shadow: var(--shadow) !important;
    overflow: hidden !important;
    padding: 20px !important;
}
.tv-min-price.tv-moduleid-9988369 img {
    max-width: 100%;
    height: auto;
    display: block;
    vertical-align: middle;
}
.tv-min-price.tv-moduleid-9988369 {
    color: var(--text-dark);
}
.tv-min-price.tv-moduleid-9988369 a {
    color: var(--secondary-color);
}
.tv-min-price.tv-moduleid-9988369 a:hover {
    color: var(--primary-color);
}
.tv-min-price.tv-moduleid-9988369 button,
.tv-min-price.tv-moduleid-9988369 .TVButton,
.tv-min-price.tv-moduleid-9988369 [class*="Button"] {
    background: var(--primary-color) !important;
    background-color: var(--primary-color) !important;
    color: var(--white) !important;
    border: none !important;
    border-radius: 8px !important;
}
.tv-min-price.tv-moduleid-9988369 button:hover,
.tv-min-price.tv-moduleid-9988369 .TVButton:hover {
    background: var(--primary-dark) !important;
    background-color: var(--primary-dark) !important;
}