:root {
            --primary: #5d6afb;
            --primary-light: #7987ff;
            --secondary: #ff9e7d;
            --accent: #6cdfcc;
            --dark: #2a2d48;
            --light: #f8f9ff;
            --gray: #6c757d;
            --white: #ffffff;
            --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
            --radius: 12px;
            --transition: all 0.3s ease;
        }
        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        html {
            scroll-behavior: smooth;
        }
        
        body {
            font-family: 'Nunito', sans-serif;
            color: var(--dark);
            line-height: 1.6;
            overflow-x: hidden;
            background-color: var(--light);
        }
        
        h1, h2, h3, h4 {
            font-family: 'Montserrat', sans-serif;
            font-weight: 700;
            line-height: 1.3;
        }
        
        .container {
            width: 100%;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }
        
        section {
            padding: 80px 0;
        }
        
        /* Header */
        header {
            background-color: var(--white);
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            z-index: 1000;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
            padding: 15px 0;
            transition: var(--transition);
        }
        
        .header-container {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .logo {
        font-family: 'Montserrat', sans-serif;
        font-weight: 700;
        color: var(--primary);
        text-decoration: none;
        display: flex;
        align-items: center;
        margin-left: -100px; /* Сдвигаем логотип левее */
    }

.logo img {
    height: 50px; /* Чуть уменьшим высоту */
    width: auto; /* Автоматическая ширина для сохранения пропорций */
    transition: var(--transition);
     /* Добавляем легкую тень */
}

.logo:hover img {
    transform: scale(1.05); /* Легкая анимация при наведении */
}

/* Для мобильных устройств сделаем логотип меньше */
@media (max-width: 768px) {
    .logo img {
        height: 40px; /* Еще меньше на мобильных */
    }
    .logo {
        margin-left: 0; /* Убираем сдвиг на мобильных */
    }
}
        
        .nav-links {
            display: flex;
            list-style: none;
        }
        
        .nav-links li {
            margin-left: 30px;
        }
        
        .nav-links a {
            text-decoration: none;
            color: var(--dark);
            font-weight: 600;
            font-size: 16px;
            transition: var(--transition);
            position: relative;
        }
        
        .nav-links a:hover {
            color: var(--primary);
        }
        
        .nav-links a::after {
            content: '';
            position: absolute;
            bottom: -5px;
            left: 0;
            width: 0;
            height: 2px;
            background-color: var(--primary);
            transition: var(--transition);
        }
        
        .nav-links a:hover::after {
            width: 100%;
        }
        
        .mobile-menu-btn {
            display: none;
            background: none;
            border: none;
            font-size: 24px;
            color: var(--dark);
            cursor: pointer;
        }
        
        /* Back to top button */
        .back-to-top {
            position: fixed;
            bottom: 30px;
            right: 30px;
            width: 50px;
            height: 50px;
            background-color: var(--primary);
            color: white;
            border: none;
            border-radius: 50%;
            display: flex;
            justify-content: center;
            align-items: center;
            font-size: 20px;
            cursor: pointer;
            opacity: 0;
            visibility: hidden;
            transform: translateY(20px);
            transition: var(--transition);
            z-index: 999;
            box-shadow: 0 4px 15px rgba(93, 106, 251, 0.4);
        }
        
        .back-to-top.show {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }
        
        .back-to-top:hover {
            background-color: var(--primary-light);
            transform: translateY(-5px);
        }
        
        /* Hero section */
        .hero {
            min-height: 100vh;
            display: flex;
            align-items: center;
            position: relative;
            overflow: hidden;
            padding-top: 80px;
        }
        
        .hero-bg {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: url('https://images.unsplash.com/photo-1519682577862-22b62b24e493?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80') no-repeat center center;
            background-size: cover;
            opacity: 0.15;
            z-index: -1;
        }
        
        .hero-content {
            max-width: 800px;
            text-align: center;
            margin: 0 auto;
            position: relative;
            z-index: 1;
        }
        
        .hero h1 {
            font-size: 4.5rem;
            color: var(--primary);
            margin-bottom: 20px;
            animation: fadeInDown 1s ease;
        }
        
        .hero h1 span {
            color: var(--secondary);
        }
        
        .hero p {
            font-size: 1.8rem;
            color: var(--dark);
            margin-bottom: 40px;
            animation: fadeInUp 1s ease 0.3s both;
        }
        
        /* About expert */
        .about-expert {
            background-color: var(--white);
        }
        
        .section-title {
            text-align: center;
            margin-bottom: 60px;
            position: relative;
        }
        
        .section-title h2 {
            font-size: 2.8rem;
            color: var(--dark);
            display: inline-block;
            position: relative;
        }
        
        .section-title h2::after {
            content: '';
            position: absolute;
            bottom: -15px;
            left: 50%;
            transform: translateX(-50%);
            width: 80px;
            height: 4px;
            background-color: var(--accent);
            border-radius: 2px;
        }
        
        .expert-content {
            display: flex;
            align-items: center;
            gap: 50px;
        }
        
        .expert-image {
            flex: 1;
            border-radius: var(--radius);
            overflow: hidden;
            box-shadow: var(--shadow);
        }
        
        .expert-image img {
            width: 100%;
            height: auto;
            display: block;
            transition: var(--transition);
        }
        
        .expert-image:hover img {
            transform: scale(1.05);
        }
        
        .expert-info {
            flex: 1;
        }
        
        .expert-name {
            font-size: 2.2rem;
            color: var(--primary);
            margin-bottom: 10px;
        }
        
        .expert-title {
            font-size: 1.2rem;
            color: var(--secondary);
            font-weight: 600;
            margin-bottom: 20px;
        }
        
        .expert-text {
            font-size: 1.1rem;
            color: var(--gray);
            margin-bottom: 25px;
        }
        
        /* Directions */
        .directions {
            background-color: var(--light);
        }
        
        .directions-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            gap: 30px;
            margin-bottom: 40px;
        }
        
        .direction-card {
            background-color: var(--white);
            border-radius: var(--radius);
            padding: 30px;
            box-shadow: var(--shadow);
            transition: var(--transition);
            text-align: center;
        }
        
        .direction-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
        }
        
        .direction-icon {
            width: 70px;
            height: 70px;
            background-color: rgba(93, 106, 251, 0.1);
            border-radius: 50%;
            display: flex;
            justify-content: center;
            align-items: center;
            margin: 0 auto 20px;
            color: var(--primary);
            font-size: 28px;
        }
        
        .direction-card h3 {
            font-size: 1.5rem;
            margin-bottom: 15px;
            color: var(--dark);
        }
        
        .direction-card p {
            color: var(--gray);
        }
        
        .directions-footer {
            text-align: center;
            font-size: 1.2rem;
            color: var(--primary);
            font-weight: 600;
            padding-top: 30px;
            border-top: 1px solid rgba(108, 117, 125, 0.1);
        }
        
        /* Price */
        .price {
            background-color: var(--white);
        }
        
        .price-container {
            max-width: 900px;
            margin: 0 auto;
        }
        
        .price-note {
            text-align: center;
            margin-bottom: 40px;
            color: var(--gray);
            font-style: italic;
        }
        
        .price-category {
            margin-bottom: 50px;
        }
        
        .price-category h3 {
            font-size: 1.8rem;
            color: var(--primary);
            margin-bottom: 25px;
            padding-bottom: 10px;
            border-bottom: 2px solid rgba(93, 106, 251, 0.2);
        }
        
        .price-items {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
            gap: 20px;
        }
        
        .price-item {
            background-color: #f8f9ff;
            padding: 25px;
            border-radius: var(--radius);
            border-left: 5px solid var(--accent);
            transition: var(--transition);
        }
        
        .price-item:hover {
            background-color: rgba(108, 223, 204, 0.05);
            transform: translateX(5px);
        }
        
        .price-item-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 15px;
        }
        
        .price-item-name {
            font-weight: 700;
            font-size: 1.2rem;
            color: var(--dark);
        }
        
        .price-item-cost {
            font-weight: 700;
            font-size: 1.5rem;
            color: var(--primary);
        }
        
        .price-item-details {
            color: var(--gray);
            font-size: 0.95rem;
            margin-bottom: 5px;
        }
        
        .price-item-per {
            color: var(--secondary);
            font-weight: 600;
        }
        
        /* Contacts/Footer */
        footer {
            background-color: var(--dark);
            color: var(--white);
            padding: 80px 0 40px;
        }
        
        .footer-content {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 40px;
            margin-bottom: 60px;
        }
        
        .footer-section h3 {
            font-size: 1.5rem;
            margin-bottom: 25px;
            color: var(--white);
            position: relative;
            display: inline-block;
        }
        
        .footer-section h3::after {
            content: '';
            position: absolute;
            bottom: -8px;
            left: 0;
            width: 40px;
            height: 3px;
            background-color: var(--accent);
        }
        
        .contact-info {
            list-style: none;
        }
        
        .contact-info li {
            margin-bottom: 15px;
            display: flex;
            align-items: center;
        }
        
        .contact-info i {
            margin-right: 12px;
            color: var(--accent);
            width: 20px;
        }
        
        .social-links {
            display: flex;
            gap: 15px;
            margin-top: 20px;
        }
        
        .social-links a {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
            background-color: rgba(255, 255, 255, 0.1);
            border-radius: 50%;
            color: var(--white);
            text-decoration: none;
            transition: var(--transition);
        }
        
        .social-links a:hover {
            background-color: var(--primary);
            transform: translateY(-5px);
        }
        
        .map-container {
            height: 250px;
            border-radius: var(--radius);
            overflow: hidden;
            margin-top: 15px;
        }
        
        .map-container iframe {
            width: 100%;
            height: 100%;
            border: none;
        }
        
        .copyright {
            text-align: center;
            padding-top: 40px;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            color: rgba(255, 255, 255, 0.7);
            font-size: 0.9rem;
        }
        
        /* Animations */
        @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);
            }
        }
        
        /* Responsive */
        @media (max-width: 992px) {
            .hero h1 {
                font-size: 3.5rem;
            }
            
            .hero p {
                font-size: 1.5rem;
            }
            
            .expert-content {
                flex-direction: column;
                text-align: center;
            }
            
            .section-title h2 {
                font-size: 2.4rem;
            }
        }
        
        @media (max-width: 768px) {
            .mobile-menu-btn {
                display: block;
            }
            
            .nav-links {
                position: fixed;
                top: 80px;
                left: 0;
                width: 100%;
                background-color: var(--white);
                flex-direction: column;
                align-items: center;
                padding: 20px 0;
                box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
                transform: translateY(-100%);
                opacity: 0;
                visibility: hidden;
                transition: var(--transition);
            }
            
            .nav-links.active {
                transform: translateY(0);
                opacity: 1;
                visibility: visible;
            }
            
            .nav-links li {
                margin: 15px 0;
            }
            
            .hero h1 {
                font-size: 2.8rem;
            }
            
            .hero p {
                font-size: 1.3rem;
            }
            
            section {
                padding: 60px 0;
            }
        }
        
        @media (max-width: 576px) {
            .hero h1 {
                font-size: 2.2rem;
            }
            
            .hero p {
                font-size: 1.1rem;
            }
            
            .section-title h2 {
                font-size: 2rem;
            }
            
            .price-items {
                grid-template-columns: 1fr;
            }
            
            .footer-content {
                grid-template-columns: 1fr;
                gap: 30px;
            }
        }

