* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
/* ==================
   Шапка сайта
   ================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(0,0,0,0.35);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    margin-left: 0;
    margin-right: 0;
}

.site-header-inner {
    width: 100%;
    max-width: none;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
}

.site-logo {
    font-family: var(--heading-font);
    text-decoration: none;
    font-weight: 900;
    letter-spacing: -0.02em;
    position: relative;
    display: inline-flex;
    align-items: baseline;
    /* Градиентная заливка текста с мягким свечением */
    background-image: linear-gradient(90deg, #fcce00 0%, #ffffff 45%, #fcce00 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: logoShine 6s linear infinite;
    text-shadow: 0 1px 10px rgba(252, 206, 0, 0.25);
}

.site-logo::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    height: 2px;
    width: 52%;
    background: linear-gradient(90deg, rgba(252,206,0,0.9) 0%, rgba(252,206,0,0) 100%);
    border-radius: 2px;
    transition: width 0.25s ease, filter 0.25s ease;
}
.site-logo:hover::after { width: 100%; filter: drop-shadow(0 0 6px rgba(252,206,0,0.6)); }

@keyframes logoShine {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

/* Кнопка-бургер (совместима с тильда-классами) */
.t-menuburger {
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 10px;
    background: rgba(255,255,255,0.06);
}
.t-menuburger span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 2px;
}
.t-menuburger span + span { margin-top: 4px; }

