/* ===== БАЗОВЫЕ АНИМАЦИИ ===== */

/* Плавное появление элементов при загрузке */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Классы для применения анимаций */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
}

.animate-fade-in {
    animation: fadeIn 0.6s ease forwards;
}

.animate-scale-in {
    animation: scaleIn 0.6s ease forwards;
}

.animate-slide-left {
    animation: slideInLeft 0.7s ease forwards;
}

.animate-slide-right {
    animation: slideInRight 0.7s ease forwards;
}

/* Задержки для последовательных анимаций */
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }
.delay-6 { animation-delay: 0.6s; }
.delay-7 { animation-delay: 0.7s; }
.delay-8 { animation-delay: 0.8s; }

/* ===== КАРТОЧКИ ===== */
.card-hover {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
}
.card-hover:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.2);
}

/* ===== КНОПКИ ===== */
.btn-pulse {
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.4); }
    70% { box-shadow: 0 0 0 12px rgba(220, 38, 38, 0); }
    100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); }
}

.btn-shine {
    position: relative;
    overflow: hidden;
}
.btn-shine::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.15), transparent);
    transform: rotate(45deg) translateX(-100%);
    transition: transform 0.6s ease;
}
.btn-shine:hover::after {
    transform: rotate(45deg) translateX(100%);
}

/* ===== ИЗОБРАЖЕНИЯ ===== */
.img-zoom {
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.img-zoom:hover {
    transform: scale(1.05);
}

/* ===== ЗВЁЗДЫ РЕЙТИНГА ===== */
.star-rating span {
    transition: color 0.2s ease, transform 0.2s ease;
}
.star-rating span:hover {
    transform: scale(1.3);
}

/* ===== ПАГИНАЦИЯ ===== */
.pagination-btn {
    transition: all 0.3s ease;
}
.pagination-btn:not(:disabled):hover {
    transform: scale(1.05);
}
.pagination-btn:active:not(:disabled) {
    transform: scale(0.95);
}

/* ===== СПОЙЛЕРЫ (аккордеон) ===== */
.spoiler-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease, padding 0.4s ease;
    opacity: 0;
    padding: 0 1.5rem;
}
.spoiler-content.open {
    max-height: 2000px;
    opacity: 1;
    padding: 1.5rem;
}
.spoiler-btn .spoiler-icon {
    transition: transform 0.4s ease;
}
.spoiler-btn.active .spoiler-icon {
    transform: rotate(180deg);
}

/* ===== МОДАЛЬНЫЕ ОКНА ===== */
.modal-overlay {
    animation: fadeIn 0.3s ease;
}
.modal-content {
    animation: scaleIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ===== ХЕДЕР (навигация) ===== */
.mobile-menu-icon {
    display: inline-flex;
    width: 25px;
    flex-direction: column;
    gap: 5px;
}
.mobile-menu-icon span {
    display: block;
    width: 100%;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transition: transform 0.2s ease, opacity 0.2s ease;
}
.mobile-menu-button {
    border: 1px solid rgba(255, 255, 255, 0.6);
}
.mobile-menu-button.is-open .mobile-menu-icon span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.mobile-menu-button.is-open .mobile-menu-icon span:nth-child(2) {
    opacity: 0;
}
.mobile-menu-button.is-open .mobile-menu-icon span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

#desktop-navigation {
    display: flex;
}
#mobile-menu-button {
    display: none;
}
#mobile-menu {
    display: none;
}

.nav-link {
    position: relative;
    transition: color 0.3s ease;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: white;
    transition: width 0.3s ease;
}
.nav-link:hover::after {
    width: 100%;
}

/* ===== ОБЩИЕ ===== */
.section-title {
    position: relative;
    display: inline-block;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: #dc2626;
    border-radius: 2px;
    animation: fadeIn 0.8s ease;
}

/* Анимация для чисел (просмотры и т.д.) */
.counter-animate {
    display: inline-block;
    transition: transform 0.3s ease;
}
.counter-animate:hover {
    transform: scale(1.1);
}

/* Плавное появление при скролле */
.fade-in-section {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Стили для отзывов */
.review-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.review-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.15);
}

/* Надёжный мобильный режим шапки: не зависит от загрузки Tailwind CDN. */
@media (max-width: 767px) {
    #desktop-navigation {
        display: none !important;
    }

    #mobile-menu-button {
        display: inline-flex !important;
        width: 48px;
        height: 48px;
        border: 1px solid rgba(255, 255, 255, 0.65);
    }

    #mobile-menu {
        display: none !important;
        gap: 0.4rem;
        margin: 0.5rem 0 0.75rem;
        padding: 0.75rem 0 0;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
        max-height: calc(100dvh - 5rem);
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    #mobile-menu.is-open {
        display: flex !important;
        animation: mobileMenuOpen 0.18s ease-out;
    }

    #mobile-menu-button.is-open .mobile-menu-icon span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    #mobile-menu-button.is-open .mobile-menu-icon span:nth-child(2) {
        opacity: 0;
    }
    #mobile-menu-button.is-open .mobile-menu-icon span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .mobile-menu__link {
        display: flex;
        align-items: center;
        min-height: 48px;
        padding: 0.75rem 1rem !important;
        border: 1px solid rgba(255, 255, 255, 0.12);
        background: rgba(127, 29, 29, 0.35);
        font-size: 1rem;
        line-height: 1.25;
    }

    .mobile-menu__link:active {
        background: rgba(255, 255, 255, 0.16);
    }

    .mobile-menu__link.snow-button {
        justify-content: center;
        margin-top: 0.25rem;
        border-color: rgba(255, 255, 255, 0.25);
    }

    body.mobile-menu-open {
        overflow: hidden;
    }

    nav .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    nav .container > div:first-child {
        min-height: 64px;
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }

    nav a[aria-label="ГИДТУР — на главную"] {
        font-size: 1.25rem;
        gap: 0.5rem;
    }

    nav a[aria-label="ГИДТУР — на главную"] svg {
        width: 29px;
        height: 29px;
    }
}

