/*
 * Astrafic — главная страница.
 *
 * Та же система, что на AST AI и AST VPN: графитовая база, один
 * акцент, волосяные линии вместо цветных градиентов, настоящие
 * объёмные объекты вместо плоских пятен.
 *
 * Файл грузится только на главной: остальные страницы сайта живут
 * по своим правилам.
 */

.ast-home {
    --ah-wrap: 1180px;
    /* Ритм секций. Было по 96px сверху и снизу — между блоками
       набиралось 200–230px пустоты, страница читалась как разрежённая.
       Теперь межсекционный зазор держится в пределах 90–140px. */
    --ah-gap: clamp(2.8rem, 5.5vw, 4.5rem);

    /* Материал объёмных объектов. Грани стекла заданы отдельно от
       текста: на тёмном фоне это светлые блики, на бумаге — тени.
       Один набор токенов, две темы — объект не переделывается. */
    --ah-face-a:       rgba(255, 255, 255, 0.30);
    --ah-face-accent:  rgba(97, 97, 255, 0.16);
    --ah-side-a:       rgba(97, 97, 255, 0.34);
    --ah-side-b:       rgba(26, 27, 48, 0.20);
    --ah-edge:         rgba(255, 255, 255, 0.24);
    --ah-edge-strong:  rgba(255, 255, 255, 0.55);
    --ah-beam-in:      #8ea2ff;
    --ah-beam-up:      #b6a8ff;
    --ah-beam-dn:      #7fd2ff;

    position: relative;
    background: var(--ast-bg);
    color: var(--ast-text);
    font-family: var(--ast-font);
}

/* На бумаге стекло видно по контуру и грани, а не по блику. */
html[data-ast-theme="light"] .ast-home {
    /* Приглушённый текст на бумаге давал 3.65:1 — под мелкий кегль
       (11–13px) это уже не читается. Тёмнее на тон, но всё ещё
       явно тише основного текста. */
    --ast-text-3:        #63656d;

    --ah-face-a:       rgba(96, 116, 200, 0.34);
    --ah-face-accent:  rgba(97, 97, 255, 0.20);
    --ah-side-a:       rgba(97, 97, 255, 0.32);
    --ah-side-b:       rgba(24, 26, 48, 0.20);
    --ah-edge:         rgba(24, 26, 46, 0.42);
    --ah-edge-strong:  rgba(24, 26, 46, 0.62);
    --ah-beam-in:      #3f52cc;
    --ah-beam-up:      #5c4bc4;
    --ah-beam-dn:      #1f8ec2;
}

/* Свет сверху. Раньше здесь стояли два цветных радиальных пятна —
   они читались как шарики за интерфейсом. Теперь это один
   нейтральный отсвет, который только отделяет первый экран. */
.ast-home::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 520px;
    background:
        linear-gradient(180deg, var(--ast-raised) 0%, rgba(0, 0, 0, 0) 100%);
    opacity: 0.5;
    pointer-events: none;
    z-index: 0;
}

/* ================================================================
   ШАПКА
   ================================================================ */

.ast-home-hero {
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.ast-home-hero-art {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.ast-home-hero-texture {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 74% 40%;
    opacity: 0.85;
}

/* Фактура уходит вглубь, а не режется по краю: слева растворяется,
   чтобы текст читался, справа остаётся как свет из окна. */
.ast-home-hero-art::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, var(--ast-bg) 0%, var(--ast-bg) 22%, rgba(0, 0, 0, 0) 62%),
        linear-gradient(180deg, var(--ast-bg) 0%, rgba(0, 0, 0, 0) 22%, rgba(0, 0, 0, 0) 72%, var(--ast-bg) 98%);
}

/* Две версии одной фактуры: тёмный рендер и холодный светло-синий
   для бумаги. Раньше светлая тема получала инверсию в CSS, и колонны
   выцветали в белое пятно — вместо света получалась пустота. */
.ast-home-hero-texture--light {
    display: none;
}

html[data-ast-theme="light"] .ast-home .ast-home-hero-texture--dark {
    display: none;
}

html[data-ast-theme="light"] .ast-home .ast-home-hero-texture--light {
    display: block;
    opacity: 0.85;
}

.ast-home-hero-inner {
    position: relative;
    z-index: 1;
    width: min(var(--ah-wrap), 100%);
    margin: 0 auto;
    padding: 0 clamp(1rem, 4vw, 2rem);
    box-sizing: border-box;
}

.ast-home-top {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
    min-height: 78px;
    padding: 1.1rem 0 0;
}

.ast-home-logo {
    justify-self: start;
    display: flex;
    align-items: center;
}

.ast-home-logo-img {
    width: 132px;
    height: auto;
    max-height: 40px;
    display: block;
}

.ast-home-nav {
    justify-self: center;
    display: flex;
    align-items: center;
    gap: var(--ast-space-2);
}

.ast-home-nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0 var(--ast-space-3);
    border-radius: var(--ast-radius-md);
    font: 400 0.85rem/1 var(--ast-font);
    white-space: nowrap;
    color: var(--ast-text-3);
    text-decoration: none;
    transition: color 180ms var(--ast-ease), background 180ms var(--ast-ease);
}

.ast-home-nav-link:hover {
    color: var(--ast-text);
    background: var(--ast-raised);
}

.ast-home-nav-link.is-active {
    color: var(--ast-text);
    box-shadow: inset 0 -2px 0 var(--ast-accent);
}

.ast-home-nav-link:focus-visible,
.ast-home-header-link:focus-visible {
    outline: 2px solid var(--ast-accent);
    outline-offset: 2px;
}

.ast-home-nav .ast-home-nav-cabinet {
    display: none;
}

