/* Стили новой главной. Склеены в один файл, чтобы не блокировать отрисовку несколькими запросами.
   Вёрстка повторяет лендинг Footages, палитра — своя: светлый фон и синий цвет иконки. */

/* ===== hero ===== */

.hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: 48px;
    padding-bottom: 24px;
}

.hero .hero-icon {
    width: 96px;
    height: 96px;
}

.hero .hero-name {
    text-align: center;
    font-size: 27px;
    font-weight: 600;
    margin: 16px 0 0;
}

.hero .super-large {
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 60px;
    font-weight: 700;
    line-height: 1.15;
    text-align: center;
    max-width: 90%;
    background: linear-gradient(100deg, #5AC8FA 0%, #2F8CF5 50%, #007AFF 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #007AFF;
}

/* Заголовок из нескольких фраз рвётся только между ними: фраза — неразрывный блок, и строки
   центрируются по точке, без явного <br> */
.hero .super-large .phrase {
    display: inline-block;
}

.hero .details {
    font-size: 24px;
    font-weight: 400;
    width: 700px;
    max-width: 80%;
    text-align: center;
    margin: 0 auto;
    color: #6E6E73;
}

.hero .hero-cta {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.hero .hero-cta-caption {
    font-size: 13px;
    color: #86868B;
    margin: 0;
}

.appstore-badge {
    display: inline-block;
}

.appstore-badge img {
    height: 54px;
    width: auto;
    display: block;
}

/* ===== hero-film ===== */

.hero-shot {
    display: flex;
    justify-content: center;
    padding: 24px 0 16px;
}

/* Сцена из ключевого визуала App Store: команды на орбите вокруг ролика. */
.hero-stage {
    position: relative;
    width: min(1100px, calc(100% - 40px));
    box-sizing: border-box;
    padding: 56px 0;
    display: flex;
    justify-content: center;
    border-radius: 44px;
    background: #3E4BF0 url("../../../shared/images/art/keyart.webp") center / cover no-repeat;
    overflow: hidden;
}

/* Ролик вертикальный, поэтому высота ограничена окном: целиком виден и на ноутбуке. */
.hero-film {
    position: relative;
    height: min(720px, 72vh);
    aspect-ratio: 720 / 1560;
    max-width: 88vw;
    /* Цвет фона ролика: пока видео грузится, шва с карточкой нет. */
    background-color: #ECECEE;
    border-radius: 40px;
    overflow: hidden;
    box-shadow: 0 40px 80px rgba(10, 10, 80, 0.45), 0 0 0 6px rgba(255, 255, 255, 0.18);
}

.hero-film::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px solid rgba(0, 0, 0, 0.06);
    pointer-events: none;
}

.hero-film video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-film-sound {
    position: absolute;
    right: 16px;
    bottom: 16px;
    z-index: 1;
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.72);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    color: #1D1D1F;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: background-color 0.3s ease;
}

.hero-film-sound:hover {
    background-color: rgba(255, 255, 255, 0.92);
}

.hero-film-sound svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.hero-film-sound .icon-sound-on,
.hero-film.is-unmuted .hero-film-sound .icon-sound-off {
    display: none;
}

.hero-film.is-unmuted .hero-film-sound .icon-sound-on {
    display: block;
}

/* Кнопка запуска: показывается, когда автоплей выключен (экономия трафика, медленная сеть,
   prefers-reduced-motion) или заблокирован браузером. */
.hero-film-play {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 1;
    width: 72px;
    height: 72px;
    margin: -36px 0 0 -36px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background-color: #007AFF;
    color: #FFF;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 32px rgba(0, 122, 255, 0.35);
}

.hero-film.is-idle .hero-film-play {
    display: flex;
}

.hero-film-play svg {
    width: 26px;
    height: 26px;
    margin-left: 4px;
    fill: currentColor;
}

.hero-film-sound:focus-visible,
.hero-film-play:focus-visible {
    outline: 2px solid #007AFF;
    outline-offset: 3px;
}

