/* Каталог BAS — макет: світлий hero, білий фільтр, темні картки, лайм #d4e157 */
body.page-catalog {
    --cat-lime: #C3D110;
    --cat-lime-glow: rgba(212, 225, 87, 0.55);
    --cat-hero-bg: #e4e4df;
    --cat-section-bg: #e4e4df;
    --cat-card: #000000;
    --cat-radius-lg: 28px;
    --cat-radius-md: 22px;
    /* Фон повноекранного фільтра — той самий токен, що й eq-filter-dialog на обладнанні */
    --eq-bg: var(--cat-section-bg);
    background-color: var(--cat-section-bg);
    color: var(--sw-black);
    min-height: 100vh;
}

body.page-catalog .site-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* ——— Hero ——— */
.catalog-page {
    padding: 0 0 64px;
    margin: 0 auto;
    max-width: 100%;
    background-color: var(--cat-section-bg);
}

.catalog-hero {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    align-items: center;
    padding: 48px 24px 56px;
    max-width: var(--container);
    margin: 0 auto;
    background: var(--cat-hero-bg);
}

@media (min-width: 900px) {
    .catalog-hero {
        grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
        gap: 48px;
        padding: 56px 48px 64px;
    }
}


.catalog-hero__title {
    margin: 0 0 16px;
    font-family: var(--sw-display);
    font-weight: 500;
    font-size: clamp(1.75rem, 4vw, 4rem);
    line-height: 1.12;
    color: var(--sw-black);
}

.catalog-hero__accent {
    color: var(--cat-lime);
    text-shadow: 0 0 40px var(--cat-lime-glow);
}

.catalog-hero__filter {
    font-weight: 500;
    color: rgba(0, 0, 0, 0.72);
}

.catalog-hero__filter.hidden,
.catalog-hero__filter[hidden] {
    display: none;
}

.catalog-hero__lead {
    margin: 0 0 28px;
    font-size: 1rem;
    line-height: 1.55;
    color: rgba(0, 0, 0, 0.55);
}

/* Той самий вигляд, що btn-consult sw-btn (home.css) */
.catalog-hero__cta {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
    gap: 8px;
    padding: 0;
    margin: 0;
    background: none;
    border: none;
    font: inherit;
    box-shadow: none;
    color: inherit;
}

.catalog-hero__cta:hover,
.catalog-hero__cta:focus-visible {
    transform: none;
    box-shadow: none;
}

.catalog-hero__cta-text {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(var(--consult-height) - 4px);
    padding: 6px 20px;
    margin: 0;
    background: var(--sw-white);
    border: 1px solid var(--sw-btn-border);
    border-radius: var(--radius-pill);
    color: var(--sw-black);
    font-weight: 500;
    font-size: 18px;
    white-space: nowrap;
    transition: color 0.28s ease;
}

.catalog-hero__cta-knob {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    border-radius: 999px;
    background: transparent;
    border: 1px solid var(--sw-white);
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sw-white);
    margin: 0;
    transition:
        transform 0.28s ease,
        background-color 0.28s ease,
        border-color 0.28s ease,
        color 0.28s ease;
}

.catalog-hero__cta-knob svg {
    width: 26px;
    height: 26px;
    transition: transform 0.32s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.catalog-hero__cta:hover .catalog-hero__cta-text,
.catalog-hero__cta:focus-visible .catalog-hero__cta-text {
    color: var(--sw-btn-hover-text);
}

.catalog-hero__cta:hover .catalog-hero__cta-knob,
.catalog-hero__cta:focus-visible .catalog-hero__cta-knob {
    background: var(--sw-btn-hover-bg);
    color: var(--sw-btn-hover-text);
    border-color: var(--sw-btn-hover-border);
}

.catalog-hero__cta:hover .catalog-hero__cta-knob svg,
.catalog-hero__cta:focus-visible .catalog-hero__cta-knob svg {
    transform: rotate(45deg);
}

.catalog-hero__visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.catalog-hero__iso {
    position: relative;
    width: min(100%, 380px);
    aspect-ratio: 1;
}

.catalog-hero__cloud {
    position: absolute;
    left: 50%;
    top: 42%;
    transform: translate(-50%, -50%);
    width: 58%;
    height: 36%;
    background: linear-gradient(160deg, rgba(212, 225, 87, 0.35), rgba(255, 255, 255, 0.9));
    border-radius: 50% 50% 48% 52% / 60% 60% 40% 40%;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12), inset 0 -8px 24px rgba(212, 225, 87, 0.25);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.catalog-hero__orbit {
    position: absolute;
    border: 2px dashed rgba(0, 0, 0, 0.12);
    border-radius: 50%;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.catalog-hero__orbit--1 {
    width: 72%;
    height: 72%;
}

.catalog-hero__orbit--2 {
    width: 92%;
    height: 92%;
    opacity: 0.5;
}

.catalog-hero__gear {
    position: absolute;
    right: 8%;
    top: 22%;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: conic-gradient(from 120deg, var(--cat-lime), #fff, var(--sw-muted));
    opacity: 0.85;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.catalog-hero__chart {
    position: absolute;
    left: 10%;
    bottom: 18%;
    width: 64px;
    height: 48px;
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(212, 225, 87, 0.9) 0%, rgba(212, 225, 87, 0.2) 100%);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
}

/* ——— Секція каталогу ——— */
.catalog-section {
    padding: 40px 24px 48px;
    max-width: var(--container);
    margin: 0 auto;
    background-color: var(--cat-section-bg);
}

.catalog-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    align-items: start;
}

@media (min-width: 1024px) {
    .catalog-layout {
        grid-template-columns: minmax(280px, 320px) minmax(0, 1fr);
        gap: 36px 40px;
    }
}

/* Той самий eq-filter-dialog, що на обладнанні; лише радіус внутрішньої картки */
body.page-catalog .eq-filter-dialog__scroll .eq-filters__inner {
    box-shadow: none;
    border-radius: var(--cat-radius-md);
}

/* Сітка карток */
.catalog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 640px) {
    .catalog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1200px) {
    .catalog-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 22px;
    }
}

