/* ============================================
   Юрист24 — лендинг
   Deep Navy · mobile-first · vanilla CSS
   ============================================ */

:root {
    --bg:        #0B132B;
    --card:      #141E39;
    --card-hover:#1F2C4E;
    --accent:    #3A6DF0;
    --accent-hover: #5B82F5;
    --text:      #FFFFFF;
    --text-2:    #A0AEC0;
    --radius:    14px;
    --radius-sm: 10px;
    --shadow:    0 10px 30px rgba(0, 0, 0, 0.35);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: 72px;
}

body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

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

.container--narrow { max-width: 860px; }

/* ============ КНОПКИ ============ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 26px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
    text-align: center;
    white-space: normal;
}

.btn:active { transform: translateY(1px); }

.btn--accent {
    background: var(--accent);
    color: #FFFFFF;
    box-shadow: 0 8px 24px rgba(58, 109, 240, 0.35);
}
.btn--accent:hover { background: var(--accent-hover); }

.btn--lg {
    width: 100%;
    max-width: 420px;
    padding: 18px 32px;
    font-size: 18px;
}

.btn--sm { padding: 10px 18px; font-size: 14px; }

/* ============ ШАПКА ============ */
.header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(11, 19, 43, 0.92);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 64px;
    padding-top: 8px;
    padding-bottom: 8px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
    white-space: nowrap;
}
.logo__icon { font-size: 22px; }

.nav {
    display: none;
    gap: 22px;
}

.nav__link {
    color: var(--text-2);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.15s ease;
}
.nav__link:hover { color: var(--text); }
.nav__link--active { color: var(--text); }

.header__cta { display: none; }

/* ============ HERO ============ */
.hero {
    padding: 64px 0 56px;
    background:
        radial-gradient(900px 400px at 85% -10%, rgba(58, 109, 240, 0.28), transparent 60%),
        radial-gradient(700px 380px at 0% 100%, rgba(58, 109, 240, 0.14), transparent 55%),
        var(--bg);
}

.hero__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero__title {
    font-size: clamp(30px, 7vw, 56px);
    line-height: 1.12;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 18px;
}

.hero__subtitle {
    color: var(--text-2);
    font-size: clamp(16px, 3vw, 19px);
    max-width: 640px;
    margin-bottom: 32px;
}

.hero__badges {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 28px;
    font-size: 14px;
    color: var(--text-2);
}

/* Бейджи над заголовком HERO (v2) */
.hero__top-badges {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.hero__top-badges li {
    background: rgba(58, 109, 240, 0.14);
    border: 1px solid rgba(58, 109, 240, 0.35);
    color: var(--text);
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
}

.hero__micro {
    color: var(--text-2);
    font-size: 13px;
    margin-top: 14px;
    max-width: 480px;
}

/* Подзаголовки секций (v2) */
.section__subtitle {
    color: var(--text-2);
    font-size: 15px;
    line-height: 1.6;
    text-align: center;
    max-width: 720px;
    margin: -14px auto 28px;
}

/* Сетка 2 колонки (анти-блок) */
.grid--2 { grid-template-columns: 1fr; }

.card__text--accent {
    color: var(--text);
    margin-top: 8px;
}

.card__text + .card__text { margin-top: 8px; }

/* Шаги — мета-строка времени/цены */
.step__meta {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 13px;
    color: var(--accent-hover);
    font-weight: 500;
}

/* ============ СЕКЦИИ ============ */
.section { padding: 56px 0; }

.section__title {
    font-size: clamp(24px, 4.5vw, 36px);
    font-weight: 700;
    letter-spacing: -0.01em;
    text-align: center;
    margin-bottom: 32px;
    line-height: 1.2;
}

/* ============ СЕТКИ ============ */
.grid {
    display: grid;
    gap: 16px;
}

.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: repeat(2, 1fr); }

/* ============ КАРТОЧКИ ============ */
.card {
    background: var(--card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius);
    padding: 24px 20px;
    transition: background 0.15s ease, transform 0.15s ease;
}
.card:hover { background: var(--card-hover); }

