/* -------------------- RESET & GLOBAL -------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: #FAFAFA;
    color: #212121;
    line-height: 1.5;
    scroll-behavior: smooth;
}

.site-wrapper {
    max-width: 1600px;
    margin: 0 auto;
    background: #FAFAFA;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* -------------------- TYPOGRAPHY -------------------- */
h1, h2, h3 { font-weight: 700; line-height: 1.2; margin-bottom: 1rem; }
.section__title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
    color: #212121;
}
.section__title:after {
    content: '';
    display: block;
    width: 70px;
    height: 4px;
    background: #046ad2;
    margin: 0.8rem auto 0;
    border-radius: 4px;
}
.section__title--light { color: #FFFFFF; }
.section__title--light:after { background: #FF4081; }

/* -------------------- HEADER & MENU -------------------- */
.header {
    background: #FFFFFF;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(4px);
    background: rgba(255,255,255,0.95);
}
.header__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 24px;
}
.logo {
    font-weight: 800;
    line-height: 1.2;
}
.logo__main {
    font-size: 1.7rem;
    letter-spacing: -0.5px;
    color: #046ad2;
}
.logo__sub {
    font-size: 0.7rem;
    font-weight: 400;
    color: #424242;
    margin-top: -4px;
}
.nav__list {
    display: flex;
    gap: 2rem;
    list-style: none;
}
.nav__link {
    font-weight: 600;
    color: #212121;
    transition: color 0.2s;
    text-decoration: none;
}
.nav__link:hover { color: #046ad2; }
.burger {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 6px;
}
.burger span {
    width: 28px;
    height: 2px;
    background: #212121;
    transition: 0.2s;
}

/* -------------------- HERO SECTION -------------------- */
.hero {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0358b0 0%, #046ad2 100%);
    margin-bottom: 2rem;
}
.hero__bg {
    position: absolute;
    inset: 0;
    background-image: url('../images/hero-pattern.svg');
    opacity: 0.15;
    background-repeat: repeat;
}
.hero__overlay {
    position: relative;
    text-align: center;
    padding: 40px;
    max-width: 860px;
}
.hero__title {
    font-size: 3.8rem;
    color: #FFFFFF;
    text-shadow: 0 6px 18px rgba(0,0,0,0.3);
}
.hero__title-small {
    font-size: 1.8rem;
    display: block;
    font-weight: 500;
}
.hero__lead {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.9);
    margin: 1rem 0 1.8rem;
}

/* -------------------- КНОПКИ (общие) -------------------- */
.btn {
    display: inline-block;
    background: #046ad2;
    color: #FFFFFF !important;
    padding: 12px 28px;
    border-radius: 40px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 6px 14px rgba(4,106,210,0.3);
    border: none;
}
.btn:hover {
    background: #0358b0;
    transform: translateY(-3px);
    box-shadow: 0 10px 22px rgba(4,106,210,0.4);
    color: #FFFFFF !important;
}
.btn--large { padding: 14px 36px; font-size: 1.2rem; }

/* -------------------- ОСНОВНЫЕ БЛОКИ -------------------- */
.section {
    margin-bottom: 5rem;
}
.section:last-of-type {
    margin-bottom: 0;
}

/* -------------------- БЛОК О ПРИЛОЖЕНИИ -------------------- */
.about__grid {
    display: flex;
    gap: 3rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}
.about__text { flex: 2; }
.about__text p { margin-bottom: 1rem; }
.stats-mini {
    flex: 1;
    display: flex;
    gap: 1rem;
    justify-content: center;
    background: #FFFFFF;
    border-radius: 24px;
    padding: 1.5rem;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.stat-mini__item {
    text-align: center;
    flex: 1;
}
.stat-mini__number {
    font-size: 2.2rem;
    font-weight: 800;
    color: #046ad2;
    display: block;
}
.stat-mini__label { font-size: 0.9rem; color: #424242; }

/* Слайдер скриншотов */
.screenshots-slider {
    margin-top: 2rem;
}
.screenshots__heading {
    font-size: 1.6rem;
    text-align: center;
    margin-bottom: 1.5rem;
    color: #212121;
}
.slider-container {
    overflow: hidden;
    border-radius: 28px;
}
.slider-track {
    display: flex;
    transition: transform 0.4s ease;
}
.slide-item {
    flex: 0 0 100%;
    padding: 0 4px;
}
.slide-item img {
    width: 100%;
    border-radius: 24px;
    box-shadow: 0 8px 28px rgba(0,0,0,0.12);
    display: block;
}
.slider-dots {
    display: none;
    justify-content: center;
    gap: 12px;
    margin-top: 1.2rem;
}
.dot {
    width: 12px;
    height: 12px;
    background: #ccc;
    border-radius: 50%;
    cursor: pointer;
}
.dot.active { background: #046ad2; }

/* DESKTOP: отключаем слайд, показываем сеткой */
@media (min-width: 900px) {
    .slider-container { overflow: visible; }
    .slider-track {
        transform: none !important;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 18px;
    }
    .slide-item { flex: none; padding: 0; }
    .slider-dots { display: none; }
}

/* -------------------- ПОЛЬЗА (карточки) -------------------- */
.section--alt {
    background: #F5F7FA;
    padding: 2rem 0;
    margin-bottom: 5rem;
}
.benefits__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}
.benefit-card {
    background: #FFFFFF;
    border-radius: 1.5rem;
    padding: 1.8rem;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.05);
    text-align: center;
    transition: all 0.2s;
}
.benefit-icon {
    font-size: 2.8rem;
    margin-bottom: 1rem;
}
.benefit-card h3 {
    margin-bottom: 0.5rem;
    color: #212121;
}
.benefit-card p {
    color: #424242;
}

/* -------------------- ПРАВИЛА -------------------- */
.rules__content {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}
.rules__modes, .rules__levels {
    flex: 1;
    background: #FFFFFF;
    padding: 1.6rem;
    border-radius: 24px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    border: 1px solid #E0E0E0;
}
.rules__modes h3, .rules__levels h3 {
    color: #046ad2;
}
.rules__modes ul, .rules__levels ul {
    padding-left: 1.5rem;
    margin-top: 0.5rem;
}
.rules__modes li, .rules__levels li {
    margin-bottom: 0.6rem;
    color: #424242;
}

/* -------------------- СКАЧИВАНИЕ (последний блок) -------------------- */
.section--gradient {
    background: linear-gradient(120deg, #0358b0, #046ad2);
    color: #FFFFFF;
    padding: 3rem 0;
    margin-bottom: 0;
}
.download__sub {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}
.download__buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.8rem;
}
.store-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: #FFFFFF;
    color: #046ad2;
    padding: 12px 28px;
    border-radius: 60px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.store-btn:hover {
    transform: translateY(-4px);
    background: #F0F4FA;
    color: #0358b0;
}
.store-icon { font-size: 1.4rem; }
.download__note {
    text-align: center;
    font-size: 0.85rem;
    opacity: 0.9;
}

/* -------------------- FOOTER -------------------- */
.footer {
    background: #1A2A3A;
    color: #CCDDEB;
    padding: 2rem 0;
    margin-top: 0;
}
.footer__container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}
.footer__link {
    color: #FFFFFF;
    text-decoration: underline;
}
.footer__link:hover { color: #FF4081; }

/* -------------------- Политика конфиденциальности -------------------- */
.privacy-main {
    padding: 3rem 0;
    background: #FAFAFA;
}
.privacy-container {
    max-width: 900px;
    background: #FFFFFF;
    padding: 2rem 2.5rem;
    border-radius: 32px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.05);
}
.privacy-container h1 { font-size: 2.2rem; margin-bottom: 0.5rem; color: #046ad2; }
.privacy-date { color: #046ad2; margin-bottom: 2rem; }
.privacy-container h2 { font-size: 1.5rem; margin: 1.8rem 0 0.8rem; color: #212121; }
.privacy-container p, .privacy-container li { margin-bottom: 0.8rem; color: #424242; }
.privacy-footer { margin-top: 3rem; }

.privacy-footer .btn,
.privacy-footer .btn:link,
.privacy-footer .btn:visited {
    background: #046ad2;
    color: #FFFFFF !important;
    text-decoration: none;
}
.privacy-footer .btn:hover {
    background: #0358b0;
    color: #FFFFFF !important;
}

/* -------------------- СТРАНИЦА УДАЛЕНИЯ АККАУНТА -------------------- */
.delete-account-main {
    padding: 3rem 0;
    background: #FAFAFA;
    min-height: calc(100vh - 200px);
}

.delete-account-container {
    max-width: 900px;
    background: #FFFFFF;
    padding: 2rem 2.5rem;
    border-radius: 32px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.05);
}

.delete-account-container h1 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    color: #046ad2;
}

.delete-account-container .app-name {
    background: #e8f0fe;
    padding: 10px 15px;
    border-radius: 8px;
    display: inline-block;
    margin-bottom: 20px;
    font-weight: 500;
    color: #046ad2;
    font-size: 0.95rem;
}

.delete-account-container h2 {
    font-size: 1.5rem;
    margin: 1.8rem 0 0.8rem;
    color: #212121;
}

.delete-account-container p {
    margin-bottom: 0.8rem;
    color: #424242;
}

.delete-account-container ul, 
.delete-account-container ol {
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
}

.delete-account-container li {
    margin-bottom: 0.6rem;
    color: #424242;
}

.delete-account-container .steps {
    background: #f9f9f9;
    padding: 1.5rem 2rem;
    border-radius: 16px;
    margin: 1.5rem 0;
    border-left: 4px solid #046ad2;
}

.delete-account-container .steps ol {
    margin-left: 0;
}

.delete-account-container .steps li {
    margin: 12px 0;
}

.delete-account-container .data-types {
    background: #fff8e1;
    padding: 1.2rem 1.8rem;
    border-radius: 12px;
    margin: 1.5rem 0;
}

.delete-account-container .data-types.keep-data {
    background: #f0f0f0;
}

.delete-account-container .note {
    background: #ffebee;
    padding: 1.2rem 1.8rem;
    border-radius: 12px;
    margin: 1.5rem 0;
    border-left: 4px solid #d32f2f;
}

.delete-account-container .note strong {
    color: #d32f2f;
}

.delete-account-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
    font-size: 0.85rem;
    color: #666;
}

.delete-account-footer a {
    color: #046ad2;
    text-decoration: underline;
}

.delete-account-footer a:hover {
    color: #0358b0;
}

.delete-account-container .btn {
    margin-top: 1.5rem;
}

/* -------------------- АНИМАЦИЯ ПРИ ПОЯВЛЕНИИ -------------------- */
[data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-reveal].is-visible {
    opacity: 1;
    transform: none;
}

/* -------------------- МОБИЛЬНЫЙ БУРГЕР И АДАПТАЦИЯ -------------------- */
@media (max-width: 768px) {
    .burger {
        display: flex;
    }
    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #FFFFFF;
        box-shadow: 0 12px 20px rgba(0,0,0,0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        z-index: 99;
    }
    .nav.active {
        max-height: 320px;
    }
    .nav__list {
        flex-direction: column;
        padding: 1rem 1.5rem;
        gap: 1rem;
    }
    .hero__title { font-size: 2.5rem; }
    .hero__title-small { font-size: 1.2rem; }
    .section__title { font-size: 1.8rem; }
    .stats-mini { flex-direction: column; }
    .about__grid { flex-direction: column; }
    .rules__modes, .rules__levels { flex: auto; }
    .privacy-container { padding: 1.5rem; }
    .section {
        margin-bottom: 3rem;
    }
    .hero {
        margin-bottom: 1rem;
    }
    
    /* Мобильная адаптация для страницы удаления аккаунта */
    .delete-account-container {
        padding: 1.5rem;
    }
    .delete-account-container .steps {
        padding: 1rem 1.5rem;
    }
    .delete-account-container .data-types {
        padding: 1rem 1.5rem;
    }
    .delete-account-container .note {
        padding: 1rem 1.5rem;
    }
}