/* ============================================================
   БАЗОВЫЕ СБРОСЫ И ПЕРЕМЕННЫЕ
   ============================================================ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-primary: #e67e22;
    --color-primary-dark: #d35400;
    --color-secondary: #2c3e50;
    --color-bg: #f8f6f3;
    --color-text: #1e1e1e;
    --color-gray: #7f8c8d;
    --color-light: #ecf0f1;
    --color-block: #ffffff;
    --color-border: #e0e0e0;
    --radius: 12px;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --transition: 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', Arial, sans-serif;
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    padding-top: 70px; /* чтобы контент не уходил под фиксированную шапку */
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

.logo_flame {
	display:flex;
	align-items:flex-end;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================================
   КНОПКИ
   ============================================================ */
.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-align: center;
}

.btn--primary {
    background: var(--color-primary);
    color: #fff;
}

.btn--primary:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(230, 126, 34, 0.35);
}

.btn--secondary {
    background: transparent;
    color: #8f7c7c;
    border: 2px solid var(--color-primary);
}

.btn--secondary:hover {
    background: var(--color-primary);
    color: #fff;
}

.btn--small {
    padding: 8px 20px;
    font-size: 14px;
}

.btn--full {
    width: 100%;
}

/* ============================================================
   ЗАГОЛОВКИ
   ============================================================ */
.section-title {
    font-size: 36px;
    font-weight: 900;
    text-align: center;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.section-title--left {
    text-align: left;
}

.section-subtitle {
    text-align: center;
    color: var(--color-gray);
    font-size: 18px;
    margin-bottom: 40px;
}

/* ============================================================
   ШАПКА (HEADER)
   ============================================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--color-block);
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    z-index: 1000;
    padding: 12px 0;
}

.header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo__text {
    font-size: 32px;
    font-weight: 900;
    color: var(--color-primary);
}

.logo__tagline {
    display: block;
    font-size: 12px;
    color: var(--color-gray);
    font-weight: 400;
}

.nav {
    display: flex;
    gap: 28px;
    align-items: center;
}

.nav a {
    font-weight: 500;
    font-size: 15px;
    transition: var(--transition);
    border-bottom: 2px solid transparent;
    padding-bottom: 4px;
}

.nav a:hover {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
}

/* Бургер-меню (пока скрыт на десктопе) */
.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.burger span {
    width: 28px;
    height: 3px;
    background: var(--color-secondary);
    border-radius: 4px;
    transition: var(--transition);
}

/* ============================================================
   ГЛАВНЫЙ ЭКРАН (HERO)
   ============================================================ */
.hero {
    padding: 80px 0 100px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
    min-height: 500px;
    display: flex;
    align-items: center;
}

/* Фоновое изображение (замените на своё) */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../img/hero-bg.jpg') center/cover no-repeat;
    opacity: 0.25;
    z-index: 0;
}

.hero__content {
    position: relative;
    z-index: 1;
    max-width: 700px;
}

.hero__title {
    font-size: 52px;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero__subtitle {
    font-size: 20px;
    opacity: 0.85;
    margin-bottom: 36px;
}

.hero__actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* ============================================================
   ПРЕИМУЩЕСТВА (BENEFITS)
   ============================================================ */
.benefits {
    padding: 60px 0;
}

.benefits__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.benefit-item {
    background: var(--color-block);
    border: 1px solid var(--color-border);
    padding: 30px 24px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.benefit-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.10);
}

.benefit-item__icon {
    font-size: 44px;
    margin-bottom: 12px;
}

.benefit-item h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.benefit-item p {
    color: var(--color-gray);
    font-size: 15px;
}

/* ============================================================
   КАТАЛОГ ТОВАРОВ (PRODUCTS)
   ============================================================ */
.products {
    padding: 60px 0;
    background: var(--color-block);
}

.products__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.product-card {
    background: var(--color-block);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.10);
}

.product-card__image {
    height: 400px;
    background: #d5d8dc;
    overflow: hidden;
}

.product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-card__image img {
    transform: scale(1.03);
}

.product-card__body {
    padding: 20px 20px 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-card__title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.product-card__desc {
    color: var(--color-gray);
    font-size: 14px;
    margin-bottom: 12px;
}

.product-card__specs {
    list-style: none;
    font-size: 14px;
    margin-bottom: 16px;
    color: #2c3e50;
}

.product-card__specs li {
    padding: 2px 0;
}

.product-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    border-top: 1px solid #e0e0e0;
    padding-top: 16px;
}

.product-card__price {
    font-size: 22px;
    font-weight: 900;
    color: var(--color-primary);
}

.products__more {
    text-align: center;
}

/* --- Фильтр по категориям (строится из категорий товаров) --- */
.products__filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 30px;
}

.products__filter-btn {
    padding: 9px 18px;
    border: 1px solid #e0e0e0;
    background: #fff;
    border-radius: 22px;
    font-size: 14px;
    font-family: inherit;
    color: #333;
    cursor: pointer;
    transition: var(--transition);
}

.products__filter-btn:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.products__filter-btn.is-active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
    font-weight: 600;
}

.products__empty {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--color-gray);
    padding: 30px 0;
}

/* --- Мини-галерея в карточке товара --- */
.product-card__image {
    position: relative;
}

.product-card__thumbs {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    gap: 6px;
    padding: 8px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.55));
    overflow-x: auto;
}

.product-card__thumb {
    width: 44px;
    height: 44px;
    padding: 0;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 8px;
    overflow: hidden;
    background: #d5d8dc;
    cursor: pointer;
    flex: 0 0 auto;
    opacity: 0.85;
    transition: var(--transition);
}