/* Боковое меню */
.side-drawer {
    position: fixed;
    inset: 0;
    z-index: 2000; /* выше фиксированного header (1000) */
    pointer-events: none;
}
.side-drawer.open { pointer-events: auto; }
.drawer-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    transition: opacity 0.25s ease;
}
.side-drawer.open .drawer-backdrop { opacity: 1; }
.drawer-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: 80vw;
    max-width: 360px;
    height: 100%;
    background: rgba(19, 19, 24, 0.95);
    border-left: 1px solid rgba(255,255,255,0.12);
    transform: translateX(100%);
    transition: transform 0.25s ease;
    display: flex;
    flex-direction: column;
    padding: 14px;
}
.side-drawer.open .drawer-panel { transform: translateX(0); }
.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}
.drawer-logo {
    font-family: var(--heading-font);
    color: #ffffff;
    font-weight: 800;
}
.drawer-close {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.06);
    color: #ffffff;
    font-size: 20px;
}
.drawer-link {
    color: #ffffff;
    text-decoration: none;
    font-family: var(--body-font);
    font-weight: 600;
    font-size: 16px;
    padding: 12px 10px;
    border-radius: 10px;
}
.drawer-link:hover { background: rgba(255,255,255,0.08); }
.drawer-link.apk-link { background: #fcce00; color: #313142; margin-top: 6px; }
.drawer-link.apk-link:hover { filter: brightness(0.95); }

body.nav-open { overflow: hidden; }

/* Корректируем отрицательные отступы под мобильные паддинги body */
@media (max-width: 480px) {
    .site-header { margin-left: 0; margin-right: 0; }
}

@media (max-width: 320px) {
    .site-header { margin-left: 0; margin-right: 0; }
}

/* Отступ контента под фиксированный header (учитываем элементы между header и контентом) */
.site-header ~ .mobile-landing { margin-top: 64px; }
@media (max-width: 480px) { .site-header ~ .mobile-landing { margin-top: 58px; } }
@media (min-width: 481px) { .site-header ~ .mobile-landing { margin-top: 68px; } }

/* Корректный скролл к секции "Как работает" с учетом фиксированного header */
#how { scroll-margin-top: 68px; }
@media (max-width: 480px) { #how { scroll-margin-top: 58px; } }


.hero::before { 
    content: '';
    position: absolute;
    inset: 0;
    /* Сделаем затемнение мягче, чтобы фон казался светлее */
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Поднимаем весь контент над body::before градиентом */
.mobile-landing {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-family: var(--heading-font);
    color: #fff;
    letter-spacing: -0.02em;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 10px;
    font-size: 34px;
}

.hero-title span { color: #ffffff; }
.hero-title .accent { color: rgb(252, 206, 0); }

.hero-sub {
    color: #ffffff;
    font-size: 17px;
    line-height: 1.6;
    max-width: 34ch;
    margin: 8px auto 18px;
}

.phone-visual {
    position: relative;
    display: grid;
    place-items: center;
    margin-top: 8px;
}

/* Лёгкое красное свечение вокруг телефона */
.phone-visual::after {
    content: '';
    position: absolute;
    left: 22%;
    top: 50%;
    /* Сместим круг к правому краю телефона */
    transform: translate(55%, -50%);
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(255, 48, 48, 0.35) 0%, rgba(255, 48, 48, 0) 70%);
    filter: blur(14px);
    pointer-events: none;
    z-index: 0;
}

/* Кнопка скачивания под телефоном */
.download-cta {
    display: block;
    width: 100%;
    margin-top: 16px;
    background: #fcce00;
    color: #313142;
    text-align: center;
    text-decoration: none;
    font-family: var(--heading-font);
    font-weight: 600;
    font-size: 18px;
    letter-spacing: 0;
    text-transform: uppercase;
    padding: 16px 18px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

.download-cta:active {
    transform: translateY(1px);
}

@media (max-width: 480px) {
    .download-cta { padding: 15px 16px; border-radius: 12px; }
}

.phone-visual .phone {
    width: 260px;
    height: auto;
    display: block;
    filter: drop-shadow(0 10px 24px rgba(0,0,0,0.45));
    position: relative;
    z-index: 1;
}

.phone-visual .notif {
    position: absolute;
    max-width: 85%;
    width: 85%;
    height: auto;
    /* Центрируем внутри телефона */
    left: 50%;
    top: 42%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.radar {
    display: block;
    width: 72px;
    height: auto;
    margin: 10px auto 0;
    opacity: 0.95;
}

/* Радар внутри телефона: меньше и ниже уведомления */
.phone-visual .radar {
    position: absolute;
    left: 50%;
    top: 55%;
    transform: translate(-50%, -50%);
    width: 24%;
    height: auto;
    margin: 0;
    z-index: 1;
}

/* HUD внутри телефона: у нижней части экрана телефона */
.phone-visual .hud {
    position: absolute;
    left: 50%;
    bottom: 18%;
    transform: translateX(-50%);
    width: 10%;
    height: auto;
    z-index: 2;
}

/* Декор справа от телефона */
.phone-visual .decor-right {
    position: absolute;
    left: 89%;
    top: 45%;
    transform: translate(85%, -50%);
    width: 20%;
    height: auto;
    opacity: 0.95;
    pointer-events: none;
    z-index: 0;
}

.features {
    margin: 18px 0 8px;
    display: grid;
    gap: 14px;
}

/* Карточка с фоновым изображением */
.feature-item {
    position: relative;
    display: block;
    min-height: 140px;
    background-color: rgba(255,255,255,0.06);
    background-size: cover;
    background-position: left top;
    background-repeat: no-repeat;
    border-radius: 14px;
    padding: 14px;
    box-shadow: 0 10px 24px rgba(0,0,0,0.25);
    overflow: hidden;
}

.feature-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0.05) 100%);
    pointer-events: none;
}

.feature-item--online { background-image: url('assets/ONLINE.webp'); }
.feature-item--notif  { background-image: url('assets/Group_1030.png'); }
.feature-item--find   { background-image: url('assets/Group_1031.png'); }

.feature-text {
    position: relative;
    z-index: 1;
    max-width: 60%;
}

.feature-text h3 {
    font-family: var(--heading-font);
    color: #ffffff;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 4px;
}

.feature-text p {
    color: #ffffff;
    font-size: 16px;
    line-height: 1.45;
}

@media (min-width: 481px) {
    .feature-item { min-height: 160px; padding: 16px; }
}

/* =====================
   Как работает приложение
   ===================== */
.how-it-works {
    margin: 22px 0 8px;
}

.hiw-title {
    font-family: var(--heading-font);
    color: #ffffff;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 12px;
    text-align: center;
}

.hiw-card {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    position: relative;
    z-index: 2;
}

.hiw-media {
    width: 70%;
    height: auto;
    display: block;
    border-radius: 0;
    margin: 0 auto;
}

.hiw-sub {
    color: #ffffff;
    font-size: 17px;
    line-height: 1.6;
    margin-top: 12px;
    letter-spacing: 0;
    text-align: center;
}

/* Градиентный разделитель между блоками how-it-works */
.hiw-divider {
    height: 40px;
    margin: 8px 0 12px;
    background:
        radial-gradient(120% 80% at 50% 50%, rgba(252, 206, 0, 0.28) 0%, rgba(255, 48, 48, 0.14) 45%, rgba(0, 0, 0, 0) 70%);
    filter: blur(2px);
    pointer-events: none;
}

.hiw-sub strong { font-family: var(--heading-font); font-weight: 800; }
.hiw-sub .a1 { color: rgb(252, 206, 0); }
.hiw-sub .a2 { color: #60a5fa; }
.hiw-sub .a3 { color: #f472b6; }

/* =====================
   FAQ
   ===================== */
.faq {
    margin: 28px 0 24px;
    text-align: center;
    position: relative;
    padding: 14px 12px;
    border-radius: 0;
    overflow: hidden;
    /* на всю ширину страницы */
    margin-left: -20px;
    margin-right: -20px;
}

.faq-illustration {
    width: 60%;
    max-width: 360px;
    height: auto;
    display: block;
    margin: 0 auto 12px;
}

.faq-title {
    font-family: var(--heading-font);
    color: #ffffff;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.faq-subtitle-accent {
    color: rgb(252, 206, 0);
    font-family: var(--heading-font);
    font-weight: 800;
    font-size: 22px;
    margin-top: 6px;
}

.faq-divider {
    height: 1px;
    margin: 14px auto 16px;
    width: 92%;
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(252,206,0,0.7) 50%, rgba(255,255,255,0) 100%);
}

.faq-q {
    color: rgb(255 255 255 / 62%);
    font-family: var(--heading-font);
    font-weight: 800;
    font-size: 20px;
    margin: 14px auto 6px;
    position: relative;
}

.faq-a {
    color: #ffffff;
    font-size: 16px;
    line-height: 1.6;
    max-width: 48ch;
    margin: 8px auto 14px;
}

/* Тонкая акцентная линия под вопросом для разделения с ответом */
.faq-q::after {
    content: '';
    display: block;
    width: 80%;
    height: 2px;
    margin: 6px auto 0;
    background: linear-gradient(90deg, rgba(252, 206, 0, 0.85) 0%, rgba(252, 206, 0, 0) 100%);
}

/* Затемнение FAQ секции */
.faq::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    z-index: 0;
}
.faq > * { position: relative; z-index: 1; }

/* корректируем отрицательные отступы под паддинги body */
@media (max-width: 480px) {
    .faq { margin-left: -15px; margin-right: -15px; }
}
@media (max-width: 320px) {
    .faq { margin-left: -10px; margin-right: -10px; }
}

/* =====================
   Bottom prompt (APK)
   ===================== */
.bottom-prompt {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    background: #efedf4;
    color: #1f2937;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    padding: 12px;
    z-index: 1500;
    transform: translateY(120%);
    transition: transform 0.25s ease;
}
.bottom-prompt.open { transform: translateY(0); }
.bp-title {
    font-family: var(--heading-font);
    font-weight: 800;
    font-size: 18px;
    margin-bottom: 8px;
}
.bp-text .tn-atom { color: #1f2937; font-size: 15px; line-height: 1.45; }
.bottom-prompt-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 10px;
    text-decoration: none;
    background: #fcce00;
    color: #313142;
    font-family: var(--heading-font);
    font-weight: 700;
    text-transform: uppercase;
    padding: 14px 16px;
    border-radius: 12px;
}
.bp-icon { width: 18px; height: 18px; }
.bp-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    border: none;
    background: rgba(0,0,0,0.08);
    color: #111827;
    font-size: 18px;
    line-height: 1;
}

@media (max-width: 480px) {
    .hero { padding: 28px 16px 20px; border-radius: 14px; }
    .hero-title { font-size: 30px; }
    .hero-sub { font-size: 15px; }
    /* Внутри телефона масштаб по процентам сохраняется */
}

@media (min-width: 481px) {
    .hero-title { font-size: 36px; }
    .phone-visual .phone { width: 300px; }
    .radar { width: 80px; }
}

:root {
    --heading-font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --body-font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    font-family: var(--body-font);
    font-weight: 500;
    min-height: 100vh;
    background: #1a1f1c;
    background-image: url('assets/backgr.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #ffffff;
    padding: 20px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, 
        rgba(26, 31, 28, 0.9) 0%,
        rgba(26, 31, 28, 0) 100%);
    pointer-events: none;
    z-index: 1;
}

.container {
    max-width: 500px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.header {
    text-align: center;
    margin-bottom: 30px;
}

h1, h2 {
    font-family: var(--heading-font);
    color: #e0e0e0;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
}

h2 {
    font-size: 22px;
    font-weight: 600;
    margin: 40px 0 20px;
    color: #c8c8c8;
}

.download-section {
    text-align: center;
    margin: 30px 0;
    padding: 20px;
}

.download-btn {
    font-family: var(--body-font);
    background: linear-gradient(135deg, #4a5f44, #2d3a29);
    color: #e0e0e0;
    border: 1px solid rgba(255,255,255,0.1);
    padding: 18px 36px;
    border-radius: 8px;
    font-size: 17px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2),
                inset 0 1px 1px rgba(255,255,255,0.1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.3),
                inset 0 1px 1px rgba(255,255,255,0.1);
    background: linear-gradient(135deg, #556b4e, #374533);
}

.download-btn:active {
    transform: scale(0.98);
}

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

.update-date {
    margin-top: 12px;
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    font-weight: 400;
}

.steps {
    display: grid;
    gap: 15px;
    margin: 20px 0;
}

.step {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
}

.step:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.3);
    background: rgba(255,255,255,0.07);
}

.step-number {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #4a5f44, #2d3a29);
    color: #e0e0e0;
    border-radius: 8px;
    display: grid;
    place-items: center;
    font-size: 16px;
    font-weight: 600;
    flex-shrink: 0;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2),
                inset 0 1px 1px rgba(255,255,255,0.1);
    font-family: var(--heading-font);
    border: 1px solid rgba(255,255,255,0.1);
}