@keyframes mobileMenuOpen {
    from { opacity: 0; transform: translateY(-0.35rem); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== МОБИЛЬНАЯ АДАПТАЦИЯ ===== */
@media (max-width: 640px) {
    h1.text-5xl,
    h2.text-5xl {
        font-size: 2.25rem;
        line-height: 1.15;
    }

    .prose.prose-lg {
        font-size: 1rem;
        line-height: 1.7;
    }

    .card-hover:hover,
    .review-card:hover {
        transform: none;
    }

    .modal-content button {
        top: 0.5rem;
        right: 0.5rem;
    }
}

/* ========================================================================== */
/* Новый визуальный слой ГидТур                                               */
/* ========================================================================== */
:root {
    --brand: #b4232b;
    --brand-dark: #861b26;
    --brand-soft: #fff1f1;
    --ink: #20252d;
    --muted: #68717d;
    --line: #e9e5e1;
    --paper: #fffdfb;
    --sand: #f7f1ea;
    --shadow-sm: 0 10px 28px rgba(54, 35, 25, 0.07);
    --shadow-md: 0 22px 55px rgba(54, 35, 25, 0.12);
}

* { box-sizing: border-box; }
body {
    color: var(--ink);
    background: var(--paper);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
body.filter-open { overflow: hidden; }
.container { width: 100%; margin-left: auto; margin-right: auto; padding-left: 1rem; padding-right: 1rem; }
@media (min-width: 640px) { .container { max-width: 1180px; } }
@media (min-width: 1280px) { .container { max-width: 1240px; } }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Шапка: меньше визуального шума, больше пространства для навигации. */
.site-header {
    background: linear-gradient(112deg, #a91f29 0%, #c52a32 58%, #a91f29 100%) !important;
    border-bottom: 1px solid rgba(255,255,255,0.16);
    box-shadow: 0 8px 28px rgba(94, 20, 24, 0.2) !important;
}
.site-header__container { max-width: 1240px; }
.site-header__inner { min-height: 72px !important; padding-top: 0.7rem !important; padding-bottom: 0.7rem !important; }
.site-brand { letter-spacing: -0.035em; text-decoration: none; }
.site-brand svg { opacity: 0.94; }
.site-navigation { gap: 1.05rem !important; }
.site-navigation .nav-link { padding: 0.55rem 0.1rem; font-size: 0.94rem; white-space: nowrap; }
.site-navigation .nav-link::after { bottom: 0; }
.site-navigation .snow-button { margin-left: 0.2rem; }
.site-menu-toggle { border: 1px solid rgba(255,255,255,0.55); background: rgba(255,255,255,0.08); }
.site-menu-toggle:hover { background: rgba(255,255,255,0.18) !important; }
.site-mobile-menu { background: rgba(117, 20, 28, 0.2); }

/* Кнопки */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 46px;
    padding: 0.72rem 1.15rem;
    border: 1px solid transparent;
    border-radius: 14px;
    font-weight: 750;
    line-height: 1.15;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(0); }
.button--large { min-height: 54px; padding: 0.9rem 1.35rem; border-radius: 16px; }
.button--primary { color: #fff; background: var(--brand); box-shadow: 0 12px 24px rgba(180,35,43,0.2); }
.button--primary:hover { color: #fff; background: var(--brand-dark); box-shadow: 0 16px 30px rgba(180,35,43,0.27); }
.button--secondary { color: var(--ink); background: #fff; border-color: var(--line); box-shadow: var(--shadow-sm); }
.button--secondary:hover { border-color: #d9c9c1; background: #fffaf7; }
.button--ghost { color: var(--muted); background: #fff; border-color: var(--line); }
.button--ghost:hover { background: var(--sand); }
.button--glass { color: #fff; background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.62); backdrop-filter: blur(12px); }
.button--glass:hover { color: #fff; background: rgba(255,255,255,0.24); }
.button--light { color: var(--brand-dark); background: #fff; }
.button--light:hover { color: var(--brand-dark); background: #fff8f4; }
.button--outline-light { color: #fff; background: transparent; border-color: rgba(255,255,255,0.55); }
.button--outline-light:hover { color: #fff; background: rgba(255,255,255,0.12); }

/* Главная */
.home-page { overflow: hidden; background: var(--paper); }
.home-hero { position: relative; min-height: min(720px, calc(100vh - 72px)); display: flex; align-items: center; isolation: isolate; color: #fff; overflow: hidden; }
.home-hero__image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -3; }
.home-hero__overlay { position: absolute; inset: 0; z-index: -2; background: linear-gradient(90deg, rgba(25,18,17,0.84) 0%, rgba(25,18,17,0.54) 48%, rgba(25,18,17,0.18) 100%), linear-gradient(0deg, rgba(19,13,13,0.36), transparent 45%); }
.home-hero__content { width: 100%; padding-top: clamp(4rem, 9vw, 7rem); padding-bottom: clamp(4rem, 9vw, 7rem); }
.home-hero__copy { max-width: 700px; }
.home-hero h1 { max-width: 680px; margin: 1.15rem 0 1.25rem; font-size: clamp(2.65rem, 6vw, 5.4rem); font-weight: 850; line-height: 0.99; letter-spacing: -0.055em; }
.home-hero h1 span { color: #ffb4ad; }
.home-hero p { max-width: 600px; margin: 0; color: rgba(255,255,255,0.86); font-size: clamp(1.05rem, 2vw, 1.35rem); line-height: 1.55; }
.eyebrow { display: inline-flex; align-items: center; gap: 0.45rem; color: var(--brand); font-size: 0.72rem; font-weight: 850; letter-spacing: 0.13em; line-height: 1.2; text-transform: uppercase; }
.eyebrow::before { content: ''; width: 22px; height: 2px; border-radius: 99px; background: currentColor; }
.eyebrow--light { color: #ffc6c0; }
.home-hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.home-hero__note { display: flex; align-items: center; gap: 0.7rem; max-width: 360px; margin-top: clamp(3rem, 9vw, 7rem); color: rgba(255,255,255,0.8); font-size: 0.91rem; line-height: 1.4; }
.home-hero__note-icon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 28px; width: 28px; height: 28px; border: 1px solid rgba(255,255,255,0.52); border-radius: 50%; color: #fff; }
.home-search-section { position: relative; z-index: 2; margin-top: -45px; }
.home-search-card { display: grid; grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.3fr); gap: 2rem; align-items: center; padding: 1.65rem 1.8rem; border: 1px solid #eee5df; border-radius: 24px; background: rgba(255,255,255,0.96); box-shadow: var(--shadow-md); }
.home-search-card h2, .section-heading h2 { margin: 0.45rem 0 0; color: var(--ink); font-size: clamp(1.55rem, 3vw, 2.2rem); font-weight: 850; letter-spacing: -0.04em; line-height: 1.05; }
.home-search-card p { margin: 0.55rem 0 0; color: var(--muted); font-size: 0.92rem; line-height: 1.45; }
.home-search-form { display: grid; grid-template-columns: minmax(0, 1fr) 140px auto; gap: 0.6rem; }
.home-search-form__input, .catalog-search { display: flex; align-items: center; gap: 0.7rem; min-height: 52px; padding: 0 1rem; color: #a27168; border: 1px solid #e5d8d1; border-radius: 14px; background: #fffaf8; }
.home-search-form__input:focus-within, .catalog-search:focus-within { border-color: #d26d68; box-shadow: 0 0 0 4px rgba(180,35,43,0.08); }
.home-search-form__input input, .catalog-search input { min-width: 0; width: 100%; border: 0; outline: 0; color: var(--ink); background: transparent; font: inherit; }
.home-search-form__input input::placeholder, .catalog-search input::placeholder { color: #9b928e; }
.home-search-form__select, .filter-field select, .filter-field input { min-height: 52px; width: 100%; padding: 0 0.85rem; border: 1px solid #e5d8d1; border-radius: 14px; outline: 0; color: var(--ink); background: #fffaf8; font: inherit; }
.home-search-form__select:focus, .filter-field select:focus, .filter-field input:focus { border-color: #d26d68; box-shadow: 0 0 0 4px rgba(180,35,43,0.08); }
.home-section { padding: clamp(4rem, 8vw, 7rem) 0; }
.home-section--compact { padding-top: clamp(4rem, 7vw, 6rem); }
.home-section--soft { background: var(--sand); }
.section-heading { max-width: 680px; margin-bottom: 2.5rem; }
.section-heading--row { display: flex; justify-content: space-between; align-items: end; gap: 2rem; max-width: none; }
.section-heading > p, .section-heading--row > p { max-width: 470px; margin: 0.8rem 0 0; color: var(--muted); font-size: 1rem; line-height: 1.55; }
.section-heading--row > p { margin: 0; }
.home-choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.home-choice { position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem; min-height: 142px; padding: 1.5rem 1.65rem; border-radius: 22px; text-decoration: none; overflow: hidden; transition: transform 0.25s ease, box-shadow 0.25s ease; }
.home-choice:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.home-choice--red { color: #fff; background: linear-gradient(125deg, #a91f29, #d34d48); }
.home-choice--sand { color: var(--ink); background: #fff; border: 1px solid #e9ddd5; }
.home-choice__icon { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border: 1px solid currentColor; border-radius: 14px; font-size: 1.4rem; }
.home-choice__content { display: flex; flex-direction: column; gap: 0.35rem; }
.home-choice__content strong { font-size: clamp(1.1rem, 2.4vw, 1.55rem); letter-spacing: -0.025em; }
.home-choice__content span { color: rgba(255,255,255,0.74); font-size: 0.9rem; }
.home-choice--sand .home-choice__content span { color: var(--muted); }
.home-choice__count { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 34px; padding: 0 0.55rem; border-radius: 99px; color: #fff; background: rgba(255,255,255,0.18); font-weight: 800; }
.home-choice--sand .home-choice__count { color: var(--brand); background: var(--brand-soft); }
.benefit-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.benefit-card { position: relative; min-height: 260px; padding: 1.6rem; border: 1px solid #eadfd8; border-radius: 22px; background: rgba(255,255,255,0.66); }
.benefit-card__number { position: absolute; top: 1.4rem; right: 1.5rem; color: #d8c8bd; font-size: 0.77rem; font-weight: 850; letter-spacing: 0.1em; }
.benefit-card__icon { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; margin-bottom: 2.4rem; border-radius: 16px; color: var(--brand); background: var(--brand-soft); font-size: 1.5rem; font-weight: 800; }
.benefit-card h3 { margin: 0 0 0.65rem; font-size: 1.25rem; letter-spacing: -0.025em; }
.benefit-card p { margin: 0; color: var(--muted); line-height: 1.55; }
.home-cta-section { padding: 0 0 clamp(4rem, 8vw, 7rem); }
.home-cta { display: flex; justify-content: space-between; align-items: center; gap: 2rem; padding: clamp(2rem, 5vw, 3.5rem); border-radius: 28px; color: #fff; background: linear-gradient(118deg, #8c2029, #c84543); box-shadow: var(--shadow-md); }
.home-cta h2 { max-width: 620px; margin: 0.5rem 0 0.7rem; font-size: clamp(1.8rem, 4vw, 3rem); line-height: 1.02; letter-spacing: -0.045em; }
.home-cta p { max-width: 560px; margin: 0; color: rgba(255,255,255,0.78); line-height: 1.55; }
.home-cta__actions { display: flex; flex-wrap: wrap; gap: 0.65rem; flex-shrink: 0; }

/* Каталоги */
.catalog-page { min-height: 100vh; background: var(--paper); }
.catalog-intro { position: relative; color: #fff; overflow: hidden; }
.catalog-intro::after { content: ''; position: absolute; width: 310px; height: 310px; right: -90px; bottom: -160px; border: 1px solid rgba(255,255,255,0.18); border-radius: 50%; box-shadow: 0 0 0 38px rgba(255,255,255,0.05), 0 0 0 78px rgba(255,255,255,0.04); }
.catalog-intro--tours { background: linear-gradient(118deg, #771c28, #bd4140); }
.catalog-intro--excursions { background: linear-gradient(118deg, #3b3634, #8d5a4d); }
.catalog-intro .container { position: relative; z-index: 1; padding-top: clamp(2.3rem, 5vw, 4rem); padding-bottom: clamp(2.6rem, 5vw, 4.4rem); }
.back-link { display: inline-flex; margin-bottom: 1.8rem; color: rgba(255,255,255,0.74); font-size: 0.9rem; text-decoration: none; }
.back-link:hover { color: #fff; }
.catalog-intro__layout { display: flex; justify-content: space-between; align-items: end; gap: 2rem; }
.catalog-intro h1 { max-width: 730px; margin: 0.75rem 0 0.85rem; font-size: clamp(2.2rem, 5vw, 4.6rem); font-weight: 850; line-height: 0.98; letter-spacing: -0.055em; }
.catalog-intro p { max-width: 650px; margin: 0; color: rgba(255,255,255,0.78); font-size: 1.05rem; line-height: 1.55; }
.catalog-intro__stats { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; padding: 1rem 1.15rem; border: 1px solid rgba(255,255,255,0.3); border-radius: 18px; background: rgba(255,255,255,0.1); backdrop-filter: blur(8px); }
.catalog-intro__stats strong { font-size: 2.1rem; line-height: 1; }
.catalog-intro__stats span { color: rgba(255,255,255,0.75); font-size: 0.8rem; line-height: 1.25; }
.catalog-main { padding-top: clamp(2rem, 5vw, 3.5rem); padding-bottom: clamp(4rem, 8vw, 7rem); }
.catalog-toolbar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.75rem; align-items: center; }
.catalog-search { min-height: 56px; border-radius: 16px; background: #fff; box-shadow: var(--shadow-sm); }
.catalog-search input { font-size: 0.98rem; }
.catalog-search__clear { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border: 0; border-radius: 50%; color: #8f827c; background: transparent; font-size: 1.45rem; line-height: 1; cursor: pointer; }
.catalog-search__clear:hover { color: var(--brand); background: var(--brand-soft); }
.catalog-status { margin: 0.75rem 0 1.5rem; color: var(--ink); font-size: 0.86rem; font-weight: 750; }
.catalog-status__hint { color: #9a918b; font-weight: 500; }
.catalog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.catalog-card { display: flex; min-width: 0; flex-direction: column; overflow: hidden; border: 1px solid #ebe4de; border-radius: 22px; background: #fff; box-shadow: var(--shadow-sm); transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease; }
.catalog-card:hover { transform: translateY(-5px); border-color: #dfc8bf; box-shadow: var(--shadow-md); }
.catalog-card[hidden] { display: none !important; }
.catalog-card__media { position: relative; display: block; height: 220px; overflow: hidden; color: #fff; text-decoration: none; background: #d9cbc2; }
.catalog-card__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,10,8,0.1), transparent 42%, rgba(20,10,8,0.42)); pointer-events: none; }
.catalog-card__media img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; transition: transform 0.6s ease; }
.catalog-card:hover .catalog-card__media img { transform: scale(1.06); }
.catalog-card__kind, .catalog-card__actual, .catalog-card__duration { position: absolute; z-index: 1; display: inline-flex; align-items: center; min-height: 28px; padding: 0.34rem 0.65rem; border-radius: 99px; font-size: 0.72rem; font-weight: 800; line-height: 1; }
.catalog-card__kind { top: 0.85rem; left: 0.85rem; color: #fff; background: rgba(31,23,21,0.68); backdrop-filter: blur(8px); }
.catalog-card__actual { top: 0.85rem; right: 0.85rem; color: #9c2029; background: #fff; box-shadow: 0 6px 15px rgba(0,0,0,0.13); }
.catalog-card__duration { bottom: 0.85rem; left: 0.85rem; color: #fff; background: rgba(31,23,21,0.62); backdrop-filter: blur(8px); }
.catalog-card__body { display: flex; flex: 1; min-width: 0; flex-direction: column; padding: 1.3rem 1.35rem 1.35rem; }
.catalog-card__meta { display: flex; justify-content: space-between; gap: 0.75rem; margin-bottom: 0.75rem; color: #9a918b; font-size: 0.72rem; line-height: 1.3; }
.catalog-card__meta span:first-child { overflow: hidden; color: var(--brand); font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.catalog-card__body h2 { min-height: 3.5rem; margin: 0; font-size: 1.22rem; font-weight: 830; line-height: 1.18; letter-spacing: -0.025em; }
.catalog-card__body h2 a { color: var(--ink); text-decoration: none; }
.catalog-card__body h2 a:hover { color: var(--brand); }
.catalog-card__price { margin-top: 0.9rem; color: var(--brand); font-size: 1.04rem; font-weight: 850; line-height: 1.25; }
.catalog-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.85rem; }
.catalog-tags span { padding: 0.34rem 0.55rem; border-radius: 7px; color: #6d625d; background: #f5f1ee; font-size: 0.7rem; font-weight: 750; }
.catalog-dates { margin-top: 0.85rem; padding: 0.7rem; border: 1px solid #f1d9d2; border-radius: 13px; background: var(--brand-soft); }
.catalog-dates strong { display: block; margin-bottom: 0.45rem; color: var(--brand); font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase; }
.catalog-dates > div { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.catalog-dates span { padding: 0.3rem 0.45rem; border: 1px solid #eed4ce; border-radius: 7px; color: #6e4e49; background: #fff; font-size: 0.75rem; font-weight: 800; }
.catalog-card__action { display: flex; align-items: center; justify-content: space-between; min-height: 45px; margin-top: 1.15rem; padding: 0.7rem 0.85rem; border: 1px solid #eaded8; border-radius: 12px; color: var(--ink); background: #fff; font-size: 0.87rem; font-weight: 800; text-decoration: none; transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease; }
.catalog-card__action:hover { color: #fff; border-color: var(--brand); background: var(--brand); }
.catalog-empty { margin-top: 1.5rem; padding: 3.5rem 1.5rem; border: 1px dashed #dbc9be; border-radius: 22px; text-align: center; background: #fffaf7; }
.catalog-empty__icon { display: inline-flex; align-items: center; justify-content: center; width: 50px; height: 50px; margin-bottom: 1rem; border-radius: 16px; color: var(--brand); background: var(--brand-soft); font-size: 1.8rem; }
.catalog-empty h2 { margin: 0 0 0.45rem; font-size: 1.5rem; }
.catalog-empty p { margin: 0 0 1.2rem; color: var(--muted); }
.catalog-pagination { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 0.45rem; margin-top: 2.5rem; }
.catalog-pagination[hidden] { display: none; }
.pagination-button { min-height: 43px; padding: 0.6rem 0.8rem; border: 1px solid #e7dcd5; border-radius: 11px; color: var(--ink); background: #fff; font-size: 0.82rem; font-weight: 750; cursor: pointer; }
.pagination-button:hover:not(:disabled) { border-color: #d5aaa0; background: var(--brand-soft); }
.pagination-button:disabled { opacity: 0.42; cursor: not-allowed; }
.catalog-pagination > span { padding: 0 0.55rem; color: var(--muted); font-size: 0.84rem; font-weight: 750; }

/* Панель фильтров */
#filterModal.hidden { display: none !important; }
#filterModal.is-open { display: flex !important; }
.filter-modal { position: fixed; inset: 0; z-index: 100; align-items: stretch; justify-content: flex-end; }
.filter-modal__backdrop { position: absolute; inset: 0; background: rgba(25,16,14,0.52); backdrop-filter: blur(3px); }
.filter-panel { position: relative; z-index: 1; width: min(100%, 430px); min-height: 100%; padding: 2rem; overflow-y: auto; background: #fffdfb; box-shadow: -18px 0 50px rgba(25,16,14,0.16); animation: filterPanelIn 0.22s ease-out; }
.filter-panel__header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding-bottom: 1.6rem; border-bottom: 1px solid var(--line); }
.filter-panel__header h2 { margin: 0.5rem 0 0; font-size: 1.75rem; letter-spacing: -0.04em; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 12px; color: var(--muted); background: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.icon-button:hover { color: var(--brand); border-color: #dfc0b7; background: var(--brand-soft); }
.filter-field { margin-top: 1.25rem; }
.filter-field label { display: block; margin-bottom: 0.5rem; color: var(--ink); font-size: 0.82rem; font-weight: 800; }
.filter-price-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 0.45rem; }
.filter-price-row > span { color: #afa39d; }
.filter-panel__actions { display: grid; grid-template-columns: 0.75fr 1.25fr; gap: 0.65rem; margin-top: 2rem; padding-top: 1.3rem; border-top: 1px solid var(--line); }
@keyframes filterPanelIn { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: translateX(0); } }

/* Подвал */
.site-footer { color: #bdb4b0 !important; background: #292326 !important; }
.site-footer__inner { display: flex; flex-direction: column; align-items: center; gap: 0.35rem; }
.site-footer__brand { color: #fff; font-size: 1.1rem; font-weight: 850; letter-spacing: 0.12em; }
.site-footer__links { gap: 0.9rem !important; }
.site-footer a { color: #bdb4b0; }
.site-footer a:hover { color: #fff; }

@media (max-width: 900px) {
    .site-navigation { gap: 0.65rem !important; }
    .site-navigation .nav-link { font-size: 0.84rem; }
    .home-search-card { grid-template-columns: 1fr; gap: 1.15rem; }
    .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
    .site-header__inner { min-height: 64px !important; }
    .site-brand { font-size: 1.18rem !important; }
    .site-brand svg { width: 29px; height: 29px; }
    .site-mobile-menu { max-height: calc(100dvh - 5rem); padding-bottom: 0.7rem !important; }
    .home-hero { min-height: 650px; align-items: end; }
    .home-hero__overlay { background: linear-gradient(0deg, rgba(20,13,12,0.85) 0%, rgba(20,13,12,0.36) 72%, rgba(20,13,12,0.18) 100%); }
    .home-hero__content { padding-bottom: 2.6rem; }
    .home-hero h1 { font-size: clamp(2.6rem, 12vw, 4.2rem); }
    .home-hero__actions { flex-direction: column; align-items: stretch; }
    .home-hero__actions .button { width: 100%; }
    .home-search-section { margin-top: -24px; }
    .home-search-card { padding: 1.25rem; border-radius: 20px; }
    .home-search-form { grid-template-columns: 1fr; }
    .home-search-form .button { width: 100%; }
    .section-heading--row { display: block; }
    .section-heading--row > p { margin-top: 0.75rem; }
    .home-choice-grid, .benefit-grid { grid-template-columns: 1fr; }
    .home-choice { min-height: 120px; padding: 1.1rem; }
    .benefit-card { min-height: 0; }
    .home-cta { display: block; padding: 1.7rem 1.25rem; border-radius: 22px; }
    .home-cta__actions { margin-top: 1.4rem; }
    .home-cta__actions .button { flex: 1; }
    .catalog-intro__layout { display: block; }
    .catalog-intro h1 { font-size: clamp(2.35rem, 12vw, 4rem); }
    .catalog-intro__stats { display: inline-flex; margin-top: 1.5rem; }
    .catalog-toolbar { grid-template-columns: 1fr; }
    .catalog-toolbar .button { width: 100%; }
    .catalog-grid { grid-template-columns: 1fr; gap: 1rem; }
    .catalog-card__media { height: 210px; }
    .filter-panel { width: 100%; padding: 1.4rem 1rem 1.25rem; }
    .filter-panel__actions { position: sticky; bottom: 0; padding-bottom: 0.1rem; background: #fffdfb; }
    .catalog-status__hint { display: none; }
    .pagination-button { min-width: 42px; }
}

@media (prefers-reduced-motion: reduce) {
    .snow-button::after, .catalog-card, .button, .filter-panel { animation: none !important; transition: none !important; }
}

/* Новогодняя страница */
.winter-hero { position: relative; isolation: isolate; overflow: hidden; color: #fff; background: linear-gradient(120deg, #122b57, #1c5b85 55%, #5f9ab0); }
.winter-hero::before { content: ''; position: absolute; inset: 0; z-index: -2; opacity: 0.45; background: radial-gradient(circle at 72% 22%, rgba(255,255,255,0.9) 0 1px, transparent 2px), radial-gradient(circle at 35% 34%, rgba(255,255,255,0.8) 0 1px, transparent 2px), radial-gradient(circle at 85% 68%, rgba(255,255,255,0.7) 0 1.5px, transparent 2.5px); background-size: 170px 130px, 210px 170px, 250px 200px; animation: winterSnow 12s linear infinite; }
.winter-hero::after { content: ''; position: absolute; left: -5%; right: -5%; bottom: -100px; z-index: -1; height: 185px; border-radius: 50% 50% 0 0; background: #f7fbff; box-shadow: 260px 34px 0 -14px #eaf4fb, 640px -10px 0 -8px #f7fbff, 980px 45px 0 -10px #eaf4fb; }
.winter-hero .container { position: relative; padding-top: clamp(2.3rem, 6vw, 5rem); padding-bottom: clamp(6.3rem, 12vw, 9rem); }
.winter-hero .back-link { color: rgba(255,255,255,0.78); }
.winter-hero h1 { max-width: 730px; margin: 1rem 0 1rem; font-size: clamp(2.8rem, 7vw, 6rem); font-weight: 880; line-height: 0.92; letter-spacing: -0.065em; }
.winter-hero h1 span { color: #bce5ff; }
.winter-hero p { max-width: 600px; margin: 0; color: rgba(255,255,255,0.8); font-size: 1.1rem; line-height: 1.55; }
.eyebrow--winter { color: #bde8ff; }
.eyebrow--winter-dark { color: #2b79a2; }
.new-year-page { background: #f7fbff; }
.new-year-page .catalog-main { padding-top: clamp(3.2rem, 6vw, 5rem); }
.winter-section + .winter-section { margin-top: clamp(4.5rem, 8vw, 7rem); }
.winter-section .section-heading { margin-bottom: 2rem; }
.winter-section .section-heading h2 { color: #17395f; }
.winter-card { border-color: #dcebf4; }
.winter-card:hover { border-color: #9ccce5; }
.winter-price { color: #236b95; }
.winter-dates { border-color: #cfe7f5; background: #eef8ff; }
.winter-dates strong { color: #236b95; }
.winter-dates span { border-color: #d2e7f1; color: #315a72; }
.winter-action:hover { border-color: #2478a4; background: #2478a4; }
.winter-empty { border-color: #cfe4f1; background: #fff; }
@keyframes winterSnow { from { background-position: 0 -180px, 20px -220px, 60px -260px; } to { background-position: 30px 180px, -10px 220px, 20px 260px; } }

@media (max-width: 767px) {
    .home-choice { grid-template-columns: auto 1fr auto; }
    .catalog-card__body h2 { min-height: 0; }
    .winter-hero h1 { font-size: clamp(3rem, 15vw, 5rem); }
    .winter-hero::after { bottom: -125px; }
}

/* Страница программы: заметная информация и короткий путь к заявке. */
.details-page { background: #f8f5f2 !important; }
.detail-hero { min-height: 500px !important; }
.detail-hero > div:nth-child(2) { background: linear-gradient(90deg, rgba(20,14,13,0.7), rgba(20,14,13,0.28)) !important; }
.detail-hero h1 { max-width: 820px; font-size: clamp(2.3rem, 5vw, 5rem); letter-spacing: -0.055em; }
.detail-hero > div:nth-child(3) > div > span { border-radius: 99px; background: rgba(180,35,43,0.92); }
.detail-shell { max-width: 1240px; }
.detail-main-panel, .detail-booking-panel { border-color: #eadfd8 !important; border-radius: 24px !important; box-shadow: var(--shadow-md) !important; }
.detail-main-panel h2 { letter-spacing: -0.035em; }
.detail-main-panel .prose > div { border-radius: 16px; line-height: 1.7; }
.detail-booking-panel h3 { letter-spacing: -0.04em; }
.detail-booking-panel input, .detail-booking-panel textarea { border-color: #e5d8d1 !important; border-radius: 12px !important; }
.detail-booking-panel input:focus, .detail-booking-panel textarea:focus { border-color: #d26d68 !important; box-shadow: 0 0 0 4px rgba(180,35,43,0.08); }

@media (max-width: 767px) {
    .detail-hero { min-height: 430px !important; }
    .detail-hero a { top: 1rem !important; left: 1rem !important; }
    .detail-shell { margin-top: -2rem !important; }
    .detail-main-panel, .detail-booking-panel { border-radius: 18px !important; }
}

/* ========================================================================== */
/* Тема и единые интерфейсные компоненты 2026                                 */
/* ========================================================================== */
html { color-scheme: light; }
html[data-theme="dark"] { color-scheme: dark; }
html[data-theme="dark"] {
    --brand: #ff7775;
    --brand-dark: #e8595d;
    --brand-soft: #3c2529;
    --ink: #f7f5f3;
    --muted: #b7b0ac;
    --line: #3a3433;
    --paper: #171414;
    --sand: #211c1b;
    --surface: #211d1c;
    --surface-raised: #292321;
    --field: #2a2423;
    --shadow-sm: 0 10px 28px rgba(0,0,0,0.22);
    --shadow-md: 0 24px 60px rgba(0,0,0,0.34);
}
html[data-theme="light"] {
    --surface: #fff;
    --surface-raised: #fffdfb;
    --field: #fffaf8;
}
html[data-theme="dark"] body,
html[data-theme="dark"] .site-body,
html[data-theme="dark"] .home-page,
html[data-theme="dark"] .catalog-page,
html[data-theme="dark"] .details-page {
    color: var(--ink) !important;
    background: var(--paper) !important;
}
html[data-theme="dark"] .bg-white,
html[data-theme="dark"] .bg-gray-50,
html[data-theme="dark"] .bg-gray-100,
html[data-theme="dark"] .bg-gray-200,
html[data-theme="dark"] .bg-white\/10,
html[data-theme="dark"] .bg-white\/20,
html[data-theme="dark"] .home-search-card,
html[data-theme="dark"] .catalog-card,
html[data-theme="dark"] .detail-main-panel,
html[data-theme="dark"] .detail-booking-panel,
html[data-theme="dark"] .filter-panel,
html[data-theme="dark"] .benefit-card,
html[data-theme="dark"] .home-choice--sand,
html[data-theme="dark"] .catalog-empty {
    background-color: var(--surface) !important;
}
html[data-theme="dark"] .home-section--soft,
html[data-theme="dark"] .details-page,
html[data-theme="dark"] .new-year-page,
html[data-theme="dark"] .winter-empty {
    background-color: var(--sand) !important;
}
html[data-theme="dark"] .text-gray-900,
html[data-theme="dark"] .text-gray-800,
html[data-theme="dark"] .text-gray-700,
html[data-theme="dark"] .text-gray-600,
html[data-theme="dark"] .text-gray-500,
html[data-theme="dark"] .text-gray-400,
html[data-theme="dark"] .catalog-card__body h2 a,
html[data-theme="dark"] .catalog-card__action,
html[data-theme="dark"] .section-heading h2,
html[data-theme="dark"] .home-search-card h2,
html[data-theme="dark"] .benefit-card h3,
html[data-theme="dark"] .home-choice--sand,
html[data-theme="dark"] .detail-main-panel,
html[data-theme="dark"] .detail-booking-panel {
    color: var(--ink) !important;
}
html[data-theme="dark"] .text-gray-600,
html[data-theme="dark"] .text-gray-500,
html[data-theme="dark"] .text-gray-400,
html[data-theme="dark"] .catalog-status__hint,
html[data-theme="dark"] .catalog-card__meta,
html[data-theme="dark"] .home-search-card p,
html[data-theme="dark"] .benefit-card p,
html[data-theme="dark"] .section-heading > p,
html[data-theme="dark"] .section-heading--row > p {
    color: var(--muted) !important;
}
html[data-theme="dark"] .border,
html[data-theme="dark"] .border-gray-100,
html[data-theme="dark"] .border-gray-200,
html[data-theme="dark"] .border-gray-300,
html[data-theme="dark"] .border-red-50,
html[data-theme="dark"] .border-red-100,
html[data-theme="dark"] .border-blue-100,
html[data-theme="dark"] .catalog-card,
html[data-theme="dark"] .detail-main-panel,
html[data-theme="dark"] .detail-booking-panel,
html[data-theme="dark"] .benefit-card,
html[data-theme="dark"] .home-search-card {
    border-color: var(--line) !important;
}
html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] textarea,
html[data-theme="dark"] .home-search-form__input,
html[data-theme="dark"] .catalog-search,
html[data-theme="dark"] .home-search-form__select,
html[data-theme="dark"] .filter-field select,
html[data-theme="dark"] .filter-field input {
    color: var(--ink) !important;
    border-color: var(--line) !important;
    background-color: var(--field) !important;
}
html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder { color: #948b88 !important; }
html[data-theme="dark"] .button--secondary,
html[data-theme="dark"] .button--ghost,
html[data-theme="dark"] .pagination-button,
html[data-theme="dark"] .icon-button,
html[data-theme="dark"] .catalog-card__action {
    color: var(--ink) !important;
    border-color: var(--line) !important;
    background-color: var(--surface-raised) !important;
}
html[data-theme="dark"] .button--secondary:hover,
html[data-theme="dark"] .button--ghost:hover,
html[data-theme="dark"] .pagination-button:hover:not(:disabled) { background-color: #352b29 !important; }
html[data-theme="dark"] .catalog-tags span { color: #d5cdca; background: #332c2a; }
html[data-theme="dark"] .catalog-dates { border-color: #5a3538; background: #352326; }
html[data-theme="dark"] .catalog-dates span { color: #f1dcda; border-color: #594143; background: #2b2423; }
html[data-theme="dark"] .catalog-card__actual { color: #ffd8d6; background: #4b272b; }
html[data-theme="dark"] .home-choice--sand .home-choice__count { color: #ffd7d4; background: #48282c; }
html[data-theme="dark"] .winter-card { border-color: #29475a !important; }
html[data-theme="dark"] .winter-price { color: #81cdf4; }
html[data-theme="dark"] .winter-dates { border-color: #2d4d62; background: #203241; }
html[data-theme="dark"] .winter-dates strong { color: #8bd4f7; }
html[data-theme="dark"] .winter-dates span { color: #d6edf8; border-color: #456477; background: #263c4b; }
html[data-theme="dark"] .winter-section .section-heading h2 { color: #d6edff !important; }
html[data-theme="dark"] .detail-main-panel .bg-gray-50,
html[data-theme="dark"] .detail-main-panel .bg-green-50,
html[data-theme="dark"] .detail-main-panel .bg-red-50,
html[data-theme="dark"] .detail-booking-panel .bg-red-50 { background: #2b2524 !important; }
html[data-theme="dark"] .text-red-600,
html[data-theme="dark"] .text-red-700 { color: #ff8b88 !important; }
html[data-theme="dark"] .bg-red-50,
html[data-theme="dark"] .bg-red-100 { background-color: #3b2528 !important; }
html[data-theme="dark"] .bg-blue-50,
html[data-theme="dark"] .bg-blue-100 { background-color: #202f42 !important; }
html[data-theme="dark"] .shadow-xl,
html[data-theme="dark"] .shadow-lg,
html[data-theme="dark"] .shadow-md { box-shadow: var(--shadow-sm) !important; }

/* Переключатель темы */
.theme-control {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 36px;
    margin-top: 0.7rem;
    padding: 0.45rem 0.75rem;
    border: 1px solid rgba(255,255,255,0.17);
    border-radius: 999px;
    color: #d9d0cc;
    background: rgba(255,255,255,0.06);
    font-size: 0.78rem;
    font-weight: 750;
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.theme-control:hover { color: #fff; background: rgba(255,255,255,0.13); transform: translateY(-1px); }
.theme-control__icon { display: inline-flex; width: 16px; height: 16px; }
.theme-control__icon svg { width: 100%; height: 100%; }
.theme-control__icon--moon { display: none; }
html[data-theme="dark"] .theme-control__icon--sun { display: none; }
html[data-theme="dark"] .theme-control__icon--moon { display: inline-flex; }
.mobile-bottom-bar { display: none; }

@media (max-width: 767px) {
    body.site-body { padding-bottom: 78px; }
    .site-footer { padding-bottom: 1.75rem !important; }
    .theme-control { display: none; }
    .mobile-bottom-bar {
        position: fixed;
        left: max(0.5rem, env(safe-area-inset-left));
        right: max(0.5rem, env(safe-area-inset-right));
        bottom: max(0.5rem, env(safe-area-inset-bottom));
        z-index: 90;
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        padding: 0.35rem;
        border: 1px solid rgba(255,255,255,0.58);
        border-radius: 20px;
        color: #322a28;
        background: rgba(255,253,251,0.9);
        box-shadow: 0 14px 36px rgba(43,27,23,0.22);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
    }
    .mobile-bottom-bar__item {
        display: flex;
        min-width: 0;
        min-height: 52px;
        align-items: center;
        justify-content: center;
        gap: 0.18rem;
        flex-direction: column;
        border: 0;
        border-radius: 14px;
        color: inherit;
        background: transparent;
        font-size: 0.58rem;
        font-weight: 760;
        line-height: 1;
        text-decoration: none;
        cursor: pointer;
    }
    .mobile-bottom-bar__item:active { background: rgba(180,35,43,0.1); }
    .mobile-bottom-bar__item.is-active { color: var(--brand); background: rgba(180,35,43,0.09); }
    .mobile-bottom-bar__item svg, .mobile-bottom-bar__theme-icons { width: 19px; height: 19px; }
    .mobile-bottom-bar__theme-icons { display: inline-flex; }
    .mobile-bottom-bar__theme-icons svg { width: 100%; height: 100%; }
    .theme-icon--moon { display: none; }
    html[data-theme="dark"] .mobile-bottom-bar {
        color: #e9e2de;
        border-color: rgba(255,255,255,0.1);
        background: rgba(36,30,29,0.9);
        box-shadow: 0 14px 36px rgba(0,0,0,0.38);
    }
    html[data-theme="dark"] .theme-icon--sun { display: none; }
    html[data-theme="dark"] .theme-icon--moon { display: block; }
}

/* Информационные страницы */
.service-page { min-height: 100vh; background: var(--paper); }
.service-hero { position: relative; overflow: hidden; color: #fff; background: linear-gradient(118deg, #4c2427, #b84143 62%, #d67562); }
.service-hero::after { content: ''; position: absolute; width: min(46vw, 520px); aspect-ratio: 1; right: -12%; bottom: -55%; border: 1px solid rgba(255,255,255,0.25); border-radius: 50%; box-shadow: 0 0 0 45px rgba(255,255,255,0.06), 0 0 0 95px rgba(255,255,255,0.035); }
.service-hero--soft { background: linear-gradient(118deg, #48272c, #8b4c67 60%, #a36479); }
.service-hero--news { background: linear-gradient(118deg, #373034, #735348 60%, #ae7357); }
.service-hero .container { position: relative; z-index: 1; padding-top: clamp(3.5rem, 7vw, 6rem); padding-bottom: clamp(3.5rem, 7vw, 6rem); }
.service-hero h1 { max-width: 800px; margin: 1rem 0; font-size: clamp(2.6rem, 6vw, 5.2rem); font-weight: 880; line-height: 0.95; letter-spacing: -0.065em; }
.service-hero p { max-width: 650px; margin: 0; color: rgba(255,255,255,0.8); font-size: 1.05rem; line-height: 1.55; }
.service-main { padding-top: clamp(2rem, 5vw, 4.5rem); padding-bottom: clamp(4rem, 8vw, 7rem); }
.contact-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 0.95fr); gap: 1.25rem; }
.contact-card { overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); box-shadow: var(--shadow-sm); }
.contact-card--details { padding: clamp(1.35rem, 4vw, 2.2rem); }
.contact-card__heading h2 { margin: 0.55rem 0 1.7rem; color: var(--ink); font-size: clamp(1.65rem, 3vw, 2.25rem); letter-spacing: -0.045em; }
.contact-list { display: grid; gap: 0.65rem; }
.contact-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 0.9rem; min-height: 74px; padding: 0.85rem; border: 1px solid transparent; border-radius: 16px; color: var(--ink); text-decoration: none; transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease; }
.contact-item:hover { border-color: #e6c4bd; background: #fff8f5; transform: translateX(2px); }
.contact-item__icon { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 13px; color: var(--brand); background: var(--brand-soft); }
.contact-item__icon svg { width: 21px; height: 21px; }
.contact-item small, .contact-address small { display: block; margin-bottom: 0.18rem; color: var(--muted); font-size: 0.72rem; font-weight: 700; }
.contact-item strong, .contact-address strong { display: block; font-size: 0.96rem; line-height: 1.25; }
.contact-item__arrow { color: var(--muted); font-size: 1.15rem; }
.contact-worktime { display: flex; gap: 0.6rem; margin-top: 1.4rem; padding: 1rem; border-radius: 15px; color: var(--muted); background: var(--sand); font-size: 0.85rem; line-height: 1.5; }
.contact-worktime strong { color: var(--ink); }
.contact-worktime__dot { width: 8px; height: 8px; flex: 0 0 8px; margin-top: 0.35rem; border-radius: 50%; background: #42a06b; box-shadow: 0 0 0 4px rgba(66,160,107,0.12); }
.contact-card--map { display: flex; flex-direction: column; min-height: 100%; }
.contact-map { position: relative; min-height: 310px; flex: 1; background: #d5d0ca; }
.contact-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.contact-address { display: flex; align-items: center; gap: 0.9rem; padding: 1.25rem; }

.review-summary { display: flex; align-items: baseline; gap: 0.65rem; margin-bottom: 1.5rem; color: var(--muted); }
.review-summary .eyebrow { margin-right: 0.45rem; }
.review-summary strong { color: var(--brand); font-size: 2.1rem; line-height: 1; letter-spacing: -0.06em; }
.review-grid, .news-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1.15rem; }
.review-card { padding: 1.35rem; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: var(--shadow-sm); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.review-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.review-card[hidden], .news-card[hidden] { display: none !important; }
.review-card__top { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 0.75rem; }
.review-avatar { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; color: var(--brand); background: var(--brand-soft); font-size: 0.9rem; font-weight: 850; }
.review-card h2 { margin: 0; color: var(--ink); font-size: 0.98rem; }
.review-card__top p { margin: 0.18rem 0 0; color: var(--muted); font-size: 0.72rem; }
.review-stars { color: #deaa38; letter-spacing: 0.02em; font-size: 0.95rem; }
.review-card__text { margin: 1.1rem 0 0; color: var(--muted); font-size: 0.93rem; line-height: 1.6; }

.news-card { display: flex; min-width: 0; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: var(--shadow-sm); transition: transform 0.25s ease, box-shadow 0.25s ease; }
.news-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.news-card__image { position: relative; display: block; height: 210px; overflow: hidden; background: #c9b6aa; }
.news-card__image::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(0,0,0,0.45)); }
.news-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.news-card:hover .news-card__image img { transform: scale(1.06); }
.news-card__image span { position: absolute; z-index: 1; left: 0.85rem; bottom: 0.75rem; color: #fff; font-size: 0.75rem; font-weight: 750; }
.news-card__body { display: flex; flex: 1; flex-direction: column; padding: 1.2rem; }
.news-card__author { margin: 0 0 0.5rem; color: var(--brand); font-size: 0.72rem; font-weight: 850; text-transform: uppercase; letter-spacing: 0.08em; }
.news-card h2 { min-height: 3.2rem; margin: 0; color: var(--ink); font-size: 1.2rem; line-height: 1.18; letter-spacing: -0.025em; }
.news-card h2 a { color: inherit; text-decoration: none; }
.news-card h2 a:hover { color: var(--brand); }
.news-card__preview { display: -webkit-box; margin: 0.8rem 0 1.1rem; overflow: hidden; color: var(--muted); font-size: 0.88rem; line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 4; }
.news-card__action { display: flex; justify-content: space-between; gap: 1rem; margin-top: auto; color: var(--brand); font-size: 0.85rem; font-weight: 830; text-decoration: none; }
.news-card__action:hover { color: var(--brand-dark); }

.article-page { padding-top: clamp(2rem, 5vw, 4rem); padding-bottom: clamp(4rem, 7vw, 6rem); }
.article-surface { border: 1px solid var(--line); border-radius: 24px !important; background: var(--surface) !important; box-shadow: var(--shadow-md) !important; }
.article-cover { height: clamp(230px, 42vw, 420px); overflow: hidden; }
.article-cover img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.article-content { color: var(--ink); }
.article-content h1 { letter-spacing: -0.045em; }
.article-content form { border: 1px solid var(--line); background: var(--sand) !important; }

.service-page__intro { max-width: 760px; margin: 0 auto 3.4rem; text-align: center; }
.service-page__intro h1 { margin: 0.65rem 0 0.75rem; letter-spacing: -0.055em; }
.service-page__intro p { margin: 0; color: var(--muted); line-height: 1.55; }
.about-page { padding-top: clamp(3rem, 6vw, 5rem) !important; padding-bottom: clamp(4rem, 7vw, 6rem) !important; }
.about-page .space-y-16 > * + * { margin-top: 3rem !important; }
.about-page .bg-white { border-color: var(--line) !important; box-shadow: var(--shadow-sm) !important; }
.about-surface { border-radius: 24px !important; }
.about-page .spoiler-btn { color: var(--ink); background: var(--sand) !important; }
.legal-page { padding-top: clamp(3rem, 6vw, 5rem) !important; padding-bottom: clamp(4rem, 7vw, 6rem) !important; }
.legal-page__title { margin-top: 0.75rem; letter-spacing: -0.05em; }
.legal-content { padding: clamp(1.3rem, 4vw, 2.3rem); border: 1px solid var(--line); border-radius: 22px; color: var(--muted) !important; background: var(--surface); box-shadow: var(--shadow-sm); }
.legal-content h2 { color: var(--ink) !important; letter-spacing: -0.025em; }
.legal-content a { color: var(--brand) !important; }

/* Служебные страницы */
.admin-page { max-width: 1240px; padding-top: clamp(2rem, 5vw, 4rem) !important; padding-bottom: clamp(4rem, 7vw, 6rem) !important; }
.admin-title { letter-spacing: -0.045em; }
.admin-surface { border: 1px solid var(--line) !important; border-radius: 20px !important; background: var(--surface) !important; box-shadow: var(--shadow-sm) !important; }
.admin-tabs { gap: 0.45rem !important; border-color: var(--line) !important; }
.admin-tabs a { border-radius: 10px !important; color: var(--muted); }
.admin-tabs a:hover { color: var(--ink); background: var(--sand) !important; }
.admin-page table { color: var(--ink); }
.admin-page thead { background: var(--sand) !important; border-color: var(--line) !important; }
.admin-page tr { border-color: var(--line) !important; }
.admin-page tr:hover { background: var(--sand) !important; }
.admin-page input, .admin-page textarea, .admin-page select { color: var(--ink) !important; border-color: var(--line) !important; background: var(--field) !important; }
.admin-page input:focus, .admin-page textarea:focus, .admin-page select:focus { border-color: #d26d68 !important; box-shadow: 0 0 0 4px rgba(180,35,43,0.1); }
.admin-login-page { background: linear-gradient(145deg, #f6eeea, #f8f6f3) !important; }
.admin-login-card { border-color: var(--line) !important; background: var(--surface) !important; box-shadow: var(--shadow-md) !important; }
html[data-theme="dark"] .admin-login-page { background: radial-gradient(circle at 15% 10%, #41282b, transparent 35%), #171414 !important; }
html[data-theme="dark"] .contact-card,
html[data-theme="dark"] .review-card,
html[data-theme="dark"] .news-card,
html[data-theme="dark"] .article-surface,
html[data-theme="dark"] .legal-content,
html[data-theme="dark"] .admin-surface,
html[data-theme="dark"] .admin-login-card { background: var(--surface) !important; border-color: var(--line) !important; }
html[data-theme="dark"] .contact-item:hover { border-color: #614044; background: #2c2524; }
html[data-theme="dark"] .contact-worktime,
html[data-theme="dark"] .article-content form { background: var(--sand) !important; }
html[data-theme="dark"] .contact-item strong,
html[data-theme="dark"] .contact-worktime strong,
html[data-theme="dark"] .news-card h2,
html[data-theme="dark"] .review-card h2,
html[data-theme="dark"] .legal-content h2 { color: var(--ink) !important; }

@media (max-width: 900px) {
    .contact-layout { grid-template-columns: 1fr; }
    .review-grid, .news-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 767px) {
    .service-hero h1 { font-size: clamp(2.65rem, 13vw, 4.4rem); }
    .contact-card { border-radius: 19px; }
    .contact-map { min-height: 260px; }
    .review-grid, .news-grid { grid-template-columns: 1fr; }
    .review-summary { flex-wrap: wrap; }
    .article-surface { border-radius: 18px !important; }
    .article-content { padding: 1.25rem !important; }
    .admin-page { padding-left: 1rem !important; padding-right: 1rem !important; }
}
