:root {
    /* Тот самый цвет для слияния с логотипом */
    --bg-dark: #0d203e; 
    --accent-blue: #8AA1BA;
    --text-light: #FFFFFF;
    --text-muted: #A0B0C0;
    
    /* Твоя рассеянная тень для премиум-эффекта */
    --diffuse-shadow: 0 20px 40px rgba(138, 161, 186, 0.15); 
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}
img{height: 170px;}
h1, h2, h3, .header__nav a, .btn, .badge-num {
    font-family: 'Allerta Stencil', sans-serif;
    text-transform: uppercase;
}

.text-accent { color: var(--accent-blue); }

.container {
    max-width: 1440px; /* Широкий контейнер для современного вида */
    margin: 0 auto;
    padding: 0 40px;
}

/* --- ШАПКА --- */
.header {
    position: absolute;
    width: 100%;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(138, 161, 186, 0.1);
}

.header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
}

.header__nav {
    display: none;
    gap: 40px;
}

.header__nav a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 14px;
    letter-spacing: 1px;
    transition: var(--transition);
}

.header__nav a:hover { color: var(--accent-blue); }

/* --- КНОПКИ --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 36px;
    font-size: 14px;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    border-radius: 2px;
    text-decoration: none;
    font-weight: 500;
}

.btn--accent {
    background-color: var(--accent-blue);
    color: var(--bg-dark);
    padding: 12px 24px;
}

.btn--accent:hover { background-color: var(--text-light); }

.btn--primary {
    background-color: var(--text-light);
    color: var(--bg-dark);
}

.btn--primary.btn--glow:hover {
    box-shadow: var(--diffuse-shadow);
    transform: translateY(-2px);
}

.btn--outline {
    background-color: transparent;
    border-color: rgba(138, 161, 186, 0.4);
    color: var(--text-light);
}

.btn--outline:hover {
    border-color: var(--accent-blue);
    color: var(--bg-dark);
    background-color: var(--accent-blue);
}

/* --- HERO СЕКЦИЯ (Сплит) --- */
.hero {
    position: relative;
    padding-top: 130px; 
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    width: 100%;
}

.hero__content {
    position: relative;
    z-index: 2;
    max-width: 650px;
}

.hero__title {
    font-size: clamp(2.5rem, 4vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: 0.5px;
}

.hero__subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 48px;
    max-width: 90%;
}

.hero__actions {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

/* --- ПРАВАЯ ЧАСТЬ: ФОТО --- */
.hero__image-wrapper {
    position: relative;
    height: 70vh;
    min-height: 500px;
    border-radius: 4px;
    overflow: hidden;
}

.hero__image {
    width: 100%;
    height: 100%;
    /* ВСТАВЬ СВОЕ ФОТО СЮДА ВМЕСТО UNSPLASH */
    background: url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c?ixlib=rb-4.0.3&auto=format&fit=crop&w=1000&q=80') center/cover no-repeat;
    transform: scale(1.02);
    transition: transform 10s ease;
}

.hero__image-wrapper:hover .hero__image {
    transform: scale(1.05); /* Плавный зум при наведении */
}

/* Плашка поверх фото */
.hero__badge {
    position: absolute;
    bottom: 40px; 
    left: -40px; /* Эффект выхода за рамки (Overlap) */
    background: var(--bg-dark);
    padding: 24px;
    border: 1px solid rgba(138, 161, 186, 0.2);
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
    z-index: 3;
}

.badge-num {
    font-size: 3rem;
    color: var(--accent-blue);
    line-height: 1;
}

.badge-text {
    font-size: 0.875rem;
    letter-spacing: 1px;
    line-height: 1.4;
}

/* Фоновая миллиметровка (чертеж) на левой половине */
.hero__blueprint {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(138, 161, 186, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(138, 161, 186, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 1;
    pointer-events: none;
}

/* --- АДАПТИВ МЕНЬШЕ 992px --- */
@media (max-width: 992px) {
    .hero__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .hero { min-height: auto; padding-bottom: 60px; }
    .hero__image-wrapper { height: 400px; }
    .hero__badge { bottom: 20px; left: 20px; }
    .header__nav { display: none; }
}

.header__nav a.is-active {
    color: var(--accent-blue);
    position: relative;
}

.header__nav a.is-active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent-blue);
}

.header__actions {
    display: flex;
    align-items: center;
    gap: 30px;
}

.header__phone {
    color: var(--text-light);
    text-decoration: none;
    font-family: 'Allerta Stencil', sans-serif;
    font-size: 1.1rem;
    transition: var(--transition);
}

.header__phone:hover {
    color: var(--accent-blue);
}

/* --- ОБНОВЛЕННАЯ ШАПКА --- */
.header {
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 100;
    /* Убрали жесткий бордер, добавили легкий градиент для читаемости меню */
    background: linear-gradient(to bottom, rgba(13, 32, 62, 0.95) 0%, rgba(13, 32, 62, 0) 100%);
    border-bottom: 1px solid rgba(138, 161, 186, 0.1);
}

.header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100px; /* Добавили воздуха */
}

/* --- ПРИВЛЕКАТЕЛЬНАЯ НАВИГАЦИЯ --- */
.header__nav {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1.5px; /* Разрядка букв для премиального вида */
    position: relative;
    padding: 8px 0;
    transition: var(--transition);
}

