/* ========== Переменные ========== */
:root {
    --color-bg: #ffffff;
    --color-text: #1a1a1a;
    --color-muted: #5c5c5c;
    --color-primary: #1e40af;
    --color-primary-dark: #1e3a8a;
    --color-border: #e5e7eb;
    --color-soft: #f8fafc;
    --radius: 12px;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    --container: 1080px;
}

/* ========== База ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== Кнопки ========== */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
    border: 1px solid transparent;
    text-align: center;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn--primary {
    background: var(--color-primary);
    color: #fff;
}

.btn--primary:hover {
    background: var(--color-primary-dark);
    box-shadow: 0 8px 20px rgba(30, 64, 175, 0.35);
}

.btn--ghost {
    background: transparent;
    color: var(--color-text);
    border-color: var(--color-border);
}

.btn--ghost:hover {
    background: var(--color-soft);
}

/* ========== Шапка ========== */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--color-border);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 18px;
}

.logo__accent {
    color: var(--color-primary);
}

.nav {
    display: flex;
    gap: 28px;
}

.nav__link {
    color: var(--color-muted);
    font-size: 15px;
    transition: color 0.2s;
}

.nav__link:hover {
    color: var(--color-primary);
}

/* Бургер (мобильное меню) */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}

.nav-toggle span {
    width: 22px;
    height: 2px;
    background: var(--color-text);
    transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ========== Главный экран ========== */
.hero {
    padding: 80px 0;
    background: linear-gradient(160deg, #eff6ff 0%, #f8fafc 45%, #ffffff 100%);
}

.hero__inner {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero__title {
    font-size: 44px;
    line-height: 1.2;
    letter-spacing: -0.5px;
    margin-bottom: 20px;
}

.hero__accent {
    color: var(--color-primary);
}

.hero__subtitle {
    font-size: 18px;
    color: var(--color-muted);
    margin-bottom: 32px;
}

.hero__subtitle--second {
    margin-bottom: 32px;
}

.hero__actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero__img {
    width: 100%;
}

/* ========== Новая реальность ========== */
.reality {
    padding: 80px 0;
    background: var(--color-soft);
}

.reality__scheme {
    max-width: 720px;
    margin: 0 auto 48px;
}

.reality__img {
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    width: 100%;
}

.reality__facts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.reality__fact {
    text-align: center;
    padding: 28px 20px;
}

.reality__fact-value {
    font-size: 34px;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--color-primary);
    margin-bottom: 10px;
}

.reality__fact-label {
    color: var(--color-muted);
    font-size: 14px;
}

/* ========== Секции ========== */
section[id] {
    scroll-margin-top: 80px;
}

.section__title {
    font-size: 32px;
    letter-spacing: -0.5px;
    text-align: center;
    margin-bottom: 12px;
}

.section__subtitle {
    text-align: center;
    color: var(--color-muted);
    max-width: 620px;
    margin: 0 auto 48px;
}

/* ========== Статистика ========== */
.stats {
    padding: 80px 0;
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #3b82f6 100%);
    color: #fff;
}

.stats .section__title {
    color: #fff;
}

.stats .section__subtitle {
    color: rgba(255, 255, 255, 0.85);
}

.section__accent {
    color: #fff;
}

.stats__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.stat {
    background: #ffffff;
    border-radius: var(--radius);
    padding: 28px 22px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.stat:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.stat__value {
    font-size: 38px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
    color: var(--color-primary);
}

.stat__label {
    font-size: 15px;
    font-weight: 600;
    color: var(--color-text);
}

.stat__text {
    margin-top: 16px;
    font-size: 13px;
    color: var(--color-muted);
    line-height: 1.7;
}

/* ========== Возможности ========== */
.features {
    padding: 80px 0;
}

.features__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 32px 24px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.card__icon {
    font-size: 36px;
    margin-bottom: 16px;
}

.card__title {
    font-size: 20px;
    margin-bottom: 8px;
}

.card__text {
    color: var(--color-muted);
    font-size: 15px;
}

/* ========== Как это работает ========== */
.how {
    padding: 80px 0;
}

.how__steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.step {
    text-align: center;
    padding: 32px 24px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background: var(--color-bg);
    transition: transform 0.2s, box-shadow 0.2s;
}

.step:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.step__num {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step__title {
    font-size: 20px;
    margin-bottom: 8px;
}

.step__text {
    color: var(--color-muted);
    font-size: 15px;
}

/* ========== О сервисе ========== */
.about {
    padding: 80px 0;
    background: var(--color-soft);
}

.about__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about__img {
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.about__text .section__title {
    text-align: left;
}

.about__paragraph {
    color: var(--color-muted);
    margin-bottom: 20px;
}

.about__list {
    list-style: none;
    display: grid;
    gap: 10px;
}

.about__list li {
    padding-left: 28px;
    position: relative;
}

.about__list li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: 700;
}

/* ========== Тарифы ========== */
.pricing {
    padding: 80px 0;
}

.pricing__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: start;
}

.pricing__grid--single {
    grid-template-columns: 1fr;
    justify-items: center;
}

.pricing__grid--single .price-card {
    max-width: 420px;
    width: 100%;
}

.price-card {
    position: relative;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: var(--color-bg);
}

.price-card--popular {
    border-color: var(--color-primary);
    box-shadow: 0 10px 30px rgba(30, 64, 175, 0.15);
    transform: translateY(-8px);
}

.price-card__name {
    font-size: 18px;
    color: var(--color-muted);
}

.price-card__badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: #eed9c4;
    color: #6b4a2b;
    font-size: 13px;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 999px;
    white-space: nowrap;
}

.price-card__old {
    font-size: 18px;
    color: var(--color-muted);
    text-decoration: line-through;
}

.price-card__amount {
    font-size: 40px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 16px;
}

.price-card__period {
    color: var(--color-muted);
    font-size: 16px;
    font-weight: 400;
}

.price-card__list {
    list-style: none;
    display: grid;
    gap: 10px;
    margin-bottom: 24px;
    font-size: 15px;
    color: var(--color-muted);
}

.price-card__list li {
    position: relative;
    padding-left: 18px;
}

.price-card__list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-primary);
}

