/* Адаптивность для мобильных устройств */
      @media (max-width: 768px) {
        .gallery-section {
          padding: 40px 0;
        }

        .gallery-grid {
          grid-template-columns: repeat(2, 1fr) !important;
          gap: 10px !important;
        }

        h2 {
          font-size: 1.8rem !important;
          margin-bottom: 30px !important;
        }

        .gallery-item {
          border-radius: 6px !important;
          box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1) !important;
        }

        .overlay i {
          font-size: 20px !important;
        }
      }

      /* Эффекты при наведении */
      .gallery-item:hover img {
        transform: scale(1.05);
      }

      .gallery-item:hover .overlay {
        opacity: 1;
      }

      /* Анимация для тач-устройств */
      @media (hover: none) {
        .gallery-item:active .overlay {
          opacity: 1;
        }
      }

:root {
        --primary: #111827;
        --primary-light: #374151;
        --text-dark: #111827;
        --text-light: #FFFFFF;
        --gray-light: #f3f4f6;
        --overlay: rgba(0, 0, 0, 0.6);
        --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
      }

      .benefits-section.white-theme {
        background: #fff;
        padding: 6rem 2rem;
        font-family: 'Inter', sans-serif;
      }

      .container {
        max-width: 1200px;
        margin: 0 auto;
      }

      .section-header {
        text-align: center;
        margin-bottom: 4rem;
      }

      .section-title {
        font-size: 2.5rem;
        font-weight: 600;
        color: var(--text-dark);
        line-height: 1.3;
      }

      .section-title span {
        position: relative;
      }

      .section-title span:after {
        content: '';
        position: absolute;
        bottom: 5px;
        left: 0;
        width: 100%;
        height: 12px;
        background: rgba(17, 24, 39, 0.1);
        z-index: -1;
      }

      .title-divider {
        width: 80px;
        height: 3px;
        background: var(--primary);
        margin: 1.5rem auto 0;
      }

      .benefits-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        gap: 2rem;
      }

      .benefit-card {
        position: relative;
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
        transition: var(--transition);
      }

      .benefit-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
      }

      .card-image {
        height: 300px;
        background-size: cover;
        background-position: center;
        position: relative;
      }

      .card-overlay {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(to top, var(--overlay), transparent);
      }

      .card-content {
        position: relative;
        padding: 2rem;
        color: var(--text-dark);
      }

      .card-number {
        font-size: 0.9rem;
        font-weight: 600;
        letter-spacing: 2px;
        color: var(--primary-light);
        margin-bottom: 1rem;
      }

      .card-content h3 {
        font-size: 1.5rem;
        font-weight: 600;
        margin-bottom: 1rem;
        line-height: 1.3;
      }

      .card-text p {
        font-size: 1rem;
        line-height: 1.6;
        color: var(--primary-light);
        margin-bottom: 0.8rem;
      }

      /* Анимации */
      .benefit-card {
        opacity: 0;
        transform: translateY(30px);
        animation: fadeInUp 0.8s ease-out forwards;
      }

      @keyframes fadeInUp {
        to {
          opacity: 1;
          transform: translateY(0);
        }
      }

      .benefit-card:nth-child(1) {
        animation-delay: 0.1s;
      }

      .benefit-card:nth-child(2) {
        animation-delay: 0.3s;
      }

      .benefit-card:nth-child(3) {
        animation-delay: 0.5s;
      }

      /* Адаптация */
      @media (max-width: 1024px) {
        .benefits-grid {
          grid-template-columns: 1fr;
          max-width: 600px;
          margin: 0 auto;
        }
      }

      @media (max-width: 768px) {
        .benefits-section.white-theme {
          padding: 4rem 1.5rem;
        }

        .section-title {
          font-size: 2rem;
        }

        .card-image {
          height: 250px;
        }

        .card-content {
          padding: 1.5rem;
        }
      }

      @media (max-width: 576px) {
        .section-title {
          font-size: 1.8rem;
        }

        .card-content h3 {
          font-size: 1.3rem;
        }

        .card-text p {
          font-size: 0.9rem;
        }
      }

