/* Tour Page Styles */
.tour-page {
    padding: 0 0 100px;
    background: var(--white);
    min-height: calc(100vh - 200px);
}

/* Tour Banner */
.tour-banner {
    background: var(--text-dark);
    color: var(--white);
    padding: 30px 0;
    margin-bottom: 0;
}

.banner-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.banner-title {
    font-size: 32px;
    font-weight: 700;
    margin: 0;
}

.btn-banner {
    background: var(--primary-color);
    color: var(--white);
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    white-space: nowrap;
}

.btn-banner:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* Breadcrumbs */
.breadcrumbs {
    padding: 20px 0;
    font-size: 14px;
    color: var(--text-light);
}

.breadcrumbs a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumbs a:hover {
    color: var(--primary-color);
}

.breadcrumbs span {
    color: var(--text-dark);
}

/* Tour Header Section */
.tour-header-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    padding: 30px 0;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 40px;
}

.tour-header-left {
    flex: 1;
}

.tour-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 15px 0;
    line-height: 1.2;
}

.tour-price {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
}

.tour-price-additional {
    font-size: 16px;
    font-weight: 400;
    color: var(--text-light);
    margin-top: 5px;
    line-height: 1.4;
}

.tour-header-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: flex-end;
}

.tour-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    color: var(--text-light);
}

.detail-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: var(--text-light);
}

.btn-book-main {
    background: var(--primary-color);
    color: var(--white);
    padding: 16px 40px;
    border-radius: 10px;
    border: none;
    outline: none;
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    transition: all 0.3s;
    white-space: nowrap;
    cursor: pointer;
}

.btn-book-main:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(227, 178, 90, 0.3);
}

.tour-header-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-end;
}

.btn-book-secondary {
    background: transparent;
    color: var(--primary-color);
    padding: 14px 36px;
    border-radius: 10px;
    border: 2px solid var(--primary-color);
    outline: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s;
    white-space: nowrap;
    cursor: pointer;
}

.btn-book-secondary:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(227, 178, 90, 0.3);
}

/* Booking Terms Modal */
.booking-terms-body {
    padding: 30px 40px 40px;
    line-height: 1.7;
    color: var(--text-dark);
}

.booking-terms-intro {
    font-size: 1.05em;
    margin-bottom: 20px;
}

.booking-terms-body p {
    margin-bottom: 16px;
}

.booking-terms-section {
    margin: 28px 0 24px;
}

.booking-terms-section-title {
    font-size: 1.1em;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.booking-terms-important {
    color: var(--primary-color);
    font-size: 1.15em;
    margin-bottom: 12px;
}

.booking-terms-list {
    margin: 0 0 0 24px;
    padding: 0;
}

.booking-terms-list li {
    margin-bottom: 12px;
}

.booking-terms-company {
    margin-top: 32px;
    padding: 24px;
    background: var(--bg-light);
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
}

.booking-terms-company .company-name {
    font-weight: 700;
    font-size: 1.1em;
    margin-bottom: 12px;
}

.booking-terms-company p {
    margin-bottom: 6px;
}

.booking-terms-company p:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .tour-header-buttons {
        align-items: stretch;
    }
    .btn-book-secondary {
        text-align: center;
    }
}

/* Main Content Section */
.tour-main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-bottom: 60px;
    align-items: start; /* Выравнивание по верху */
}

/* Gallery Section */
.tour-gallery-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    min-width: 0; /* Позволяет элементу сжиматься в grid */
    max-width: 100%; /* Не позволяет расширяться за границы */
    overflow: hidden; /* Предотвращает выход за границы */
    box-sizing: border-box; /* Учитывает padding в ширине */
}

.gallery-main {
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: relative;
}

.main-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
}

.gallery-main-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.gallery-main-nav:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.gallery-main-nav-prev {
    left: 20px;
}

.gallery-main-nav-next {
    right: 20px;
}

.gallery-main-nav svg {
    width: 24px;
    height: 24px;
    stroke: var(--text-dark);
}

.gallery-thumbnails-wrapper {
    position: relative;
    width: 100%;
    max-width: 520px;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0; /* Позволяет сжиматься в flex контейнере */
    max-width: 100%; /* Не позволяет расширяться за границы родителя */
    box-sizing: border-box; /* Учитывает padding в ширине */
}

.gallery-thumbnails {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 10px 0;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    width: 100%;
    min-width: 0; /* Позволяет сжиматься */
    flex: 1; /* Занимает доступное пространство */
    align-items: flex-start;
    position: relative;
    -webkit-overflow-scrolling: touch;
}

.gallery-thumbnails::-webkit-scrollbar {
    display: none;
}

.thumbnail-nav-btn {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-color);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 10;
}

.thumbnail-nav-btn:hover {
    background: #d19f3a;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.thumbnail-nav-btn:active {
    transform: scale(0.95);
}

