/* --- Переменные и Базовые настройки --- */
:root {
    /* Цветовая палитра Premium Dark */
    --bg-main: #0a0f1a; /* Глубокий темный фон */
    --bg-secondary: #131b2c; /* Чуть светлее для секций */
    --text-primary: #ffffff;
    --text-secondary: #a0aec0;
    
    /* Акцентный цвет (Золото) */
    --accent: #cfa15a;
    --accent-hover: #e0b46d;
    
    /* Шрифты */
    --font-main: 'Inter', sans-serif;
    --font-titles: 'Playfair Display', serif; /* Элегантный шрифт для заголовков */

    --section-spacing: 100px;
    --border-radius: 16px;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Утилиты */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.text-center { text-align: center; }
.text-accent { color: var(--accent); }
.text-white { color: white !important; }

section {
    padding: var(--section-spacing) 0;
}

/* Типографика */
h1, h2, h3, h4 {
    font-family: var(--font-titles);
    color: var(--text-primary);
    font-weight: 700;
}

.section-header { margin-bottom: 60px; }
.section-subtitle {
    display: block;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 2px;
    color: var(--accent);
    margin-bottom: 10px;
    font-weight: 600;
}
.section-title {
    font-size: 2.5rem;
}

/* Кнопки */
.btn {
    display: inline-block;
    padding: 16px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-family: var(--font-main);
}

.btn--gold {
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: #000;
    box-shadow: 0 10px 20px -10px rgba(207, 161, 90, 0.5);
}
.btn--gold:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px -10px rgba(207, 161, 90, 0.7);
}

.btn--glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.btn--glass:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--accent);
}

.btn--outline {
    border: 2px solid var(--accent);
    color: var(--accent);
    padding: 10px 24px;
}
.btn--outline:hover {
    background: var(--accent);
    color: #000;
}
.btn--full { width: 100%; text-align: center; }


/* --- HEADER (Стекломорфизм) --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.4s ease;
}

.header.scrolled {
    background: rgba(10, 15, 26, 0.85); /* Полупрозрачный темный фон */
    backdrop-filter: blur(15px); /* Эффект размытия */
    box-shadow: 0 5px 30px rgba(0,0,0,0.2);
    padding: 15px 0;
}

.header__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-titles);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: 1px;
}
.logo--accent { color: var(--accent); }

.nav__list {
    display: flex;
    list-style: none;
    gap: 40px;
    align-items: center;
}

.nav__link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: color 0.3s;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s;
}

.nav__link:hover::after,
.nav__link.active::after {
    width: 100%;
}
.nav__link:hover { color: var(--accent); }

/* Burger Menu (для мобильных) */
.burger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}
.burger span {
    width: 30px;
    height: 2px;
    background: var(--text-primary);
    transition: 0.3s;
}


/* --- HERO SECTION (Сложная анимация фона) --- */
.hero {
    height: 100vh;
    min-height: 700px;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 0;
}

.hero__bg-wrap {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    overflow: hidden;
}

.hero__bg {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    /* Анимация медленного зума при загрузке */
    animation: bgZoom 20s infinite alternate ease-in-out;
}

@keyframes bgZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.15); }
}

.hero__overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    /* Градиент для затемнения, чтобы текст читался */
    background: linear-gradient(to right, rgba(10,15,26,0.9) 30%, rgba(10,15,26,0.4));
}

.hero__content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin-left: 10%; /* Сдвиг влево */
}

.hero__title {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 25px;
}

.hero__subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 50px;
    max-width: 500px;
}

.hero__btns {
    display: flex;
    gap: 20px;
}

.scroll-down {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-primary);
    font-size: 24px;
    animation: bounce 2s infinite;
    z-index: 2;
    text-decoration: none;
    opacity: 0.7;
}
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-15px); }
    60% { transform: translateX(-50%) translateY(-7px); }
}


/* --- GLASS CARDS (Общий стиль для карточек) --- */
.glass-card {
    background: rgba(255, 255, 255, 0.03); /* Очень прозрачный фон */
    border: 1px solid rgba(255, 255, 255, 0.1); /* Тонкая рамка */
    backdrop-filter: blur(10px); /* Размытие фона под карточкой */
    border-radius: var(--border-radius);
    padding: 40px;
    transition: all 0.4s ease;
}
.glass-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(207, 161, 90, 0.5); /* Золотая рамка при наведении */
    transform: translateY(-10px); /* Подпрыгивание */
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}