/* Стили для основной страницы */
        body {
            font-family: 'Arial', sans-serif;
            margin: 0;
            padding: 20px;
            background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
            color: #333;
            line-height: 1.6;
        }
        
        .page-content {
            max-width: 1200px;
            margin: 0 auto;
        }
        
        header {
            text-align: center;
            padding: 20px;
            margin-bottom: 30px;
        }
        
        h1 {
            color: #2c3e50;
            font-size: 2.5rem;
            margin-bottom: 10px;
        }
        
        .intro {
            font-size: 1.2rem;
            color: #7f8c8d;
            max-width: 800px;
            margin: 0 auto 30px;
        }
        
        /* Контейнер для галереи с изолированными стилями */
        #gallery-container {
            width: 100%;
            margin: 30px 0;
            padding: 20px;
            background: white;
            border-radius: 10px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        }
        
        /* Другие блоки на странице */
        .other-content {
            padding: 30px;
            background: white;
            border-radius: 10px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
            margin: 30px 0;
        }
        
        .other-content h2 {
            color: #2c3e50;
            border-bottom: 2px solid #3498db;
            padding-bottom: 10px;
            margin-top: 0;
        }
        
        footer {
            text-align: center;
            padding: 20px;
            margin-top: 40px;
            color: #7f8c8d;
            font-size: 0.9rem;
        }

/* Полная изоляция стилей с помощью кастомных свойств и scoped подходов */
        .ski-resort-gallery-isolated {
            --srgi-primary-color: #1e293b;
            --srgi-background: #fff;
            --srgi-shadow-color: rgba(0,0,0,0.1);
            --srgi-transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            --srgi-border-radius: 20px;
            
            width: 100%;
            max-width: 1400px;
            margin: 0 auto;
            padding: 40px;
            background: var(--srgi-background);
            border-radius: var(--srgi-border-radius);
            box-shadow: 0 20px 60px var(--srgi-shadow-color);
            isolation: isolate; /* Ключевое свойство для изоляции */
            all: initial; /* Сбрасываем все наследуемые стили */
            box-sizing: border-box;
            display: block;
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
        }
        
        .ski-resort-gallery-isolated *:not(script):not(style) {
            all: unset; /* Сбрасываем стили для всех вложенных элементов */
            box-sizing: border-box;
            display: revert;
        }
        
        .ski-resort-gallery-isolated h2.srgi-title {
            text-align: center;
            color: var(--srgi-primary-color);
            margin: 0 0 50px 0;
            padding: 0;
            font-size: 3.5rem;
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: 3px;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
            display: block;
            font-family: inherit;
        }
        
        .ski-resort-gallery-isolated .srgi-container {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 30px;
            width: 100%;
            margin: 0 auto;
        }
        
        .ski-resort-gallery-isolated .srgi-item {
            position: relative;
            overflow: hidden;
            border-radius: 16px;
            aspect-ratio: 4/3;
            box-shadow: 0 15px 40px rgba(0,0,0,0.25);
            transition: var(--srgi-transition);
            cursor: pointer;
            display: block;
        }
        
        .ski-resort-gallery-isolated .srgi-item:hover {
            transform: translateY(-8px) scale(1.02);
            box-shadow: 0 25px 60px rgba(0,0,0,0.35);
        }
        
        .ski-resort-gallery-isolated .srgi-item img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
            transition: all 0.5s ease;
        }
        
        .ski-resort-gallery-isolated .srgi-item:hover img {
            transform: scale(1.15);
            filter: brightness(1.1) contrast(1.1);
        }
        
        .ski-resort-gallery-isolated .srgi-item::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0) 50%);
            opacity: 0;
            transition: opacity 0.3s ease;
            pointer-events: none;
        }
        
        .ski-resort-gallery-isolated .srgi-item:hover::after {
            opacity: 1;
        }
        
        /* Адаптивность */
        @media (max-width: 1200px) {
            .ski-resort-gallery-isolated .srgi-container {
                gap: 25px;
            }
            
            .ski-resort-gallery-isolated h2.srgi-title {
                font-size: 3rem;
            }
        }
        
        @media (max-width: 1024px) {
            .ski-resort-gallery-isolated .srgi-container {
                grid-template-columns: repeat(2, 1fr);
                gap: 20px;
            }
            
            .ski-resort-gallery-isolated {
                padding: 30px;
            }
            
            .ski-resort-gallery-isolated h2.srgi-title {
                font-size: 2.5rem;
                margin-bottom: 40px;
            }
        }
        
        @media (max-width: 768px) {
            .ski-resort-gallery-isolated .srgi-container {
                grid-template-columns: repeat(2, 1fr); /* Изменено с 1fr на repeat(2, 1fr) */
                max-width: 600px;
                gap: 15px; /* Немного уменьшен отступ для мобильных устройств */
            }
            
            .ski-resort-gallery-isolated {
                padding: 20px;
            }
            
            .ski-resort-gallery-isolated h2.srgi-title {
                font-size: 2rem;
                letter-spacing: 2px;
                margin-bottom: 30px;
            }
            
            .ski-resort-gallery-isolated .srgi-item {
                aspect-ratio: 4/3; /* Возвращаем исходное соотношение сторон */
            }
        }
        
        @media (max-width: 480px) {
            .ski-resort-gallery-isolated {
                padding: 15px;
                border-radius: 15px;
            }
            
            .ski-resort-gallery-isolated h2.srgi-title {
                font-size: 1.6rem;
                margin-bottom: 25px;
            }
            
            .ski-resort-gallery-isolated .srgi-container {
                gap: 12px;
            }
            
            .ski-resort-gallery-isolated .srgi-item {
                aspect-ratio: 3/4; /* Для очень маленьких экранов можно изменить соотношение */
            }
        }