.ast-home-header-link {
    color: var(--ast-text-2);
    font-size: 0.85rem;
    white-space: nowrap;
    text-decoration: none;
}

.ast-home-header-link:hover {
    color: var(--ast-text);
}

.ast-home-tools {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

/* Одно действие в шапке. Заливка акцентом — главный призыв
   страницы; рядом только переключатель темы, который ничего
   не обещает. */
.ast-home-open {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 38px;
    padding: 0 1rem;
    border-radius: var(--ast-radius-pill);
    background: var(--ast-primary);
    color: var(--ast-primary-ink);
    font-size: 0.88rem;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: background 160ms ease;
}

.ast-home-open:hover {
    background: var(--ast-primary-hover);
}

.ast-home-open .ast-home-arrow {
    transition: transform 200ms ease;
}

.ast-home-open:hover .ast-home-arrow {
    transform: translate(2px, -2px);
}

/* ================================================================
   ПЕРВЫЙ ЭКРАН
   ================================================================ */

/* Первый экран: текст и объект стоят в одной оптической зоне.
   Отступ сверху отсчитывается от шапки, а не от края страницы,
   иначе заголовок уезжал под сгиб на невысоких экранах. */
.ast-home-hero-body {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
    padding: clamp(2.4rem, 5vw, 4.2rem) 0 clamp(2.8rem, 6vw, 5rem);
}

.ast-home-hero-copy {
    position: relative;
    z-index: 2;
    max-width: 36rem;
}

@keyframes ast-home-enter {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: no-preference) {
    .ast-home-hero-copy {
        animation: ast-home-enter 480ms var(--ast-ease) both;
    }

    .ast-home-hero-object {
        animation: ast-home-enter 560ms var(--ast-ease) 70ms both;
    }
}

.ast-home-eyebrow {
    margin: 0 0 var(--ast-space-3);
    color: var(--ast-text-3);
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.02em;
}

.ast-home-eyebrow--center {
    text-align: center;
}

/* Заголовок: короткие строки и один акцентный фрагмент. Смешивать
   белый и цвет целой строкой было плохо — строка акцента читалась
   как отдельный баннер, а не как часть фразы. */
.ast-home-title {
    margin: 0;
    font-size: clamp(2.35rem, 4.6vw, 3.6rem);
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -0.03em;
    color: var(--ast-text);
}

.ast-home-title-accent {
    color: var(--ast-accent-text);
}

.ast-home-lead {
    margin: var(--ast-space-5) 0 0;
    max-width: 31rem;
    color: var(--ast-text-2);
    font-size: 1.05rem;
    line-height: 1.6;
}

.ast-home-hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-top: var(--ast-space-6);
}

.ast-home .ast-home-hero-primary,
.ast-home .ast-home-hero-secondary {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0.65rem 1rem;
    border: 1px solid transparent;
    border-radius: var(--ast-radius-pill);
    text-decoration: none;
    font-size: 0.95rem;
}

.ast-home .ast-home-hero-primary {
    gap: 0.5rem;
    background: var(--ast-primary);
    color: var(--ast-primary-ink);
}

.ast-home .ast-home-hero-primary:hover {
    background: var(--ast-primary-hover);
}

.ast-home .ast-home-hero-secondary {
    border-color: var(--ast-line-strong);
    color: var(--ast-text);
}

.ast-home .ast-home-hero-secondary:hover {
    background: var(--ast-raised);
}

.ast-home-hero-actions a:focus-visible,
.ast-home-product-link:focus-visible {
    outline: 2px solid var(--ast-accent-text);
    outline-offset: 4px;
}

#heroSearchBox,
#ast-home-products {
    scroll-margin-top: 5rem;
}

/* Поиск: одно поле, одна кнопка. Ничего лишнего. */
.ast-home-search {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: var(--ast-space-8);
    padding: 6px 6px 6px 16px;
    border: 1px solid var(--ast-line-strong);
    border-radius: var(--ast-radius-lg);
    background: var(--ast-surface);
    box-shadow: 0 18px 44px -24px rgba(0, 0, 0, 0.9);
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.ast-home-search:focus-within {
    border-color: var(--ast-accent-line);
    box-shadow: 0 0 0 3px var(--ast-accent-soft), 0 18px 44px -24px rgba(0, 0, 0, 0.9);
}

.ast-home-search-ico {
    flex: none;
    color: var(--ast-text-3);
}

.ast-home-search-input {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 46px;
    border: 0;
    background: transparent;
    color: var(--ast-text);
    font: inherit;
    font-size: 1rem;
    outline: none;
}

.ast-home-search-input::placeholder {
    color: var(--ast-text-3);
}

.ast-home-search-btn {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 46px;
    padding: 0 1.15rem;
    border: 0;
    border-radius: var(--ast-radius-pill);
    background: var(--ast-primary);
    color: var(--ast-primary-ink);
    font: inherit;
    font-size: 0.92rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 160ms ease;
}

.ast-home-search-btn:hover {
    background: var(--ast-primary-hover);
}

/* Популярные запросы: заполняют нижнюю часть первого экрана и сразу
   дают рабочую точку входа вместо пустого поля. */
.ast-home-popular {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin-top: var(--ast-space-4);
}

.ast-home-popular-label {
    flex: none;
    color: var(--ast-text-3);
    font-size: 0.82rem;
}

.ast-home-popular-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.ast-home-popular-list a {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 0.75rem;
    border: 1px solid var(--ast-line);
    border-radius: var(--ast-radius-full);
    background: var(--ast-surface);
    color: var(--ast-text-2);
    font-size: 0.86rem;
    text-decoration: none;
    transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.ast-home-popular-list a:hover {
    color: var(--ast-text);
    border-color: var(--ast-accent-line);
    background: var(--ast-raised);
}

/* Настоящий объект: матовое голубо-сиреневое стекло. */
.ast-home-hero-object {
    position: relative;
    z-index: 1;
    display: block;
    text-align: center;
}

/* Под объектом — только тень на плоскости. Цветное свечение
   вокруг куба читалось как ореол и делало картинку плашкой. */
.ast-home-hero-glow {
    position: absolute;
    left: 50%;
    bottom: 2%;
    width: 62%;
    height: 46px;
    transform: translateX(-50%);
    border-radius: 50%;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.55), transparent 70%);
    filter: blur(14px);
    pointer-events: none;
}

