html {
    scroll-behavior: smooth;
}
:root {
    --primary-color: #d35400;
    /* Цвет дерева/индустриальный акцент */
    --secondary-color: #2c3e50;
    /* Темно-серый, индустриальный */
    --bg-light: #f4f7f6;
    --text-dark: #1a1a1a;
    --text-light: #ffffff;
    --gray: #7f8c8d;
    --border-color: #e0e0e0;
    --transition: all 0.3s ease;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--text-light);
    overflow-x: hidden;
}

/* Utility */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    margin: 15px auto 0;
}

.btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 0.9rem;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: #e67e22;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(211, 84, 0, 0.3);
}

.btn-outline {
    border: 2px solid var(--text-light);
    color: var(--text-light);
}

.btn-outline:hover {
    background-color: var(--text-light);
    color: var(--secondary-color);
}

/* Header */
header {
    background: var(--secondary-color);
    color: white;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Контейнер логотипа */
.logo {
    display: flex;
    align-items: center;
    /* Центрирует картинку и текст по вертикали */
    gap: 12px;
    /* Расстояние между картинкой и текстом */
    text-decoration: none;
    color: white !important;
    font-weight: 800;
    font-size: 24px
        /* font-size здесь должен быть таким же, как вы подобрали для кнопок */
}

.orange-part {
    /* Цвет только для слова "СТРОЙ" */
    color: #d35400 !important;
}

/* Настройка самой картинки */
.logo-img {
    height: 70px;
    /* Высота картинки (подбирайте под размер текста) */
    width: auto;
    /* Пропорции сохраняются автоматически */
    display: block;
}

.logo a {
    text-decoration: none; /* Убирает подчеркивание */
    color: inherit;        /* Заставляет текст использовать цвета, которые мы уже настроили */
    display: flex;
    align-items: center;
}

.logo-title {
    color: #ffffff; /* Убедимся, что ЭЛИТ остается белым */
}

.header-contacts {
    display: flex;
    gap: 20px;
    align-items: center;
}

.phone-link {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
}

/* Hero Section */
/* Hero Section */
.hero {
    /* Накладываем темный градиент и указываем путь к вашему фото */
    background: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.6)), url('hero_fon1.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    padding: 120px 0;
    text-align: center;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.price-tag {
    background: var(--primary-color);
    display: inline-block;
    padding: 10px 20px;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 30px;
    border-radius: 4px;
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 60px;
    flex-wrap: wrap;
}

.h-feat {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
}

.h-feat svg {
    fill: var(--primary-color);
    width: 24px;
    height: 24px;
}

/* About Section */
.about {
    background: var(--bg-light);
}

.about-flex {
    display: flex;
    gap: 50px;
    align-items: center;
    flex-wrap: wrap;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-text h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.about-img {
    flex: 1;
    min-width: 300px;
    background: #ddd;
    height: 400px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #777;
    font-style: italic;
    border: 1px solid #ccc;
}

/* Catalog */
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.card {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
}

.card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.card-img {
    height: 200px;
    background: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
}

.card-body {
    padding: 20px;
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.card-price {
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.1rem;
}

/* Why Choose Us */
.benefits {
    background: var(--secondary-color);
    color: white;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
}

.benefit-item svg {
    width: 50px;
    height: 50px;
    fill: var(--primary-color);
    margin-bottom: 20px;
}

/* Steps */
.steps {
    background: white;
}

.steps-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.step-item {
    flex: 1;
    min-width: 200px;
    text-align: center;
    position: relative;
}

.step-num {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 20px;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.gallery-item {
    height: 250px;
    background: #eee;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
}

/* Reviews */
.reviews {
    background: var(--bg-light);
}

.review-card {
    background: white;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.review-author {
    margin-top: 15px;
    font-weight: bold;
    color: var(--primary-color);
}

.review-status {
    font-size: 0.85rem;
    color: var(--gray);
}

/* Contacts */
.contacts-block {
    text-align: center;
    background: #fff;
    padding: 40px;
    border: 2px solid var(--secondary-color);
    border-radius: 12px;
    max-width: 600px;
    margin: 0 auto;
}

.contact-phones {
    margin: 30px 0;
}

.contact-phones a {
    display: block;
    font-size: 2rem;
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 800;
    margin-bottom: 10px;
}

.contact-phones a:hover {
    color: var(--primary-color);
}

/* Footer */
footer {
    background: #111;
    color: #777;
    padding: 40px 0;
    text-align: center;
}

.footer-links {
    margin: 20px 0;
}

.footer-links a {
    color: #999;
    text-decoration: none;
    margin: 0 15px;
    font-size: 0.85rem;
}

.footer-links a:hover {
    color: white;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background-color: white;
    padding: 40px;
    border-radius: 8px;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--secondary-color);
    color: white;
    padding: 20px;
    z-index: 3000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.cookie-banner .btn {
    padding: 8px 20px;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.2rem;
    }

    .header-contacts {
        display: none;
    }

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .hero-features {
        gap: 15px;
        flex-direction: column;
        align-items: center;
    }

    .cookie-banner {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
}

/* Icons placeholder */
.icon {
    width: 40px;
    height: 40px;
    fill: currentColor;
}

/* Стили переключателя */
.catalog-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
}

.tab-btn {
    padding: 12px 25px;
    border: 2px solid var(--secondary-color);
    background: transparent;
    color: var(--secondary-color);
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
    transition: var(--transition);
    border-radius: 4px;
}

.tab-btn.active {
    background: var(--secondary-color);
    color: white;
}

/* Стили для новых элементов карточки */
.card-size {
    display: block;
    font-size: 0.9rem;
    color: var(--gray);
    margin-top: 5px;
}

/* Блок штукатурки */
.plaster-content {
    display: none;
    /* По умолчанию скрыто */
    max-width: 800px;
    margin: 0 auto;
}

.plaster-info {
    margin-top: 30px;
    padding: 20px;
    background: var(--bg-light);
    border-radius: 8px;
}

.plaster-info h4 {
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.plaster-info p {
    margin-bottom: 15px;
}

/* Навигация в шапке */
/* Навигация в шапке в размер логотипа */
.header-nav {
    display: flex;
    gap: 30px;
    /* Увеличили расстояние между кнопками */
    align-items: center;
}

.header-nav a {
    text-decoration: none;
    color: white;
    font-size: 22px;
    /* Такой же размер, как у логотипа */
    font-weight: bold;
    /* Жирное начертание как у логотипа */
    text-transform: uppercase;
    /* Все буквы заглавные */
    transition: 0.3s;
    line-height: 1;
    /* Чтобы высота строки не раздувала шапку */
}

.header-nav a:hover {
    color: var(--primary-color);
}

/* Контакты в шапке */
.header-contacts {
    display: flex;
    gap: 15px;
}

.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.email-sub {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 4px;
}

/* Кнопка с белой рамкой для первого номера */
.btn-outline {
    border: 1px solid white;
    color: white;
    background: transparent;
}

/* Изменяем стиль только у номера телефона */
.copy-phone {
    cursor: pointer;
    transition: 0.3s opacity;
}

.copy-phone:hover {
    opacity: 0.8;
    /* Легкое затухание при наведении */
}

/* Специфические стили для страницы контактов */
.contacts-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 40px; 
    margin-top: 30px; 
}

.contact-card { 
    background: #f9f9f9; 
    padding: 25px; 
    border-radius: 8px; 
    border-left: 5px solid var(--primary-color); 
}

.contact-card h3 { 
    margin-top: 0; 
    color: var(--primary-color); 
}

.contact-card a { 
    color: var(--secondary-color); 
    text-decoration: none; 
    font-weight: bold; 
    display: block; 
    margin-bottom: 5px; 
}

.address-section { 
    margin-top: 40px; 
    border-top: 1px solid #eee; 
    padding-top: 30px; 
}

.map-container { 
    margin-top: 30px; 
    height: 450px; 
    background: #eee; 
    border-radius: 8px; 
    overflow: hidden; 
}

.back-link { 
    color: white; 
    text-decoration: none; 
    font-size: 18px; 
    opacity: 0.8; 
}

.back-link:hover {
    opacity: 1;
    text-decoration: underline;
}

iframe { 
    width: 100%; 
    height: 100%; 
    border: 0; 
}

/* Кнопка-гамбургер (по умолчанию скрыта) */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.bar {
    width: 30px;
    height: 3px;
    background-color: white;
    transition: 0.3s;
}

/* Стили для мобильных устройств */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex; /* Показываем кнопку на телефонах */
    }

    /* Прячем контакты в шапке на мобилках, чтобы не мешали */
    .header-contacts {
        display: none; 
    }

    .header-nav {
        position: fixed;
        left: -100%; /* Уводим меню влево за экран */
        top: 0;
        flex-direction: column;
        background-color: var(--secondary-color); /* Темный фон */
        width: 250px;
        height: 100vh;
        padding-top: 80px;
        transition: 0.5s;
        z-index: 1000;
        align-items: flex-start !important;
        padding-left: 30px;
    }

    /* Когда меню активно, оно выезжает */
    .header-nav.active {
        left: 0;
    }

    .header-nav a {
        margin: 15px 0;
        font-size: 20px;
    }
}