:root {
    --bg-main: #1f232c;         /* Мягкий графитовый фон вместо черного */
    --bg-surface: #282d39;      /* Более светлый фон для панелей и шапки */
    --bg-card: #313746;         /* Светлый стальной фон для карточек товаров */
    
    --text-main: #f8fafc;       /* Максимально контрастный светлый текст */
    --text-muted: #cbd5e1;      /* Более читаемый приглушенный текст */
    
    --primary: #4f5d75;         /* Цвет холодного металла */
    --primary-hover: #708090;   /* Светлая сталь при наведении */
    --accent: #3d4859;          /* Вороненая сталь */
    
    --border-color: #475569;    /* Более заметные границы блоков */
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   2. КНОПКИ И ОБЩИЕ КОМПОНЕНТЫ ИНТЕРФЕЙСА
   ========================================================================== */
.btn {
    display: inline-block;
    padding: 12px 28px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: var(--transition);
    border: none;
    border-radius: 6px;
    outline: none;
}

.btn--primary {
    background-color: var(--primary);
    color: #ffffff;
}

.btn--primary:hover {
    background-color: var(--primary-hover);
}

.btn--secondary {
    background-color: transparent;
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.btn--secondary:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
}

.btn--block {
    width: 100%;
}
/* ==========================================================================
   3. ШАПКА САЙТА И НАВИГАЦИЯ (HEADER)
   ========================================================================== */
.header {
    background-color: rgba(30, 34, 43, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo__text {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #ffffff;
    user-select: none;
}

.logo__accent {
    color: var(--text-muted);
}

.nav__list {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav__link {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 400;
    font-size: 15px;
    position: relative;
    transition: var(--transition);
}

.nav__link:hover {
    color: var(--primary-hover);
}

.nav__link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 100%;
    height: 1px;
    background-color: var(--primary-hover);
    opacity: 0;
    transition: var(--transition);
}

.nav__link:hover::after {
    opacity: 1;
}

.header__phone {
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    font-size: 17px;
    transition: var(--transition);
    white-space: nowrap;
}

.header__phone:hover {
    color: var(--primary-hover);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle span {
    width: 22px;
    height: 2px;
    background-color: #ffffff;
    transition: var(--transition);
}

/* ==========================================================================
   4. ГЛАВНЫЙ ЭКРАН (HERO) И ПРЕИМУЩЕСТВА
   ========================================================================== */
.hero {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
    min-height: calc(100vh - 80px); 
    padding: 60px 0;
    position: relative;
    overflow: hidden;
    background-color: #101216;
    display: flex;
    align-items: center; 
    z-index: 15;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 5%;
    width: 90%;
    height: 1px;
    background: linear-gradient(to right, 
        transparent 0%, 
        var(--border-color) 20%, 
        var(--border-color) 80%, 
        transparent 100%
    );
    z-index: 20;
}

.hero__slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero__slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
}

.hero__slide--active {
    opacity: 1;
}

.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(16, 18, 22, 0.92) 40%, rgba(16, 18, 22, 0.5) 100%),
                linear-gradient(to bottom, transparent 70%, rgba(16, 18, 22, 0.95) 100%);
    z-index: 2;
}

.hero__container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    height: 100%;
    width: 100%;
    position: relative;
    z-index: 10;
}

.hero__content {
    max-width: 780px;
    margin-top: auto; 
    margin-bottom: auto;
}

.hero__title {
    font-size: 46px;
    color: #ffffff;
    line-height: 1.15;
    margin-bottom: 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.hero__title-accent {
    color: #cbd5e1;
    border-bottom: 3px solid var(--primary);
}

.hero__subtitle {
    font-size: 16px;
    line-height: 1.6;
    color: #94a3b8;
    margin-bottom: 35px;
    max-width: 680px;
    border-left: 2px solid var(--primary);
    padding-left: 20px;
}

.hero .btn--primary {
    padding: 14px 36px;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 6px;
    background-color: var(--primary);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
    transition: var(--transition);
}

.hero .btn--primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
}

.hero__features {
    display: flex;
    gap: 40px;
    margin-top: auto; 
    width: 100%;
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
}

.hero-feature-item {
    flex: 1;
    min-width: 200px;
}

