.trial-offer {
    text-align: center;
    margin-bottom: 20px;
}

.trial-price {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.3px;
    color: #FFFFFF;
    margin: 0 0 4px 0;
    display: inline-block;
    padding: 12px 22px;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 30px;
}

.special{
    color: #2e5578 !important;
    font-size: 15px !important;
    background-color: #f9f9f9;
    border-radius: 300px;
    padding: 10px;
    margin-top: 8px !important;
}
.about-prise{
    font-size:clamp(14px, 2vw, 20px);
    text-align: center;
    margin: 20px;
}
.fitness-gallery {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(5, 1fr);
    gap: 8px;
    height: 1200px;
    width: 100%;
}

.fitness-gallery > div {
    overflow: hidden;
    border-radius: 16px;
    background: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fitness-gallery img,
.fitness-gallery video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.fitness-gallery video {
    background-color: #000;
    pointer-events: none;
}

/* Десктопная раскладка */
.fitness-item1 { grid-area: 1 / 1 / span 4 / span 1; }
.fitness-item2 { grid-area: 5 / 1 / span 1 / span 2; }
.fitness-item3 { grid-area: 1 / 2 / span 2 / span 2; }
.fitness-item4 { grid-area: 3 / 2 / span 2 / span 1; }
.fitness-item5 { grid-area: 1 / 4 / span 4 / span 2; }
.fitness-item6 { grid-area: 3 / 3 / span 3 / span 1; }
.fitness-item7 { grid-area: 5 / 4 / span 1 / span 2; }

/* Мобильная адаптация - 2 колонки */
@media (max-width: 768px) {
    .fitness-gallery {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(5, auto);
        height: auto;
        gap: 12px;
        padding: 16px;
    }
    
    .fitness-item1, .fitness-item2, .fitness-item3, 
    .fitness-item4, .fitness-item5, .fitness-item6, 
    .fitness-item7 {
        grid-area: auto !important;
        min-height: 180px;
    }
    
    .fitness-item1 { 
        grid-column: 1 / span 1; 
        grid-row: 1; 
    }
    .fitness-item2 { 
        grid-column: 2 / span 1; 
        grid-row: 1; 
    }
    
    .fitness-item3 { 
        grid-column: 1 / span 1; 
        grid-row: 2; 
    }
    .fitness-item4 { 
        grid-column: 2 / span 1; 
        grid-row: 2; 
    }
    
    .fitness-item5 { 
        grid-column: 1 / span 1; 
        grid-row: 3; 
    }
    .fitness-item6 { 
        grid-column: 2 / span 1; 
        grid-row: 3;
    }
    
    .fitness-item7 { 
        grid-column: 1 / span 2;
        grid-row: 4; 
        min-height: 250px;
        aspect-ratio: 4.1/3;
    }
    
    .fitness-gallery > div {
        border-radius: 12px;
    }
}

/* Планшетная адаптация */
@media (min-width: 769px) and (max-width: 1024px) {
    .fitness-gallery {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(5, auto);
        height: auto;
        gap: 10px;
        padding: 20px;
    }
    
    .fitness-item1 { grid-area: 1 / 1 / span 2 / span 2; }
    .fitness-item2 { grid-area: 1 / 3 / span 1 / span 1; }
    .fitness-item3 { grid-area: 2 / 3 / span 1 / span 1; }
    .fitness-item4 { grid-area: 3 / 1 / span 1 / span 1; }
    .fitness-item5 { grid-area: 3 / 2 / span 2 / span 2; }
    .fitness-item6 { grid-area: 4 / 1 / span 1 / span 1; }
    .fitness-item7 { grid-area: 5 / 1 / span 1 / span 3; }
    
    .fitness-gallery > div {
        min-height: 180px;
    }
    
    .fitness-item7 {
        min-height: 220px;
        aspect-ratio: 16/6;
    }
}

/* Десктоп от 1025px */
@media (min-width: 1025px) {
    .fitness-gallery {
        padding: 20px;
        max-width: 1400px;
        margin: 0 auto;
    }
    
    .fitness-item7 { 
        grid-area: 5 / 4 / span 1 / span 2;
    }
}
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.hide {
    opacity: 0;
    visibility: hidden;
}

.loader {
    width: 50px;
    height: 50px;
    border: 5px solid #ccc;
    border-top-color: #ff99cc;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.setQ{
    MARGIN: 0 AUTO;
    background: rgb(238 245 255);
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 20px;
    padding: 20PX;
    MAX-WIDTH: 400PX;
}

.setQ p{
    font-size:30px;
}
.setQ button:hover {
            transform: translateY(-5px);
            box-shadow: 0 12px 30px rgba(27,39,49,0.12);
        }
.setQ button{
    display: inline-block;
    padding: 18px 46px;
    border-radius: 48px;
    background: rgba(255, 200, 230, 0.6);
    box-shadow: 0 8px 30px rgba(27, 39, 49, 0.06);
    border: none;
    font-weight: 600;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #425464;
    font-family: 'Jost', sans-serif;}
.directions-section p{
    text-align:center;
    font-size:18px;
}
/* ====== Секция с видео ====== */
.main-section {
  position: relative;       /* важно: делает позиционирование контекста для видео */
  width: 100%;
  height: 100vh;            /* можно задать 100vh (высота экрана) или любую нужную высоту */
  overflow: hidden;
  background-image: url('../Image/back.webp');
  /* Ключевые свойства для идеального заполнения */
  background-size: cover;      /* растягивает изображение, чтобы заполнить всю секцию */
  background-position: center; /* центрирует изображение */
  background-repeat: no-repeat; /* предотвращает повторение */
  
  /* Для лучшего отображения можно добавить */
  background-attachment: fixed; /* фиксированный фон при скролле (опционально) *//* чтобы видео не вылезало за границы */
}

/* ====== Видео на фоне одной секции ====== */
.bbs-background-video {
  position: absolute;       /* внутри секции */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;        /* обрезает без искажений */
  z-index: 0;
  filter: brightness(0.8);
}

/* ====== Полупрозрачный слой и контент ====== */
.bbs-overlay {
  position: relative;       /* чтобы быть выше видео */
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
}


/* ====== Заголовок и подзаголовок ====== */
.bbs-header {
  margin-bottom: 40px;
}

.bbs-title {
  font-size: 84px;
  font-weight: 400;
  letter-spacing: 2px;
  color: #ffffff;
  margin: 0;
  text-align: center;
}

.bbs-subtitle {
  font-size: 28px;
  color: #ffffff;
  margin-top: 24px;
}

/* ====== Кнопка ====== */
.bbs-button {
  display: inline-block;
  background-color:white;
  color: var(--silk-text);
  font-size: 18px;
  padding: 14px 42px;
  border-radius: 40px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
  margin-top: 44px;
}

.bbs-button:hover {
  background-color: #8394a8;
  transform: translateY(-2px);
  color:white;
}

/* ====== Адрес и метро ====== */
.bbs-location {
  margin-top: 30px;
  font-size: 20px;
  color: #ffffff;
}

.bbs-address {
  margin-bottom: 10px;
  color: #ffffff;
}

.bbs-metro {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.bbs-metro-icon {
  width: 25px;
  height: 25px;
}

.bbs-metro-name {
  font-weight: 500;
  color: #ffffff;
}

/* ====== Адаптив ====== */
@media (max-width: 768px) {
  .bbs-title {
    font-size: 40px;
  }
.bbs-location{
    font-size:16px;
}
  .bbs-subtitle {
    font-size: 18px;
  }

  .bbs-button {
    padding: 12px 30px;
    font-size: 16px;
  }
}
/* Основной контейнер виджета Яндекс.Карт */
.yandex-map-widget-container {
  position: relative;
  max-width: 1200px;
  width:700px;
  height: 700px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  background-color: #f9f9f9;
}

/* Встроенный iframe с картой и отзывами */
.yandex-map-widget-iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 12px;
  box-sizing: border-box;
}

/* Подпись-ссылка под картой */
.yandex-map-widget-link {
  position: absolute;
  bottom: 8px;
  left: 0;
  width: 100%;
  text-align: center;
  text-decoration: none;
  color: #b3b3b3;
  font-size: 10px;
  font-family: "YS Text", sans-serif;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  padding: 0 16px;
  box-sizing: border-box;
  z-index: 3;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
  .yandex-map-widget-container {
    max-width: 100%;
    height: 500px;
    border-radius: 10px;
  }

  .yandex-map-widget-link {
    font-size: 9px;
  }
}

/* Стили для подвала */
.site-footer {
    background: linear-gradient(135deg, #5b6c86, #4a5b6d);
    color: #fff;
    padding: 40px 0 20px;
    margin-top: 50px;
}

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

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h4 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 600;
}

.footer-section p {
    margin-bottom: 10px;
    line-height: 1.6;
    font-size: 14px;
}

.footer-section i {
    margin-right: 8px;
    color: #fff;
    width: 16px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 14px;
}

.footer-links a:hover {
    color: #e8c3a3;
}

.footer-section a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #e8c3a3;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

.copyright {
    margin-top: 15px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

/* Адаптивность */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .footer-section {
        text-align: center;
    }
}
.trainer-modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.8);
            display: none;
            justify-content: center;
            align-items: center;
            z-index: 10002;
            padding: 20px;
        }
        
        .trainer-modal.active {
            display: flex;
        }
        
        .trainer-modal-content {
            background: white;
            border-radius: 15px;
            max-width: 900px;
            width: 100%;
            max-height: 90vh;
            overflow-y: auto;
            display: flex;
            flex-direction: column;
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
        }
        
        .trainer-modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 25px 30px 15px;
            border-bottom: 1px solid #eee;
        }
        
        .trainer-modal-title {
            font-size: 24px;
            font-weight: 700;
            color: #333;
            margin: 0;
        }
        
        .trainer-close {
            background: none;
            border: none;
            font-size: 28px;
            cursor: pointer;
            color: #777;
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            transition: all 0.3s ease;
        }
        
        .trainer-close:hover {
            background: #f5f5f5;
            color: #333;
        }
        
        .trainer-modal-body {
            display: flex;
            flex-direction: column;
            padding: 0;
        }
        
        .trainer-modal-image {
            width: 100%;
            height: 300px;
            object-fit: cover;
            border-radius: 0;
        }
        
        .trainer-modal-info {
            padding: 30px;
        }
        
        .trainer-modal-role {
            background: #5e86a6;
            color: white;
            padding: 8px 16px;
            border-radius: 20px;
            font-size: 14px;
            font-weight: 600;
            display: inline-block;
            margin-bottom: 15px;
        }
        
        .trainer-modal-subhead {
            font-size: 18px;
            color: #666;
            margin-bottom: 20px;
            font-weight: 500;
        }
        
        .trainer-modal-achievements {
            margin-top: 25px;
        }
        
        .achievements-title {
            font-size: 18px;
            font-weight: 700;
            color: #333;
            margin-bottom: 15px;
            border-bottom: 2px solid #5e86a6;
            padding-bottom: 5px;
        }
        
        .achievements-list {
            list-style: none;
            padding: 0;
            margin: 0;
        }
        
        .achievements-list li {
            padding: 8px 0;
            border-bottom: 1px solid #f0f0f0;
            position: relative;
            padding-left: 20px;
        }
        
        .achievements-list li:before {
            content: "•";
            color: #5e86a6;
            font-weight: bold;
            position: absolute;
            left: 0;
        }
        
        .achievements-list li:last-child {
            border-bottom: none;
        }
        
        @media (min-width: 768px) {
            .trainer-modal-body {
                flex-direction: row;
            }
            
            .trainer-modal-image {
                width: 40%;
                height: auto;
            }
            
            .trainer-modal-info {
                width: 60%;
                padding: 30px;
            }
        }
        
        @media (max-width: 767px) {
            .trainer-modal-content {
                margin: 20px;
            }
            
            .trainer-modal-header {
                padding: 20px 20px 15px;
            }
            
            .trainer-modal-info {
                padding: 20px;
            }
        }
  /* Стили для окна согласия на cookies */
        .cookie-consent {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            background: rgba(30, 30, 40, 0.95);
            color: white;
            padding: 20px;
            z-index: 10000;
            display: none;
            box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
            backdrop-filter: blur(10px);
        }
        
        .cookie-consent.active {
            display: flex;
            flex-direction: column;
            align-items: center;
        }
        
        .cookie-content {
            max-width: 1200px;
            width: 100%;
            display: flex;
            flex-wrap: wrap;
            justify-content: space-between;
            align-items: center;
            gap: 20px;
        }
        
        .cookie-text {
            flex: 1;
            min-width: 300px;
            font-size: 14px;
            line-height: 1.5;
        }
        
        .cookie-text a {
            color: #a8c6d0;
            text-decoration: underline;
        }
        
        .cookie-buttons {
            display: flex;
            gap: 15px;
            flex-wrap: wrap;
        }
        
        .cookie-btn {
            padding: 10px 20px;
            border-radius: 6px;
            cursor: pointer;
            font-weight: 600;
            transition: all 0.3s ease;
            border: none;
            font-size: 14px;
        }
        
        .cookie-accept {
            background: #5e86a6;
            color: white;
        }
        
        .cookie-accept:hover {
            background: #4a6b87;
        }
        
        .cookie-settings {
            background: transparent;
            color: white;
            border: 1px solid rgba(255, 255, 255, 0.3);
        }
        
        .cookie-settings:hover {
            background: rgba(255, 255, 255, 0.1);
        }
        
        .cookie-reject {
            background: transparent;
            color: white;
            border: 1px solid rgba(255, 255, 255, 0.3);
        }
        
        .cookie-reject:hover {
            background: rgba(255, 255, 255, 0.1);
        }
        
        /* Модальное окно настроек cookies */
        .cookie-modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.7);
            display: none;
            justify-content: center;
            align-items: center;
            z-index: 10001;
            padding: 20px;
        }
        
        .cookie-modal.active {
            display: flex;
        }
        
        .cookie-modal-content {
            background: white;
            color: #333;
            border-radius: 12px;
            max-width: 600px;
            width: 100%;
            max-height: 90vh;
            overflow-y: auto;
            padding: 30px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        }
        
        .cookie-modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            padding-bottom: 15px;
            border-bottom: 1px solid #eee;
        }
        
        .cookie-modal-title {
            font-size: 22px;
            font-weight: 700;
            color: #333;
        }
        
        .cookie-close {
            background: none;
            border: none;
            font-size: 24px;
            cursor: pointer;
            color: #777;
        }
        
        .cookie-close:hover {
            color: #333;
        }
        
        .cookie-option {
            margin-bottom: 20px;
            padding: 15px;
            border: 1px solid #eee;
            border-radius: 8px;
        }
        
        .cookie-option-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 10px;
        }
        
        .cookie-option-title {
            font-weight: 600;
            font-size: 16px;
        }
        
        .cookie-toggle {
            position: relative;
            display: inline-block;
            width: 50px;
            height: 24px;
        }
        
        .cookie-toggle input {
            opacity: 0;
            width: 0;
            height: 0;
        }
        
        .cookie-slider {
            position: absolute;
            cursor: pointer;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: #ccc;
            transition: .4s;
            border-radius: 24px;
        }
        
        .cookie-slider:before {
            position: absolute;
            content: "";
            height: 16px;
            width: 16px;
            left: 4px;
            bottom: 4px;
            background-color: white;
            transition: .4s;
            border-radius: 50%;
        }
        
        input:checked + .cookie-slider {
            background-color: #5e86a6;
        }
        
        input:checked + .cookie-slider:before {
            transform: translateX(26px);
        }
        
        .cookie-option-desc {
            font-size: 14px;
            color: #666;
            line-height: 1.5;
        }
        
        .cookie-modal-buttons {
            display: flex;
            justify-content: flex-end;
            gap: 15px;
            margin-top: 25px;
        }
        
        .cookie-save {
            background: #5e86a6;
            color: white;
            border: none;
            padding: 10px 20px;
            border-radius: 6px;
            cursor: pointer;
            font-weight: 600;
        }
        
        .cookie-save:hover {
            background: #4a6b87;
        }
        
        @media (max-width: 768px) {
            .cookie-content {
                flex-direction: column;
                text-align: center;
            }
            
            .cookie-buttons {
                justify-content: center;
            }
            
            .cookie-modal-content {
                padding: 20px;
            }
        }       /* Общие переменные и базовые стили */
        :root {
            --dreamy-fog: radial-gradient(circle at 40% 40%, rgba(255,200,230,0.6), rgba(210,230,255,0.6), rgba(255,255,255,0.7));
            --silk-text: #5b6c86;
            --soft-shadow: 0 8px 30px rgba(0,0,0,0.1);
            --gentle-round: 22px;
            --bg-start: #eef6ff;
            --bg-end: #fff0f4;
            --accent: #a9bfd1;
            --muted: #6b7a86;
            --card: #f7fbff;
            --radius: 18px;
            --accent-dark: #2e2e3f;
            --muted-dark: #555;
            --strike-red: #d9534f;
            --card-bg: rgba(255,255,255,0.95);
            --training-bg: #e9f1fb;
            --training-accent: #d8c2c8;
            --training-text: #35424b;
        }
