/* Homepage grid and hero */
.content-shell {
    width: calc(100% - clamp(32px, 8vw, 128px));
    max-width: none;
    margin-inline: auto;
}

.home-hero {
    position: relative;
    display: grid;
    align-items: end;
    min-height: 100vh;
    min-height: 100svh;
    padding: 120px var(--home-content-gutter) 72px;
    isolation: isolate;
    overflow: hidden;
}

.home-hero__media,
.home-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: -2;
}

.home-hero__media {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
    animation: heroZoom 15s infinite alternate cubic-bezier(0.25, 1, 0.5, 1);
}

@keyframes heroZoom {
    0% { transform: scale(1.1); }
    100% { transform: scale(1.18); }
}

/* По умолчанию показываем десктопное видео, мобильное скрываем */
.home-hero__media--mobile {
    display: none;
}

/* На мобильных (ширина до 768px) — меняем местами */
@media (max-width: 768px) {
    .home-hero__media--desktop {
        display: none;
    }
    .home-hero__media--mobile {
        display: block;
    }
}

.home-hero__overlay {
    z-index: -1;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.76));
}

.home-hero__content {
    width: min(860px, 100%);
}

.home-hero h1 {
    margin: 0;
    font-family: var(--urban-font-display);
    font-size: clamp(3.5rem, 11vw, 10.8rem);
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 0.96;
}

.home-hero__lead {
    max-width: 620px;
    margin: 28px 0 0;
    color: var(--urban-silver);
    font-size: clamp(1.05rem, 1.6vw, 1.45rem);
}

.home-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}

/* Intro and proof points */
.intro-band {
    background: var(--urban-black);
    text-align: center;
}

.intro-band h2 {
    max-width: 1040px;
    margin: 0 auto;
    font-size: clamp(2.1rem, 5vw, 5.6rem);
    font-weight: 700;
    line-height: 0.98;
}

.intro-band__stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    width: 100%;
    margin: clamp(44px, 6vw, 76px) auto 0;
    background: var(--urban-line);
}

.intro-band__stats div {
    background: var(--urban-black);
    padding: 28px 18px;
}

.intro-band__stats strong {
    display: block;
    font-size: clamp(2.3rem, 5vw, 4.8rem);
    font-weight: 800;
    line-height: 1;
}

.intro-band__stats span {
    display: block;
    margin-top: 10px;
    color: var(--urban-muted);
}

/* Featured inventory and optional catalog preview */
.feature-banner {
    position: relative;
    display: grid;
    align-items: end;
    min-height: 100vh;
    min-height: 100svh;
    padding: clamp(40px, 7vw, 96px) var(--home-content-gutter);
    overflow: hidden;
}

.feature-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.16) 52%, rgba(0, 0, 0, 0.65)),
        url("../../images/photo-1503376780353-7e6692767b70.avif") center / cover;
    transition: transform 700ms ease;
}

.feature-banner:hover::before {
    transform: scale(1.04);
}

.feature-banner__content {
    position: relative;
    max-width: 760px;
}

.feature-banner h2 {
    margin: 0 0 28px;
    font-size: clamp(2.3rem, 6vw, 6.4rem);
    font-weight: 700;
    line-height: 0.94;
}

.catalog-preview {
    background: #0c1b2d;
}

.catalog-preview__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.market-card {
    min-height: 560px;
    border: 1px solid var(--urban-line);
    background: var(--urban-panel);
    overflow: hidden;
}

.market-card__image {
    min-height: 340px;
    background-position: center;
    background-size: cover;
    filter: grayscale(0.25);
    transition: transform 500ms ease, filter 500ms ease;
}

.market-card:hover .market-card__image {
    transform: scale(1.035);
    filter: grayscale(0);
}

.market-card__image--premium {
    background-image: url("../../images/photo-1552519507-da3b142c6e3d.avif");
}

.market-card__image--performance {
    background-image: url("../../images/photo-1609521263047-f8f205293f24.avif");
}

.market-card__image--business {
    background-image: url("../../images/photo-1617814076367-b759c7d7e738.avif");
}

.market-card__body {
    padding: 26px;
}

