/*
Theme Name: Ялта Экскурсии
Theme URI: https://exursyalta.ru
Author: Ялта Экскурсии
Author URI: https://exursyalta.ru
Description: Профессиональная тема WordPress для сайта экскурсий по Ялте и Крыму. Адаптивный дизайн, оптимизация для SEO, поддержка пользовательских типов записей.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: yalta
Tags: tourism, excursions, responsive, custom-post-types, seo-optimized
*/

/* ===========================
   Основные стили и переменные
   =========================== */
:root {
    --primary: #2c5aa0;
    --primary-dark: #1f4785; /* Добавлена переменная для темного оттенка primary */
    --secondary: #ff7e30;
    --accent: #4caf50;
    --dark: #1a2b4c;
    --light: #f8f9fa;
    --gray: #6c757d;
    --light-gray: #e9ecef;
    --white: #fff;
    --shadow: 0 5px 15px rgba(0,0,0,.08);
    --transition: all .3s ease;
    --shadow-strong: 0 15px 30px rgba(0,0,0,.15);
    --price-color: #e53935;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: var(--light);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===========================
   Типографика
   =========================== */
h1, h2, h3, h4, h5 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title h2 {
    font-size: 2.2rem;
    color: var(--dark);
    display: inline-block;
    padding-bottom: 15px;
}

.section-title h2:after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background: var(--secondary);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

/* ===========================
   Кнопки
   =========================== */
.btn {
    display: inline-block;
    padding: 12px 28px;
    background-color: var(--secondary);
    color: var(--white);
    border: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    text-align: center;
    font-family: inherit;
}

.btn:hover {
    background-color: #e56a20;
    transform: translateY(-3px);
    box-shadow: var(--shadow-strong);
    color: var(--white);
}

.btn-primary {
    background-color: var(--primary);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}

/* ===========================
   Шапка и Навигация
   =========================== */
header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.logo h1 {
    font-size: 1.8rem;
    margin-bottom: 0;
    color: var(--primary);
    line-height: 1;
}

.logo span {
    color: var(--secondary);
}

.logo-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-right: 10px;
}

/* Навигация для десктопа */
.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-menu > li {
    position: relative;
    margin-left: 25px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    position: relative;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.nav-menu a:hover {
    color: var(--secondary);
}

.nav-menu > li > a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--secondary);
    left: 0;
    bottom: -5px;
    transition: var(--transition);
}

.nav-menu > li > a:hover:after {
    width: 100%;
}

/* Телефон в шапке */
.nav-phone {
    display: flex;
    align-items: center;
    font-weight: 600;
    color: var(--dark);
    text-decoration: none;
}

.nav-phone i {
    margin-right: 8px;
    color: var(--secondary);
}

/* Кнопка мобильного меню */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--dark);
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

/* ===========================
   Основной контент
   =========================== */
.site-main {
    min-height: calc(100vh - 200px);
    padding: 100px 0 80px;
}

/* ===========================
   Сетка экскурсий
   =========================== */
.tours {
    padding: 100px 0 80px;
}

.tour-filters {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-btn {
    padding: 8px 20px;
    background-color: var(--white);
    border: 1px solid var(--light-gray);
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
    font-family: inherit;
}

.filter-btn.active,
.filter-btn:hover {
    background-color: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.tour-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 50px;
}

.tour-card {
    display: block;
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
    height: 100%;
    position: relative;
}

.tour-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-strong);
}

.tour-img-container {
    position: relative;
    height: 400px;
    overflow: hidden;
    background: #f5f5f5;
}

.tour-img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.tour-card:hover .tour-img {
    transform: scale(1.05);
}

/* Бейджи */
.tour-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    z-index: 2;
}

.badge-hit {
    background-color: #ff4757;
    color: white;
}

.badge-discount {
    background-color: #4caf50;
    color: white;
}

.badge-popular {
    background-color: #ff9800;
    color: white;
}

.badge-new {
    background-color: #2c5aa0;
    color: white;
}

.tour-content {
    padding: 25px;
    position: relative;
    display: flex;
    flex-direction: column;
}

.tour-category {
    display: inline-block;
    background-color: rgba(44,90,160,.1);
    color: var(--primary);
    padding: 5px 12px;
    border-radius: 30px;
    font-size: .8rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.tour-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--dark);
    line-height: 1.4;
}

