/* ==========================================================================
   Academy Finbridge — главная страница
   Фирменный стиль: индиго #667eea → фиолетовый #612e90
   ========================================================================== */

:root {
    --fb-purple: #612e90;
    --fb-purple-deep: #46206b;
    --fb-indigo: #667eea;
    --fb-violet: #8b5cf6;
    --fb-ink: #221f36;
    --fb-muted: #6b6880;
    --fb-bg: #f7f6fb;
    --fb-border: rgba(97, 46, 144, .10);
    --fb-shadow: 0 6px 24px rgba(34, 31, 54, .07);
    --fb-shadow-lg: 0 22px 55px rgba(97, 46, 144, .18);
    --fb-radius: 20px;
    --fb-grad: linear-gradient(120deg, #667eea, #8b5cf6 45%, #612e90);
    --fb-ease: cubic-bezier(.2, .8, .2, 1);
}

body {
    color: var(--fb-ink);
    background-color: var(--fb-bg);
}

/* В _Layout шрифт задан селектором *, поэтому переопределяем поэлементно
   (иконки <i> не трогаем — на них шрифт Font Awesome). */
.container,
.container h1,
.container h2,
.container h3,
.container p,
.container span,
.container b,
.container a {
    font-family: 'Segoe UI', Arial, sans-serif;
}

/* Мягкий фон вместо белого из _Layout.
   justify-content: flex-start — иначе длинная страница обрезается сверху. */
main {
    background-color: var(--fb-bg);
    padding: 2.5rem 1.5rem 3.5rem;
    justify-content: flex-start;
}

.container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
}

/* --------------------------------------------------------------------------
   Анимированный градиент — общий слой
   -------------------------------------------------------------------------- */

.fb-gradient-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(120deg, #3f1f66, #612e90 22%, #667eea 48%, #8b5cf6 72%, #612e90 100%);
    background-size: 300% 300%;
    animation: fb-pan 20s ease infinite;
}

@keyframes fb-pan {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Плавающие световые пятна поверх градиента */
.fb-blobs {
    position: absolute;
    inset: -20%;
    z-index: 1;
    pointer-events: none;
    filter: blur(70px);
    opacity: .75;
}

.fb-blobs i {
    position: absolute;
    display: block;
    border-radius: 50%;
    mix-blend-mode: screen;
}

.fb-blobs i:nth-child(1) {
    width: 46%;
    padding-bottom: 46%;
    left: 4%;
    top: 8%;
    background: radial-gradient(circle at 30% 30%, rgba(129, 178, 255, .95), rgba(129, 178, 255, 0) 70%);
    animation: fb-float-a 22s ease-in-out infinite;
}

.fb-blobs i:nth-child(2) {
    width: 52%;
    padding-bottom: 52%;
    right: 2%;
    top: 2%;
    background: radial-gradient(circle at 60% 40%, rgba(214, 160, 255, .85), rgba(214, 160, 255, 0) 70%);
    animation: fb-float-b 26s ease-in-out infinite;
}

.fb-blobs i:nth-child(3) {
    width: 40%;
    padding-bottom: 40%;
    left: 32%;
    bottom: 0%;
    background: radial-gradient(circle at 50% 50%, rgba(99, 240, 220, .55), rgba(99, 240, 220, 0) 70%);
    animation: fb-float-c 30s ease-in-out infinite;
}

@keyframes fb-float-a {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    33% { transform: translate3d(14%, 10%, 0) scale(1.18); }
    66% { transform: translate3d(-8%, 16%, 0) scale(.92); }
}

@keyframes fb-float-b {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1.05); }
    40% { transform: translate3d(-16%, 12%, 0) scale(.88); }
    70% { transform: translate3d(-6%, -8%, 0) scale(1.2); }
}

@keyframes fb-float-c {
    0%, 100% { transform: translate3d(0, 0, 0) scale(.95); }
    50% { transform: translate3d(12%, -18%, 0) scale(1.25); }
}

