/* ===== DARK PREMIUM STYLE ===== */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600&display=swap');

:root {
    --bg-body: #0d0d0d;
    --text-main: #ffffff;
    --text-muted: #888888;
    --line: rgba(255, 255, 255, 0.1);
    --transition: 0.5s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Manrope', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-body);
    background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 30px 30px;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-buttons {
    margin-top: 50px;
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-btn {
    background: rgba(255,255,255,0.9);
    color: #000;
    padding: 15px 25px;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    min-width: 200px;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
}

.hero-btn:hover {
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* ИСПРАВЛЕНИЕ ДЛЯ ТАРИФОВ В РЯД */
.tariffs-container {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 30px !important;
    width: 100% !important;
}

.tariff-card {
    width: 100% !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
}

/* Переопределяем старый .tariff-grid если он мешает */
.tariff-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 30px !important;
    width: 100% !important;
}



/* Вспомогательные классы */
.italic {
    font-style: italic;
}


/* ИСПРАВЛЕНИЕ ГОРИЗОНТАЛЬНОГО СКРОЛЛА */
html, body {
    overflow-x: hidden;
    max-width: 100%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

/* Исправление для гридов */
.grid-3-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.grid-2-columns {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

/* Адаптивность для гридов */
@media (max-width: 992px) {
    .grid-3-columns {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .grid-2-columns {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .grid-3-columns {
        grid-template-columns: 1fr;
    }
    
    /* Для программы курса на мобильных */
    div[style*="grid-template-columns: repeat(3, 1fr)"] {
        grid-template-columns: 1fr !important;
    }
    
    /* Для тарифов на мобильных */
    div[style*="grid-template-columns: repeat(2, 1fr)"] {
        grid-template-columns: 1fr !important;
    }
}





/* NAVBAR */
.navbar {
    position: fixed;
    top: 0; left: 0; width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(13, 13, 13, 0.8);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    border-bottom: 1px solid var(--line);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: 1px;
}

.nav-links { display: flex; gap: 30px; }
.nav-link {
    text-decoration: none;
    color: var(--text-main);
    font-size: 0.9rem;
    opacity: 0.7;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.nav-link:hover, .nav-link.active { opacity: 1; }

/* HERO SECTION */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -2;
}

.blurred-view .hero-bg {
    filter: blur(5px);
    transform: scale(1.1);
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, transparent, var(--bg-body));
    z-index: -1;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 400;
    letter-spacing: -1px;
    white-space: nowrap;
}

/* СТИЛИ ДЛЯ СТРАНИЦЫ МАКИЯЖА */
.tariff-card h2 {
    position: relative;
    padding-bottom: 15px;
}

.tariff-card h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: #fff;
}

/* Стили для списков преимуществ */
.tariff-card ul li {
    position: relative;
    margin-bottom: 10px;
    padding-left: 25px;
}

.tariff-card ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #fff;
    font-weight: bold;
}

/* Эффект при наведении на карточки */
.tariff-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.3);
}

.hero-subtitle {
    font-size: clamp(0.7rem, 2vw, 1.1rem);
    text-transform: uppercase;
    letter-spacing: 4px;
    opacity: 0.8;
    margin-top: 10px;
    white-space: nowrap;
}

/* REVEAL АНИМАЦИЯ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* PREVIEW GALLERY */
.preview-gallery {
    display: flex;
    gap: 20px;
    margin: 50px 0;
}

.preview-item {
    flex: 1;
    position: relative;
    height: 500px;
    overflow: hidden;
    border-radius: 4px;
}

.preview-image {
    width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 1s ease;
}

.preview-item:hover .preview-image { transform: scale(1.05); }

.preview-label {
    position: absolute;
    bottom: 30px; left: 50%;
    transform: translateX(-50%);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
}

/* CARDS & BUTTONS */
.tariff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 40px 0;
}

.tariff-card {
    background: rgba(255,255,255,0.03);
    padding: 40px;
    border: 1px solid var(--line);
    border-radius: 8px;
    transition: 0.3s;
}

