/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Exo+2:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    /* Fonts */
    --font-main: 'Inter', sans-serif;
    --font-logo: 'Exo 2', sans-serif;

    /* Color Palette - Light Sand Theme */
    --bg-dark: #fbf8f1;
    /* Light Beige/Sand - Was bg-dark */
    --bg-darker: #f0ebdc;
    /* Slightly darker beige for contrast sections */
    --text-primary: #3d342b;
    /* Dark Brown/Grey for text */
    --text-secondary: #6e6459;
    /* Muted earthy tone */
    --accent-gold: #c39a58;
    /* Muted Gold/Bronze */
    --accent-gold-hover: #a67c3e;

    /* Logo Color */
    --logo-color: #537b95;
    /* Slate Blue from image */

    /* Spacing */
    --section-padding: 80px 20px;
    --container-width: 1200px;

    /* Transitions */
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-main);
    font-weight: 700;
    color: #2b2318;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 15px;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--accent-gold);
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--accent-gold);
    color: #fff;
    /* White text on gold button */
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: var(--transition);
    border: 2px solid var(--accent-gold);
    cursor: pointer;
}

.btn:hover {
    background-color: transparent;
    color: var(--accent-gold);
}

.section {
    padding: var(--section-padding);
}

.section:nth-child(even) {
    background-color: var(--bg-darker);
}

/* Navigation */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(251, 248, 241, 0.9);
    /* Header matches light bg */
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(61, 52, 43, 0.05);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.burger {
    display: none;
}

.logo {
    font-family: var(--font-logo);
    font-size: 2rem;
    font-weight: 300;
    color: var(--logo-color);
    letter-spacing: -1px;
    white-space: nowrap;
    margin-right: 40px;
    position: relative;
    display: inline-block;
}

.logo::after {
    content: '✦';
    position: absolute;
    top: -5px;
    right: -25px;
    font-size: 1.6rem;
    color: var(--logo-color);
    transform: rotate(15deg);
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
    /* Prevent wrapping */
}

.nav-links a:hover {
    color: var(--accent-gold);
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    gap: 10px;
    margin-left: 20px;
    align-items: center;
}

.lang-btn {
    background: transparent;
    border: 1px solid var(--text-primary);
    color: var(--text-primary);
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    transition: var(--transition);
}

.lang-btn.active,
.lang-btn:hover {
    background: var(--accent-gold);
    color: #fff;
    border-color: var(--accent-gold);
}

/* Header contacts */
.header-contacts {
    list-style: none;
}

.header-contacts a:hover {
    color: var(--accent-gold) !important;
}