/* --- BENEFITS --- */
.benefits {
    background-color: var(--bg-secondary);
    position: relative;
}
/* Декоративный градиентный свет сбоку */
.benefits::before {
    content: '';
    position: absolute;
    top: 50%; left: 0;
    width: 300px; height: 300px;
    background: var(--accent);
    filter: blur(150px);
    opacity: 0.15;
    transform: translateY(-50%);
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.benefit-card {
    text-align: center;
}

.benefit-card__icon {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 25px;
    /* Легкое свечение иконки */
    filter: drop-shadow(0 0 10px rgba(207, 161, 90, 0.4));
}

.benefit-card h3 { margin-bottom: 15px; }
.benefit-card p { color: var(--text-secondary); }


/* --- CATALOG (Сложная сетка) --- */
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    grid-auto-rows: 350px;
}

/* Айтемы, занимающие больше места */
.item-large { grid-column: span 2; grid-row: span 1; }
.item-wide { grid-column: span 3; }

.catalog-item {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    display: block;
    text-decoration: none;
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.catalog-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Эффект наведения на каталог: Зум картинки + появление текста */
.catalog-item:hover img {
    transform: scale(1.1);
}

.catalog-item__content {
    position: absolute;
    bottom: 0; left: 0; width: 100%;
    padding: 30px;
    /* Градиент снизу вверх для читаемости */
    background: linear-gradient(to top, rgba(10,15,26, 0.9), transparent);
    transform: translateY(20px); /* Скрываем текст немного вниз */
    opacity: 0.9;
    transition: all 0.4s ease;
}

.catalog-item:hover .catalog-item__content {
    transform: translateY(0); /* Поднимаем текст */
    opacity: 1;
}

.catalog-item__content h3 { font-size: 1.5rem; margin-bottom: 5px; }
.catalog-item__content p { color: rgba(255,255,255,0.8); font-size: 0.95rem; }

.catalog-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--accent);
    margin-top: 15px;
    font-weight: 600;
    opacity: 0; /* Скрыта по умолчанию */
    transform: translateX(-20px);
    transition: all 0.4s ease 0.1s; /* Небольшая задержка */
}
.catalog-item:hover .catalog-btn {
    opacity: 1;
    transform: translateX(0);
}


/* --- STEPS --- */
.steps {
    background-color: var(--bg-secondary);
}
.steps-flex {
    display: flex;
    justify-content: space-between;
    gap: 30px;
}
.step-item {
    flex: 1;
    position: relative;
    padding-top: 50px;
}
/* Линия между шагами */
.step-item:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 85px;
    right: -20px;
    width: 40px;
    height: 2px;
    background: rgba(255,255,255,0.1);
}

.step-number {
    font-family: var(--font-titles);
    font-size: 3rem;
    font-weight: 700;
    color: transparent;
    /* Текст контуром (Outline text) */
    -webkit-text-stroke: 1px var(--accent);
    opacity: 0.5;
    margin-bottom: 20px;
}
.icon-step {
    color: var(--accent);
    -webkit-text-stroke: 0;
}

.step-item h4 { margin-bottom: 15px; font-size: 1.3rem; }
.step-item p { color: var(--text-secondary); }


/* --- CONTACT FORM (Glassmorphism High-End) --- */
.contact {
    position: relative;
    min-height: 700px;
    display: flex;
    align-items: center;
}

.contact__bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -2;
}
.contact__overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(10, 15, 26, 0.8); /* Сильное затемнение фона */
    z-index: -1;
}

.contact__wrapper {
    display: flex;
    gap: 60px;
    /* Переопределяем стили glass-card для этого блока */
    background: rgba(19, 27, 44, 0.6) !important; /* Более темное стекло */
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    padding: 60px !important;
}

.contact__info { flex: 1; }
.contact__desc {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: rgba(255,255,255,0.9);
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}
.accent-icon {
    font-size: 2rem;
    color: var(--accent);
    background: rgba(207, 161, 90, 0.1);
    padding: 15px;
    border-radius: 50%;
}
.detail-item small {
    display: block;
    color: var(--text-secondary);
    margin-bottom: 5px;
}
.detail-item a {
    color: var(--text-primary);
    font-size: 1.3rem;
    text-decoration: none;
    font-weight: 700;
    font-family: var(--font-titles);
}

