/* ==========================================================================
   Глобальные переменные и сброс (ОРАНЖЕВАЯ ТЕМА)
   ========================================================================== */

:root {
    /* Оранжевая цветовая система */
    --primary-color: #f39200;
    --primary-light: #ffaa33;
    --primary-dark: #cc7a00;
    --secondary-color: #ff6f00;
    --accent-color: #f39200;
    --success-color: #4cc9f0;
    --warning-color: #ff9100;
    --danger-color: #e63946;
    
    /* Градиенты в оранжевых тонах */
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --gradient-accent: linear-gradient(135deg, #ff9100, #ffaa00);
    --gradient-dark: linear-gradient(135deg, #1a1a2e, #16213e);
    --gradient-light: linear-gradient(135deg, #fef6e6, #fff3e0);
    --gradient-orange: linear-gradient(135deg, #ff9100, #ff6f00);
    --gradient-warm: linear-gradient(135deg, #fff3e0, #ffe0b2);
    
    /* Оттенки с теплым оттенком */
    --gray-50: #fefaf6;
    --gray-100: #fdf6f0;
    --gray-200: #f8f0e6;
    --gray-300: #e8d9c8;
    --gray-400: #d4bfa8;
    --gray-500: #8b7a66;
    --gray-600: #6d5c4a;
    --gray-700: #4d4030;
    --gray-800: #332a20;
    --gray-900: #1f1914;
    
    /* Тени с оранжевым отливом */
    --shadow-xs: 0 1px 3px rgba(243, 146, 0, 0.05);
    --shadow-sm: 0 4px 6px -1px rgba(243, 146, 0, 0.1), 0 2px 4px -1px rgba(243, 146, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(243, 146, 0, 0.1), 0 4px 6px -2px rgba(243, 146, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(243, 146, 0, 0.1), 0 10px 10px -5px rgba(243, 146, 0, 0.04);
    --shadow-xl: 0 25px 50px -12px rgba(243, 146, 0, 0.25);
    --shadow-primary: 0 10px 30px rgba(243, 146, 0, 0.3);
    --shadow-accent: 0 10px 30px rgba(255, 145, 0, 0.4);
    
    /* Скругления */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-2xl: 28px;
    --radius-full: 9999px;
    
    /* Анимации */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 500ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
    
    /* Размеры */
    --header-height: 80px;
    --container-width: 1280px;
    --section-padding: 120px 0;
}

/* Сброс и базовые стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 20px);
}

body {
    font-family: 'Inter', 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--gray-800);
    line-height: 1.7;
    background-color: var(--gray-50);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.loading {
    overflow: hidden;
}

/* Контейнеры */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Анимации появления */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Градиентный текст */
.gradient-text {
    background: var(--gradient-orange);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

/* ==========================================================================
   Прелоадер
   ========================================================================== */

.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-dark);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity var(--transition-slow), visibility var(--transition-slow);
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader {
    position: relative;
    width: 200px;
    height: 200px;
}

.loader-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    animation: loader-spin 2s linear infinite;
}

.loader-ring:nth-child(1) {
    border: 4px solid transparent;
    border-top-color: var(--primary-color);
    animation-delay: 0s;
}

.loader-ring:nth-child(2) {
    border: 4px solid transparent;
    border-top-color: var(--accent-color);
    animation-delay: 0.5s;
}

.loader-ring:nth-child(3) {
    border: 4px solid transparent;
    border-top-color: #ffcc80;
    animation-delay: 1s;
}

.loader-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: 500;
    letter-spacing: 1px;
}

@keyframes loader-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ==========================================================================
   Шапка
   ========================================================================== */

/* Переменные */
:root {
    --header-height: 80px;
    --gradient-orange: linear-gradient(135deg, #f39200 0%, #f5a623 100%);
    --transition-base: 0.3s ease;
    --primary-color: #f39200;
    --gray-600: #666;
    --gray-700: #333;
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
    --radius-full: 999px;
    --container-width: 1400px;
}

/* Базовые стили шапки */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    background: rgba(255, 248, 240, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(243, 146, 0, 0.1);
    transition: all var(--transition-base);
}

.header.scrolled {
    height: 70px;
    background: rgba(255, 248, 240, 0.98);
    box-shadow: var(--shadow-md);
    border-bottom-color: rgba(243, 146, 0, 0.2);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 24px;
    max-width: var(--container-width);
    margin: 0 auto;
}

/* Логотип */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: transform var(--transition-base);
    height: 80px;
}

.logo:hover {
    transform: translateY(-2px);
}

.logo-img {
    height: 80px;
    width: auto;
    filter: drop-shadow(0 4px 6px rgba(243, 146, 0, 0.2));
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    font-weight: 800;
    background: var(--gradient-orange);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1;
}

.logo-subtitle {
    font-size: 0.75rem;
    color: var(--gray-600);
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Бургер-кнопка (десктоп скрыта, в мобильной версии будет видна) */
.burger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 22px;
    cursor: pointer;
    z-index: 1010;
    background: none;
    border: none;
}

.burger span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: #2c3e50;
    border-radius: 4px;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Десктопная навигация */
.nav-menu {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 32px;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-link {
    position: relative;
    text-decoration: none;
    color: var(--gray-700);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 8px 0;
    transition: color var(--transition-base);
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-orange);
    border-radius: var(--radius-full);
    transition: width var(--transition-base);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link:hover::before,
.nav-link.active::before {
    width: 100%;
}

.nav-link i {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* ==========================================================================
   Кнопки
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: var(--radius-lg);
    font-weight: 600;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    isolation: isolate;
    font-size: 0.95rem;
    min-height: 52px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
    z-index: 1;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn:active {
    transform: translateY(-1px);
}

.btn-primary {
    background: var(--gradient-orange);
    color: var(--gray-900);
    box-shadow: var(--shadow-primary);
    font-weight: 700;
}

.btn-primary:hover {
    box-shadow: var(--shadow-xl), var(--shadow-primary);
    background: var(--gradient-accent);
}

.btn-secondary {
    background: var(--gradient-accent);
    color: white;
    box-shadow: var(--shadow-accent);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-dark);
    color: white;
    border-color: var(--primary-dark);
}

.btn-glass {
    background: rgba(255, 248, 240, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(243, 146, 0, 0.3);
    color: #ffcc80;
}

.btn-glass:hover {
    background: rgba(243, 146, 0, 0.2);
    border-color: rgba(243, 146, 0, 0.4);
    color: white;
}

.btn-sm {
    padding: 10px 20px;
    min-height: 40px;
    font-size: 0.875rem;
}

.btn-icon i {
    transition: transform var(--transition-base);
}

.btn:hover .btn-icon i {
    transform: translateX(4px);
}

/* ==========================================================================
   Секции
   ========================================================================== */

section {
    padding: var(--section-padding);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-label {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    background: rgba(243, 146, 0, 0.1);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(243, 146, 0, 0.2);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--gray-900);
    line-height: 1.2;
}

.section-subtitle {
    color: var(--gray-600);
    font-size: 1.125rem;
    line-height: 1.7;
}

/* ==========================================================================
   Особенности
   ========================================================================== */

.features-section {
    background: var(--gradient-warm);
    position: relative;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--gray-200);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: rgba(243, 146, 0, 0.1);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--gray-900);
}

.feature-description {
    color: var(--gray-600);
    line-height: 1.7;
}

.feature-decoration {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-orange);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-base);
}

.feature-card:hover .feature-decoration {
    transform: scaleX(1);
}

/* ==========================================================================
   CTA секция
   ========================================================================== */

.cta-section {
    background: var(--gradient-orange);
    color: var(--gray-900);
    position: relative;
    overflow: hidden;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.cta-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--gray-900);
}

.cta-description {
    font-size: 1.125rem;
    opacity: 0.9;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    color: var(--gray-800);
}

.cta-form {
    max-width: 500px;
    margin: 0 auto 2rem;
}

.form-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.cta-form input {
    flex: 1;
    padding: 16px 20px;
    border: none;
    border-radius: var(--radius-lg);
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.9);
    color: var(--gray-900);
    border: 2px solid transparent;
    transition: all var(--transition-base);
}

.cta-form input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 0 3px rgba(243, 146, 0, 0.2);
}

