/* BrickMSK.ru — кирпич и стройматериалы в Москве */
:root {
    --color-brick: #a8422e;
    --color-brick-dark: #8b3626;
    --color-brick-light: #c45a45;
    --color-bg: #faf8f6;
    --color-surface: #fff;
    --color-text: #2c2c2c;
    --color-text-muted: #5c5c5c;
    --color-border: #e5e0db;
    --font-main: 'Montserrat', -apple-system, sans-serif;
    --font-head: 'Playfair Display', Georgia, serif;
    --shadow: 0 2px 12px rgba(0,0,0,.06);
    --radius: 8px;
    --container: 1140px;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    margin: 0;
    font-family: var(--font-main);
    font-weight: 400;
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

.main {
    flex: 1;
}

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

.container_narrow {
    max-width: 720px;
}

/* FAQ */
.faq-search {
    margin-bottom: 1.5rem;
}
.faq-search__label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 6px;
    color: var(--color-text);
}
.faq-search__input {
    max-width: 320px;
}
.faq-list {
    margin-bottom: 2rem;
}
.faq-list.faq-accordion .faq-item {
    border: 1px solid var(--color-border);
    border-bottom: none;
    padding: 0;
}
.faq-list.faq-accordion .faq-item:last-child {
    border-bottom: 1px solid var(--color-border);
}
.faq-item__trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 1rem 1.25rem;
    border: none;
    background: var(--color-bg);
    font-family: var(--font-main);
    font-size: 1.05rem;
    font-weight: 600;
    text-align: left;
    color: var(--color-brick-dark);
    cursor: pointer;
    transition: background .2s;
}
.faq-item__trigger:hover {
    background: var(--color-border);
}
.faq-item__trigger .faq-item__question-text {
    flex: 1;
}
.faq-item__trigger .faq-item__icon {
    flex-shrink: 0;
    font-size: 0.7rem;
    transition: transform .2s;
}
.faq-item.is-open .faq-item__icon {
    transform: rotate(-180deg);
}
.faq-item__answer {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text);
    padding: 0 1.25rem 1rem;
    display: none;
}
.faq-item.is-open .faq-item__answer {
    display: block;
}
.faq-item__answer p {
    margin: 0 0 0.5rem;
}
.faq-item__answer p:last-child {
    margin-bottom: 0;
}
.content-block_muted {
    color: var(--color-text-muted);
}

/* Top bar (как на kirpich.ru — контакты сверху) */
.topbar {
    background: var(--color-brick-dark);
    color: rgba(255,255,255,.9);
    font-size: 0.9rem;
    padding: 8px 20px;
}

.topbar__inner {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 24px;
    flex-wrap: wrap;
}

.topbar__region {
    margin-right: auto;
    opacity: .95;
}

.topbar__phone {
    color: #fff;
    font-weight: 600;
    text-decoration: none;
}

.topbar__phone:hover {
    text-decoration: underline;
}

.topbar__worktime {
    opacity: .9;
}

