/* =========================================
   1. Основные настройки и Переменные
   ========================================= */
:root {
    /* Цветовая палитра */
    --color-bg: #1a1a1a;          /* Антрацит (основной фон) */
    --color-bg-light: #252525;    /* Чуть светлее (для блоков) */
    --color-accent: #E53935;      /* Яркий красный (акцент) */
    --color-accent-hover: #D32F2F;/* Темно-красный (при наведении) */
    --color-text: #ffffff;        /* Белый текст */
    --color-text-gray: #b0b0b0;   /* Серый текст */
    
    /* Размеры и отступы */
    --container-width: 1200px;
    --header-height: 80px;
    --border-radius: 4px;         /* Строгие углы, небольшой радиус */
}

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

html {
    scroll-behavior: smooth; /* Плавный скролл к якорям */
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden; /* Скрываем горизонтальную прокрутку */
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* Контейнер для центрирования контента */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Общие стили для секций */
.section {
    padding: 80px 0;
}

.section--dark {
    background-color: var(--color-bg-light);
}

.section__header {
    margin-bottom: 40px;
}

.section__title {
    font-size: 32px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.section__line {
    width: 60px;
    height: 4px;
    background-color: var(--color-accent);
}

/* Кнопки */
.btn {
    display: inline-block;
    padding: 15px 35px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: var(--border-radius);
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.btn--primary {
    background-color: var(--color-accent);
    color: #fff;
    box-shadow: 0 4px 15px rgba(229, 57, 53, 0.3); /* Красное свечение */
}

.btn--primary:hover {
    background-color: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(229, 57, 53, 0.5);
}

.btn--full {
    width: 100%;
    text-align: center;
}

/* =========================================
   2. Шапка (Header) и Бургер (ОБНОВЛЕНО)
   ========================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 100px; /* Увеличили высоту для новых элементов */
    background-color: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    display: flex; /* Чтобы выравнивать контент по вертикали */
    align-items: center;
}

.header__container {
    padding-top: 10px;
    padding-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 1px;
    color: #fff;
    z-index: 1002; /* Чтобы лого было видно над открытым меню */
}

.logo__accent {
    color: var(--color-accent);
}

/* Правая часть: Контакты + Бургер */
.header__right {
    display: flex;
    align-items: center;
    gap: 30px;
}

/* Группа контактов (Почта, Телефон, Иконки) */
.header__contacts {
    display: flex;
    flex-direction: column; /* Столбик */
    align-items: flex-end;  /* Прижаты к правому краю */
}

.header__email {
    font-size: 13px;
    color: #ccc;
    margin-bottom: 4px;
    transition: color 0.3s;
}

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

.header__phone {
    font-weight: 700;
    font-size: 18px;
    color: #fff;
    margin-bottom: 8px;
    line-height: 1.1;
}

/* Ряд иконок в шапке */
.header__socials {
    display: flex;
    gap: 12px;
}

.social-link img {
    width: 20px;
    height: 20px;
    display: block;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.social-link:hover img {
    opacity: 1;
}

/* Бургер кнопка */
.burger {
    width: 30px;
    height: 20px;
    position: relative;
    cursor: pointer;
    z-index: 1001;
}

.burger span {
    display: block;
    position: absolute;
    height: 2px;
    width: 100%;
    background: #fff;
    border-radius: 2px;
    transition: .25s ease-in-out;
}

.burger span:nth-child(1) { top: 0px; }
.burger span:nth-child(2) { top: 9px; }
.burger span:nth-child(3) { top: 18px; }

.burger.open span:nth-child(1) { top: 9px; transform: rotate(135deg); background: var(--color-accent); }
.burger.open span:nth-child(2) { opacity: 0; left: -60px; }
.burger.open span:nth-child(3) { top: 9px; transform: rotate(-135deg); background: var(--color-accent); }

/* Мобильное меню */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--color-bg);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    transform: translateY(-20px);
}

.mobile-menu.open { opacity: 1; visibility: visible; transform: translateY(0); }
.mobile-menu__nav { display: flex; flex-direction: column; align-items: center; gap: 30px; }
.mobile-menu__link { font-size: 24px; font-weight: 700; text-transform: uppercase; color: #fff; }

/* =========================================
   3. Главный экран (Hero)
   ========================================= */
.hero {
    height: 100vh; /* На весь экран */
    position: relative;
    display: flex;
    align-items: center;
    background-image: url('img/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    margin-top: -80px; /* Компенсация высоты хедера */
    padding-top: 80px;
}

/* Затемнение фона */
.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(26,26,26,0.9) 0%, rgba(26,26,26,0.6) 100%);
    z-index: 1;
}

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

.hero__title {
    font-size: 48px;
    line-height: 1.2;
    font-weight: 800;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.hero__subtitle {
    font-size: 18px;
    color: #ddd;
    margin-bottom: 40px;
    max-width: 600px;
}

/* =========================================
   4. Каталог Превью
   ========================================= */
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.catalog-card {
    position: relative;
    height: 350px;
    overflow: hidden;
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    background-color: #333;
}

.catalog-card__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
    opacity: 0.6;
}

/* Эффект зума картинки при наведении */
.catalog-card:hover .catalog-card__bg {
    transform: scale(1.1);
    opacity: 0.4;
}

.catalog-card__content {
    position: relative;
    z-index: 2;
}

.catalog-card h3 {
    font-size: 24px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.catalog-card p {
    color: var(--color-text-gray);
    font-size: 14px;
    margin-bottom: 15px;
}

.catalog-card__link {
    font-weight: 600;
    color: var(--color-accent);
    text-transform: uppercase;
    font-size: 14px;
}

/* =========================================
   5. Преимущества
   ========================================= */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.feature-item__title {
    font-size: 20px;
    margin-bottom: 15px;
    color: #fff;
    position: relative;
    padding-left: 15px;
    border-left: 3px solid var(--color-accent);
}

.feature-item p {
    color: var(--color-text-gray);
    font-size: 15px;
}

/* =========================================
   6. О компании
   ========================================= */
.about__text p {
    margin-bottom: 20px;
    color: #ddd;
    font-size: 16px;
}

/* =========================================
   7. Форма заявки
   ========================================= */
.form-section {
    background-image: url('https://images.unsplash.com/photo-1504917595217-d4dc5ebe6122?q=80&w=2070&auto=format&fit=crop'); /* Фон для формы */
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Параллакс эффект */
    position: relative;
}

/* Затемнение поверх фото */
.form-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 26, 26, 0.9);
}