/* ========== Контакты ========== */
.contact {
    padding: 80px 0;
    background: var(--color-soft);
}

.contact__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact__text .section__title {
    text-align: left;
}

.contact__subtitle {
    color: var(--color-muted);
    margin-bottom: 24px;
}

.contact__links {
    display: grid;
    gap: 10px;
}

.contact__link {
    color: var(--color-primary);
    font-weight: 600;
}

.contact__link:hover {
    text-decoration: underline;
}

/* Форма */
.form {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow);
}

.form__group {
    margin-bottom: 18px;
}

.form__label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
}

.form__input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form__input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.15);
}

.form__submit {
    width: 100%;
}

.form__status {
    margin-top: 14px;
    font-size: 14px;
    text-align: center;
}

.form__status.is-error {
    color: #dc2626;
}

.form__status.is-success {
    color: #16a34a;
}

/* ========== Подвал ========== */
.footer {
    padding: 24px 0;
    border-top: 1px solid var(--color-border);
}

.footer__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    color: var(--color-muted);
    font-size: 14px;
}

.footer__link {
    color: var(--color-muted);
    text-decoration: underline;
    transition: color 0.2s;
}

.footer__link:hover {
    color: var(--color-primary);
}

/* ========== Страница политики ========== */
.page {
    padding: 48px 0 64px;
}

.page__title {
    font-size: 32px;
    letter-spacing: -0.5px;
    margin-bottom: 24px;
}

.page__content {
    max-width: 720px;
}

.page__content h2 {
    font-size: 20px;
    margin: 28px 0 10px;
}

.page__content p {
    color: var(--color-muted);
    line-height: 1.7;
    margin-bottom: 12px;
}

.page__content ul {
    margin: 0 0 12px 22px;
    color: var(--color-muted);
    line-height: 1.7;
}

.page__content a {
    color: var(--color-primary);
}

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

/* ========== Адаптивность ========== */
@media (max-width: 900px) {
    .hero__inner,
    .about__inner,
    .contact__inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero__title {
        font-size: 34px;
    }

    .features__grid,
    .pricing__grid {
        grid-template-columns: 1fr;
    }

    .stats__grid,
    .how__steps {
        grid-template-columns: 1fr;
    }

    .reality__facts {
        grid-template-columns: 1fr;
    }

    .price-card--popular {
        transform: none;
    }
}

@media (max-width: 640px) {
    .nav-toggle {
        display: flex;
    }

    .nav {
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        z-index: 99;
        background: var(--color-bg);
        flex-direction: column;
        gap: 0;
        padding: 12px 0;
        border-bottom: 1px solid var(--color-border);
        transform: translateY(calc(-100% - 64px));
        transition: transform 0.3s;
    }

    .nav.is-open {
        transform: translateY(0);
    }

    .nav__link {
        padding: 12px 20px;
    }

    .hero {
        padding: 48px 0;
    }

    .hero__title {
        font-size: 28px;
    }

    .hero__actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
}
