:root {
	--primary-color: #0067a5;
	--primary-dark: #005a8f;
	--secondary-color: #d3ff3a;
	--light-color: #F5F9FA;
	--dark-color: #434750;
	--text-color: #455A64;
	--border-radius: 16px;
	--box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
	--highlight-color: #d3ff3a;
	--blue-shadow: 0 0 10px rgba(0, 103, 165, 0.4);
	--blue-shadow-intense: 0 0 15px rgba(0, 103, 165, 0.7);
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: 'Montserrat', sans-serif;
	color: var(--text-color);
	background-color: #fff;
	line-height: 1.6;
	overflow-x: hidden;
}

a {
	text-decoration: none;
	color: var(--primary-dark);
	transition: all 0.3s ease;
}

a:hover {
	color: var(--secondary-color);
}

.container {
	width: 90%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 15px;
}
        
        /* Page header */
.page-header {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), 
               url('../picture/blogg.avif') 
               no-repeat center center/cover;
    background-attachment: scroll; /* Важно для мобильных */
    background-size: cover;
    background-position: center;
    color: white;
    padding: 80px 0;
    margin-bottom: 40px;
    text-align: center;
}

/* Улучшенная мобильная версия */
@media (max-width: 768px) {
    .page-header {
        padding: 60px 0;
        min-height: 250px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
}
        
        .page-header h1 {
            font-size: 2.5rem;
            margin-bottom: 15px;
            text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
        }

        .book-now-btn {
            display: inline-block;
            padding: 12px 30px;
            background-color: var(--secondary-color);
            color: var(--dark-color);
            border-radius: 30px;
            font-weight: 600;
            text-transform: uppercase;
            transition: all 0.3s ease;
            border: none;
            cursor: pointer;
            box-shadow: var(--blue-shadow);
            text-decoration: none;
        }
        
        .book-now-btn:hover {
            background-color: #c4e635;
            transform: translateY(-3px);
            box-shadow: 0 5px 15px rgba(211, 255, 58, 0.5);
        }
        
        /* Blog grid */
        .blog-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 30px;
            margin-bottom: 50px;
        }
        
        .blog-card {
            background: white;
            border-radius: var(--border-radius);
            overflow: hidden;
            box-shadow: var(--box-shadow);
            transition: transform 0.3s ease;
            display: flex;
            flex-direction: column;
        }

        .blog-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
        }

        .blog-card-image-container {
            height: 200px;
            overflow: hidden;
            position: relative;
        }
        
        .blog-card-image-container img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: center 30%;
            transition: transform 0.3s ease;
        }
        
        .blog-card:hover .blog-card-image-container img {
            transform: scale(1.1);
        }
        
        .blog-content {
            padding: 20px;
            display: flex;
            flex-direction: column;
            flex-grow: 1;
        }
        
        .blog-title {
            font-size: 1.3rem;
            margin-bottom: 10px;
            color: var(--dark-color);
        }
        
        .blog-date {
            color: var(--primary-color);
            font-weight: 600;
            margin-bottom: 15px;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        
        .blog-description {
            color: var(--text-color);
            margin-bottom: 20px;
            line-height: 1.6;
            flex-grow: 1;
        }
        
        .blog-footer {
            margin-top: auto;
        }
        
        .btn-read {
            display: block;
            background-color: var(--primary-color);
            color: white;
            padding: 12px;
            border-radius: 30px;
            text-decoration: none;
            font-weight: 600;
            text-align: center;
            transition: all 0.3s ease;
            border: none;
            cursor: pointer;
            width: 100%;
            box-shadow: var(--blue-shadow);
        }
        
        .btn-read:hover {
            background-color: var(--primary-dark);
            transform: translateY(-3px);
            box-shadow: 0 5px 15px rgba(211, 255, 58, 0.5);
        }
        
        /* Кнопка "Наверх" */
        .back-to-top {
            position: fixed;
            bottom: 90px;
            right: 20px;
            width: 50px;
            height: 50px;
            background-color: var(--primary-color);
            color: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
            box-shadow: var(--blue-shadow);
            cursor: pointer;
            transition: all 0.3s ease;
            z-index: 999;
            opacity: 0;
            visibility: hidden;
        }

        .back-to-top.visible {
            opacity: 1;
            visibility: visible;
        }

        .back-to-top:hover {
            background-color: var(--primary-dark);
            transform: translateY(-5px);
            box-shadow: 0 6px 15px rgba(211, 255, 58, 0.5);
        }

        /* Кнопка "Забронировать тур" */
        .book-now-fixed {
            position: fixed;
            bottom: 20px;
            right: 20px;
            z-index: 1000;
            background: var(--primary-color);
            color: white;
            padding: 15px 25px;
            border-radius: 30px;
            font-weight: 600;
            text-transform: uppercase;
            box-shadow: var(--blue-shadow-intense);
            transition: all 0.2s ease;
            cursor: pointer;
            border: none;
        }

        .book-now-fixed:hover,
        .book-now-fixed:active {
            background: var(--secondary-color);
            color: var(--dark-color) !important;
            transform: translateY(-3px) scale(1.05);
            box-shadow: 0 5px 15px rgba(211, 255, 58, 0.5);
        }

        .book-now-fixed:active {
            transform: scale(1.1) translateY(2px);
            box-shadow: 0 3px 8px rgba(211, 255, 58, 0.7);
        }

        /* Стили для страницы блога */
        .blog-categories {
            display: flex;
            justify-content: center;
            margin-bottom: 30px;
            flex-wrap: wrap;
            gap: 15px;
        }
        
        .category-btn {
            background: var(--light-color);
            border: 1px solid #ddd;
            padding: 8px 15px;
            border-radius: 20px;
            cursor: pointer;
            transition: all 0.3s;
            font-weight: 500;
        }
        
        .category-btn:hover, .category-btn.active {
            background: var(--primary-color);
            color: white;
            border-color: var(--primary-color);
            box-shadow: var(--blue-shadow);
        }
        
        .max-promo {
            background: linear-gradient(135deg, #ffffff, #f0f8ff);
            padding: 35px 25px;
            border-radius: 20px;
            text-align: center;
            margin: 40px auto;
            box-shadow: 0 10px 25px rgba(0, 103, 165, 0.2);
            max-width: 800px;
        }
        
        .max h3 {
            margin-top: 0;
            color: var(--primary-dark);
            margin-bottom: 15px;
            font-size: 1.6rem;
            font-weight: 700;
        }
        
        .max p {
            margin-bottom: 20px;
            color: var(--text-color);
        }
        


        .max-zen {
            display: inline-flex;
            align-items: center;
            padding: 12px 22px;
            border-radius: 30px;
            font-family: Arial, sans-serif;
            font-size: 14px;
            font-weight: bold;
            text-decoration: none;
            color: #ffffff; /* Белый цвет текста и иконки */
            
            /* Официальный градиент MAX */
            background: linear-gradient(135deg, #7B2cBF, #0077B6); 
            transition: background 0.3s ease;
        }

        /* Эффект при наведении */
        .max:hover {
            background: linear-gradient(135deg, #6A1B9A, #0096C7);
        }


        
        /* Модальное окно для статей */
        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.7);
            z-index: 2000;
            align-items: center;
            justify-content: center;
            padding: 20px;
        }
        
        .modal-content {
            background-color: white;
            border-radius: var(--border-radius);
            padding: 30px;
            max-width: 800px;
            width: 90%;
            position: relative;
            box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
            max-height: 90vh;
            overflow-y: auto;
        }
        
        .close-modal {
            position: absolute;
            top: 15px;
            right: 15px;
            font-size: 24px;
            cursor: pointer;
            color: var(--text-color);
            transition: color 0.3s ease;
            background: none;
            border: none;
            width: 30px;
            height: 30px;
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 2001;
        }
        
        .close-modal:hover {
            color: var(--primary-dark);
        }
        
        .modal-title {
            font-size: 1.8rem;
            color: var(--dark-color);
            margin-bottom: 20px;
            padding-right: 40px;
        }
        
        .modal-image {
            width: 100%;
            height: 300px;
            object-fit: cover;
            border-radius: var(--border-radius);
            margin-bottom: 20px;
        }
        
        .details-list {
            list-style-type: none;
            margin-bottom: 25px;
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 15px;
        }
        
        .details-list li {
            margin-bottom: 10px;
            padding-left: 25px;
            position: relative;
        }
        
        .details-list li i {
            position: absolute;
            left: 0;
            top: 3px;
            color: var(--primary-color);
        }
        
        .article-content {
            color: var(--text-color);
            line-height: 1.7;
            margin-bottom: 25px;
        }
        
        .article-content p {
            margin-bottom: 15px;
        }
        
        .article-content ul, .article-content ol {
            margin-left: 20px;
            margin-bottom: 15px;
        }
        
        .article-content li {
            margin-bottom: 8px;
        }
        
        .article-content h3 {
            color: var(--primary-dark);
            margin: 20px 0 10px 0;
            font-size: 1.3rem;
        }
        
        .btn-yandex {
            display: block;
            background-color: #ff0000;
            color: white;
            padding: 15px;
            border-radius: 30px;
            text-decoration: none;
            font-weight: bold;
            text-align: center;
            transition: all 0.3s ease;
            font-size: 1.1rem;
            border: none;
            cursor: pointer;
            width: 100%;
            box-shadow: 0 4px 10px rgba(255, 0, 0, 0.3);
        }
        
        .btn-yandex:hover {
            background-color: #e60000;
            transform: translateY(-3px);
            box-shadow: 0 6px 15px rgba(255, 0, 0, 0.4);
        }

        /* Дополнительные стили для контента */
        .prices p {
            font-weight: 600;
            margin: 10px 0;
        }

        .road-status {
            margin: 20px 0;
        }

        .green { color: green; font-weight: 600; }
        .yellow { color: orange; font-weight: 600; }
        .red { color: red; font-weight: 600; }
        
        /* Адаптивность для мобильных устройств */
        @media (max-width: 992px) {
            .header-container {
                position: relative;
            }
            
            .logo img {
                height: 35px !important;
                max-width: 150px;
            }
            
            .mobile-menu-btn {
                display: block;
                margin-left: auto;
                background: none;
                border: none;
                font-size: 24px;
                color: var(--primary-dark);
                cursor: pointer;
                z-index: 1001;
            }
            
           nav ul {
    position: absolute !important;
    top: 60px !important;
    right: 20px !important;
    left: auto !important;
    bottom: auto !important;
    width: auto !important;
    background-color: rgba(255, 255, 255, 0.98) !important;
    border-radius: var(--border-radius) !important;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15) !important;
    padding: 15px !important;
    display: none !important;
    flex-direction: column !important;
    min-width: 180px;
    max-width: 250px;
    z-index: 1000 !important;
    overflow-y: auto;
    max-height: 80vh;
  }
  
nav ul.show {
    display: flex !important;
  }
  
nav ul li {
    margin: 8px 0 !important;
  }
  
nav ul li a {
    text-align: right !important;
    display: block !important;
    padding: 10px 15px !important;
    border-radius: 8px !important;
    font-size: 16px !important;
    width: 100%;
  }
            
            /* Оверлей для закрытия меню */
            .menu-overlay {
                display: none;
                position: fixed;
                top: 0;
                left: 0;
                width: 100%;
                height: 100%;
                background-color: rgba(0, 0, 0, 0.5);
                z-index: 998;
            }
            
            .menu-overlay.active {
                display: block;
            }
        }

        @media (max-width: 768px) {
            .container {
                width: 95%;
                padding: 0 10px;
            }
            
            .page-header {
                padding: 60px 0;
            }
            
            .page-header h1 {
                font-size: 2rem;
            }
            
            .blog-grid {
                grid-template-columns: 1fr;
            }
            
            .footer-content {
                grid-template-columns: 1fr;
                gap: 20px;
            }
            
            .blog-categories {
                flex-direction: column;
                align-items: center;
            }
            
            .book-now-fixed {
                right: 20px;
                bottom: 20px;
                padding: 12px 20px;
                font-size: 14px;
            }
            
            .max {
                padding: 25px 15px;
                margin: 30px auto;
            }
            
            .max h3 {
                font-size: 1.4rem;
            }
            
            .modal {
                padding: 10px;
            }
            
            .modal-content {
                width: 95%;
                margin: 10px auto;
                padding: 15px;
                max-height: 85vh;
            }
            
            .modal-content img {
                max-width: 100%;
                max-height: 40vh;
                height: auto;
            }
            
            .details-list {
                grid-template-columns: 1fr;
                gap: 10px;
            }
            
            .modal-title {
                font-size: 1.5rem;
                margin-bottom: 15px;
                padding-right: 30px;
            }
            .back-to-top {
                bottom: 20px;
                right: 20px;
                width: 45px;
                height: 45px;
                font-size: 18px;
            }
        }

        @media (max-width: 480px) {
            .header-container {
                padding: 10px 0;
            }
            
            .logo img {
                height: 30px !important;
                max-width: 120px;
            }
            
            .page-header h1 {
                font-size: 1.5rem !important;
            }
            
            .book-now-btn {
                padding: 10px 20px;
                font-size: 14px;
            }
            
            .max {
                padding: 20px 15px;
            }
            
            .max h3 {
                font-size: 1.3rem;
            }
            
            .modal {
                padding: 5px;
            }
            
            .modal-content {
                width: 98%;
                margin: 5px auto;
                padding: 10px;
                max-height: 90vh;
            }
            
            .modal-title {
                font-size: 1.3rem;
                margin-bottom: 10px;
            }
        }

        /* Фиксируем логотип в хедере */
        .logo img {
            height: 40px;
            width: auto;
            max-width: 200px;
            object-fit: contain;
        }

        .site-logo {
            max-height: 50px;
            width: auto;
            object-fit: contain;
        }

        @media (max-width: 768px) {
            .site-logo {
                max-height: 40px;
                display: block;
                margin: 0 auto;
            }
        }
        
        /* Улучшаем прокрутку для всех модальных окон */
        .modal-content {
            max-height: 90vh;
            overflow-y: auto;
            -webkit-overflow-scrolling: touch;
            overscroll-behavior: contain;
        }

        /* Исправление для body при открытом модальном окне */
        body.modal-open {
            overflow: hidden;
        }
        
        /* Блокировка скролла при открытом меню */
        body.menu-open {
            overflow: hidden;
        }

        /* Анимация иконки бургера */
        .mobile-menu-btn .fa-bars {
            transition: transform 0.3s ease;
        }

        .mobile-menu-btn.active .fa-bars {
            transform: rotate(90deg);
        }
        
        .section-title {
            text-align: center;
            margin-bottom: 30px;
             color: var(--primary-dark);
        }