/* Header */
.header {
    background: var(--color-surface);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

/* Герой-блок: один контейнер .hero-header с панорамой */
.layout-hero-wrap {
    position: relative;
    overflow: hidden;
    background: #fff;
}
/* Заголовок с фоновой панорамой: лого/поиск вверху, навигация внизу */
.hero-header {
    position: relative;
    height: 600px;
    min-height: 600px;
    padding: 0 0 5px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-image: url('/images/panorama.jpg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center bottom;
    background-color: #fff;
}
@media (max-width: 768px) {
    .hero-header {
        height: auto;
        min-height: 320px;
        padding: 0 0 12px;
        background-size: cover;
        background-position: center center;
    }
    .hero-header__inner {
        padding-top: 16px;
        padding-left: 16px;
        padding-right: 16px;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    .hero-header__inner .logo {
        text-align: center;
        font-size: 1.35rem;
    }
    .hero-header .header-search {
        max-width: none;
        order: 1;
    }
    .hero-header .header-search__input,
    .hero-header .header-search__btn {
        min-height: 44px;
    }
    .hero-nav.main-nav {
        margin: 20px 12px 8px;
        padding: 10px 16px;
    }
    .hero-nav__inner {
        gap: 8px;
        justify-content: center;
    }
    .hero-nav__link {
        padding: 10px 14px;
        font-size: 0.9rem;
    }
}
@media (max-width: 480px) {
    .hero-header {
        min-height: 280px;
    }
    .hero-header__inner .logo {
        font-size: 1.2rem;
    }
    .hero-nav.main-nav {
        margin: 16px 10px 8px;
        padding: 8px 12px;
    }
    .hero-nav__link {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
}
/* Лёгкое затемнение сверху — логотип и поиск лучше читаются */
.hero-header::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.35) 0%, transparent 50%);
    pointer-events: none;
}
.hero-header .hero-header__inner,
.hero-header .hero-nav {
    position: relative;
    z-index: 1;
}
/* Топбар (антрацит) — всегда первым, вверху блока */
.layout-hero-wrap .topbar {
    flex-shrink: 0;
    background: #2D2E32;
    color: rgba(255,255,255,.9);
    font-size: 0.9rem;
    padding: 8px 20px;
    line-height: 1.3;
}
.layout-hero-wrap .topbar__inner {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 24px;
    flex-wrap: wrap;
}
.layout-hero-wrap .topbar__region { margin-right: auto; opacity: .95; }
.layout-hero-wrap .topbar__phone {
    color: #fff;
    font-weight: 600;
    text-decoration: none;
}
.layout-hero-wrap .topbar__phone:hover { text-decoration: underline; }
.layout-hero-wrap .topbar__worktime { opacity: .9; }
/* Одна шапка на панораме: логотип и поиск в одну строку (одинаково в Chrome и Edge) */
.hero-header__inner {
    flex-shrink: 0;
    padding-top: 12px;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 24px;
    min-width: 0;
}
.hero-header__inner .logo {
    flex: 0 0 auto;
}
.hero-header .header-search {
    flex: 1 1 0%;
    min-width: 0;
    max-width: 280px;
}
.hero-header .logo__brick { color: var(--color-brick); }
.hero-header .logo__msk,
.hero-header .logo__ru { color: rgba(255,255,255,.9); }
.hero-header .logo__text {
    text-shadow: 0 1px 4px rgba(0,0,0,.6), 0 2px 8px rgba(0,0,0,.3);
}
/* Форма поиска: полупрозрачный фон для читаемости на панораме */
.hero-header .header-search__input {
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.95);
    -webkit-appearance: none;
    appearance: none;
    box-sizing: border-box;
    min-width: 0;
}
.hero-header .header-search__input::placeholder {
    color: rgba(255, 255, 255, 0.9);
}
/* Навигация внизу панорамы — стиль из макета (тёмная таблетка с размытием) */
.hero-nav {
    flex-shrink: 0;
    padding: 0 20px;
}
.hero-nav.main-nav {
    background: #2D2E32;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--radius);
    padding: 10px 40px;
    margin: 78px auto 5px;
    align-self: center;
}
.hero-nav__inner {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}
.hero-nav__link {
    display: inline-block;
    padding: 10px 18px;
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: var(--radius);
    transition: background .2s, color .2s;
}
.main-nav .hero-nav__link {
    background: transparent;
    border: 1px solid var(--color-brick);
}
.main-nav .hero-nav__link:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border-color: var(--color-brick-light);
}
.layout-panorama {
    width: 100%;
    max-height: 480px;
    overflow: hidden;
    background: var(--color-surface);
}
.layout-panorama__img {
    width: 100%;
    height: auto;
    max-height: 480px;
    object-fit: cover;
    display: block;
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 14px 20px;
    flex-wrap: wrap;
}