.thumbnail-nav-btn svg {
    width: 20px;
    height: 20px;
}

.gallery-thumbnails::-webkit-scrollbar {
    height: 6px;
}

.gallery-thumbnails::-webkit-scrollbar-track {
    background: transparent;
}

.gallery-thumbnails::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

.thumbnail {
    flex: 0 0 80px;
    width: 80px;
    min-width: 80px;
    max-width: 80px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
    opacity: 0.7;
    display: block;
}

.thumbnail:hover {
    opacity: 1;
    transform: scale(1.05);
    border-color: var(--primary-color);
}

.thumbnail.active {
    opacity: 1;
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(227, 178, 90, 0.3);
}

/* Organizer & Description Section */
.tour-info-section {
    display: flex;
    flex-direction: column;
    gap: 30px;
    min-width: 0; /* Позволяет элементу сжиматься в grid */
    max-width: 100%; /* Не позволяет расширяться за границы */
    box-sizing: border-box; /* Учитывает padding в ширине */
}

.organizer-card {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 15px;
    display: flex;
    gap: 25px;
    align-items: center;
}

.organizer-avatar {
    flex-shrink: 0;
}

.avatar-placeholder {
    width: 70px;
    height: 70px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
}

.avatar-icon {
    width: 100px;
    height: 100px;
    border-radius: 15px;
    object-fit: cover;
}

.organizer-info {
    flex: 1;
}

.organizer-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.organizer-role {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 8px;
}

.organizer-phone {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: color 0.3s;
}

.organizer-phone:hover {
    color: var(--primary-dark);
}

.tour-description {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 15px;
    position: relative;
}

.tour-description-content {
    overflow: hidden;
    transition: max-height 0.3s ease;
    max-height: none;
}

.tour-description-content.collapsed {
    max-height: 150px !important; /* Ограничение высоты */
    position: relative;
}

.tour-description-content.collapsed::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to bottom, transparent, var(--bg-light));
    pointer-events: none;
}

.tour-description p {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 15px;
}

.tour-description p:last-child {
    margin-bottom: 0;
}

.tour-description-toggle {
    margin-top: 15px;
    padding: 0;
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    transition: color 0.3s;
    position: relative;
    z-index: 10;
    pointer-events: auto;
}

.tour-description-toggle:hover {
    color: var(--text-dark);
    text-decoration: underline;
}

/* Main Impressions Section */
.impressions-section {
    margin: 60px 0;
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 30px;
}

.impressions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.impression-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.impression-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.impression-card img,
.impression-card video {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.impression-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 15px 20px 8px;
}

.impression-card p {
    font-size: 14px;
    color: var(--text-light);
    margin: 0 20px 20px;
    line-height: 1.6;
}

/* Program Section */
.program-section {
    margin: 60px 0;
}

.program-accordion {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.program-day-item {
    background: var(--white);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.3s;
}

.program-day-item.active {
    border-color: var(--primary-color);
}

.day-header {
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background: var(--bg-light);
    transition: background 0.3s;
}

.day-header:hover {
    background: rgba(227, 178, 90, 0.1);
}

.day-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
}

.day-arrow {
    font-size: 14px;
    color: var(--primary-color);
    transition: transform 0.3s;
}

.day-content {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s;
    box-sizing: border-box;
}

.program-day-item.active .day-content {
    padding: 20px 25px;
    max-height: none !important;
}

.day-content p {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 12px;
}

.day-content p:last-child {
    margin-bottom: 0;
}

.day-content ul {
    margin: 15px 0;
    padding-left: 25px;
    list-style-type: disc;
}

.day-content ul li {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 8px;
}

.day-content ul li:last-child {
    margin-bottom: 0;
}

/* Included/Not Included Section */
.included-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 40px 0;
}

.included-box {
    background: #f0f9f0;
    border: 2px solid #4caf50;
    border-radius: 12px;
    padding: 20px;
}

.included-title {
    font-size: 18px;
    font-weight: 700;
    color: #2e7d32;
    margin-bottom: 12px;
}

.included-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.included-list li {
    padding: 8px 12px;
    background: var(--white);
    border-radius: 6px;
    font-size: 14px;
    color: var(--text-dark);
    position: relative;
    padding-left: 32px;
    line-height: 1.4;
}

.included-list li::before {
    content: '✓';
    position: absolute;
    left: 12px;
    color: #4caf50;
    font-weight: 700;
    font-size: 16px;
}

.not-included-box {
    background: #fff5f5;
    border: 2px solid #ff6b6b;
    border-radius: 12px;
    padding: 20px;
}

.not-included-title {
    font-size: 18px;
    font-weight: 700;
    color: #c62828;
    margin-bottom: 12px;
}

.not-included-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.not-included-list li {
    padding: 8px 12px;
    background: var(--white);
    border-radius: 6px;
    font-size: 14px;
    color: var(--text-dark);
    position: relative;
    padding-left: 32px;
    line-height: 1.4;
}

