* {
                margin: 0;
                padding: 0;
                box-sizing: border-box;
            }

            :root {
                --primary: #1a1a1a;
                --secondary: #4a4a4a;
                --accent: #8b7355;
                --light: #f5f1ed;
                --border: #d4ccc2;
                --text: #2c2c2c;
            }

            body {
                font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
                color: var(--text);
                background: var(--light);
                line-height: 1.6;
            }

            /* HEADER & NAVIGATION */
            header {
                background: white;
                padding: 20px 0;
                border-bottom: 1px solid var(--border);
                position: sticky;
                top: 0;
                z-index: 100;
            }

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

            .logo {
                font-size: 24px;
                font-weight: 700;
                color: var(--primary);
                text-decoration: none;
                letter-spacing: -0.5px;
            }

            nav a {
                margin-left: 30px;
                text-decoration: none;
                color: var(--text);
                font-size: 14px;
                transition: color 0.3s;
            }

            nav a:hover {
                color: var(--accent);
            }

            /* HERO SECTION */
            .hero {
                background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%);
                color: white;
                padding: 100px 20px;
                text-align: center;
                min-height: 500px;
                display: flex;
                flex-direction: column;
                justify-content: center;
                align-items: center;
            }

            .hero h1 {
                font-size: 56px;
                font-weight: 700;
                margin-bottom: 20px;
                letter-spacing: -1px;
            }

            .hero p {
                font-size: 18px;
                color: #d4ccc2;
                max-width: 600px;
                margin: 0 auto 40px;
                line-height: 1.8;
            }

            .cta-button {
                display: inline-block;
                padding: 14px 40px;
                background: var(--accent);
                color: white;
                text-decoration: none;
                border-radius: 2px;
                font-size: 16px;
                font-weight: 600;
                transition: background 0.3s;
                cursor: pointer;
                border: none;
            }

            .cta-button:hover {
                background: #9d8366;
            }

            /* SECTION STYLING */
            section {
                padding: 80px 20px;
                max-width: 1200px;
                margin: 0 auto;
            }

            .section-title {
                font-size: 42px;
                font-weight: 700;
                margin-bottom: 50px;
                text-align: center;
                color: var(--primary);
            }

            /* ABOUT SECTION */
            .about {
                background: white;
            }

            .about-content {
                max-width: 700px;
                margin: 0 auto;
                text-align: center;
            }

            .about p {
                font-size: 18px;
                line-height: 1.8;
                color: var(--text);
                margin-bottom: 20px;
            }

            /* TOURS GRID */
            .tours-grid {
                display: grid;
                grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
                gap: 30px;
                margin-top: 50px;
            }

            .tour-card {
                background: white;
                padding: 0;
                border: 1px solid var(--border);
                transition: all 0.3s;
                cursor: pointer;
                overflow: hidden;
            }

            .tour-card:hover {
                box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
                transform: translateY(-5px);
            }

            .tour-image {
                width: 100%;
                height: 200px;
                object-fit: cover;
                display: block;
                transition: transform 0.3s;
            }

            .tour-card:hover .tour-image {
                transform: scale(1.05);
            }

            .tour-image-wrap {
                position: relative;
                overflow: hidden;
            }

            .tour-badge {
                position: absolute;
                top: 15px;
                right: 15px;
                background: var(--accent);
                color: white;
                padding: 6px 16px;
                font-size: 12px;
                font-weight: 700;
                text-transform: uppercase;
                letter-spacing: 1.5px;
                border-radius: 2px;
            }

            .tour-content {
                padding: 30px;
            }

            .tour-number {
                display: inline-block;
                width: 40px;
                height: 40px;
                background: var(--accent);
                color: white;
                text-align: center;
                line-height: 40px;
                margin-bottom: 15px;
                font-weight: 700;
            }

            .tour-card h3 {
                font-size: 20px;
                margin-bottom: 15px;
                color: var(--primary);
                line-height: 1.4;
            }

            .tour-card p {
                font-size: 14px;
                color: var(--secondary);
                margin-bottom: 15px;
                line-height: 1.7;
            }

            .tour-meta {
                display: flex;
                justify-content: space-between;
                padding-top: 15px;
                border-top: 1px solid var(--border);
                font-size: 13px;
                color: var(--secondary);
            }

            /* GUIDE SECTION */
            .guide-section {
                background: #f9f7f4;
            }

            .guide-card {
                max-width: 600px;
                margin: 0 auto;
                text-align: center;
                padding: 40px;
                background: white;
                border: 1px solid var(--border);
            }

            .guide-photo {
                width: 180px;
                height: 180px;
                border-radius: 50%;
                object-fit: cover;
                margin: 0 auto 30px;
                border: 4px solid var(--accent);
                box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
            }

            .guide-name {
                font-size: 24px;
                font-weight: 700;
                margin-bottom: 10px;
            }

            .guide-title {
                color: var(--secondary);
                margin-bottom: 20px;
            }

            .guide-bio {
                font-size: 16px;
                line-height: 1.8;
                color: var(--text);
                margin-bottom: 30px;
            }

            .guide-contacts {
                display: flex;
                justify-content: center;
                gap: 20px;
                flex-wrap: wrap;
                margin-bottom: 30px;
            }

            .contact-link {
                display: inline-block;
                padding: 10px 20px;
                background: var(--light);
                text-decoration: none;
                color: var(--text);
                border: 1px solid var(--border);
                border-radius: 2px;
                transition: all 0.3s;
                font-size: 14px;
            }

            .contact-link:hover {
                background: var(--accent);
                color: white;
                border-color: var(--accent);
            }

            .credentials-grid {
                display: grid;
                grid-template-columns: 1fr 1fr;
                gap: 20px;
                margin-top: 30px;
                padding-top: 30px;
                border-top: 1px solid var(--border);
            }

            .credential-item {
                text-align: center;
                display: flex;
                flex-direction: column;
            }

            .credential-label {
                font-size: 13px;
                color: var(--secondary);
                margin-bottom: 10px;
                text-transform: uppercase;
                letter-spacing: 0.5px;
                display: block;
            }

            .credential-image {
                max-width: 100%;
                height: 300px;
                object-fit: contain;
                border: 1px solid var(--border);
                border-radius: 4px;
                cursor: pointer;
                transition: transform 0.3s;
            }

            .credential-image:hover {
                transform: scale(1.02);
            }

            .credential-info {
                font-size: 12px;
                color: var(--secondary);
                margin-top: 8px;
            }

            .license-box {
                padding: 20px;
                background: var(--light);
                border: 1px solid var(--border);
                border-radius: 4px;
                height: 300px;
                display: flex;
                flex-direction: column;
                justify-content: center;
                align-items: center;
            }

            .license-check {
                font-size: 14px;
                color: var(--text);
                margin-bottom: 12px;
            }

            .license-link {
                display: inline-block;
                padding: 8px 16px;
                background: var(--accent);
                color: white;
                text-decoration: none;
                border-radius: 2px;
                font-size: 13px;
                font-weight: 600;
                transition: background 0.3s;
            }

            .license-link:hover {
                background: #9d8366;
            }

            /* REVIEWS SECTION */
            .reviews-section {
                background: #f9f7f4;
            }

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

            .review-card {
                background: white;
                border: 1px solid var(--border);
                padding: 30px;
                display: flex;
                flex-direction: column;
                transition: all 0.3s;
            }

            .review-card:hover {
                box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
                transform: translateY(-5px);
            }

            .review-photo {
                width: 100%;
                height: auto;
                display: block;
                margin-bottom: 16px;
                border: 1px solid var(--border);
            }

            .review-stars {
                color: var(--accent);
                font-size: 18px;
                letter-spacing: 3px;
                margin-bottom: 15px;
            }

            .review-text {
                font-size: 14px;
                color: var(--text);
                line-height: 1.7;
                flex-grow: 1;
                margin-bottom: 20px;
            }

            .review-author {
                display: flex;
                flex-direction: column;
                padding-top: 15px;
                border-top: 1px solid var(--border);
            }

            .review-name {
                font-weight: 600;
                color: var(--primary);
                font-size: 14px;
            }

            .review-tour {
                font-size: 13px;
                color: var(--secondary);
                margin-top: 4px;
            }

            .review-form-block {
                max-width: 600px;
                margin: 60px auto 0;
                background: white;
                border: 1px solid var(--border);
                padding: 40px;
            }

            .review-form-title {
                font-size: 24px;
                font-weight: 700;
                color: var(--primary);
                margin-bottom: 10px;
                text-align: center;
            }

            .review-form-note {
                font-size: 14px;
                color: var(--secondary);
                text-align: center;
                margin-bottom: 30px;
            }

            /* BOOKING SECTION */
            .booking {
                background: white;
            }

            .booking-content {
                max-width: 600px;
                margin: 0 auto;
            }

            .form-group {
                margin-bottom: 20px;
            }

            label {
                display: block;
                margin-bottom: 8px;
                font-weight: 600;
                color: var(--primary);
                font-size: 14px;
            }

            input,
            textarea,
            select {
                width: 100%;
                padding: 12px;
                border: 1px solid var(--border);
                background: white;
                font-family: inherit;
                font-size: 14px;
                color: var(--text);
                border-radius: 2px;
            }

            textarea {
                resize: vertical;
                min-height: 100px;
            }

            input:focus,
            textarea:focus,
            select:focus {
                outline: none;
                border-color: var(--accent);
                box-shadow: 0 0 0 3px rgba(139, 115, 85, 0.1);
            }

            .price-info {
                background: var(--light);
                padding: 20px;
                margin-bottom: 30px;
                border-left: 4px solid var(--accent);
            }

            .price-info h4 {
                margin-bottom: 10px;
                color: var(--primary);
            }

            .price-info p {
                font-size: 14px;
                color: var(--secondary);
                line-height: 1.6;
            }

            .price-info p + p {
                margin-top: 14px;
                padding-top: 14px;
                border-top: 1px solid var(--border);
            }

            .price-info a {
                color: var(--accent);
                text-decoration: none;
            }

            .price-info a:hover {
                text-decoration: underline;
            }

            .submit-button {
                width: 100%;
                padding: 14px;
                background: var(--accent);
                color: white;
                border: none;
                font-size: 16px;
                font-weight: 600;
                cursor: pointer;
                border-radius: 2px;
                transition: background 0.3s;
            }

            .submit-button:hover {
                background: #9d8366;
            }

            /* FOOTER */
            footer {
                background: var(--primary);
                color: white;
                padding: 50px 20px;
                text-align: center;
            }

            footer p {
                font-size: 14px;
                color: #d4ccc2;
            }

            footer a {
                color: var(--accent);
                text-decoration: none;
            }

            footer a:hover {
                text-decoration: underline;
            }

            /* MODAL */
            .modal {
                display: none;
                position: fixed;
                z-index: 1000;
                left: 0;
                top: 0;
                width: 100%;
                height: 100%;
                background-color: rgba(0, 0, 0, 0.7);
                overflow: auto;
            }

            .modal-content {
                background-color: var(--light);
                margin: 2% auto;
                padding: 30px;
                border: 1px solid var(--border);
                width: 90%;
                max-width: 900px;
                border-radius: 2px;
                position: relative;
                max-height: 90vh;
                overflow-y: auto;
            }

            .modal-image {
                max-width: 100%;
                height: auto;
                border-radius: 4px;
            }

            .close {
                color: var(--text);
                position: absolute;
                right: 20px;
                top: 20px;
                font-size: 28px;
                font-weight: bold;
                cursor: pointer;
                z-index: 1001;
            }

            .close:hover {
                color: var(--accent);
            }

            .modal-title {
                font-size: 28px;
                font-weight: 700;
                color: var(--primary);
                margin-bottom: 20px;
                padding-right: 40px;
            }

            .modal-description {
                font-size: 16px;
                line-height: 1.8;
                color: var(--text);
                margin-bottom: 30px;
            }

            .modal-gallery {
                display: grid;
                grid-template-columns: 1fr;
                gap: 20px;
                margin-top: 30px;
            }

            .modal-gallery-item {
                overflow: hidden;
                border-radius: 4px;
                border: 1px solid var(--border);
            }

            .modal-gallery-item img {
                width: 100%;
                height: auto;
                display: block;
            }

            /* RESPONSIVE */
            @media (max-width: 768px) {
                .hero h1 {
                    font-size: 36px;
                }

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

                .section-title {
                    font-size: 28px;
                }

                nav {
                    display: none;
                }

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

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

                .review-form-block {
                    padding: 25px 20px;
                }

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

                header {
                    padding: 15px 0;
                }

                .header-content {
                    flex-direction: column;
                    gap: 15px;
                }

                .guide-contacts {
                    flex-direction: column;
                }

                .contact-link {
                    width: 100%;
                    text-align: center;
                }
            }

