/* ===========================================================================
   home.css — dark homepage blocks (ag-hero, ag-showcase, ag-features,
   ag-videos, ag-reviews). Every value derives from --brand-*.
   Depends on catalog.css for .ag-card / .ag-grid / .ag-btn.
   =========================================================================== */

.ag-hero, .ag-showcase, .ag-features, .ag-videos, .ag-reviews {
    --ag-surface:     var(--brand-bg-secondary, #1A2F4F);
    --ag-surface-2:   color-mix(in srgb, var(--brand-bg-secondary) 60%, var(--brand-bg));
    --ag-line:        color-mix(in srgb, var(--brand-accent) 70%, transparent);
    --ag-line-strong: var(--brand-accent, #243B5E);
    --ag-text:        var(--brand-text, #E8EEF7);
    --ag-muted:       var(--brand-text-secondary, #9AAFC9);
    --ag-primary:     var(--brand-primary, #3D7BD4);
    --ag-primary-2:   var(--brand-secondary, #5BA3F5);
    --ag-radius:      calc(var(--brand-radius, 6px) + 8px);
    --ag-radius-sm:   calc(var(--brand-radius, 6px) + 2px);
    --ag-shadow:      0 1px 2px rgba(0,0,0,.28), 0 12px 32px -12px rgba(0,0,0,.55);
    --ag-shadow-lg:   0 2px 6px rgba(0,0,0,.3), 0 28px 60px -20px rgba(0,0,0,.7);
    --ag-gap:         clamp(16px, 2vw, 24px);
    --ag-ease:        cubic-bezier(.22, 1, .36, 1);
    color: var(--ag-text);
}
.ag-container { width: 100%; max-width: 1320px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 40px); box-sizing: border-box; }
.ag-showcase, .ag-features, .ag-videos, .ag-reviews { padding-block: clamp(48px, 7vw, 96px); }

/* Section heads */
.ag-showcase__eyebrow, .ag-features__eyebrow, .ag-videos__eyebrow, .ag-reviews__eyebrow, .ag-hero__eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
    color: var(--ag-primary-2); margin: 0 0 14px;
}
.ag-features__title, .ag-videos__title, .ag-reviews__title, .ag-showcase__title {
    font-family: var(--brand-font-heading, 'Inter', sans-serif);
    font-weight: var(--brand-font-heading-weight, 700);
    font-size: clamp(1.6rem, 3.2vw, 2.5rem); line-height: 1.12; letter-spacing: -.02em; margin: 0;
}
.ag-features__subtitle, .ag-videos__subtitle, .ag-reviews__subtitle, .ag-showcase__subtitle {
    color: var(--ag-muted); font-size: 1.02rem; line-height: 1.6; margin: 12px 0 0; max-width: 60ch;
}
.ag-features__head, .ag-videos__head, .ag-reviews__head { text-align: center; max-width: 720px; margin: 0 auto clamp(28px, 4vw, 52px); }
.ag-features__head .ag-features__subtitle, .ag-videos__head .ag-videos__subtitle, .ag-reviews__head .ag-reviews__subtitle { margin-inline: auto; }

/* ===========================================================================
   HERO — single viewport, car as darkened background
   =========================================================================== */
.ag-hero {
    position: relative; overflow: clip; isolation: isolate;
    min-height: min(100dvh, 900px);
    display: flex; flex-direction: column; justify-content: center;
    /* Extra top padding clears the transparent overlay header that floats on
       top of the hero (home page). --ag-header-h ≈ top-bar + nav pill. */
    padding-block: calc(var(--ag-header-h, 0px) + clamp(20px, 3vh, 44px)) clamp(24px, 4vh, 56px);
}
.ag-hero__bg { position: absolute; inset: 0; z-index: -3; overflow: hidden; }
.ag-hero__bg::before {
    content: ""; position: absolute; inset: 0;
    background: var(--hero-bg, none) center/cover no-repeat; opacity: .16;
}
.ag-hero__glow { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .5; pointer-events: none; }
.ag-hero__glow--1 { width: 62vw; height: 62vw; max-width: 860px; max-height: 860px; top: -22%; left: 46%; transform: translateX(-50%);
    background: radial-gradient(circle, color-mix(in srgb, var(--ag-primary) 52%, transparent), transparent 70%); }
.ag-hero__glow--2 { width: 42vw; height: 42vw; max-width: 600px; max-height: 600px; bottom: -14%; right: -6%;
    background: radial-gradient(circle, color-mix(in srgb, var(--ag-primary-2) 36%, transparent), transparent 70%); }
.ag-hero__grid {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(color-mix(in srgb, var(--ag-primary) 9%, transparent) 1px, transparent 1px),
        linear-gradient(90deg, color-mix(in srgb, var(--ag-primary) 9%, transparent) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(120% 92% at 50% 0%, #000 28%, transparent 74%);
    -webkit-mask-image: radial-gradient(120% 92% at 50% 0%, #000 28%, transparent 74%);
    opacity: .45;
}

/* Car as darkened background element — bottom-right, vignette + fade */
.ag-hero__car-layer { position: absolute; inset: 0; z-index: -2; pointer-events: none; overflow: hidden; }
.ag-hero__car {
    /* Anchor near the TOP so the car sits at headline height, not the section
       center (which sinks it below the fold on a tall hero). */
    position: absolute; right: 0; top: clamp(90px, 14vh, 150px);
    width: auto; height: auto; max-width: 58%; max-height: 60%;
    object-fit: contain; object-position: right top;
    filter: drop-shadow(0 40px 60px rgba(0,0,0,.55));
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 34%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 34%);
    animation: ag-hero-carin 1.1s var(--ag-ease) both;
}
/* Left→right gradient so the left-aligned text stays fully legible over the car. */
.ag-hero__car-fade {
    position: absolute; inset: 0;
    background:
        linear-gradient(90deg, var(--brand-bg) 6%, color-mix(in srgb, var(--brand-bg) 45%, transparent) 40%, transparent 64%),
        linear-gradient(180deg, transparent 78%, color-mix(in srgb, var(--brand-bg) 45%, transparent) 100%);
}
@keyframes ag-hero-carin { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }

.ag-hero__inner { position: relative; z-index: 1; width: 100%; }
.ag-hero__content { max-width: 680px; }
.ag-hero__eyebrow {
    padding: 6px 14px 6px 12px; border-radius: 999px;
    background: color-mix(in srgb, var(--ag-primary) 15%, transparent);
    border: 1px solid color-mix(in srgb, var(--ag-primary) 35%, transparent);
    backdrop-filter: blur(6px);
}
.ag-hero__eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ag-primary-2); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ag-primary-2) 25%, transparent); }
.ag-hero__title {
    font-family: var(--brand-font-heading, 'Inter', sans-serif);
    font-weight: var(--brand-font-heading-weight, 700);
    font-size: clamp(2.3rem, 5.6vw, 4.4rem); line-height: 1.04; letter-spacing: -.03em;
    margin: 0 0 16px; text-wrap: balance;
}
.ag-hero__title :is(b, strong), .ag-hero__title .grad {
    background: linear-gradient(100deg, var(--ag-primary-2), color-mix(in srgb, var(--ag-primary-2) 45%, white));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ag-hero__subtitle { color: var(--ag-muted); font-size: clamp(1.02rem, 1.7vw, 1.24rem); line-height: 1.55; margin: 0; max-width: 52ch; }
.ag-hero__subtitle :is(p) { margin: 0; }

/* Search / AI panel */
.ag-hero__panel {
    width: min(100%, 900px); margin-top: clamp(22px, 4vh, 40px);
    background: color-mix(in srgb, var(--ag-surface) 88%, transparent);
    border: 1px solid var(--ag-line); border-radius: var(--ag-radius);
    box-shadow: var(--ag-shadow-lg); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    overflow: hidden;
}
.ag-hero__tabs { display: flex; gap: 6px; padding: 8px; border-bottom: 1px solid var(--ag-line); }
.ag-hero__tab {
    flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 48px; padding: 10px 14px; border: none; cursor: pointer;
    background: transparent; color: var(--ag-muted); font: inherit; font-weight: 600; font-size: .96rem;
    border-radius: var(--ag-radius-sm); transition: background-color .18s, color .18s;
}
.ag-hero__tab svg { width: 18px; height: 18px; flex: none; }
.ag-hero__tab:hover { color: var(--ag-text); }
.ag-hero__tab.is-active { background: color-mix(in srgb, var(--ag-primary) 20%, transparent); color: var(--ag-text); }
.ag-hero__tab-badge {
    font-size: .6rem; font-weight: 800; letter-spacing: .06em; padding: 2px 6px; border-radius: 6px;
    background: linear-gradient(100deg, var(--ag-primary), var(--ag-primary-2)); color: #fff;
}
.ag-hero__pane { padding: clamp(16px, 2vw, 22px); }
.ag-hero__pane[hidden] { display: none; }

/* Classic search — 4 fields on one row, full-width button below.
   Clean, always-aligned; no cramped 5th column. */
.ag-hero__form { display: flex; flex-direction: column; gap: 14px; }
.ag-hero__fields { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; align-items: end; }
.ag-hero__field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
/* Fixed single-line label height so all 4 labels share one baseline
   (the longer "Цена до, ₽" label was wrapping taller and pushing its field up). */
.ag-hero__field-label {
    font-size: .76rem; font-weight: 600; color: var(--ag-muted); letter-spacing: .01em;
    line-height: 1.2; height: 1.2em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ag-hero__select-wrap { position: relative; display: block; }
.ag-hero__select-wrap::after {
    content: ""; position: absolute; right: 12px; top: 50%; width: 10px; height: 10px; pointer-events: none;
    transform: translateY(-60%) rotate(45deg); border-right: 2px solid var(--ag-muted); border-bottom: 2px solid var(--ag-muted);
}
.ag-hero__select, .ag-hero__input {
    box-sizing: border-box; /* else padding adds to the 48px height and the
                               bare price input renders ~74px, misaligning it. */
    width: 100%; font: inherit; color: var(--ag-text); height: 48px; min-height: 48px;
    background: var(--ag-surface-2); border: 1px solid var(--ag-line-strong);
    border-radius: var(--brand-form-radius, 10px); padding: 0 14px; appearance: none;
    transition: border-color .16s, box-shadow .16s, background-color .16s;
}
.ag-hero__select { padding-right: 36px; text-overflow: ellipsis; }
.ag-hero__input::placeholder { color: color-mix(in srgb, var(--ag-muted) 75%, transparent); }
.ag-hero__select:focus, .ag-hero__input:focus {
    outline: none; border-color: var(--ag-primary-2);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--ag-primary) 28%, transparent); background: var(--ag-surface);
}
/* Full-width primary action below the fields. */
.ag-hero__submit { width: 100%; height: 52px; min-height: 52px; font-size: 1.02rem; }

/* AI chat pane */
.ag-hero__ai { display: flex; flex-direction: column; gap: 12px; }
.ag-hero__ai-scroll {
    max-height: 0; overflow-y: auto; overflow-x: hidden;
    transition: max-height .4s var(--ag-ease); scrollbar-width: thin;
}
.ag-hero__panel--ai .ag-hero__ai-scroll { max-height: 180px; }
.ag-hero__panel--ai.ag-hero__panel--chatting .ag-hero__ai-scroll { max-height: min(46vh, 380px); }
.ag-hero__ai-thread { display: flex; flex-direction: column; gap: 12px; padding: 2px; }
.ag-hero__ai-welcome { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 6px 2px; }
.ag-hero__ai-avatar {
    width: 34px; height: 34px; border-radius: 10px; flex: none; display: inline-flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--ag-primary), var(--ag-primary-2)); color: #fff;
}
.ag-hero__ai-avatar svg { width: 18px; height: 18px; }
.ag-hero__ai-welcome-text { margin: 0; color: var(--ag-muted); font-size: .95rem; line-height: 1.5; }
.ag-hero__ai-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ag-hero__chip {
    padding: 7px 12px; border-radius: 999px; cursor: pointer; font: inherit; font-size: .82rem;
    background: color-mix(in srgb, var(--ag-primary) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--ag-primary) 30%, transparent); color: var(--ag-primary-2);
    transition: background-color .16s, transform .16s;
}
.ag-hero__chip:hover { background: color-mix(in srgb, var(--ag-primary) 22%, transparent); transform: translateY(-1px); }