/* Mobile Lang Switcher placement handled in nav-links? */
@media (max-width: 768px) {
    .lang-switcher {
        margin: 20px 0;
        justify-content: center;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* 1. Hero Section - Collage Redesign */
#hero {
    min-height: 100vh;
    /* Hero Collage Background with Dark Overlay for readability of white text */
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('assets/hero-bg-collage.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 120px;
    /* Space for fixed header */
    padding-bottom: 50px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    z-index: 10;
    margin-bottom: 40px;
    position: relative;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    animation: fadeIn 1s ease-out forwards;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-style: italic;
    margin-bottom: 2.5rem;
    color: #fff;
    font-weight: 500;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    animation: fadeIn 1s ease-out 0.3s forwards;
    opacity: 0;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    animation: fadeIn 1s ease-out 0.6s forwards;
    opacity: 0;
}

.btn-outline {
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: #fff;
    color: var(--text-primary);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

/* Hero Collage Images */
.hero-collage {
    display: flex;
    justify-content: center;
    gap: 20px;
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
    margin-top: 20px;
    flex-wrap: wrap;
    animation: fadeIn 1s ease-out 0.8s forwards;
    opacity: 0;
}

.collage-item {
    flex: 1;
    min-width: 280px;
    max-width: 350px;
    height: 450px;
    border-radius: 120px 120px 0 0;
    /* Arch shape popular in current designs */
    overflow: hidden;
    position: relative;
    box-shadow: 10px 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.5s ease;
}

/* Make the center one slightly taller or different */
.collage-item:nth-child(2) {
    margin-top: -30px;
    /* Offset upwards */
}

.collage-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.collage-item:hover {
    transform: translateY(-10px);
}

.collage-item:hover img {
    transform: scale(1.05);
}

/* Mobile Background for Tour Headers */
.mobile-bg {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.mobile-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    /* Dark overlay */
}

/* 2. Advantages - Redesigned */
/* 2. Advantages - Redesigned Circular Row */
.advantages-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 50px;
}

.advantage-card {
    flex: 0 0 auto;
    /* Don't shrink initially, let them hold shape */
    width: 220px;
    /* Smaller size to fit 4 in a row */
    height: 220px;
    border-radius: 50%;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px;
    color: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    border: none;
}

/* Background Images for specific cards will be handled in HTML style attribute or specific classes */

.advantage-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    /* Dark overlay for text readability */
    z-index: 1;
    transition: var(--transition);
}

.advantage-card:hover {
    transform: scale(1.05);
}

.advantage-card:hover::before {
    background: rgba(0, 0, 0, 0.2);
    /* Lighten overlay on hover */
}

.advantage-content {
    position: relative;
    z-index: 2;
    /* Content above overlay */
}

.advantage-card h3 {
    color: #fff;
    font-size: 1.4rem;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.advantage-card p {
    font-size: 0.95rem;
    line-height: 1.4;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.icon {
    display: none;
    /* Hide icons */
}

/* 3. Popular Tours */
.tours-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* Force 3 columns */
    gap: 30px;
}

.tour-card {
    background: var(--bg-dark);
    border-radius: 15px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.tour-card:hover {
    transform: scale(1.02);
}

.tour-img {
    height: 250px;
    width: 100%;
    object-fit: cover;
    object-position: top;
}

.tour-info {
    padding: 25px;
}

.tour-price {
    color: var(--accent-gold);
    font-size: 1.25rem;
    font-weight: 700;
    margin-top: 10px;
    display: block;
}

/* 4. How We Work */
.process-steps {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

/* Dashed line connector */
.process-steps::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20px;
    height: 100%;
    width: 2px;
    border-left: 2px dashed var(--accent-gold);
    z-index: 0;
}

.step {
    position: relative;
    padding-left: 60px;
    margin-bottom: 40px;
    z-index: 1;
}

.step-number {
    position: absolute;
    left: 0;
    top: 0;
    width: 40px;
    height: 40px;
    background: var(--accent-gold);
    color: var(--bg-darker);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-family: var(--font-main);
}

/* 5. About Company */
.about-container {
    display: flex;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-image {
    flex: 1;
    min-width: 300px;
    position: relative;
}

.about-image img {
    width: 100%;
    max-height: 400px;
    /* Limit height to match text balance */
    object-fit: cover;
    /* Prevent distortion */
    border-radius: 10px;
    box-shadow: 20px 20px 0 var(--accent-gold);
}

/* 6. Tourist Stories Carousel */
.stories-section {
    position: relative;
    padding: 0 40px;
    /* Space for arrows */
}

.stories-carousel {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 20px;
    padding: 20px 0;
    scrollbar-width: none;
    /* Firefox */
}

.stories-carousel::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.story-card {
    min-width: 300px;
    /* Or appropriate width */
    height: 500px;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.story-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.story-card:hover img {
    transform: scale(1.03);
}

/* Carousel Controls */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    z-index: 10;
    border: none;
    color: var(--accent-gold);
    font-size: 1.2rem;
    transition: var(--transition);
}

.carousel-btn:hover {
    background: var(--accent-gold);
    color: #fff;
}

.prev-btn {
    left: 0;
}

.next-btn {
    right: 0;
}

/* 7. FAQ */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 10px;
}

.faq-question {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    color: var(--text-primary);
    padding: 20px;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: all 0.3s ease;
    color: var(--text-secondary);
}

.faq-item.active .faq-answer {
    padding-bottom: 20px;
    max-height: 200px;
    /* Approximate max height */
}

/* 8. Contact Form */
.contact-container {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.03);
    padding: 40px;
    border-radius: 15px;
}

.form-group {
    margin-bottom: 20px;
}

input,
textarea,
select {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    color: var(--text-primary);
    font-family: var(--font-main);
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--accent-gold);
}

button[type="submit"] {
    width: 100%;
}

/* Footer */
footer {
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
}

/* =============================
   MOBILE RESPONSIVE
   ============================= */
@media (max-width: 768px) {

    /* --- Section padding --- */
    .section {
        padding: 40px 16px;
    }

    h2 {
        font-size: 1.6rem;
        margin-bottom: 1.6rem;
    }

    h3 {
        font-size: 1.15rem;
    }

    /* --- Header / Nav --- */
    .header-contacts {
        display: none !important;
    }

    .burger {
        display: block;
        cursor: pointer;
    }

    .burger div {
        width: 25px;
        height: 3px;
        background-color: var(--text-primary);
        margin: 5px;
        transition: all 0.3s ease;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: rgba(251, 248, 241, 0.97);
        padding: 16px 20px 20px;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
        gap: 4px;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        text-align: center;
        margin: 6px 0;
    }

    .lang-switcher {
        margin: 14px 0 4px;
        justify-content: center;
    }

    /* --- Hero --- */
    #hero {
        padding-top: 100px;
        padding-bottom: 40px;
        background-attachment: scroll;
        /* fix iOS parallax freeze */
    }

    .hero-content h1 {
        font-size: 2rem;
        letter-spacing: 1px;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .hero-collage {
        display: none;
        /* скрываем коллаж-арки на мобильном */
    }

    /* --- Advantages --- */
    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .advantage-card {
        width: 100%;
        height: auto;
        padding: 16px 10px;
        min-height: 130px;
    }

    .advantage-card h3 {
        font-size: 1rem;
    }

    .advantage-card p {
        font-size: 0.75rem;
    }

    /* --- Tours carousel --- */
    .carousel-wrapper {
        padding: 0 8px;
    }

    .carousel-slide {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .carousel-btn {
        width: 34px;
        height: 34px;
        font-size: 0.9rem;
        background: rgba(255, 255, 255, 0.92);
    }

    .prev-btn {
        left: 4px;
    }

    .next-btn {
        right: 4px;
    }

    .tour-card {
        width: 100%;
    }

    .tour-img {
        height: 200px;
    }

    /* --- eSIM Section --- */
    #esim {
        padding: 36px 16px 30px;
    }

    #esim>img[aria-hidden] {
        width: 200px;
        top: -10px;
        left: -15px;
    }

    #esim .container>div {
        /* main flex row */
        flex-direction: column !important;
        gap: 20px !important;
        max-width: 100% !important;
    }

    #esim h2 {
        font-size: 1.5rem;
    }

    /* --- Corporate --- */
    .corporate-wrapper {
        flex-direction: column;
        gap: 20px;
    }

    .corporate-text {
        width: 100%;
        text-align: left;
        min-width: unset;
    }

    .corporate-text h2 {
        font-size: 1.4rem;
        text-align: left;
        margin-bottom: 12px;
    }

    .corporate-text h2::after {
        left: 0;
        transform: none;
        width: 40px;
    }

    .corporate-text p {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .corporate-benefits li {
        font-size: 0.88rem;
        margin-bottom: 8px;
    }

    .corporate-image {
        min-width: unset;
        width: 100%;
        align-items: center;
    }

    .clients-block {
        max-width: 180px !important;
    }

    /* --- Process steps --- */
    .process-steps {
        padding: 0 8px;
    }

    .process-steps::before {
        left: 20px;
    }

    .step {
        padding-left: 52px;
        margin-bottom: 28px;
    }

    /* --- About --- */
    .about-container {
        flex-direction: column;
        gap: 24px;
    }

    .about-text,
    .about-image {
        min-width: unset;
        width: 100%;
    }

    .about-image img {
        max-height: 240px;
        box-shadow: 8px 8px 0 var(--accent-gold);
    }

    /* --- Mobile styles for Tour Headers --- */
    .collage-bg {
        display: none !important;
    }

    .mobile-bg {
        display: block !important;
    }

    .tour-header {
        background: none !important;
    }

    .tour-header h1 {
        font-size: 2rem;
    }

    /* --- Stories --- */
    .story-card {
        min-width: 260px;
        height: 380px;
    }

    /* --- Contact form --- */
    .contact-container {
        padding: 24px 16px;
    }

    /* --- Footer --- */
    footer {
        padding: 24px 16px;
    }

    .footer-content {
        flex-direction: column;
        gap: 12px;
        align-items: center;
        text-align: center;
    }

    .footer-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        align-items: center;
    }

    .footer-links p {
        margin-right: 0 !important;
    }
}