.form-wrapper {
    position: relative;
    z-index: 2;
    max-width: 500px;
    margin: 0 auto;
    background: #252525;
    padding: 40px;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255,255,255,0.05);
}

.form-title {
    text-align: center;
    font-size: 24px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.form-subtitle {
    text-align: center;
    color: var(--color-text-gray);
    margin-bottom: 30px;
    font-size: 14px;
}

.input-group {
    margin-bottom: 20px;
}

.input-field {
    width: 100%;
    height: 50px;
    background: #1a1a1a;
    border: 1px solid #333;
    color: #fff;
    padding: 0 15px;
    font-size: 16px;
    font-family: inherit;
    border-radius: var(--border-radius);
    transition: border-color 0.3s;
}

.input-field:focus {
    outline: none;
    border-color: var(--color-accent);
}

.form-policy {
    margin-top: 15px;
    font-size: 12px;
    color: #666;
    text-align: center;
}

/* =========================================
   8. Футер
   ========================================= */
.footer {
    background-color: #111;
    padding: 40px 0;
    border-top: 1px solid #333;
}

.footer__container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 30px;
}

.footer__copy {
    color: #666;
    font-size: 14px;
    margin-top: 10px;
}

.footer__col--right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.footer__email {
    color: var(--color-accent);
    font-weight: 600;
}

/* =========================================
   9. Адаптивность (Mobile) - ИСПРАВЛЕННАЯ ВЕРСИЯ
   ========================================= */
