/* ==========================================================================
   HERO — сцена с ноутбуком, живой график, первый экран.
   ========================================================================== */

.hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 100svh;
    padding-top: calc(var(--header-h) + clamp(28px, 5vw, 64px));
    padding-bottom: calc(var(--gap-section) / 2);
    overflow: hidden;
    isolation: isolate;
}

.hero__bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.hero__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, var(--c-line-soft) 1px, transparent 1px),
        linear-gradient(to bottom, var(--c-line-soft) 1px, transparent 1px);
    background-size: 68px 68px;
    -webkit-mask-image: radial-gradient(ellipse 75% 65% at 68% 46%, #000 0%, transparent 72%);
    mask-image: radial-gradient(ellipse 75% 65% at 68% 46%, #000 0%, transparent 72%);
    opacity: 0.8;
}

.hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: clamp(32px, 4.5vw, 64px);
    width: min(var(--container), 100% - 48px);
    margin-inline: auto;
}

.hero__copy {
    position: relative;
    z-index: 3;
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
    max-width: 620px;
}

.hero .eyebrow {
    margin-bottom: 22px;
}

.hero .eyebrow .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--c-green);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--c-green) 12%, transparent);
    animation: pulse-dot 2.4s var(--ease) infinite;
}

.hero h1 {
    max-width: 100%;
    font-size: clamp(32px, 3.9vw, 54px);
    line-height: 1.07;
}

.hero .lead {
    max-width: 46ch;
    margin-top: 22px;
    font-size: clamp(15px, 1.15vw, 17px);
}

.hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
}

.hero__micro {
    margin-top: 16px;
    color: var(--c-muted);
    font-size: 12.5px;
    line-height: 1.5;
}

.hero__micro .sep {
    margin-inline: 8px;
    opacity: 0.45;
}

/* ---------- Полоса показателей: 3 цифры + бегущая строка бирж ---------- */

.hero__stats-row {
    grid-column: 1 / -1;
    grid-row: 2;
    display: flex;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid var(--c-line);
}

.hero__stats {
    display: flex;
    flex: none;
    gap: 0;
    margin: 0;
    padding: 0;
}

.hero__exchanges {
    flex: 1 1 0;
    min-width: 0;
    margin-left: clamp(16px, 2vw, 26px);
    padding-left: clamp(16px, 2vw, 26px);
    border-left: 1px solid var(--c-line);
    overflow: hidden;
}

.hero__exchanges .marquee {
    width: 100%;
    min-width: 0;
    padding-block: 0;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
}

.hero__exchanges .marquee__track {
    gap: 32px;
}

.hero__exchanges .marquee__item {
    font-size: 10.5px;
    letter-spacing: 0.12em;
}

.hero__exchanges .marquee__item::before {
    width: 4px;
    height: 4px;
}