a.tour-card {
    text-decoration: none;
    color: inherit;
    display: block;
}

.hero .cta-button {
    margin-top: 10px;
}

.hero-kicker {
    font-size: 14px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #d4ccc2;
    margin-bottom: 16px;
}

.tour-page-hero {
    padding: 20px 20px 0;
    max-width: none;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--light);
    line-height: 0;
}

.tour-page-hero img {
    width: auto;
    height: auto;
    max-width: min(100%, 1100px);
    max-height: 75vh;
    object-fit: contain;
    display: block;
}

.tour-article {
    max-width: 800px;
    margin: 0 auto;
    padding: 50px 20px 80px;
}

.breadcrumb {
    font-size: 13px;
    color: var(--secondary);
    margin-bottom: 18px;
}

.breadcrumb a {
    color: var(--accent);
    text-decoration: none;
}

.tour-article h1 {
    font-size: 34px;
    line-height: 1.25;
    margin-bottom: 24px;
    color: var(--primary);
}

.tour-article .modal-description p {
    margin-bottom: 16px;
}

.tour-cta {
    margin-top: 36px;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.tour-cta .cta-button,
.tour-cta .contact-link {
    position: relative;
    z-index: 2;
}

@media (max-width: 768px) {
    .tour-article h1 {
        font-size: 26px;
    }
}

/* AI CHAT WIDGET */
#ai-chat-root {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

#ai-chat-toggle {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    transition: background 0.3s, transform 0.2s;
}