/* Extra small phones */
@media (max-width: 400px) {
    .hero-content h1 {
        font-size: 1.65rem;
    }

    .advantage-card {
        width: 100%;
        height: auto;
        min-height: 110px;
    }

    .advantage-card h3 {
        font-size: 0.9rem;
    }

    #esim h2 {
        font-size: 1.25rem;
    }
}


/* Social Buttons */
.social-btn {
    display: inline-block;
    color: #e09f3e;
    /* Sandy/Orange Light */
    font-weight: 600;
    margin-right: 15px;
    text-decoration: none;
    transition: var(--transition);
    font-size: 1.1rem;
}

/* 6. Tourist Stories Carousel */
.stories-section {
    position: relative;
    padding: 0 40px;
    /* Space for arrows */
}

.stories-carousel {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 20px;
    padding: 20px 0;
    scrollbar-width: none;
    /* Firefox */
}

.stories-carousel::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.story-card {
    min-width: 300px;
    height: 500px;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.story-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.story-card:hover img {
    transform: scale(1.03);
}

/* Carousel Controls */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    z-index: 10;
    border: none;
    color: var(--accent-gold);
    font-size: 1.2rem;
    transition: var(--transition);
}

.carousel-btn:hover {
    background: var(--accent-gold);
    color: #fff;
}