@media (max-width: 760px) {
    .hero__stats-row {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .hero__exchanges {
        flex: none;
        margin-left: 0;
        padding-left: 0;
        padding-top: 10px;
        border-left: 0;
        border-top: 1px solid var(--c-line-soft);
    }
}


.hero__stat {
    padding-right: clamp(14px, 1.7vw, 26px);
    margin-right: clamp(14px, 1.7vw, 26px);
    border-right: 1px solid var(--c-line);
}

.hero__stat:last-child {
    padding-right: 0;
    margin-right: 0;
    border-right: 0;
}

.hero__stat dt {
    color: var(--c-gold-2);
    font-family: var(--font-mono);
    font-size: clamp(17px, 1.5vw, 21px);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.hero__stat dd {
    margin-top: 6px;
    color: var(--c-muted);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* ---------- Сцена ---------- */

.hero__visual {
    grid-column: 2;
    grid-row: 1;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-end;
    align-self: end;
    gap: 12px;
    min-height: 0;
    perspective: 1600px;
}

.laptop {
    position: relative;
    width: min(100%, 620px);
    transform: rotateX(2.4deg);
    transform-origin: 50% 100%;
    filter: drop-shadow(0 50px 60px rgba(0, 0, 0, 0.45));
}

:root[data-theme="light"] .laptop {
    filter: drop-shadow(0 40px 50px rgba(70, 52, 30, 0.20));
}

.laptop::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: -8% -6% 18%;
    background:
        radial-gradient(ellipse 60% 55% at 50% 42%, var(--c-glow-cyan), transparent 70%),
        radial-gradient(ellipse 70% 45% at 50% 78%, var(--c-glow-gold), transparent 72%);
    filter: blur(34px);
    opacity: 0.9;
}

.laptop__lid {
    position: relative;
    padding: 10px 10px 8px;
    border: 1px solid var(--laptop-border);
    border-radius: 16px 16px 4px 4px;
    background: linear-gradient(155deg, var(--laptop-body-1) 0%, var(--laptop-body-2) 34%, var(--laptop-body-3) 74%, var(--laptop-body-2) 100%);
    box-shadow:
        inset 0 1px 0 var(--laptop-edge),
        inset 0 -1px 0 rgba(0, 0, 0, 0.5),
        0 24px 60px rgba(0, 0, 0, 0.5);
}

.laptop__lid::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(118deg, rgba(255, 255, 255, 0.12) 0%, transparent 26%, transparent 74%, rgba(255, 255, 255, 0.04) 100%);
    pointer-events: none;
}

.laptop__bezel {
    position: relative;
    padding: 8px 8px 12px;
    border-radius: 8px;
    background: #05060a;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.05),
        inset 0 0 30px rgba(0, 0, 0, 0.9);
}

.laptop__camera {
    position: absolute;
    top: 3px;
    left: 50%;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #1b2028;
    box-shadow: inset 0 0 0 0.5px rgba(120, 140, 160, 0.35);
    transform: translateX(-50%);
}

.laptop__screen {
    position: relative;
    aspect-ratio: 16 / 9.8;
    overflow: hidden;
    border-radius: 3px;
    background: var(--screen-bg);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.04),
        inset 0 0 50px rgba(0, 0, 0, 0.35);
}

.laptop__screen::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        linear-gradient(112deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0.02) 18%, transparent 34%),
        repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 3px);
    pointer-events: none;
    opacity: 0.8;
}

#heroChart {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.screen-ui {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 11px 13px;
    pointer-events: none;
    color: var(--screen-text);
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.02em;
}

.screen-ui::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, var(--screen-scrim) 0%, transparent 26%, transparent 72%, var(--screen-scrim) 100%);
    opacity: 0.85;
    pointer-events: none;
}

.screen-ui > * {
    position: relative;
}

.screen-ui__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.screen-ui__pair {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 10px;
    font-weight: 600;
}

.screen-ui__pair .live-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--c-green);
    box-shadow: 0 0 8px var(--c-green);
}

.screen-ui__muted {
    color: var(--screen-dim);
}

.screen-ui__badge {
    padding: 2px 6px;
    border: 1px solid color-mix(in srgb, var(--c-gold) 40%, transparent);
    border-radius: 3px;
    color: var(--c-gold-2);
    font-size: 8px;
    letter-spacing: 0.12em;
}

.screen-ui__pair .screen-ui__badge {
    margin-left: 6px;
}

.screen-ui__price {
    font-size: 11px;
    font-weight: 600;
}

.screen-ui__price b {
    color: var(--c-green);
    font-weight: 600;
}

.screen-ui__bottom {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
}

.screen-ui__kv {
    display: grid;
    gap: 1px;
    color: var(--screen-dim);
    font-size: 8px;
}

.screen-ui__kv b {
    color: var(--screen-text);
    font-size: 9.5px;
    font-weight: 600;
}

.screen-ui__side {
    color: var(--c-green);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.08em;
}

/* База ноутбука */

.laptop__base {
    position: relative;
    left: 0;
    width: 100%;
    height: clamp(66px, 6.2vw, 84px);
    margin-top: -1px;
    border-radius: 0 0 14px 14px;
    background:
        linear-gradient(180deg, rgba(89, 216, 255, 0.05) 0%, transparent 38%),
        linear-gradient(180deg, var(--laptop-body-1) 0%, var(--laptop-body-2) 30%, var(--laptop-body-3) 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.16),
        0 26px 40px rgba(0, 0, 0, 0.35);
    overflow: hidden;
}