/* Стилизация формы */
.contact__form {
    flex: 1;
    max-width: 450px;
    background: rgba(255,255,255,0.05);
    padding: 40px;
    border-radius: var(--border-radius);
}

.form-title { text-align: center; margin-bottom: 30px; }

/* Крутые инпуты с плавающим лейблом */
.input-group {
    position: relative;
    margin-bottom: 25px;
}

.input-group input {
    width: 100%;
    padding: 15px;
    background: transparent;
    border: none;
    border-bottom: 2px solid rgba(255,255,255,0.3);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: var(--font-main);
    outline: none;
    transition: 0.3s;
}

/* Лейбл, который уплывает вверх */
.input-group label {
    position: absolute;
    top: 15px;
    left: 15px;
    color: var(--text-secondary);
    pointer-events: none;
    transition: 0.3s ease all;
}

/* Магия плавающего лейбла: когда инпут в фокусе или не пустой */
.input-group input:focus,
.input-group input:not(:placeholder-shown) {
    border-color: var(--accent);
}

.input-group input:focus ~ label,
.input-group input:not(:placeholder-shown) ~ label {
    top: -10px;
    left: 0;
    font-size: 0.8rem;
    color: var(--accent);
}

.form-policy {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-align: center;
    margin-top: 15px;
}


/* --- FOOTER --- */
.footer {
    background: #05080e; /* Самый темный цвет */
    padding: 80px 0 30px;
    color: var(--text-secondary);
}
.footer__container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}
.logo--footer { font-size: 1.5rem; margin-bottom: 20px; display: inline-block;}
.footer__desc { max-width: 300px; }
.footer h4 { color: var(--text-primary); margin-bottom: 25px; }

.footer__links, .footer__contacts { list-style: none; }
.footer__links li, .footer__contacts li { margin-bottom: 15px; }
.footer__links a {
    color: var(--text-secondary); text-decoration: none; transition: 0.3s;
}
.footer__links a:hover { color: var(--accent); }
.footer__contacts i { color: var(--accent); margin-right: 10px; }

.footer__bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.05);
    font-size: 0.9rem;
}


/* --- АДАПТИВ (RESPONSIVE) --- */
@media (max-width: 1024px) {
    .hero__content { margin-left: 5%; }
    .hero__title { font-size: 3rem; }
    .catalog-grid { grid-template-columns: 1fr 1fr; }
    .item-wide { grid-column: span 2; }
}

@media (max-width: 768px) {
    .section-title { font-size: 2rem; }
    
    /* Мобильное меню */
    .burger { display: flex; z-index: 1001; }
    .nav__btn { display: none; } /* Скрываем кнопку в меню на мобилках */
    
    .nav {
        position: fixed;
        top: 0; right: -100%; /* Скрыто за экраном */
        width: 80%;
        height: 100vh;
        background: var(--bg-secondary);
        padding: 80px 40px;
        transition: 0.4s ease-in-out;
        box-shadow: -5px 0 20px rgba(0,0,0,0.5);
    }
    .nav.active { right: 0; }
    
    .nav__list {
        flex-direction: column;
        align-items: flex-start;
        gap: 30px;
    }
    .nav__link { font-size: 1.2rem; }

    /* Анимация бургера */
    .burger.toggle span:nth-child(1) { transform: rotate(-45deg) translate(-8px, 8px); }
    .burger.toggle span:nth-child(2) { opacity: 0; }
    .burger.toggle span:nth-child(3) { transform: rotate(45deg) translate(-8px, -8px); }

    .hero__title { font-size: 2.5rem; }
    .hero__btns { flex-direction: column; }
    .btn { width: 100%; text-align: center;}

    .catalog-grid { grid-template-columns: 1fr; grid-auto-rows: 250px; }
    .item-large, .item-wide { grid-column: span 1; }

    .steps-flex { flex-direction: column; gap: 50px; }
    .step-item::after { display: none; }

    .contact__wrapper { flex-direction: column; padding: 30px !important; gap: 40px; }
    .footer__container { grid-template-columns: 1fr; text-align: center; }
}