.ag-hero__ai-msg { display: flex; gap: 10px; align-items: flex-start; animation: ag-msg-in .3s var(--ag-ease); }
.ag-hero__ai-msg--user { flex-direction: row-reverse; }
.ag-hero__ai-bubble {
    max-width: 82%; padding: 11px 14px; border-radius: 14px; line-height: 1.5; font-size: .94rem;
    background: var(--ag-surface-2); border: 1px solid var(--ag-line);
}
.ag-hero__ai-msg--user .ag-hero__ai-bubble {
    background: linear-gradient(135deg, var(--ag-primary), var(--ag-primary-2)); color: #fff; border-color: transparent;
}
.ag-hero__ai-cta { display: inline-block; margin-top: 8px; font-weight: 600; color: var(--ag-primary-2); text-decoration: none; }
.ag-hero__ai-cta:hover { text-decoration: underline; }
.ag-hero__ai-dots { display: inline-flex; gap: 4px; padding: 2px 0; }
.ag-hero__ai-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--ag-muted); animation: ag-dot 1.2s infinite ease-in-out; }
.ag-hero__ai-dots i:nth-child(2) { animation-delay: .18s; } .ag-hero__ai-dots i:nth-child(3) { animation-delay: .36s; }
@keyframes ag-dot { 0%,60%,100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
@keyframes ag-msg-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.ag-hero__ai-input {
    display: flex; align-items: flex-end; gap: 8px; padding: 6px 6px 6px 14px;
    background: var(--ag-surface-2); border: 1px solid var(--ag-line-strong); border-radius: var(--brand-form-radius, 12px);
    transition: border-color .18s, box-shadow .18s;
}
.ag-hero__ai-input:focus-within { border-color: var(--ag-primary-2); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ag-primary) 26%, transparent); }
.ag-hero__ai-textarea {
    flex: 1; border: none; background: transparent; color: var(--ag-text); font: inherit; resize: none;
    max-height: 110px; padding: 11px 0; line-height: 1.4;
}
.ag-hero__ai-textarea:focus { outline: none; }
.ag-hero__ai-textarea::placeholder { color: color-mix(in srgb, var(--ag-muted) 78%, transparent); }
.ag-hero__ai-send {
    flex: none; width: 42px; height: 42px; border-radius: 10px; border: none; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    background: linear-gradient(120deg, var(--ag-primary), var(--ag-primary-2)); color: #fff;
    transition: transform .16s, filter .16s;
}
.ag-hero__ai-send:hover { transform: translateY(-1px); filter: brightness(1.08); }
.ag-hero__ai-send svg { width: 20px; height: 20px; }