.laptop__base::before {
    content: "";
    position: absolute;
    top: 0;
    left: 7%;
    right: 7%;
    height: 5px;
    border-radius: 0 0 4px 4px;
    background: linear-gradient(180deg, #06070a, #2a2f37);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.laptop__base::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 13px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(0, 0, 0, 0.35));
    border-radius: 0 0 14px 14px;
}

.laptop__keyboard {
    position: absolute;
    top: 7px;
    left: 8%;
    width: 84%;
    height: 52px;
    transform: perspective(220px) rotateX(34deg);
    transform-origin: top center;
    opacity: 0.9;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 76%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 0%, #000 76%, transparent 100%);
}

.laptop__trackpad {
    position: absolute;
    bottom: 5px;
    left: 50%;
    width: 17%;
    height: 9px;
    border: 1px solid var(--laptop-trackpad-line);
    border-radius: 3px;
    background: var(--laptop-trackpad);
    opacity: 0.7;
    transform: translateX(-50%);
}

.laptop__reflection {
    position: absolute;
    left: 4%;
    right: 4%;
    top: 100%;
    height: 90px;
    background: linear-gradient(180deg, var(--c-glow-gold), transparent 70%);
    filter: blur(26px);
    opacity: 0.45;
    transform: scaleY(-1);
    pointer-events: none;
}

/* Маскот «Имп» — стоит рядом с планшетом, машет и моргает */

.hero__bot-wrap {
    position: absolute;
    left: -26%;
    bottom: 0;
    z-index: 5;
    width: clamp(118px, 10.5vw, 150px);
    pointer-events: none;
}

.hero__bot {
    position: relative;
    width: 100%;
    filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.45));
    animation: bot-bob 6s ease-in-out infinite;
}

/* Облачко Импа: над ним, сдвинуто вправо, половина заходит на планшет */
.hero__bubble {
    position: absolute;
    left: 32%;
    bottom: calc(100% + 10px);
    z-index: 6;
    width: max-content;
    min-width: 170px;
    max-width: 238px;
    padding: 10px 13px;
    border: 1px solid var(--c-line-gold);
    border-radius: 13px;
    background: var(--c-panel-solid);
    color: var(--c-text);
    font-size: 12.5px;
    font-weight: 500;
    line-height: 1.35;
    text-align: left;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.38);
    opacity: 0;
    transform: translateY(5px);
    transition: opacity 0.32s var(--ease), transform 0.32s var(--ease);
}

.hero__bubble.is-visible {
    opacity: 1;
    transform: none;
}

.hero__bubble::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 26px;
    width: 9px;
    height: 9px;
    background: var(--c-panel-solid);
    border-right: 1px solid var(--c-line-gold);
    border-bottom: 1px solid var(--c-line-gold);
    transform: rotate(45deg);
}

.hero__line {
    display: none;
}

.hero__line.is-active {
    display: inline;
}

/* Рот Импа: горизонтальная чёрточка, «говорит» вместе с фразой */
.hero__bot .bot-mouth {
    opacity: 0;
}

.hero__bot-wrap.is-talking .bot-mouth {
    animation: bot-talk 0.34s linear infinite;
}

@keyframes bot-talk {
    0%,
    100% {
        opacity: 0;
    }
    45%,
    55% {
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero__bot-wrap.is-talking .bot-mouth {
        animation: none;
        opacity: 1;
    }
}

:root[data-theme="light"] .hero__bot {
    filter: drop-shadow(0 10px 14px rgba(42, 32, 24, 0.18));
}

.hero__bot .bot-arm {
    transform-box: fill-box;
    transform-origin: 0% 100%;
    animation: bot-wave 5.4s ease-in-out infinite;
}

.hero__bot .bot-eye {
    transform-box: fill-box;
    transform-origin: center;
    animation: bot-blink 6.2s infinite;
}

@keyframes bot-bob {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-4px);
    }
}

@keyframes bot-wave {
    0%,
    52%,
    100% {
        transform: rotate(0deg);
    }
    8% {
        transform: rotate(-24deg);
    }
    16% {
        transform: rotate(4deg);
    }
    24% {
        transform: rotate(-20deg);
    }
    32% {
        transform: rotate(2deg);
    }
    40% {
        transform: rotate(-14deg);
    }
    48% {
        transform: rotate(0deg);
    }
}

@keyframes bot-blink {
    0%,
    91%,
    100% {
        transform: scaleY(1);
    }
    94%,
    96% {
        transform: scaleY(0.08);
    }
}