.cta-form input::placeholder {
    color: var(--gray-500);
}

.form-note {
    font-size: 0.875rem;
    opacity: 0.8;
    color: var(--gray-800);
}

.cta-decoration {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
    font-size: 2rem;
    opacity: 0.3;
    color: var(--gray-900);
}

.cta-decoration i {
    animation: float 3s ease-in-out infinite;
}

.cta-decoration i:nth-child(2) {
    animation-delay: 0.5s;
}

.cta-decoration i:nth-child(3) {
    animation-delay: 1s;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ==========================================================================
   Отзывы
   ========================================================================== */

.reviews-section {
    background: white;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.review-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-100);
    transition: all var(--transition-base);
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.review-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-light);
}

.author-info h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
    color: var(--gray-900);
}

.author-meta {
    font-size: 0.875rem;
    color: var(--gray-500);
}

.review-rating {
    color: #ffb74d;
    font-size: 0.875rem;
}

.review-text {
    color: var(--gray-700);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.review-date {
    font-size: 0.875rem;
    color: var(--gray-500);
}

/* ==========================================================================
   Популярные маршруты + Маршруты
   ========================================================================== */

.popular-routes {
    padding: 80px 0;
    background: linear-gradient(135deg, #1f1914 0%, #332a20 100%);
    position: relative;
    overflow: hidden;
}

.popular-routes::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1200px;
    height: 1200px;
    opacity: 0.03;
    pointer-events: none;
    border-radius: 50%;
    border: 1px solid rgba(243, 146, 0, 0.05);
    background: radial-gradient(circle, transparent 30%, rgba(243, 146, 0, 0.02) 70%);
}

.popular-routes .section-header {
    text-align: center;
    margin-top: 60px;
    position: relative;
    z-index: 2;
}

.popular-routes .section-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    color: white;
    margin-bottom: 15px;
    line-height: 1.2;
}

