.cm-home {
    background: #e9edf2;
}

.cm-home > section {
    padding: 62px 0;
}

.cm-hero-catalog {
    position: relative;
    padding: 32px 0 22px;
    background:
        linear-gradient(120deg, rgba(16, 36, 59, 0.96) 0%, rgba(13, 29, 48, 0.93) 58%, rgba(24, 53, 86, 0.9) 100%);
    overflow: hidden;
}

.cm-hero-catalog::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 20%, rgba(239, 139, 20, 0.2) 0, transparent 40%),
        radial-gradient(circle at 86% 74%, rgba(63, 142, 215, 0.22) 0, transparent 46%);
    pointer-events: none;
}

.cm-hero-catalog .cm-container {
    position: relative;
    z-index: 1;
}

.cm-hero-catalog__grid,
.cm-location__grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

.cm-hero-catalog__content {
    position: relative;
    min-height: 332px;
}

.cm-hero-slide,
.cm-hero-catalog__aside,
.cm-benefit-card,
.cm-category-card,
.cm-product-card,
.cm-trust__item,
.cm-step-card,
.cm-post-card,
.cm-location__info,
.cm-location__map {
    background: var(--cm-color-surface);
    border: 1px solid var(--cm-color-border);
    border-radius: var(--cm-radius-md);
    box-shadow: var(--cm-shadow);
}

.cm-hero-slide {
    display: none;
    min-height: 100%;
    padding: 32px;
    color: #dce6f1;
    border-color: rgba(255, 255, 255, 0.15);
    background: linear-gradient(135deg, rgba(16, 36, 59, 0.9), rgba(21, 52, 84, 0.88));
}

.cm-hero-slide.is-active {
    display: block;
}

.cm-hero-slide h1 {
    margin: 0 0 10px;
    color: #ffffff;
    font-size: clamp(30px, 4vw, 52px);
    line-height: 0.95;
}

.cm-hero-slide p {
    max-width: 60ch;
    margin: 0 0 16px;
    color: #b8c9dc;
}

.cm-hero-catalog__aside {
    padding: 20px;
    background: linear-gradient(180deg, #ffffff, #f0f5fb);
}

.cm-hero-catalog__aside h2 {
    margin: 0 0 14px;
    font-size: 34px;
    line-height: 0.95;
}

.cm-hero-search {
    margin-bottom: 20px;
}

.cm-hero-search__form .woocommerce-product-search,
.cm-hero-search__form .search-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
}

.cm-hero-search__form input[type="search"],
.cm-hero-search__form .search-field {
    width: 100%;
    min-height: 42px;
    padding: 8px 12px;
    border: 1px solid var(--cm-color-border);
    border-radius: 999px;
    background: #f9fbfd;
}

.cm-hero-search__form button,
.cm-hero-search__form input[type="submit"] {
    min-height: 42px;
    padding: 8px 14px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: var(--cm-color-primary);
    cursor: pointer;
    font-weight: 700;
}

.cm-hero-catalog__categories {
    margin: 0;
    padding: 0;
    list-style: none;
}

.cm-hero-catalog__categories li + li {
    margin-top: 8px;
}

.cm-hero-catalog__categories a {
    display: block;
    padding: 8px 10px;
    border-radius: 8px;
    color: var(--cm-color-text);
    text-decoration: none;
    background: #ffffff;
    border: 1px solid #e3eaf2;
}

.cm-hero-catalog__categories a:hover {
    background: #f5f9fd;
    border-color: #c6d6e7;
}

.cm-brands-strip {
    background: #111f33;
    border-top: 2px solid #1b3554;
    border-bottom: 2px solid #1b3554;
    padding: 14px 0;
}

.cm-brands-strip__list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(8, minmax(0, 1fr));
}

.cm-brands-strip__list li {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e8f0f7;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.08em;
}

.cm-benefits,
.cm-home-categories,
.cm-home-products--featured,
.cm-home-products--new,
.cm-how-to-buy,
.cm-latest-posts,
.cm-location {
    background: #e9edf2;
}

.cm-promo-zone,
.cm-home-products--recommended,
.cm-newsletter,
.cm-trust,
.cm-footer-main {
    background: linear-gradient(130deg, #10243b, #183656);
}

.cm-promo-zone .cm-section-head h2,
.cm-home-products--recommended .cm-section-head h2,
.cm-newsletter h2,
.cm-trust strong,
.cm-footer-main h2,
.cm-footer-main h3 {
    color: #ffffff;
}

.cm-promo-zone .cm-section-head__eyebrow,
.cm-home-products--recommended .cm-section-head__eyebrow,
.cm-newsletter .cm-section-head__eyebrow,
.cm-trust p,
.cm-footer-main {
    color: #b8c9dc;
}

.cm-reviews {
    background: var(--cm-color-primary);
}

.cm-reviews .cm-section-head h2,
.cm-reviews .cm-section-head__eyebrow {
    color: #ffffff;
}

.cm-reviews__body {
    padding: 0;
    border-radius: 0;
    background: transparent;
}

.cm-products-grid,
.cm-categories-grid,
.cm-benefits__grid,
.cm-trust__grid,
.cm-steps-grid,
.cm-posts-grid {
    display: grid;
    gap: 18px;
}

.cm-categories-grid,
.cm-products-grid,
.cm-benefits__grid,
.cm-trust__grid,
.cm-posts-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.cm-steps-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cm-newsletter__inner, 
.cm-section-head--split,
.cm-how-to-buy__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap:wrap;gap:2rem
}



.cm-category-card__body {
    display: block;
    padding: 14px;
}

.cm-category-card__body h3 {
    margin: 0;
}

.cm-category-card__body p {
    margin: 4px 0 0;
    color: var(--cm-color-muted);
    font-size: 13px;
}

.cm-location__map iframe {
    display: block;
    width: 100%;
    min-height: 360px;
    border: 0;
    border-radius: var(--cm-radius-md);
}

@media (max-width: 1200px) {
    .cm-brands-strip__list {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 1024px) {
    .cm-categories-grid,
    .cm-products-grid,
    .cm-benefits__grid,
    .cm-trust__grid,
    .cm-posts-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cm-hero-catalog__grid,
    .cm-location__grid,
    .cm-steps-grid {
        grid-template-columns: 1fr;
    }

    .cm-hero-catalog__content {
        min-height: auto;
    }
}

@media (max-width: 640px) {
    .cm-home > section {
        padding: 42px 0;
    }

    .cm-categories-grid,
    .cm-products-grid,
    .cm-benefits__grid,
    .cm-trust__grid,
    .cm-posts-grid,
    .cm-steps-grid,
    .cm-brands-strip__list {
        grid-template-columns: 1fr;
    }

    .cm-newsletter__inner,
    .cm-section-head--split,
    .cm-how-to-buy__actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .cm-hero-slide {
        padding: 24px;
    }
}