.not-included-list li::before {
    content: '✗';
    position: absolute;
    left: 12px;
    color: #ff6b6b;
    font-weight: 700;
    font-size: 16px;
}

/* Meeting Points Section */
.meeting-points {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

.meeting-point-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    background: var(--bg-light);
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
}

.meeting-icon {
    flex-shrink: 0;
    color: var(--primary-color);
    margin-top: 2px;
}

.meeting-point-content {
    flex: 1;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
}

.meeting-point-content strong {
    color: var(--primary-color);
    font-weight: 700;
}

/* Dress Code Section */
.dress-code-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-top: 20px;
}

.dress-code-item {
    background: var(--bg-light);
    padding: 25px;
    border-radius: 12px;
    border: 2px solid var(--border-color);
}

.dress-code-item h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.dress-code-item p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-light);
    margin: 0;
}

/* What to Bring Section */
.what-to-bring {
    margin-top: 20px;
}

.what-to-bring-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.what-to-bring-list li {
    background: var(--bg-light);
    padding: 15px 20px;
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-dark);
    position: relative;
    padding-left: 35px;
}

.what-to-bring-list li::before {
    content: "✓";
    position: absolute;
    left: 15px;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 18px;
}

.included-note {
    font-size: 15px;
    color: var(--text-light);
    margin-bottom: 20px;
    font-style: italic;
}

/* Tour Dates Section */
.tour-dates-section {
    margin: 60px 0;
    padding: 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.tour-dates-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 25px 30px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #d4a853 100%);
    color: var(--white);
}

.dates-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    flex-shrink: 0;
}

.dates-icon svg {
    stroke: var(--white);
}

.tour-dates-header .section-title {
    margin: 0;
    color: var(--white);
    font-size: 24px;
    font-weight: 700;
}

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

.date-card {
    background: var(--white);
    border-radius: 15px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.date-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.date-year {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
    min-width: 70px;
    text-align: center;
    padding: 15px;
    background: linear-gradient(135deg, rgba(227, 178, 90, 0.1) 0%, rgba(227, 178, 90, 0.05) 100%);
    border-radius: 12px;
}

.date-period {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.date-month {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
}

.date-range {
    font-size: 16px;
    color: #666;
    font-weight: 500;
}

/* Booking Section */
.booking-section {
    text-align: center;
    padding: 50px 0;
    margin: 60px 0;
    background: var(--bg-light);
    border-radius: 15px;
}

.booking-note {
    margin-top: 20px;
    font-size: 16px;
    color: var(--text-light);
}

.booking-note a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.booking-note a:hover {
    color: var(--primary-dark);
}

/* Responsive */
@media (max-width: 968px) {
    .banner-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .banner-title {
        font-size: 24px;
    }

    .tour-header-section {
        flex-direction: column;
        gap: 25px;
    }

    .tour-header-right {
        align-items: flex-start;
        width: 100%;
    }

    .tour-main-content {
        grid-template-columns: 1fr;
    }

    .gallery-thumbnails-wrapper {
        max-width: 520px;
    }

    .thumbnail-nav-btn {
        width: 35px;
        height: 35px;
    }

    .thumbnail-nav-btn svg {
        width: 18px;
        height: 18px;
    }

    .impressions-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .included-section {
        grid-template-columns: 1fr;
    }

    .dress-code-section {
        grid-template-columns: 1fr;
    }

    .what-to-bring-list {
        grid-template-columns: 1fr;
    }

    .tour-dates-header {
        padding: 20px 25px;
    }

    .tour-dates-header .section-title {
        font-size: 20px;
    }

    .dates-cards {
        padding: 20px;
        grid-template-columns: 1fr;
    }

    .date-card {
        padding: 20px;
        flex-direction: column;
        text-align: center;
    }

    .date-year {
        min-width: auto;
        width: 100%;
    }
}

@media (max-width: 640px) {
    .tour-page {
        padding: 0 0 60px;
    }

    .tour-title {
        font-size: 24px;
    }

    .tour-price {
        font-size: 28px;
    }

    .main-image {
        height: 300px;
    }

    .gallery-main-nav {
        width: 40px;
        height: 40px;
    }

    .gallery-main-nav-prev {
        left: 10px;
    }

    .gallery-main-nav-next {
        right: 10px;
    }

    .gallery-main-nav svg {
        width: 20px;
        height: 20px;
    }

    .gallery-thumbnails-wrapper {
        max-width: 460px;
    }

    .tour-dates-section {
        margin: 40px 0;
        border-radius: 15px;
    }

    .tour-dates-header {
        padding: 18px 20px;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .dates-icon {
        width: 35px;
        height: 35px;
    }

    .tour-dates-header .section-title {
        font-size: 18px;
    }

    .dates-cards {
        padding: 15px;
        gap: 15px;
    }

    .date-card {
        padding: 18px;
        gap: 15px;
    }

    .date-year {
        font-size: 28px;
        padding: 12px;
    }

    .date-month {
        font-size: 16px;
    }

    .date-range {
        font-size: 14px;
    }
    
    .thumbnail {
        width: 70px;
        min-width: 70px;
        max-width: 70px;
        height: 60px;
    }

    .thumbnail-nav-btn {
        width: 32px;
        height: 32px;
    }

    .thumbnail-nav-btn svg {
        width: 16px;
        height: 16px;
    }

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

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

    .day-title {
        font-size: 16px;
    }
}

/* Video Section */
.video-section {
    margin: 30px 0 60px;
}

.video-section-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 30px;
    text-align: left;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.video-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    background: var(--white);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 0;
    padding-bottom: 100%; /* Квадратное соотношение - еще выше */
}

.video-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.video-item video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 12px;
    object-fit: cover;
}

/* Video Slider */
.video-slider {
    position: relative;
    margin-top: 30px;
}

.video-slider-container {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.video-slider-wrapper {
    display: flex;
    transition: transform 0.5s ease;
    gap: 30px;
}

.video-slide {
    min-width: calc(33.333% - 20px);
    flex-shrink: 0;
}

.video-slide .video-item {
    margin: 0;
    padding-bottom: 100%;
}

.video-slider-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 25px;
}

.video-slider-btn {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(227, 178, 90, 0.3);
}

.video-slider-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(227, 178, 90, 0.5);
}