.hero-feature-item__num {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 6px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-feature-item__text {
    font-size: 13px;
    color: #94a3b8;
    line-height: 1.45;
    font-weight: 400;
}
/* ==========================================================================
   5. О КОМПАНИИ (ABOUT)
   ========================================================================== */
.about {
    min-height: 80vh;           /* Большая глубина блока (80% высоты экрана) */
    padding: 100px 0;
    position: relative;
    z-index: 10;
    overflow: hidden;
    background-color: #101216;  /* Базовый темный подслой */
    display: flex;
    align-items: center; 
    padding-top: 120px; 
}

.about__slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.about__slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.5s ease-in-out; /* Плавное перетекание кадров */
}

.about__slide--active {
    opacity: 1;
}

.about__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Промышленный темный градиент слева направо для идеальной читаемости текста */
    background: linear-gradient(to right, rgba(20, 24, 33, 0.95) 45%, rgba(20, 24, 33, 0.6) 100%);
    z-index: 2;
}

.about__container {
    position: relative;
    z-index: 10;
    width: 100%;
}

.about__content {
    max-width: 850px;
}

.about h2 {
    font-size: 42px;            /* Крупный монументальный размер */
    margin-bottom: 30px;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.about p {
    color: #cbd5e1;             /* Светло-стальной цвет текста */
    font-size: 20px;            /* Увеличенный, легко читаемый шрифт */
    line-height: 1.7;
    margin-bottom: 40px;
}

.director-card {
    border-left: 4px solid var(--primary-hover);
    padding-left: 20px;
    margin-top: 40px;
}

.director-card__name {
    font-weight: 700;
    font-size: 22px;
    color: #ffffff;
    margin-bottom: 5px;
}

.director-card__position {
    color: #94a3b8;
    font-size: 16px;
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .about {
        min-height: auto;
        padding: 60px 0;
    }
    .about h2 {
        font-size: 30px;
    }
    .about p {
        font-size: 16px;
    }
}
/* ==========================================================================
   6. ЖИВОЙ ПОИСК ПО КАТАЛОГУ (SEARCH)
   ========================================================================== */
.search-section {
    padding: 30px 0 10px 0;
    background-color: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 30px;
}

.search-box {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    align-items: center;
}

.search-box__icon {
    position: absolute;
    left: 15px;
    font-size: 18px;
    color: var(--text-muted);
}

.search-box input {
    width: 100%;
    padding: 14px 45px;
    font-size: 16px;
    border: 1px solid var(--border-color);
    border-radius: 25px;
    background-color: var(--bg-main);
    color: #ffffff;
    transition: var(--transition);
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-hover);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.03);
}

.search-box__clear {
    position: absolute;
    right: 15px;
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: var(--text-muted);
    line-height: 1;
}

.search-box__clear:hover {
    color: #ffffff;
}

.search-counter {
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 10px;
    font-weight: 500;
}
/* ==========================================================================
   7. КАТАЛОГ ПРОДУКЦИИ И КАРТОЧКИ ТОВАРОВ
   ========================================================================== */
.catalog {
    padding: 60px 0;
    background-color: var(--bg-main);
}

.section-title {
    font-size: 36px;
    font-weight: 500;
    text-align: center;
    margin-bottom: 40px;
    color: var(--text-main);
    text-transform: uppercase;
}

.catalog__category {
    margin-bottom: 50px;
}

.category-title {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
    color: var(--text-main);
    text-transform: uppercase;
}

/* Заголовки иерархии каталога (группа -> категория) */
.toggle-icon {
    display: inline-block;
    margin-right: 10px;
    transition: transform 0.3s;
}

.group-header {
    cursor: pointer;
    user-select: none;
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    margin: 2rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.category-header {
    cursor: pointer;
    user-select: none;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-main);
    margin: 1.5rem 0 1rem;
}

.category-content {
    margin-left: 0;
}

/* Сетка перестроена в строгий вертикальный список-таблицу */
.products-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Компактная горизонтальная строка номенклатуры */
.product-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 14px 24px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    transition: var(--transition);
}