#ai-chat-toggle:hover {
    background: #9d8366;
    transform: translateY(-2px);
}

#ai-chat-toggle {
    cursor: grab;
    touch-action: none;
}

.ai-chat-dragging {
    user-select: none;
    opacity: 0.92;
    transition: none !important;
}

#ai-chat-toggle.ai-chat-hidden {
    display: none;
}

.ai-chat-toggle-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border: 2px solid white;
    border-radius: 50%;
    font-weight: 700;
    line-height: 1;
}

#ai-chat-window {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1001;
    width: 360px;
    max-width: calc(100vw - 40px);
    height: 480px;
    max-height: calc(100vh - 40px);
    display: flex;
    flex-direction: column;
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

/* display:flex выше перебивает атрибут hidden — возвращаем скрытие */
#ai-chat-window[hidden] {
    display: none !important;
}

#ai-chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    background: var(--primary);
    color: white;
    font-weight: 600;
    font-size: 15px;
    cursor: move;
    touch-action: none;
    user-select: none;
}

.ai-chat-header-buttons {
    display: flex;
    gap: 6px;
}

#ai-chat-close,
#ai-chat-minimize {
    background: none;
    border: none;
    color: white;
    font-size: 22px;
    cursor: pointer;
    line-height: 1;
    padding: 0 4px;
}