.logo {
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.logo_with-img {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.logo__img {
    height: 48px;
    width: auto;
    display: block;
    object-fit: contain;
}

.logo__img_footer {
    height: 40px;
}

.logo__img_admin {
    height: 36px;
}

.logo_with-img .logo__text {
    flex-shrink: 0;
}

.logo__brick {
    color: var(--color-brick);
}

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

.logo__ru {
    color: var(--color-text-muted);
    font-weight: 500;
}

.logo_footer .logo__brick { color: var(--color-brick-light); }
.logo_footer .logo__msk,
.logo_footer .logo__ru { color: rgba(255,255,255,.9); }

.header-search {
    display: flex;
    flex: 0 1 240px;
    min-width: 0;
}

.header-search__input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid var(--color-border);
    border-right: none;
    border-radius: var(--radius) 0 0 var(--radius);
    font-family: var(--font-main);
    font-size: 0.95rem;
}

.header-search__input:focus {
    outline: none;
    border-color: var(--color-brick);
}

.header-search__btn {
    padding: 8px 14px;
    background: var(--color-brick);
    color: #fff;
    border: none;
    border-radius: 0 var(--radius) var(--radius) 0;
}
.hero-header .header-search__btn {
    background: #2D2E32;
}
.hero-header .header-search__btn:hover {
    background: #3a3b40;
}

.header-search__btn:hover {
    background: var(--color-brick-dark);
}

.nav {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.nav__link {
    color: var(--color-text);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 12px;
    border-radius: var(--radius);
    transition: background .2s, color .2s;
}

.nav__link:hover {
    background: var(--color-bg);
    color: var(--color-brick);
}

.phone {
    font-weight: 600;
    color: var(--color-text);
    text-decoration: none;
    font-size: 1.05rem;
}

.phone:hover {
    color: var(--color-brick);
}

.worktime {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

/* Hero */
.hero {
    background: linear-gradient(135deg, var(--color-brick-dark) 0%, var(--color-brick) 50%, var(--color-brick-light) 100%);
    color: #fff;
    padding: 56px 20px 64px;
}

.hero__inner {
    text-align: center;
}

.hero__title {
    font-family: var(--font-head);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 600;
    margin: 0 0 16px;
    line-height: 1.25;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.hero__subtitle {
    font-size: 1.1rem;
    opacity: .95;
    margin: 0 0 28px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.hero__actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Slider на главной */
.slider {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--color-brick-dark) 0%, var(--color-brick) 50%, var(--color-brick-light) 100%);
    color: #fff;
    min-height: 280px;
}

.slider__track {
    display: flex;
    transition: transform 0.4s ease;
    min-height: 280px;
}

.slider__slide {
    flex: 0 0 100%;
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-color: var(--color-brick);
}

.slider__slide-inner {
    text-align: center;
    padding: 48px 20px 56px;
    max-width: 640px;
}

.slider__title {
    font-family: var(--font-head);
    font-size: clamp(1.5rem, 3.5vw, 2.25rem);
    font-weight: 600;
    margin: 0 0 12px;
    line-height: 1.25;
}

.slider__subtitle {
    font-size: 1.05rem;
    opacity: .95;
    margin: 0 0 20px;
}
@media (max-width: 600px) {
    .slider__slide-inner {
        padding: 32px 16px 40px;
    }
    .slider__title {
        font-size: 1.35rem;
    }
    .slider__subtitle {
        font-size: 0.95rem;
    }
}

.slider__btn {
    margin-top: 8px;
}

.slider__nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    pointer-events: none;
    display: flex;
    justify-content: space-between;
    padding: 0 12px;
}

.slider__arrow {
    pointer-events: auto;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,.25);
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    transition: background .2s;
}

.slider__arrow:hover {
    background: rgba(255,255,255,.4);
}

.slider__dots {
    position: absolute;
    bottom: 16px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.slider__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,.4);
    cursor: pointer;
    padding: 0;
    transition: background .2s;
}

.slider__dot:hover,
.slider__dot_active {
    background: #fff;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    font-family: var(--font-main);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius);
    transition: background .2s, color .2s, transform .1s;
    cursor: pointer;
    border: none;
}

.btn_primary {
    background: #fff;
    color: var(--color-brick);
}

.btn_primary:hover {
    background: #f0f0f0;
}

.btn_secondary {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,.8);
}

.btn_secondary:hover {
    background: rgba(255,255,255,.15);
    border-color: #fff;
}

.btn_large {
    padding: 14px 32px;
    font-size: 1.1rem;
}

/* Section title */
.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 24px;
    text-align: center;
    color: var(--color-text);
}
@media (max-width: 480px) {
    .section-title {
        font-size: 1.25rem;
        margin-bottom: 16px;
    }
}

/* Advantages */
.advantages {
    padding: 48px 20px 56px;
}

.advantages__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.advantage-card {
    background: var(--color-surface);
    padding: 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
}

.advantage-card__icon {
    display: block;
    font-size: 2rem;
    margin-bottom: 12px;
    color: var(--color-brick);
}

.advantage-card__icon_svg {
    font-size: 0;
    line-height: 0;
}

.advantage-card__icon_svg svg {
    display: block;
    margin: 0 auto;
    color: var(--color-brick);
}

.advantage-card__title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 8px;
}

.advantage-card__text {
    margin: 0;
    font-size: 0.95rem;
    color: var(--color-text-muted);
}

/* Home: слева — популярные категории, справа — хиты продаж */
.home-popular {
    padding: 0 20px 48px;
}
@media (max-width: 480px) {
    .home-popular {
        padding: 0 14px 36px;
    }
}
.home-popular__inner {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(280px, 1fr);
    gap: 32px;
    align-items: start;
}
.home-popular__categories,
.home-popular__hits {
    min-width: 0; /* чтобы грид не ломался из-за широкого контента */
}
@media (max-width: 767px) {
    .home-popular__inner {
        grid-template-columns: 1fr;
    }
}
.home-popular__categories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
.home-popular__categories .section-title,
.home-popular__hits .section-title {
    margin-top: 0;
    margin-bottom: 1rem;
}
.home-popular__hits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
@media (max-width: 600px) {
    .home-popular__categories-grid,
    .home-popular__hits-grid {
        grid-template-columns: 1fr;
    }
}
.home-popular__hits .product-card {
    margin: 0;
}
.home-popular__hits-empty {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin: 0;
}