/* ===========================================================================
   SHOWCASE (car grid block)
   =========================================================================== */
.ag-showcase__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: clamp(24px, 3vw, 40px); flex-wrap: wrap; }
.ag-showcase__link { white-space: nowrap; }
/* Explicit gap so the shared .ag-grid (whose --ag-gap is catalog-scoped) never collapses to 0 on home. */
.ag-showcase__grid { grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
.ag-showcase__foot { display: none; margin-top: 32px; text-align: center; }

/* ===========================================================================
   FEATURES
   =========================================================================== */
.ag-features__grid { display: grid; grid-template-columns: repeat(var(--cols, 3), 1fr); gap: clamp(14px, 2vw, 22px); }
.ag-feature {
    position: relative; padding: clamp(20px, 2.4vw, 30px); border-radius: var(--ag-radius);
    background: linear-gradient(160deg, var(--ag-surface), var(--ag-surface-2));
    border: 1px solid var(--ag-line); box-shadow: var(--ag-shadow); overflow: hidden;
    transition: transform .3s var(--ag-ease), border-color .3s, box-shadow .3s;
}
.ag-feature::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, transparent, var(--ag-primary-2), transparent); opacity: 0; transition: opacity .3s; }
.ag-feature:hover { transform: translateY(-5px); border-color: color-mix(in srgb, var(--ag-primary) 50%, transparent); box-shadow: var(--ag-shadow-lg); }
.ag-feature:hover::before { opacity: 1; }
.ag-feature__icon {
    width: 56px; height: 56px; border-radius: 16px; display: inline-flex; align-items: center; justify-content: center;
    margin-bottom: 18px; color: var(--ag-primary-2);
    background: color-mix(in srgb, var(--ag-primary) 16%, transparent); border: 1px solid color-mix(in srgb, var(--ag-primary) 30%, transparent);
}
.ag-feature__icon svg { width: 28px; height: 28px; } .ag-feature__icon img { width: 28px; height: 28px; object-fit: contain; }
.ag-feature__title { font-size: 1.16rem; font-weight: 700; margin: 0 0 8px; letter-spacing: -.01em; }
.ag-feature__text { color: var(--ag-muted); line-height: 1.6; margin: 0; font-size: .96rem; }