.tour-description {
    color: var(--gray);
    margin-bottom: 20px;
    font-size: .95rem;
    line-height: 1.5;
    flex-grow: 1;
}

.tour-details {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: .9rem;
    flex-wrap: wrap;
    gap: 10px;
}

.tour-detail {
    display: flex;
    align-items: center;
}

.tour-detail i {
    margin-right: 8px;
    color: var(--secondary);
    font-size: 1rem;
}

/* Цена */
.tour-price-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--light-gray);
}

.price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--price-color);
}

.old-price {
    text-decoration: line-through;
    color: var(--gray);
    font-size: 1rem;
    margin-left: 5px;
    font-weight: normal;
}

.price-note {
    font-size: .9rem;
    color: var(--gray);
    font-weight: normal;
    display: block;
    margin-top: 5px;
}

/* Мобильная версия карточек */
.tour-card-mobile-overlay {
    display: none;
}

/* ===========================
   Футер
   =========================== */
footer {
    background-color: var(--dark);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-column {
    flex: 1;
    min-width: 250px;
    margin-bottom: 30px;
}

.footer-column h3 {
    font-size: 1.3rem;
    margin-bottom: 25px;
    color: var(--white);
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3:after {
    content: '';
    position: absolute;
    width: 40px;
    height: 3px;
    background-color: var(--secondary);
    bottom: 0;
    left: 0;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #b0b7c3;
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.footer-links a:hover {
    color: var(--secondary);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-link {
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: var(--transition);
    text-decoration: none;
}

.social-link:hover {
    background-color: var(--secondary);
    transform: translateY(-5px);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,.1);
    color: #b0b7c3;
    font-size: .9rem;
}

/* ===========================
   Адаптивность
   =========================== */
@media (max-width: 1200px) {
    .tour-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background-color: var(--white);
        flex-direction: column;
        align-items: flex-start;
        padding: 80px 30px 30px;
        transition: right .4s ease;
        box-shadow: -5px 0 15px rgba(0,0,0,.1);
        overflow-y: auto;
        z-index: 999;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu > li {
        margin: 0 0 15px 0;
        width: 100%;
    }
    
    .nav-menu a {
        padding: 10px 0;
        width: 100%;
        font-size: 1.1rem;
    }
    
    .nav-phone {
        display: none;
    }
    
    .tour-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-left: -15px;
        margin-right: -15px;
        width: calc(100% + 30px);
    }
    
    .tour-card {
        border-radius: 0;
        box-shadow: none;
    }
    
    .tour-img-container {
        height: 350px;
    }
    
    .tour-card-mobile-overlay {
        display: block;
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 20px;
        background: linear-gradient(to top, rgba(0,0,0,.8) 0%, transparent 100%);
        color: white;
        z-index: 2;
    }
    
    .tour-card-mobile-overlay .tour-title {
        color: white;
        font-size: 1.4rem;
        margin-bottom: 5px;
        text-shadow: 0 2px 4px rgba(0,0,0,.5);
    }
    
    .tour-card-mobile-overlay .price {
        color: #ff7e30;
        font-size: 1.8rem;
        text-shadow: 0 2px 4px rgba(0,0,0,.5);
    }
    
    .tour-content {
        display: none;
    }
    
    .footer-column {
        min-width: 100%;
    }
}

@media (min-width: 769px) {
    .tour-card-mobile-overlay {
        display: none !important;
    }
    
    .tour-content {
        display: flex !important;
    }
}

/* ===========================
   СТРАНИЦА ЭКСКУРСИИ
   =========================== */
.excursion-detail-page {
    padding: 100px 0 60px;
    min-height: 100vh;
    background-color: var(--light);
}

.excursion-breadcrumb {
    margin-bottom: 30px;
    font-size: .9rem;
    color: var(--gray);
}

.excursion-breadcrumb a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

.excursion-breadcrumb a:hover {
    color: var(--secondary);
    text-decoration: underline;
}

.excursion-breadcrumb span {
    margin: 0 5px;
    color: var(--gray);
}

.excursion-header {
    margin-bottom: 40px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 20px;
}

.excursion-header-content {
    flex: 1;
    min-width: 300px;
}

.excursion-header h1 {
    font-size: 2.8rem;
    color: var(--dark);
    margin-bottom: 15px;
    line-height: 1.2;
}

.excursion-rating {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.excursion-rating-stars {
    color: var(--secondary);
    margin-right: 10px;
}

.excursion-rating-text {
    color: var(--gray);
    font-size: .9rem;
}

.excursion-category {
    display: inline-block;
    background-color: rgba(44, 90, 160, .1);
    color: var(--primary);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 25px;
}

/* Галерея на странице экскурсии */
.excursion-image-gallery {
    margin-bottom: 40px;
}

.main-gallery {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 10px;
    margin-bottom: 15px;
}

.main-image-container {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
}

.main-excursion-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.3s;
}

.main-image-container:hover .main-excursion-image {
    transform: scale(1.02);
}

.gallery-thumbnails {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.thumbnail-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    height: 195px;
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.thumbnail-item:hover img {
    transform: scale(1.05);
}

.more-photos {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
}

.open-gallery-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 500;
    width: 100%;
    transition: background 0.3s;
}

.open-gallery-btn:hover {
    background: var(--primary-dark);
}

.excursion-content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.excursion-main-content {
    background-color: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.excursion-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--dark);
    margin-bottom: 40px;
}

.excursion-highlights {
    background-color: rgba(44, 90, 160, .05);
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 40px;
    border-left: 4px solid var(--primary);
}

.excursion-highlights h3 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.excursion-highlights ul {
    list-style: none;
}

.excursion-highlights li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}