/* Тонкая сетка поверх градиента */
.fb-grid-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    opacity: .16;
    background-image: linear-gradient(rgba(255,255,255,.55) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255,255,255,.55) 1px, transparent 1px);
    background-size: 54px 54px;
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 20%, transparent 75%);
    mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 20%, transparent 75%);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border-radius: 30px;
    padding: 84px 40px 72px;
    text-align: center;
    color: #fff;
    box-shadow: var(--fb-shadow-lg);
}

.hero > .hero__inner {
    position: relative;
    z-index: 3;
    max-width: 840px;
    margin: 0 auto;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .28);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .02em;
    margin-bottom: 26px;
}

.hero__badge .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #6ef0c8;
    box-shadow: 0 0 0 0 rgba(110, 240, 200, .7);
    animation: fb-ping 2.4s ease-out infinite;
}

@keyframes fb-ping {
    0% { box-shadow: 0 0 0 0 rgba(110, 240, 200, .65); }
    70% { box-shadow: 0 0 0 12px rgba(110, 240, 200, 0); }
    100% { box-shadow: 0 0 0 0 rgba(110, 240, 200, 0); }
}

.hero h1 {
    font-size: clamp(30px, 5vw, 52px);
    line-height: 1.12;
    font-weight: 800;
    letter-spacing: -.02em;
    margin-bottom: 20px;
    text-shadow: 0 6px 30px rgba(28, 12, 52, .25);
}

.hero h1 .shine {
    background: linear-gradient(100deg, #ffffff 20%, #ffe9a8 40%, #d8c7ff 60%, #ffffff 80%);
    background-size: 220% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: fb-shine 7s linear infinite;
}

@keyframes fb-shine {
    0% { background-position: 180% 0; }
    100% { background-position: -80% 0; }
}

.hero__subtitle {
    font-size: clamp(16px, 2vw, 20px);
    line-height: 1.6;
    color: rgba(255, 255, 255, .88);
    max-width: 660px;
    margin: 0 auto 34px;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    margin-bottom: 46px;
}

/* Мини-статистика в hero */
.hero__stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    max-width: 640px;
    margin: 0 auto;
}

.hero__stat {
    padding: 18px 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .22);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform .4s var(--fb-ease), background .4s ease;
}

.hero__stat:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, .2);
}

.hero__stat b {
    display: block;
    font-size: 30px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -.01em;
}

.hero__stat span {
    display: block;
    margin-top: 4px;
    font-size: 13px;
    color: rgba(255, 255, 255, .82);
}

.hero__scroll {
    position: relative;
    z-index: 3;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin-top: 40px;
    color: rgba(255, 255, 255, .8);
    font-size: 13px;
    text-decoration: none;
    animation: fb-bob 2.6s ease-in-out infinite;
}

.hero__scroll:hover { color: #fff; }

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

/* --------------------------------------------------------------------------
   Кнопки
   -------------------------------------------------------------------------- */

.download-btn {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    background: linear-gradient(to right, #667eea, #612e90);
    color: #fff;
    box-shadow: 0 8px 22px rgba(70, 32, 107, .28);
    transition: transform .35s var(--fb-ease), box-shadow .35s ease;
}

.download-btn i { font-size: 19px; }

.download-btn::after {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 60%;
    height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .38), transparent);
    transform: skewX(-20deg);
}

.download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(70, 32, 107, .38);
}

.download-btn:hover::after { animation: fb-sweep .85s ease; }

@keyframes fb-sweep {
    to { left: 140%; }
}

/* Светлая кнопка на градиентном фоне */
.download-btn--light {
    background: rgba(255, 255, 255, .96);
    color: var(--fb-purple);
    box-shadow: 0 10px 26px rgba(20, 8, 40, .22);
}

.download-btn--ghost {
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .45);
    color: #fff;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: none;
}