/* ДОБАВЬТЕ ЭТО В КОНЕЦ ФАЙЛА styles.css ПОСЛЕ СУЩЕСТВУЮЩИХ МЕДИА-ЗАПРОСОВ */

/* =========================================== */
/* ТАБЛЕТЫ (ПЛАНШЕТЫ) - ОСНОВНЫЕ НАСТРОЙКИ */
/* =========================================== */

/* Планшеты в портретной ориентации (481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
    .container {
        padding: 0 25px;
    }
    
    .hero h1 {
        font-size: 3.2rem;
        line-height: 1.2;
    }
    
    .hero p {
        font-size: 1.6rem;
        padding: 0 20px;
    }
    
    /* Исправляем фотографию эксперта */
    .expert-content {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }
    
    .expert-image {
        flex: none;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .expert-image img {
        max-height: 400px;
        object-fit: cover;
        object-position: top;
    }
    
    .expert-info {
        padding: 0 15px;
    }
    
    .expert-name {
        font-size: 2rem;
    }
    
    .expert-title {
        font-size: 1.3rem;
    }
    
    .expert-text {
        font-size: 1.15rem;
        line-height: 1.7;
    }
    
    /* Направления */
    .directions-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .direction-card {
        padding: 25px 20px;
    }
    
    .direction-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
    
    /* Прайс */
    .price-items {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .price-category h3 {
        font-size: 1.6rem;
    }
    
    /* Футер */
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 35px;
    }
    
    .map-container {
        height: 300px;
    }
    
    /* Уменьшаем отступы секций */
    section {
        padding: 70px 0;
    }
}