#ai-chat-minimize {
    font-size: 18px;
}

#ai-chat-close:hover,
#ai-chat-minimize:hover {
    color: var(--border);
}

/* Свёрнутое окно: только шапка */
#ai-chat-window.ai-chat-minimized {
    height: auto;
}

#ai-chat-window.ai-chat-minimized #ai-chat-messages,
#ai-chat-window.ai-chat-minimized #ai-chat-form,
#ai-chat-window.ai-chat-minimized #ai-chat-note {
    display: none;
}

#ai-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    background: var(--light);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ai-chat-msg {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.5;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.ai-chat-msg-user {
    align-self: flex-end;
    background: var(--accent);
    color: white;
    border-bottom-right-radius: 4px;
}

.ai-chat-msg-assistant {
    align-self: flex-start;
    background: white;
    color: var(--text);
    border: 1px solid var(--border);
    border-bottom-left-radius: 4px;
}

#ai-chat-form {
    display: flex;
    gap: 8px;
    padding: 12px;
    border-top: 1px solid var(--border);
    background: white;
}

#ai-chat-input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 14px;
    outline: none;
}

#ai-chat-input:focus {
    border-color: var(--accent);
}

#ai-chat-send {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: var(--accent);
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

#ai-chat-send:hover {
    background: #9d8366;
}

#ai-chat-send:disabled,
#ai-chat-input:disabled {
    opacity: 0.6;
    cursor: default;
}

#ai-chat-note {
    padding: 6px 12px 10px;
    font-size: 11px;
    color: var(--secondary);
    text-align: center;
    background: white;
}

@media (max-width: 768px) {
    #ai-chat-toggle {
        touch-action: manipulation;
    }

    #ai-chat-toggle .ai-chat-toggle-text {
        display: none;
    }

    #ai-chat-window {
        right: 10px;
        bottom: 10px;
        width: calc(100vw - 20px);
        height: min(480px, 65vh);
        max-height: calc(100vh - 20px);
    }
}

/* SCHEDULE SECTION */
.schedule-section {
    text-align: center;
}

.schedule-subtitle {
    margin: -30px auto 40px;
    color: var(--secondary);
    font-size: 16px;
}

.schedule-list {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.schedule-item {
    display: grid;
    grid-template-columns: 170px 70px 1fr auto;
    align-items: center;
    gap: 16px;
    padding: 16px 24px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text);
    text-align: left;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.schedule-item:hover {
    border-color: var(--accent);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.schedule-date {
    font-weight: 700;
    color: var(--primary);
    text-transform: capitalize;
}

.schedule-time {
    color: var(--secondary);
    font-variant-numeric: tabular-nums;
}

.schedule-tour {
    font-size: 15px;
}

.schedule-cta {
    color: var(--accent);
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
}

.schedule-empty {
    color: var(--secondary);
    font-size: 16px;
}

.schedule-empty a {
    color: var(--accent);
}

@media (max-width: 768px) {
    .schedule-item {
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "date time"
            "tour tour"
            "cta cta";
        gap: 6px 16px;
    }

    .schedule-date {
        grid-area: date;
    }

    .schedule-time {
        grid-area: time;
        text-align: right;
    }

    .schedule-tour {
        grid-area: tour;
    }

    .schedule-cta {
        grid-area: cta;
    }
}