/* Categories */
.categories {
    padding: 0 20px 56px;
}

.categories__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.category-card {
    background: var(--color-surface);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform .2s, box-shadow .2s;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,.1);
}

.category-card__img {
    height: 140px;
    background-size: cover;
    background-position: center;
}

.category-card__img_kirpich {
    background: linear-gradient(135deg, #b85a4a 0%, #8b3626 100%);
}

.category-card__img_bloki {
    background: linear-gradient(135deg, #7d8a8e 0%, #4a5559 100%);
}

.category-card__img_smesi {
    background: linear-gradient(135deg, #c4a574 0%, #8b7355 100%);
}

.category-card__img_zhbi {
    background: linear-gradient(135deg, #6b6b6b 0%, #4a4a4a 100%);
}

.category-card__title {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 16px 20px 6px;
}

.category-card__desc {
    margin: 0 20px 20px;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

/* CTA */
.cta {
    background: var(--color-brick);
    color: #fff;
    padding: 40px 20px;
    text-align: center;
}

.cta_compact {
    padding: 28px 20px;
}

.cta__title {
    font-size: 1.35rem;
    font-weight: 600;
    margin: 0 0 8px;
}

.cta__text {
    margin: 0 0 20px;
    opacity: .95;
}

.cta__phone {
    color: #fff;
    font-weight: 600;
    text-decoration: none;
}

.cta__phone:hover {
    text-decoration: underline;
}

/* Page head (inner pages) */
.page-head {
    background: linear-gradient(135deg, var(--color-brick-dark), var(--color-brick));
    color: #fff;
    padding: 36px 20px 40px;
}

.page-head__title {
    font-size: 1.75rem;
    font-weight: 600;
    margin: 0 0 6px;
}

.page-head__subtitle {
    margin: 0;
    opacity: .9;
    font-size: 1rem;
}

/* Content block */
.content-block {
    padding: 40px 20px 56px;
}

.content-block h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 28px 0 12px;
}

.content-block h2:first-child {
    margin-top: 0;
}

.content-block p {
    margin: 0 0 12px;
    color: var(--color-text);
}

.error-text {
    margin-bottom: 1rem;
}

.error-actions {
    margin: 0;
}

.error-actions .btn + .btn {
    margin-left: 12px;
}

/* ——— Форма «Оставить заявку» ——— */
.request-block {
    padding-top: 32px;
}

.request-form__success {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 14px 18px;
    border-radius: var(--radius);
    margin: 0 0 24px;
    font-size: 0.95rem;
}

.request-form__card {
    background: var(--color-surface);
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, .08);
    padding: 40px 36px 44px;
    border: 1px solid var(--color-border);
}

.request-form__row {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.request-form__row_half .request-form__group {
    flex: 1;
    min-width: 0;
}

@media (max-width: 560px) {
    .request-form__row_half {
        flex-direction: column;
        gap: 0;
    }
}

.request-form__group {
    margin-bottom: 24px;
}

.request-form__group:last-of-type {
    margin-bottom: 28px;
}

.request-form__label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-text);
    margin-bottom: 8px;
    letter-spacing: .01em;
}

.request-form__required {
    color: var(--color-brick);
}

.request-form__input {
    width: 100%;
    padding: 14px 16px;
    font-size: 1rem;
    font-family: var(--font-main);
    color: var(--color-text);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    transition: border-color .2s, box-shadow .2s;
}

.request-form__input::placeholder {
    color: var(--color-text-muted);
    opacity: .8;
}

.request-form__input:hover {
    border-color: #d0ccc7;
}

.request-form__input:focus {
    outline: none;
    border-color: var(--color-brick);
    box-shadow: 0 0 0 3px rgba(168, 66, 46, .12);
}

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

.request-form__group_error .request-form__input {
    border-color: #c62828;
}

.request-form__group_error .request-form__input:focus {
    box-shadow: 0 0 0 3px rgba(198, 40, 40, .15);
}

.request-form__error {
    color: #c62828;
    font-size: 0.85rem;
    margin-top: 6px;
}

.request-form__hint {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin: 0 0 24px;
    line-height: 1.5;
}

.request-form__link {
    color: var(--color-brick);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color .2s;
}

.request-form__link:hover {
    border-bottom-color: var(--color-brick);
}

.request-form__submit {
    display: inline-block;
    width: 100%;
    max-width: 280px;
    padding: 16px 28px;
    font-family: var(--font-main);
    font-size: 1.05rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, var(--color-brick-dark), var(--color-brick));
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: transform .15s, box-shadow .2s, opacity .2s;
    box-shadow: 0 4px 14px rgba(168, 66, 46, .25);
}

.request-form__submit:hover {
    opacity: .95;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(168, 66, 46, .3);
}

.request-form__submit:active {
    transform: translateY(0);
}

@media (max-width: 560px) {
    .request-form__card {
        padding: 28px 20px 36px;
    }
}

.content-list {
    margin: 0 0 20px;
    padding-left: 1.25rem;
}

.content-list li {
    margin-bottom: 8px;
}

/* Catalog page */
.catalog-section {
    padding: 32px 20px;
    border-bottom: 1px solid var(--color-border);
}
@media (max-width: 480px) {
    .catalog-section {
        padding: 24px 14px;
    }
}

.catalog-section:last-of-type {
    border-bottom: none;
}

.catalog-section__title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 16px;
    color: var(--color-brick);
}