.popular-routes .section-subtitle {
    color: rgba(255, 248, 240, 0.9);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
}

.popular-routes .routes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 30px;
    margin-top: 50px;
    position: relative;
    z-index: 2;
}

.popular-routes .route-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(243, 146, 0, 0.1);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.popular-routes .route-card:hover {
    transform: translateY(-8px);
    border-color: rgba(243, 146, 0, 0.3);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(243, 146, 0, 0.2);
}

.popular-routes .route-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.popular-routes .route-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.popular-routes .route-card:hover .route-image img {
    transform: scale(1.05);
}

.popular-routes .route-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), transparent);
    z-index: 1;
}

.popular-routes .route-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.popular-routes .route-tags {
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    gap: 8px;
    z-index: 10;
    align-items: flex-start;
}

.popular-routes .tag {
    background: var(--accent-color);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    border: 2px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(243, 146, 0, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.popular-routes .tag-popular {
    background: linear-gradient(135deg, #f39200 0%, #ff6b00 100%);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 107, 0, 0.4);
}

/* ==========================================================================
   Бейдж формата экскурсии (Сборная / Индивидуальная)
   ========================================================================== */

.popular-routes .tag-format-group {
    background: linear-gradient(135deg, #6d5c4a 0%, #4d4030 100%);
    color: #ffcc80;
    border: 2px solid rgba(255, 204, 128, 0.4);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(109, 92, 74, 0.5);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.popular-routes .tag-format-individual {
    background: linear-gradient(135deg, #6d5c4a 0%, #4d4030 100%);
    color: #ffcc80;
    border: 2px solid rgba(255, 204, 128, 0.4);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(109, 92, 74, 0.5);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.popular-routes .tag-format-group i,
.popular-routes .tag-format-individual i {
    font-size: 11px;
    opacity: 0.95;
}

.popular-routes .route-title {
    font-family: 'Manrope', sans-serif;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    color: white;
    line-height: 1.4;
}

.popular-routes .route-description {
    color: rgba(255, 248, 240, 0.9);
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 14px;
    flex: 1;
}

.popular-routes .route-details {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(243, 146, 0, 0.1);
}

.popular-routes .detail {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 248, 240, 0.8);
    font-size: 13px;
}

.popular-routes .detail i {
    color: #f39200;
}

.popular-routes .route-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.popular-routes .price {
    font-family: 'Inter', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #f39200;
}

.popular-routes .price span {
    font-size: 14px;
    color: rgba(255, 248, 240, 0.7);
    font-weight: 400;
}

.popular-routes .route-btn {
    background: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
    border: 2px solid var(--primary-color);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(243, 146, 0, 0.3);
}

.popular-routes .route-btn:hover {
    background: var(--primary-dark);
    color: white;
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(243, 146, 0, 0.4);
    gap: 12px;
}

.popular-routes .route-btn i {
    transition: transform 0.3s ease;
}

.popular-routes .route-btn:hover i {
    transform: translateX(5px);
}

.popular-routes .no-routes {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: rgba(255, 248, 240, 0.8);
    font-size: 18px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 2px dashed rgba(243, 146, 0, 0.2);
    backdrop-filter: blur(10px);
}

.popular-routes .all-routes-link {
    text-align: center;
    margin-top: 50px;
    position: relative;
    z-index: 2;
}

.popular-routes .view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--primary-color);
    color: white;
    padding: 15px 30px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(243, 146, 0, 0.3);
    border: 2px solid var(--primary-color);
}

.popular-routes .view-all-btn:hover {
    background: var(--primary-dark);
    color: white;
    border-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(243, 146, 0, 0.4);
    gap: 15px;
}

.popular-routes .view-all-btn i {
    transition: transform 0.3s ease;
}

.popular-routes .view-all-btn:hover i {
    transform: translateX(5px);
}

/* ==========================================================================
   Новости и события
   ========================================================================== */

.news-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #fef6e6 0%, #fff3e0 100%);
    position: relative;
}

.news-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(243, 146, 0, 0.3), transparent);
}

.news-section .section-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
}

