/* =========================================================
   ЦВЕТОВАЯ ПАЛИТРА И ПЕРЕМЕННЫЕ
========================================================= */
:root {
    --forest-dark: #1b261e; 
    --forest-green: #2c4233; 
    --hunter-orange: #d95c14; 
    --bg-color: #f0ede6; 
    --card-bg: #ffffff;
    --text-main: #2b2b2b;
    --text-muted: #595959;
    --border-radius: 12px;
}

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

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    font-size: 18px; 
    -webkit-font-smoothing: antialiased;
    background-image: url('data:image/svg+xml,%3Csvg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="none" fill-rule="evenodd"%3E%3Cg fill="%23d6d2c4" fill-opacity="0.4"%3E%3Cpath d="M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z"/%3E%3C/g%3E%3C/g%3E%3C/svg%3E'); 
}

/* =========================================================
   НАВИГАЦИОННОЕ МЕНЮ
========================================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    background-color: rgba(27, 38, 30, 0.95);
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0,0,0,0.4);
    transition: padding 0.3s ease;
}

.navbar .logo {
    color: var(--hunter-orange);
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    text-decoration: none;
    position: relative;
    z-index: 1002;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 35px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    transition: color 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links a:hover {
    color: var(--hunter-orange);
}

.hamburger {
    display: none;
    cursor: pointer;
    z-index: 1002;
}

.hamburger .bar {
    display: block;
    width: 28px;
    height: 3px;
    margin: 6px auto;
    transition: all 0.3s ease-in-out;
    background-color: white;
    border-radius: 3px;
}

/* =========================================================
   ГЛАВНЫЕ ЭКРАНЫ (HERO)
========================================================= */
/* Hero для главной страницы */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-image: linear-gradient(to bottom, rgba(27, 38, 30, 0.5) 0%, rgba(27, 38, 30, 0.95) 100%), 
                      url('img/photo-1448375240586-882707db888b.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    text-align: center;
    padding: 80px 20px 0; 
    border-bottom: 5px solid var(--hunter-orange);
    overflow: hidden;
}

/* Hero для внутренних страниц (Туры, Контакты) */
.hero-section2 {
    position: relative;
    min-height: 10vh; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-image: linear-gradient(to bottom, rgba(27, 38, 30, 0.6) 0%, rgba(27, 38, 30, 0.95) 100%), 
                      url('img/photo-1448375240586-882707db888b.jpg'); 
    background-color: var(--forest-dark);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    text-align: center;
    padding: 120px 20px 60px; 
    border-bottom: 5px solid var(--hunter-orange);
}

.hero-content {
    max-width: 900px;
    z-index: 2;
}

.hero-subtitle {
    display: inline-block;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--hunter-orange);
    margin-bottom: 20px;
    background: rgba(217, 92, 20, 0.15);
    padding: 8px 20px;
    border-radius: 30px;
    border: 1px solid rgba(217, 92, 20, 0.3);
}

.hero-title, .hero-section2 h1 {
    font-family: 'Playfair Display', serif;
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 10px 20px rgba(0,0,0,0.5);
}

.hero-section2 h1 {
    font-size: 3.5rem;
    margin-bottom: 10px;
}

.hero-section2 p {
    color: var(--hunter-orange);
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 4px;
    background: rgba(217, 92, 20, 0.15);
    padding: 8px 25px;
    border-radius: 30px;
    border: 1px solid rgba(217, 92, 20, 0.3);
}

.text-accent {
    color: #e8e3d3;
    font-style: italic;
    font-weight: 400;
}

.hero-divider {
    width: 80px;
    height: 4px;
    background-color: var(--hunter-orange);
    margin: 0 auto 30px auto;
    border-radius: 2px;
}

.hero-desc {
    font-size: 1.4rem;
    font-weight: 400;
    opacity: 0.9;
    margin-bottom: 40px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* =========================================================
   ОСНОВНОЙ КОНТЕЙНЕР И ЗАГОЛОВКИ
========================================================= */
.container {
    max-width: 1200px;
    margin: -40px auto 60px;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

.title-wrapper {
    text-align: center;
    margin-bottom: 50px;
    margin-top: 60px;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--forest-dark);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--hunter-orange);
    margin: 15px auto 0;
    border-radius: 2px;
}