@font-face {
    font-family: 'Cormorant Unicase';
    src: url('fonts/CormorantUnicase-Regular.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Jost';
    src: url('fonts/Jost-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
h1, .subscription-title, .directions-title, .contacts-title, .logo, 
.join-btn, .mid .more, .mission, .melt-title {
    font-family: 'Cormorant Unicase', serif; /* Без пробела */
    font-weight: 700;
}
        * {
            box-sizing: border-box;
            -webkit-tap-highlight-color: transparent;
        }
        html, body {
            font-size: 1rem;
            height: 100%;
            margin: 0;
            font-family: 'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            line-height: 1.25;
            color: #435364;
            overflow-x: hidden;
            scroll-behavior: smooth;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
        }
        h1, .subscription-title, .directions-title, .contacts-title, .logo, 
.join-btn, .mid .more, .mission, .melt-title {
    font-family: 'Cormorant Unicase', serif;
    font-weight: 700;}

        .INST{
            font-size: 10px;
            margin-top: 20px;
        }
        a{
            text-decoration: none;
        }
        /* Навигационное меню */
        .header {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            background: rgb(255 255 255 / 34%);
            backdrop-filter: blur(10px);
            z-index: 1000;
            transition: all 0.3s ease;
            border-bottom: 1px solid rgba(66, 84, 100, 0.1);
        }

        .header.scrolled {
            background: rgba(255, 255, 255, 0.85);
            box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
        }

        .nav-container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 clamp(16px, 4vw, 32px);
            display: flex;
            justify-content: space-between;
            align-items: center;
            height: 70px;
        }

        .logo {
            font-family: 'Cormorant Unicase', serif;
            font-size: clamp(20px, 3vw, 24px);
            color: #425464;
            text-decoration: none;
            font-weight: 700;
        }

        .nav-menu {
            display: flex;
            list-style: none;
            margin: 0;
            padding: 0;
            gap: clamp(15px, 2vw, 30px);
        }

        .nav-link {
            text-decoration: none;
            color: #425464;
            font-size: clamp(14px, 1.6vw, 16px);
            font-weight: 500;
            transition: color 0.3s ease;
            position: relative;
        }

        .nav-link.active {
            color: #5e86a6;
        }

        .nav-link.active::after {
            content: '';
            position: absolute;
            bottom: -5px;
            left: 0;
            width: 100%;
            height: 2px;
            background: #5e86a6;
        }

        .nav-link:hover {
            color: #5e86a6;
        }

        .hamburger {
            display: none;
            flex-direction: column;
            cursor: pointer;
            gap: 4px;
        }

        .hamburger span {
            width: 25px;
            height: 3px;
            background: #425464;
            transition: all 0.3s ease;
        }

        .hamburger.active span:nth-child(1) {
            transform: rotate(45deg) translate(6px, 6px);
        }

        .hamburger.active span:nth-child(2) {
            opacity: 0;
        }

        .hamburger.active span:nth-child(3) {
            transform: rotate(-45deg) translate(6px, -6px);
        }

        /* Контейнеры с улучшенной адаптацией */
        .wrap, .container {
            width: 100%;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 clamp(16px, 4vw, 32px);
        }

        .wrap {
            margin-top: clamp(10px, 2vh, 25px);
        }

        /* Секции с улучшенной адаптацией высоты */
        .about-section {
            background: radial-gradient(circle at 40% 40%, rgb(225 239 255), rgb(255 250 253 / 47%), rgba(255, 255, 255, 0.7));
            min-height: 100vh;
            min-height: 100dvh;
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .subscription-section {
            min-height: 100vh;
            min-height: 100dvh;
            padding: clamp(80px, 10vh, 100px) clamp(16px, 4vw, 32px) clamp(30px, 6vh, 48px);
            display: flex;
            align-items: center;
        }

        .directions-section {
            background-size: cover;
            min-height: 100vh;
            min-height: 100dvh;
            padding: clamp(30px, 10vh, 30px) clamp(16px, 4vw, 32px) clamp(30px, 6vh, 48px);
        }

        /* Герой-секция с улучшенной адаптацией */
        .hero {
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            justify-content: center;
            gap: clamp(30px, 6vh, 60px);
            width: 100%;
            min-height: min(640px, 90vh);
            padding: clamp(20px, 4vh, 40px) 0;
            position: relative;
        }
        .hero h2{
            font-family: Cormorant Unicase;
            font-size: 60px;
             white-space: nowrap;
        }
        /* Заголовки с плавным изменением размера */
        h1 {
            font-family: Cormorant Unicase;
            font-size: clamp(36px, 8vw, 100px);
            margin: 0;
            color: #425464;
            letter-spacing: clamp(1px, 0.5vw, 2px);
            line-height: 0.9;
            word-wrap: break-word;
            text-align: left;
        }

        .subscription-title, .directions-title {
            font-family: 'Cormorant Unicase', serif;
            font-size: clamp(36px, 8vw, 72px);
            text-align: center;
            color: #425464;
            margin-bottom: clamp(20px, 4vh, 30px);
            line-height: 0.95;
        }

        .hero-left {
            padding: clamp(20px, 3vw, 26px) clamp(16px, 2vw, 18px);
            width: 100%;
            position: relative;
            z-index: 2;
            display: block;
            text-align: left;
        }

        .hero-left > div:first-child {
            display: flex;
            align-items: center;
            gap: 18px;
            flex-wrap: wrap;
            justify-content: flex-start;
        }

        /* Текст с плавным изменением размера */
        .subtitle {
            font-size: clamp(16px, 2.5vw, 22px);
            color: var(--muted);
            max-width: min(68%, 600px);
            margin-top: clamp(12px, 2vh, 16px);
            text-align: left;
        }

        .why {
            font-style: italic;
            margin-top: clamp(24px, 5vh, 42px);
            font-size: clamp(18px, 3vw, 24px);
            color: #415564;
            text-align: left;
        }

        /* Кнопки с улучшенной адаптацией */
        .join-btn {
            box-shadow: 0 8px 30px rgba(66,84,100,0.08);
            font-family: "Cormorant Unicase";
            display: inline-flex;
            align-items: center;
            gap: clamp(8px, 1vw, 12px);
            padding: clamp(10px, 2vw, 12px) clamp(16px, 2vw, 22px);
            border-radius: clamp(20px, 4vw, 28px);
            border: 1px solid rgb(255, 255, 255);
            background:#5b6c86;
            font-weight: 600;
            font-size: clamp(20px, 2vw, 20px);
            color: #ffffff;
            cursor: pointer;
            transition: all .25s ease;
            white-space: nowrap;
        }

        .join-btn:hover {
            transform: translateY(-4px);
            box-shadow: 0 8px 30px rgba(66,84,100,0.08);
            background: linear-gradient(130deg, #dfeaf6, #f1e9ef);
            color:#5b6c86;
        }

        /* Карточки с улучшенной адаптацией */
        .cards {
            display: flex;
            justify-content: space-evenly;
            flex-wrap: wrap;
            gap: clamp(20px, 4vw, 32px);
            margin-top: clamp(60px, 1vh, 20px);
            align-items: flex-end;
            width: 100%;
        }

        .card {
            background: #ffffff;
            border-radius: clamp(16px, 2vw, 22px);
            padding: clamp(14px, 2vw, 18px);
            box-shadow: 0 8px 30px rgba(27,39,49,0.06);
            min-width: min(320px, 100vw);
            position: relative;
            overflow: visible;
            flex: 1 1 min(300px, 100%);
        }

        .big-left {
            flex: 1;
            min-height: clamp(180px, 25vh, 220px);
            padding: clamp(16px, 2vw, 20px);
            border-radius: clamp(16px, 2vw, 20px);
        }

        .big-left .plus {
            position: absolute;
            left: clamp(16px, 2vw, 22px);
            top: -18px;
            background: #eef3f8;
            border-radius: 50%;
            width: clamp(44px, 6vw, 54px);
            height: clamp(44px, 6vw, 54px);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: clamp(20px, 3vw, 28px);
            color: #6b7a86;
            box-shadow: 0 6px 20px rgba(40,60,80,0.06);
            cursor: pointer;
        }

        .img-placeholder, .img-placeholder1 {
            height: clamp(60px, 8vh, 80px);
            border-radius: clamp(10px, 1.5vw, 12px);
            background: linear-gradient(130deg, #dfeaf6, #f1e9ef);
            margin-bottom: clamp(10px, 2vh, 14px);
        }

        .list {
            margin: clamp(4px, 1vh, 6px) clamp(4px, 1vh, 6px) 0;
            padding-left: clamp(6px, 1vw, 8px);
        }

        .list li {
            padding: clamp(8px, 1.5vh, 10px) clamp(4px, 1vw, 6px);
            border-bottom: 1px solid rgba(67,86,100,0.06);
            display: flex;
            gap: clamp(8px, 1.5vw, 12px);
            align-items: center;
            color: #475b66;
            font-size: clamp(16px, 2vw, 18px);
        }

        .list li span.num {
            width: clamp(28px, 4vw, 36px);
            font-size: clamp(14px, 1.8vw, 18px);
            color: #5b6c77;
        }

        .mid {
            width: min(300px, 100%);
            height: fit-content;
            background-color:#dceaf8;
            border-radius: clamp(14px, 2vw, 18px);
            padding: clamp(16px, 2vw, 20px);
        }

        .mid .more {
            font-family: Cormorant Unicase;
            display: inline-flex;
            font-weight: 800;
            align-items: center;
            gap: clamp(8px, 1.5vw, 12px);
            padding: clamp(8px, 1.5vw, 10px) clamp(14px, 2vw, 18px);
            border-radius: clamp(20px, 4vw, 28px);
            border: 2px solid rgba(255, 255, 255, 0.18);
            background: linear-gradient(180deg, rgb(255 255 255 / 60%), rgba(255, 255, 255, 0.35));
            cursor: pointer;
            transition: all .25s ease;
            font-size: clamp(18px, 2vw, 18px);
            text-decoration: none;
            color: #425464;
        }

        .mid .more:hover {
            transform: translateY(-4px);
            box-shadow: 0 8px 30px rgba(66,84,100,0.08);
            background: linear-gradient(130deg, #dfeaf6, #f1e9ef);
        }

        .mid p {
            color: #3f5664;
            font-size: clamp(16px, 2.2vw, 18px);
        }

        .right {
            width: min(390px, 100%);
            flex-shrink: 0;
            background: #ffffff;
            padding: clamp(16px, 2vw, 20px);
            border-radius: clamp(14px, 2vw, 18px);
            height: clamp(160px, 30vh, 280px);
        }

        .mission {
            text-align: center;
            padding-top: clamp(20px, 3vh, 18px);
            font-family: Cormorant Unicase, serif;
            margin: 0 auto;
            color: #6b7080;
            font-size: clamp(16px, 2.5vw, 20px);
        }

        .right p {
            color: #5a6b74;
            font-size: clamp(16px, 2.2vw, 18px);
        }

        /* Изображение с улучшенной адаптацией */
        .hero-right {
            position: absolute;
            top: 50px;
            right: 15px;
            height: 800px;
            max-width: 800px;
            width: auto;
            display: flex;
            align-items: flex-start;
            justify-content: flex-end;
            z-index: 1;
            transform: translateZ(0);
            -webkit-transform: translateZ(0);
        }

        .hero-right .person {
            width: 100%;
            height: 100%;
            max-height: none;
            border-radius: clamp(12px, 2vw, 18px);
            object-fit: contain;
            object-position: center bottom;
            filter: drop-shadow(0 30px 60px rgba(40,40,50,0.12));
            -webkit-filter: drop-shadow(0 30px 60px rgba(40,40,50,0.12));
            opacity: 0.9;
            transition: all 0.3s ease;
        }

        /* Модальное окно */
        .modal {
            position: fixed;
            inset: 0;
            display: none;
            align-items: center;
            justify-content: center;
            background: rgba(10,20,30,0.4);
            z-index: 120;
            padding: clamp(16px, 4vw, 32px);
        }

        .modal.open {
            display: flex;
        }

        .modal .modal-card {
            background: white;
            padding: clamp(20px, 4vw, 24px);
            border-radius: clamp(12px, 2vw, 14px);
            max-width: min(520px, 90vw);
            width: 92%;
            box-shadow: 0 30px 80px rgba(10,30,50,0.24);
        }

        /* Стили для галочки согласия */
        .consent-checkbox {
            display: flex;
            align-items: center;
            gap: 0;
            margin: 8px 0;
            font-size: clamp(12px, 1.6vw, 14px);
            color: #3c3c50;
            width: auto;
            justify-content: center;
            background: rgba(255,255,255,0.8);
            padding: clamp(8px, 1.5vw, 10px) clamp(12px, 2vw, 15px);
            border-radius: clamp(6px, 1.2vw, 8px);
            border: 1px solid rgba(60,80,90,0.1);
            
        }

        .checkbox-custom {
            display: none;
        }

        .consent-checkbox a {
            color: #5e86a6;
            text-decoration: none;
            border-bottom: 1px solid transparent;
            transition: border-color 0.3s ease;
            font-weight: 500;
        }

        .consent-wrapper {
            width: 100%;
            display: flex;
            justify-content: center;
        }

        .consent-checkbox a:hover {
            border-bottom-color: #5e86a6;
        }

        /* Анимация сверкающей полоски */
        @keyframes shimmer {
            0% {
                background-position: -100% 0;
            }
            100% {
                background-position: 200% 0;
            }
        }

        .consent-label {
            display: flex;
            align-items: flex-start;
            cursor: pointer;
            margin: 0;
            padding: 0;
            font-size: clamp(12px, 1.6vw, 14px);
            flex-direction: column;
        }

        .consent-checkbox input[type="checkbox"] {
            width: 16px;
            height: 16px;
            accent-color: #5e86a6;
            flex-shrink: 0;
            margin: 5px;
        }

        .contact.shimmer {
            position: relative;
            overflow: hidden;
        }

        .contact.shimmer::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(
                120deg,
                transparent 0%,
                rgba(255, 255, 255, 0.4) 50%,
                transparent 100%
            );
            background-size: 200% 100%;
            animation: shimmer 2s ease-in-out;
            pointer-events: none;
            z-index: 1;
        }

        /* Состояние ошибки */
        .contact.error {
            border: 1px solid rgba(217, 83, 79, 0.3);
            box-shadow: 0 0 0 2px rgba(217, 83, 79, 0.1);
        }

        .error-message {
            color: var(--strike-red);
            font-size: clamp(11px, 1.4vw, 13px);
            margin-top: 5px;
            display: none;
            text-align: center;
            width: 100%;
            background: rgba(217, 83, 79, 0.1);
            padding: 8px 12px;
            border-radius: 6px;
            border: 1px solid rgba(217, 83, 79, 0.2);
        }

        .error-message.show {
            display: block;
        }

        /* Контактная форма с улучшенной адаптацией */
        .contact {
            filter: drop-shadow(0 30px 60px #f1deeb);
            margin-top: clamp(24px, 5vh, 44px);
            padding: clamp(20px, 3vw, 25px);
            border-radius: clamp(10px, 2vw, 14px);
            background: rgba(255,255,255,0.65);
            backdrop-filter: blur(6px);
            display: flex;
            flex-wrap: wrap;
            gap: clamp(15px, 2vw, 20px);
            align-items: center;
            justify-content: center;
            width: 100%;
            max-width: min(500px, 95vw);
            margin-left: auto;
            margin-right: auto;
            position: relative;
            z-index: 2;
            font-size: clamp(16px, 2.5vw, 20px);
            color: #2b3a44;
            transition: all 0.3s ease;
        }

        .contact > div:first-child {
            font-weight: 700;
            text-align: center;
            width: 100%;
            margin-bottom: 10px;
            font-size: clamp(18px, 3vw, 22px);
        }

        .contact .form {
            display: flex;
            flex-direction: column;
            gap: clamp(12px, 2vw, 16px);
            justify-content: center;
            align-items: center;
            width: 100%;
        }

        .contact input {
            font-size: clamp(14px, 1.8vw, 16px);
            width: 100%;
            max-width: 300px;
            font-family: Jost;
            padding: clamp(12px, 2vw, 14px) clamp(14px, 2vw, 16px);
            border-radius: clamp(8px, 1.5vw, 10px);
            border: 1px solid rgba(60,80,90,0.15);
            background: rgba(255,255,255,0.9);
            transition: all 0.3s ease;
        }

        .contact input:focus {
            outline: none;
            border-color: #5e86a6;
            box-shadow: 0 0 0 2px rgba(94, 134, 166, 0.1);
        }

        .contact button {
            font-family: Jost;
            font-size: clamp(14px, 2vw, 16px);
            padding: clamp(12px, 2vw, 14px) clamp(20px, 3vw, 25px);
            border-radius: clamp(8px, 1.5vw, 10px);
            border: none;
            background: var(--silk-text);
            color: white;
            cursor: pointer;
            white-space: nowrap;
            transition: all 0.3s ease;
            width: 100%;
            max-width: 200px;
            font-weight: 600;
            margin-top: 5px;
        }

        .contact button:hover {
            box-shadow: 0 8px 30px rgba(66,84,100,0.08);
            background: linear-gradient(180deg, rgba(221, 206, 223, 0.805), rgb(185, 197, 218));
            color: rgb(66, 84, 100);
            transform: translateY(-2px);
        }

        /* Стили для секции "Абонементы" */
        .info-tags {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: clamp(6px, 1vw, 10px);
            margin-bottom: clamp(24px, 4vh, 36px);
        }

        .info-tags span {
            border: 1px solid white;
            border-radius: clamp(20px, 4vw, 30px);
            padding: clamp(6px, 1vw, 8px) clamp(12px, 2vw, 18px);
            font-size: clamp(14px, 2vw, 20px);
            color: #3c3c50;
            background: rgb(255 222 240 / 66%);
            backdrop-filter: blur(8px);
            text-align: center;
        }

        .section {
            border: 1px solid rgba(60, 60, 80, 0.12);
            border-radius: clamp(10px, 1.5vw, 12px);
            background: radial-gradient(circle at 40% 40%, rgba(255,200,230,0.6), rgba(210,230,255,0.6), rgba(255,255,255,0.7));
            backdrop-filter: blur(8px);
            padding: clamp(10px, 2vw, 12px) clamp(14px, 2vw, 18px);
            margin-bottom: clamp(16px, 3vh, 20px);
        }

        .section-title {
            text-align: center;
            font-weight: 600;
            font-size: clamp(16px, 2.2vw, 28px);
            color: #3c3c50;
            margin: clamp(4px, 1vh, 6px) 0 clamp(12px, 2vh, 16px);
        }

        /* Планы/тарифы с улучшенной адаптацией */
        .plan {
            display: grid;
            grid-template-columns: 1fr minmax(140px, auto) minmax(62px, 48px);
            gap: clamp(8px, 1.5vw, 12px);
            align-items: center;
            background: var(--card-bg);
            border-radius: clamp(10px, 1.5vw, 12px);
            box-shadow: 0 6px 18px rgba(50,50,80,0.08);
            padding: clamp(12px, 2vw, 16px) clamp(14px, 2vw, 18px);
            margin-bottom: clamp(10px, 2vh, 14px);
            transition: transform .18s ease, box-shadow .18s ease;
        }

        .plan:hover {
            transform: translateY(-4px);
            box-shadow: 0 12px 30px rgba(50,50,80,0.12);
        }

        .plan .details {
            padding-right: clamp(4px, 1vw, 6px);
        }

        .plan h3 {
            font-size: clamp(16px, 2.2vw, 20px);
            margin: 0 0 clamp(4px, 1vh, 6px) 0;
            color: var(--accent-dark);
            letter-spacing: .2px;
        }

        .plan p {
            font-size: clamp(14px, 1.9vw, 18px);
            color: var(--muted-dark);
            margin: 0;
        }

        .plan .price {
            text-align: center;
            padding: clamp(4px, 1vh, 6px) clamp(6px, 1vw, 8px);
        }

        .plan .price strong {
            display: block;
            font-size: clamp(18px, 2.2vw, 20px);
            color: var(--accent-dark);
        }

        .plan .price del {
            display: block;
            font-size: clamp(18px, 1.4vw, 15px);
            color: var(--strike-red);
            text-decoration-line: line-through;
            text-decoration-thickness: 2px;
        }

        .arrow-btn {
            width: clamp(36px, 8vw, 44px);
            height: clamp(36px, 8vw, 44px);
            border-radius: 50%;
            background: linear-gradient(135deg, #eef4fb, #f9eef1);
            border: none;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            transition: transform .18s ease;
            box-shadow: 0 6px 16px rgba(40,50,70,0.06);
            font-size: clamp(16px, 3vw, 18px);
            color: var(--accent-dark);
            flex-shrink: 0;
        }

        .arrow-btn:hover {
            transform: scale(1.06);
        }

        /* Навигация с улучшенной адаптацией */
        .page-navigation {
            position: fixed;
            top: 50%;
            right: clamp(10px, 2vw, 20px);
            transform: translateY(-50%);
            z-index: 100;
            display: flex;
            flex-direction: column;
            gap: clamp(6px, 1vh, 10px);
        }

        /* ===== СТИЛИ ДЛЯ СЕКЦИИ НАПРАВЛЕНИЙ ===== */
        .directions-wrap {
            max-width:1300px;
            margin:40px auto;
            padding:20px;
            background: radial-gradient(circle at 40% 40%, rgb(225 239 255), rgb(231 211 222 / 47%), rgba(255, 255, 255, 0.7));
            border-radius: 20px;
            backdrop-filter: blur(10px);
        }

        /* ---------- pills ---------- */
        .pills {
            display:flex;
            flex-wrap:wrap;
            gap:10px;
            margin-bottom:30px;
            justify-content: center;
        }
        .pill {
            padding:10px 18px;
            border-radius:999px;
            border:1px solid rgba(80,95,110,0.1);
            background:rgba(255,255,255,0.8);
            color:var(--training-text);
            opacity:0.8;
            transition: all 0.3s ease;
            backdrop-filter: blur(5px);
            font-size: clamp(16px, 1.8vw, 20px);
        }
        .pill:hover {
            background:rgba(255,255,255,1);
            opacity:1;
            transform:translateY(-2px);
        }

        /* ===== ОБЩИЙ КОНТЕЙНЕР ===== */
        .training-grid {
            display: flex;
            flex-wrap: wrap;
            gap: 20px;
            justify-content: center;
            padding: 20px;
        }

        /* ===== КАРТОЧКА ===== */
        .training-card {
            background: white;
            border-radius: 20px;
            box-shadow: 0 4px 16px rgba(0,0,0,0.1);
            overflow: hidden;
            width: 390px;
            height: 320px;
            transition: all 0.4s ease;
            cursor: pointer;
            position: relative;
            flex-shrink: 0;
            transform-origin: center center;
        }

        .training-card:hover:not(.active) {
            transform: translateY(-5px);
            box-shadow: 0 8px 25px rgba(0,0,0,0.15);
        }

        .training-card.active {
            height: auto;
            min-height: 500px;
            box-shadow: 0 15px 40px rgba(0,0,0,0.25);
            transform: translateY(-8px);
            z-index: 10;
        }

        /* Анимация неактивных карточек */
        .training-grid.has-active .training-card:not(.active) {
            transform: scale(0.95) translateY(8px);
            opacity: 0.8;
            transition: all 0.3s ease;
        }

        .training-grid.has-active .training-card:not(.active):hover {
            transform: scale(0.97) translateY(6px);
            opacity: 0.9;
        }

        /* ===== ВИДЕО ===== */
        .training-card video {
            border-radius:20px;
            width: 100%;
            height: 320px;
            object-fit: cover;
            filter: blur(1px);
            transition: all 0.3s ease;
        }

        .training-card:hover video:not(.active video) {
            filter: grayscale(0.1) brightness(1);
        }

        .training-card.active video {
            filter: grayscale(0) brightness(1);
            height: 220px;
        }

        /* ===== ЗАГОЛОВОК ===== */
        .training-card h3 {
            position: absolute;
            top: 20px;
            left: 20px;
            color: white;
            font-size: clamp(18px, 2.2vw, 22px);
            font-weight: 700;
            text-transform: uppercase;
            text-shadow: 0 2px 4px rgba(0,0,0,0.4);
        }

        .training-card.active h3 {
            text-shadow: 0 4px 8px rgba(0,0,0,0.6);
        }

        /* ===== КНОПКА + / - ===== */
        .training-card .toggle {
            position: absolute;
            top: 15px;
            right: 15px;
            background: #e8d9e3;
            border-radius: 50%;
            width: 42px;
            height: 42px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: clamp(20px, 2.5vw, 24px);
            font-weight: 600;
            color: #444;
            transition: all 0.3s ease;
            z-index: 2;
            box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        }

        .training-card:hover .toggle:not(.active .toggle) {
            transform: scale(1.1);
            background: #f1e5ec;
        }

        .training-card.active .toggle {
            background: #5e91ff;
            color: white;
            transform: rotate(180deg);
            box-shadow: 0 6px 20px rgba(94, 145, 255, 0.4);
        }

        /* Анимация переключения знака */
        .toggle::after {
            content: '+';
        }
        .training-card.active .toggle::after {
            content: '-';
        }

        /* ===== СОДЕРЖИМОЕ КАРТОЧКИ ===== */
        .training-info {
            max-height: 0;
            overflow: hidden;
            opacity: 0;
            padding: 0 20px;
            color: #444;
            font-size: clamp(14px, 1.8vw, 16px);
            line-height: 1.6;
            transition: all 0.4s ease;
        }
        .training-card.active .training-info {
            opacity: 1;
            max-height: 1000px;
            padding: 25px 20px 20px;
        }

        /* ===== ШКАЛА СЛОЖНОСТИ ===== */
        .difficulty {
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            margin-top: 20px;
            font-weight: 600;
            font-size: clamp(12px, 1.6vw, 14px);
            text-transform: uppercase;
            opacity: 0;
            transition: all 0.3s ease 0.1s;
        }

        .training-card.active .difficulty {
            opacity: 1;
        }

        .difficulty span.label {
            font-style: italic;
            margin-bottom: 8px;
            color: #4e4e4e;
        }

        .difficulty .bars {
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .difficulty .bar {
            width: 20px;
            height: 20px;
            border-radius: 4px;
            background: #e0e0e0;
            transition: all 0.3s ease 0.2s;
            opacity: 0;
        }

        .training-card.active .difficulty .bar {
            opacity: 1;
        }

        .difficulty .bar.active {
            background: linear-gradient(135deg, #d6c3d7, #5e91ff);
        }

        .difficulty .level {
            margin-left: 10px;
            font-style: italic;
            font-weight: 500;
            color: #4a4a4a;
            transition: all 0.3s ease 0.3s;
            opacity: 0;
        }

        .training-card.active .difficulty .level {
            opacity: 1;
        }

        /* ===== КНОПКА ===== */
        .training-card .card-button {
            font-family: Jost;
            background: #f4f2ed;
            border: none;
            padding: 12px 20px;
            border-radius: 12px;
            width: calc(100% - 40px);
            margin: 15px 20px;
            display: block;
            cursor: pointer;
            font-weight: 600;
            font-size: clamp(14px, 1.8vw, 16px);
            color: #444;
            transition: all 0.3s ease;
            text-align: center;
            position: absolute;
            bottom: 15px;
            left: 0;
            right: 0;
            opacity: 1;
            transform: none;
        }

        .training-card .card-button:hover {
            background: #e8e4dc;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        }

        .training-card.active .card-button {
            background: linear-gradient(135deg, #5e91ff, #8a6fe8);
            color: white;
            position: static;
            margin: 20px auto;
            transform: none;
            box-shadow: 0 4px 15px rgba(94, 145, 255, 0.4);
        }

        .training-card.active .card-button:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(94, 145, 255, 0.6);
        }

        /* Анимация для текста внутри карточки */
        .training-card p {
            transition: all 0.3s ease 0.05s;
            opacity: 0;
        }

        .training-card.active p {
            opacity: 1;
        }

        /* Стили для секции контактов */
        .contacts-section {
            background: radial-gradient(circle at 40% 40%, rgba(255,200,230,0.6), rgba(210,230,255,0.6), rgba(255,255,255,0.7));
            min-height: 50vh;
            padding: clamp(80px, 10vh, 100px) clamp(16px, 4vw, 32px) clamp(30px, 6vh, 48px);
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .contacts-wrap {
            max-width: 1200px;
            width: 100%;
            margin: 0 auto;
        }

        .contacts-title {
            font-family: 'Cormorant Unicase', serif;
            font-size: clamp(36px, 8vw, 72px);
            text-align: center;
            color: var(--accent-dark);
            margin-bottom: clamp(30px, 5vh, 50px);
            line-height: 0.95;
        }

        .contacts-content {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: clamp(20px, 4vw, 40px);
            align-items: stretch;
            min-height: 500px;
        }

        .contact-info {
            background: rgba(255, 255, 255, 0.9);
            padding: clamp(20px, 3vw, 30px);
            border-radius: clamp(16px, 2vw, 20px);
            box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
            backdrop-filter: blur(10px);
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            height: 100%;
        }

        .contact-info h3 {
            font-family: 'Cormorant Unicase', serif;
            font-size: clamp(24px, 3vw, 28px);
            color: var(--accent-dark);
            margin-bottom: clamp(15px, 2vh, 20px);
        }

        .contact-details {
            display: flex;
            flex-direction: column;
            gap: clamp(12px, 2vh, 16px);
            flex-grow: 1;
        }

        .contact-item {
            display: flex;
            align-items: flex-start;
            gap: 12px;
            font-size: clamp(14px, 1.8vw, 16px);
            color: var(--muted-dark);
        }

        .contact-item strong {
            color: var(--accent-dark);
            min-width: 100px;
        }

        .map-container {
            background: rgba(255, 255, 255, 0.9);
            padding: clamp(16px, 2vw, 20px);
            border-radius: clamp(16px, 2vw, 20px);
            box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
            backdrop-filter: blur(10px);
            overflow: hidden;
            height: 100%;
            display: flex;
            align-items: stretch;
        }

        .map-frame {
            width: 100%;
            height: 100%;
            min-height: 400px;
            border: none;
            border-radius: clamp(12px, 1.5vw, 16px);
            filter: grayscale(100%) contrast(110%);
            transition: filter 0.3s ease;
        }

        .map-frame:hover {
            filter: grayscale(50%) contrast(110%);
        }

        .social-links {
            margin-top: clamp(20px, 3vh, 30px);
        }

        .social-links h4 {
            font-family: 'Jost', sans-serif;
            font-size: clamp(16px, 2vw, 18px);
            color: var(--accent-dark);
            margin-bottom: clamp(12px, 2vh, 16px);
            font-weight: 600;
        }

        .social-icons {
            display: flex;
            gap: clamp(12px, 2vw, 16px);
            flex-wrap: wrap;
        }

        .social-icon {
            width: clamp(44px, 6vw, 50px);
            height: clamp(44px, 6vw, 50px);
            border-radius: 50%;
            background: linear-gradient(135deg, #f8f9fa, #e9ecef);
            display: flex;
            align-items: center;
            justify-content: center;
            text-decoration: none;
            transition: all 0.3s ease;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
            border: 1px solid rgba(255, 255, 255, 0.5);
        }

        .social-icon:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
            background: linear-gradient(135deg, #ffffff, #f1f3f4);
        }

        .social-icon i {
            font-size: clamp(18px, 2.5vw, 20px);
            color: #5b667d;
            transition: color 0.3s ease;
        }

        /* Цвета при наведении для разных соцсетей */
        .social-icon.telegram:hover i {
            color: #0088cc;
        }

        .social-icon.whatsapp:hover i {
            color: #25D366;
        }

        .social-icon.instagram:hover i {
            color: #E4405F;
        }

        .social-icon.vk:hover i {
            color: #0077FF;
        }

        /* Стили для секции команды */
        #command {
            width: 100%;
            max-width: 1200px;
            margin: 0 auto;
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 70px;
            padding: 0 20px;
            box-sizing: border-box;
        }

        .text-blocks {
            flex: 0 1 400px;
            display: flex;
            flex-direction: column;
            gap: 30px;
        }

        .card1 {
            text-align: center;
            background: var(--dreamy-fog);
            padding: 28px 34px;
            border-radius: 60px;
            box-shadow: 0 8px 30px rgba(27,39,49,0.06);
            font-size: 18px;
            line-height: 1.45;
            letter-spacing: 0.2px;
            color: #2b3a44;
        }

        .trainer-section {
            flex: 0 1 600px;
            position: relative;
            padding-bottom: 40px;
        }

        .trainer-section h2 {
            font-size: 40px;
        }

        .carousel-nav {
            position: absolute;
            top: 50%;
            width: calc(100% + 100px);
            left: -50px;
            display: flex;
            justify-content: space-between;
            z-index: 10;
            transform: translateY(-50%);
            pointer-events: none;
        }

        .trainer-carousel {
            position: relative;
            width: 100%;
            min-height: 400px;
            overflow: hidden;
        }

        .trainer-slide img {
            width: 420px;
            height: 550px;
            max-width: 100%;
            z-index: 1;
            object-fit: cover;
            object-position: center top;
            border-radius:20px;
        }

        .trainer-slide {
            position: absolute;
            top: 0;
            width: 760px;
            height: 100%;
            opacity: 0;
            transition: opacity 0.4s ease;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .trainer-slide.active {
            opacity: 1;
            position: relative;
        }

        .trainer-content {
            position: relative;
            text-align: left;
            z-index: 2;
            width: 100%;
            min-height: 200px;
        }

        .role-pill {
            text-align: center;
            display: inline-block;
            border-radius: 999px;
            padding: 8px 18px;
            font-size: 18px;
            border: 1px solid rgba(66,84,100,0.1);
            background: transparent;
            color: var(--muted);
            margin-bottom: 100px;
            min-height: 36px;
            width: 300px;
        }

        .trainer h2 {
            font-family: 'Jost', sans-serif;
            font-weight: 300;
            font-size: 48px;
            margin-bottom: 8px;
            color: #425464;
            min-height: 60px;
            display: flex;
            align-items: center;
        }

        .subhead {
            font-size: 20px;
            color: var(--muted);
            margin-bottom: 24px;
        }

        .cta {
            display: inline-block;
            padding: 18px 46px;
            border-radius: 48px;
            background: rgba(255,200,230,0.6);
            box-shadow: 0 8px 30px rgba(27,39,49,0.06);
            border: none;
            font-weight: 600;
            letter-spacing: 2px;
            cursor: pointer;
            transition: all 0.2s ease;
            color: #425464;
            font-family: 'Jost', sans-serif;
        }

        .cta:hover {
            transform: translateY(-5px);
            box-shadow: 0 12px 30px rgba(27,39,49,0.12);
        }

        .trainer img {
            position: absolute;
            right: 0;
            bottom: 0;
            width: 500px;
            height: 600px;
            max-width: 100%;
            z-index: 1;
            object-fit: cover;
            object-position: center top;
        }

        /* Кнопки навигации */
        .carousel-nav {
            position: static;
            width: 100%;
            display: flex;
            justify-content: center;
            gap: 20px;
            margin-top: 30px;
            pointer-events: all;
            transform: none;
        }

        .carousel-btn {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.95);
            border: 1px solid rgba(66,84,100,0.15);
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.3s ease;
            font-size: 20px;
            color: #425464;
            box-shadow: 0 4px 15px rgba(0,0,0,0.1);
            margin: 0;
        }

        .carousel-btn:hover {
            background: white;
            transform: scale(1.1);
            box-shadow: 0 6px 20px rgba(0,0,0,0.15);
            border-color: rgba(66,84,100,0.3);
        }

        .carousel-nav {
            width: 100%;
            left: 0;
        }

        /* Стили для опросника */
        .quiz-section {
            background-image: url("/Image/Opros.png");
                        background-size: cover;
            background-repeat: no-repeat;
            background-position: center;
            min-height: 100vh;
            padding: clamp(80px, 10vh, 100px) clamp(16px, 4vw, 32px) clamp(30px, 6vh, 48px);
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .quiz-container {
            display: flex;
            background: #fff;
            border-radius: 20px;
            overflow: hidden;
            width: 90%;
            max-width: 900px;
            height: 500px;
            box-shadow: 0 6px 20px rgba(0,0,0,0.1);
        }

        .quiz-left {
            flex: 1;
            background: radial-gradient(circle at 40% 40%, rgb(255 200 240 / 60%), rgb(238 215 203 / 65%), rgba(255, 255, 255, 0.7));;
            color: #425464;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            padding: 20px;
            text-align: center;
        }

        .quiz-left h1 {
            font-size: 28px;
            margin: 0 0 15px;
            line-height: 1.2;
            color: #425464;
            text-align: center;
        }

        .quiz-left p {
            font-size: 18px;
            margin: 0;
            opacity: 0.9;
        }

        .quiz-right {
            flex: 1;
            padding: 30px;
            position: relative;
            display: flex;
            flex-direction: column;
            justify-content: center;
        }

        .quiz-slide {
            display: none;
            animation: fade 0.5s ease-in-out;
        }

        .quiz-slide.active {
            display: block;
        }

        .quiz-slide h2 {
            text-align: center;
            color: #425464;
            margin-bottom: 20px;
            font-size: 24px;
        }

        .quiz-slide label {
            display: block;
            font-weight: 600;
            margin-top: 12px;
            color: #425464;
        }
/* Минималистичный вариант */
.quiz-slide:first-child label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 5px;
    padding: 5px 0;
    cursor: pointer;
}

.quiz-slide:first-child input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
    flex-shrink: 0;
}

.quiz-slide:first-child label span {
    font-weight: 500;
    color: #333;
    font-size: 15px;
}
        .quiz-slide input, .quiz-slide select, .quiz-slide textarea {
            width: 100%;
            padding: 12px;
            border-radius: 8px;
            border: 1px solid #ccc;
            margin-top: 6px;
            font-size: 16px;
            box-sizing: border-box;
            font-family: 'Jost', sans-serif;
        }

        .quiz-slide textarea {
            resize: vertical;
            min-height: 80px;
        }

        .quiz-slide button {
            background-color: #fde0f1;
            color: #435364;
            border: none;
            padding: 12px 20px;
            border-radius: 10px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            margin-top: 20px;
            width: 100%;
            transition: background 0.3s;
            font-family: 'Jost', sans-serif;
        }

        .quiz-slide button:hover {
            background-color: #fac1e2;
        }

        .quiz-modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.6);
            display: flex;
            justify-content: center;
            align-items: center;
            visibility: hidden;
            opacity: 0;
            transition: 0.3s;
            z-index: 2000;
        }

        .quiz-modal.active {
            visibility: visible;
            opacity: 1;
        }

        .quiz-modal-content {
            background: #fff;
            padding: 30px;
            border-radius: 15px;
            text-align: center;
            width: 350px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.2);
        }

        .quiz-modal-content p {
            margin-bottom: 20px;
            font-size: 18px;
            color: #333;
        }

        .quiz-modal-content input {
            width: 100%;
            padding: 12px;
            border-radius: 8px;
            border: 1px solid #ccc;
            margin-bottom: 15px;
            font-size: 16px;
            box-sizing: border-box;
        }

        .quiz-modal-content button {
            background-color: #5e86a6;
            color: #fff;
            border: none;
            padding: 12px 20px;
            border-radius: 10px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            width: 100%;
            transition: background 0.3s;
        }

        .quiz-modal-content button:hover {
            background-color: #4a6f8a;
        }

        @keyframes fade {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        /* Unusual style names */
        /* Контейнер FAQ */
/* Контейнер FAQ */
.horizon-sleeve {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 2px;
    width: 100%;
    max-width: 1200px;
    border-radius: var(--gentle-round);
    overflow: hidden;
    box-shadow: var(--soft-shadow);
    background: white;
    transition: all 0.5s ease;
    height: 380px; /* Фиксированная высота для десктопа */
    position: relative;
    MARGIN-BOTTOM:40PX;
}

/* Карточка */
.melt-card {
    flex: 1;
    min-height: 370px;
    padding: 35px;
    background: var(--dreamy-fog);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-right: 1px solid rgba(120,130,150,0.25);
    position: relative;
    cursor: pointer;
    transition: all 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
    overflow: hidden;
    height: 100%; /* Занимает всю высоту родителя */
}
.melt-card:last-child { border-right: none; }

/* Контейнер для контента */
.melt-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.7s cubic-bezier(0.25, 0.8, 0.25, 1);
    padding: 0 35px;
}

/* Заголовок */
.melt-title {
    font-family: "Cormorant Unicase", serif;
    font-size: 22px;
    text-align: center;
    color: var(--silk-text);
    transition: all 0.6s ease 0.1s;
    width: 100%;
    margin-top: 20px;
    margin-bottom: 0;
}

/* Описание */
.melt-desc {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    font-size: 15px;
    line-height: 1.6;
    color: var(--silk-text);
    text-align: left;
    transition: all 0.7s cubic-bezier(0.25, 0.8, 0.25, 1);
    margin-top: 0;
    width: 100%;
    transform: translateY(20px);
}

/* Кнопка */
.melt-button {
    font-family: Jost;
    opacity: 0;
    transform: translateY(20px);
    background: linear-gradient(45deg, #7A90A8, #99badd);
    border: none;
    color: white;
    font-weight: 700;
    padding: 16px 40px;
    border-radius: 50px;
    margin-top: 20px;
    font-size: 18px;
    box-shadow: var(--soft-shadow);
    cursor: pointer;
    transition: all 0.5s ease 0.2s;
    width: auto;
    pointer-events: auto;
}

.melt-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 20px rgba(32, 41, 70, 0.3);
    background: linear-gradient(45deg, #86c1ff, #99badd);
}

/* Стили для активной/раскрытой карточки на десктопе */
@media (min-width: 901px) {
    .melt-card:hover .melt-content,
    .melt-card.active .melt-content {
        top: 35%;
        transform: translate(-50%, -35%);
    }
    
    .melt-card:hover .melt-desc,
    .melt-card.active .melt-desc {
        opacity: 1;
        max-height: 200px;
        transform: translateY(0);
        margin-top: 20px;
    }
    
    .melt-card:hover .melt-button,
    .melt-card.active .melt-button {
        opacity: 1;
        transform: translateY(0);
    }
    
    .melt-card:hover .melt-title,
    .melt-card.active .melt-title {
        transform: translateY(-20px);
    }
}

/* Мобильные стили остаются прежними */
@media (max-width: 900px) {
    .horizon-sleeve {
        flex-direction: column;
        height: auto;
    }
    
    .melt-card {
        min-height: 80px;
        padding: 20px;
        transition: all 0.5s ease;
    }
    
    .melt-content {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        padding: 0;
    }
    
    .melt-card.expanded {
        min-height: 350px;
    }
    
    .melt-card.expanded .melt-desc {
        opacity: 1;
        max-height: 200px;
        transform: translateY(0);
        margin-top: 15px;
    }
    
    .melt-card.expanded .melt-button {
        opacity: 1;
        transform: translateY(0);
    }
    
    .melt-card.expanded .melt-title {
        transform: translateY(-10px);
    }
}

/* Кнопка-анимация */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.08); }
    100% { transform: scale(1); }
}
.melt-button:active {
    animation: pulse 0.3s ease-in-out;
}

        /* --- АДАПТИВ --- */
        @media (max-width: 900px) {

            h2 {
                font-size: 40px;
                margin-bottom: 40px;
            }
            h1 {
                font-size: 50px;
                margin-bottom: 40px;
            }
            
            .horizon-sleeve {
                flex-direction: column;
                box-shadow: none;
                gap: 16px;
                background: transparent;
            }
            
            .melt-card {
                border: none;
                min-height: auto;
                padding: 30px 25px;
                flex: none;
                transition: all 0.5s ease;
                border-radius: var(--gentle-round);
                background: var(--dreamy-fog);
            }

            .melt-title {
                font-size: 28px;
                text-align: center;
                margin-bottom: 0;
            }
            
            .melt-desc {
                opacity: 0;
                max-height: 0;
                margin-top: 0;
                font-size: 16px;
                transform: translateY(10px);
            }
            
            .melt-button {
                opacity: 0;
                transform: translateY(10px);
                font-size: 16px;
                padding: 14px 30px;
                transition: all 0.4s ease 0.1s;
            }

            /* Раскрытие по клику */
            .melt-card.expanded {
                background: var(--dreamy-fog);
            }
            
            .melt-card.expanded .melt-title {
                text-align: left;
                margin-bottom: 15px;
            }
            
            .melt-card.expanded .melt-desc {
                opacity: 1;
                max-height: 400px;
                margin-top: 10px;
                transform: translateY(0);
            }
            
            .melt-card.expanded .melt-button {
                opacity: 1;
                transform: translateY(0);
            }

            /* Адаптация опросника */
            .quiz-container {
                flex-direction: column;
                height: auto;
                max-width: 500px;
            }
            
            .quiz-left {
                padding: 30px 20px;
            }
            
            .quiz-left h1 {
                font-size: 24px;
            }
            
            .quiz-right {
                padding: 30px 20px;
            }
        }

        /* Hover-эффекты только для десктопов */
        @media (min-width: 901px) {
            .horizon-sleeve:hover .melt-card {
                flex: 1;
            }
            
            .melt-card:hover {
                flex: 3 !important;
                transform: scale(1.02);
                box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
            }
            
            .melt-card:hover .melt-title {
                text-align: left;
                margin-bottom: 25px;
                align-self: flex-start;
            }
            
            .melt-card:hover .melt-content {
                align-items: flex-start;
            }
            
            .melt-card:hover .melt-desc {
                opacity: 1;
                max-height: 300px;
                margin-top: 0;
                transform: translateY(0);
                transition: all 0.7s cubic-bezier(0.25, 0.8, 0.25, 1) 0.1s;
            }
            
            .melt-card:hover .melt-button {
                opacity: 1;
                transform: translateY(0);
                align-self: flex-start;
                transition: all 0.5s ease 0.3s;
            }

            /* Плавные переходы для всех карточек */
            .melt-card {
                transition: 
                    flex 0.8s cubic-bezier(0.25, 0.8, 0.25, 1),
                    transform 0.6s ease,
                    box-shadow 0.6s ease;
            }

            .melt-title,
            .melt-desc,
            .melt-button {
                transition-timing-function: cubic-bezier(0.25, 0.8, 0.25, 1);
            }
        }

        /* Улучшенная анимация для плавности */
        @media (min-width: 901px) {
            .melt-card {
                will-change: transform, flex;
            }
            
            .melt-desc {
                will-change: opacity, max-height, transform;
            }
            
            .melt-button {
                will-change: opacity, transform;
            }
        }

        /* Медиа-запросы для специфичных устройств */
        @media (max-width: 768px) {
            
            .header {
                padding: 0 16px;
            }

            .nav-menu {
                position: fixed;
                top: 70px;
                left: -100%;
                width: 100%;
                background: rgb(255 255 255 / 94%);
                backdrop-filter: blur(10px);
                flex-direction: column;
                align-items: center;
                padding: 20px 0;
                gap: 20px;
                transition: left 0.3s ease;
                box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
            }

            .nav-menu.active {
                left: 0;
            }

            .hamburger {
                display: flex;
            }

            /* Исправления для блока "О студии" на мобильных */
            .hero {
                align-items: center;
                text-align: center;
            }
            
            .hero-left {
                text-align: center;
            }
            
            .hero-left > div:first-child {
                justify-content: center;
            }
            
            h1 {
                text-align: center;
            }
            
            .subtitle {
                text-align: center;
                max-width: 100%;
            }
            
            .why {
                text-align: center;
            }

            /* Перемещение персонажа на мобильных */
            .hero-right {
                display: none;
            }

            /* Опускаем карточку "Наша миссия" на 100px и поднимаем над персонажем */
            .card.right {
                order: 2;
                position: relative;
                z-index: 1;
            }

            /* Остальные карточки остаются на своем месте */
            .card.big-left,
            .card.mid {
                order: 1;
            }

            .cards {
                justify-content: center; /* Центрируем вместо space-evenly */
        align-items: center; /* Центрируем по вертикали */
        gap: 20px;
            }
            
            .card {
                flex: 0 1 auto; /* Убираем растягивание */
        width: 100%;
        max-width: 400px;
            }
            
            .contact {
                max-width: 90vw;
                padding: clamp(15px, 3vw, 20px);
            }
            
            .contact .form {
                gap: clamp(10px, 2vw, 14px);
            }
            
            .contact input {
                max-width: 100%;
            }
            
            .consent-checkbox {
                width: 100%;
                text-align: center;
                padding: clamp(10px, 2vw, 12px);
            }
            
            .consent-label {
                justify-content: center;
                text-align: center;
            }
            
            .contact button {
                max-width: 100%;
            }

            .directions-wrap {
                margin: 20px auto;
                padding: 15px;
            }

            .training-grid {
                padding: 10px;
                gap: 15px;
            }

            .training-card {
                width: 100%;
                max-width: 400px;
                height: 280px;
            }

            .training-card.active {
                width: 100%;
                max-width: 400px;
                min-height: 450px;
                transform: translateY(-4px);
            }

            .training-card video {
                height: 280px;
            }

            .training-card.active video {
                height: 200px;
            }

            .training-card h3 {
                font-size: 18px;
            }

            .training-card .card-button {
                width: calc(100% - 30px);
                margin: 12px 15px;
                font-size: 14px;
            }

            .directions-title {
                font-size: 44px;
            }

            /* На мобильных неактивные карточки плавно скрываются */
            .training-grid.has-active .training-card:not(.active) {
                opacity: 0.6;
                transform: scale(0.92) translateY(10px);
            }

            .contacts-content {
                grid-template-columns: 1fr;
                gap: clamp(15px, 3vh, 25px);
                min-height: auto;
            }

            .map-frame {
                height: 400px;
                min-height: 300px;
            }

            .contact-info {
                order: 2;
            }

            .map-container {
                order: 1;
            }

            .social-icons {
                justify-content: center;
            }
            
            .social-links h4 {
                text-align: center;
            }

            /* Адаптация команды */
            #command {
                flex-direction: column;
                gap: 40px;
                padding: 0 20px;
            }
            
            .text-blocks {
                flex: none;
                width: 100%;
                max-width: 600px;
                order: 2;
            }
            
            .trainer-section {
                flex: none;
                width: 100%;
                max-width: 600px;
                order: 1;
                padding-bottom: 30px;
            }
            
            .trainer-carousel {
                min-height: 350px;
            }
            
            .trainer-slide {
                flex-direction: column;
                align-items: center;
    justify-content: flex-start;
                width: 100% !important;
                max-width: 100% !important;
                left: 0 !important;
            }
            
            .trainer-content {
                text-align: center;
            }
            
            .trainer-section h2 {
                font-size: 25px;
            }
            
            .trainer-slide img {
                width: 250px;
                height: 250px;
                position: static !important;
                margin: 0 auto;
                display: block;
                margin-top: 20px;
            }
            
            .watermark {
                visibility: hidden;
            }
            
            .role-pill {
                margin-bottom: 30px;
                width: 250px;
            }
            
            .trainer h2 {
                font-size: 36px;
                min-height: 50px;
                justify-content: center;
            }
            
            .carousel-nav {
                margin-top: 25px;
            }
        }

        @media (max-width: 480px) {
            .hero-left > div:first-child {
                flex-direction: column;
                gap: clamp(8px, 2vh, 12px);
                text-align: center;
            }
            
            .plan {
                grid-template-columns: 1fr;
                gap: 12px;
                text-align: center;
            }
            
            .plan .price {
                order: -1;
            }
            
            .arrow-btn {
                justify-self: center;
            }
            
            .subtitle {
                max-width: 100%;
            }
            
            .map-frame {
                height: 300px;
            }

            .contact-item {
                flex-direction: column;
                gap: 6px;
            }

            .contact-item strong {
                min-width: auto;
            }

            .consent-checkbox {
                flex-direction: column;
                gap: 8px;
            }
            
            .consent-label {
                flex-direction: column;
                gap: 6px;
            }
            
            .contact {
                max-width: 95vw;
            }
            .carousel-nav {
                margin-top: 20px;
                gap: 12px;
            }
            
            .carousel-btn {
                width: 40px;
                height: 40px;
                font-size: 16px;
            }
        }

        @media (min-width: 769px) and (max-width: 1024px) {
            .hero-right {
                display: none;
            }
            
            .cards {
                margin-top: clamp(150px, 15vh, 180px);
            }
        }

        @media (orientation: landscape) and (max-height: 500px) {
            .about-section, .subscription-section, .directions-section, .contacts-section, .quiz-section {
                min-height: auto;
                padding: 80px 16px 20px;
            }
            
            .hero {
                min-height: auto;
                gap: 20px;
            }
            
            .cards {
                margin-top: 60px;
            }
            
            .card {
                min-height: auto;
            }
            
            .quiz-container {
                height: 400px;
            }
        }

        /* Поддержка устройств с курсором и касанием */
        @media (hover: hover) and (pointer: fine) {
            .join-btn:hover, .mid .more:hover, .arrow-btn:hover {
                transform: translateY(-4px) scale(1.02);
            }
        }

        @media (hover: none) and (pointer: coarse) {
            .join-btn:active, .mid .more:active, .arrow-btn:active {
                transform: scale(0.98);
            }
        }

        /* Поддержка старых браузеров */
        @supports not (backdrop-filter: blur(6px)) {
            .contact, .info-tags span, .section {
                background: rgba(255, 255, 255, 0.9);
            }
        }

        /* Отключаем сложные анимации для пользователей, которые предпочитают уменьшенное движение */
        @media (prefers-reduced-motion: reduce) {
            .training-card,
            .training-card * {
                transition-duration: 0.1s !important;
                animation: none !important;
            }
            
            .contact.shimmer::before {
                animation: none !important;
            }
        }

        /* Улучшения для печати */
        @media print {
            .page-navigation, .hero-right, .join-btn, .arrow-btn, .header {
                display: none;
            }
            
            .about-section, .subscription-section, .directions-section {
                background: none;
                min-height: auto;
            }
            
            .card {
                box-shadow: none;
                border: 1px solid #ccc;
            }
        }

        /* Canvas для фейерверка */
        canvas {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            display: none;
            z-index: 9999;
        }

        .visual-realm {
            width: 100%;
            padding: 0px 0;
            overflow: hidden;

        }

        .realm-heading {
            text-align: center;
            font-size: 2.8rem;
            letter-spacing: 2px;
            text-transform: uppercase;
            margin-bottom: 20px;
            font-weight: 700;
            animation: fadeDown 1s ease forwards;
        }

        .realm-subtext {
            text-align: center;
            max-width: 650px;
            margin: 0 auto 50px;
            font-size: 1.2rem;
            color: #bbb;
            line-height: 1.6;
            opacity: 0;
            animation: fadeUp 1.3s ease 0.3s forwards;
        }

.motion-wrapper {
            width: 100%;
            position: relative;
            overflow: hidden;
        }

        .motion-track {
            display: flex;
            transition: transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
            height: 600px;
        }

        .motion-frame {
            min-width: 100%;
            height: 100%;
            position: relative;
            opacity: 0;
            transform: scale(1.05);
            transition: opacity 1s ease, transform 1.5s ease;
        }

        .motion-frame.active {
            opacity: 1;
            transform: scale(1);
        }

        .motion-image {
            width: 100%;
            height: 600px;
            object-fit: cover;
            object-position: center;
            transform: scale(1.05);
            transition: transform 1.5s ease;
        }

        .motion-frame.active .motion-image {
            transform: scale(1);
        }

        .motion-frame.active .frame-caption {
            opacity: 1;
            transform: translateY(0);
        }


.motion-frame.active .frame-caption {
    opacity: 1;
    transform: translateY(0);
}

        .nav-orb {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background: rgba(255, 255, 255, 0.15);
            color: white;
            border: none;
            width: 65px;
            height: 65px;
            border-radius: 50%;
            font-size: 2rem;
            cursor: pointer;
            transition: all 0.4s ease;
            z-index: 10;
            display: flex;
            align-items: center;
            justify-content: center;
            backdrop-filter: blur(5px);
        }

        .nav-orb:hover {
            background: rgba(255, 255, 255, 0.35);
            transform: translateY(-50%) scale(1.1);
        }

        .orb-left {
            left: 30px;
        }

        .orb-right {
            right: 30px;
        }

        .dot-lane {
            display: flex;
            justify-content: center;
            margin-top: 35px;
            gap: 12px;
            opacity: 0;
            animation: fadeUp 1.5s ease 0.5s forwards;
        }

        .dot {
            width: 14px;
            height: 14px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.4);
            cursor: pointer;
            transition: all 0.4s ease;
            border: 2px solid transparent;
        }

        .dot.active {
            background: #fff;
            transform: scale(1.3);
            box-shadow: 0 0 15px rgba(255, 255, 255, 0.6);
        }

        .dot:hover {
            background: rgba(255, 255, 255, 0.7);
        }

        @keyframes fadeUp {
            from { opacity: 0; transform: translateY(40px); }
            to { opacity: 1; transform: translateY(0); }
        }

        @keyframes fadeDown {
            from { opacity: 0; transform: translateY(-40px); }
            to { opacity: 1; transform: translateY(0); }
        }

        @media (max-width: 768px) {
            .motion-track { height: 400px; }
            .motion-image { height: 400px; }
            .nav-orb { width: 55px; height: 55px; font-size: 1.6rem; }
        }

        @media (max-width: 480px) {
            .motion-track { height: 300px; }
            .motion-image { height: 300px; }
            .realm-heading { font-size: 2rem; }
            .realm-subtext { font-size: 1rem; }
        }
        
        
        
               /* Стили для вертикальной карусели видео */
.stellarVidCarouselSection {
    width: 100%;
    max-width: 1200px;
    background: radial-gradient(circle at 40% 40%, rgba(255,200,230,0.6), rgba(210,230,255,0.6), rgba(255,255,255,0.7));
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 15px 35px rgba(184, 202, 223, 0.6);
    position: relative;
    overflow: hidden;
    margin: 40px auto;
}

.stellarVidCarouselSection::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
    z-index: -1;
}

.nebulaSectionTitle {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
    color: #425464;
    font-family: 'Cormorant Unicase', serif;
}

.nebulaSectionTitle::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 10%;
    width: 80%;
    height: 3px;
    background: linear-gradient(to right, transparent, #5e86a6, transparent);
}

.cosmicCarouselWrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 40px;
    position: relative;
}

.stellarFixedCaptionPanel {
    flex: 0 0 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 30px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.9);
    height: 500px;
    position: sticky;
    top: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(66, 84, 100, 0.1);
}