.ast-home-hero-object img {
    position: relative;
    display: block;
    margin: 0 auto;
    width: min(100%, 460px);
    height: auto;
    filter: drop-shadow(0 34px 60px rgba(0, 0, 0, 0.55));
}

/* В светлой теме используется та же геометрия тёмным стеклом.
   Селекторы с двумя классами — иначе правило `.ast-home-hero-object img`
   перебивало `display:none` по специфичности, и в тёмной теме
   рендерились оба куба сразу: первый экран вытягивался вдвое,
   а над заголовком зияла пустота. */
.ast-home .ast-home-hero-object-img--light {
    display: none;
}

html[data-ast-theme="light"] .ast-home .ast-home-hero-object-img--dark {
    display: none;
}

html[data-ast-theme="light"] .ast-home .ast-home-hero-object-img--light {
    display: block;
    filter: drop-shadow(0 26px 48px rgba(40, 42, 90, 0.22));
}

/* Тонкая линия под первым экраном: вместо резкого обрыва. */
.ast-home-hero-foot {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--ast-line-strong) 22%, var(--ast-line-strong) 78%, transparent);
}

.ast-home-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ================================================================
   СЕКЦИИ
   ================================================================ */

.ast-home-section {
    position: relative;
    z-index: 1;
    padding: var(--ah-gap) 0;
}

.ast-home-section--last {
    padding-bottom: clamp(3rem, 6vw, 5rem);
}

.ast-home-wrap {
    width: min(var(--ah-wrap), 100%);
    margin: 0 auto;
    padding: 0 clamp(1rem, 4vw, 2rem);
    box-sizing: border-box;
}

.ast-home-section-head {
    margin-bottom: clamp(1.8rem, 3.4vw, 2.8rem);
}

/* Заголовок и подзаголовок в одну строку: слева заголовок, справа
   пояснение. Раньше всё стояло по центру в столбик, и три секции
   подряд читались как одинаковые плашки. */
.ast-home-section-head--split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
    gap: clamp(1rem, 4vw, 3rem);
    align-items: end;
}

.ast-home-section-head--split .ast-home-section-lead {
    margin: 0;
    max-width: 30rem;
    padding-bottom: 0.2rem;
}

.ast-home-section-head--center {
    text-align: center;
}

.ast-home-section-head--center .ast-home-section-lead {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.ast-home-title-sm {
    margin: 0;
    font-size: clamp(1.6rem, 2.9vw, 2.15rem);
    font-weight: 600;
    line-height: 1.16;
    letter-spacing: -0.022em;
    color: var(--ast-text);
}

.ast-home-section-lead {
    margin: var(--ast-space-3) 0 0;
    max-width: 34rem;
    color: var(--ast-text-2);
    font-size: 1rem;
    line-height: 1.6;
}

.ast-home-section-lead--center {
    margin-left: auto;
    margin-right: auto;
    max-width: 40rem;
    text-align: center;
}

/* ================================================================
   КАРТОЧКИ РАЗДЕЛОВ
   ================================================================ */

.ast-home-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.ast-home-showcase {
    display: grid;
    gap: clamp(1rem, 3vw, 2rem);
}

.ast-home-product {
    --product-accent: var(--ast-accent-text);
    --product-glow: #6366f1;
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    align-items: stretch;
    overflow: hidden;
    border: 1px solid var(--ast-line);
    border-radius: var(--ast-radius-panel);
    background: var(--ast-surface);
}

.ast-home-product--ai {
    --product-accent: #74dce7;
    --product-glow: #0ea5b7;
}

html[data-ast-theme="light"] .ast-home-product--ai {
    --product-accent: #076d78;
}

.ast-home-product-copy {
    align-self: center;
    padding: clamp(1.5rem, 4.5vw, 3.5rem);
}

.ast-home-product-name {
    margin: 0 0 0.6rem;
    color: var(--product-accent);
    font-weight: 600;
}

.ast-home-product h3 {
    margin: 0;
    color: var(--ast-text);
    font-size: clamp(1.5rem, 3.4vw, 2.6rem);
    line-height: 1.13;
    letter-spacing: -0.035em;
}

.ast-home-product h3 + p {
    max-width: 33ch;
    margin: 0.9rem 0 1.15rem;
    color: var(--ast-text-2);
    line-height: 1.6;
}

.ast-home-product-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 44px;
    color: var(--product-accent);
    font-weight: 600;
    text-decoration: none;
}

.ast-home-product-link:hover .ast-home-arrow {
    transform: translate(3px, -3px);
}

.ast-home-product-scene {
    position: relative;
    display: grid;
    place-items: center;
    isolation: isolate;
    min-height: clamp(17rem, 30vw, 22rem);
    overflow: hidden;
    background: radial-gradient(ellipse at 55% 45%, color-mix(in srgb, var(--product-glow) 24%, transparent), transparent 68%), var(--ast-bg-deep);
}

.ast-home-product-scene--vpn {
    border-left: 1px solid var(--ast-line);
}

.ast-home-product-scene .ast-home-obj {
    width: clamp(8rem, 18vw, 16rem);
    translate: 0 -16px;
}