.product-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-card__thumb:hover,
.product-card__thumb.is-active {
    opacity: 1;
    border-color: #fff;
}

.product-card:hover .product-card__thumb img {
    transform: none;
}

/* ============================================================
   ПОЛЕЗНАЯ ИНФОРМАЦИЯ (BLOG)
   ============================================================ */
.blog {
    padding: 60px 0;
}

.blog__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.blog-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.10);
}

.blog-card__image {
    height: 180px;
    background: #bdc3c7;
    overflow: hidden;
}

.blog-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-card__body {
    padding: 20px 20px 24px;
}

.blog-card__tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-primary);
    background: #fdebd0;
    padding: 2px 14px;
    border-radius: 50px;
    margin-bottom: 8px;
}

.blog-card__title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.blog-card__excerpt {
    color: var(--color-gray);
    font-size: 14px;
    margin-bottom: 12px;
}

.blog-card__link {
    color: var(--color-primary);
    font-weight: 700;
    transition: var(--transition);
}

.blog-card__link:hover {
    color: var(--color-primary-dark);
    padding-left: 6px;
}

/* ============================================================
   ФОРМА ЗАКАЗА (ORDER)
   ============================================================ */
.order {
    padding: 60px 0;
    background: var(--color-block);
}

.order__wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.order__info p {
    font-size: 18px;
    color: var(--color-gray);
    margin-bottom: 20px;
}

.order__contacts {
    list-style: none;
    font-size: 17px;
}

.order__contacts li {
    padding: 6px 0;
}

.order__contacts a {
    color: var(--color-primary);
    font-weight: 700;
}

.order__contacts a:hover {
    text-decoration: underline;
}

/* График работы и приёма заказов (задаётся в CRM → Оформление) */
.order__schedule {
    margin-top: 14px;
}

.order__schedule-icon h3 {
    font-size: 17px;
    margin-bottom: 6px;
}

.order__schedule-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    max-width: 320px;
    padding: 4px 0;
    border-bottom: 1px dashed var(--color-border);
    font-size: 16px;
}

.order__schedule-days {
    color: var(--color-gray);
}

.order__schedule-time {
    font-weight: 700;
}

.order__schedule-note {
    margin-top: 10px;
    max-width: 360px;
    font-size: 14px;
    color: var(--color-gray);
}

/* Форма */
.order__form {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    padding: 32px 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    transition: var(--transition);
    background: #fff;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--color-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.15);
}

.form__notice {
    font-size: 13px;
    color: var(--color-gray);
    text-align: center;
    margin-top: 12px;
}

/* ============================================================
   ПОДВАЛ (FOOTER)
   ============================================================ */
.footer {
    background: var(--color-secondary);
    color: #ecf0f1;
    padding: 40px 0 20px;
}

.footer__inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.footer__logo {
    font-size: 22px;
    font-weight: 900;
    color: var(--color-primary);
}

.footer__brand p {
    opacity: 0.7;
    font-size: 14px;
    margin-top: 6px;
}

.footer__links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer__links a {
    opacity: 0.7;
    transition: var(--transition);
}

.footer__links a:hover {
    opacity: 1;
    color: var(--color-primary);
}

.footer__social {
    display: flex;
    gap: 16px;
    font-size: 28px;
}

.footer__social a {
    opacity: 0.6;
    transition: var(--transition);
}

.footer__social a:hover {
    opacity: 1;
}

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 20px;
    text-align: center;
    font-size: 14px;
    opacity: 0.5;
}

/* ============================================================
   АДАПТИВ — ПЛАНШЕТЫ (до 1024px)
   ============================================================ */
@media (max-width: 1024px) {
    .benefits__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .blog__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .order__wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* ============================================================
   АДАПТИВ — ТЕЛЕФОНЫ (до 768px)
   ============================================================ */
@media (max-width: 768px) {
    body {
        padding-top: 60px;
    }

    /* Шапка */
    .nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #fff;
        padding: 20px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
        gap: 16px;
    }

    .nav.open {
        display: flex;
    }

    .burger {
        display: flex;
    }

    .header__inner .btn--small {
        display: none;
    }

    /* Герой */
    .hero {
        min-height: 400px;
        padding: 60px 0;
        text-align: center;
    }

    .hero__title {
        font-size: 32px;
    }

    .hero__subtitle {
        font-size: 17px;
    }

    .hero__actions {
        justify-content: center;
    }

    .hero__actions .btn {
        width: 100%;
        max-width: 260px;
    }

    /* Заголовки */
    .section-title {
        font-size: 28px;
    }

    /* Товары — 1 колонка на телефоне */
    .products__grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }

    /* Преимущества — 1 колонка */
    .benefits__grid {
        grid-template-columns: 1fr;
        max-width: 380px;
        margin-left: auto;
        margin-right: auto;
    }

    /* Блог — 1 колонка */
    .blog__grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }

    /* Подвал */
    .footer__inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer__social {
        justify-content: center;
    }

    .order__form {
        padding: 24px 18px;
    }

    .order__contacts {
        font-size: 15px;
    }
}

/* ============================================================
   АДАПТИВ — МЕЛКИЕ ТЕЛЕФОНЫ (до 480px)
   ============================================================ */
@media (max-width: 480px) {
    .hero__title {
        font-size: 26px;
    }

    .section-title {
        font-size: 24px;
    }

    .product-card__price {
        font-size: 18px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}