.download-btn--ghost:hover { background: rgba(255, 255, 255, .2); }

/* --------------------------------------------------------------------------
   Заголовки секций
   -------------------------------------------------------------------------- */

.section {
    margin-top: 88px;
}

.section__head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 44px;
}

.section__eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--fb-indigo);
    margin-bottom: 12px;
}

.gradient-text,
.section__title {
    background: var(--fb-grad);
    background-size: 220% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 800;
    animation: fb-text-pan 9s ease infinite;
}

.section__title {
    font-size: clamp(24px, 3.4vw, 36px);
    line-height: 1.2;
    letter-spacing: -.02em;
}

@keyframes fb-text-pan {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.section__lead {
    margin-top: 14px;
    font-size: 17px;
    line-height: 1.6;
    color: var(--fb-muted);
}

/* --------------------------------------------------------------------------
   Карточки возможностей
   -------------------------------------------------------------------------- */

.feature-grid {
    display: grid;
    /* min(300px, 100%) — чтобы колонка сжималась на узких экранах и не давала
       горизонтальную прокрутку */
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: 26px;
}

.feature-card {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--fb-border);
    border-radius: var(--fb-radius);
    padding: 32px 28px;
    text-align: left;
    box-shadow: var(--fb-shadow);
    transition: transform .45s var(--fb-ease), box-shadow .45s ease, border-color .45s ease;
}

/* Подсветка, следующая за курсором */
.feature-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: 0;
    background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(102, 126, 234, .13), transparent 62%);
    transition: opacity .45s ease;
}

/* Градиентная полоса сверху */
.feature-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--fb-grad);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .5s var(--fb-ease);
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: rgba(97, 46, 144, .22);
    box-shadow: 0 20px 44px rgba(97, 46, 144, .16);
}

.feature-card:hover::before { opacity: 1; }
.feature-card:hover::after { transform: scaleX(1); }

.feature-card__icon {
    position: relative;
    width: 66px;
    height: 66px;
    border-radius: 20px;
    display: grid;
    place-items: center;
    margin-bottom: 20px;
    background: linear-gradient(135deg, rgba(102, 126, 234, .16), rgba(97, 46, 144, .16));
    transition: transform .5s var(--fb-ease);
}

.feature-card:hover .feature-card__icon {
    transform: translateY(-3px) rotate(-6deg) scale(1.06);
}

.feature-card__icon::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 2px solid rgba(102, 126, 234, .45);
    opacity: 0;
}

.feature-card:hover .feature-card__icon::after { animation: fb-ring 1.1s ease-out; }

@keyframes fb-ring {
    0% { opacity: .9; transform: scale(1); }
    100% { opacity: 0; transform: scale(1.45); }
}

.feature-image {
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.feature-card h3 {
    font-size: 20px;
    line-height: 1.3;
    color: var(--fb-purple);
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 15.5px;
    line-height: 1.6;
    color: var(--fb-muted);
}

/* --------------------------------------------------------------------------
   Скриншоты
   -------------------------------------------------------------------------- */

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 46px 34px;
    justify-items: center;
    align-items: start;
}

.screenshot-container {
    position: relative;
    width: 100%;
    max-width: 290px;
    perspective: 1000px;
}

.phone-frame {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    padding: 9px;
    background: linear-gradient(160deg, #2b2340, #161327);
    box-shadow: 0 18px 44px rgba(34, 31, 54, .22), inset 0 0 0 1px rgba(255, 255, 255, .08);
    transition: transform .5s var(--fb-ease), box-shadow .5s ease;
}

.screenshot-container:hover .phone-frame {
    transform: translateY(-10px) rotateX(4deg) scale(1.02);
    box-shadow: 0 30px 60px rgba(97, 46, 144, .3), inset 0 0 0 1px rgba(255, 255, 255, .14);
}

/* Вырез фронтальной камеры */
.phone-frame::before {
    content: "";
    position: absolute;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: 74px;
    height: 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .22);
    z-index: 3;
}