.ast-home-product--ai .ast-home-product-scene {
    grid-area: 1 / 1;
    border-right: 1px solid var(--ast-line);
}

.ast-home-product--ai .ast-home-product-copy {
    grid-area: 1 / 2;
}

.ast-home-vpn-map {
    width: min(100% - 2rem, 31rem);
    padding-block: 2rem;
    text-align: center;
}

.ast-home-vpn-device {
    position: relative;
    display: inline-block;
    padding: 0.7rem 1rem;
    border: 1px solid var(--ast-line-strong);
    border-radius: var(--ast-radius-lg);
    background: var(--ast-raised);
    color: var(--ast-text);
    font-weight: 600;
}

.ast-home-vpn-device::after {
    position: absolute;
    top: 100%;
    left: 50%;
    display: block;
    width: 1px;
    height: 1.1rem;
    background: var(--ast-line-strong);
    content: "";
}

.ast-home-vpn-branches {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(0.5rem, 2vw, 1rem);
    margin-top: 2.2rem;
}

.ast-home-vpn-branches::before {
    position: absolute;
    inset: -1.1rem 25% auto;
    height: 1.1rem;
    border: 1px solid var(--ast-line-strong);
    border-bottom: 0;
    border-radius: 8px 8px 0 0;
    content: "";
}

.ast-home-vpn-lane {
    position: relative;
    display: grid;
    align-content: start;
    gap: 0.35rem;
    min-width: 0;
    padding: 0.9rem 0.45rem;
    border: 1px solid var(--ast-line-strong);
    border-radius: var(--ast-radius-lg);
    background: var(--ast-surface);
    color: var(--ast-text-2);
    font-size: clamp(0.72rem, 1.2vw, 0.88rem);
}

.ast-home-vpn-lane--secure {
    border-color: var(--ast-accent-line);
}

.ast-home-vpn-lane::before {
    position: absolute;
    top: -1.05rem;
    left: calc(50% - 3px);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--ast-text-3);
    content: "";
}

.ast-home-vpn-lane--secure::before {
    background: var(--product-accent);
    box-shadow: 0 0 8px var(--product-glow);
}

.ast-home-vpn-lane-title {
    color: var(--ast-text);
    font-weight: 600;
}

.ast-home-vpn-tracks {
    display: grid;
    gap: 0.85rem;
    margin-top: 1.65rem;
}

.ast-home-vpn-track {
    position: relative;
    overflow: hidden;
    height: 1px;
    background: var(--ast-line-strong);
}

.ast-home-vpn-track::after {
    position: absolute;
    inset: 0 auto 0 0;
    width: 26%;
    background: linear-gradient(90deg, transparent, var(--ast-text-3), transparent);
    content: "";
    transform: translateX(125%);
}

.ast-home-vpn-track--secure::after {
    background: linear-gradient(90deg, transparent, var(--product-accent), transparent);
}

.ast-home-ai-ideas {
    display: grid;
    place-items: center;
    width: min(calc(100% - 2rem), 31rem);
    min-height: 15rem;
    margin: 1rem;
}

.ast-home-ai-ideas .ast-home-obj {
    grid-area: 1 / 1;
    width: clamp(7.5rem, 21vw, 12rem);
    translate: 0 0;
}

.ast-home-ai-prompts {
    z-index: 2;
    display: grid;
    grid-area: 1 / 1;
    align-content: space-between;
    justify-items: start;
    width: 100%;
    min-height: 15rem;
    gap: 2.7rem;
}

.ast-home-ai-prompts p {
    width: fit-content;
    max-width: min(78%, 18rem);
    margin: 0;
    padding: 0.55rem 0.9rem;
    border: 1px solid var(--ast-line-strong);
    border-radius: var(--ast-radius-pill);
    background: var(--ast-surface);
    color: var(--ast-text);
    font-size: clamp(0.76rem, 1.35vw, 0.92rem);
    line-height: 1.4;
    box-shadow: var(--ast-shadow-pop);
}

.ast-home-ai-prompts p:nth-child(2) {
    justify-self: end;
}

.ast-home-ai-prompts p:last-child {
    margin-left: 11%;
}

@media (max-width: 370px) {
    .ast-home-ai-ideas,
    .ast-home-ai-prompts {
        min-height: 13rem;
    }

    .ast-home-ai-prompts {
        gap: 1.7rem;
    }

    .ast-home-ai-prompts p:last-child {
        margin-left: 0;
    }
}

@media (max-width: 680px) {
    .ast-home-product {
        grid-template-columns: minmax(0, 1fr);
    }

    .ast-home-product--ai :is(.ast-home-product-scene, .ast-home-product-copy) {
        grid-area: auto;
    }

    .ast-home-product :is(.ast-home-product-scene--vpn, .ast-home-product-scene--ai) {
        border: 0;
        border-top: 1px solid var(--ast-line);
    }
}

@keyframes ast-home-drift {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 -9px; }
}

@keyframes ast-home-track-flow {
    0% { opacity: 0; transform: translateX(-100%); }
    20%, 80% { opacity: 1; }
    100% { opacity: 0; transform: translateX(390%); }
}

@keyframes ast-home-signal {
    0%, 100% { opacity: 0.25; transform: translateY(0); }
    15% { opacity: 1; }
    65% { opacity: 1; transform: translateY(14px); }
    85% { opacity: 0; transform: translateY(14px); }
}