@media (max-width: 768px) {
    /* --- ХЕДЕР --- */
    .header {
        min-height: 60px; /* Компактная высота */
    }
    
    .logo {
        font-size: 18px; /* Логотип чуть меньше */
    }

    /* 1. ГЛАВНОЕ: Не скрываем блок контактов целиком, 
          а делаем его видимым для иконок */
    .header__contacts {
        display: flex; 
        align-items: center;
        margin-right: 15px; /* Отступ до бургера */
    }

    /* 2. Но скрываем текстовые контакты (Почту и Телефон), 
          так как они занимают много места */
    .header__email, 
    .header__phone {
        display: none; 
    }

    /* 3. Иконки оставляем и настраиваем */
    .header__socials {
        display: flex;
        gap: 15px; /* Расстояние между иконками побольше */
    }
    
    .social-link img {
        width: 28px; /* Чуть крупнее, чтобы пальцем попасть */
        height: 28px;
    }

    /* --- ОСТАЛЬНОЕ (Шрифты и отступы) --- */
    .hero__title {
        font-size: 26px; /* Заголовок меньше, чтобы не было переносов некрасивых */
    }
    
    .section {
        padding: 40px 0; /* Уменьшаем отступы между секциями */
    }
    
    .form-wrapper {
        padding: 20px; /* Форма компактнее */
    }

    /* --- ФУТЕР --- */
    .footer__container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer__col--right {
        align-items: center;
        margin-top: 20px;
    }
}

/* Исправление сетки для маленьких экранов */
@media (max-width: 480px) {
    .catalog-grid, 
    .products-grid {
        /* Принудительно ставим одну колонку на всю ширину */
        grid-template-columns: 1fr; 
    }
    
    /* Уменьшаем внутренние отступы в форме, чтобы она не была узкой */
    .form-wrapper {
        padding: 20px;
    }

    /* Уменьшаем шрифт результата калькулятора, чтобы не вылезал */
    .result-value {
        font-size: 32px;
    }
}

/* =========================================
   10. Стили для внутренних страниц (Каталог)
   ========================================= */

/* Уменьшенный заголовок для каталога */
.hero--small {
    height: 40vh;         /* Высота меньше, чем на главной */
    min-height: 350px;
    display: flex;
    align-items: center;
    position: relative;
    background-size: cover;
    background-position: center;
    margin-top: -80px;    /* Чтобы залезть под прозрачную шапку */
    padding-top: 80px;
}

/* Сетка товаров */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); /* Адаптивные колонки */
    gap: 30px;
}