.video-slider-btn:disabled {
    background: var(--text-light);
    cursor: not-allowed;
    opacity: 0.5;
    transform: none;
}

.video-slider-dots {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
}

.video-slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--text-light);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.video-slider-dot.active {
    background: var(--primary-color);
    width: 16px;
    height: 16px;
}

.video-slider-dot:hover {
    background: var(--primary-color);
    opacity: 0.7;
}

@media (max-width: 1024px) {
    .video-slide {
        min-width: calc(50% - 15px);
    }
}

@media (max-width: 768px) {
    .video-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .video-section-title {
        font-size: 24px;
        margin-bottom: 20px;
    }
    
    .video-section {
        margin: 40px 0;
    }
    
    .video-slider-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .video-slide {
        min-width: 100%;
    }
    
    .video-slider-wrapper {
        gap: 20px;
    }
}

/* Accommodation Section */
.accommodation-section {
    margin: 60px 0;
}

.accommodation-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    margin-bottom: 30px;
}

.accommodation-header .section-title {
    margin: 0;
    flex-shrink: 0;
    min-width: 200px;
}

.accommodation-description {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-light);
    margin: 0;
    flex: 1;
    max-width: 600px;
}

.accommodation-slider {
    position: relative;
    margin-top: 30px;
}

.accommodation-slider-container {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.accommodation-slider-wrapper {
    display: flex;
    transition: transform 0.5s ease;
    gap: 20px;
}

.accommodation-slide {
    min-width: calc(33.333% - 14px);
    flex-shrink: 0;
}

.accommodation-slide img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.accommodation-slide img:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.accommodation-slider-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 25px;
}

.accommodation-slider-btn {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(227, 178, 90, 0.3);
}

.accommodation-slider-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(227, 178, 90, 0.5);
}

.accommodation-slider-btn:disabled {
    background: var(--text-light);
    cursor: not-allowed;
    opacity: 0.5;
    transform: none;
}

/* Accommodation Modal */
.accommodation-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    cursor: pointer;
}

.accommodation-modal-content {
    margin: auto;
    display: block;
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
    object-fit: contain;
    margin-top: 5vh;
    animation: zoom 0.3s;
    position: relative;
    z-index: 1;
}

@keyframes zoom {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

.accommodation-modal-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: var(--white);
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    transition: color 0.3s ease;
}

.accommodation-modal-close:hover {
    color: var(--primary-color);
}

.accommodation-modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(227, 178, 90, 0.8);
    color: var(--white);
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 40px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    transition: all 0.3s ease;
    user-select: none;
    line-height: 1;
}

.accommodation-modal-nav:hover {
    background: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
}

.accommodation-modal-prev {
    left: 30px;
}

.accommodation-modal-next {
    right: 30px;
}

@media (max-width: 768px) {
    .accommodation-modal-nav {
        width: 50px;
        height: 50px;
        font-size: 30px;
    }
    
    .accommodation-modal-prev {
        left: 15px;
    }
    
    .accommodation-modal-next {
        right: 15px;
    }
}

@media (max-width: 1024px) {
    .accommodation-header {
        flex-direction: column;
        gap: 20px;
    }
    
    .accommodation-header .section-title {
        min-width: auto;
    }
    
    .accommodation-description {
        max-width: 100%;
    }
    
    .accommodation-slide {
        min-width: calc(50% - 10px);
    }
}