@media (prefers-reduced-motion: no-preference) {
    .ast-home-hero-object img,
    .ast-home-object .ast-home-obj,
    .ast-home-product-scene .ast-home-obj,
    .ast-home-banner-art img {
        animation: ast-home-drift 6s ease-in-out infinite;
    }

    .ast-home-product--ai .ast-home-obj,
    .ast-home-banner-art img {
        animation-delay: -2s;
    }

    .ast-home-vpn-lane::before {
        animation: ast-home-signal 3.8s ease-in-out infinite;
    }

    .ast-home-vpn-lane:not(.ast-home-vpn-lane--secure)::before {
        animation-delay: -1.8s;
    }

    .ast-home-vpn-track::after {
        animation: ast-home-track-flow 4.6s ease-in-out infinite;
    }

    .ast-home-vpn-track + .ast-home-vpn-track::after {
        animation-delay: -2s;
    }

    html.reveal-enabled .ast-home-section.is-visible .ast-home-ai-prompts p {
        animation: ast-home-enter 500ms var(--ast-ease) both;
    }

    html.reveal-enabled .ast-home-section.is-visible .ast-home-ai-prompts p:nth-child(2) {
        animation-delay: 90ms;
    }

    html.reveal-enabled .ast-home-section.is-visible .ast-home-ai-prompts p:nth-child(3) {
        animation-delay: 180ms;
    }

    html.reveal-enabled .ast-home-section.is-visible :is(.ast-home-section-head, .ast-home-split-copy, .ast-home-product, .ast-home-banner) {
        animation: ast-home-enter 540ms var(--ast-ease) both;
    }

    html.reveal-enabled .ast-home-section.is-visible .ast-home-product + .ast-home-product {
        animation-delay: 90ms;
    }
}

/* Карточка раздела: объект сверху, текст снизу. Раньше сверху стояло
   фото-размытие, и три карточки выглядели как обложки журнала. */
.ast-home-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    text-align: left;
    text-decoration: none;
    color: inherit;
    font: inherit;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--ast-line);
    border-radius: var(--ast-radius-card);
    background: var(--ast-surface);
    transition: border-color 220ms ease, transform 220ms ease, box-shadow 220ms ease;
}

.ast-home-card:hover {
    transform: translateY(-5px);
    border-color: var(--ast-accent-line);
    box-shadow: var(--ast-shadow-pop);
}

/* Сцена объекта: своя подложка с локальным светом, а не общая
   фактура на всех карточках. Высота сцены — по габариту объекта:
   раньше объект 245px попадал в сцену 208px и обрезался сверху и
   снизу, грани стекла читались как обрывок.

   Подложка нейтральная: цветные радиальные пятна за объектом
   превращали три карточки в ряд разноцветных пятен. Различия
   задаёт сам объект, а не заливка сцены. */
.ast-home-card-art {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 250px;
    overflow: hidden;
    border-bottom: 1px solid var(--ast-line);
    background: linear-gradient(180deg, var(--ast-raised) 0%, var(--ast-surface) 100%);
}

/* Сетка на сцене: даёт масштаб и ощущение приборной панели. */
.ast-home-card-art::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: radial-gradient(120% 90% at 50% 50%, #000 30%, transparent 78%);
    -webkit-mask-image: radial-gradient(120% 90% at 50% 50%, #000 30%, transparent 78%);
    opacity: 0.7;
}

.ast-home-obj {
    position: relative;
    z-index: 1;
    display: block;
    width: 72%;
    max-width: 268px;
}

.ast-home-obj svg {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 26px 44px rgba(20, 20, 48, 0.55));
}

/* Объект слегка парит и поднимается по наведению. */
.ast-home-obj {
    transition: transform 420ms var(--ast-ease);
}

.ast-home-card:hover .ast-home-obj {
    transform: translateY(-6px);
}

.ast-home-card-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    padding: 1.35rem 1.4rem 1.45rem;
}

/* Кикер — моно-индекс раздела. Прописными с разрядкой он
   читался как служебная метка, а не как часть карточки. */
.ast-home-card-kicker {
    font-family: var(--ast-font-mono);
    font-size: 0.78rem;
    color: var(--ast-text-3);
}

.ast-home-card-title {
    margin-top: 0.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.015em;
    color: var(--ast-text);
}

.ast-home-card-desc {
    margin-top: 0.45rem;
    color: var(--ast-text-2);
    font-size: 0.95rem;
    line-height: 1.55;
}

.ast-home-card-action {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: auto;
    padding-top: 1.2rem;
    color: var(--ast-accent-text);
    font-size: 0.92rem;
    font-weight: 500;
}

.ast-home-arrow {
    flex: none;
    transition: transform 200ms ease;
}

.ast-home-card:hover .ast-home-arrow,
.ast-home-step:hover .ast-home-arrow,
.ast-home-quick-card:hover .ast-home-arrow {
    transform: translate(2px, -2px);
}

/* ================================================================
   ШАГИ
   ================================================================ */

.ast-home-split {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}

.ast-home-split-copy {
    position: relative;
}

/* Объект блока шагов: тот же векторный материал, что на карточках,
   но крупнее и с собственным светом. */
.ast-home-object {
    width: min(84%, 330px);
    margin-top: clamp(1.6rem, 3.4vw, 2.6rem);
}

.ast-home-object .ast-home-obj {
    width: 100%;
    max-width: none;
}

.ast-home-object .ast-home-obj svg {
    filter: drop-shadow(0 26px 52px rgba(0, 0, 0, 0.5));
}

.ast-home-steps-list {
    list-style: none;
    margin: 0;
    padding: 0;
    border: 1px solid var(--ast-line);
    border-radius: var(--ast-radius-card);
    background: var(--ast-surface);
    overflow: hidden;
}

.ast-home-steps-list > li + li {
    border-top: 1px solid var(--ast-line);
}

.ast-home-step {
    display: grid;
    grid-template-columns: 2.4rem 1fr auto;
    gap: 1rem;
    align-items: center;
    padding: 1.2rem 1.4rem;
    color: var(--ast-text);
    text-decoration: none;
    transition: background 180ms ease;
}

