:root {
    --rv-ink: #19312d;
    --rv-deep: #123d37;
    --rv-deep-2: #0d302b;
    --rv-gold: #b98245;
    --rv-gold-soft: #d9b98c;
    --rv-cream: #f7f2e9;
    --rv-paper: #fffdf9;
    --rv-mist: #e8efeb;
    --rv-line: rgba(25, 49, 45, 0.13);
    --rv-muted: #687773;
    --rv-shadow: 0 24px 60px rgba(18, 61, 55, 0.12);
}

html {
    background: var(--rv-cream);
}

body {
    color: var(--rv-ink);
    font-family: "Avenir Next", Avenir, "Helvetica Neue", Arial, sans-serif;
    background:
        radial-gradient(circle at 8% 12%, rgba(217, 185, 140, 0.22), transparent 28%),
        radial-gradient(circle at 92% 45%, rgba(114, 157, 145, 0.13), transparent 30%),
        var(--rv-cream);
}

h1,
h2,
h3,
.section-title,
.page-hero h1,
.hero h1,
.cta-box h2 {
    font-family: Georgia, "Times New Roman", serif;
    letter-spacing: -0.035em;
}

.container {
    max-width: 1180px;
}

.site-main::before {
    background:
        radial-gradient(circle at 15% 18%, rgba(197, 151, 91, 0.10), transparent 34%),
        radial-gradient(circle at 82% 64%, rgba(46, 103, 91, 0.08), transparent 36%);
}

/* Header and wordmark */
.site-header {
    background: rgba(247, 242, 233, 0.88);
    border-bottom: 1px solid var(--rv-line);
    box-shadow: 0 8px 30px rgba(18, 61, 55, 0.06);
    backdrop-filter: blur(18px);
}

.header-inner {
    min-height: 86px;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 205px;
}