.card__emoji { font-size: 30px; margin-bottom: 10px; line-height: 1; }
.card__title { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.card__text { color: var(--text-2); font-size: 15px; }

/* ============ ПЛИТКИ НИШ ============ */
.tile {
    background: var(--card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-sm);
    padding: 16px 14px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    transition: background 0.15s ease;
    min-width: 0;
}
.tile:hover { background: var(--card-hover); }

.tile__body {
    min-width: 0;
    overflow-wrap: break-word;
    word-break: break-word;
}

.tile__emoji { font-size: 22px; line-height: 1.2; flex-shrink: 0; }
.tile__title { font-size: 15px; font-weight: 700; margin-bottom: 2px; }
.tile__text { font-size: 13px; color: var(--text-2); }

.niches__note {
    margin-top: 22px;
    text-align: center;
    font-size: 13px;
    color: var(--text-2);
}

/* ============ ШАГИ ============ */
.step { position: relative; padding-top: 40px; text-align: left; }

.step__num {
    position: absolute;
    top: 18px;
    left: 20px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.how__cta { text-align: center; margin-top: 28px; }

/* ============ ТАРИФЫ ============ */
.price { display: flex; flex-direction: column; }

.price--featured {
    border: 2px solid var(--accent);
    position: relative;
}

.price__tag {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 999px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.price__name { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.price__value {
    font-size: 34px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--accent-hover);
}
.price__first {
    font-size: 13px;
    color: var(--text-2);
    margin-bottom: 14px;
}

.price__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: auto;
    padding-top: 8px;
    color: var(--text-2);
    font-size: 14px;
}

.price__list li { padding-left: 20px; position: relative; }
.price__list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}

.pricing__note {
    margin-top: 24px;
    text-align: center;
    font-size: 13px;
    color: var(--text-2);
}

.price__note {
    margin: 14px 0 10px;
    font-size: 13px;
    color: var(--text-2);
    font-style: italic;
}

.price__cta {
    margin-top: auto;
    width: 100%;
}

/* Почему мы — текст, цифры, доверие (v2) */
.why__text p {
    color: var(--text-2);
    font-size: 15px;
    line-height: 1.7;
    max-width: 860px;
    margin: 0 auto 14px;
    text-align: center;
}

.why__text p:last-child { margin-bottom: 32px; }

.why__stats { margin-bottom: 32px; }

.why__stat {
    text-align: center;
    padding: 20px 14px;
}

.why__stat-num {
    font-size: 34px;
    font-weight: 800;
    color: var(--accent-hover);
    line-height: 1;
    margin-bottom: 6px;
}

.why__stat-label {
    font-size: 13px;
    color: var(--text-2);
}

.why__trust {
    margin-top: 28px;
    background: rgba(58, 109, 240, 0.10);
    border: 1px solid rgba(58, 109, 240, 0.30);
    border-radius: var(--radius);
    padding: 18px 20px;
    text-align: center;
    color: var(--text);
    font-size: 14px;
}

/* Таблица сравнения (v2) */
.compare {
    margin: 32px 0 8px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.compare__scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.compare__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    min-width: 620px;
}

.compare__table th,
.compare__table td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    vertical-align: top;
}

.compare__table thead th {
    background: var(--card);
    color: var(--text);
    font-weight: 700;
    font-size: 13px;
}

.compare__table tbody td:first-child {
    color: var(--text-2);
    font-weight: 600;
    white-space: nowrap;
}

.compare__table tbody tr:last-child td { border-bottom: none; }

.compare__col-own {
    background: rgba(58, 109, 240, 0.14);
    color: var(--text);
    font-weight: 600;
}

.compare__table thead th.compare__col-own {
    background: rgba(58, 109, 240, 0.30);
}

/* Финальный CTA — микро-текст (v2) */
.final__micro {
    color: var(--text-2);
    font-size: 13px;
    margin-top: 14px;
    max-width: 480px;
}

