/* GeekZone homepage: first screen (departments · hero · promo rail), category slider, daily deals. */

:root {
    --gzh-gap: 16px;
    --gzh-dept-w: 232px;
    --gzh-rail-w: 272px;
    --gzh-hero-h: 440px;
    --gzh-hero-surface: #f3f4f6;
    --gzh-hero-glow: #ffffff;
    --gzh-radius: 14px;
    --gzh-ease: cubic-bezier(.22, .61, .36, 1);
    --gzd-surface: var(--gz-stage);
    --gzd-surface-2: var(--gz-stage-2);
}

/* ---------- layout ---------- */

.gzh { padding: var(--gzh-gap) 0 8px; }
.gzh__grid {
    display: grid;
    gap: var(--gzh-gap);
    grid-template-columns: minmax(0, 1fr);
}
.gzh__grid > * { min-width: 0; }

@media (min-width: 992px) {
    .gzh__grid { grid-template-columns: minmax(0, 1fr) var(--gzh-rail-w); }
    .gzh-dept { grid-column: 1 / -1; }
}
@media (min-width: 1200px) {
    .gzh__grid { grid-template-columns: var(--gzh-dept-w) minmax(0, 1fr) var(--gzh-rail-w); }
    .gzh-dept { grid-column: auto; }
}

/* ---------- departments ---------- */

.gzh-dept {
    background: var(--gz-surface);
    border: 1px solid var(--gz-line);
    border-radius: var(--gzh-radius);
    overflow: hidden;
}
.gzh-dept__head {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 16px;
    background: var(--gz-ink);
    color: #fff;
    font-weight: var(--fw-bold);
    cursor: pointer;
    list-style: none;
}
.gzh-dept__head::-webkit-details-marker { display: none; }
.gzh-dept__chev { margin-inline-start: auto; transition: transform var(--transition-fast); }
.gzh-dept[open] .gzh-dept__chev { transform: rotate(180deg); }
.gzh-dept__head:focus-visible { outline: 3px solid var(--gz-accent); outline-offset: -3px; }
.gzh-dept__list { list-style: none; margin: 0; padding: 6px 0; }
.gzh-dept__link {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    padding: 0 16px;
    color: var(--gz-ink);
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
    text-decoration: none;
    transition: background var(--transition-fast), color var(--transition-fast);
}
.gzh-dept__link .bi { font-size: 1.05rem; color: var(--gz-muted); width: 20px; text-align: center; }
.gzh-dept__link:hover, .gzh-dept__link:focus-visible { background: var(--gz-surface-alt); color: var(--gz-link); }
.gzh-dept__link:hover .bi { color: var(--gz-link); }
.gzh-dept__link--deal { color: var(--gz-price); font-weight: var(--fw-semibold); }
.gzh-dept__link--deal .bi { color: var(--gz-price); }
.gzh-dept__link--all { border-top: 1px solid var(--gz-line); margin-top: 4px; font-weight: var(--fw-semibold); }
.gzh-dept__count {
    margin-inline-start: auto;
    min-width: 26px;
    padding: 1px 8px;
    border-radius: var(--gz-radius-pill);
    background: var(--gz-surface-alt);
    color: var(--gz-muted);
    font-size: var(--fs-xs);
    text-align: center;
}

@media (max-width: 1199.98px) {
    .gzh-dept__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
    body:has(.gzh-dept) .gz-shop-dept { display: none; }
}
@media (min-width: 1200px) {
    .gzh-dept__head { cursor: default; pointer-events: none; }
    .gzh-dept__chev { display: none; }
    .gzh-dept__list { max-height: calc(var(--gzh-hero-h) - 48px); overflow-y: auto; }
}

/* ---------- GeekzoneHeroSlider ---------- */

.gzh-hero {
    position: relative;
    border-radius: var(--gzh-radius);
    overflow: hidden;
    background:
        radial-gradient(60% 80% at 75% 50%, var(--gzh-hero-glow) 0%, rgba(255, 255, 255, 0) 70%),
        var(--gzh-hero-surface);
    min-height: var(--gzh-hero-h);
    isolation: isolate;
}
.gzh-hero:focus { outline: none; }
.gzh-hero:focus-visible { outline: 3px solid var(--gz-link); outline-offset: 2px; }