/* Блик, пробегающий по экрану */
.phone-frame::after {
    content: "";
    position: absolute;
    top: -60%;
    left: -80%;
    width: 55%;
    height: 220%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .3), transparent);
    transform: rotate(18deg);
    z-index: 2;
    pointer-events: none;
}

.screenshot-container:hover .phone-frame::after { animation: fb-glare 1.1s ease; }

@keyframes fb-glare {
    to { left: 130%; }
}

/* Экран телефона: светлый и тёмный скриншот лежат друг на друге.
   z-index: 1 создаёт контекст наложения — блик (::after, z-index 2)
   и вырез камеры (::before, z-index 3) остаются поверх обоих снимков. */
.phone-screen {
    position: relative;
    z-index: 1;
    overflow: hidden;
    border-radius: 22px;
    background: #14112a;
}

.screenshot-img {
    display: block;
    width: 100%;
    height: auto;
    transition: opacity .55s var(--fb-ease) var(--shot-delay, 0ms),
                transform .7s var(--fb-ease) var(--shot-delay, 0ms),
                filter .55s ease var(--shot-delay, 0ms);
}

.screenshot-img--dark {
    position: absolute;
    inset: 0;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.06);
    filter: blur(10px);
}

.screenshots[data-shots-theme="dark"] .screenshot-img--light {
    opacity: 0;
    transform: scale(.94);
    filter: blur(10px);
}

.screenshots[data-shots-theme="dark"] .screenshot-img--dark {
    opacity: 1;
    transform: none;
    filter: none;
}

/* Корпус телефона слегка темнеет вместе со скриншотами */
.screenshots[data-shots-theme="dark"] .phone-frame {
    background: linear-gradient(160deg, #3b3057, #0e0c1b);
    box-shadow: 0 22px 52px rgba(18, 13, 38, .38), inset 0 0 0 1px rgba(255, 255, 255, .10);
}

/* Волна света, пробегающая по экрану в момент смены темы */
.phone-screen::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    opacity: 0;
    background: linear-gradient(115deg, transparent 38%, rgba(196, 168, 255, .55) 50%, transparent 62%);
    background-size: 260% 100%;
    background-position: 130% 0;
}

.screenshots.is-switching .phone-screen::after {
    animation: fb-theme-sweep .9s ease var(--shot-delay, 0ms) both;
}

@keyframes fb-theme-sweep {
    0% { opacity: 0; background-position: 130% 0; }
    30% { opacity: 1; }
    100% { opacity: 0; background-position: -130% 0; }
}

/* Каскад: экраны переключаются один за другим */
.screenshots-grid .screenshot-container:nth-child(1) { --shot-delay: 0ms; }
.screenshots-grid .screenshot-container:nth-child(2) { --shot-delay: 70ms; }
.screenshots-grid .screenshot-container:nth-child(3) { --shot-delay: 140ms; }
.screenshots-grid .screenshot-container:nth-child(4) { --shot-delay: 210ms; }
.screenshots-grid .screenshot-container:nth-child(5) { --shot-delay: 280ms; }
.screenshots-grid .screenshot-container:nth-child(6) { --shot-delay: 350ms; }

/* --------------------------------------------------------------------------
   Переключатель темы скриншотов
   -------------------------------------------------------------------------- */

.theme-switch {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: -14px 0 40px;
}

.theme-switch__side {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Segoe UI', Arial, sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: var(--fb-muted);
    opacity: .55;
    transition: color .4s ease, opacity .4s ease;
    user-select: none;
}

.screenshots[data-shots-theme="light"] .theme-switch__side--light,
.screenshots[data-shots-theme="dark"] .theme-switch__side--dark {
    color: var(--fb-purple);
    opacity: 1;
}