.site-logo img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.site-logo-copy {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.site-logo-copy strong {
    color: var(--rv-deep);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 25px;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.site-logo-copy small {
    margin-top: 6px;
    color: var(--rv-muted);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.site-nav {
    gap: 24px;
}

.site-nav a {
    color: #40534f;
    font-size: 13px;
    font-weight: 650;
    letter-spacing: 0.02em;
}

.site-nav a:hover,
.site-nav a.active {
    color: var(--rv-gold);
}

.header-btn,
.hero-btn,
.mobile-menu-btn,
.submit-btn,
.contact-form button,
.search-mobile-submit,
.add-tourist-btn {
    border: 1px solid var(--rv-deep) !important;
    color: #fff !important;
    background: var(--rv-deep) !important;
    box-shadow: 0 12px 28px rgba(18, 61, 55, 0.18) !important;
    transition: transform .2s ease, background .2s ease, box-shadow .2s ease !important;
}

.header-btn:hover,
.hero-btn:hover,
.submit-btn:hover,
.contact-form button:hover,
.search-mobile-submit:hover,
.add-tourist-btn:hover {
    background: var(--rv-gold) !important;
    border-color: var(--rv-gold) !important;
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(185, 130, 69, 0.22) !important;
}

.burger-btn span {
    background: var(--rv-deep);
}

.mobile-menu {
    background: rgba(247, 242, 233, 0.98);
    border-top-color: var(--rv-line);
}

.mobile-menu-inner a {
    color: var(--rv-ink);
    border-bottom-color: var(--rv-line);
}

/* Homepage hero */
.hero {
    min-height: 690px;
    display: flex;
    align-items: center;
    background:
        linear-gradient(90deg, rgba(9, 45, 40, .94) 0%, rgba(9, 45, 40, .78) 42%, rgba(9, 45, 40, .18) 78%),
        url("/assets/images/hero/hero-main.jpg") center 46% / cover no-repeat;
}

.hero::before {
    background:
        linear-gradient(180deg, rgba(8, 37, 33, 0.06), rgba(8, 37, 33, 0.35)),
        radial-gradient(circle at 78% 25%, rgba(217, 185, 140, .18), transparent 28%);
}

.hero-content {
    width: min(680px, 100%);
    margin: 0;
    padding: 110px 20px 120px max(20px, calc((100vw - 1180px) / 2));
    text-align: left;
}

.hero-kicker {
    margin-bottom: 22px;
    color: var(--rv-gold-soft);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .22em;
    text-transform: uppercase;
}

.hero h1 {
    max-width: 650px;
    margin: 0;
    color: #fffdf8;
    font-size: clamp(54px, 6.2vw, 92px);
    font-weight: 400;
    line-height: .94;
}

.hero p {
    max-width: 590px;
    margin: 28px 0 0;
    color: rgba(255, 253, 248, .80);
    font-size: 18px;
    line-height: 1.65;
}

.hero-actions {
    justify-content: flex-start;
    margin-top: 38px;
}

.hero-btn,
.hero-btn-secondary {
    min-height: 54px;
    padding: 0 27px;
    border-radius: 6px;
    font-size: 13px;
    letter-spacing: .035em;
}

.hero-btn {
    background: var(--rv-gold) !important;
    border-color: var(--rv-gold) !important;
}

.hero-btn-secondary {
    color: #fffdf8;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, .48);
    box-shadow: none;
}

.hero-btn-secondary:hover {
    color: var(--rv-deep);
    background: #fffdf8;
    border-color: #fffdf8;
}

/* Sections and cards */
.section {
    padding: 104px 0;
}

.section-dark {
    color: #f8f3ea;
    background:
        radial-gradient(circle at 85% 12%, rgba(201, 156, 98, .14), transparent 32%),
        var(--rv-deep);
}

.section-title-wrap {
    max-width: 760px;
    margin-bottom: 46px;
}

.section-label,
.search-mobile-eyebrow {
    color: var(--rv-gold);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .2em;
    text-transform: uppercase;
}

.section-title {
    color: var(--rv-deep);
    font-size: clamp(38px, 4.4vw, 62px);
    font-weight: 400;
    line-height: 1.04;
}

.section-dark .section-title,
.section-dark .section-text {
    color: #f8f3ea;
}

.section-text {
    color: var(--rv-muted);
    font-size: 17px;
}

.destination-card {
    overflow: hidden;
    border: 0;
    border-radius: 6px;
    background: var(--rv-paper);
    box-shadow: 0 15px 45px rgba(18, 61, 55, .10);
}

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

.destination-card img {
    height: 330px;
}

.destination-card-content {
    padding: 22px 22px 25px;
}

.destination-card-country {
    color: var(--rv-gold);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.destination-card h3,
.hot-tours-grid .destination-card h3 {
    color: var(--rv-deep);
    font-weight: 400;
}

.feature-card {
    position: relative;
    min-height: 210px;
    padding: 32px;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 6px;
    color: #f8f3ea;
    background: rgba(255, 255, 255, .04);
    box-shadow: none;
}

.feature-card::before {
    content: "";
    display: block;
    width: 42px;
    height: 2px;
    margin-bottom: 28px;
    background: var(--rv-gold);
}

.feature-card h3 {
    color: #fffdf8;
    font-weight: 400;
}

.feature-card p {
    color: rgba(255, 253, 248, .68);
}

.cta-box {
    padding: 70px;
    border: 1px solid rgba(25, 49, 45, .12);
    border-radius: 8px;
    color: var(--rv-ink);
    background:
        linear-gradient(120deg, rgba(255, 253, 249, .96), rgba(232, 239, 235, .90)),
        var(--rv-paper);
    box-shadow: var(--rv-shadow);
}

.cta-box h2 {
    color: var(--rv-deep);
    font-weight: 400;
}

.cta-box p {
    color: var(--rv-muted);
}

/* Interior pages */
.page-hero {
    padding: 86px 0 76px;
    color: #f8f3ea;
    background:
        radial-gradient(circle at 82% 8%, rgba(217, 185, 140, .15), transparent 32%),
        var(--rv-deep);
}

.breadcrumbs,
.breadcrumbs a {
    color: rgba(248, 243, 234, .58);
}

.page-hero h1 {
    max-width: 850px;
    color: #fffdf8;
    font-size: clamp(46px, 6vw, 78px);
    font-weight: 400;
    line-height: 1;
}

.page-hero p {
    max-width: 740px;
    color: rgba(248, 243, 234, .72);
}

.page-content,
.search-mobile-page {
    background: transparent;
}

.content-box,
.search-mobile-card,
.booking-form,
.payment-card,
.thanks-card,
.test-payment-card {
    border: 1px solid var(--rv-line) !important;
    border-radius: 8px !important;
    color: var(--rv-ink) !important;
    background: rgba(255, 253, 249, .94) !important;
    box-shadow: var(--rv-shadow) !important;
}

.content-box h1,
.content-box h2,
.content-box h3,
.search-mobile-hero h1,
.booking-form h2 {
    color: var(--rv-deep) !important;
}

.content-box p,
.content-box li,
.content-box strong,
.search-mobile-hero p,
.hot-tours-grid .destination-card p,
.booking-form,
.tourist-block {
    color: var(--rv-ink);
}

.info-card,
.note-box,
.tourist-block {
    border: 1px solid var(--rv-line) !important;
    border-radius: 6px !important;
    color: var(--rv-ink) !important;
    background: #f5f7f3 !important;
    box-shadow: none !important;
}

.note-box {
    border-left: 3px solid var(--rv-gold) !important;
}

.content-box hr,
.contacts-feedback,
.footer-payments {
    border-color: var(--rv-line) !important;
}

/* Forms */
body input,
body textarea,
body select,
.contacts-form input,
.contacts-form textarea,
.search-mobile-form textarea,
.form-row input,
.booking-form input,
.booking-form select {
    border: 1px solid rgba(25, 49, 45, .18) !important;
    border-radius: 5px !important;
    color: var(--rv-ink) !important;
    background: #fff !important;
    box-shadow: none !important;
}

body input::placeholder,
body textarea::placeholder,
.contacts-form input::placeholder,
.contacts-form textarea::placeholder,
.search-mobile-form textarea::placeholder,
.form-row input::placeholder {
    color: #8b9793 !important;
}

body input:focus,
body textarea:focus,
body select:focus,
.contacts-form input:focus,
.contacts-form textarea:focus,
.search-mobile-form textarea:focus,
.form-row input:focus {
    border-color: var(--rv-gold) !important;
    box-shadow: 0 0 0 3px rgba(185, 130, 69, .13) !important;
}

.search-mobile-reset,
.remove-tourist-btn {
    color: var(--rv-deep) !important;
    background: transparent !important;
    border-color: var(--rv-line) !important;
}

.contact-success {
    color: #2f6b52 !important;
    background: #e7f3e9 !important;
    border-color: rgba(47, 107, 82, .22) !important;
}

.legal-links-inline,
.legal-links-inline a {
    color: var(--rv-muted);
}

.legal-links-inline a {
    text-decoration-color: var(--rv-gold);
}

/* Footer */
.site-footer {
    color: rgba(248, 243, 234, .76);
    background: var(--rv-deep-2);
    border-top: 0;
}

@media (min-width: 769px) {
    .site-footer .footer-inner {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 90px !important;
    }
}

.site-footer h3,
.site-footer strong {
    color: #fffdf8;
}

.footer-links,
.footer-links a,
.footer-links span,
.footer-bottom,
.footer-policy-links a,
.footer-company-grid {
    color: rgba(248, 243, 234, .66);
}

.footer-links a:hover,
.footer-policy-links a:hover {
    color: var(--rv-gold-soft);
}

.footer-certificate-link {
    border: 1px solid rgba(255, 255, 255, .12);
    box-shadow: 0 15px 40px rgba(0, 0, 0, .18);
}

/* Chat */
.ai-chat-button,
.ai-chat-form button,
.ai-message-user {
    background: var(--rv-gold) !important;
    box-shadow: 0 16px 34px rgba(185, 130, 69, .28) !important;
}

.ai-chat-window {
    color: var(--rv-ink) !important;
    background: rgba(255, 253, 249, .98) !important;
    border-color: var(--rv-line) !important;
    box-shadow: 0 24px 70px rgba(18, 61, 55, .24) !important;
}

.ai-chat-head,
.ai-chat-form {
    border-color: var(--rv-line) !important;
}

.ai-chat-title,
.ai-chat-close {
    color: var(--rv-deep) !important;
}

.ai-chat-close {
    background: var(--rv-mist) !important;
}

.ai-message-bot {
    color: var(--rv-ink) !important;
    background: var(--rv-mist) !important;
    border-color: var(--rv-line) !important;
}

@media (max-width: 1040px) {
    .site-logo {
        min-width: 0;
    }

    .site-logo-copy small {
        display: none;
    }

    .site-nav {
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .header-inner {
        min-height: 72px;
    }

    .site-logo img {
        width: 40px;
        height: 40px;
    }

    .site-logo-copy strong {
        font-size: 20px;
    }

    .hero {
        min-height: 650px;
        align-items: flex-end;
        background:
            linear-gradient(180deg, rgba(9, 45, 40, .08) 12%, rgba(9, 45, 40, .88) 62%, rgba(9, 45, 40, .98) 100%),
            url("/assets/images/hero/hero-main.jpg") 62% center / cover no-repeat;
    }

    .hero-content {
        width: 100%;
        padding: 170px 20px 58px;
    }

    .hero h1 {
        font-size: clamp(48px, 15vw, 66px);
    }

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

    .hero-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .hero-btn,
    .hero-btn-secondary {
        width: 100%;
    }

    .section {
        padding: 72px 0;
    }

    .destination-card img {
        height: 270px;
    }

    .feature-card {
        min-height: 0;
    }

    .cta-box {
        padding: 38px 24px;
    }

    .page-hero {
        padding: 58px 0 48px;
    }

    .content-box,
    .search-mobile-card,
    .booking-form {
        border-radius: 6px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
    }
}
/* Исправление страницы оформления тура */
.booking-top-card,
.booking-form {
    color: #fff !important;
    background: #123d37 !important;
    border-color: rgba(255,255,255,.12) !important;
}

.booking-top-card .booking-title,
.booking-top-card .booking-meta-value,
.booking-top-card .booking-description,
.booking-form .booking-form__title,
.booking-form .booking-form__subtitle,
.booking-form .booking-section__title,
.booking-form .booking-section__hint,
.booking-form .form-field label,
.booking-form .tourist-block-title {
    color: #fff !important;
}

.booking-top-card .booking-meta-label,
.booking-top-card .booking-price-label {
    color: rgba(255,255,255,.68) !important;
}

.booking-form .tourist-block {
    color: #fff !important;
    background: rgba(255,255,255,.04) !important;
    border-color: rgba(255,255,255,.12) !important;
}

.booking-form .booking-section,
.booking-form .consent-item,
.booking-form .booking-summary,
.booking-form .booking-mode-switch {
    border-color: rgba(255,255,255,.12) !important;
}