.market-card__body span {
    color: var(--urban-muted);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.market-card__body h3 {
    margin: 16px 0 12px;
    font-size: clamp(1.35rem, 2vw, 2rem);
    font-weight: 700;
}

.market-card__body p {
    margin: 0;
    color: var(--urban-muted);
}

/* Services, reviews, and trust signals */
.dark-split {
    background: var(--urban-black);
}

.dark-split__grid {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: clamp(36px, 7vw, 110px);
}

.dark-split h2 {
    margin: 0;
    font-size: clamp(2.2rem, 5vw, 5.5rem);
    font-weight: 700;
    line-height: 0.96;
}

.service-list {
    display: grid;
    gap: 1px;
    background: var(--urban-line);
}

.service-list article {
    background: var(--urban-black);
    padding: 30px 0 30px 28px;
}

.service-list span {
    color: var(--urban-muted);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.18em;
}

.service-list h3 {
    margin: 12px 0;
    font-size: clamp(1.35rem, 2.2vw, 2.2rem);
}

.service-list p {
    max-width: 620px;
    margin: 0;
    color: var(--urban-muted);
}

.why-us {
    background: #10243d;
}

.video-reviews {
    background: #09192d;
}

.review-video video {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 9 / 16;
    background: transparent;
    object-fit: cover;
}

.review-video div {
    padding: 22px;
}

.review-video span {
    display: block;
    color: var(--urban-white);
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.review-video p {
    margin: 10px 0 0;
    color: var(--urban-muted);
}

.why-us__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    background: var(--urban-line);
}

.why-us article {
    min-height: 260px;
    background: #111;
    padding: 32px;
}

.why-us h3 {
    margin: 0 0 18px;
    font-size: clamp(1.5rem, 2.5vw, 2.6rem);
}

.why-us p {
    margin: 0;
    color: var(--urban-muted);
}

/* Final conversion section */
.cta-section {
    position: relative;
    display: grid;
    align-items: end;
    min-height: 100vh;
    min-height: 100svh;
    background:
        linear-gradient(90deg, rgba(7,19,32, 0.86), rgba(0, 0, 0, 0.32), rgba(0, 0, 0, 0.72)),
        url("../../images/photo-1492144534655-ae79c964c9d7.avif") center / cover;
}

.cta-section__content {
    width: 100%;
    max-width: none;
    padding: clamp(40px, 7vw, 92px) var(--home-content-gutter);
}

.cta-section h2 {
    margin: 0 0 28px;
    font-size: clamp(2rem, 4.2vw, 4.7rem);
    font-weight: 700;
    line-height: 0.98;
}

@media (max-width: 980px) {
    .catalog-preview__grid,
    .dark-split__grid,
    .why-us__grid {
        grid-template-columns: 1fr;
    }

    .market-card {
        min-height: auto;
    }

}

/* ==========================================================================
   ПРЕМИАЛЬНЫЕ АНИМАЦИИ И ЭФФЕКТЫ
   ========================================================================== */

/* 5. Улучшенный эффект карточек и элементов списков */
.market-card,
.service-list article,
.why-us article,
.review-video {
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.5s ease,
    background-color 0.5s ease;
}

.market-card:hover,
.service-list article:hover,
.why-us article:hover,
.review-video:hover {
    border-color: rgba(255, 255, 255, 0.25);
}

.market-card:hover,
.service-list article:hover,
.why-us article:hover {
    transform: translateY(-6px);
}

/* 6. Плавное появление элементов статистики с задержкой (Stagger effect) */
.intro-band__stats div:nth-child(1) { transition-delay: 0.1s; }
.intro-band__stats div:nth-child(2) { transition-delay: 0.2s; }
.intro-band__stats div:nth-child(3) { transition-delay: 0.3s; }

/* ==========================================================================
   ДОПОЛНИТЕЛЬНЫЕ ПРЕМИАЛЬНЫЕ ЭФФЕКТЫ
   ========================================================================== */

/* 2. Премиальный Spotlight (световой блик) для карточек и блоков */
.service-list article,
.why-us article,
.review-video {
    position: relative;
    overflow: hidden;
}

.service-list article::before,
.why-us article::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
            90deg,
            transparent,
            rgba(255, 255, 255, 0.04),
            transparent
    );
    transition: left 0.8s ease;
    pointer-events: none;
}

.service-list article:hover::before,
.why-us article:hover::before {
    left: 100%;
}

/* 3. Эффект глубокого слоя для цифр статистики */
.intro-band__stats div {
    position: relative;
    overflow: hidden;
    transition: background-color 0.4s ease, transform 0.4s ease;
}

.intro-band__stats div:hover {
    background-color: #0d0d0d;
    transform: translateY(-2px);
}

.intro-band__stats strong {
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.intro-band__stats div:hover strong {
    color: var(--urban-white);
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.25);
}

/* ==========================================================================
   ИЗМЕНЕНИЕ КУРСОРОВ И НОВЫЕ ПРЕМИАЛЬНЫЕ АНИМАЦИИ
   ========================================================================== */