.theme-switch__track {
    position: relative;
    flex: none;
    box-sizing: border-box;
    width: 64px;
    height: 32px;
    padding: 0;
    border: 1px solid var(--fb-border);
    border-radius: 999px;
    background: #fff;
    box-shadow: inset 0 2px 6px rgba(34, 31, 54, .10);
    cursor: pointer;
    transition: background .45s var(--fb-ease), box-shadow .45s ease, border-color .45s ease;
}

.theme-switch__track:focus-visible {
    outline: 3px solid rgba(102, 126, 234, .45);
    outline-offset: 3px;
}

.screenshots[data-shots-theme="dark"] .theme-switch__track {
    background: linear-gradient(140deg, #2b2340, #161327);
    border-color: transparent;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, .5), 0 0 0 4px rgba(139, 92, 246, .14);
}

.theme-switch__thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--fb-grad);
    box-shadow: 0 3px 8px rgba(97, 46, 144, .35);
    transition: transform .45s var(--fb-ease), background .45s ease;
}

.screenshots[data-shots-theme="dark"] .theme-switch__thumb {
    transform: translateX(32px);
    background: linear-gradient(140deg, #d8c6ff, #8b5cf6);
}

.platform-badge {
    position: absolute;
    top: 18px;
    right: 18px;
    padding: 6px 12px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 12px;
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .2);
    z-index: 4;
}