.product-card:hover {
    border-color: var(--primary-hover);
    background-color: var(--bg-card);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Левый блок: Наименование проката и ГОСТы */
.product-card__meta {
    flex-grow: 1;
    max-width: 50%;
}

.product-card__title {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 4px;
}

.product-card__descr {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 0;
    flex-grow: 0;
}

.product-card__price {
    font-size: 14px;
    font-weight: 600;
    color: #d4a054;
    margin-top: 6px;
}

/* Правый блок: Элементы управления в линию */
.product-card__controls {
    display: flex;
    align-items: center;
    gap: 20px;
    min-width: 450px;
    justify-content: flex-end;
}

/* Выпадающий список (Сортамент металлопроката) */
.product-card__options {
    margin: 0;
    width: 220px;
}

.product-card__label {
    display: none; /* Скрываем громоздкую надпись «Номенклатура сортамента» */
}

.product-param {
    width: 100% !important;
    padding: 8px 35px 8px 12px !important;
    font-size: 13px !important;
    color: #ffffff !important;
    background-color: var(--bg-main) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 6px !important;
    outline: none !important;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://w3.org' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 14px;
    transition: var(--transition);
}

.product-param:focus {
    border-color: var(--primary-hover) !important;
}

/* Блок ввода количества и кнопка */
.product-card__actions {
    display: flex;
    align-items: center;
    gap: 0;
    margin-top: 0;
    width: auto;
}

.product-card__qty-wrapper {
    display: flex;
    align-items: center;
    position: relative;
    flex-grow: 0;
    max-width: 95px;
    margin-right: 12px;
}

.product-quantity {
    width: 100% !important;
    padding: 8px 35px 8px 12px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #ffffff !important;
    background-color: var(--bg-main) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 6px !important;
    outline: none !important;
    text-align: left !important;
    transition: var(--transition);
}

.product-quantity:focus {
    border-color: var(--primary-hover) !important;
}

.product-card__qty-wrapper .unit {
    position: absolute;
    right: 10px;
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
    pointer-events: none;
}

.product-card__actions .btn-add-to-cart {
    flex-grow: 0;
    padding: 8px 16px !important;
    font-size: 13px !important;
    border-radius: 6px !important;
    white-space: nowrap;
}

/* Классы скрытия элементов при живом поиске */
.product-card--hidden {
    display: none !important;
}

.catalog__category--hidden {
    display: none !important;
}

/* Адаптивная перестройка под экраны планшетов и телефонов */
@media (max-width: 992px) {
    .product-card {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        padding: 16px;
    }
    
    .product-card__meta {
        max-width: 100%;
    }
    
    .product-card__controls {
        flex-direction: column;
        align-items: stretch;
        min-width: auto;
        gap: 12px;
    }
    
    .product-card__options {
        width: 100%;
    }
    
    .product-card__qty-wrapper {
        max-width: 100%;
        flex-grow: 1;
        margin-right: 0;
    }
    
    .product-quantity {
        padding: 12px 45px 12px 14px !important;
        font-size: 15px !important;
    }
    
    .product-card__actions {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .product-card__actions .btn-add-to-cart {
        width: 100%;
        padding: 12px 20px !important;
        font-size: 15px !important;
    }
}


/* ==========================================================================
   8. ВЫЕЗЖАЮЩАЯ БОКОВАЯ ПАНЕЛЬ КОРЗИНЫ
   ========================================================================== */
.cart-panel-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.cart-panel-overlay--visible {
    opacity: 1;
    pointer-events: auto;
}

.cart-panel {
    position: fixed;
    top: 0;
    right: -450px;
    width: 100%;
    max-width: 420px;
    height: 100%;
    background-color: var(--bg-surface);
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: flex;
    flex-direction: column;
    transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border-left: 1px solid var(--border-color);
}

.cart-panel--open {
    right: 0;
}

.cart-panel__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
}

.cart-panel__header h3 {
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
}

.cart-panel__close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-muted);
    line-height: 1;
    transition: var(--transition);
}

.cart-panel__close:hover {
    color: #ffffff;
}

.cart-panel__body {
    flex-grow: 1;
    overflow-y: auto;
    padding: 24px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
    gap: 15px;
}

.cart-item__info h5 {
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 4px;
}

.cart-item__info p {
    font-size: 13px;
    color: var(--text-muted);
}

.cart-item__control-block {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    min-width: 120px;
}

.cart-item__qty-actions {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    background-color: var(--bg-main);
}

.cart-item__qty {
    font-size: 13px;
    font-weight: 600;
    padding: 0 8px;
    min-width: 50px;
    text-align: center;
    color: #ffffff;
}

.qty-btn {
    background: none;
    border: none;
    color: var(--text-main);
    padding: 5px 10px;
    cursor: pointer;
}

.qty-btn:hover {
    background-color: var(--bg-card);
}