@media (max-width: 768px) {
    .accommodation-section {
        margin: 40px 0;
    }
    
    .accommodation-slide {
        min-width: 100%;
    }
    
    .accommodation-slider-wrapper {
        gap: 15px;
    }
    
    .accommodation-slide img {
        height: 250px;
    }
    
    .accommodation-slider-btn {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .accommodation-modal-content {
        width: 95%;
        max-height: 85vh;
    }
    
    .accommodation-modal-close {
        top: 15px;
        right: 25px;
        font-size: 35px;
    }
}

/* Modal Styles */
.tourist-guide-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    overflow-y: auto;
    padding: 20px;
    backdrop-filter: blur(5px);
}

.tourist-guide-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--white);
    border-radius: 20px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 30px 40px;
    border-radius: 20px 20px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 10;
}

.modal-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0;
}

.modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: var(--white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: all 0.3s;
    line-height: 1;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.modal-body {
    padding: 40px;
}

.guide-section {
    margin-bottom: 35px;
}

.guide-section:last-child {
    margin-bottom: 0;
}

.guide-section-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.guide-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.guide-list li {
    padding: 12px 0 12px 30px;
    position: relative;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
}

.guide-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-size: 24px;
    line-height: 1;
    top: 12px;
}

.guide-list li strong {
    color: var(--text-dark);
    font-weight: 600;
}

.guide-warning {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.guide-warning-title {
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
    font-size: 18px;
}

.guide-warning-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.guide-warning-list li {
    padding: 8px 0 8px 25px;
    position: relative;
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-dark);
}

.guide-warning-list li::before {
    content: "⚠";
    position: absolute;
    left: 0;
    font-size: 18px;
}

@media (max-width: 768px) {
    .modal-content {
        max-width: 100%;
        border-radius: 15px;
        margin: 10px;
    }
    
    .modal-header {
        padding: 20px;
        border-radius: 15px 15px 0 0;
    }
    
    .modal-title {
        font-size: 22px;
    }
    
    .modal-body {
        padding: 25px 20px;
    }
    
    .guide-section-title {
        font-size: 20px;
    }
    
    .guide-list li {
        font-size: 15px;
        padding-left: 25px;
    }
}

/* Tour Dates Calendar Section */
.tour-dates-section {
    padding: 40px 0;
    background: var(--bg-light);
    margin: 40px 0;
    width: 100%;
    box-sizing: border-box;
}

.tour-dates-section .container {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 20px;
    box-sizing: border-box;
}

.calendar-section {
    width: 100%;
    box-sizing: border-box;
}

.booking-form-section {
    width: 100%;
    box-sizing: border-box;
}

.tour-dates-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.tour-dates-title-text {
    display: inline-block;
}

/* Calendar Help Button */
.calendar-help-btn {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    background: var(--primary-color);
    color: var(--white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: helpPulse 2s ease-in-out infinite;
    flex-shrink: 0;
    vertical-align: middle;
}

.calendar-help-btn:hover {
    background: #d4a574;
    border-color: #d4a574;
    transform: scale(1.15);
    animation: none;
    box-shadow: 0 4px 12px rgba(227, 178, 90, 0.4);
}

@keyframes helpPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(227, 178, 90, 0.4);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(227, 178, 90, 0);
    }
}

/* Help Modal Styles */
.help-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    overflow-y: auto;
}

.help-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.help-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.help-modal-content {
    position: relative;
    background: var(--white);
    border-radius: 16px;
    padding: 0;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 10001;
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.help-modal-body {
    padding: 40px;
}

.help-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary-color), #d4a574);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.help-modal-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 30px;
}

.help-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.help-step {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    background: var(--bg-light);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.help-step:hover {
    background: rgba(227, 178, 90, 0.1);
    transform: translateX(5px);
}

.help-step-number {
    width: 32px;
    height: 32px;
    min-width: 32px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
}

.help-step-text {
    flex: 1;
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-dark);
    padding-top: 4px;
}

.help-note {
    background: linear-gradient(135deg, rgba(227, 178, 90, 0.1), rgba(212, 165, 116, 0.1));
    border-left: 4px solid var(--primary-color);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.help-note p {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-dark);
}

.help-note strong {
    color: var(--primary-color);
    font-weight: 700;
}

.help-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border: none;
    background: var(--bg-light);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: var(--text-dark);
    z-index: 10002;
}

.help-modal-close:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: rotate(90deg);
}

@media (max-width: 768px) {
    .calendar-help-btn {
        width: 36px;
        height: 36px;
    }
    
    .calendar-help-btn svg {
        width: 20px;
        height: 20px;
    }
    
    .tour-dates-title {
        gap: 10px;
    }
    
    .help-modal-content {
        max-width: 100%;
        margin: 10px;
    }
    
    .help-modal-body {
        padding: 30px 20px;
    }
    
    .help-modal-close {
        top: 10px;
        right: 10px;
        width: 36px;
        height: 36px;
    }
}