/* Изолированные стили футера */
        .footer {
            --footer-primary: #6C4DFF;
            --footer-primary-hover: #5a3fe6;
            --footer-bg: #0a0a0a;
            --footer-text: rgba(255, 255, 255, 0.95);
            --footer-text-light: rgba(255, 255, 255, 0.7);
            --footer-border: rgba(255, 255, 255, 0.1);
            --footer-input-bg: rgba(255, 255, 255, 0.05);
            --footer-radius: 12px;
            --footer-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);

            font-family: 'Manrope', system-ui, -apple-system, sans-serif;
            background: var(--footer-bg);
            color: var(--footer-text);
            padding: 80px 0;
            position: relative;
            overflow: hidden;
        }

        .footer::before {
            content: '';
            position: absolute;
            top: -50px;
            right: -50px;
            width: 300px;
            height: 300px;
            background: radial-gradient(circle, var(--footer-primary) 0%, transparent 70%);
            opacity: 0.1;
            z-index: 1;
        }

        .footer__container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 40px;
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 60px;
            position: relative;
            z-index: 2;
        }

        .footer__contacts {
            display: flex;
            flex-direction: column;
        }

        .footer__title {
            font-size: 2rem;
            font-weight: 800;
            margin-bottom: 24px;
            background: linear-gradient(90deg, #fff 0%, var(--footer-primary) 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            line-height: 1.2;
        }

        .footer__subtitle {
            font-size: 1.1rem;
            line-height: 1.6;
            color: var(--footer-text-light);
            margin-bottom: 40px;
            max-width: 400px;
        }

        .footer__contact-item {
            margin-bottom: 28px;
            position: relative;
            padding-left: 40px;
        }

        .footer__contact-item::before {
            content: '';
            position: absolute;
            left: 0;
            top: 8px;
            width: 24px;
            height: 24px;
            background-color: var(--footer-primary);
            mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'%3E%3C/path%3E%3C/svg%3E");
            mask-repeat: no-repeat;
            mask-position: center;
        }

        .footer__contact-item--location::before {
            mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z'%3E%3C/path%3E%3Ccircle cx='12' cy='10' r='3'%3E%3C/circle%3E%3C/svg%3E");
        }

        .footer__contact-title {
            font-size: 1.1rem;
            font-weight: 600;
            margin-bottom: 6px;
            color: var(--footer-text);
        }

        .footer__contact-value {
            font-size: 1rem;
            color: var(--footer-text-light);
            transition: color 0.3s ease;
        }

        .footer__contact-link {
            color: inherit;
            text-decoration: none;
            display: inline-block;
        }

        .footer__contact-link:hover {
            color: var(--footer-primary);
        }

        .footer__form-wrapper {
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid var(--footer-border);
            border-radius: var(--footer-radius);
            padding: 48px;
            backdrop-filter: blur(10px);
            box-shadow: var(--footer-shadow);
        }

        .footer__form-title {
            font-size: 1.5rem;
            font-weight: 700;
            margin-bottom: 32px;
            color: var(--footer-text);
        }

        .footer__form-group {
            margin-bottom: 24px;
        }

        .footer__form-label {
            display: block;
            font-size: 0.9rem;
            margin-bottom: 10px;
            color: var(--footer-text-light);
        }

        .footer__form-input {
            width: 100%;
            padding: 16px 20px;
            border-radius: 8px;
            border: 1px solid var(--footer-border);
            background: var(--footer-input-bg);
            color: var(--footer-text);
            font-family: inherit;
            font-size: 1rem;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .footer__form-input:focus {
            outline: none;
            border-color: var(--footer-primary);
            box-shadow: 0 0 0 3px rgba(108, 77, 255, 0.2);
        }

        .footer__phone-input {
            display: flex;
        }

        .footer__phone-prefix {
            padding: 16px 12px;
            background: var(--footer-input-bg);
            border: 1px solid var(--footer-border);
            border-right: none;
            border-radius: 8px 0 0 8px;
            color: var(--footer-text-light);
            font-size: 1rem;
            display: flex;
            align-items: center;
        }

        .footer__phone-number {
            border-radius: 0 8px 8px 0;
            flex: 1;
        }

        .footer__submit-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 18px 36px;
            border-radius: 8px;
            font-weight: 700;
            font-size: 1rem;
            text-decoration: none;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            background: linear-gradient(135deg, var(--footer-primary) 0%, var(--footer-primary-hover) 100%);
            color: white;
            border: none;
            cursor: pointer;
            width: 100%;
            margin-top: 10px;
            box-shadow: 0 4px 15px rgba(108, 77, 255, 0.3);
        }

        .footer__submit-btn:hover:not(:disabled) {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(108, 77, 255, 0.4);
        }

        .footer__submit-btn:disabled {
            opacity: 0.7;
            cursor: not-allowed;
        }

        .footer__privacy {
            font-size: 0.8rem;
            color: var(--footer-text-light);
            margin-top: 24px;
            line-height: 1.6;
        }

        .footer__privacy-link {
            color: var(--footer-text);
            text-decoration: underline;
            transition: color 0.3s ease;
        }

        .footer__privacy-link:hover {
            color: var(--footer-primary);
        }

        /* Сообщения формы */
        .footer__form-message {
            display: none;
            padding: 16px;
            border-radius: 8px;
            margin-bottom: 20px;
            text-align: center;
            font-weight: 500;
        }

        .footer__form-message--success {
            background: rgba(46, 204, 113, 0.2);
            color: #2ecc71;
            border: 1px solid rgba(46, 204, 113, 0.3);
        }

        .footer__form-message--error {
            background: rgba(231, 76, 60, 0.2);
            color: #e74c3c;
            border: 1px solid rgba(231, 76, 60, 0.3);
        }

        /* Спиннер */
        .spinner {
            display: inline-block;
            width: 20px;
            height: 20px;
            border: 3px solid rgba(255,255,255,.3);
            border-radius: 50%;
            border-top-color: #fff;
            animation: spin 1s ease-in-out infinite;
        }

        @keyframes spin {
            to { transform: rotate(360deg); }
        }

        /* Анимации */
        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .footer__contact-item,
        .footer__form-wrapper {
            animation: fadeIn 0.6s ease-out forwards;
        }

        .footer__contact-item:nth-child(1) {
            animation-delay: 0.1s;
        }

        .footer__contact-item:nth-child(2) {
            animation-delay: 0.2s;
        }

        .footer__contact-item:nth-child(3) {
            animation-delay: 0.3s;
        }

        .footer__form-wrapper {
            animation-delay: 0.4s;
        }

        /* Адаптивность */
        @media (max-width: 1024px) {
            .footer__container {
                gap: 40px;
                padding: 0 32px;
            }
            .footer__form-wrapper {
                padding: 40px;
            }
        }

        @media (max-width: 768px) {
            .footer {
                padding: 60px 0;
            }
            .footer__container {
                grid-template-columns: 1fr;
                gap: 50px;
            }
            .footer__title {
                font-size: 1.8rem;
            }
            .footer__form-wrapper {
                padding: 36px;
            }
        }

        @media (max-width: 480px) {
            .footer {
                padding: 50px 0;
            }
            .footer__container {
                padding: 0 24px;
                gap: 40px;
            }
            .footer__title {
                font-size: 1.6rem;
                margin-bottom: 20px;
            }
            .footer__subtitle {
                font-size: 1rem;
                margin-bottom: 30px;
            }
            .footer__form-wrapper {
                padding: 30px 24px;
            }
            .footer__form-title {
                font-size: 1.3rem;
                margin-bottom: 24px;
            }
            .footer__form-input {
                padding: 14px 16px;
            }
        }

.back-to-top.left {
        left: 20px;
        right: auto;
        border-radius: 50%;
      }

      .back-to-top:hover {
        background-color: #0b5ed7;
        transform: translateY(-3px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
      }

      .back-to-top i {
        font-size: 1.5rem;
      }