.stellarFixedCaptionPanel h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    text-align: center;
    color: #5b6c87;
    font-family: 'Cormorant Unicase', serif;
}

.stellarFixedCaptionPanel p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #435364;
}

.galacticVideoViewport {
    flex: 1;
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    height: 700px;
    background: rgba(255, 255, 255, 0.05);
}

.quantumVideoScrollContainer {
    height: 100%;
    overflow-y: auto;
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory;
}

.quantumVideoScrollContainer::-webkit-scrollbar {
    width: 8px;
}

.quantumVideoScrollContainer::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.quantumVideoScrollContainer::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #f7f7f7, #8a6fe8);
    border-radius: 10px;
}

.celestialVideoFrame {
    scroll-snap-align: start;
    height: 700px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    position: relative;
}

.celestialVideoFrame iframe {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.celestialVideoFrame.active iframe {
    transform: scale(1.02);
    box-shadow: 0 0 20px rgba(94, 134, 166, 0.4);
}

.nebulaControlPanel {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.cosmicControlButton {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #425464;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.cosmicControlButton::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 ease;
}

.cosmicControlButton:hover::before {
    left: 100%;
}

.cosmicControlButton:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
    color: #5e86a6;
}

.stellarIndicatorDots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.pulsarDot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(66, 84, 100, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.pulsarDot.active {
    background: #5e86a6;
    transform: scale(1.2);
}

.pulsarDot::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    border: 1px solid #5e86a6;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pulsarDot.active::after {
    opacity: 1;
}

/* Мобильная адаптация для карусели */
@media (max-width: 900px) {
    .stellarVidCarouselSection {
        padding: 20px;
        margin: 20px auto;
    }
    
    .cosmicCarouselWrapper {
        flex-direction: column;
        gap: 20px;
    }
    
    .stellarFixedCaptionPanel {
        order: 1;
        flex: none;
        width: 100%;
        height: auto;
        min-height: 200px;
        margin-bottom: 0;
        position: static;
    }
    
    .galacticVideoViewport {
        order: 2;
        width: 100%;
        height: 600px;
    }
    
    .celestialVideoFrame {
        height: 600px;
    }
    
    .nebulaSectionTitle {
        font-size: 2rem;
    }
    
    .nebulaControlPanel {
        display: none;
    }
    
    .quantumVideoScrollContainer {
        scroll-snap-type: y mandatory;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .celestialVideoFrame {
        scroll-snap-align: start;
    }
}

@media (max-width: 600px) {
    .stellarVidCarouselSection {
        padding: 15px;
    }
    
    .nebulaSectionTitle {
        font-size: 1.8rem;
    }
    
    .stellarFixedCaptionPanel {
        padding: 20px;
    }
    
    .stellarFixedCaptionPanel h3 {
        font-size: 1.5rem;
    }
    
    .stellarFixedCaptionPanel p {
        font-size: 1rem;
    }
    
    .galacticVideoViewport {
        height: 600px;
    }
    
    .celestialVideoFrame {
        height: 600px;
    }
}