.excursion-highlights li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

.excursion-program {
    margin-bottom: 40px;
}

.excursion-program h3 {
    color: var(--primary);
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.program-step {
    display: flex;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--light-gray);
    position: relative;
}

.program-step:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.step-number {
    width: 40px;
    height: 40px;
    background-color: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-right: 20px;
    flex-shrink: 0;
    font-size: 1.1rem;
}

.step-content {
    flex: 1;
}

.step-content h4 {
    margin-bottom: 8px;
    color: var(--dark);
    font-size: 1.2rem;
}

.step-time {
    color: var(--secondary);
    font-weight: 600;
    margin-bottom: 5px;
    font-size: .9rem;
}

/* Боковая панель бронирования */
.excursion-sidebar {
    position: relative;
}

.excursion-booking-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    position: sticky;
    top: 120px;
    margin-bottom: 30px;
}

.excursion-price-header {
    background-color: var(--white);
    padding: 25px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    min-width: 300px;
    text-align: center;
    position: sticky;
    top: 120px;
}

.excursion-price-header .price {
    font-size: 2.5rem;
    color: var(--price-color);
    font-weight: 700;
    margin-bottom: 10px;
}

.excursion-price-header .price-note {
    color: var(--gray);
    font-size: 1rem;
    margin-bottom: 20px;
}

.excursion-price-main {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--light-gray);
}

.excursion-price-main .price {
    font-size: 2.8rem;
    color: var(--price-color);
    font-weight: 700;
    margin-bottom: 5px;
}

.excursion-price-note {
    color: var(--gray);
    font-size: .9rem;
    margin-top: 5px;
}

.excursion-details-sidebar {
    margin-bottom: 30px;
}

.excursion-detail-sidebar {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid var(--light-gray);
}

.excursion-detail-sidebar:last-child {
    border-bottom: none;
}