.buy-btn {
    display: block;
    padding: 18px;
    background: #fff;
    color: #000;
    text-align: center;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    margin-top: 20px;
    transition: 0.3s;
}

.buy-btn:hover {
    background: #f0f0f0;
}

/* ГАЛЕРЕЯ ПРИЧЕСОК */
.gallery-grid-simple {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.gallery-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 4px;
    transition: transform 0.3s ease;
}

.gallery-img:hover {
    transform: scale(1.02);
}

/* FOOTER */
.footer {
    padding: 60px 0;
    border-top: 1px solid var(--line);
    margin-top: 100px;
}

.social-links a {
    color: #fff;
    font-size: 1.5rem;
    margin-left: 20px;
    opacity: 0.6;
    transition: 0.3s;
}
.social-links a:hover { opacity: 1; }

/* МОБИЛЬНОЕ МЕНЮ */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: #fff;
    transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }


    body {
        overflow-x: hidden;
    }
    
    /* Для программы курса */
    div[style*="grid-template-columns: repeat(3, 1fr)"] {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
    
    /* Для тарифов */
    div[style*="grid-template-columns: repeat(2, 1fr)"] {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    
    /* Уменьшаем отступы в карточках программы */
    div[style*="padding: 25px;"] {
        padding: 20px 15px !important;
    }
    
    /* Уменьшаем шрифты в программе */
    div[style*="font-size: 1.2rem;"] {
        font-size: 1.1rem !important;
    }
    
    /* Кнопки направления на главной */
    .buttons-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
    
    .direction-btn div {
        padding: 25px 15px !important;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: var(--bg-body);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px;
        transform: translateY(-100%);
        transition: transform 0.5s ease;
        z-index: 1000;
    }
    
    .nav-links.active {
        transform: translateY(0);
    }
    
    .nav-link {
        font-size: 1.2rem;
        opacity: 1;
    }
    
    .preview-gallery {
        flex-direction: row !important; /* ФОТО ВСЕГДА В РЯД */
        flex-wrap: nowrap; /* Не переносить на новую строку */
        overflow-x: auto; /* Горизонтальная прокрутка если не помещается */
        height: 200px;
        gap: 5px;
        margin: 30px 0;
        padding-bottom: 10px;
        -webkit-overflow-scrolling: touch; /* Плавная прокрутка на iOS */
    }
    
    .preview-item {
        flex: 0 0 auto; /* Не сжимать элементы */
        width: calc(33.333% - 4px); /* Каждая фото занимает треть ширины */
        height: 100%; /* Полная высота контейнера */
        margin-bottom: 0;
    }
    
    .preview-label {
        font-size: 10px;
        bottom: 15px;
        white-space: nowrap;
    }
    
    .gallery-grid-simple {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 10px;
    }
    
    .hero-btn {
        width: 100%;
        max-width: 300px;
        min-width: auto;
        padding: 12px 20px;
        font-size: 0.75rem;
    }
    
    .hero-title {
        font-size: clamp(2rem, 6vw, 3rem);
        padding: 0 20px;
    }
    
    .hero-subtitle {
        padding: 0 20px;
    }
    
    .gallery-img {
        height: 200px;
    }
}

@media (max-width: 768px) {
    /* Для десктопов оставляем как есть, для мобильных меняем */
    .hero-content > div[style*="flex-direction: column"] {
        width: 100% !important;
        padding: 0 20px !important;
        box-sizing: border-box !important;
    }
    
    .hero-content .buy-btn {
        min-width: 140px !important;
        max-width: 140px !important;
        font-size: 0.7rem !important;
        padding: 10px 5px !important;
        white-space: nowrap !important;
    }
}

/* Для десктопов - обычный ряд */
@media (min-width: 769px) {
    .hero-content > div[style*="flex-direction: column"] {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        gap: 20px !important;
        justify-content: center !important;
    }
    
    .hero-content > div[style*="flex-direction: column"] > div {
        display: contents !important; /* убираем вложенные div */
    }
    
    .hero-content .buy-btn {
        width: 200px !important;
        font-size: 0.8rem !important;
        padding: 15px !important;
    }
}