/* ===========================================================================
   VIDEOS + LIGHTBOX
   =========================================================================== */
.ag-videos__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(clamp(260px, 32%, 380px), 1fr)); gap: clamp(16px, 2vw, 24px); }
.ag-video { margin: 0; }
.ag-video__poster {
    position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; cursor: pointer;
    border: 1px solid var(--ag-line); border-radius: var(--ag-radius); overflow: hidden; background: var(--ag-surface-2);
    transition: transform .3s var(--ag-ease), border-color .3s, box-shadow .3s;
}
.ag-video__poster:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--ag-primary) 50%, transparent); box-shadow: var(--ag-shadow-lg); }
.ag-video__thumb { width: 100%; height: 100%; object-fit: cover; display: block; }
.ag-video__scrim { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.5)); }
.ag-video__play {
    position: absolute; inset: 0; margin: auto; width: 64px; height: 64px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; color: #fff;
    background: color-mix(in srgb, var(--ag-primary) 82%, transparent);
    box-shadow: 0 8px 24px -6px color-mix(in srgb, var(--ag-primary) 90%, transparent);
    transition: transform .25s var(--ag-ease), background-color .2s;
}
.ag-video__play svg { width: 26px; height: 26px; margin-left: 3px; }
.ag-video__poster:hover .ag-video__play { transform: scale(1.1); background: var(--ag-primary-2); }
.ag-video__play::after { content: ""; position: absolute; inset: -8px; border-radius: 50%;
    border: 2px solid color-mix(in srgb, var(--ag-primary-2) 60%, transparent); opacity: .7; animation: ag-pulse 2.6s ease-out infinite; }