.cart-item__remove {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 12px;
    cursor: pointer;
}

.cart-item__remove:hover {
    color: #ffffff;
    text-decoration: underline;
}

.cart-panel__footer {
    padding: 24px;
    border-top: 1px solid var(--border-color);
    background-color: var(--bg-main);
}

/* ==========================================================================
   9. СКЛАД, КОНТАКТЫ И ФОРМА ОФОРМЛЕНИЯ ЗАКАЗА
   ========================================================================== */
.warehouse {
    padding: 120px 0;
    position: relative;
    overflow: hidden;
    background-color: #101216; /* Базовый темный подслой */
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.warehouse__slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.warehouse__slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.5s ease-in-out; /* Плавное перетекание кадров */
}

.warehouse__slide--active {
    opacity: 1;
}

.warehouse__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Повышенная плотность затемнения до 88% для идеального контраста карточек */
    background: linear-gradient(to bottom, rgba(16, 18, 22, 0.88), rgba(16, 18, 22, 0.88));
    z-index: 2;
}

.warehouse__container {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
}


.warehouse__title {
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 60px;
    text-align: left;
}

.warehouse__vertical-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    max-width: 800px; 
}

.warehouse__strip-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 24px 35px;
    display: flex;
    align-items: center;
    gap: 25px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.3s cubic-bezier(0.25, 1, 0.5, 1),
                border-color 0.3s cubic-bezier(0.25, 1, 0.5, 1),
                padding 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform, padding;
}

.warehouse__strip-card:hover {
    padding-top: 32px;
    padding-bottom: 32px;
    border-color: var(--primary-hover);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.warehouse__strip-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background-color: var(--primary-hover);
    transform: scaleY(0);
    transition: transform 0.25s ease;
}

.warehouse__strip-card:hover::before {
    transform: scaleY(1);
}

.warehouse__strip-icon {
    font-size: 28px;
    line-height: 1;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
}

.warehouse__strip-card:hover .warehouse__strip-icon {
    transform: scale(1.2); 
}

.warehouse__strip-name {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.2px;
}

.contacts {
    padding: 80px 0;
    background-color: var(--bg-main);
}