.catalog-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 24px;
}

.catalog-list__item {
    color: var(--color-text);
    text-decoration: none;
    font-size: 1rem;
    padding: 6px 0;
    border-bottom: 1px solid transparent;
    transition: color .2s, border-color .2s;
}

.catalog-list__item:hover {
    color: var(--color-brick);
    border-bottom-color: var(--color-brick);
}

.breadcrumb {
    font-size: 0.9rem;
    opacity: .9;
    margin-bottom: 8px;
}

.breadcrumb a {
    color: inherit;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.catalog-empty {
    padding: 40px 20px;
    text-align: center;
    color: var(--color-text-muted);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

.product-card {
    background: var(--color-surface);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    position: relative;
}

.product-card__badges {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.product-badge {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: .02em;
}

.product-badge_hit {
    background: #e74c3c;
    color: #fff;
}

.product-badge_new {
    background: #3498db;
    color: #fff;
}

.product-badge_sale {
    background: #27ae60;
    color: #fff;
}

.product-card__link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.product-card__img {
    height: 180px;
    background: var(--color-border);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    vertical-align: middle;
}

.product-card__img_has.product-card__img_empty {
    background: var(--color-border);
}

.product-card__code {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin: 8px 16px 0;
}

.product-card__title {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 8px 16px 6px;
}

.product-card__specs {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2px 10px;
    margin: 0 16px 8px;
    font-size: 0.85rem;
}

.product-card__specs dt {
    color: var(--color-text-muted);
}

.product-card__specs dd {
    margin: 0;
}

.product-card__price-wrap {
    margin: 0 16px 4px;
}
.product-card__price-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 4px;
}
.product-card__price-tab {
    padding: 2px 8px;
    font-size: 0.75rem;
    border: 1px solid var(--color-border);
    background: var(--color-bg);
    border-radius: 4px;
    cursor: pointer;
    font-family: var(--font-main);
    color: var(--color-text-muted);
}
@media (max-width: 480px) {
    .product-card__price-tab {
        min-height: 36px;
        padding: 6px 10px;
        font-size: 0.8rem;
    }
}
.product-card__price-tab:hover {
    border-color: var(--color-brick);
    color: var(--color-brick);
}
.product-card__price-tab_active {
    background: var(--color-brick);
    border-color: var(--color-brick);
    color: #fff;
}
.product-card__price {
    margin: 0 16px 4px;
    font-weight: 600;
    color: var(--color-brick);
}

.product-card__stock {
    margin: 0 16px 8px;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.product-card__cart {
    margin: 0 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.product-card__cart-form {
    margin: 0;
}
.product-card__cart-btn,
.product-card__oneclick-btn {
    width: 100%;
    padding: 8px 12px;
    font-size: 0.9rem;
    text-align: center;
    display: block;
    box-sizing: border-box;
}
.product-card__oneclick-btn {
    text-decoration: none;
}

.pagination {
    margin-top: 24px;
    text-align: center;
}

.pagination a {
    color: var(--color-brick);
    text-decoration: none;
    margin: 0 8px;
}

.pagination a:hover {
    text-decoration: underline;
}

.product-page__main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: start;
}

.product-page__gallery {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.product-page__img {
    height: 320px;
    background: var(--color-border);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-page__img_has {
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.product-page__img_picture {
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-page__img_picture picture,
.product-page__img_picture img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-page__img-placeholder {
    color: var(--color-muted, #888);
    font-size: 1rem;
}

.product-page__gallery-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.product-page__gallery-thumb {
    width: 56px;
    height: 56px;
    padding: 0;
    border: 2px solid var(--color-border);
    border-radius: var(--radius);
    background-size: cover;
    background-position: center;
    cursor: pointer;
    flex-shrink: 0;
}

.product-page__gallery-thumb:hover {
    border-color: var(--color-brick);
}

.product-page__gallery-thumb_active {
    border-color: var(--color-brick);
}

.product-page__info-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.info-card {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px;
    background: var(--color-bg);
    border-radius: var(--radius);
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.info-card__icon {
    flex-shrink: 0;
    font-size: 1.2rem;
}

.product-page__title {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 12px;
}

.product-page__meta {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 4px 20px;
    margin: 0 0 16px;
    font-size: 0.95rem;
}

.product-page__meta dt {
    color: var(--color-text-muted);
}

.product-page__meta dd {
    margin: 0;
}

.product-page__price-block {
    margin-bottom: 12px;
}

.product-page__price-label {
    display: block;
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: 6px;
}

.product-page__price-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 8px;
}

.product-page__price-tab {
    padding: 6px 12px;
    border: 1px solid var(--color-border);
    background: var(--color-bg);
    border-radius: var(--radius);
    font-family: var(--font-main);
    font-size: 0.9rem;
    cursor: pointer;
    transition: background .2s, border-color .2s;
}

.product-page__price-tab:hover {
    border-color: var(--color-brick);
}

.product-page__price-tab_active {
    background: var(--color-brick);
    border-color: var(--color-brick);
    color: #fff;
}

.product-page__price {
    font-size: 1rem;
    margin: 0 0 8px;
}

.product-page__price-val {
    font-size: 1.25rem;
    color: var(--color-brick);
}

.product-page__price_on-request {
    font-size: 1.25rem;
    color: var(--color-brick);
}
.product-page__price-hint {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin: 4px 0 0;
}

.product-page__buy {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.product-page__cart-form {
    display: inline;
}

.product-page__stock {
    margin: 0 0 12px;
    font-size: 0.95rem;
    color: var(--color-text-muted);
}

.product-page__short {
    margin: 12px 0 20px;
}

.product-page__actions {
    margin-top: 16px;
}

.product-page__actions .btn {
    margin-right: 8px;
}

.product-page__share-print {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 16px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--color-border);
}

.product-page__action-btn {
    padding: 8px 12px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font-family: var(--font-main);
    font-size: 0.9rem;
    cursor: pointer;
}

.product-page__action-btn:hover {
    background: var(--color-border);
}

.product-page__share-label {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.product-page__share-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-brick);
    text-decoration: none;
}

.product-page__share-link:hover {
    text-decoration: underline;
}

.product-page__guarantee {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    padding: 12px 16px;
    background: #e8f4fd;
    border: 1px solid #b8daff;
    border-radius: var(--radius);
    font-size: 0.95rem;
    color: #004085;
}

.product-page__guarantee-icon {
    flex-shrink: 0;
    color: #28a745;
    font-weight: 700;
}

.product-page__oneclick {
    margin-top: 24px;
    padding: 20px;
    background: var(--color-bg);
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
}

.product-page__oneclick-title {
    font-size: 1.1rem;
    margin: 0 0 12px;
}

.product-page__oneclick-success {
    color: #155724;
    margin: 0 0 12px;
}

.product-page__oneclick-error {
    color: #721c24;
    margin: 0 0 12px;
}

.product-page__oneclick-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.product-page__oneclick-input {
    width: 200px;
    max-width: 100%;
}

.product-page__oneclick-consent {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin: 0;
}

.product-page__oneclick-consent a {
    color: var(--color-brick);
}

/* Вкладки страницы товара */
.product-tabs {
    margin-top: 40px;
    border-top: 1px solid var(--color-border);
    padding-top: 24px;
}

.product-tabs__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--color-border);
}

.product-tabs__tab {
    padding: 10px 16px;
    background: none;
    border: none;
    font-family: var(--font-main);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text-muted);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -1px;
    transition: color .2s, border-color .2s;
}

.product-tabs__tab:hover {
    color: var(--color-text);
}

.product-tabs__tab_active {
    color: var(--color-brick);
    border-bottom-color: var(--color-brick);
}

.product-tabs__panel {
    display: none;
}

.product-tabs__panel_active {
    display: block;
}

/* Блоки характеристик с точками */
.spec-blocks {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.spec-block__title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 12px;
    color: var(--color-text);
}

.spec-block__list {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 4px 24px;
    align-items: baseline;
    margin: 0;
}

.spec-block__list dt {
    margin: 0;
    padding-bottom: 4px;
    border-bottom: 1px dotted var(--color-border);
    color: var(--color-text-muted);
    font-weight: 400;
}

.spec-block__list dd {
    margin: 0;
    padding-bottom: 4px;
    border-bottom: 1px dotted var(--color-border);
    text-align: right;
}

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

/* Корзина */
.cart-message {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 12px 16px;
    border-radius: var(--radius);
    margin-bottom: 20px;
}

.cart-empty {
    padding: 40px 20px;
    text-align: center;
    color: var(--color-text-muted);
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 24px;
}

.cart-table th,
.cart-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

.cart-table th {
    font-weight: 600;
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.cart-table a {
    color: var(--color-brick);
    text-decoration: none;
}

.cart-table a:hover {
    text-decoration: underline;
}

.cart-remove-btn {
    background: none;
    border: none;
    color: var(--color-text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0 4px;
}

.cart-remove-btn:hover {
    color: #c00;
}

.cart-qty {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.cart-qty__form {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.cart-qty__input {
    width: 56px;
    padding: 6px 8px;
    text-align: center;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
}

.cart-qty__btn,
.cart-qty__apply {
    padding: 6px 10px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background: var(--color-surface);
    cursor: pointer;
    font-size: 1rem;
}

.cart-qty__btn:hover,
.cart-qty__apply:hover {
    background: var(--color-bg);
}

.cart-total {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.cart-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* Отзывы на странице товара */
.review-success {
    color: #155724;
    margin-bottom: 16px;
}

.review-item {
    padding: 16px 0;
    border-bottom: 1px solid var(--color-border);
}

.review-item__meta {
    margin: 0 0 6px;
    font-size: 0.95rem;
    color: var(--color-text-muted);
}

.review-item__stars {
    color: #e6a800;
}

.review-item__text {
    margin: 0;
}

.review-form .admin-form__group {
    max-width: 400px;
}

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

    .product-page__info-cards {
        grid-template-columns: 1fr;
    }
}

@media print {
    .header, .topbar, .footer, .product-page__share-print, .product-page__gallery-thumbs, .product-page__oneclick, .product-page__actions, .product-tabs__nav, .btn {
        display: none !important;
    }
    .product-page__main {
        break-inside: avoid;
    }
    .product-page__title {
        font-size: 1.25rem;
        margin-bottom: 0.5rem;
    }
    .product-page__price-block {
        margin: 0.75rem 0;
    }
    .product-page__img {
        max-height: 200px;
        background-size: contain;
    }
}

.catalog-with-filters {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 32px;
    align-items: start;
}

.catalog-filters {
    position: sticky;
    top: 80px;
    background: var(--color-bg, #fff);
    padding: 20px;
    border-radius: var(--radius, 8px);
    border: 1px solid var(--color-border, #e0e0e0);
}

.catalog-filters__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--color-border, #e0e0e0);
}

.catalog-filters__title {
    font-weight: 700;
    font-size: 1rem;
}

.catalog-filters__reset {
    font-size: 0.85rem;
    color: var(--color-muted, #666);
    text-decoration: none;
}

.catalog-filters__reset:hover {
    text-decoration: underline;
    color: var(--color-primary, #8b4513);
}

.filter-form .admin-form__input {
    width: 100%;
}

.filter-form__group {
    margin-bottom: 16px;
}

.filter-form__group_block {
    padding: 12px 0;
    border-bottom: 1px solid var(--color-border, #eee);
}

.filter-form__group_block:last-of-type {
    border-bottom: none;
}

.filter-form__label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.filter-form__group > .filter-form__label {
    margin-bottom: 6px;
}

.filter-form__checkboxes {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.filter-form__checkbox {
    display: block;
    font-weight: normal;
    margin-bottom: 0;
    cursor: pointer;
}

.filter-form__checkbox input {
    margin-right: 8px;
}

.filter-form__row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-form__row .admin-form__input {
    flex: 1;
    min-width: 0;
}

.filter-form__sep {
    color: var(--color-muted, #888);
    flex-shrink: 0;
}

.filter-form__submit {
    width: 100%;
    margin-top: 8px;
}

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

/* Contacts */
.contacts-block .container {
    max-width: 800px;
}

.contacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.contact-card {
    background: var(--color-surface);
    padding: 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.contact-card__title {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--color-text-muted);
    margin: 0 0 8px;
}

.contact-card__value {
    font-size: 1.15rem;
    font-weight: 600;
    margin: 0;
}

.contact-card__value a {
    color: var(--color-brick);
    text-decoration: none;
}

.contact-card__value a:hover {
    text-decoration: underline;
}

.contact-card__note {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin: 8px 0 0;
}

.contacts__cta {
    text-align: center;
    font-size: 1.05rem;
    color: var(--color-text-muted);
}

/* Footer */
.footer {
    background: #2D2E32;
    color: rgba(255,255,255,.85);
    margin-top: auto;
}

.footer__inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 32px;
    padding: 40px 20px 24px;
}
@media (max-width: 600px) {
    .footer__inner {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
        padding: 32px 16px 20px;
    }
}
@media (max-width: 400px) {
    .footer__inner {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 28px 14px 20px;
    }
}

.footer__title {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin: 0 0 12px;
    color: #fff;
}

.footer__link {
    display: block;
    color: rgba(255,255,255,.8);
    text-decoration: none;
    font-size: 0.95rem;
    margin-bottom: 6px;
    transition: color .2s;
}

.footer__link:hover {
    color: #fff;
}

.footer__link_phone {
    font-weight: 600;
    font-size: 1rem;
}

.footer__text {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(255,255,255,.7);
}

.footer__bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    padding: 16px 20px;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255,255,255,.6);
}
@media (max-width: 480px) {
    .footer__bottom {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
        padding: 14px 14px;
    }
}

.footer__admin {
    margin-left: 16px;
}
@media (max-width: 480px) {
    .footer__admin {
        margin-left: 0;
    }
}

.footer__admin a {
    color: rgba(255,255,255,.5);
    text-decoration: none;
}

.footer__admin a:hover {
    color: rgba(255,255,255,.8);
}

/* ——— Мобильная оптимизация: зоны нажатия ≥ 44px, компактные отступы ——— */
@media (max-width: 480px) {
    html {
        font-size: 15px;
    }
    .container {
        padding: 0 14px;
    }
    .topbar,
    .layout-hero-wrap .topbar {
        padding: 10px 14px;
        font-size: 0.85rem;
    }
    .topbar__inner {
        gap: 12px;
    }
    .header__inner {
        padding: 12px 14px;
    }
    .hero {
        padding: 40px 14px 48px;
    }
    .page-head {
        padding: 28px 14px 32px;
    }
    .page-head__title {
        font-size: 1.5rem;
    }
    .content-block {
        padding: 28px 14px 40px;
    }
    .product-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .product-card__cart-btn,
    .nav__link,
    .hero-nav__link {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 12px 16px;
    }
    .hero-nav {
        padding: 12px 14px 20px;
    }
    .hero-nav__inner {
        justify-content: center;
        gap: 8px;
    }
    .filter-form__submit {
        min-height: 44px;
    }
    .catalog-filters {
        padding: 16px 14px;
    }
    .pagination a {
        min-height: 44px;
        padding: 10px 14px;
        display: inline-flex;
        align-items: center;
    }
}

/* Скрываемый блок фильтров на мобильных (раскрывается по кнопке) */
.catalog-filters__toggle {
    display: none;
    width: 100%;
    min-height: 44px;
    padding: 12px 16px;
    margin-bottom: 12px;
    background: var(--color-brick);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-family: var(--font-main);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.catalog-filters__toggle:hover {
    background: var(--color-brick-dark);
}
@media (max-width: 768px) {
    .catalog-filters__toggle {
        display: flex;
    }
    .catalog-filters__body {
        display: none;
    }
    .catalog-filters__body.is-open {
        display: block;
    }
}
@media (min-width: 769px) {
    .catalog-filters__body {
        display: block !important;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-header__inner {
        gap: 12px;
        flex-wrap: wrap;
    }

    .topbar__inner {
        justify-content: center;
    }

    .topbar__region {
        margin-right: 0;
        width: 100%;
        text-align: center;
    }

    .header__inner {
        flex-direction: column;
        align-items: stretch;
    }

    .header-search {
        flex: 1 1 auto;
        max-width: none;
        order: 1;
    }
    .header-search__input,
    .header-search__btn {
        min-height: 44px;
    }

    .nav {
        justify-content: center;
    }

    .hero__actions {
        flex-direction: column;
    }

    .hero__actions .btn {
        min-height: 44px;
    }

    .btn {
        min-height: 44px;
        padding: 12px 24px;
        width: 100%;
        text-align: center;
    }
    .btn_large {
        min-height: 48px;
    }
}

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

    .product-page__info-cards {
        grid-template-columns: 1fr;
    }

    .product-page__price-tab,
    .product-page__action-btn {
        min-height: 44px;
    }
    .product-page__oneclick-input {
        min-height: 44px;
    }
}