/* ---------- Планшет ---------- */

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
}

.hm {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 58px;
    padding: 9px 11px;
    border: 1px solid var(--c-line);
    border-radius: 10px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 70%),
        var(--c-panel);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.hm__value {
    color: var(--c-text);
    font-family: var(--font-mono);
    font-size: clamp(15px, 1.5vw, 19px);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.03em;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.hm__value.is-profit {
    color: var(--c-green);
}

.hm__value.is-loss {
    color: var(--c-red);
}

.hm__value[data-stat="aum"] {
    color: var(--c-gold-2);
}

.hm__label {
    margin-top: 5px;
    color: var(--c-muted);
    font-size: 8.5px;
    line-height: 1.3;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.hero-metrics__note {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    margin: -2px 0 0;
    color: var(--c-muted);
    font-size: 9px;
    letter-spacing: 0.04em;
}

.hero-metrics__note .dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--c-green);
    box-shadow: 0 0 6px var(--c-green);
    opacity: 0.8;
}

.tablet {
    align-self: center;
}

@media (max-width: 600px) {
    .hero-metrics {
        grid-template-columns: 1fr 1fr;
    }

    .hm__value {
        font-size: 16px;
    }

    .hero-metrics__note {
        justify-content: flex-start;
    }
}

.tablet {
    position: relative;
    width: min(100%, 600px);
    transform: rotateX(2.5deg);
    transform-origin: 50% 100%;
    filter: drop-shadow(0 46px 56px rgba(0, 0, 0, 0.55));
}

:root[data-theme="light"] .tablet {
    filter: drop-shadow(0 34px 44px rgba(60, 45, 25, 0.28));
}

.tablet__stand {
    position: absolute;
    z-index: -2;
    bottom: -26px;
    left: 50%;
    width: 240px;
    height: 90px;
    border-radius: 10px;
    background: linear-gradient(180deg, #2b3037 0%, #111419 55%, #07080b 100%);
    box-shadow: 0 24px 38px rgba(0, 0, 0, 0.55);
    transform: translateX(-50%) perspective(600px) rotateX(58deg);
}

:root[data-theme="light"] .tablet__stand {
    background: linear-gradient(180deg, #eae4d9 0%, #c9c1b4 55%, #b0a799 100%);
    box-shadow: 0 22px 34px rgba(60, 45, 25, 0.30);
}

.tablet__frame {
    position: relative;
    padding: 13px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 30px;
    background: linear-gradient(150deg, #59616b 0%, #2a2f36 12%, #111419 48%, #0b0d11 70%, #343a42 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        inset 0 -2px 0 rgba(0, 0, 0, 0.6),
        0 30px 60px rgba(0, 0, 0, 0.55);
}

.tablet__frame::before {
    content: "";
    position: absolute;
    inset: 5px;
    border-radius: 26px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    pointer-events: none;
}

.tablet__frame::after {
    content: "";
    position: absolute;
    top: 22%;
    right: -2px;
    width: 2px;
    height: 12%;
    border-radius: 2px;
    background: #2c3239;
    box-shadow: 0 26px 0 #2c3239;
}

:root[data-theme="light"] .tablet__frame {
    border-color: rgba(60, 45, 25, 0.28);
    background: linear-gradient(150deg, #fffdf9 0%, #e8e1d6 12%, #cfc7ba 48%, #b3aa9c 70%, #f1ebe1 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.95),
        inset 0 -2px 0 rgba(60, 45, 25, 0.22),
        0 26px 46px rgba(60, 45, 25, 0.28);
}

:root[data-theme="light"] .tablet__frame::after {
    background: #a49b8d;
    box-shadow: 0 26px 0 #a49b8d;
}

.tablet__screen {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 19px;
    background: var(--screen-bg);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.05),
        inset 0 0 45px rgba(0, 0, 0, 0.38);
}

.tablet__screen::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        linear-gradient(112deg, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0.02) 18%, transparent 34%),
        repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.016) 0 1px, transparent 1px 3px);
    pointer-events: none;
    opacity: 0.85;
}