/* =========================================================
   КАТАЛОГ (ГЛАВНАЯ СТРАНИЦА)
========================================================= */
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 40px;
}

.card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0,0,0,0.05);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    border-color: var(--hunter-orange);
}

.card-img-wrapper {
    position: relative;
    height: 420px;
    overflow: hidden;
    background-color: var(--forest-dark);
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    opacity: 0.85;
    object-position: center 35%;
}

.card:hover .card-img {
    transform: scale(1.08);
    opacity: 1;
}

.card-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    background: linear-gradient(to bottom, #ffffff, #faf9f7);
}

.card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    color: var(--forest-dark);
    margin-bottom: 15px;
}

.card-desc {
    margin-bottom: 30px;
    flex-grow: 1;
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* =========================================================
   СТРАНИЦА ТУРА
========================================================= */
.tour-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: start;
}

.tour-main-content {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.05);
}

.tour-main-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--forest-dark);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0ede6;
}

.tour-main-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--forest-green);
    margin: 35px 0 15px;
}

.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 35px;
}

.info-card {
    background-color: var(--bg-color);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    border-bottom: 3px solid var(--hunter-orange);
}

.info-card .icon {
    font-size: 2rem;
    margin-bottom: 10px;
    display: block;
}

.info-card .label {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.info-card .value {
    font-weight: 700;
    color: var(--forest-dark);
    font-size: 1.2rem;
}

.lists-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 35px;
}

.tour-list {
    list-style: none;
}

.tour-list li {
    position: relative;
    padding-left: 35px;
    margin-bottom: 12px;
    font-size: 1.05rem;
    color: var(--text-muted);
}

.list-included li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: #27ae60;
    font-weight: bold;
    font-size: 1.2rem;
}

.list-excluded li::before {
    content: '✕';
    position: absolute;
    left: 0;
    top: 0;
    color: #e74c3c;
    font-weight: bold;
    font-size: 1.2rem;
}

.tour-text-block {
    background: rgba(217, 92, 20, 0.05);
    border-left: 4px solid var(--hunter-orange);
    padding: 20px;
    margin-bottom: 25px;
    border-radius: 0 8px 8px 0;
}

.tour-text-block p {
    margin-bottom: 10px;
}
.tour-text-block p:last-child {
    margin-bottom: 0;
}

/* Сайдбар с ценой (справа) */
.tour-sidebar {
    background-color: var(--forest-dark);
    color: white;
    border-radius: var(--border-radius);
    padding: 35px 30px;
    position: sticky;
    top: 100px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    border-top: 5px solid var(--hunter-orange);
}

.price-block {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.price-label {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #d6d2c4;
    margin-bottom: 10px;
    display: block;
}

.price-value {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    color: var(--hunter-orange);
    line-height: 1;
    margin-bottom: 5px;
}

.price-sub {
    font-size: 0.9rem;
    color: #a0a0a0;
}

.booking-rules {
    font-size: 0.95rem;
    color: #d6d2c4;
    margin-bottom: 30px;
}

.booking-rules li {
    margin-bottom: 15px;
    padding-left: 20px;
    position: relative;
    list-style: none;
}

.booking-rules li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--hunter-orange);
}

/* =========================================================
   СТРАНИЦА КОНТАКТОВ
========================================================= */
.section-desc {
    text-align: center;
    color: var(--text-muted);
    margin-top: 15px;
    font-size: 1.1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

.contact-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    border-color: var(--hunter-orange);
}

.card-icon {
    font-size: 2.5rem;
    width: 80px;
    height: 80px;
    background-color: var(--forest-dark);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-bottom: 25px;
    box-shadow: 0 8px 20px rgba(27, 38, 30, 0.2);
}

.contact-card .card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    color: var(--forest-dark);
    margin-bottom: 10px;
}

.contact-card .card-desc {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 20px;
    flex-grow: 1; 
}

.contact-link {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--hunter-orange);
    text-decoration: none;
    margin-bottom: 15px;
    transition: color 0.3s;
}

.contact-link:hover {
    color: var(--forest-green);
}

.time-text {
    margin-top: 15px;
    font-weight: 600;
    color: var(--forest-dark);
}

.messengers {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    width: 100%;
}

.messenger-btn {
    flex: 1;
    padding: 12px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    color: white;
    transition: opacity 0.3s;
}