.calendar-nav-btn-mobile {
    display: none;
}

.calendar-booking-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
    align-items: start;
    width: 100%;
    box-sizing: border-box;
}

.calendar-section {
    display: flex;
    flex-direction: column;
}

.calendar-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
}

.calendar-nav-btn-mobile {
    display: none;
}

.calendar-nav-btn {
    background: var(--white);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    color: var(--text-dark);
}

.calendar-nav-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
    transform: scale(1.05);
}

.calendar-nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.calendar-nav-btn:disabled:hover {
    background: var(--white);
    border-color: var(--border-color);
    color: var(--text-dark);
    transform: none;
}

.calendar-container {
    flex: 1;
    display: flex;
    gap: 30px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: auto; /* Убираем smooth scroll */
    -webkit-overflow-scrolling: touch;
    width: 100%;
    min-width: 0;
    scroll-snap-type: x mandatory; /* Добавляем snap-прокрутку */
}

.calendar-month {
    min-width: calc(33.333% - 20px);
    background: var(--white);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
    box-sizing: border-box;
    scroll-snap-align: start; /* Добавляем snap-точку для каждого месяца */
}

.calendar-month-header {
    text-align: center;
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    margin-bottom: 10px;
}

.calendar-weekday {
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-light);
    padding: 5px;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    background: transparent;
    border: 1px solid transparent;
}

.calendar-day.empty {
    cursor: default;
    opacity: 0.3;
}

.calendar-day.available {
    background: rgba(227, 178, 90, 0.1);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    color: var(--text-dark);
    font-weight: 600;
    position: relative;
}

/* Connecting line between tour dates */
.calendar-day.available.tour-start::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 2px;
    background: var(--primary-color);
    z-index: 1;
}

.calendar-day.available.tour-middle::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 2px;
    background: var(--primary-color);
    z-index: 1;
}

.calendar-day.available.tour-middle::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 2px;
    background: var(--primary-color);
    z-index: 1;
}

.calendar-day.available.tour-end::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 2px;
    background: var(--primary-color);
    z-index: 1;
}

.calendar-day.available:hover,
.calendar-day.available.hovered {
    background: var(--primary-color);
    color: var(--white);
    z-index: 2;
    transform: scale(1.1);
}

.calendar-day.available.tour-start:hover::after,
.calendar-day.available.tour-start.hovered::after,
.calendar-day.available.tour-middle:hover::before,
.calendar-day.available.tour-middle.hovered::before,
.calendar-day.available.tour-middle:hover::after,
.calendar-day.available.tour-middle.hovered::after,
.calendar-day.available.tour-end:hover::before,
.calendar-day.available.tour-end.hovered::before {
    background: var(--white);
}

.calendar-day.selected {
    background: var(--primary-color);
    color: var(--white);
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(227, 178, 90, 0.4);
}

.calendar-day.today {
    border: 2px solid var(--text-dark);
}

.calendar-info {
    margin-top: 20px;
    padding: 15px;
    background: var(--white);
    border-radius: 8px;
    text-align: center;
    font-size: 14px;
    color: var(--text-light);
    min-height: 20px;
}

.calendar-info.has-selection {
    color: var(--text-dark);
    font-weight: 500;
}

/* Booking Form Section */
.calendar-section {
    display: flex;
    flex-direction: column;
    margin-bottom: 40px;
}

.booking-form-section {
    margin-top: 40px;
    display: none; /* Скрываем старую форму, так как теперь используется модальное окно */
}

.booking-form-card {
    background: var(--white);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
}

.booking-form-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 25px;
    text-align: center;
}

.booking-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1.5fr 1.5fr auto;
    gap: 20px;
    align-items: end;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 15px;
    color: var(--text-dark);
    background: var(--white);
    transition: all 0.3s ease;
    font-family: inherit;
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(227, 178, 90, 0.1);
}

.form-input:read-only {
    background: var(--bg-light);
    cursor: default;
    color: var(--text-light);
}

.form-input::placeholder {
    color: var(--text-light);
}

/* Анимация для полей формы при выборе даты */
.form-input.animate-field {
    animation: fieldPulse 1.5s ease-in-out;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(227, 178, 90, 0.2);
}

@keyframes fieldPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 3px rgba(227, 178, 90, 0.2);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 0 0 6px rgba(227, 178, 90, 0.3);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 3px rgba(227, 178, 90, 0.2);
    }
}

/* Booking Modal Styles */
.booking-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    overflow-y: auto;
}

.booking-modal.active {
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.booking-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.booking-modal-content {
    position: relative;
    background: var(--white);
    border-radius: 16px;
    padding: 0;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 10001;
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.booking-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border: none;
    background: var(--bg-light);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: var(--text-dark);
    z-index: 10002;
}

.booking-modal-close:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: rotate(90deg);
}