.contacts__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contacts__info h2 { font-size: 30px; margin-bottom: 24px; color: #ffffff; }
.contacts__info p { margin-bottom: 16px; font-size: 16px; color: var(--text-muted); }
.contacts__info a { color: var(--text-main); text-decoration: none; font-weight: 500; border-bottom: 1px dashed var(--border-color); }
.contacts__info a:hover { color: var(--primary-hover); border-bottom-color: var(--primary-hover); }

.contacts__form-wrapper {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 40px;
    border-radius: 8px;
}

.contacts__form-wrapper h3 { font-size: 20px; margin-bottom: 24px; color: #ffffff; }
.form__group { margin-bottom: 20px; }
.form__group label { display: block; margin-bottom: 6px; font-size: 14px; color: var(--text-muted); }
.form__group input,
.form__group textarea {
width: 100%;
padding: 12px;
background-color: var(--bg-main);
border: 1px solid var(--border-color);
border-radius: 4px;
color: #ffffff;
font-family: inherit;
transition: var(--transition);
}

.form__group input:focus,
.form__group textarea:focus {
outline: none;
border-color: var(--primary-hover);
}

.form__group textarea {
height: 120px;
resize: vertical;
}

/* ==========================================================================
   9.1. География размещения (карта складов)
   ========================================================================== */
.geography {
padding: 100px 0;
position: relative;
}

.geography__map {
width: 100%;
height: 560px;
border-radius: 12px;
border: 1px solid var(--border-color);
overflow: hidden;
background-color: var(--bg-surface);
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.geography__list {
list-style: none;
display: flex;
flex-wrap: wrap;
gap: 12px 28px;
margin-top: 20px;
padding: 0;
}

.geography__list li {
display: flex;
align-items: center;
gap: 10px;
color: var(--text-muted);
font-size: 14px;
}

.geography__num {
display: inline-flex;
align-items: center;
justify-content: center;
width: 26px;
height: 26px;
border-radius: 50%;
background-color: #e05a3a;
color: #ffffff;
font-weight: 700;
font-size: 13px;
flex-shrink: 0;
}

.warehouse-marker {
background: transparent;
border: none;
}

.warehouse-marker__pin {
display: flex;
align-items: center;
justify-content: center;
width: 40px;
height: 40px;
border-radius: 50%;
background-color: #e05a3a;
color: #ffffff;
font-weight: 700;
font-size: 16px;
border: 3px solid #ffffff;
box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

/* Лайтбокс для фотографий складов */
.lightbox {
position: fixed;
inset: 0;
display: flex;
align-items: center;
justify-content: center;
background: rgba(0, 0, 0, 0.85);
z-index: 1500;
padding: 24px;
opacity: 0;
visibility: hidden;
pointer-events: none;
transition: opacity 0.25s ease, visibility 0.25s ease;
}

.lightbox--open {
opacity: 1;
visibility: visible;
pointer-events: auto;
}

.lightbox__image {
max-width: 92vw;
max-height: 88vh;
border-radius: 10px;
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.lightbox__close {
position: absolute;
top: 16px;
right: 24px;
background: none;
border: none;
color: #ffffff;
font-size: 44px;
line-height: 1;
cursor: pointer;
transition: transform 0.2s ease;
}

.lightbox__close:hover {
transform: scale(1.1);
}

.footer {
background-color: var(--bg-surface);
padding: 30px 0;
border-top: 1px solid var(--border-color);
text-align: center;
color: var(--text-muted);
font-size: 14px;
}
/* ==========================================================================
10. ДЕКОРАТИВНЫЙ ГЕОМЕТРИЧЕСКИЙ ФОН
========================================================================== */
.bg-decorations {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: -1;
pointer-events: none;
overflow: hidden;
}

.bg-shape {
position: fixed;
opacity: 0.03;
border: 2px solid #ffffff;
transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
will-change: transform;
}

.bg-shape--circle {
top: 20%;
left: -100px;
width: 300px;
height: 300px;
border-radius: 50%;
}

.bg-shape--line-top {
top: 35%;
right: 5%;
width: 350px;
height: 2px;
background-color: #ffffff;
transform: rotate(-10deg);
border: none;
}

.bg-shape--square {
top: 60%;
right: -80px;
width: 250px;
height: 250px;
transform: rotate(45deg);
}

.bg-shape--grid-pattern {
top: 75%;
left: 8%;
width: 180px;
height: 180px;
background-image:
linear-gradient(to right, #ffffff 1px, transparent 1px),
linear-gradient(to bottom, #ffffff 1px, transparent 1px);
background-size: 30px 30px;
border: none;
}

@media (max-width: 992px) {
.contacts__container { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 768px) {
.menu-toggle { display: flex; }
.nav {
display: none;
position: absolute;
top: 80px;
left: 0;
width: 100%;
background-color: var(--bg-surface);
padding: 20px;
border-bottom: 1px solid var(--border-color);
}

.nav--open { display: block; }
.nav__list { flex-direction: column; gap: 15px; }
.header__phone { display: none; }
}

/* ==========================================================================
   ПОЛНАЯ АДАПТИВНАЯ ОПТИМИЗАЦИЯ ДЛЯ МОБИЛЬНЫХ ТЕ КРАНОВ (СМАРТФОНЫ И ПЛАНШЕТЫ)
   ========================================================================== */
@media (max-width: 768px) {
    /* 1. Общие настройки и отступы */
    .container {
        padding: 0 16px; /* Чуть уменьшаем боковые поля, чтобы освободить место для контента */
    }
    
    .section-title {
        font-size: 26px; /* Уменьшаем монументальные заголовки секций */
        margin-bottom: 25px;
    }

    /* 2. Шапка и навигация */
    .header {
        height: 70px; /* Делаем шапку чуть компактнее */
    }
    
    .header__container {
        height: 70px;
    }
    
    .logo__text {
        font-size: 20px; /* Уменьшаем размер логотипа */
    }
    
    .menu-toggle {
        display: flex; /* Гарантируем отображение мобильного бургер-меню */
    }
    
    .nav {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: var(--bg-surface);
        padding: 24px;
        border-bottom: 1px solid var(--border-color);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
    }
    
    .nav--open {
        display: block; /* Показываем меню при клике на бургер */
    }
    
    .nav__list {
        flex-direction: column;
        gap: 20px;
    }
    
    .nav__link {
        font-size: 16px;
        display: block;
        padding: 8px 0;
    }
    
    .header__phone {
        display: none; /* Скрываем текстовый телефон из шапки для экономии места */
    }

    /* 3. Главный экран (Hero) — Отключаем жесткие 100vh для плавного скролла */
    .hero {
        min-height: auto; 
        padding: 100px 0 50px 0;
        display: block;
    }
    
    .hero__title {
        font-size: 28px; /* Уменьшаем главный заголовок, чтобы он не переносился на 5 строк */
        line-height: 1.2;
        margin-bottom: 16px;
    }
    
    .hero__subtitle {
        font-size: 14px;
        line-height: 1.5;
        margin-bottom: 25px;
        padding-left: 14px;
    }
    
    .hero .btn--primary {
        width: 100%; /* Делаем кнопку действия на весь экран по ширине */
        padding: 14px 24px;
        font-size: 14px;
    }
    
    .hero__features {
        flex-direction: column; /* Выстраиваем преимущества вертикально в одну колонку */
        gap: 16px;
        margin-top: 40px;
        padding-top: 20px;
    }
    
    .hero-feature-item {
        min-width: auto;
    }

    /* 4. Блок "О компании" */
    .about {
        min-height: auto;
        padding: 70px 0;
    }
    
    .about h2 {
        font-size: 28px;
        margin-bottom: 20px;
    }
    
    .about p {
        font-size: 15px;
        line-height: 1.6;
        margin-bottom: 30px;
        padding-left: 14px;
    }
    
    .director-card {
        margin-top: 25px;
        padding-left: 14px;
    }
    
    .director-card__name {
        font-size: 18px;
    }
    
    .director-card__position {
        font-size: 14px;
    }

    /* 5. Живой поиск */
    .search-section {
        padding: 20px 0;
    }
    
    .search-box input {
        padding: 12px 40px;
        font-size: 15px;
    }
    
    .search-box__icon {
        left: 14px;
        font-size: 16px;
    }

    /* 6. Каталог продукции и Сетка товаров */
    .catalog {
        padding: 40px 0;
    }
    
    .category-title {
        font-size: 18px;
        margin-bottom: 16px;
    }
    
    .products-grid {
        grid-template-columns: 1fr; /* На мобильных карточки строго по одной в ряд */
        gap: 16px;
    }
    
    .product-card {
        padding: 16px;
    }
    
    /* Делаем блок выбора объема и кнопку добавления более удобными для нажатия пальцем */
    .product-card__actions {
        flex-direction: column;
        align-items: stretch;
        gap: 10px !important;
    }
    
    .product-card__qty-wrapper {
        max-width: 100%;
        margin-right: 0;
    }
    
    .product-quantity {
        padding: 12px 45px 12px 14px !important;
        font-size: 15px !important;
    }
    
    .product-card__actions .btn-add-to-cart {
        width: 100%;
        padding: 12px 20px !important;
        font-size: 15px !important;
    }

    /* 7. Выезжающая панель корзины */
    /* 7. Исправление выезжающей панели корзины для мобильных */
    .cart-panel {
        width: 100%;
        max-width: 100%;        /* На смартфонах корзина открывается на весь экран */
        right: -100%;           /* Сдвиг в процентах для плавного скрытия */
        z-index: 10000;         /* Поднимаем корзину над мобильной навигацией и оверлеем */
        transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    }
    
    .cart-panel--open {
        right: 0 !important;    /* Принудительно открываем панель при добавлении товара */
    }
    
    .cart-panel-overlay {
        z-index: 9999;          /* Оверлей строго под панелью корзины */
    }

    /* 8. Блок "Склад" */
    .warehouse {
        padding: 60px 0;
    }
    
    .warehouse__title {
        font-size: 26px;
        margin-bottom: 30px;
    }
    
    .warehouse__strip-card {
        padding: 16px;
        gap: 16px;
    }
    
    .warehouse__strip-icon {
        font-size: 24px;
    }
    
    .warehouse__strip-name {
        font-size: 14px;
        line-height: 1.4;
    }

    /* 9. Секция Контактов и Оформления */
    .contacts {
        padding: 50px 0;
    }
    
    .contacts__container {
        grid-template-columns: 1fr; /* Форма и текст встают друг под друга */
        gap: 30px;
    }
    
    .contacts__info h2 {
        font-size: 24px;
        margin-bottom: 16px;
    }
    
    .contacts__form-wrapper {
        padding: 20px; /* Уменьшаем внутренние паддинги формы */
    }
}