.step p {
    color: #c8c8c8;
    line-height: 1.6;
    font-size: 15px;
    font-weight: 400;
}

.animation {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.phone-screen {
    width: 100%;
    height: 200px;
    background: rgba(26, 31, 28, 0.8);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
}

.animation-content {
    position: absolute;
    width: 400%;
    height: 100%;
    display: flex;
    animation: slideSteps 8s infinite;
}

.animation-step {
    width: 25%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    color: #c8c8c8;
    position: relative;
}

.animation-step::after {
    content: attr(data-step);
    position: absolute;
    top: 15px;
    left: 15px;
    font-size: 12px;
    color: #4a5f44;
    font-weight: 600;
    font-family: var(--heading-font);
}

.animation-step i {
    font-size: 32px;
    color: #4a5f44;
}

.animation-step span {
    font-size: 15px;
    font-weight: 500;
    letter-spacing: -0.01em;
    color: #e0e0e0;
}

.progress-bar {
    width: 200px;
    height: 4px;
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
    overflow: hidden;
}

.progress {
    width: 100%;
    height: 100%;
    background: #4a5f44;
    transform-origin: left;
    animation: progress 2s ease-in-out infinite;
}

@keyframes progress {
    0% { transform: scaleX(0); }
    50% { transform: scaleX(0.7); }
    100% { transform: scaleX(1); }
}

@keyframes slideSteps {
    0%, 20% { transform: translateX(0); }
    25%, 45% { transform: translateX(-25%); }
    50%, 70% { transform: translateX(-50%); }
    75%, 95% { transform: translateX(-75%); }
    100% { transform: translateX(0); }
}

/* Адаптивная верстка */
@media (max-width: 480px) {
    body {
        padding: 15px;
    }

    .container {
        width: 100%;
    }

    h1 {
        font-size: 24px;
        margin-bottom: 15px;
    }

    h2 {
        font-size: 20px;
        margin: 30px 0 15px;
    }

    .download-section {
        padding: 15px;
        margin: 25px 0;
    }

    .download-btn {
        width: 100%;
        justify-content: center;
        padding: 16px 24px;
        font-size: 16px;
    }

    .update-date {
        margin-top: 10px;
        font-size: 12px;
    }

    .steps {
        gap: 12px;
    }

    .step {
        padding: 15px;
    }

    .step-number {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }

    .step p {
        font-size: 14px;
    }

    .animation {
        padding: 15px;
    }

    .phone-screen {
        height: 160px;
    }

    .animation-step {
        gap: 8px;
    }

    .animation-step i {
        font-size: 28px;
    }

    .progress-bar {
        width: 160px;
    }
}

/* Для очень маленьких экранов */
@media (max-width: 320px) {
    body {
        padding: 10px;
    }

    h1 {
        font-size: 22px;
    }

    h2 {
        font-size: 18px;
    }

    .download-btn {
        padding: 14px 20px;
        font-size: 15px;
    }

    .update-date {
        font-size: 11px;
    }

    .step-number {
        width: 24px;
        height: 24px;
        font-size: 12px;
    }

    .step p {
        font-size: 13px;
    }

    .phone-screen {
        height: 140px;
    }

    .animation-step i {
        font-size: 24px;
    }

    .progress-bar {
        width: 140px;
    }
}