/* ========================================
   Гелиос - Порошковые краски
   Основные стили
   ======================================== */

/* --- Сброс и базовые стили --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* Цвета */
    --color-primary: #feb100;
    /* Основной жёлтый */
    --color-dark: #131313;
    /* Тёмный текст */
    --color-white: #ffffff;
    --color-light: #f8f8f8;
    /* Светлый фон */
    --color-gray: #808080;

    /* Шрифты */
    --font-main: 'Montserrat', Arial, sans-serif;

    /* Размеры */
    --container-width: 1200px;
    --header-height: 70px;
    --border-radius: 10px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    font-size: 16px;
    line-height: 1.5;
    color: var(--color-dark);
    background: var(--color-white);
}

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

a:hover {
    color: var(--color-primary);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

/* --- Контейнер --- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Кнопки --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-family: var(--font-main);
    font-size: 15px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

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

.btn-primary:hover {
    background: var(--color-dark);
    color: var(--color-white);
}

.btn-secondary {
    font-size: 13px;
    background: var(--color-primary);
    color: var(--color-dark);
}

.btn-secondary:hover {
    background: var(--color-dark);
    color: var(--color-white);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--color-primary);
    color: var(--color-dark);
}

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

/* ========================================
   Header
   ======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: transform 0.3s ease;
}

.header.hidden {
    transform: translateY(-100%);
}

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

.header__logo img {
    height: 34px;
    width: auto;
}

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

.header__nav a {
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    height: var(--header-height);
}

.header__phone {
    font-weight: 600;
    display: flex;
    align-items: center;
    height: var(--header-height);
}

/* Мобильное меню */
.header__burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
}

.header__burger span {
    width: 25px;
    height: 2px;
    background: var(--color-dark);
    transition: 0.3s;
}

@media (max-width: 960px) {
    .header__nav {
        display: none;
    }

    .header__burger {
        display: flex;
    }
}

/* ========================================
   Hero секция
   ======================================== */
.hero {
    padding: 120px 0 60px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
        url('../images/IMAGE_2024-10-29_143.jpg') center/cover no-repeat;
    color: var(--color-white);
}

.hero__content {
    max-width: 600px;
}

.hero__title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 20px;
}

.hero__subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 30px;
}

.hero__buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .hero__title {
        font-size: 32px;
    }
}

/* ========================================
   Секции
   ======================================== */
.section {
    padding: 80px 0;
}

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

.section__title {
    font-size: 36px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 50px;
}

/* ========================================
   Продукты (сетка карточек)
   ======================================== */
.products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--color-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.product-card__image {
    height: 200px;
    overflow: hidden;
}

.product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card__content {
    padding: 25px;
}

.product-card__title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}

.product-card__desc {
    color: var(--color-gray);
    font-size: 14px;
}

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

.feature {
    display: flex;
    gap: 20px;
    padding: 30px;
    background: var(--color-white);
    border-radius: var(--border-radius);
}

.feature__icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary);
    border-radius: 10px;
}

.feature__icon img {
    width: 30px;
    height: 30px;
}

.feature__title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.feature__desc {
    font-size: 14px;
    color: var(--color-gray);
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: var(--color-dark);
    color: var(--color-white);
    padding: 60px 0 30px;
}

.footer__inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.footer__logo img {
    height: 40px;
    margin-bottom: 20px;
}

.footer__title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
}

.footer__links a {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 10px;
    font-size: 14px;
}

.footer__links a:hover {
    color: var(--color-primary);
}

.footer__contact {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin-bottom: 10px;
}

.footer__contact a {
    color: var(--color-white);
    font-weight: 600;
}

.footer__social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.footer__social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: background 0.3s ease;
}

.footer__social a:hover {
    background: var(--color-primary);
}

.footer__bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

/* ========================================
   Страницы продуктов
   ======================================== */
.page-header {
    padding: 120px 0 60px;
    background: var(--color-light);
    text-align: center;
}

.page-header__title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 15px;
}

.page-header__subtitle {
    font-size: 18px;
    color: var(--color-gray);
    max-width: 600px;
    margin: 0 auto;
}

/* Контент страницы */
.page-content {
    padding: 60px 0;
}

.page-content p {
    margin-bottom: 20px;
    line-height: 1.7;
}

.page-content h2 {
    font-size: 28px;
    margin: 40px 0 20px;
}

.page-content ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.page-content li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 20px;
}

.page-content li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    background: var(--color-primary);
    border-radius: 50%;
}

/* ========================================
   Контакты
   ======================================== */
.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

@media (max-width: 768px) {
    .contacts-grid {
        grid-template-columns: 1fr;
    }
}

.contact-info {
    padding: 40px;
    background: var(--color-light);
    border-radius: var(--border-radius);
}

.contact-item {
    margin-bottom: 30px;
}

.contact-item__label {
    font-size: 14px;
    color: var(--color-gray);
    margin-bottom: 5px;
}

.contact-item__value {
    font-size: 18px;
    font-weight: 600;
}

.contact-item__value a {
    color: var(--color-dark);
}

/* Форма */
.form {
    padding: 40px;
    background: var(--color-white);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.form__title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 25px;
}

.form__group {
    margin-bottom: 20px;
}

.form__label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}

.form__input,
.form__textarea,
.form__select {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--font-main);
    font-size: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    transition: border-color 0.3s ease;
}

.form__input:focus,
.form__textarea:focus,
.form__select:focus {
    outline: none;
    border-color: var(--color-primary);
}

.form__textarea {
    min-height: 120px;
    resize: vertical;
}

.form__checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: var(--color-gray);
}

.form__checkbox input {
    margin-top: 3px;
}

.form__checkbox a {
    color: var(--color-dark);
    text-decoration: underline;
}

/* ========================================
   Мобильное меню (боковая панель)
   ======================================== */
.mobile-menu {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100vh;
    background: var(--color-white);
    z-index: 1001;
    transition: left 0.3s ease;
    padding: 80px 30px 30px;
    overflow-y: auto;
}

.mobile-menu.active {
    left: 0;
}

.mobile-menu__close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 30px;
    height: 30px;
    cursor: pointer;
}

.mobile-menu__nav a {
    display: block;
    padding: 12px 0;
    font-size: 17px;
    font-weight: 500;
    border-bottom: 1px solid var(--color-light);
}

.mobile-menu__overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
}

.mobile-menu__overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ========================================
   Утилиты
   ======================================== */
.text-center {
    text-align: center;
}

.text-primary {
    color: var(--color-primary);
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.mt-40 {
    margin-top: 40px;
}

.mb-40 {
    margin-bottom: 40px;
}