/* Анимация подчеркивания из центра */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--accent-blue);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover {
    color: var(--accent-blue);
}

/* При наведении линия плавно разъезжается на 100% ширины */
.nav-link:hover::after,
.nav-link.is-active::after {
    width: 100%;
}

.nav-link.is-active {
    color: var(--accent-blue);
}

/* --- ТЕЛЕФОН И КНОПКА --- */
.header__actions {
    display: flex;
    align-items: center;
    gap: 30px;
}

.header__phone {
    color: var(--text-light);
    text-decoration: none;
    font-family: 'Allerta Stencil', sans-serif; /* Индустриальный шрифт для цифр */
    font-size: 1.1rem;
    letter-spacing: 1px;
    transition: var(--transition);
}

.header__phone:hover {
    color: var(--accent-blue);
    transform: translateY(-2px);
}
:root {
    /* Добавляем твой конверсионный оранжевый */
    --color-orange: #ff7a2f;
    --orange-shadow: 0 10px 25px rgba(255, 122, 47, 0.3);
}

/* --- ОБНОВЛЕННАЯ КНОПКА CTA (Для шапки) --- */
.btn--accent {
    background-color: var(--color-orange);
    color: #ffffff;
    padding: 14px 28px;
    border: none;
    font-weight: 600;
}

.btn--accent:hover {
    background-color: #ff8c4a;
    box-shadow: var(--orange-shadow);
    transform: translateY(-2px);
    color: #ffffff;
}

/* --- ТЕГИ ПОД H1 --- */
.hero__tags {
    list-style: none;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.hero__tags li {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-blue);
    background: rgba(138, 161, 186, 0.1);
    padding: 6px 14px;
    border-radius: 2px;
    border: 1px solid rgba(138, 161, 186, 0.2);
}

/* --- ОБНОВЛЕННЫЙ БЕЙДЖ "ОТ 4 ДНЕЙ" --- */
.badge-text-group {
    display: flex;
    flex-direction: column;
}

.badge-text-small {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.badge-text-large {
    font-family: 'Allerta Stencil', sans-serif;
    font-size: 1.5rem;
    color: var(--text-light);
    line-height: 1.1;
    text-transform: uppercase;
}

/* --- СЕКЦИЯ КАТЕГОРИЙ (ПЛИТКА) --- */
.categories {
    padding: 80px 0;
    background-color: var(--bg-dark); /* Продолжаем темный фон */
}

.categories__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

/* Делаем первую карточку (Кухни) шире, так как это самый жирный чек */
@media (min-width: 992px) {
    .category-card:nth-child(1),
    .category-card:nth-child(2) {
        grid-column: span 2;
    }
}

.category-card {
    position: relative;
    height: 280px;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    padding: 24px;
    text-decoration: none;
    border: 1px solid rgba(255,255,255, 0.05);
}

.category-card__bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.category-card__overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(13, 32, 62, 0.95) 0%, rgba(13, 32, 62, 0.2) 100%);
    z-index: 2;
    transition: background 0.3s ease;
}

.category-card__title {
    position: relative;
    z-index: 3;
    color: var(--text-light);
    font-size: 1.2rem;
    margin: 0;
    transform: translateY(0);
    transition: transform 0.3s ease, color 0.3s ease;
}

.category-card:hover .category-card__bg {
    transform: scale(1.08);
}

.category-card:hover .category-card__overlay {
    background: linear-gradient(to top, rgba(13, 32, 62, 0.9) 0%, rgba(13, 32, 62, 0.4) 100%);
}

.category-card:hover .category-card__title {
    color: var(--color-orange);
    transform: translateY(-5px);
}
/* --- СЕКЦИЯ ЗАХВАТА ЛИДА --- */
.lead-magnet {
    background-color: var(--bg-dark);
    padding: 60px 0;
}

.lead-box {
    background: radial-gradient(circle at top right, rgba(138, 161, 186, 0.1), transparent 50%),
                var(--bg-dark);
    border: 1px solid rgba(138, 161, 186, 0.2);
    border-radius: 4px;
    padding: 60px 40px;
    position: relative;
    overflow: hidden;
}

/* Имитация миллиметровки на фоне блока для стиля */
.lead-box::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: linear-gradient(rgba(138, 161, 186, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(138, 161, 186, 0.03) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
    z-index: 0;
}

.lead-box__content {
    position: relative;
    z-index: 1;
    max-width: 600px;
}

.lead-box h2 {
    font-size: clamp(2rem, 3vw, 2.5rem);
    margin-bottom: 16px;
    line-height: 1.2;
}

.lead-box p {
    color: var(--text-muted);
    margin-bottom: 32px;
    font-size: 1.1rem;
}

/* Форма */
.lead-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(138, 161, 186, 0.3);
    padding: 16px 20px;
    color: var(--text-light);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    border-radius: 2px;
    transition: var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--color-orange);
    background: rgba(255, 255, 255, 0.05);
}

.file-upload {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--accent-blue);
    cursor: pointer;
    font-size: 0.9rem;
    padding: 10px 0;
    transition: var(--transition);
}

.file-upload:hover {
    color: var(--text-light);
}

.btn--full {
    width: 100%;
    padding: 18px;
    font-size: 1.1rem;
}

.form-policy {
    margin-top: 16px;
    font-size: 0.75rem !important;
    color: rgba(138, 161, 186, 0.5) !important;
    text-align: center;
}