.gzh-hero__stage { display: grid; height: 100%; min-height: inherit; touch-action: pan-y; }
.gzh-slide {
    grid-area: 1 / 1;
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    padding: 36px 56px 52px;
    opacity: 0;
    visibility: hidden;
    transition: opacity .6s var(--gzh-ease), visibility 0s linear .6s;
}
.gzh-slide.is-active { opacity: 1; visibility: visible; transition: opacity .6s var(--gzh-ease); z-index: 1; }

.gzh-slide__copy { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.gzh-slide__copy > * {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .5s var(--gzh-ease), transform .6s var(--gzh-ease);
}
.gzh-slide.is-active .gzh-slide__copy > * { opacity: 1; transform: none; }
.gzh-slide.is-active .gzh-slide__copy > :nth-child(2) { transition-delay: .08s; }
.gzh-slide.is-active .gzh-slide__copy > :nth-child(3) { transition-delay: .16s; }
.gzh-slide.is-active .gzh-slide__copy > :nth-child(4) { transition-delay: .24s; }
.gzh-slide.is-active .gzh-slide__copy > :nth-child(5) { transition-delay: .32s; }
.gzh-slide.is-active .gzh-slide__copy > :nth-child(6) { transition-delay: .4s; }

.gzh-slide__eyebrow {
    padding: 4px 10px;
    border-radius: var(--gz-radius-pill);
    background: var(--gz-surface);
    color: var(--gz-link);
    font-size: var(--fs-xs);
    font-weight: var(--fw-bold);
    letter-spacing: .04em;
    text-transform: uppercase;
}
.gzh-slide__title {
    margin: 0;
    color: var(--gz-ink-strong);
    font-size: clamp(1.5rem, 1rem + 1.6vw, 2.4rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -.01em;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.gzh-slide__text {
    margin: 0;
    max-width: 44ch;
    color: var(--gz-muted);
    font-size: var(--fs-sm);
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.gzh-slide__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 12px; }
.gzh-slide__now { color: var(--gz-price); font-size: clamp(1.4rem, 1.1rem + .8vw, 1.9rem); font-weight: 800; }
.gzh-slide__old { color: var(--gz-muted); font-size: var(--fs-md); text-decoration: line-through; }
.gzh-slide__pct, .gzh-slide__burst {
    background: var(--gz-promo);
    color: #fff;
    font-weight: var(--fw-bold);
}
.gzh-slide__pct { padding: 2px 10px; border-radius: var(--gz-radius-pill); font-size: var(--fs-sm); }
.gzh-slide__until { margin: 0; color: var(--gz-ink); font-size: var(--fs-xs); font-weight: var(--fw-semibold); }
.gzh-slide__ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.gzh-slide__ctas .gz-btn { min-height: 46px; padding-inline: 16px; font-size: var(--fs-sm); white-space: nowrap; }

.gzh-slide__media {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 0;
}
.gzh-slide__par {
    display: block;
    width: 100%;
    max-width: 360px;
    transform: translate3d(calc(var(--gzh-px, 0) * -18px), calc(var(--gzh-py, 0) * -12px), 0);
    transition: transform .4s var(--gzh-ease);
    pointer-events: none;
}
.gzh-slide__float { display: block; width: 100%; }
.gzh-slide.is-active .gzh-slide__float { animation: gzh-float 6s ease-in-out infinite; }
.gzh-slide__img, .gzh-slide__video {
    display: block;
    width: 100%;
    max-width: 360px;
    max-height: calc(var(--gzh-hero-h) - 80px);
    aspect-ratio: 1;
    object-fit: contain;
    mix-blend-mode: multiply;
    transform: scale(1.08);
    transition: transform 1.4s var(--gzh-ease);
}
.gzh-slide.is-active .gzh-slide__img, .gzh-slide.is-active .gzh-slide__video { transform: scale(1); }
.gzh-slide__burst {
    position: absolute;
    top: 8%;
    inset-inline-end: 6%;
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    font-size: 1.1rem;
    box-shadow: 0 10px 24px rgba(25, 135, 84, .3);
    pointer-events: none;
}

/* campaign banners fill the slide; copy sits on a readable scrim */
.gzh-slide--campaign { grid-template-columns: minmax(0, 1fr); color: #fff; }
.gzh-slide--campaign .gzh-slide__media { position: absolute; inset: 0; z-index: 0; }
.gzh-slide--campaign .gzh-slide__par, .gzh-slide--campaign .gzh-slide__float { width: 100%; max-width: none; height: 100%; }
.gzh-slide--campaign .gzh-slide__img, .gzh-slide--campaign .gzh-slide__video {
    max-width: none; max-height: none; width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; mix-blend-mode: normal;
}
.gzh-slide--campaign.is-active .gzh-slide__float { animation: none; }
.gzh-slide--campaign::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg, rgba(11, 14, 18, .82) 0%, rgba(11, 14, 18, .45) 45%, rgba(11, 14, 18, 0) 75%);
    pointer-events: none;
}
.gzh-slide--campaign .gzh-slide__copy { max-width: 520px; }
.gzh-slide--campaign .gzh-slide__title { color: #fff; }
.gzh-slide--campaign .gzh-slide__text, .gzh-slide--campaign .gzh-slide__until { color: rgba(255, 255, 255, .86); }
.gzh-slide--campaign .gzh-slide__old { color: rgba(255, 255, 255, .7); }
.gzh-slide--campaign .gzh-slide__now { color: #fff; }
.gzh-slide--campaign .gz-btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .7); }

/* controls */
.gzh-hero__arrow {
    position: absolute;
    top: 50%;
    z-index: 3;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    margin-top: -21px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    color: var(--gz-ink);
    box-shadow: var(--shadow-md);
    cursor: pointer;
    transition: background var(--transition-fast), transform var(--transition-fast);
}
.gzh-hero__arrow:hover { background: var(--gz-ink); color: #fff; }
.gzh-hero__arrow:focus-visible { outline: 3px solid var(--gz-link); outline-offset: 2px; }
.gzh-hero__arrow--prev { inset-inline-start: 12px; }
.gzh-hero__arrow--next { inset-inline-end: 12px; }
.gzh-hero__dots {
    position: absolute;
    inset-inline-start: 52px;
    bottom: 14px;
    z-index: 3;
    display: flex;
    gap: 2px;
}
.gzh-hero__dot {
    position: relative;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
}
.gzh-hero__dot::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    border-radius: var(--gz-radius-pill);
    background: rgba(51, 62, 72, .35);
    transform: translate(-50%, -50%);
    transition: width var(--transition-fast), background var(--transition-fast);
}
.gzh-hero__dot[aria-current="true"]::before { width: 22px; background: var(--gz-ink); }
.gzh-hero__dot:focus-visible { outline: 2px solid var(--gz-link); border-radius: 6px; }
.gzh-hero:has(.gzh-slide--campaign.is-active) .gzh-hero__dot::before { background: rgba(255, 255, 255, .5); }
.gzh-hero:has(.gzh-slide--campaign.is-active) .gzh-hero__dot[aria-current="true"]::before { background: #fff; }
.gzh-hero__progress {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    height: 3px;
    background: rgba(51, 62, 72, .08);
}
.gzh-hero__progress span { display: block; width: 0; height: 100%; background: var(--gz-ink); }
.gzh-hero.is-playing .gzh-hero__progress span { animation: gzh-progress var(--gzh-delay, 6500ms) linear forwards; }

.gzh-hero__state {
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 14px;
    min-height: var(--gzh-hero-h);
    padding: 24px;
    text-align: center;
    color: var(--gz-ink);
}
.gzh-hero__state p { margin: 0; font-size: var(--fs-md); font-weight: var(--fw-semibold); }

.gzh-hero__skel { display: grid; gap: 14px; align-content: center; min-height: var(--gzh-hero-h); padding: 0 64px; }
.gzh-hero__skel span, .gzh-rail__skel { display: block; border-radius: 10px; background: linear-gradient(90deg, #e9ebee 0%, #f5f6f8 50%, #e9ebee 100%); background-size: 200% 100%; animation: gzh-shimmer 1.4s linear infinite; }
.gzh-hero__skel span:nth-child(1) { width: 30%; height: 18px; }
.gzh-hero__skel span:nth-child(2) { width: 55%; height: 44px; }
.gzh-hero__skel span:nth-child(3) { width: 38%; height: 46px; }

/* ---------- GeekzonePromoRail ---------- */

.gzh-rail { display: grid; gap: 12px; grid-template-rows: repeat(3, minmax(0, 1fr)); }
.gzh-rail__skel { min-height: 130px; }
.gzh-rail__card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 42%;
    align-items: center;
    gap: 8px;
    min-height: 130px;
    padding: 16px;
    border: 1px solid var(--gz-line);
    border-radius: var(--gzh-radius);
    background: var(--gz-surface);
    color: var(--gz-ink);
    text-decoration: none;
    overflow: hidden;
    transition: transform .25s var(--gzh-ease), box-shadow .25s var(--gzh-ease), border-color .25s;
}
.gzh-rail__card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: transparent; color: var(--gz-ink); }
.gzh-rail__card:focus-visible { outline: 3px solid var(--gz-link); outline-offset: 2px; }
.gzh-rail__copy { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.gzh-rail__title { font-size: var(--fs-md); font-weight: 800; line-height: 1.2; }
.gzh-rail__text { color: var(--gz-muted); font-size: var(--fs-xs); line-height: 1.4; }
.gzh-rail__cta { margin-top: 6px; color: var(--gz-link); font-size: var(--fs-sm); font-weight: var(--fw-bold); }
.gzh-rail__cta .bi { transition: transform var(--transition-fast); display: inline-block; }
.gzh-rail__card:hover .gzh-rail__cta .bi { transform: translateX(4px); }
.gzh-rail__media { display: block; height: 100%; min-height: 0; }
.gzh-rail__media img {
    width: 100%;
    height: 100%;
    max-height: 120px;
    object-fit: contain;
    mix-blend-mode: multiply;
    transition: transform .5s var(--gzh-ease);
}
.gzh-rail__card:hover .gzh-rail__media img { transform: scale(1.07) rotate(-2deg); }

.gzh-rail__card--1 { background: var(--gz-ink); border-color: var(--gz-ink); color: #fff; }
.gzh-rail__card--1:hover { color: #fff; }
.gzh-rail__card--1 .gzh-rail__text { color: rgba(255, 255, 255, .78); }
.gzh-rail__card--1 .gzh-rail__cta { color: var(--gz-accent); }
.gzh-rail__card--1 .gzh-rail__media { background: #fff; border-radius: 12px; padding: 6px; height: auto; }
.gzh-rail__card--2 { background: var(--gz-surface-alt); border-color: var(--gz-surface-alt); }
.gzh-rail__card--3 { grid-template-columns: 42% minmax(0, 1fr); }
.gzh-rail__card--3 .gzh-rail__media { order: -1; }

@media (min-width: 768px) {
    .gzh-hero { height: var(--gzh-hero-h); }
    .gzh-slide { overflow: hidden; }
}
@media (min-width: 992px) {
    .gzh-rail { height: var(--gzh-hero-h); }
}

/* ---------- GeekzoneCategorySlider ---------- */

.gz-section--tight { padding-top: 24px; padding-bottom: 24px; }
.gzh-cats__track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 164px;
    gap: 14px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding: 6px 2px 10px;
    cursor: grab;
}
.gzh-cats__track::-webkit-scrollbar { display: none; }
.gzh-cats__item { scroll-snap-align: start; }
.gzh-cat {
    display: flex;
    flex-direction: column;
    gap: 4px;
    height: 100%;
    padding: 10px 10px 14px;
    border: 1px solid var(--gz-line);
    border-radius: var(--gzh-radius);
    background: var(--gz-surface);
    color: var(--gz-ink);
    text-decoration: none;
    text-align: center;
    transition: transform .25s var(--gzh-ease), box-shadow .25s var(--gzh-ease), border-color .25s;
}
.gzh-cat:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); color: var(--gz-ink); }
.gzh-cat:focus-visible { outline: 3px solid var(--gz-link); outline-offset: 2px; }
.gzh-cat.is-active { border-color: var(--gz-link); box-shadow: 0 0 0 1px var(--gz-link); }
.gzh-cat__media {
    display: block;
    aspect-ratio: 1;
    margin-bottom: 6px;
    border-radius: 10px;
    background: var(--gz-surface-alt);
    overflow: hidden;
}
.gzh-cat__media img {
    width: 100%;
    height: 100%;
    padding: 10px;
    object-fit: contain;
    mix-blend-mode: multiply;
    transition: transform .45s var(--gzh-ease);
}
.gzh-cat:hover .gzh-cat__media img { transform: scale(1.08); }
.gzh-cat__name { font-size: var(--fs-sm); font-weight: var(--fw-bold); line-height: 1.25; }
.gzh-cat__count { color: var(--gz-muted); font-size: var(--fs-xs); }
.gzh-cats__results { margin-top: 18px; }
.gzh-cats[aria-busy="true"] { min-height: 236px; }

/* ---------- GeekzoneDailyDeals ---------- */

.gzd {
    padding: 40px 0;
    background:
        radial-gradient(70% 120% at 0% 0%, rgba(0, 98, 189, .22) 0%, rgba(0, 98, 189, 0) 60%),
        linear-gradient(180deg, var(--gzd-surface) 0%, var(--gzd-surface-2) 100%);
    color: #fff;
}
.gzd__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px 24px;
    margin-bottom: 22px;
}
.gzd__intro { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.gzd__flag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: var(--gz-radius-pill);
    background: var(--gz-accent);
    color: var(--gz-ink-strong);
    font-size: var(--fs-xs);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .05em;
}
.gzd__title { margin: 0; color: #fff; font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.1rem); font-weight: 800; text-transform: uppercase; letter-spacing: .02em; }
.gzd__sub { margin: 0; color: var(--gz-muted-dark); font-size: var(--fs-sm); }
.gzd__timer { display: flex; flex-direction: column; gap: 6px; }
.gzd__timer-label { color: var(--gz-muted-dark); font-size: var(--fs-xs); font-weight: var(--fw-semibold); text-transform: uppercase; letter-spacing: .06em; }
.gzd__clock { display: flex; gap: 8px; }
.gzd__unit {
    display: grid;
    justify-items: center;
    min-width: 58px;
    padding: 8px 6px;
    border: 1px solid var(--gz-line-dark);
    border-radius: 10px;
    background: rgba(255, 255, 255, .06);
}
.gzd__unit b { font-size: 1.35rem; font-variant-numeric: tabular-nums; line-height: 1; }
.gzd__unit small { color: var(--gz-muted-dark); font-size: 11px; }
.gzd__until { color: var(--gz-muted-dark); font-size: var(--fs-xs); }
.gzd__timer.is-expired .gzd__clock { opacity: .4; }
.gzd__links { display: flex; align-items: center; gap: 14px; }
.gzd .gz-link-more { color: #fff; }
.gzd .gz-link-more:hover { color: var(--gz-accent); }

.gzd__grid { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 992px) {
    .gzd__grid { grid-template-columns: minmax(0, 400px) minmax(0, 1fr); align-items: stretch; }
}
.gzd__more { min-width: 0; }
.gzd .gz-state { color: #fff; }

.gzd-feature {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    border-radius: var(--gzh-radius);
    background: var(--gz-surface);
    color: var(--gz-ink);
    overflow: hidden;
}
@media (min-width: 576px) and (max-width: 991.98px) {
    .gzd-feature { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
.gzd-feature__media { position: relative; display: block; aspect-ratio: 4 / 3; background: #fff; }
.gzd-feature__media img { width: 100%; height: 100%; padding: 18px; object-fit: contain; transition: transform .5s var(--gzh-ease); }
.gzd-feature:hover .gzd-feature__media img { transform: scale(1.05); }
.gzd-feature__pct {
    position: absolute;
    top: 14px;
    inset-inline-start: 14px;
    z-index: 1;
    padding: 6px 12px;
    border-radius: var(--gz-radius-pill);
    background: var(--gz-promo);
    color: #fff;
    font-size: var(--fs-md);
    font-weight: 800;
}
.gzd-feature__body { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px 20px; border-top: 1px solid var(--gz-line); }
.gzd-feature__tag { color: var(--gz-price); font-size: var(--fs-xs); font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.gzd-feature__cat { color: var(--gz-muted); font-size: var(--fs-xs); }
.gzd-feature__title { margin: 0; font-size: var(--fs-lg); font-weight: 800; line-height: 1.25; }
.gzd-feature__title a { color: var(--gz-ink); text-decoration: none; }
.gzd-feature__title a:hover { color: var(--gz-link); }
.gzd-feature__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.gzd-feature__price .gz-price { font-size: 1.5rem; }
.gzd-feature__save { margin: 0; color: var(--gz-promo); font-size: var(--fs-sm); font-weight: var(--fw-bold); }
.gzd-feature__actions { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.gzd-feature__actions .gz-add { flex: 1; min-height: 46px; }
.gzd-feature.is-out .gzd-feature__media img { opacity: .5; }

/* ---------- responsive ---------- */

@media (max-width: 1199.98px) {
    :root { --gzh-rail-w: 248px; --gzh-hero-h: 400px; }
    .gzh-slide { padding: 28px 52px 48px; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
    .gzh-slide__text { display: none; }
    .gzh-rail__card { padding: 12px 14px; gap: 6px; }
    .gzh-rail__title { font-size: var(--fs-base); }
    .gzh-rail__cta { margin-top: 2px; }
    .gzh-rail__card--1 .gzh-rail__media { padding: 4px; }
    .gzh-rail__card--1 .gzh-rail__media img { max-height: 76px; }
    .gzh-rail__media img { max-height: 96px; }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .gzh-rail { grid-template-rows: none; grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .gzh-rail__card, .gzh-rail__card--3 { grid-template-columns: minmax(0, 1fr) 40%; }
    .gzh-rail__card--3 .gzh-rail__media { order: 0; }
}

@media (max-width: 767.98px) {
    :root { --gzh-hero-h: auto; }
    .gzh-hero { min-height: 560px; }
    .gzh-hero__stage { min-height: 560px; }
    .gzh-rail { min-height: 172px; }
    .gzh-slide {
        grid-template-columns: minmax(0, 1fr);
        align-content: start;
        gap: 4px;
        padding: 16px 18px 48px;
    }
    .gzh-slide__media { order: -1; height: auto; }
    .gzh-slide__text { display: -webkit-box; }
    .gzh-slide__par { max-width: 220px; }
    .gzh-slide__img, .gzh-slide__video { max-width: 220px; max-height: 220px; }
    .gzh-slide__burst { width: 56px; height: 56px; font-size: .95rem; top: 4px; inset-inline-end: 4px; }
    .gzh-slide__copy { gap: 8px; }
    .gzh-slide__ctas { width: 100%; }
    .gzh-slide__ctas .gz-btn { flex: 1 1 auto; justify-content: center; white-space: nowrap; }
    .gzh-slide--campaign { min-height: 420px; align-content: end; }
    .gzh-slide--campaign::before { background: linear-gradient(0deg, rgba(11, 14, 18, .88) 0%, rgba(11, 14, 18, .4) 60%, rgba(11, 14, 18, 0) 100%); }
    .gzh-hero__arrow { display: none; }
    .gzh-hero__dots { inset-inline-start: 50%; transform: translateX(-50%); bottom: 10px; }
    [dir="rtl"] .gzh-hero__dots { transform: translateX(50%); }
    .gzh-hero__skel { min-height: 560px; padding: 0 18px; }

    .gzh-rail {
        grid-template-rows: none;
        grid-auto-flow: column;
        grid-auto-columns: minmax(260px, 82%);
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        padding-bottom: 4px;
    }
    .gzh-rail::-webkit-scrollbar { display: none; }
    .gzh-rail__card { scroll-snap-align: start; }
    .gzh-rail__skel { min-height: 120px; }

    .gzh-cats__track { grid-auto-columns: 128px; gap: 10px; }
    .gzh-cats[aria-busy="true"] { min-height: 218px; }
    .gzd { padding: 28px 0; }
    .gzd__unit { min-width: 50px; }
}

@media (pointer: coarse) {
    .gzh-cats__track { cursor: auto; }
}

/* small screens: no idle float or progress bar (less motion, steadier rendering) */
@media (max-width: 991.98px) {
    .gzh-slide.is-active .gzh-slide__float { animation: none; }
    .gzh-hero__progress { display: none; }
}

/* ---------- motion ---------- */

@keyframes gzh-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
@keyframes gzh-progress { from { width: 0; } to { width: 100%; } }
@keyframes gzh-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

@media (prefers-reduced-motion: reduce) {
    .gzh-slide, .gzh-slide.is-active, .gzh-slide__copy > *, .gzh-slide__img, .gzh-slide__video, .gzh-slide__par,
    .gzh-rail__card, .gzh-rail__media img, .gzh-cat, .gzh-cat__media img, .gzd-feature__media img {
        transition: none !important;
    }
    .gzh-slide.is-active .gzh-slide__float, .gzh-hero__skel span, .gzh-rail__skel { animation: none !important; }
    .gzh-slide__img, .gzh-slide__video { transform: none; }
    .gzh-hero__progress { display: none; }
}