.ast-home-step:hover {
    background: var(--ast-raised);
}

.ast-home-step-num {
    font-family: var(--ast-font-mono);
    font-size: 0.85rem;
    color: var(--ast-text-3);
}

.ast-home-step-body {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.ast-home-step-label {
    font-size: 1rem;
    font-weight: 500;
}

.ast-home-step-desc {
    margin-top: 0.15rem;
    font-size: 0.88rem;
    line-height: 1.45;
    color: var(--ast-text-2);
}

.ast-home-step .ast-home-arrow {
    color: var(--ast-text-3);
}

/* ================================================================
   ПОДХОД
   ================================================================ */

/* Четыре довода — не четыре коробки. Колонки разделяет волосяная
   линия: ряд читается как полоса в журнале, а не как плитка.
   Пиктограмм здесь нет намеренно: за ними шёл ряд одинаковых
   плашек в акцентной заливке, и страница читалась как набор
   одинаковых карточек. Нумерация моно — тот же приём, что и
   в шагах и в списке тем. */
.ast-home-why {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 1px solid var(--ast-line);
}

.ast-home-why-item {
    position: relative;
    padding: 1.6rem 1.4rem 0.4rem 0;
}

.ast-home-why-item + .ast-home-why-item {
    padding-left: 1.4rem;
    border-left: 1px solid var(--ast-line);
}

.ast-home-why-num {
    display: block;
    margin-bottom: 0.9rem;
    font-family: var(--ast-font-mono);
    font-size: 0.8rem;
    color: var(--ast-text-3);
}

.ast-home-why-title {
    margin: 0 0 0.35rem;
    font-size: 1.02rem;
    font-weight: 600;
    color: var(--ast-text);
}

.ast-home-why-desc {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.5;
    color: var(--ast-text-2);
}

/* ================================================================
   БЫСТРЫЕ ПЕРЕХОДЫ
   ================================================================ */

/* Переходы — единая панель с перегородками, а не четыре отдельные
   карточки: после блока разделов ещё одна сетка коробок читалась
   как повтор одного и того же приёма. Плюс одна строка текста
   и стрелка: иконка-плашка в каждой ячейке превращала навигацию
   в набор витрин. */
.ast-home-quick {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border: 1px solid var(--ast-line);
    border-radius: var(--ast-radius-card);
    background: var(--ast-surface);
    overflow: hidden;
}

.ast-home-quick-card {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.95rem;
    align-items: center;
    padding: 1.25rem 1.4rem;
    text-decoration: none;
    color: inherit;
    transition: background 200ms ease;
}

/* Перегородка между ячейками: горизонтальная в двух колонках и
   вертикальная посередине. */
.ast-home-quick-card:nth-child(odd) {
    border-right: 1px solid var(--ast-line);
}

.ast-home-quick-card:nth-child(n + 3) {
    border-top: 1px solid var(--ast-line);
}

.ast-home-quick-card:hover {
    background: var(--ast-raised);
}

.ast-home-quick-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.ast-home-quick-title {
    font-size: 1rem;
    font-weight: 500;
    color: var(--ast-text);
}

.ast-home-quick-desc {
    margin-top: 0.15rem;
    font-size: 0.9rem;
    line-height: 1.4;
    color: var(--ast-text-2);
}

.ast-home-quick-card .ast-home-arrow {
    color: var(--ast-text-3);
}

/* ================================================================
   ФИНАЛЬНЫЙ БЛОК
   ================================================================ */

/* Финальный блок: текст слева, справа — картинка в рамке и
   список тем под ней. Раньше правая половина была пустой —
   колонны фактуры её не заполняли, а когда текст туда переехал,
   светлые колонны проходили прямо под заголовками. */
.ast-home-banner {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(1.5rem, 4vw, 3.5rem);
    align-items: center;
    padding: clamp(1.8rem, 4vw, 3.2rem);
    border: 1px solid var(--ast-line);
    border-radius: var(--ast-radius-card);
    background: var(--ast-surface);
}

.ast-home-banner-side {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    min-width: 0;
}

/* Колонны как самостоятельная рамка: они дают материал и глубину,
   но больше не лежат под текстом. */
.ast-home-banner-art {
    position: relative;
    z-index: 0;
    overflow: hidden;
    height: 132px;
    border: 1px solid var(--ast-line);
    border-radius: var(--ast-radius-lg);
    background: var(--ast-bg-deep);
}

.ast-home-banner-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 78% 50%;
    opacity: 0.6;
}

/* Подложки под текстом больше нет: весь текст баннера стоит на
   сплошной поверхности, а колонны убраны в отдельную рамку. */
.ast-home-banner::after {
    content: none;
}

.ast-home-banner-copy {
    position: relative;
    z-index: 2;
    max-width: 34rem;
}

.ast-home-banner-title {
    margin: 0;
    font-size: clamp(1.55rem, 3vw, 2.1rem);
    font-weight: 600;
    line-height: 1.16;
    letter-spacing: -0.022em;
    color: var(--ast-text);
}

.ast-home-banner-desc {
    margin: 0.8rem 0 1.5rem;
    color: var(--ast-text-2);
    font-size: 1rem;
    line-height: 1.6;
}

.ast-home-banner-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.ast-home-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 44px;
    padding: 0 1.3rem;
    border: 1px solid transparent;
    border-radius: var(--ast-radius-md);
    background: var(--ast-primary);
    color: var(--ast-primary-ink);
    font: inherit;
    font-size: 0.94rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.ast-home-btn:hover {
    background: var(--ast-primary-hover);
}