.booking-modal-content .booking-form-card {
    box-shadow: none;
    padding: 40px;
    margin: 0;
}

.booking-modal-content .booking-form-title {
    margin-bottom: 30px;
    text-align: center;
}

/* Вертикальное расположение полей в модальном окне */
.booking-modal-content .form-row {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.booking-modal-content .form-group {
    width: 100%;
}

@media (max-width: 768px) {
    .booking-modal-content {
        padding: 0;
        max-width: 100%;
        margin: 10px;
    }
    
    .booking-modal-content .booking-form-card {
        padding: 30px 20px;
    }
    
    .booking-modal-close {
        top: 10px;
        right: 10px;
        width: 36px;
        height: 36px;
    }
    
    .booking-modal-content .form-row {
        gap: 15px;
    }
}

.form-group-submit {
    display: flex;
    align-items: flex-end;
}

.btn-submit {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 14px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    white-space: nowrap;
    height: fit-content;
}

.btn-submit:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(227, 178, 90, 0.3);
}

.btn-submit:active {
    transform: translateY(0);
}

.btn-submit:disabled {
    background: var(--text-light);
    cursor: not-allowed;
    transform: none;
}

.btn-submit svg {
    width: 20px;
    height: 20px;
}

.form-message {
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    text-align: center;
    display: none;
}

.form-consent {
    margin-top: 15px;
    padding: 0;
}

.form-consent-text {
    font-size: 12px;
    line-height: 1.5;
    color: var(--text-light);
    text-align: center;
    margin: 0;
}

.form-consent-link {
    color: var(--primary-color);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.form-consent-link:hover {
    color: var(--primary-hover);
    text-decoration: none;
}

.form-message.success {
    display: block;
    background: rgba(76, 175, 80, 0.1);
    color: #4caf50;
    border: 1px solid #4caf50;
}

.form-message.error {
    display: block;
    background: rgba(244, 67, 54, 0.1);
    color: #f44336;
    border: 1px solid #f44336;
}

@media (max-width: 968px) {
    .calendar-booking-wrapper {
        grid-template-columns: 1fr !important;
        gap: 30px;
        width: 100% !important;
        max-width: 100% !important;
    }

    .form-row {
        grid-template-columns: 1fr !important;
        gap: 20px;
        width: 100% !important;
    }

    .form-group-submit {
        align-items: stretch;
    }

    .btn-submit {
        width: 100%;
    }

    .booking-form-card {
        padding: 25px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }

    .calendar-section {
        margin-bottom: 30px;
        width: 100% !important;
        max-width: 100% !important;
    }

    .booking-form-section {
        margin-top: 30px;
        width: 100% !important;
        max-width: 100% !important;
    }

    .tour-dates-section {
        padding: 30px 0;
        margin: 30px 0;
        width: 100% !important;
    }

    .tour-dates-section .container {
        width: 100% !important;
        max-width: 100% !important;
    }

    .tour-dates-title {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .calendar-wrapper {
        gap: 10px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }

    .calendar-nav-btn {
        width: 36px;
        height: 36px;
        flex-shrink: 0;
        z-index: 10;
        min-width: 36px;
        min-height: 36px;
    }

    .calendar-container {
        gap: 15px;
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        min-width: 0;
    }

    .calendar-month {
        min-width: calc(100% - 20px) !important;
        max-width: calc(100% - 20px) !important;
        width: calc(100% - 20px) !important;
        padding: 15px;
        scroll-snap-align: start;
        flex-shrink: 0;
        box-sizing: border-box;
    }

    .calendar-month-header {
        font-size: 16px;
        margin-bottom: 10px;
    }

    .calendar-weekday {
        font-size: 11px;
        padding: 3px;
    }

    .calendar-day {
        font-size: 12px;
    }
}

@media (max-width: 640px) {
    .tour-dates-section {
        padding: 20px 0 !important;
        margin: 20px 0 !important;
        width: 100% !important;
        max-width: 100vw !important;
        overflow-x: hidden;
    }

    .tour-dates-section .container {
        padding: 0 0px !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
    }

    .calendar-booking-wrapper {
        grid-template-columns: 1fr !important;
        gap: 20px;
        padding: 0;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
    }

    .tour-dates-title {
        font-size: 20px;
        margin-bottom: 15px;
        padding: 0;
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        position: relative;
    }

    .tour-dates-title-text {
        flex: 1;
        text-align: center;
    }

    .calendar-section {
        width: 100% !important;
        margin-bottom: 20px;
        max-width: 100% !important;
    }

    .calendar-wrapper {
        gap: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        display: flex !important;
        align-items: stretch;
        position: relative;
        box-sizing: border-box;
        margin: 0 !important;
    }

    /* Скрываем кнопки навигации в календаре на мобильных */
    .calendar-wrapper .calendar-nav-btn {
        display: none !important;
    }

    /* Показываем кнопки в заголовке */
    .calendar-nav-btn-mobile {
        display: flex !important;
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        min-height: 36px !important;
        flex-shrink: 0 !important;
        background: var(--white) !important;
        border: 2px solid var(--border-color) !important;
        border-radius: 50% !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
        position: relative;
        align-items: center !important;
        justify-content: center !important;
        cursor: pointer;
        transition: all 0.3s ease;
        color: var(--text-dark);
    }

    .calendar-nav-btn-mobile:hover {
        background: var(--primary-color) !important;
        border-color: var(--primary-color) !important;
        color: var(--white) !important;
        transform: scale(1.05);
    }

    .calendar-nav-btn-mobile:active {
        transform: scale(0.95);
    }

    .calendar-nav-btn:active {
        transform: scale(0.95);
    }

    .calendar-container {
        gap: 10px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        padding: 0 !important;
        flex: 1 1 100% !important;
        box-sizing: border-box;
    }

    .calendar-container::-webkit-scrollbar {
        height: 4px;
    }

    .calendar-container::-webkit-scrollbar-track {
        background: var(--bg-light);
        border-radius: 2px;
    }

    .calendar-container::-webkit-scrollbar-thumb {
        background: var(--primary-color);
        border-radius: 2px;
    }

    .calendar-month {
        min-width: 100% !important;
        max-width: 100% !important;
        width: 100% !important;
        padding: 15px !important;
        scroll-snap-align: start;
        flex-shrink: 0 !important;
        box-sizing: border-box;
    }

    .calendar-month-header {
        font-size: 16px;
        margin-bottom: 12px;
    }

    .calendar-weekday {
        font-size: 11px;
        padding: 4px 2px;
    }

    .calendar-day {
        font-size: 13px;
        padding: 4px;
    }

    .booking-form-section {
        width: 100% !important;
        max-width: 100% !important;
        margin-top: 20px;
        padding: 0 !important;
        box-sizing: border-box;
    }

    .booking-form-card {
        padding: 20px !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }

    .booking-form-title {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .form-row {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
        width: 100% !important;
    }

    .form-group {
        width: 100% !important;
        max-width: 100% !important;
    }

    .form-input {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
}

/* Prices Section */
.prices-section {
    margin: 40px 0;
}

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

.price-card {
    background: var(--white);
    border: 2px solid var(--border-color);
    border-radius: 15px;
    padding: 25px;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
    position: relative;
    overflow: hidden;
}

.price-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
    transform: scaleX(0);
    transition: transform 0.3s;
}

.price-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border-color: var(--primary-color);
}

.price-card:hover::before {
    transform: scaleX(1);
}

.price-card-featured {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, #fff9f0 0%, var(--white) 100%);
}

.price-card-featured::before {
    transform: scaleX(1);
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
}

.price-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    gap: 15px;
}

.price-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
    flex: 1;
}