/* Планшеты в альбомной ориентации (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        max-width: 900px;
        padding: 0 30px;
    }
    
    .hero h1 {
        font-size: 3.8rem;
    }
    
    .hero p {
        font-size: 1.7rem;
    }
    
    /* Исправляем фотографию эксперта */
    .expert-content {
        gap: 40px;
        align-items: flex-start;
    }
    
    .expert-image {
        flex: 0 0 45%;
        max-width: 45%;
    }
    
    .expert-image img {
        max-height: 450px;
        object-fit: cover;
        object-position: top;
    }
    
    .expert-info {
        flex: 0 0 55%;
        padding-right: 10px;
    }
    
    .expert-name {
        font-size: 2.3rem;
    }
    
    .expert-title {
        font-size: 1.3rem;
    }
    
    /* Направления */
    .directions-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }
    
    .direction-card {
        padding: 25px;
    }
    
    /* Прайс */
    .price-container {
        max-width: 850px;
    }
    
    .price-items {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    
    .price-category h3 {
        font-size: 1.7rem;
    }
    
    /* Логотип */
    .logo {
        margin-left: -50px;
    }
    
    /* Навигация */
    .nav-links li {
        margin-left: 20px;
    }
    
    .nav-links a {
        font-size: 15px;
    }
    
    /* Футер */
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
    
    .map-container {
        height: 320px;
    }
}