.news-section .section-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 15px;
    line-height: 1.2;
    background: var(--gradient-orange);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.news-section .section-subtitle {
    color: var(--gray-700);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
    font-weight: 500;
}

.news-section .news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.news-section .news-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(243, 146, 0, 0.1);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.news-section .news-card:hover {
    transform: translateY(-8px);
    border-color: rgba(243, 146, 0, 0.3);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(243, 146, 0, 0.2);
}

.news-section .news-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.news-section .news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.news-section .news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-section .news-category {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 10;
}

.news-section .news-category span {
    background: rgba(243, 146, 0, 0.9);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    border: 2px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.news-section .news-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-section .news-date {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gray-500);
    font-size: 14px;
    margin-bottom: 15px;
}

.news-section .news-date i {
    color: #f39200;
}

.news-section .news-title {
    font-family: 'Manrope', sans-serif;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--gray-900);
    line-height: 1.4;
}

.news-section .news-description {
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 14px;
    flex: 1;
}

.news-section .news-footer {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid rgba(243, 146, 0, 0.1);
}

.news-section .news-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #f39200;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
    border: 2px solid transparent;
    padding: 8px 0;
    position: relative;
}

.news-section .news-btn:hover {
    gap: 12px;
    color: #ff6f00;
}

.news-section .news-btn:hover i {
    transform: translateX(5px);
}

.news-section .news-btn i {
    transition: transform 0.3s ease;
}

.news-section .no-news {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--gray-500);
    background: rgba(255, 255, 255, 0.5);
    border-radius: 15px;
    border: 2px dashed rgba(243, 146, 0, 0.2);
}

.news-section .no-news i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.3;
    color: #f39200;
}

.news-section .no-news p {
    font-size: 1.125rem;
}

.news-section .all-news-link {
    text-align: center;
    margin-top: 50px;
}

.news-section .view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--primary-color);
    color: white;
    padding: 15px 30px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(243, 146, 0, 0.3);
    border: 2px solid var(--primary-color);
}