/* 1. Изменение курсоров для интерактивных зон */
.home-hero__media,
.feature-banner,
.market-card__image {
    cursor: zoom-in;
}

.review-video video,
.home-hero__scroll {
    cursor: pointer;
}

.service-list article,
.why-us article,
.intro-band__stats div {
    cursor: default;
}

/* 2. Текстовая анимация появления заголовков (Staggered Blur-Up) */
.reveal-text {
    opacity: 0;
    transform: translateY(25px);
    filter: blur(6px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1s cubic-bezier(0.16, 1, 0.3, 1),
    filter 1s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform, filter;
}

.reveal-text.active {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

/* Эффект легкого глянцевого отсвета на карточках при наведении */
.why-us article::after,
.service-list article::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255,255,255,0.03), transparent 40%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.why-us article:hover::after,
.service-list article:hover::after {
    opacity: 1;
}

/* The native video element itself enters fullscreen, outside the clipped card. */
.review-video video:fullscreen,
.review-video video:-webkit-full-screen {
    position: fixed;
    inset: 0;
    z-index: 2147483647;
    display: block;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    max-width: none;
    max-height: none;
    aspect-ratio: auto;
    object-fit: contain;
    background: #000;
}

.review-video:has(video:fullscreen),
.review-video:has(video:-webkit-full-screen) {
    transform: none;
    border-color: transparent;
}



/* Video review carousel */
.video-reviews__carousel {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
    max-width: none;
}

.video-reviews__viewport {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    touch-action: pan-y;
}

.video-reviews__grid {
    display: flex;
    gap: 20px;
    width: 100%;
    transition: transform 0.4s ease;
}

.review-video {
    flex: 0 0 min(100%, 280px);
    max-width: 280px;
    min-width: 0;
    border: 1px solid var(--urban-line);
    background: #111;
    overflow: hidden;
}

.review-video__info {
    padding: 16px 18px 18px;
}

.review-video__info span {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
}

.review-video__info p {
    margin: 0;
    color: var(--urban-muted);

    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.video-reviews__arrow {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;

    display: grid;
    place-items: center;

    padding: 0;
    border: 1px solid var(--urban-line);
    background: transparent;
    color: var(--urban-white);

    cursor: pointer;
    font-size: 18px;

    transition:
            background-color 0.2s ease,
            color 0.2s ease,
            opacity 0.2s ease;
}

.video-reviews__arrow:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--urban-white);
}

.video-reviews__arrow:disabled {
    opacity: 0.3;
    cursor: default;
}

.video-reviews__arrow:disabled:hover {
    background: transparent;
    color: var(--urban-white);
}

.video-reviews__dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 18px;
}

.video-reviews__dot {
    width: 7px;
    height: 7px;
    padding: 0;

    border: 0;
    border-radius: 50%;

    background: var(--urban-muted);
    opacity: 0.4;

    cursor: pointer;
}

.video-reviews__dot.is-active {
    width: 24px;
    border-radius: 10px;
    opacity: 1;
}

@media (max-width: 1100px) {
    .video-reviews .section-heading h2 { font-size: clamp(1.8rem, 4vw, 3rem); }
}

@media (max-height: 800px) and (min-width: 681px) {
    .review-video__info { padding: 12px 16px 14px; }
    .video-reviews__dots { margin-top: 12px; }
}

@media (max-height: 650px) and (min-width: 681px) {
    .review-video__info { padding: 10px 14px 12px; }
    .review-video__info p { -webkit-line-clamp: 1; }
    .video-reviews__dots { margin-top: 10px; }
}

.video-reviews .section-heading {
    width: 100%;
    text-align: right;
}

.video-reviews .section-heading h2 {
    width: 100%; max-width: none; margin: 0; font-size: clamp(2rem, 3.2vw, 3.8rem); line-height: 1.08; letter-spacing: 0; white-space: normal;
}

.video-reviews .review-video {
    opacity: 0;
    visibility: hidden;
}

.video-reviews .review-video.is-animating {
    visibility: visible;
    animation: reviewCardDrop 1700ms cubic-bezier(.16, 1, .3, 1) both;
    animation-delay: var(--review-delay, 0ms);
}