/* Вторичное действие — стеклянное: заливка акцентом ушла бы
   первому, а здесь нужен второй уровень. */
.ast-home-btn--ghost {
    background: var(--ast-raised);
    border-color: var(--ast-line-strong);
    color: var(--ast-text);
}

.ast-home-btn--ghost:hover {
    background: var(--ast-raised-strong);
    border-color: var(--ast-accent-line);
}

/* Список тем: строки с номерами вместо ещё одной сетки коробок. */
.ast-home-banner-list {
    position: relative;
    z-index: 2;
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--ast-line);
}

.ast-home-banner-list li {
    display: grid;
    grid-template-columns: 2.2rem 1fr;
    gap: 0.9rem;
    align-items: start;
    padding: 0.95rem 0;
    border-bottom: 1px solid var(--ast-line);
}

.ast-home-banner-list-num {
    font-family: var(--ast-font-mono);
    font-size: 0.8rem;
    color: var(--ast-text-3);
}

.ast-home-banner-list-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.ast-home-banner-list-title {
    font-size: 0.98rem;
    font-weight: 500;
    color: var(--ast-text);
}

.ast-home-banner-list-desc {
    margin-top: 0.15rem;
    font-size: 0.87rem;
    line-height: 1.45;
    color: var(--ast-text-2);
}

/* ================================================================
   ПОИСК
   ================================================================ */

.ast-search {
    padding: clamp(2.4rem, 6vw, 4.5rem) 0 clamp(3rem, 7vw, 5rem);
}

.ast-search-form {
    max-width: 620px;
    margin: 0 0 clamp(1.6rem, 4vw, 2.6rem);
}

.ast-search-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.ast-search-item {
    padding: 1.15rem 1.3rem;
    border: 1px solid var(--ast-line);
    border-radius: var(--ast-radius-lg);
    background: var(--ast-surface);
}

.ast-search-item-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.ast-search-item-title a {
    color: var(--ast-text);
    text-decoration: none;
}

.ast-search-item-title a:hover {
    color: var(--ast-accent-text);
}

.ast-search-item-excerpt {
    margin: 0.4rem 0 0;
    color: var(--ast-text-2);
    font-size: 0.94rem;
    line-height: 1.55;
}

.ast-search-empty {
    margin: 0;
    padding: 1.5rem 1.3rem;
    border: 1px solid var(--ast-line);
    border-radius: var(--ast-radius-lg);
    background: var(--ast-surface);
    color: var(--ast-text-2);
}

/* ================================================================
   СВЕТЛАЯ ТЕМА
   ================================================================ */

/* Тёмная фактура на бумаге выцветала и ложилась пятном: теперь для
   светлой темы есть отдельный файл. */
html[data-ast-theme="light"] .ast-home-hero-texture {
    opacity: 0.85;
}

html[data-ast-theme="light"] .ast-home-hero-art::after {
    background:
        linear-gradient(90deg, var(--ast-bg) 0%, var(--ast-bg) 22%, rgba(0, 0, 0, 0) 62%),
        linear-gradient(180deg, var(--ast-bg) 0%, rgba(0, 0, 0, 0) 22%, rgba(0, 0, 0, 0) 72%, var(--ast-bg) 98%);
}

/* На бумаге куб почти сливается: рендер светлый, а подложка тоже
   светлая. Усиливаем тени и добавляем холодный оттенок — стекло
   остаётся стеклом, но теперь читается как тело, а не как пятно. */
html[data-ast-theme="light"] .ast-home-object .ast-home-obj svg {
    filter: drop-shadow(0 22px 38px rgba(20, 20, 60, 0.20));
}

html[data-ast-theme="light"] .ast-home-hero-glow {
    opacity: 0.32;
}