.detail-icon-sidebar {
    width: 40px;
    height: 40px;
    background-color: rgba(44, 90, 160, .1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: var(--primary);
    flex-shrink: 0;
}

.excursion-detail-sidebar h4 {
    font-size: .9rem;
    color: var(--gray);
    margin-bottom: 3px;
    font-weight: 600;
}

.excursion-detail-sidebar p {
    font-size: 1rem;
    color: var(--dark);
    margin: 0;
}

/* Форма бронирования */
.booking-form-sidebar {
    margin-top: 20px;
}

.booking-form-sidebar h4 {
    margin-bottom: 20px;
    color: var(--dark);
    text-align: center;
    font-size: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.form-group-sidebar {
    margin-bottom: 0;
}

.form-control-sidebar {
    width: 100%;
    padding: 14px 15px;
    border: 2px solid var(--light-gray);
    border-radius: 8px;
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    transition: var(--transition);
    background-color: #f8f9fa;
}

.form-control-sidebar:focus {
    outline: none;
    border-color: var(--primary);
    background-color: var(--white);
    box-shadow: 0 0 0 3px rgba(44, 90, 160, .1);
}

.form-control-sidebar::placeholder {
    color: #6c757d;
}

select.form-control-sidebar {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
    padding-right: 40px;
}

input[type="date"].form-control-sidebar {
    min-height: 52px;
}

.book-now-header-btn,
.booking-btn-sidebar {
    width: 100%;
    font-size: 1.2rem;
    padding: 16px;
    margin-top: 10px;
    border-radius: 8px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--secondary), #ff9a44);
    transition: all .3s ease;
    border: none;
    cursor: pointer;
    color: white;
}

.book-now-header-btn:hover,
.booking-btn-sidebar:hover {
    background: linear-gradient(135deg, #e56a20, #ff7e30);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 126, 48, .3);
}

.form-agreement {
    text-align: center;
    margin-top: 15px;
    font-size: .8rem;
    color: var(--gray);
}

.form-agreement a {
    color: var(--primary);
    text-decoration: none;
}

.form-agreement a:hover {
    text-decoration: underline;
}

/* Галерея изображений */
.excursion-gallery {
    margin-top: 30px;
}

.excursion-gallery h3 {
    color: var(--primary);
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.gallery-images {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.gallery-image {
    height: 150px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-image:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-strong);
}

/* Сообщения формы */
.success-message,
.error-message {
    display: none;
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
    text-align: center;
}

.success-message {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.excursion-included {
    margin-top: 30px;
}

.excursion-included h3 {
    color: var(--primary);
    margin-bottom: 20px;
    font-size: 1.5rem;
}

/* Адаптивность для страницы экскурсии */
@media (max-width: 992px) {
    .excursion-content-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .excursion-header h1 {
        font-size: 2.2rem;
    }
    
    .gallery-images,
    .gallery-thumbnails {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .main-gallery {
        grid-template-columns: 1fr;
    }
    
    .main-excursion-image {
        height: 300px;
    }
    
    .excursion-header {
        flex-direction: column;
    }
    
    .excursion-price-header {
        min-width: 100%;
        order: 3;
        margin-top: 20px;
        position: relative;
        top: 0;
    }
    
    .excursion-booking-card {
        position: relative;
        top: 0;
    }
}

@media (max-width: 768px) {
    .excursion-main-image {
        height: 300px;
        border-radius: 0;
        margin-left: -15px;
        margin-right: -15px;
        width: calc(100% + 30px);
    }
    
    .excursion-main-content {
        padding: 20px;
    }
    
    .excursion-header h1 {
        font-size: 1.8rem;
        line-height: 1.3;
    }
    
    .excursion-description {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .excursion-price-header .price {
        font-size: 2rem;
    }
    
    .gallery-images,
    .gallery-thumbnails {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .program-step {
        margin-bottom: 20px;
        padding-bottom: 20px;
        flex-direction: column;
    }
    
    .step-number {
        margin-right: 0;
        margin-bottom: 10px;
    }
}

@media (max-width: 576px) {
    .excursion-header h1 {
        font-size: 1.6rem;
        margin-bottom: 10px;
    }
    
    .excursion-category {
        font-size: .9rem;
        padding: 6px 15px;
        margin-bottom: 15px;
    }
    
    .excursion-main-content {
        padding: 15px;
    }
    
    .excursion-description {
        font-size: .95rem;
        margin-bottom: 25px;
    }
    
    .excursion-highlights {
        padding: 15px;
        margin-bottom: 25px;
    }
    
    .excursion-program h3 {
        font-size: 1.3rem;
        margin-bottom: 15px;
    }
    
    .gallery-images,
    .gallery-thumbnails {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .gallery-image,
    .thumbnail-item {
        height: 180px;
    }
    
    .excursion-price-header .price,
    .excursion-price-main .price {
        font-size: 1.8rem;
    }
}

/* PhotoSwipe кастомизация */
.pswp__bg {
    background: rgba(0, 0, 0, 0.95) !important;
}

.pswp__button--close {
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"/></svg>') no-repeat center !important;
}

.pswp__button--arrow--left,
.pswp__button--arrow--right {
    background: rgba(255, 255, 255, 0.1) !important;
    border-radius: 50%;
    width: 60px !important;
    height: 60px !important;
}

.pswp__button--arrow--left:hover,
.pswp__button--arrow--right:hover {
    background: rgba(255, 255, 255, 0.2) !important;
}

/* Убраны дублирующиеся стили */
/* Все необходимые стили объединены выше */