.ios-badge { background: linear-gradient(135deg, #000, #3a3a3a); }
.android-badge { background: linear-gradient(135deg, #3DDC84, #34A853); }

/* --------------------------------------------------------------------------
   Пуш-уведомления
   -------------------------------------------------------------------------- */

.push-showcase {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 56px;
    align-items: center;
    background: #fff;
    border: 1px solid var(--fb-border);
    border-radius: 28px;
    padding: 52px 52px 52px 56px;
    box-shadow: var(--fb-shadow);
}

.push-showcase__text {
    text-align: left;
}

.push-showcase__text .section__title {
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.2;
    letter-spacing: -.02em;
    display: block;
}

.push-showcase__text .section__lead {
    margin-bottom: 28px;
}

.push-list {
    list-style: none;
    display: grid;
    gap: 16px;
    margin: 0 0 30px;
    padding: 0;
}

.push-list li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    font-size: 15.5px;
    line-height: 1.55;
    color: var(--fb-muted);
}

.push-list b {
    display: block;
    color: var(--fb-ink);
    font-size: 16px;
    margin-bottom: 2px;
}

.push-list__icon {
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: var(--fb-purple);
    background: linear-gradient(135deg, rgba(102, 126, 234, .16), rgba(97, 46, 144, .16));
    transition: transform .4s var(--fb-ease);
}

.push-list li:hover .push-list__icon {
    transform: translateY(-2px) scale(1.08);
}

.push-list__icon svg {
    width: 18px;
    height: 18px;
}

.push-note {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(102, 126, 234, .1);
    color: var(--fb-purple);
    font-size: 14px;
    font-weight: 600;
}

.push-note .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #34c38f;
    animation: fb-ping-green 2.4s ease-out infinite;
}

@keyframes fb-ping-green {
    0% { box-shadow: 0 0 0 0 rgba(52, 195, 143, .55); }
    70% { box-shadow: 0 0 0 10px rgba(52, 195, 143, 0); }
    100% { box-shadow: 0 0 0 0 rgba(52, 195, 143, 0); }
}

/* Макет экрана блокировки */
.push-showcase__phone {
    justify-self: center;
    width: 100%;
    max-width: 300px;
}

.push-screen {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border-radius: 22px;
    aspect-ratio: 9 / 18.5;
    display: flex;
    flex-direction: column;
    padding: 46px 14px 20px;
    color: #fff;
    text-align: center;
}

/* На маленьком экране размытие фона должно быть меньше, чем в hero */
.push-screen .fb-blobs {
    filter: blur(32px);
    opacity: .6;
}

.push-screen__time {
    position: relative;
    z-index: 3;
    font-size: 52px;
    font-weight: 300;
    line-height: 1;
    letter-spacing: -.02em;
    text-shadow: 0 4px 20px rgba(20, 8, 40, .3);
}

.push-screen__date {
    position: relative;
    z-index: 3;
    margin-top: 6px;
    font-size: 13px;
    color: rgba(255, 255, 255, .85);
}

.push-stack {
    position: relative;
    z-index: 3;
    margin-top: auto;
    display: grid;
    gap: 10px;
}

.push-notif {
    display: flex;
    gap: 10px;
    padding: 11px 12px;
    border-radius: 16px;
    text-align: left;
    background: rgba(255, 255, 255, .82);
    border: 1px solid rgba(255, 255, 255, .6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 8px 22px rgba(20, 8, 40, .18);
    color: var(--fb-ink);
    animation: fb-notif-cycle 9s ease-in-out infinite backwards;
}

.push-notif:nth-child(1) { animation-delay: .2s; }
.push-notif:nth-child(2) { animation-delay: 1.1s; }
.push-notif:nth-child(3) { animation-delay: 2s; }

@keyframes fb-notif-cycle {
    0% { opacity: 0; transform: translateY(20px) scale(.94); }
    7% { opacity: 1; transform: none; }
    62% { opacity: 1; transform: none; }
    72% { opacity: 0; transform: translateY(-12px) scale(.97); }
    100% { opacity: 0; transform: translateY(20px) scale(.94); }
}

.push-notif__icon {
    flex: 0 0 auto;
    width: 26px;
    height: 26px;
    border-radius: 7px;
    object-fit: cover;
}

.push-notif__body {
    min-width: 0;
}

.push-notif__app {
    display: flex;
    align-items: baseline;
    gap: 6px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--fb-muted);
}

.push-notif__ago {
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
}

.push-notif__title {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.25;
    margin-top: 2px;
}

.push-notif__text {
    font-size: 12px;
    line-height: 1.35;
    color: var(--fb-muted);
    margin-top: 2px;
}

/* --------------------------------------------------------------------------
   Блок загрузки
   -------------------------------------------------------------------------- */

.download-section {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border-radius: 30px;
    padding: 64px 40px;
    margin-top: 96px;
    text-align: center;
    color: #fff;
    box-shadow: var(--fb-shadow-lg);
}

.download-section__inner {
    position: relative;
    z-index: 3;
}

.download-section h2 {
    font-size: clamp(24px, 3.4vw, 36px);
    font-weight: 800;
    letter-spacing: -.02em;
    margin-bottom: 14px;
}

.download-section p {
    font-size: 17px;
    line-height: 1.6;
    color: rgba(255, 255, 255, .88);
    max-width: 560px;
    margin: 0 auto 32px;
}

.store-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    margin-bottom: 44px;
}

.qr-row {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
}

.qr-card {
    width: 190px;
    padding: 18px;
    border-radius: 22px;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .26);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform .45s var(--fb-ease), background .45s ease;
}

.qr-card:hover {
    transform: translateY(-6px) scale(1.03);
    background: rgba(255, 255, 255, .22);
}

.qr-card img {
    width: 100%;
    max-width: 150px;
    border-radius: 12px;
    background: #fff;
    padding: 8px;
}

.qr-card p {
    margin: 12px 0 0;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}

/* Прямые ссылки на APK — показываются, только если сборка загружена в админ-панели */
.apk-block {
    margin-top: 44px;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, .22);
}

.apk-block__title {
    display: block;
    margin-bottom: 20px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .78);
}

.apk-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
}

.apk-link {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    max-width: 330px;
    padding: 14px 22px;
    border-radius: 16px;
    text-align: left;
    text-decoration: none;
    color: #fff;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .28);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform .4s var(--fb-ease), background .4s ease, border-color .4s ease;
}