.news-section .view-all-btn:hover {
    background: var(--primary-dark);
    color: white;
    border-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(243, 146, 0, 0.4);
    gap: 15px;
}

.news-section .view-all-btn i {
    transition: transform 0.3s ease;
}

.news-section .view-all-btn:hover i {
    transform: translateX(5px);
}

/* ==========================================================================
   Футер
   ========================================================================== */

.footer {
    position: relative;
    background: var(--gray-900);
    color: #ffcc80;
}

.footer-wave {
    position: absolute;
    top: -100px;
    left: 0;
    width: 100%;
    height: 100px;
    color: var(--gray-900);
}

.footer-content {
    padding-top: 4rem;
    padding-bottom: 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.footer-logo img {
    height: 50px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer-logo .logo-title {
    background: linear-gradient(135deg, #ffcc80, #ffb74d);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.footer-logo .logo-subtitle {
    color: rgba(255, 204, 128, 0.7);
}

.footer-description {
    color: rgba(255, 204, 128, 0.7);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: rgba(255, 204, 128, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffcc80;
    text-decoration: none;
    transition: all var(--transition-base);
    border: 1px solid rgba(255, 204, 128, 0.2);
}

.social-link:hover {
    background: var(--primary-color);
    color: var(--gray-900);
    transform: translateY(-3px);
    border-color: var(--primary-color);
}

.footer-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #ffcc80;
}

.footer-menu {
    list-style: none;
}

.footer-menu li {
    margin-bottom: 0.75rem;
}

.footer-menu a {
    color: rgba(255, 204, 128, 0.7);
    text-decoration: none;
    transition: color var(--transition-base);
}

.footer-menu a:hover {
    color: #ffcc80;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255, 204, 128, 0.7);
}

.contact-item i {
    color: var(--primary-color);
}

.subscribe-form {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.subscribe-form input {
    flex: 1;
    padding: 12px 16px;
    border: none;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 204, 128, 0.2);
}

.subscribe-form input::placeholder {
    color: rgba(255, 204, 128, 0.5);
}

.subscribe-form button {
    width: 44px;
    height: 44px;
    padding: 0;
    flex-shrink: 0;
    background: var(--primary-color);
    color: var(--gray-900);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-base);
}

.subscribe-form button:hover {
    background: var(--primary-light);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 204, 128, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.copyright {
    color: #cfb284;
    font-size: 0.875rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: rgba(255, 204, 128, 0.5);
    font-size: 0.875rem;
    text-decoration: none;
    transition: color var(--transition-base);
}

.footer-links a:hover {
    color: #ffcc80;
}

/* ==========================================================================
   Дополнительные элементы
   ========================================================================== */

.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-orange);
    color: var(--gray-900);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-base);
    z-index: 999;
    box-shadow: var(--shadow-primary);
    font-weight: bold;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl), var(--shadow-primary);
}

/* Модальное окно (общее) */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    max-width: 500px;
    width: 90%;
    position: relative;
    transform: translateY(20px);
    transition: transform var(--transition-base);
    border: 2px solid var(--primary-light);
}

.modal.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    border: none;
    background: var(--gray-100);
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
    color: var(--gray-700);
}

.modal-close:hover {
    background: var(--primary-color);
    color: white;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--gray-900);
    background: var(--gradient-orange);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ==========================================================================
   Модальное окно маршрута (добавлено)
   ========================================================================== */