.final__subtitle + .final__subtitle { margin-top: 8px; }

.final__subtitle--strong {
    color: var(--text);
    font-weight: 600;
    margin-top: 14px;
}

/* Футер — дисклеймер (v2) */
.footer__disclaimer {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 16px 0;
    font-size: 12px;
    color: var(--text-2);
    line-height: 1.6;
    text-align: center;
}

/* ============ FAQ =========== */
.faq__item {
    background: var(--card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-sm);
    margin-bottom: 10px;
    overflow: hidden;
}

.faq__item[open] { background: var(--card-hover); }

.faq__q {
    padding: 16px 46px 16px 18px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    list-style: none;
    position: relative;
    user-select: none;
}

.faq__q::-webkit-details-marker { display: none; }

.faq__q::after {
    content: "+";
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 22px;
    color: var(--accent);
    font-weight: 400;
    transition: transform 0.15s ease;
}

.faq__item[open] .faq__q::after { transform: translateY(-50%) rotate(45deg); }

.faq__a { padding: 0 18px 16px; color: var(--text-2); font-size: 14px; }
.faq__a p + p { margin-top: 8px; }

/* ============ ФИНАЛЬНЫЙ CTA =========== */
.final {
    background:
        radial-gradient(700px 300px at 50% 0%, rgba(58, 109, 240, 0.25), transparent 60%),
        var(--bg);
}

.final__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.final__title {
    font-size: clamp(24px, 5.5vw, 40px);
    font-weight: 800;
    margin-bottom: 12px;
    line-height: 1.15;
}

.final__subtitle { color: var(--text-2); font-size: 16px; margin-bottom: 28px; }

/* ============ ФУТЕР =========== */
.footer {
    background: #0A1128;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 40px 0 24px;
    font-size: 14px;
    color: var(--text-2);
}

.footer__top {
    display: grid;
    gap: 28px;
    margin-bottom: 28px;
}

.footer__brand .logo__text { font-size: 18px; color: var(--text); }
.footer__slogan { margin-top: 8px; }

.footer__nav { display: flex; flex-direction: column; gap: 10px; }
.footer__nav a { color: var(--text-2); text-decoration: none; }
.footer__nav a:hover { color: var(--text); }

.footer__contacts a { color: var(--text-2); text-decoration: none; }
.footer__contacts a:hover { color: var(--text); }

.footer__label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text);
    margin: 14px 0 4px;
}

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 18px;
    text-align: center;
    font-size: 13px;
    color: var(--text-2);
}

/* ============ DOC-СТРАНИЦЫ (оферта/политика/согласие) =========== */
.doc {
    max-width: 860px;
    padding: 48px 20px 64px;
}

.doc__title {
    font-size: clamp(24px, 4.5vw, 34px);
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.doc__placeholder {
    color: var(--text-2);
    font-size: 16px;
    line-height: 1.6;
}

.doc__placeholder a { color: var(--accent-hover); }

/* ============ ПЛАВАЮЩАЯ CTA =========== */
.float-cta {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 60;
    display: none;
    background: var(--accent);
    color: #fff;
    text-align: center;
    padding: 15px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
}

.float-cta.visible { display: block; }

/* ==========================================
   ДЕСКТОП ≥ 768px
   ========================================== */
@media (min-width: 768px) {
    .nav { display: flex; }
    .header__cta { display: inline-flex; }

    .grid--3 { grid-template-columns: repeat(3, 1fr); }
    .grid--4 { grid-template-columns: repeat(4, 1fr); }
    .grid--2 { grid-template-columns: repeat(2, 1fr); }

    .hero__badges { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 16px; }

    .footer__top { grid-template-columns: 1fr 1fr 1.2fr; gap: 40px; }

    .float-cta { display: none !important; } /* на десктопе плавающей кнопки нет */
}

/* ==========================================
   МОБИЛЬН: 375px
   ==========================================*/
@media (max-width: 767px) {
    .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .section { padding: 44px 0; }
}

@media (max-width: 479px) {
    .header__cta { display: none; }
    .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}