/* Карточка отдельного товара */
.product-item {
    background: #252525;  /* Чуть светлее фона */
    padding: 35px 30px;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255,255,255,0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

/* Эффект при наведении на карточку */
.product-item:hover {
    border-color: var(--color-accent);
    transform: translateY(-7px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.product-item__title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #fff;
    line-height: 1.4;
}

.product-item__gost {
    color: var(--color-text-gray);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 25px;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Ссылка "Запросить цену" в карточке */
.btn-link {
    display: inline-block;
    color: var(--color-accent);
    font-size: 14px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    margin-top: auto; /* Прижимаем к низу */
}

.btn-link:hover {
    border-bottom-color: var(--color-accent);
    padding-bottom: 3px;
}

/* Дополнительный стиль для описания товара в каталоге */
.product-item__desc {
    font-size: 13px;
    color: #999;           /* Благородный серый цвет */
    line-height: 1.5;
    margin-bottom: 15px;   /* Отступ до ГОСТа */
    flex-grow: 1;          /* Растягивает блок, чтобы кнопки были на одной линии */
}

/* =========================================
   11. Страница Контакты и Реквизиты (Обновленная)
   ========================================= */

/* Центрируем основной контейнер */
.contacts-centered {
    max-width: 900px; /* Ограничиваем ширину, чтобы не растягивалось слишком сильно */
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 60px;
}

/* Верхний блок с телефоном и почтой */
.contacts-top-info {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
    text-align: center;
}

.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-label {
    font-size: 14px;
    text-transform: uppercase;
    color: var(--color-text-gray);
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.contact-value {
    font-size: 22px;
    font-weight: 600;
    color: #fff;
}

.contact-value:hover {
    color: var(--color-accent);
}

/* Блок с большой таблицей */
.requisites-full {
    background: #252525;
    padding: 40px;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255,255,255,0.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.requisites-title {
    font-size: 24px;
    margin-bottom: 30px;
    text-align: center;
    text-transform: uppercase;
    color: #fff;
    border-bottom: 2px solid var(--color-accent);
    padding-bottom: 15px;
    display: inline-block;
    width: 100%;
}

/* Стили таблицы */
.req-table-full {
    width: 100%;
    border-collapse: collapse;
}

.req-table-full td {
    padding: 15px 10px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    font-size: 15px;
    vertical-align: top;
}

.req-table-full tr:last-child td {
    border-bottom: none;
}

/* Первая колонка (названия) - серая и поуже */
.req-table-full td:first-child {
    color: var(--color-text-gray);
    width: 35%;
    font-weight: 500;
}

/* Вторая колонка (значения) - белая */
.req-table-full td:last-child {
    color: #fff;
}

/* Кнопка печати */
.btn-print {
    background: transparent;
    border: 1px solid var(--color-text-gray);
    color: var(--color-text-gray);
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 30px;
    font-family: inherit;
    font-size: 14px;
    transition: all 0.3s;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.btn-print:hover {
    border-color: #fff;
    color: #fff;
}

/* Адаптив для мобильных */
@media (max-width: 768px) {
    .requisites-full {
        padding: 20px;
    }
    
    .contacts-top-info {
        gap: 30px;
    }

    .contact-value {
        font-size: 18px;
    }

    /* На телефоне таблица перестраивается */
    .req-table-full td {
        display: block;
        width: 100% !important;
        padding: 5px 0;
    }

    .req-table-full td:first-child {
        margin-top: 15px;
        font-size: 12px;
        text-transform: uppercase;
    }
    
    .req-table-full td:last-child {
        border-bottom: 1px solid rgba(255,255,255,0.1);
        padding-bottom: 15px;
    }
}

/* =========================================
   12. Обновление каталога (С фото)
   ========================================= */

/* Карточка товара переработана для фото */
.product-item {
    padding: 0; /* Убираем старый паддинг, он будет внутри */
    overflow: hidden; /* Чтобы картинка не вылезала за скругления */
    display: flex;
    flex-direction: column;
}

/* Контейнер для картинки */
.product-item__img-box {
    width: 100%;
    height: 200px; /* Фиксированная высота фото */
    background-color: #333; /* Цвет на случай, если картинка не прогрузится */
    position: relative;
    overflow: hidden;
}

/* Сама картинка */
.product-item__img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Картинка заполняет блок, не растягиваясь */
    transition: transform 0.5s ease;
}

/* Эффект при наведении на карточку - зум картинки */
.product-item:hover .product-item__img {
    transform: scale(1.1);
}

/* Блок с текстом под картинкой */
.product-item__info {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Растягивается, чтобы кнопки были на одном уровне */
}

/* Корректируем отступы заголовков внутри нового дизайна */
.product-item__title {
    font-size: 18px;
    margin-bottom: 10px;
    min-height: auto; /* Снимаем старое ограничение */
}

.product-item__gost {
    margin-bottom: 20px;
    border-top: none; /* Убираем старую линию, она здесь лишняя */
    padding-top: 0;
    color: var(--color-accent); /* Делаем ГОСТ акцентным */
    font-weight: 600;
}

.btn-link {
    margin-top: auto; /* Прижимаем кнопку к низу */
    align-self: flex-start; /* Кнопка слева */
}

/* Стили для ссылок на ГОСТы */
.gost-link {
    color: var(--color-accent); /* Делаем красным или цветом текста */
    text-decoration: none;
    transition: all 0.15s ease;
    font-weight: 500;
}

.gost-link:hover {
    border-bottom-style: solid; /* При наведении линия становится сплошной */
    opacity: 0.5;
}


/* =========================================
   медиа 
   ========================================= */

@media print {
    /* 1. Прячем всё лишнее */
    header, footer, .page-header, .form-section, .btn-print, 
    .burger, .mobile-menu, .contacts-top-info {
        display: none !important;
    }

    /* 2. Подготовка листа */
    body {
        background: #fff !important;
        color: #000 !important;
        margin: 0 !important;
        padding: 0 !important;
        print-color-adjust: exact;
    }

    .contacts-section {
        padding: 0 !important;
        margin: 0 !important;
    }

    .contacts-centered {
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 !important;
        display: block !important; /* Убираем флексы, которые могут мешать */
    }

    /* 3. Оформление карточки */
    .requisites-full {
        background: #fff !important;
        color: #000 !important;
        padding: 0 !important;
        border: none !important;
        box-shadow: none !important;
    }

    .requisites-title {
        color: #000 !important;
        border-bottom: 2px solid #000 !important;
        font-size: 18pt !important;
        margin: 0 0 15pt 0 !important;
        padding-bottom: 5pt !important;
        text-align: center;
    }

    /* 4. ЖЕСТКАЯ ТАБЛИЦА (чтобы не расползалась) */
    .req-table-full {
        display: table !important; /* Принудительно таблица */
        width: 100% !important;
        border-collapse: collapse !important;
    }

    .req-table-full tr {
        display: table-row !important;
    }

    .req-table-full td {
        display: table-cell !important; /* Принудительно ячейка */
        padding: 6pt 10pt !important; /* Минимальные отступы, чтобы влезло */
        font-size: 10pt !important; /* Стандартный размер шрифта для печати */
        border-bottom: 1px solid #ccc !important;
        color: #000 !important;
        vertical-align: middle !important;
    }

    /* Фиксируем колонки: 40% на названия, 60% на данные */
    .req-table-full td:first-child {
        width: 40% !important;
        font-weight: bold !important;
        color: #333 !important;
    }

    .req-table-full td:last-child {
        width: 60% !important;
    }
}

/* =========================================
   12. Калькулятор металла
   ========================================= */
.calc-section {
    background-color: var(--color-bg);
}

.calc-wrapper {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
    background: #252525;
    padding: 40px;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255,255,255,0.05);
}

.calc-title {
    font-size: 20px;
    margin-bottom: 20px;
    color: #fff;
    text-transform: uppercase;
}

/* Селектор типа */
.calc-select {
    width: 100%;
    padding: 15px;
    background: #1a1a1a;
    border: 1px solid #444;
    color: #fff;
    font-size: 16px;
    border-radius: 4px;
    margin-bottom: 30px;
    cursor: pointer;
    outline: none;
}
.calc-select:focus { border-color: var(--color-accent); }

/* Сетка полей ввода */
.calc-inputs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.calc-input-group {
    display: flex;
    flex-direction: column;
}

.calc-label {
    font-size: 12px;
    color: var(--color-text-gray);
    margin-bottom: 8px;
}

.calc-input {
    background: #1a1a1a;
    border: 1px solid #444;
    color: #fff;
    padding: 12px;
    border-radius: 4px;
    font-size: 16px;
    outline: none;
    transition: border 0.3s;
}
.calc-input:focus { border-color: var(--color-accent); }

/* Переключатель режимов */
.calc-mode {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.calc-radio {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    color: #fff;
}
.calc-radio input { accent-color: var(--color-accent); transform: scale(1.2); }

.calc-divider {
    height: 1px;
    background: rgba(255,255,255,0.1);
    margin: 20px 0;
}

/* Блок результата */
.calc-result-box {
    background: linear-gradient(135deg, #333 0%, #222 100%);
    padding: 30px;
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.1);
}

.result-header {
    color: var(--color-text-gray);
    font-size: 14px;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.result-value {
    font-size: 42px;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    margin-bottom: 15px;
}

.result-unit {
    font-size: 20px;
    color: var(--color-accent);
    font-weight: 500;
}

.result-note {
    font-size: 12px;
    color: #666;
    margin-top: 10px;
}

#orderDetails {
    min-height: 120px; /* Увеличиваем высоту поля */
    line-height: 1.5;
    padding-top: 15px;
}

/* Адаптив калькулятора */
@media (max-width: 900px) {
    .calc-wrapper { grid-template-columns: 1fr; }
    .calc-inputs-grid { grid-template-columns: 1fr 1fr; } /* На планшете 2 колонки */
}

@media (max-width: 500px) {
    .calc-inputs-grid { grid-template-columns: 1fr; } /* На телефоне 1 колонка */
    .result-value { font-size: 36px; }
}

/* Стили для новых полей формы */
textarea.input-field {
    resize: vertical; /* Разрешаем менять высоту */
    min-height: 80px;
    font-family: inherit;
}

/* Красивая кнопка загрузки файла */
.file-group {
    margin-top: 10px;
}

.file-label {
    display: block;
    cursor: pointer;
}

.file-text {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #aaa;
}

.file-input {
    width: 100%;
    padding: 10px;
    background: #1a1a1a;
    border: 1px dashed #555;
    border-radius: 4px;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
}

.file-input:hover {
    border-color: var(--color-accent);
}

/* --- КОРЗИНА РАСЧЕТОВ --- */
.calc-orders-label {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333; /* Или белый, если фон формы темный */
    margin-top: 20px;
}

.calc-order-list {
    background: #f5f5f5; /* Светло-серый фон контейнера */
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 10px;
    margin-bottom: 20px;
    min-height: 50px;
    max-height: 300px;
    overflow-y: auto; /* Скролл, если много позиций */
}

.empty-list-msg {
    color: #999;
    font-size: 13px;
    text-align: center;
    padding: 10px;
}

/* Карточка одной позиции (прямоугольник) */
.order-item {
    background: #fff;
    border: 1px solid #eee;
    border-left: 4px solid var(--color-accent); /* Акцентная полоска слева */
    padding: 12px;
    margin-bottom: 8px;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: transform 0.2s;
}

.order-item:hover {
    transform: translateX(3px);
}

.order-info {
    font-size: 13px;
    color: #333;
    line-height: 1.4;
}

.order-title {
    font-weight: 700;
    color: #000;
    display: block;
    margin-bottom: 2px;
}

/* Кнопка удаления (Мусорка) */
.order-remove {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    color: #ff4d4d;
    font-size: 18px;
    margin-left: 10px;
    opacity: 0.7;
    transition: 0.3s;
}

.order-remove:hover {
    opacity: 1;
    transform: scale(1.1);
}

.calc-error-msg {
    color: #ff4d4d; /* Ярко-красный */
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
    min-height: 0;
    display: none; /* Скрыт по умолчанию */
    background: rgba(255, 77, 77, 0.1);
    padding: 10px;
    border-radius: 4px;
    border: 1px solid rgba(255, 77, 77, 0.3);
}

/* Класс, который JS будет добавлять, чтобы показать ошибку */
.calc-error-msg.visible {
    display: block;
}



/* Сами ссылки-иконки */
.social-link {
    display: block;
    width: 24px; /* Размер иконки (меняй по вкусу) */
    height: 24px;
    transition: opacity 0.3s;
    /* Если пока нет картинок, можно временно закрасить квадратиком: */
    /* background-color: #333; */ 
}

.social-link:hover {
    opacity: 0.7;
}

.social-link img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Чтобы картинка не сплющилась */
    display: block;
}

/* ВАЖНО: Если хедер был фиксированной высоты (height: 80px),
   замени это на min-height или padding, чтобы он мог растянуться */

/* --- СОЦСЕТИ НА СТРАНИЦЕ КОНТАКТОВ --- */

.contacts-page__socials {
    margin-top: 25px; /* Отступ сверху от почты/телефона */
    text-align: center;
}

.socials-label {
    font-size: 14px;
    color: #888;
    margin-bottom: 10px;
    display: block;
}

.socials-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap; /* Чтобы переносились на моб., если не влезут */
    gap: 15px; /* Расстояние между кнопками */
}

.contact-social-link {
    display: flex;
    align-items: center;
    gap: 10px; /* Расстояние от иконки до текста */
    text-decoration: none;
    color: #333; /* Цвет текста */
    background-color: #f5f5f5; /* Легкая подложка */
    padding: 10px 20px;
    border-radius: 50px; /* Овальные кнопки */
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.contact-social-link:hover {
    background-color: #fff;
    border-color: var(--color-accent); /* Твой основной цвет (оранжевый/синий) */
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Размер иконок внутри кнопок */
.contact-social-link img {
    width: 26px;
    height: 24px;
    object-fit: contain;
}

/* =========================================
   14. Исправление отступов (FIX v2)
   ========================================= */

/* Сбрасываем отрицательные марджины, если они остались от старого кода */
.hero, .hero--small {
    margin-top: 0 !important;
}