.modal-route {
    max-width: 600px;
    width: 90%;
    background: linear-gradient(135deg, #fff8f0 0%, #fff3e6 100%);
    border-radius: var(--radius-xl);
    padding: 2rem;
    position: relative;
    border: 1px solid rgba(243, 146, 0, 0.3);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(243, 146, 0, 0.2);
}

.modal-route-title {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
    color: var(--gray-900);
    background: linear-gradient(135deg, #f39200, #ff6f00);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    padding-right: 2rem;
}

.modal-route-duration {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(243, 146, 0, 0.1);
    padding: 6px 14px;
    border-radius: 40px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

.modal-route-duration i {
    color: #f39200;
}

.modal-route-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: #f39200;
    margin-bottom: 1.5rem;
}

.modal-route-price::before {
    content: "Стоимость: ";
    font-weight: 500;
    color: var(--gray-700);
    font-size: 1rem;
}

.modal-route-description {
    color: var(--gray-700);
    line-height: 1.7;
    margin-bottom: 2rem;
    font-size: 1rem;
    max-height: 300px;
    overflow-y: auto;
    padding-right: 8px;
}

.modal-route-description::-webkit-scrollbar {
    width: 4px;
}

.modal-route-description::-webkit-scrollbar-track {
    background: rgba(243, 146, 0, 0.1);
    border-radius: 4px;
}

.modal-route-description::-webkit-scrollbar-thumb {
    background: #f39200;
    border-radius: 4px;
}

.modal-book-btn {
    width: 100%;
    justify-content: center;
    background: linear-gradient(135deg, #f39200, #ff6f00);
    border: none;
    font-size: 1rem;
    padding: 12px;
}

/* Адаптация для мобильных (модалка маршрута) */
@media (max-width: 640px) {
    .modal-route {
        padding: 1.5rem;
        width: 95%;
    }
    
    .modal-route-title {
        font-size: 1.4rem;
    }
    
    .modal-route-price {
        font-size: 1.25rem;
    }
    
    .modal-route-description {
        font-size: 0.9rem;
        max-height: 250px;
    }
}

/* ==========================================================================
   Адаптивность – полная версия для мобильных
   ========================================================================== */

@media (max-width: 1024px) {
    :root {
        --section-padding: 80px 0;
    }
    
    .popular-routes .routes-grid,
    .news-section .news-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }

    .container {
        padding: 0 20px;
    }

    /* ===== БУРГЕР-МЕНЮ (НОВЫЙ ДИЗАЙН) ===== */
    .burger {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 24px;
        cursor: pointer;
        z-index: 1010;
        background: none;
        border: none;
        padding: 0;
    }

    .burger span {
        display: block;
        height: 3px;
        width: 100%;
        background: var(--primary-dark);
        border-radius: 4px;
        transition: all 0.25s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    }

    .burger.active span:nth-child(1) {
        transform: translateY(10px) rotate(45deg);
    }

    .burger.active span:nth-child(2) {
        opacity: 0;
        transform: scaleX(0.7);
    }

    .burger.active span:nth-child(3) {
        transform: translateY(-10px) rotate(-45deg);
    }

    /* Мобильная навигация (панель) */
    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background: rgba(31, 25, 20, 0.98);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding: 2rem 1.5rem;
        transform: translateX(100%);
        transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
        z-index: 999;
        overflow-y: auto;
        border-radius: 0;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
    }

    .nav-menu.show-menu {
        transform: translateX(0);
    }

    .nav-list {
        flex-direction: column;
        align-items: stretch;
        justify-content: center;
        gap: 0;
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
        padding: 0;
    }

    .nav-list li {
        width: 100%;
        margin: 0;
        opacity: 0;
        transform: translateX(20px);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    .nav-menu.show-menu .nav-list li {
        opacity: 1;
        transform: translateX(0);
    }

    .nav-menu.show-menu .nav-list li:nth-child(1) { transition-delay: 0.05s; }
    .nav-menu.show-menu .nav-list li:nth-child(2) { transition-delay: 0.1s; }
    .nav-menu.show-menu .nav-list li:nth-child(3) { transition-delay: 0.15s; }
    .nav-menu.show-menu .nav-list li:nth-child(4) { transition-delay: 0.2s; }
    .nav-menu.show-menu .nav-list li:nth-child(5) { transition-delay: 0.25s; }

    .nav-link {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 14px;
        padding: 16px 20px;
        font-size: 1.2rem;
        font-weight: 500;
        color: #fff;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 16px;
        margin-bottom: 12px;
        transition: all 0.2s ease;
        border: 1px solid rgba(243, 146, 0, 0.2);
        backdrop-filter: blur(4px);
        text-decoration: none;
        outline: none;
    }

    /* Убираем оранжевую полоску под кнопками в мобильной версии */
    .nav-link::before {
        display: none;
    }

    /* Сдвиг только при наведении, активная кнопка без сдвига */
    .nav-link:hover {
        background: rgba(243, 146, 0, 0.2);
        border-color: rgba(243, 146, 0, 0.5);
        color: #fff;
        transform: translateX(8px);
    }

    .nav-link.active {
        background: rgba(243, 146, 0, 0.2);
        border-color: rgba(243, 146, 0, 0.5);
        color: #fff;
        /* transform отсутствует */
    }

    .nav-link i {
        width: 28px;
        font-size: 1.3rem;
        color: var(--primary-light);
        transition: transform 0.2s;
    }

    .nav-link span {
        flex: 1;
        text-align: left;
    }

    .nav-link:hover i,
    .nav-link.active i {
        transform: scale(1.05);
        color: #ffaa33;
    }

    .nav-link:focus-visible {
        outline: 2px solid var(--primary-color);
        outline-offset: 2px;
        background: rgba(243, 146, 0, 0.3);
    }

    /* Остальные адаптивные правки */
    .popular-routes .routes-grid,
    .news-section .news-grid {
        grid-template-columns: 1fr;
    }

    .popular-routes,
    .news-section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .form-group {
        flex-direction: column;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }

    .hero-stats .stat-number {
        font-size: 2rem;
    }

    .mobile-menu-btn {
        display: none;
    }
}

@media (max-width: 480px) {
    .btn {
        width: 100%;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .popular-routes .route-content,
    .news-section .news-content {
        padding: 20px;
    }
    
    .popular-routes .route-footer {
        flex-direction: column;
        gap: 20px;
        align-items: stretch;
    }
    
    .popular-routes .route-btn {
        justify-content: center;
    }
    
    .news-section .news-image {
        height: 200px;
    }
    
    .news-section .news-title {
        font-size: 18px;
    }
    
    .news-section .news-description {
        font-size: 13px;
    }
}





/* ==========================================================================
   1. Резервируем высоту под заголовок — 3 строки
   (сам заголовок НЕ обрезаем, только добавляем место снизу)
   ========================================================================== */

.popular-routes .route-title,
.news-section .news-title {
    /* line-height: 1.4, font-size: 20px → одна строка = 1.4em */
    min-height: calc(1.4em * 3);
    margin-bottom: 15px;
}

/* ==========================================================================
   2. Описание — ровно 3 строки видимые, с возможностью развернуть
   ========================================================================== */

.popular-routes .route-description,
.news-section .news-description {
    display: -webkit-box;
    -webkit-line-clamp: 3;
            line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: calc(1.6em * 3);
    transition: min-height 0.35s ease;
}

.popular-routes .route-description.expanded,
.news-section .news-description.expanded {
    display: block;
    -webkit-line-clamp: unset;
            line-clamp: unset;
    overflow: visible;
    min-height: 0;
}

/* ==========================================================================
   3. Карточки не растягиваются друг под друга
   ========================================================================== */

.popular-routes .routes-grid,
.news-section .news-grid {
    align-items: start;
}

.popular-routes .route-card,
.news-section .news-card {
    height: auto;
    align-self: start;
}

/* Контент — flex-колонка, чтобы футер всегда прижимался к низу */
.popular-routes .route-content,
.news-section .news-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* ==========================================================================
   4. Кнопка "Читать дальше"
   ========================================================================== */

.read-more-btn {
    background: none;
    border: none;
    color: var(--primary-color, #f39200);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    padding: 6px 0;
    margin-bottom: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 32px;
    transition: color 0.25s ease;
}

.read-more-btn:hover {
    color: var(--primary-dark, #cc7a00);
}

.read-more-btn::after {
    content: '▾';
    display: inline-block;
    transition: transform 0.25s ease;
    font-size: 12px;
}

.read-more-btn.expanded::after {
    transform: rotate(180deg);
}