.messenger-btn:hover {
    opacity: 0.8;
}

.messenger-btn.wa { background-color: #25D366; }
.messenger-btn.tg { background-color: #0088cc; }

.btn-small {
    padding: 12px 20px;
    font-size: 1rem;
    width: 100%;
}
.map-link-wrapper {
    width: 100%;
    margin-top: 10px;
}

/* =========================================================
   КНОПКИ, ПОДВАЛ И ПРОЧЕЕ
========================================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--hunter-orange);
    color: white;
    text-decoration: none;
    padding: 18px 25px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 2px solid var(--hunter-orange);
    text-transform: uppercase;
    letter-spacing: 1px;
    width: 100%;
    cursor: pointer;
}

/* Анимация стрелки для кнопок в каталоге */
.card-content .btn::after {
    content: '→';
    margin-left: 10px;
    font-size: 1.3rem;
    transition: transform 0.3s ease;
}

.btn:hover {
    background-color: transparent;
    color: var(--hunter-orange);
}

.card-content .btn:hover::after {
    transform: translateX(5px);
}

footer {
    background-color: var(--forest-dark);
    color: #d6d2c4;
    text-align: center;
    padding: 40px 20px;
    margin-top: 60px;
    border-top: 4px solid var(--forest-green);
}

/* Индикатор скролла для главной страницы */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.scroll-indicator:hover {
    opacity: 1;
}

.scroll-indicator span {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 10px;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid white;
    border-radius: 15px;
    position: relative;
}

.mouse::before {
    content: '';
    width: 4px;
    height: 8px;
    background: white;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 4px;
    animation: scrollWheel 2s infinite;
}

/* =========================================================
   АНИМАЦИИ
========================================================= */
@keyframes scrollWheel { 0% { top: 24px; opacity: 1; } 100% { top: 8px; opacity: 0; } }
.fade-in-down { animation: fadeInDown 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }
.fade-in-up { animation: fadeInUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; opacity: 0; }
.hero-title { animation-delay: 0.2s; }
.hero-divider { animation-delay: 0.4s; }
.hero-desc { animation-delay: 0.6s; }
.scroll-indicator { animation-delay: 1.5s; animation-name: fadeIn; opacity: 0; animation-fill-mode: forwards; }
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 0.7; } }

/* =========================================================
   УНИВЕРСАЛЬНАЯ МОБИЛЬНАЯ АДАПТАЦИЯ (Для всех страниц)
========================================================= */
@media (max-width: 850px), (max-height: 600px) and (orientation: landscape) {
    /* Навигация */
    .navbar {
        padding: 10px 20px;
        background-color: var(--forest-dark);
    }
    .hamburger { display: block; }
    .nav-links {
        position: fixed;
        right: -100%; 
        top: 0;
        flex-direction: column;
        justify-content: center; 
        align-items: center;     
        background-color: var(--forest-dark);
        width: 100%;             
        height: 100vh;
        padding: 0 20px;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        z-index: 1001;
    }
    .nav-links.active { right: 0; }
    .nav-links li {
        margin: 12px 0;
        width: 100%;
        text-align: center;
    }
    .nav-links a {
        font-size: 1.4rem;
        display: block;
        padding: 10px;
    }
    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(9px) rotate(45deg); }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

    /* Главные экраны */
    .hero-section {
        min-height: auto; 
        padding: 120px 20px 120px; 
    }
    .hero-title { font-size: 2.2rem; margin-bottom: 15px; }
    .hero-section2 h1 { font-size: 2.2rem; }
    .hero-desc { font-size: 1.1rem; margin-bottom: 20px; }
    .section-title { font-size: 2rem; }
    
    /* Сетки и компоненты */
    .catalog-grid { grid-template-columns: 1fr; }
    
    /* Страница Тура */
    .tour-layout { grid-template-columns: 1fr; }
    .tour-main-content { padding: 25px 20px; }
    .lists-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .tour-sidebar {
        position: static;
        margin-top: 20px;
    }

    /* Страница Контактов */
    .contact-card { padding: 30px 20px; }
    .card-icon {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }
    .contact-link { font-size: 1.25rem; }

    /* Оптимизация индикатора скролла */
    .scroll-indicator {
        bottom: 15px; 
        transform: translateX(-50%) scale(0.8); 
    }
}