.catalog-card {
    position: relative;
    background: var(--cat-card);
    color: var(--sw-white);
    border-radius: var(--cat-radius-md);
    padding: 20px 20px 18px;
    display: flex;
    flex-direction: column;
    min-height: 280px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
    transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.catalog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.45);
}

.catalog-card--featured {
    border-color: var(--cat-lime);
    box-shadow:
        0 0 0 1px var(--cat-lime),
        0 0 48px var(--cat-lime-glow),
        0 20px 50px rgba(0, 0, 0, 0.45);
}

.catalog-card[hidden] {
    display: none !important;
}

.catalog-card__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.catalog-card__badge {
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.25;
    color: rgba(255, 255, 255, 0.92);
    max-width: calc(100% - 52px);
}

.catalog-card__arrow {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: grid;
    place-items: center;
    color: var(--sw-white);
    background: rgba(255, 255, 255, 0.06);
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.catalog-card__arrow:hover {
    background: var(--cat-lime);
    border-color: var(--cat-lime);
    color: var(--sw-black);
}

.catalog-card__arrow svg {
    width: 18px;
    height: 18px;
}

.catalog-card__visual {
    flex: 1;
    margin: 8px 0 16px;
    width: min(72%, 168px);
    aspect-ratio: 1;
    align-self: center;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    isolation: isolate;
}

.catalog-card__visual::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.42), transparent 58%);
    pointer-events: none;
    z-index: 2;
}

.catalog-card__visual img {
    position: relative;
    z-index: 1;
    width: 78%;
    height: 78%;
    object-fit: contain;
}

.catalog-card__visual--1 {
    background: radial-gradient(circle at 38% 32%, #ffb347 0%, #ff922b 38%, #e8590c 68%, #7c2d12 100%);
}

.catalog-card__visual--2 {
    background: radial-gradient(circle at 40% 30%, #8ce99a 0%, #37b24d 42%, #18634b 100%);
}

.catalog-card__visual--3 {
    background: radial-gradient(circle at 36% 28%, #74c0fc 0%, #339af0 45%, #1c3d5a 100%);
}

.catalog-card__visual--4 {
    background: radial-gradient(circle at 38% 30%, #b197fc 0%, #7950f2 44%, #3b2d63 100%);
}

.catalog-card__visual--5 {
    background: radial-gradient(circle at 40% 32%, #ffa8a8 0%, #fa5252 42%, #862e2e 100%);
}

.catalog-card__visual--6 {
    background: radial-gradient(circle at 36% 30%, #63e6be 0%, #20c997 45%, #0b4f4a 100%);
}

.catalog-card__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 4px;
}

.catalog-card__price {
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--sw-white);
}

.catalog-card__cart {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: var(--sw-white);
    color: var(--sw-black);
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease;
}

.catalog-card__cart:hover {
    transform: scale(1.06);
    background: var(--cat-lime);
}

.catalog-card__cart svg {
    width: 20px;
    height: 20px;
}

/* Trust */
.catalog-trust {
    max-width: var(--container);
    margin: 0 auto;
    padding: 40px 24px 32px;
    background-color: var(--cat-section-bg);
}

.catalog-trust__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px 16px;
    text-align: center;
    margin-bottom: 28px;
}

.catalog-trust__icon {
    display: inline-flex;
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 8px 18px rgba(212, 225, 87, 0.35));
}

.catalog-trust__icon svg,
.catalog-trust__icon img {
    width: 72px;
    height: 72px;
    object-fit: contain;
}

.catalog-trust__title {
    margin: 0;
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.35em 0.45em;
    font-family: var(--sw-display);
    font-weight: 800;
    font-size: clamp(1.5rem, 3.2vw, 2rem);
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: var(--sw-black);
}

.catalog-trust__bas {
    position: relative;
    display: inline-block;
    padding: 0 0.15em;
}

.catalog-trust__bas::after {
    content: "";
    position: absolute;
    inset: -0.18em -0.28em -0.22em;
    border: 2.5px solid var(--cat-lime, #d4e157);
    border-radius: 48% 52% 50% 50% / 46% 48% 52% 54%;
    transform: rotate(-3deg);
    pointer-events: none;
}

.catalog-trust__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

@media (min-width: 640px) {
    .catalog-trust__grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.catalog-trust__logo {
    background: var(--sw-white);
    border-radius: var(--cat-radius-md);
    padding: 24px 16px;
    text-align: center;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    color: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 96px;
}

.catalog-trust__logo--empty {
    box-shadow: none;
    background: var(--sw-white);
    opacity: 1;
}

.catalog-trust__logo img {
    max-width: 100%;
    max-height: 48px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.catalog-trust__logo .partner-cell__link,
.catalog-trust__logo .partner-cell__media {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

body.page-catalog .site-footer {
    padding-bottom: 64px;
}

@media (max-width: 1023px) {
    body.page-catalog .site-footer {
        padding-bottom: 120px;
    }

    .catalog-page {
        padding-bottom: 80px;
    }
}