@media (max-width: 768px) {
    .hero {
        padding-top: 32px;
    }

    .hero .super-large {
        font-size: 32px;
    }

    .hero .details {
        font-size: 17px;
        max-width: 90%;
    }

    .hero-stage {
        width: calc(100% - 32px);
        padding: 32px 0;
        border-radius: 32px;
        background-image: url("../../../shared/images/art/keyart-900.webp");
    }

    .hero-film {
        height: min(600px, 68vh);
        border-radius: 30px;
    }
}

/* ===== highlights ===== */

.highlights {
    padding: 40px 0 20px;
}

.highlights-head {
    max-width: 1024px;
    margin: 0 auto;
    padding: 0 34px;
}

.section-title {
    font-size: 28px;
    font-weight: bold;
    color: #1D1D1F;
    text-align: left;
    margin: 0;
}

.highlights-track,
.reviews-track {
    --card-w: 324px;
    /* Левый край первой карточки совпадает с заголовком секции. */
    --pad: max(34px, calc((100% - 1024px) / 2));
    position: relative;
    display: flex;
    gap: 20px;
    margin-top: 24px;
    padding: 0 var(--pad) 8px;
    scroll-padding-left: var(--pad);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.highlights-track::-webkit-scrollbar,
.reviews-track::-webkit-scrollbar {
    display: none;
}

.highlight {
    flex: 0 0 var(--card-w);
    scroll-snap-align: start;
    margin: 0;
    opacity: 0.35;
    transition: opacity 0.4s ease;
    cursor: pointer;
}

.highlight.is-active {
    opacity: 1;
    cursor: default;
}

/* Пропорции — как у скриншотов без подписи сверху: телефон целиком, без обрезки. */
.highlight-media {
    position: relative;
    aspect-ratio: 720 / 1386;
    background-color: #F1F1F1;
    border-radius: 28px;
    overflow: hidden;
}

.highlight-media::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px solid rgba(0, 0, 0, 0.06);
    pointer-events: none;
}

.highlight-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Десктоп: высота у всех карточек одна, ширина — по пропорции кадра (--ar): iPhone узкий,
   iPad почти квадратный, Mac и «На всех устройствах» широкие. На телефоне карточки одной ширины,
   и <picture> отдаёт им вертикальные кадры. */
@media (min-width: 769px) {
    .highlights-track {
        --card-h: 540px;
    }

    .highlight {
        flex-basis: calc(var(--card-h) * var(--ar, 0.5195));
    }

    .highlight-media {
        aspect-ratio: auto;
        height: var(--card-h);
    }

    .highlight figcaption {
        max-width: 520px;
    }
}

.highlight-name {
    font-size: 19px;
    font-weight: 600;
    line-height: 1.3;
    color: #1D1D1F;
    margin: 18px 4px 6px;
}

.highlight-text {
    font-size: 15px;
    line-height: 1.45;
    color: #6E6E73;
    margin: 0 4px;
}

.highlights-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    margin-top: 24px;
}

.highlights-dots {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 44px;
    padding: 0 18px;
    border-radius: 9999px;
    background-color: #E8E8ED;
}

.highlights-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: none;
    border-radius: 9999px;
    background-color: #AEAEB2;
    cursor: pointer;
    transition: width 0.3s ease, background-color 0.3s ease;
}

.highlights-dot.is-active {
    width: 28px;
    background-color: #1D1D1F;
}

.highlights-button {
    width: 44px;
    height: 44px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background-color: #E8E8ED;
    color: #1D1D1F;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, opacity 0.3s ease;
}

.highlights-button:hover {
    background-color: #DCDCE1;
}

.highlights-button:disabled {
    opacity: 0.3;
    cursor: default;
}

.highlights-button svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.highlights-toggle .icon-play,
.highlights.is-paused .highlights-toggle .icon-pause {
    display: none;
}

.highlights.is-paused .highlights-toggle .icon-play {
    display: block;
}

.highlights-dot:focus-visible,
.highlights-button:focus-visible,
.highlight:focus-visible .highlight-media {
    outline: 2px solid #007AFF;
    outline-offset: 3px;
}