html[data-ast-theme="light"] .ast-home-card-art {
    background: linear-gradient(180deg, #eceef6 0%, var(--ast-surface) 100%);
}

html[data-ast-theme="light"] .ast-home-card-art::before {
    background-image:
        linear-gradient(rgba(20, 20, 24, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(20, 20, 24, 0.05) 1px, transparent 1px);
}

html[data-ast-theme="light"] .ast-home-obj svg {
    filter: drop-shadow(0 22px 38px rgba(20, 20, 60, 0.20));
}

html[data-ast-theme="light"] .ast-home-banner-art img {
    filter: invert(1) hue-rotate(180deg) saturate(0.8) brightness(0.82);
    opacity: 0.55;
}

html[data-ast-theme="light"] .ast-home::before {
    background: linear-gradient(180deg, var(--ast-raised) 0%, rgba(0, 0, 0, 0) 100%);
    opacity: 0.7;
}

/* ================================================================
   ПОЯВЛЕНИЕ ПРИ ПРОКРУТКЕ
   ================================================================ */

/* Появление задаёт общий скрипт сайта: он вешает класс
   .reveal-enabled и ставит .is-visible, когда секция дошла до
   экрана. Здесь — только каскад по дочерним элементам, чтобы
   карточки появлялись не одновременно. */

html.reveal-enabled .ast-home-cards .ast-home-card,
html.reveal-enabled .ast-home-why-item,
html.reveal-enabled .ast-home-quick-card,
html.reveal-enabled .ast-home-step,
html.reveal-enabled .ast-home-banner-list li {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 560ms var(--ast-ease), transform 560ms var(--ast-ease);
}

html.reveal-enabled .ast-home-section.is-visible .ast-home-cards .ast-home-card,
html.reveal-enabled .ast-home-section.is-visible .ast-home-why-item,
html.reveal-enabled .ast-home-section.is-visible .ast-home-quick-card,
html.reveal-enabled .ast-home-section.is-visible .ast-home-step,
html.reveal-enabled .ast-home-section.is-visible .ast-home-banner-list li {
    opacity: 1;
    transform: none;
}

html.reveal-enabled .ast-home-section.is-visible .ast-home-cards .ast-home-card:nth-child(2) { transition-delay: 80ms; }
html.reveal-enabled .ast-home-section.is-visible .ast-home-cards .ast-home-card:nth-child(3) { transition-delay: 160ms; }

html.reveal-enabled .ast-home-section.is-visible .ast-home-why-item:nth-child(2) { transition-delay: 70ms; }
html.reveal-enabled .ast-home-section.is-visible .ast-home-why-item:nth-child(3) { transition-delay: 140ms; }
html.reveal-enabled .ast-home-section.is-visible .ast-home-why-item:nth-child(4) { transition-delay: 210ms; }

html.reveal-enabled .ast-home-section.is-visible .ast-home-quick-card:nth-child(2) { transition-delay: 70ms; }
html.reveal-enabled .ast-home-section.is-visible .ast-home-quick-card:nth-child(3) { transition-delay: 140ms; }
html.reveal-enabled .ast-home-section.is-visible .ast-home-quick-card:nth-child(4) { transition-delay: 210ms; }

html.reveal-enabled .ast-home-section.is-visible .ast-home-step:nth-child(2) { transition-delay: 70ms; }
html.reveal-enabled .ast-home-section.is-visible .ast-home-step:nth-child(3) { transition-delay: 140ms; }
html.reveal-enabled .ast-home-section.is-visible .ast-home-step:nth-child(4) { transition-delay: 210ms; }

html.reveal-enabled .ast-home-section.is-visible .ast-home-banner-list li:nth-child(2) { transition-delay: 90ms; }
html.reveal-enabled .ast-home-section.is-visible .ast-home-banner-list li:nth-child(3) { transition-delay: 180ms; }

/* ================================================================
   АДАПТИВ
   ================================================================ */

@media (max-width: 1024px) {
    .ast-home-why {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    /* В две колонки вертикальная перегородка нужна только у левой
       колонки: у правой она была бы лишней линией у края. */
    .ast-home-why-item:nth-child(odd) {
        border-left: 0;
        padding-left: 0;
    }

    .ast-home-why-item:nth-child(even) {
        padding-left: 1.4rem;
    }

    .ast-home-why-item:nth-child(n + 3) {
        border-top: 1px solid var(--ast-line);
        padding-top: 1.6rem;
    }
}

@media (max-width: 900px) {
    .ast-home-hero-body {
        grid-template-columns: minmax(0, 1fr);
        gap: 2.5rem;
    }

    .ast-home-hero-object img {
        width: min(58%, 320px);
    }
    .ast-home-section-head--split {
        grid-template-columns: minmax(0, 1fr);
        align-items: start;
    }

    .ast-home-object {
        width: min(76%, 290px);
    }

    .ast-home-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    /* Третья карточка переносится в свой ряд — иначе в сетке из
       двух колонок остаётся пустая ячейка. */
    .ast-home-cards .ast-home-card:nth-child(3) {
        grid-column: 1 / -1;
    }

    .ast-home-split {
        grid-template-columns: minmax(0, 1fr);
    }

    .ast-home-quick {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 760px) {
    .ast-home-top {
        grid-template-columns: 1fr auto;
        row-gap: 0.9rem;
        column-gap: 0.6rem;
    }

    /* Логотип и действие в шапке должны уместиться в 358px: иначе
       авто-колонка выдавливала сетку за край экрана. */
    .ast-home-logo-img {
        width: 104px;
    }

    .ast-home-open {
        min-height: 34px;
        padding: 0 0.7rem;
        font-size: 0.8rem;
    }

    .ast-home-open .ast-home-arrow {
        display: none;
    }

    .ast-home-nav {
        grid-column: 1 / -1;
        grid-row: 2;
        justify-self: center;
        flex-wrap: wrap;
        justify-content: center;
    }

    .ast-home-nav .ast-home-nav-cabinet {
        display: inline-flex;
    }

    .ast-home-header-link {
        display: none;
    }

    .ast-home-nav-link {
        min-height: 44px;
        padding: 0 clamp(0.4rem, 1.6vw, 0.75rem);
        font-size: 0.82rem;
    }

    .ast-home-cards,
    .ast-home-why {
        grid-template-columns: minmax(0, 1fr);
    }

    .ast-home-cards .ast-home-card:nth-child(3) {
        grid-column: auto;
    }

    /* Одна колонка — перегородок нет, только горизонтальные линии. */
    .ast-home-why-item,
    .ast-home-why-item + .ast-home-why-item,
    .ast-home-why-item:nth-child(even) {
        padding: 1.3rem 0;
        border-left: 0;
    }

    .ast-home-why-item:nth-child(n + 2) {
        border-top: 1px solid var(--ast-line);
    }

    .ast-home-quick {
        grid-template-columns: minmax(0, 1fr);
    }

    .ast-home-quick-card:nth-child(odd) {
        border-right: 0;
    }

    .ast-home-quick-card:nth-child(n + 2) {
        border-top: 1px solid var(--ast-line);
    }

    .ast-home-popular {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .ast-home-card-art {
        height: 210px;
    }

    .ast-home-banner {
        grid-template-columns: minmax(0, 1fr);
    }

    .ast-home-banner-art {
        height: 108px;
    }

    .ast-home-banner-art img {
        object-position: 92% 50%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ast-home-card,
    .ast-home-quick-card,
    .ast-home-why-item,
    .ast-home-obj,
    .ast-home-arrow {
        transition: none;
    }

    .ast-home-card:hover,
    .ast-home-quick-card:hover,
    .ast-home-why-item:hover,
    .ast-home-card:hover .ast-home-obj {
        transform: none;
    }
}