.tablet__camera {
    position: absolute;
    z-index: 3;
    top: 6px;
    left: 50%;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #05070a;
    box-shadow:
        inset 0 0 0 1px rgba(120, 140, 160, 0.35),
        0 0 7px rgba(89, 216, 255, 0.16);
    transform: translateX(-50%);
}

/* В светлой теме светлая рамка без внутренней тени читается глубже */
:root[data-theme="light"] .tablet__screen {
    box-shadow:
        inset 0 0 0 1px rgba(60, 45, 25, 0.14),
        inset 0 0 28px rgba(60, 45, 25, 0.10);
}

:root[data-theme="light"] .tablet__screen::after {
    opacity: 0.45;
}

/* Плавающие карточки */

.float-card {
    position: absolute;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 13px;
    border: 1px solid var(--c-line-gold);
    border-radius: 12px;
    background: color-mix(in srgb, var(--c-panel-solid) 76%, transparent);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.07);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    font-family: var(--font-mono);
    font-size: 9.5px;
    white-space: nowrap;
    animation: float-card 7s ease-in-out infinite alternate;
}

.float-card__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--c-green);
    box-shadow: 0 0 9px var(--c-green);
}

.float-card__label {
    display: grid;
    gap: 1px;
    color: var(--c-muted);
    font-size: 8px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.float-card__label b {
    color: var(--c-text);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
}

.float-card--a {
    top: 8%;
    left: -18%;
}

.float-card--b {
    right: -4%;
    bottom: -4%;
    animation-delay: -2.4s;
}

@keyframes float-card {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(-7px);
    }
}

@keyframes pulse-dot {
    0%,
    100% {
        box-shadow: 0 0 0 4px color-mix(in srgb, var(--c-green) 10%, transparent);
    }
    50% {
        box-shadow: 0 0 0 7px color-mix(in srgb, var(--c-green) 4%, transparent);
    }
}

/* ---------- Адаптив ---------- */

@media (max-width: 1080px) {
    .hero {
        min-height: auto;
        padding-top: calc(var(--header-h) + 48px);
    }

    .hero__inner {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: auto;
        column-gap: 0;
        row-gap: 40px;
    }

    .hero__copy {
        grid-column: auto;
        grid-row: auto;
        max-width: 680px;
    }

    .hero h1 {
        max-width: 18ch;
    }

    .hero__visual {
        grid-column: auto;
        grid-row: auto;
        align-self: auto;
        min-height: 0;
        margin-inline: auto;
        width: min(100%, 640px);
    }

    .hero__stats-row {
        grid-column: auto;
        grid-row: auto;
    }

    .float-card--a {
        left: 0;
        top: 2%;
    }

    .float-card--b {
        right: 0;
        bottom: 10%;
    }
}

@media (max-width: 900px) {
    .hero__bot-wrap {
        display: none;
    }
}

@media (max-width: 640px) {
    .hero .eyebrow {
        font-size: 10px;
        letter-spacing: 0.12em;
        white-space: nowrap;
    }

    .hero__cta {
        flex-direction: column;
        align-items: stretch;
    }

    .hero__cta .btn {
        width: 100%;
    }

    .hero__stat {
        flex: 1 1 0;
        min-width: 0;
        padding-right: 10px;
        margin-right: 10px;
    }

    .hero__stat dt {
        font-size: 15px;
    }

    .hero__stat dd {
        font-size: 8.5px;
        letter-spacing: 0.04em;
        line-height: 1.35;
    }

    .float-card {
        display: none;
    }

    .hero__bot-wrap {
        display: none;
    }

    .laptop__base {
        height: 58px;
    }

    .laptop__keyboard {
        top: 5px;
        height: 40px;
    }

    .laptop__trackpad {
        height: 6px;
    }

    .laptop {
        transform: none;
    }

    .screen-ui {
        padding: 8px 9px;
        font-size: 7px;
    }

    .screen-ui__pair,
    .screen-ui__price {
        font-size: 8px;
    }

    .screen-ui__kv b {
        font-size: 8px;
    }

    .screen-ui__kv {
        font-size: 6.5px;
    }
}

@media (max-height: 760px) and (min-width: 1081px) {
    .hero {
        min-height: auto;
        padding-block: calc(var(--header-h) + 40px) calc(var(--gap-section) / 2);
    }

    .laptop {
        width: min(100%, 560px);
    }
}