.prev-btn {
    left: 0;
}

.next-btn {
    right: 0;
}

/* New Section: Corporate Tours */
#corporate {
    background-color: var(--bg-dark);
}

.corporate-wrapper {
    display: flex;
    flex-direction: row;
    /* Global: Desktop Row */
    align-items: center;
    /* or flex-start */
    gap: 40px;
    flex-wrap: wrap;
    /* Safety wrap */
}

.corporate-text {
    flex: 1;
    min-width: 300px;
    text-align: left;
    /* Desktop: Left Align */
}

.corporate-text h2 {
    text-align: left;
    /* Desktop: Left Align */
    margin-bottom: 20px;
}

.corporate-text h2::after {
    left: 0;
    transform: none;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.corporate-benefits {
    list-style: none;
    margin-bottom: 30px;
}

.corporate-benefits li {
    margin-bottom: 15px;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.corporate-benefits li i {
    color: var(--accent-gold);
}

.corporate-image {
    flex: 1;
    /* Allow side-by-side */
    min-width: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.clients-block img {
    max-width: 350px;
    width: 100%;
    /* border-radius and shadow removed for transparent look */
    transition: var(--transition);
}

.clients-block img:hover {
    transform: scale(1.02);
}

@media (max-width: 768px) {
    .corporate-wrapper {
        flex-direction: column;
    }

    .corporate-text h2 {
        text-align: center;
    }

    .corporate-text h2::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

/* Carousel Styles */
.carousel-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 50px;
    /* Space for arrows */
}

.carousel-container {
    overflow: hidden;
    width: 100%;
}

.carousel-track {
    display: flex;
    gap: 30px;
    transition: transform 0.5s ease-in-out;
    padding: 20px 0;
    /* Vertical padding for shadows */
}

.carousel-slide {
    flex: 0 0 calc(33.333% - 20px);
    /* 3 items minus gap adjustment */
    max-width: calc(33.333% - 20px);
}

.tour-card {
    height: 100%;
    /* Ensure equal height */
    display: flex;
    flex-direction: column;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.carousel-btn:hover {
    background: var(--accent-gold);
    color: #fff;
}

.prev-btn {
    left: 0;
}

.next-btn {
    right: 0;
}

/* Responsive Carousel */
@media (max-width: 992px) {
    .carousel-slide {
        flex: 0 0 calc(50% - 15px);
        max-width: calc(50% - 15px);
    }
}

@media (max-width: 768px) {
    .carousel-wrapper {
        padding: 0 10px;
        /* Smaller padding on mobile */
    }

    .carousel-slide {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .carousel-btn {
        width: 35px;
        height: 35px;
        font-size: 1rem;
        background: rgba(255, 255, 255, 0.9);
    }

    .prev-btn {
        left: 10px;
    }

    .next-btn {
        right: 10px;
    }
}


/* Carousel Override Styles */
.tours-carousel {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 30px;
    padding: 20px 0;
    scrollbar-width: none;
}

.tours-carousel::-webkit-scrollbar {
    display: none;
}

.tour-card {
    flex: 0 0 auto;
    width: 350px;
    transform: none !important;
    /* Reset scale from previous hover if needed */
}

.tour-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* Логотипы клиентов в разделе корпоративных туров — без hover-эффектов */
.clients-block img {
    transition: none !important;
    transform: none !important;
    pointer-events: none;
    cursor: default;
}

.clients-block img:hover {
    transform: none !important;
    filter: none !important;
    opacity: 1 !important;
}

.advantage-square-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: center;
    gap: 10px;
    width: calc(25% - 20px);
    min-width: 200px;
}

@media (max-width: 768px) {
    .advantage-square-card {
        width: 100%;
        min-height: 120px;
        min-width: 0;
        padding: 20px 15px;
    }
}

/* 9. Contact & Reviews Combined */
.contact-reviews-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: stretch; /* Ensure columns have equal height */
}

.contact-side, .reviews-side {
    display: flex;
    flex-direction: column;
}

.contact-card, .reviews-card-container {
    background: #fff;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    border: 1px solid #f0f0f0;
    flex: 1; /* Stretch to fill column height */
    display: flex;
    flex-direction: column;
}

.contact-side h2::after,
.reviews-side h2::after {
    left: 0;
    transform: none;
}

.reviews-list-compact {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 15px;
    margin-bottom: 25px;
}

.reviews-list-compact::-webkit-scrollbar {
    width: 6px;
}

.reviews-list-compact::-webkit-scrollbar-thumb {
    background: #e0e0e0;
    border-radius: 10px;
}

.review-card {
    background: #fdfbf5;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #f5f0e0;
    margin-bottom: 5px;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.review-name {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-primary);
}

.review-stars {
    color: var(--accent-gold);
    font-size: 0.8rem;
}

.review-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    font-style: italic;
}

.review-date {
    font-size: 0.75rem;
    color: #999;
    margin-top: 10px;
}

/* Review Form Adjustments */
.review-form-side {
    padding-top: 25px;
    border-top: 1px dashed var(--accent-gold);
}

.rating-select {
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
    gap: 5px;
    margin: 10px 0;
}

.rating-select input {
    display: none;
}

.rating-select label {
    font-size: 1.8rem;
    color: #eee;
    cursor: pointer;
    transition: color 0.2s;
}

.rating-select label:hover,
.rating-select label:hover ~ label,
.rating-select input:checked ~ label {
    color: var(--accent-gold);
}

@media (max-width: 992px) {
    .contact-reviews-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .contact-side h2, .reviews-side h2 {
        text-align: center !important;
    }
    .contact-side h2::after, .reviews-side h2::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .contact-card, .reviews-card-container {
        padding: 25px 20px;
    }
}

/* Tour Detail Modal */
.tour-detail-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.tour-detail-modal.open {
    display: flex;
}

.tour-detail-modal-content {
    background: var(--bg-dark);
    border-radius: 20px;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: tourModalIn 0.3s ease;
}

@keyframes tourModalIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.tour-detail-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.tour-detail-modal-close:hover {
    background: rgba(0, 0, 0, 0.8);
}

.tour-detail-modal-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 20px 20px 0 0;
}

.tour-detail-modal-body {
    padding: 30px;
}

.tour-detail-modal-body h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    text-align: center;
}

.tour-detail-modal-body .price-list {
    list-style: none;
    padding: 0;
}

.tour-detail-modal-body .price-list li {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.tour-detail-modal-body .price-highlight {
    font-weight: bold;
    color: var(--accent-gold);
}

@media (max-width: 600px) {
    .tour-detail-modal-img {
        height: 200px;
    }
    .tour-detail-modal-body {
        padding: 20px;
    }
    .tour-detail-modal-body h2 {
        font-size: 1.4rem;
    }
}