@keyframes reviewCardDrop {
    from { opacity: 0; transform: translateY(-64px) scale(.96); filter: blur(6px); }
    to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

/* Keep each desktop home section aligned to one viewport. */
.home-hero,
.intro-band,
.feature-banner,
.dark-split,
.video-reviews,
.why-us,
.cta-section {
    min-height: 100svh;
    box-sizing: border-box;
}

@media (min-width: 681px) {
    .home-hero,
    .intro-band,
    .feature-banner,
    .dark-split,
    .video-reviews,
    .why-us,
    .cta-section {
        height: 100vh;
        height: 100svh;
        min-height: 100vh;
        min-height: 100svh;
    }

    .dark-split {
        padding-block: clamp(28px, 6vh, 72px);
    }

    .dark-split__grid {
        gap: clamp(24px, 4vw, 64px);
    }

    .dark-split h2 {
        font-size: clamp(2rem, min(5vw, 5vh), 4.6rem);
    }

    .service-list article {
        padding-block: clamp(16px, 2.5vh, 26px);
    }

    .review-video video {
        height: min(48svh, 420px);
        aspect-ratio: auto;
    }
}

@media (min-width: 681px) and (max-width: 980px) {
    .why-us article {
        min-height: 0;
        padding: 24px;
    }
}

.intro-band,
.dark-split,
.video-reviews,
.why-us {
    display: flex;
    align-items: center;
    padding-block: clamp(56px, 8vh, 108px);
}
.intro-band > .content-shell,
.dark-split > .content-shell,
.video-reviews > .content-shell,
.why-us > .content-shell {
    box-sizing: border-box;
    width: 100%;
    padding-inline: var(--home-content-gutter);
}
.feature-banner__content,
.cta-section__content { padding-block: clamp(56px, 8vh, 108px); }

/* Keep display type expressive without letting it collide with adjacent content. */
.home-hero h1,
.feature-banner h2,
.dark-split h2,
.intro-band h2,
.cta-section h2 {
    line-height: 1.06;
    letter-spacing: 0;
    overflow-wrap: anywhere;
}
.home-hero h1 { font-size: clamp(3rem, 10vw, 9.5rem); }
.intro-band h2 { font-size: clamp(2rem, 5vw, 5rem); }
.feature-banner h2,
.dark-split h2 { font-size: clamp(2.1rem, 5.5vw, 5.2rem); }
.cta-section h2 { max-width: 1200px; font-size: clamp(2rem, 4.6vw, 4.5rem); }
.home-hero__lead { line-height: 1.55; }
.service-list p, .why-us p, .market-card__body p,
.review-video__info p { line-height: 1.65; }

@media (max-width: 680px) {
    .home-hero { padding-top: 104px; padding-bottom: 56px; }
    .intro-band, .dark-split, .video-reviews, .why-us { padding-block: 64px; }
    .feature-banner { min-height: 100vh; min-height: 100svh; padding: 64px var(--home-content-gutter); }
    .cta-section { min-height: 100vh; min-height: 100svh; }
    .feature-banner__content, .cta-section__content { padding-block: 64px; }
    .intro-band__stats { grid-template-columns: 1fr; }
    .section-heading { display: block; }
    .home-hero__actions { align-items: stretch; flex-direction: column; max-width: 360px; }
    .home-hero__actions .button { width: 100%; }
    .video-reviews__carousel { justify-content: center; gap: 10px; }
    .video-reviews__arrow { flex: 0 0 38px; width: 38px; height: 38px; }
    .video-reviews__grid { gap: 12px; }
    .video-reviews__viewport { flex: 0 1 280px; width: 280px; }
    .review-video { flex-basis: 100%; }
    .review-video__info { padding: 14px 16px 16px; }
    .video-reviews__dots { margin-top: 14px; }
    .video-reviews .section-heading h2 { font-size: clamp(1.8rem, 8vw, 2.5rem); line-height: 1.08; }
}

@media (max-height: 720px) and (min-width: 681px) {
    .home-hero, .feature-banner, .cta-section { padding-block: 96px 56px; }
    .intro-band, .dark-split, .video-reviews, .why-us { padding-block: 48px; }
    .service-list article { padding-block: 14px; }
    .service-list h3 { margin-block: 8px; }
    .why-us article { padding: 18px; }
}

@media (max-height: 650px) and (min-width: 681px) {
    .home-hero, .feature-banner, .cta-section { padding-block: 72px 40px; }
    .intro-band, .dark-split, .why-us { padding-block: 24px; }
    .video-reviews { padding-block: 20px; }
    .dark-split h2 { font-size: clamp(1.8rem, 5vh, 2.6rem); }
    .dark-split__grid { gap: 24px; }
    .service-list article { padding: 12px 0 12px 20px; }
    .service-list p { font-size: .92rem; }
    .why-us article { padding: 14px; }
    .why-us h3 { margin-bottom: 10px; }
    .video-reviews .section-heading { margin-bottom: 24px; }
    .review-video video { height: min(45svh, 280px); }
}