.apk-link:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, .2);
    border-color: rgba(255, 255, 255, .45);
}

.apk-link i {
    flex: none;
    font-size: 18px;
    opacity: .9;
}

.apk-link__text {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.apk-link__text b {
    font-size: 15.5px;
    font-weight: 700;
}

.apk-link__text em {
    font-size: 13px;
    font-style: normal;
    color: rgba(255, 255, 255, .72);
}

/* Перебиваем общее правило .download-section p */
.download-section .apk-note {
    margin: 20px auto 0;
    font-size: 13.5px;
    color: rgba(255, 255, 255, .62);
}

/* --------------------------------------------------------------------------
   Появление при прокрутке
   -------------------------------------------------------------------------- */

.fb-js [data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .75s ease, transform .75s var(--fb-ease);
    transition-delay: var(--reveal-delay, 0ms);
    will-change: opacity, transform;
}

.fb-js [data-reveal="zoom"] { transform: translateY(20px) scale(.96); }
.fb-js [data-reveal="left"] { transform: translateX(-30px); }
.fb-js [data-reveal="right"] { transform: translateX(30px); }

.fb-js [data-reveal].is-visible {
    opacity: 1;
    transform: none;
}

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

@media (max-width: 900px) {
    main { padding: 1.5rem 1rem 2.5rem; }
    .hero { padding: 64px 24px 56px; border-radius: 26px; }
    .section { margin-top: 68px; }
    .download-section { padding: 52px 24px; margin-top: 72px; border-radius: 26px; }
    .screenshots-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    .push-showcase {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 40px 28px;
        text-align: center;
    }

    .push-showcase__text { text-align: center; }
    .push-list li { text-align: left; }
    .push-showcase__phone { order: 2; }
}

@media (max-width: 600px) {
    .hero { padding: 52px 18px 44px; }
    .hero__stats { grid-template-columns: 1fr; max-width: 320px; }
    .hero__actions .download-btn,
    .store-buttons .download-btn { width: 100%; justify-content: center; }
    .feature-card { padding: 26px 22px; }
    .screenshots-grid { grid-template-columns: 1fr; gap: 30px; }
    .theme-switch { gap: 12px; margin-bottom: 32px; }
    .theme-switch__side { font-size: 14px; }
    .push-showcase { padding: 32px 20px; border-radius: 24px; }
    .qr-card { width: 160px; }
}

/* --------------------------------------------------------------------------
   Уважение к настройке «уменьшить движение»
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
    .fb-gradient-bg,
    .fb-blobs i,
    .hero h1 .shine,
    .hero__badge .dot,
    .hero__scroll,
    .gradient-text,
    .section__title,
    .push-note .dot {
        animation: none !important;
    }

    /* Уведомления показываем статичной стопкой, без цикла появления */
    .push-notif {
        animation: none !important;
        opacity: 1;
        transform: none;
    }

    .fb-gradient-bg { background-position: 50% 50%; }
    .hero h1 .shine { background-position: 50% 50%; }

    .fb-js [data-reveal] {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    .download-btn:hover,
    .feature-card:hover,
    .screenshot-container:hover .phone-frame,
    .qr-card:hover,
    .hero__stat:hover,
    .push-list li:hover .push-list__icon {
        transform: none;
    }

    .download-btn:hover::after,
    .screenshot-container:hover .phone-frame::after,
    .feature-card:hover .feature-card__icon::after {
        animation: none;
    }

    /* Тема на скриншотах переключается мгновенно, без блика и каскада */
    .screenshots.is-switching .phone-screen::after { animation: none; }

    .screenshot-img,
    .theme-switch__track,
    .theme-switch__thumb,
    .theme-switch__side {
        transition: none !important;
    }

    .screenshot-img--dark,
    .screenshots[data-shots-theme="dark"] .screenshot-img--light {
        transform: none;
        filter: none;
    }
}