@media (max-width: 768px) {
    .highlights-track,
    .reviews-track {
        --card-w: min(76vw, 324px);
        --pad: 24px;
        gap: 14px;
    }

    .highlights-head {
        padding: 0 24px;
    }

    .section-title {
        font-size: 24px;
    }

    .highlight-media {
        border-radius: 24px;
    }

    /* На телефоне листают свайпом, стрелки не помещаются рядом с точками. */
    .highlights-button[data-highlights-prev],
    .highlights-button[data-highlights-next] {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .highlights-track,
    .reviews-track {
        scroll-behavior: auto;
    }

    .highlight {
        transition: none;
    }
}

/* ===== bento ===== */

.bento-section {
    max-width: 1024px;
    margin: 0 auto;
    padding: 40px 20px 20px;
}

.bento-section .section-title {
    margin: 0 0 24px;
    padding-left: 14px;
}

.bento {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

.bento-card {
    grid-column: span 2;
    min-width: 0;
    display: flex;
    flex-direction: column;
    background-color: #FFF;
    border-radius: 28px;
    overflow: hidden;
}

.bento-large {
    grid-column: span 3;
}

.bento-art {
    position: relative;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 24px 0;
    box-sizing: border-box;
    font-size: 13px;
    color: #1D1D1F;
}

.bento-large .bento-art {
    height: 260px;
}

.bento-body {
    padding: 20px 24px 26px;
}

.bento-name {
    font-size: 19px;
    font-weight: 600;
    line-height: 1.3;
    color: #1D1D1F;
    margin: 0 0 6px;
}

.bento-text {
    font-size: 15px;
    line-height: 1.45;
    color: #6E6E73;
    margin: 0;
}

.bento-text a {
    color: #007AFF;
    text-decoration: none;
}

.bento-text a:hover {
    text-decoration: underline;
}

/* Общие детали рендеров */

.art-panel {
    width: 100%;
    max-width: 300px;
    background-color: #FFF;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 16px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
}

.art-chip {
    display: inline-flex;
    align-items: center;
    height: 26px;
    padding: 0 11px;
    border-radius: 9999px;
    background-color: rgba(0, 122, 255, 0.1);
    color: #007AFF;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.art-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

/* Рендеры собраны из того же языка, что ключевой визуал App Store (promo/reels/keyart):
   насыщенный сине-фиолетовый фон с кругами «пакета», глянцевые иконки команд с цветной тенью
   и полоски истории проверок, как в плитке хоста. */

/* Цветная карточка: фон кейарта, белый текст */

.bento-card.is-vivid {
    background: #3E4BF0 url("../../../shared/images/art/keyart-bg.webp") center / cover no-repeat;
}

.bento-card.is-vivid .bento-name {
    color: #FFF;
}

.bento-card.is-vivid .bento-text {
    color: rgba(255, 255, 255, 0.78);
}

/* Круги «пакета» за объектом цветной карточки */
.bento-card.is-vivid .bento-art::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 55%;
    width: 640px;
    height: 640px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: repeating-radial-gradient(circle, transparent 0 47px, rgba(255, 255, 255, 0.28) 47px 48.5px);
    -webkit-mask-image: radial-gradient(circle, #000 18%, transparent 62%);
    mask-image: radial-gradient(circle, #000 18%, transparent 62%);
    pointer-events: none;
}

.art-glass {
    display: inline-flex;
    align-items: center;
    height: 28px;
    padding: 0 12px;
    border-radius: 9999px;
    background-color: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.28);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    color: #FFF;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

/* Глиф SF Symbols в цветном кружке: символ — маска, цвет задаётся --c, файл — --m */
.glyph {
    position: relative;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border-radius: 50%;
    background-color: color-mix(in srgb, var(--c) 15%, #FFF);
}

.glyph::before {
    content: "";
    position: absolute;
    inset: 7px;
    background-color: var(--c);
    -webkit-mask: var(--m) center / contain no-repeat;
    mask: var(--m) center / contain no-repeat;
}

/* Полоски истории проверок: --on — доля зелёных слева, дальше красные */
.ticks {
    --on: 100%;
    --bg: #FFF;
    width: 72px;
    height: 16px;
    flex-shrink: 0;
    background:
        repeating-linear-gradient(90deg, transparent 0 3px, var(--bg) 3px 5px),
        linear-gradient(90deg, #34C759 0 var(--on), #FFCC00 var(--on) calc(var(--on) + 5px), #FF3B30 calc(var(--on) + 5px));
    border-radius: 1px;
}

/* Иконка команды рисуется целиком в CSS, как cmdIcon в кейарте: сплошной квадрат цвета команды
   с лёгким объёмом и белый символ. PNG из приложения не годится — его скругление не совпадает
   с border-radius и по краю проступает светлая кайма. */
.cmd {
    position: absolute;
    width: 76px;
    height: 76px;
    border-radius: 23.5%;
    background: linear-gradient(180deg,
        color-mix(in srgb, var(--c) 84%, #FFF) 0%,
        var(--c) 55%,
        color-mix(in srgb, var(--c) 93%, #000) 100%);
    box-shadow: 0 16px 30px color-mix(in srgb, var(--c) 40%, transparent);
    transform: rotate(var(--r, 0deg));
}

.cmd::before {
    content: "";
    position: absolute;
    inset: 27%;
    background-color: #FFF;
    -webkit-mask: var(--g) center / contain no-repeat;
    mask: var(--g) center / contain no-repeat;
}

/* Глянец: мягкое светлое пятно в верхней трети */
.cmd::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle at 32% 16%, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0) 60%);
}

/* 1. Дома или через интернет: циферблат проверок */

/* Высота по содержимому: на узком экране чипы уходят во вторую строку. */
.bento .bento-card .art-dial {
    height: auto;
    min-height: 260px;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0;
    padding: 18px 20px 0;
}

.art-dial img {
    position: relative;
    width: 210px;
    height: 210px;
    -webkit-mask-image: radial-gradient(circle, #000 64%, transparent 71%);
    mask-image: radial-gradient(circle, #000 64%, transparent 71%);
}

.art-dial .art-chips {
    position: relative;
    margin-top: -4px;
}

/* 2. Apple Watch */

.art-watch {
    gap: 0;
    padding-top: 20px;
}

.watch {
    position: relative;
    width: 168px;
    height: 200px;
    flex-shrink: 0;
    box-sizing: border-box;
    padding: 9px;
    border-radius: 50px;
    background: linear-gradient(145deg, #5B5B60 0%, #1C1C1E 38%, #0B0B0C 70%, #3A3A3E 100%);
    box-shadow: 0 30px 50px rgba(0, 0, 0, 0.22), 0 0 0 1px rgba(0, 0, 0, 0.5);
}

/* Колёсико Digital Crown и боковая кнопка */
.watch::before {
    content: "";
    position: absolute;
    right: -7px;
    top: 46px;
    width: 8px;
    height: 34px;
    border-radius: 0 4px 4px 0;
    background: repeating-linear-gradient(180deg, #8E8E93 0 2px, #48484A 2px 4px);
}

.watch::after {
    content: "";
    position: absolute;
    right: -4px;
    top: 104px;
    width: 5px;
    height: 38px;
    border-radius: 0 3px 3px 0;
    background-color: #2C2C2E;
}

.watch-screen {
    height: 100%;
    box-sizing: border-box;
    border-radius: 42px;
    background-color: #000;
    padding: 14px 11px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: #FFF;
    overflow: hidden;
}

.watch-head {
    display: flex;
    justify-content: space-between;
    padding: 0 6px;
    font-size: 11px;
    font-weight: 600;
    color: #0A84FF;
}

.watch-head span:last-child {
    color: #FFF;
}

.watch-row {
    display: flex;
    align-items: center;
    gap: 7px;
    height: 36px;
    padding: 0 8px;
    border-radius: 14px;
    background-color: #1C1C1E;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.watch-row .glyph {
    width: 22px;
    height: 22px;
    background-color: color-mix(in srgb, var(--c) 28%, #1C1C1E);
}

.watch-row .glyph::before {
    inset: 5px;
}

.watch-row span:last-child {
    margin-left: auto;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: #30D158;
    box-shadow: 0 0 8px #30D158;
}

.watch-row span.is-off:last-child {
    background-color: #FF453A;
    box-shadow: 0 0 8px #FF453A;
}

.art-watch .cmd {
    width: 64px;
    height: 64px;
}

/* 3. Ping или HTTP: плитки хостов */

.art-hosts {
    flex-direction: column;
    gap: 10px;
}

.host-tile {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 290px;
    box-sizing: border-box;
    padding: 10px 12px;
    border-radius: 16px;
    background-color: #FFF;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.07), 0 0 0 1px rgba(0, 0, 0, 0.04);
}

.host-tile:nth-child(2) {
    transform: translateX(14px);
}

.host-meta {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.2;
    font-weight: 600;
}

.host-meta small {
    font-size: 11px;
    font-weight: 500;
    color: #34C759;
}

.host-meta small.is-off {
    color: #FF3B30;
}

.host-tile .ticks {
    margin-left: auto;
    width: 64px;
}

/* 4. Команды питания веером */

.art-fan {
    flex-direction: column;
    justify-content: flex-end;
    gap: 16px;
    padding-bottom: 6px;
}

.fan {
    position: relative;
    width: 250px;
    height: 104px;
}

/* 5. Не давать засыпать: кольцо таймера */

.art-awake {
    padding-top: 16px;
}

.timer-ring {
    position: relative;
    width: 152px;
    height: 152px;
    border-radius: 50%;
    background: conic-gradient(from -90deg, #5AC8FA 0%, #007AFF 68%, #E8E8ED 68% 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 18px 40px rgba(0, 122, 255, 0.22);
}

.timer-ring::before {
    content: "";
    position: absolute;
    inset: 12px;
    border-radius: 50%;
    background-color: #FFF;
}

.timer-ring span {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 30px;
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.01em;
    font-variant-numeric: tabular-nums;
}

.timer-ring small {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0;
    color: #86868B;
}

.art-awake .cmd {
    width: 52px;
    height: 52px;
}

/* 6. Заряд ноутбука */

.art-battery {
    flex-direction: column;
    gap: 16px;
}

.art-battery .host-tile {
    max-width: 210px;
}

.battery {
    position: relative;
    width: 168px;
    height: 72px;
    box-sizing: border-box;
    padding: 6px;
    border-radius: 22px;
    background: linear-gradient(180deg, #FFF, #F2F2F7);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.1), 0 0 0 2px rgba(0, 0, 0, 0.12);
}

.battery::after {
    content: "";
    position: absolute;
    right: -9px;
    top: 26px;
    width: 5px;
    height: 20px;
    border-radius: 0 3px 3px 0;
    background-color: rgba(0, 0, 0, 0.18);
}

.battery i {
    position: relative;
    display: block;
    width: 76%;
    height: 100%;
    border-radius: 16px;
    background: linear-gradient(180deg, #5EE07F, #28B44B);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 6px 16px rgba(52, 199, 89, 0.35);
}

.battery b {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
    color: #FFF;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
}

/* 7. iCloud: облако и устройства на орбите */

.art-cloud {
    padding-top: 12px;
}

.orbit {
    position: relative;
    width: 200px;
    height: 150px;
}

.orbit-cloud {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 92px;
    height: 64px;
    transform: translate(-50%, -50%);
    background-color: #FFF;
    -webkit-mask: url("../../../shared/images/art/sf-icloud.fill.png") center / contain no-repeat;
    mask: url("../../../shared/images/art/sf-icloud.fill.png") center / contain no-repeat;
    filter: drop-shadow(0 0 18px rgba(255, 255, 255, 0.8));
}

.orbit-device {
    position: absolute;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.35);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.orbit-device::before {
    content: "";
    position: absolute;
    inset: 11px;
    background-color: #FFF;
    -webkit-mask: var(--m) center / contain no-repeat;
    mask: var(--m) center / contain no-repeat;
}

/* 8. Настройка по шагам */

.art-steps {
    padding: 8px 14px;
    box-sizing: border-box;
}

.art-step {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 38px;
    font-weight: 600;
}

.art-step b {
    position: relative;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    border-radius: 50%;
    background: linear-gradient(160deg, #5AC8FA, #007AFF);
    color: #FFF;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 122, 255, 0.3);
}

.art-step.is-done b {
    background: linear-gradient(160deg, #5EE07F, #28B44B);
    box-shadow: 0 4px 10px rgba(52, 199, 89, 0.3);
    font-size: 0;
}

.art-step.is-done b::before {
    content: "";
    width: 11px;
    height: 11px;
    background-color: #FFF;
    -webkit-mask: url("../../../shared/images/art/sf-checkmark.png") center / contain no-repeat;
    mask: url("../../../shared/images/art/sf-checkmark.png") center / contain no-repeat;
}

.art-step.is-next {
    color: #86868B;
}

.art-step.is-next b {
    background: #E8E8ED;
    color: #86868B;
    box-shadow: none;
}

@media (max-width: 900px) {
    .bento-card {
        grid-column: span 3;
    }
}

@media (max-width: 768px) {
    .bento-section {
        padding: 24px 16px 12px;
    }

    .bento-section .section-title {
        padding-left: 8px;
    }

    .bento {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
    }

    .bento-card,
    .bento-large {
        grid-column: auto;
        border-radius: 24px;
    }

    .bento-large .bento-art {
        height: 230px;
    }

    .fan {
        transform: scale(0.92);
    }
}

/* ===== reviews ===== */

.reviews {
    padding: 40px 0 20px;
}

.reviews .highlights-head .section-title {
    margin: 0;
}

.review {
    flex: 0 0 var(--card-w);
    scroll-snap-align: start;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    padding: 24px;
    border-radius: 28px;
    background-color: #FFF;
}

.review-rating {
    color: #FF9500;
    font-size: 15px;
    letter-spacing: 2px;
}

.review-text {
    flex: 1;
    margin: 10px 0 16px;
    font-size: 15px;
    line-height: 1.45;
    color: #1D1D1F;
}

.review-author {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: #86868B;
}

@media (max-width: 768px) {
    .review {
        border-radius: 24px;
    }
}

/* ===== cta ===== */

/* Финал — снова сцена ключевого визуала: страница начинается и заканчивается одним образом. */
.cta {
    position: relative;
    width: min(1024px, calc(100% - 40px));
    box-sizing: border-box;
    margin: 40px auto 0;
    padding: 72px 20px 64px;
    text-align: center;
    overflow: hidden;
    border-radius: 44px;
    background: #3E4BF0 url("../../../shared/images/art/keyart-bg.webp") center / cover no-repeat;
    color: #FFF;
}

.cta::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 136px;
    width: 1100px;
    height: 1100px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: repeating-radial-gradient(circle, transparent 0 70px, rgba(255, 255, 255, 0.26) 70px 71.5px);
    -webkit-mask-image: radial-gradient(circle, #000 10%, transparent 55%);
    mask-image: radial-gradient(circle, #000 10%, transparent 55%);
    pointer-events: none;
}

.cta > * {
    position: relative;
}

.cta-icon {
    width: 128px;
    height: 128px;
    filter: drop-shadow(0 20px 40px rgba(10, 10, 80, 0.4));
}

.cta-title {
    margin: 20px 0 8px;
    font-size: 48px;
    font-weight: 700;
    line-height: 1.1;
    text-align: center;
    color: #FFF;
}

.cta-text {
    margin: 0 auto 28px;
    max-width: 520px;
    font-size: 19px;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.82);
}

.cta .appstore-badge {
    display: inline-block;
}

.cta-fact {
    margin: 18px 0 4px;
    font-size: 15px;
    font-weight: 600;
    color: #FFF;
}

.cta-req {
    margin: 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 768px) {
    .cta {
        width: calc(100% - 32px);
        padding: 48px 20px 44px;
        border-radius: 32px;
    }

    .cta-icon {
        width: 104px;
        height: 104px;
    }

    .cta-title {
        font-size: 32px;
    }

    .cta-text {
        font-size: 17px;
    }
}

/* ===== RTL (ar, fa) ===== */

/* Лента карусели и отзывов листается скриптом по offsetLeft/scrollLeft, а в RTL scrollLeft идёт
   в минус: лента остаётся слева направо, текст карточек — справа налево */
[dir="rtl"] .highlights-track,
[dir="rtl"] .reviews-track {
    direction: ltr;
}

[dir="rtl"] .highlight figcaption,
[dir="rtl"] .review {
    direction: rtl;
    text-align: right;
}

[dir="rtl"] .section-title,
[dir="rtl"] .highlights-head {
    text-align: right;
}