@keyframes ag-pulse { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.6); opacity: 0; } }
.ag-video__badge { position: absolute; top: 10px; left: 10px; font-size: .68rem; font-weight: 700; padding: 4px 8px; border-radius: 6px; color: #fff; background: rgba(0,0,0,.55); backdrop-filter: blur(4px); }
.ag-video__caption { margin: 12px 2px 0; font-weight: 600; font-size: .98rem; line-height: 1.4; }

/* Lightbox modal */
.ag-vlightbox { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; padding: clamp(16px, 4vw, 48px); }
.ag-vlightbox[hidden] { display: none; }
.ag-vlightbox__backdrop { position: absolute; inset: 0; background: rgba(4, 9, 20, .78); backdrop-filter: blur(6px); opacity: 0; transition: opacity .25s var(--ag-ease); }
.ag-vlightbox.is-open .ag-vlightbox__backdrop { opacity: 1; }
.ag-vlightbox__dialog {
    position: relative; width: min(900px, 100%); aspect-ratio: 16 / 9;
    background: #05080f; border-radius: var(--ag-radius); overflow: hidden;
    box-shadow: 0 40px 100px -20px rgba(0,0,0,.85); border: 1px solid var(--ag-line);
    transform: scale(.94); opacity: 0; transition: transform .28s var(--ag-ease), opacity .28s var(--ag-ease);
}
.ag-vlightbox.is-open .ag-vlightbox__dialog { transform: scale(1); opacity: 1; }
.ag-vlightbox__dialog:focus { outline: none; }
.ag-vlightbox__close {
    position: absolute; top: -14px; right: -14px; z-index: 2; width: 40px; height: 40px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; cursor: pointer; color: #fff;
    background: var(--ag-primary); border: 2px solid var(--brand-bg, #0F1E36); box-shadow: var(--ag-shadow);
    transition: transform .16s, background-color .16s;
}
.ag-vlightbox__close:hover { transform: scale(1.08); background: var(--ag-primary-2); }
.ag-vlightbox__close svg { width: 20px; height: 20px; }
.ag-vlightbox__frame, .ag-vlightbox__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 520px) { .ag-vlightbox__close { top: 8px; right: 8px; background: rgba(0,0,0,.6); border-color: transparent; } }

/* ===========================================================================
   REVIEWS
   =========================================================================== */
.ag-reviews__rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(320px, 1fr); gap: clamp(16px, 2vw, 22px); overflow-x: auto; padding-bottom: 10px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.ag-review { scroll-snap-align: start; display: flex; flex-direction: column; gap: 16px; padding: clamp(20px, 2.4vw, 28px); border-radius: var(--ag-radius);
    background: linear-gradient(160deg, var(--ag-surface), var(--ag-surface-2)); border: 1px solid var(--ag-line); box-shadow: var(--ag-shadow); }
.ag-review__stars { display: inline-flex; gap: 2px; color: var(--brand-warning, #F59E0B); }
.ag-review__text { margin: 0; line-height: 1.65; color: var(--ag-text); flex: 1; }
.ag-review__text::before { content: "“"; color: var(--ag-primary-2); font-size: 1.4em; line-height: 0; vertical-align: -0.2em; margin-right: 2px; }
.ag-review__author { display: flex; align-items: center; gap: 12px; }
.ag-review__photo, .ag-review__avatar { width: 48px; height: 48px; border-radius: 50%; flex: none; }
.ag-review__photo { object-fit: cover; }
.ag-review__avatar { display: inline-flex; align-items: center; justify-content: center; font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--ag-primary), var(--ag-primary-2)); }
.ag-review__meta { display: flex; flex-direction: column; }
.ag-review__name { font-weight: 700; } .ag-review__role { font-size: .84rem; color: var(--ag-muted); }

/* ===========================================================================
   Reveal-on-scroll
   =========================================================================== */
[data-reveal], [data-hero-reveal] { opacity: 0; transform: translateY(16px); }
[data-reveal].is-in, [data-hero-reveal].is-in { opacity: 1; transform: none; transition: opacity .6s var(--ag-ease), transform .6s var(--ag-ease); transition-delay: calc(var(--i, 0) * 60ms); }
.no-js [data-reveal], .no-js [data-hero-reveal] { opacity: 1; transform: none; }

/* ===========================================================================
   Responsive
   =========================================================================== */
@media (max-width: 1024px) {
    .ag-hero__car { width: 92%; right: -8%; opacity: .5; }
    .ag-hero__content { max-width: 100%; }
}
@media (max-width: 860px) {
    .ag-hero { min-height: auto; padding-block: clamp(40px, 8vh, 72px); }
    .ag-hero__car { position: relative; right: auto; bottom: auto; width: 100%; margin: 24px auto -8%; display: block; opacity: .8;
        filter: brightness(.85) drop-shadow(0 30px 40px rgba(0,0,0,.5)); mask-image: none; -webkit-mask-image: none; }
    .ag-hero__car-layer { position: static; }
    .ag-hero__car-fade { display: none; }
    .ag-hero__fields { grid-template-columns: 1fr 1fr; }
    .ag-showcase__grid { --cols: 2 !important; }
    .ag-features__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
    .ag-hero__fields { grid-template-columns: 1fr; }
    .ag-showcase__head { flex-direction: column; align-items: flex-start; }
    .ag-showcase__link { display: none; }
    .ag-showcase__foot { display: block; }
    .ag-features__grid { grid-template-columns: 1fr; }
    .ag-reviews__rail { grid-auto-columns: minmax(280px, 85%); }
}

/* ===========================================================================
   Reduced motion
   =========================================================================== */
@media (prefers-reduced-motion: reduce) {
    .ag-hero__car, .ag-video__play::after, .ag-hero__ai-dots i { animation: none !important; }
    [data-reveal], [data-hero-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
    .ag-feature, .ag-video__poster, .ag-card, .ag-vlightbox__dialog, .ag-vlightbox__backdrop { transition: none !important; }
}