.price-amount {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    white-space: nowrap;
}

.price-description {
    font-size: 14px;
    color: var(--text-light);
    margin: 0 0 15px 0;
    line-height: 1.5;
}

.price-restriction {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: var(--bg-light);
    border-radius: 8px;
    font-size: 13px;
    color: var(--text-light);
}

.price-restriction svg {
    flex-shrink: 0;
    color: var(--primary-color);
}

.price-included {
    list-style: none;
    padding: 0;
    margin: 15px 0 0 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.price-included li {
    padding: 8px 12px;
    background: var(--bg-light);
    border-radius: 6px;
    font-size: 14px;
    color: var(--text-dark);
    position: relative;
    padding-left: 32px;
    line-height: 1.4;
}

.price-included li::before {
    content: '✓';
    position: absolute;
    left: 12px;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 16px;
}

@media (max-width: 768px) {
    .prices-grid {
        grid-template-columns: 1fr;
    }
    
    .price-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .price-amount {
        font-size: 22px;
    }
}

/* CTA Block */
.cta-block {
    background: linear-gradient(135deg, #fff9f0 0%, var(--white) 100%);
    border: 2px solid var(--primary-color);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-top: 20px;
    box-shadow: 0 4px 20px rgba(227, 178, 90, 0.15);
}

.cta-block::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(227, 178, 90, 0.1) 0%, transparent 70%);
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.cta-icon {
    color: var(--primary-color);
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    display: inline-block;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(10px);
    }
}

.cta-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
    position: relative;
    z-index: 1;
    line-height: 1.4;
}

.cta-decoration {
    margin-top: 20px;
    height: 3px;
    width: 80px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
    border-radius: 2px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .cta-block {
        padding: 30px 20px;
    }
    
    .cta-title {
        font-size: 20px;
    }
    
    .cta-icon svg {
        width: 40px;
        height: 40px;
    }
}