/* Большие планшеты (1025px - 1280px) */
@media (min-width: 1025px) and (max-width: 1280px) {
    .container {
        max-width: 1100px;
    }
    
    /* Фотография эксперта - ограничиваем максимальную ширину */
    .expert-image {
        max-width: 500px;
    }
    
    .expert-image img {
        max-height: 500px;
        object-fit: cover;
    }
    
    /* Улучшаем отступы */
    .expert-content {
        gap: 60px;
    }
    
    /* Прайс - 4 колонки вместо 5 */
    .price-items {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* =========================================== */
/* СПЕЦИАЛЬНЫЕ ИСПРАВЛЕНИЯ ДЛЯ ФОТОГРАФИИ */
/* =========================================== */

/* Для всех планшетов - ограничиваем высоту фото */
@media (max-width: 1024px) {
    .expert-image {
        position: relative;
        overflow: hidden;
    }
    
    .expert-image img {
        width: 100%;
        height: auto;
        max-height: 400px;
        object-fit: cover;
        object-position: center 25%;
    }
}

/* Для вертикальных планшетов - делаем фото меньше */
@media (max-width: 768px) and (orientation: portrait) {
    .expert-image {
        max-width: 350px;
    }
    
    .expert-image img {
        max-height: 350px;
    }
}

/* Для горизонтальных планшетов */
@media (min-width: 769px) and (max-width: 1024px) and (orientation: landscape) {
    .expert-image img {
        max-height: 380px;
    }
}

/* =========================================== */
/* МЕЛКИЕ ИСПРАВЛЕНИЯ ДЛЯ УЛУЧШЕНИЯ ВНЕШНЕГО ВИДА */
/* =========================================== */

/* Для всех планшетов улучшаем читаемость текста */
@media (min-width: 481px) and (max-width: 1024px) {
    body {
        font-size: 16px;
        line-height: 1.7;
    }
    
    .section-title h2 {
        font-size: 2.5rem;
        margin-bottom: 50px;
    }
    
    .section-title h2::after {
        width: 70px;
        height: 4px;
        bottom: -12px;
    }
    
    /* Улучшаем отступы в карточках направлений */
    .direction-card h3 {
        font-size: 1.4rem;
        margin-bottom: 12px;
        min-height: 3.2em;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .direction-card p {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    /* Улучшаем отображение прайса */
    .price-item {
        padding: 20px;
    }
    
    .price-item-name {
        font-size: 1.1rem;
    }
    
    .price-item-cost {
        font-size: 1.4rem;
    }
    
    .price-item-details {
        font-size: 0.9rem;
    }
    
    .price-item-per {
        font-size: 0.95rem;
    }
    
    /* Улучшаем карту */
    .map-container {
        border-radius: 10px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }
    
    /* Улучшаем соц-иконки */
    .social-links {
        justify-content: flex-start;
    }
    
    .social-links a {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
}

/* Специальные настройки для iPad Pro 10.5" и подобных */
@media (width: 834px) and (height: 1112px) {
    /* iPad Pro 10.5" вертикально */
    .hero h1 {
        font-size: 3.5rem;
    }
    
    .expert-image {
        max-width: 380px;
    }
    
    .directions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (width: 1112px) and (height: 834px) {
    /* iPad Pro 10.5" горизонтально */
    .expert-content {
        gap: 50px;
    }
    
    .expert-image {
        max-width: 420px;
    }
    
    .expert-image img {
        max-height: 420px;
    }
    
    .directions-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .direction-card:nth-child(5) {
        grid-column: 2 / 4;
    }
}

/* =========================================== */
/* ОПТИМИЗАЦИЯ ДЛЯ ПЛАНШЕТОВ С ВЫСОКИМ DPI */
/* =========================================== */

@media (min-width: 481px) and (max-width: 1024px) and (-webkit-min-device-pixel-ratio: 2) {
    /* Для ретина-дисплеев улучшаем качество изображений */
    .expert-image img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
    
    .logo img {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* =========================================== */
/* ПРОВЕРКА ОРИЕНТАЦИИ ПЛАНШЕТА */
/* =========================================== */

@media (min-width: 481px) and (max-width: 1024px) and (orientation: portrait) {
    /* Вертикальная ориентация */
    .hero {
        min-height: 80vh;
    }
    
    .hero-content {
        padding-top: 40px;
    }
    
    .expert-content {
        flex-direction: column;
    }
}

@media (min-width: 481px) and (max-width: 1024px) and (orientation: landscape) {
    /* Горизонтальная ориентация */
    .hero {
        min-height: 85vh;
    }
    
    .expert-content {
        flex-direction: row;
    }
}

/* =========================================== */
/* ФИНАЛЬНЫЕ ОПТИМИЗАЦИИ */
/* =========================================== */

/* Улучшаем производительность анимаций на планшетах */
@media (min-width: 481px) and (max-width: 1024px) {
    .direction-card:hover {
        transform: translateY(-8px);
        transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    
    .price-item:hover {
        transform: translateX(3px);
        transition: transform 0.25s ease;
    }
    
    /* Отключаем сложные анимации на слабых планшетах */
    @media (prefers-reduced-motion: reduce) {
        * {
            animation-duration: 0.01ms !important;
            animation-iteration-count: 1 !important;
            transition-duration: 0.01ms !important;
        }
    }
}
/* =========================================== */
/* 3D ТУР - НОВЫЙ МАКЕТ */
/* =========================================== */
.tour {
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
    padding: 80px 0;
}

.tour-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
}

/* Левая колонка - информация */
.tour-info {
    padding-right: 20px;
}

.tour-header h3 {
    font-size: 2rem;
    color: var(--dark);
    margin-bottom: 10px;
}

.tour-subtitle {
    font-size: 1.1rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 30px;
}

.tour-description p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--gray);
    margin-bottom: 30px;
}

.tour-benefits {
    margin: 40px 0;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
}

.benefit-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9rem;
}

.benefit-content h4 {
    font-size: 1.1rem;
    color: var(--dark);
    margin-bottom: 5px;
}

.benefit-content p {
    font-size: 0.95rem;
    color: var(--gray);
    margin: 0;
    line-height: 1.5;
}

.tour-instructions {
    background: white;
    padding: 25px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-top: 40px;
}

.tour-instructions h4 {
    font-size: 1.2rem;
    color: var(--dark);
    margin-bottom: 20px;
    text-align: center;
}

.instructions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.instruction {
    text-align: center;
    padding: 15px;
    background: #f8f9ff;
    border-radius: 8px;
    transition: var(--transition);
}

.instruction:hover {
    transform: translateY(-5px);
    background: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.instruction-icon {
    width: 40px;
    height: 40px;
    background: rgba(93, 106, 251, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    color: var(--primary);
    font-size: 1.2rem;
}

.instruction p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--dark);
    line-height: 1.4;
}

.instruction strong {
    color: var(--primary);
    display: block;
    margin-bottom: 3px;
}

/* Правая колонка - панорама */
.tour-panorama {
    position: relative;
}

.panorama-container {
    width: 100%;
    height: 400px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    position: relative;
    background: #f0f2ff;
}

.panorama-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.panorama-label {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: rgba(255, 255, 255, 0.95);
    padding: 8px 15px;
    border-radius: 25px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--primary);
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.panorama-label i {
    font-size: 1.1rem;
}

/* Адаптивность */
@media (max-width: 1024px) {
    .tour-layout {
        gap: 40px;
    }
    
    .panorama-container {
        height: 350px;
    }
}

@media (max-width: 768px) {
    .tour-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .tour-info {
        padding-right: 0;
        order: 2;
    }
    
    .tour-panorama {
        order: 1;
    }
    
    .panorama-container {
        height: 300px;
    }
    
    .tour-header h3 {
        font-size: 1.8rem;
    }
    
    .instructions-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .panorama-container {
        height: 250px;
    }
    
    .tour-benefits {
        margin: 30px 0;
    }
    
    .benefit-item {
        margin-bottom: 20px;
    }
    
    .tour-instructions {
        padding: 20px;
    }
}



.panorama-container.loaded::before {
    opacity: 0;
}

/* Эффект при наведении на панораму */
.panorama-container:hover {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    transform: translateY(-5px);
    transition: all 0.3s ease;
}
.reviews {
    background-color: var(--white);
    padding: 80px 0;
}

.section-subtitle {
    text-align: center;
    color: var(--gray);
    font-size: 1.1rem;
    margin-top: 10px;
    font-weight: 400;
}

/* Сетка карточек отзывов */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

/* Карточка отзыва */
.review-card {
    background: white;
    border-radius: var(--radius);
    padding: 30px;
    height: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(93, 106, 251, 0.1);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.review-card:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    transform: translateY(-5px);
}

.review-header {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.reviewer-avatar {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}

.reviewer-info {
    flex: 1;
}

.reviewer-name {
    font-size: 1.2rem;
    color: var(--dark);
    margin-bottom: 5px;
}

.review-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 8px;
}

.review-rating i {
    color: #FFD700;
    font-size: 0.9rem;
}

.rating-text {
    font-weight: 600;
    color: var(--dark);
    margin-left: 5px;
    font-size: 0.9rem;
}

.review-date {
    font-size: 0.85rem;
    color: var(--gray);
    opacity: 0.8;
}

.review-content {
    flex: 1;
    margin-bottom: 20px;
}

.review-text {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--gray);
    font-style: italic;
    position: relative;
    padding-left: 20px;
}

.review-text::before {
    content: '"';
    position: absolute;
    left: 0;
    top: -10px;
    font-size: 3rem;
    color: rgba(93, 106, 251, 0.2);
    font-family: Georgia, serif;
    line-height: 1;
}

.review-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 15px;
    margin-top: auto;
}

.review-direction {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 600;
}

.review-direction i {
    font-size: 1rem;
}

/* Внешние ссылки на отзывы */
.reviews-external {
    margin: 60px 0 40px;
    padding: 40px;
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.external-reviews-header {
    text-align: center;
    margin-bottom: 40px;
}

.external-reviews-header h3 {
    font-size: 1.8rem;
    color: var(--dark);
    margin-bottom: 10px;
}

.external-reviews-header p {
    color: var(--gray);
    font-size: 1.05rem;
}

.external-reviews-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    max-width: 600px;
    margin: 0 auto;
}

.external-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: white;
    border-radius: var(--radius);
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.external-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-light);
}

.link-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
}

.link-icon.google {
    background: linear-gradient(135deg, #4285F4, #34A853);
}

.link-icon.yandex {
    background: linear-gradient(135deg, #FC3F1D, #FFCC00);
}

.link-content {
    flex: 1;
}

.link-content h4 {
    font-size: 1.1rem;
    color: var(--dark);
    margin-bottom: 5px;
}

.link-content p {
    font-size: 0.9rem;
    color: var(--gray);
    margin: 0;
}

.link-arrow {
    color: var(--primary);
    font-size: 0.9rem;
}

/* Адаптивность */
@media (max-width: 992px) {
    .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .reviews-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .review-card {
        padding: 25px;
    }
    
    .reviews-external {
        padding: 30px 20px;
    }
    
    .external-reviews-links {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .reviewer-avatar {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .review-text {
        font-size: 0.95rem;
        padding-left: 15px;
    }
}