/*
Theme Name: NotionSetup
Theme URI: https://notionsetup.ru
Author: AvgarVPN Team
Description: Индивидуальная тема для notionsetup.ru. Дизайн в стиле Notion: чистый белый, минималистичный, документный интерфейс.
Version: 1.0.0
Text Domain: notionsetup-theme
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ─── Tokens ─────────────────────────────────────────── */
:root {
    /* Notion-inspired black/white palette */
    --brand:       #191919;
    --brand-dk:    #000000;
    --brand-lt:    #37352F;
    --brand-sf:    rgba(25,25,25,0.06);
    --brand-sf2:   rgba(25,25,25,0.12);

    /* Clean white/light palette */
    --bg:          #FFFFFF;
    --bg2:         #F7F7F5;
    --bg3:         #EFEEEA;
    --bg4:         #E9E9E7;
    --bg-dark:     #191919;
    --bg-dark2:    #2F2F2F;
    --card:        #FFFFFF;
    --card-alt:    #F7F7F5;
    --border:      rgba(55,53,47,0.09);
    --border-hi:   rgba(55,53,47,0.25);

    /* Text */
    --text:        #191919;
    --text-inv:    #FFFFFF;
    --text2:       #37352F;
    --muted:       #787774;
    --muted2:      #9B9A97;
    --muted-inv:   rgba(255,255,255,0.70);

    /* Status */
    --red:         #E03E3E;
    --red-sf:      rgba(224,62,62,0.08);
    --green:       #0F9D58;
    --green-sf:    rgba(15,157,88,0.08);
    --blue:        #2EAADC;
    --blue-sf:     rgba(46,170,220,0.10);

    /* Shadows */
    --shadow-sm:   0 1px 3px rgba(0,0,0,0.06), 0 0 1px rgba(0,0,0,0.04);
    --shadow:      0 2px 12px rgba(0,0,0,0.08), 0 1px 3px rgba(0,0,0,0.05);
    --shadow-lg:   0 4px 32px rgba(0,0,0,0.10), 0 2px 8px rgba(0,0,0,0.06);
    --shadow-glow: 0 0 0 3px rgba(25,25,25,0.15);

    /* Geometry */
    --radius:      12px;
    --radius-sm:   8px;
    --radius-xs:   6px;
    --radius-pill: 999px;
    --max:         1080px;
}

/* ─── Reset ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

/* ─── Layout ─────────────────────────────────────────── */
.wrap {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 24px;
}

/* ─── Screen reader ──────────────────────────────────── */
.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0);
    white-space: nowrap; border: 0;
}

/* ─── Buttons ────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    border: none;
    transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
    background: var(--brand);
    color: var(--text-inv);
    box-shadow: 0 1px 3px rgba(0,0,0,0.20);
}
.btn--primary:hover {
    background: var(--brand-dk);
    box-shadow: 0 4px 14px rgba(0,0,0,0.25);
}

.btn--secondary {
    background: transparent;
    color: var(--text);
    border: 1.5px solid var(--border-hi);
}
.btn--secondary:hover {
    background: var(--bg2);
    border-color: var(--brand);
}

.btn--white {
    background: #FFFFFF;
    color: var(--brand);
    box-shadow: 0 1px 3px rgba(0,0,0,0.12);
}
.btn--white:hover {
    background: #f5f5f5;
    box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}

.btn-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

/* ─── Section common ─────────────────────────────────── */
.section-title {
    font-size: clamp(24px, 3.5vw, 34px);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.03em;
    margin: 0 0 12px;
    color: var(--text);
}
.section-lead {
    font-size: 17px;
    color: var(--muted);
    margin: 0 0 40px;
    max-width: 600px;
}

/* ─── Header ─────────────────────────────────────────── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
}
.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
    gap: 16px;
}

.site-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 15px;
    color: var(--text);
    flex-shrink: 0;
}
.site-brand__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--brand);
    border-radius: 6px;
    font-size: 14px;
    color: #fff;
    font-weight: 800;
    flex-shrink: 0;
}
.site-brand__name {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.01em;
}
.site-brand__sub {
    font-size: 11px;
    color: var(--muted);
    font-weight: 500;
    border-left: 1px solid var(--border-hi);
    padding-left: 8px;
    margin-left: 2px;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}
.site-nav__link {
    padding: 6px 12px;
    border-radius: var(--radius-xs);
    font-size: 14px;
    font-weight: 500;
    color: var(--muted);
    transition: color 0.15s, background 0.15s;
}
.site-nav__link:hover { color: var(--text); background: var(--bg2); }
.site-nav__link--cta {
    background: var(--brand);
    color: #fff !important;
    font-weight: 600;
    padding: 6px 14px;
}
.site-nav__link--cta:hover { background: var(--brand-dk) !important; }
.site-nav__link--support {
    border: 1px solid var(--border-hi);
    color: var(--text2);
    font-weight: 600;
}
.site-nav__link--support:hover {
    color: var(--text);
    background: var(--bg2);
    border-color: var(--border-hi);
}

@media (max-width: 600px) {
    .site-nav__link:not(.site-nav__link--cta):not(.site-nav__link--support) { display: none; }
    .site-brand__sub { display: none; }
}

/* ─── Hero ───────────────────────────────────────────── */
.hero {
    padding: 72px 0 60px;
    text-align: center;
    background: var(--bg);
}
.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border: 1px solid var(--border-hi);
    border-radius: var(--radius-pill);
    padding: 5px 14px;
    margin: 0 0 24px;
}
.hero h1 {
    font-size: clamp(32px, 5.5vw, 56px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.04em;
    margin: 0 0 20px;
    color: var(--text);
    max-width: 780px;
    margin-left: auto;
    margin-right: auto;
}
.hero h1 .accent {
    color: var(--muted);
    font-weight: 700;
}
.hero-lead {
    font-size: 18px;
    color: var(--muted);
    line-height: 1.6;
    margin: 0 auto 32px;
    max-width: 560px;
}
.hero .btn-row {
    justify-content: center;
    margin-bottom: 56px;
}

/* ─── Notion page mock ───────────────────────────────── */
.notion-mock {
    max-width: 720px;
    margin: 0 auto;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    text-align: left;
}
.notion-mock__titlebar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--bg2);
    border-bottom: 1px solid var(--border);
}
.notion-mock__dot {
    width: 11px; height: 11px;
    border-radius: 50%;
    flex-shrink: 0;
}
.notion-mock__dot--red   { background: #FF5F56; }
.notion-mock__dot--amber { background: #FFBD2E; }
.notion-mock__dot--green { background: #27C93F; }
.notion-mock__url {
    flex: 1;
    text-align: center;
    font-size: 12px;
    color: var(--muted);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    padding: 3px 12px;
    max-width: 280px;
    margin: 0 auto;
}
.notion-mock__body {
    display: grid;
    grid-template-columns: 200px 1fr;
    min-height: 240px;
}
.notion-mock__sidebar {
    background: var(--bg2);
    border-right: 1px solid var(--border);
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.notion-mock__sidebar-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 8px;
    border-radius: var(--radius-xs);
    font-size: 13px;
    color: var(--muted);
    font-weight: 500;
}
.notion-mock__sidebar-item--active {
    background: var(--bg3);
    color: var(--text);
}
.notion-mock__sidebar-icon {
    width: 18px; height: 18px;
    background: var(--bg3);
    border-radius: 4px;
    display: flex; align-items: center; justify-content: center;
    font-size: 10px;
    flex-shrink: 0;
}
.notion-mock__content {
    padding: 24px 28px;
    position: relative;
}
.notion-mock__page-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 16px;
    letter-spacing: -0.02em;
}
.notion-mock__block {
    height: 14px;
    background: var(--bg3);
    border-radius: 4px;
    margin: 0 0 10px;
}
.notion-mock__block--short { width: 65%; }
.notion-mock__block--med   { width: 85%; }
.notion-mock__block--long  { width: 100%; }
/* blocked state */
.notion-mock--blocked .notion-mock__content {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(224,62,62,0.03);
}
.notion-mock__block-overlay {
    text-align: center;
    padding: 12px 20px;
}
.notion-mock__block-overlay .block-icon {
    font-size: 36px;
    margin-bottom: 12px;
}
.notion-mock__block-overlay .block-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--red);
    margin: 0 0 4px;
}
.notion-mock__block-overlay .block-sub {
    font-size: 12px;
    color: var(--muted);
    margin: 0;
}
/* working state */
.notion-mock--working .notion-mock__page-title { color: var(--text); }

.mock-compare {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}
.mock-compare__label {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.mock-compare__label--bad  { color: var(--red); }
.mock-compare__label--good { color: var(--green); }

@media (max-width: 640px) {
    .mock-compare { grid-template-columns: 1fr; }
    .notion-mock__body { grid-template-columns: 1fr; }
    .notion-mock__sidebar { display: none; }
}

/* ─── Problem section ────────────────────────────────── */
.problems-section {
    padding: 72px 0;
    background: var(--bg2);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.problems-section .wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}
.problems-text {}
.problems-text .section-lead { max-width: none; }

.problem-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.problem-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}
.problem-item__icon {
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 1px;
}
.problem-item__body {}
.problem-item__title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 2px;
}
.problem-item__desc {
    font-size: 13px;
    color: var(--muted);
    margin: 0;
}

@media (max-width: 720px) {
    .problems-section .wrap { grid-template-columns: 1fr; }
}

/* ─── Features grid ──────────────────────────────────── */
.features-section {
    padding: 72px 0;
    background: var(--bg);
}
.features-section__inner {
    text-align: center;
    margin-bottom: 44px;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.feature-tile {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
}
.feature-tile__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px; height: 32px;
    background: var(--brand);
    color: #fff;
    border-radius: var(--radius-xs);
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 16px;
}
.feature-tile__title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 8px;
    letter-spacing: -0.01em;
}
.feature-tile__body {
    font-size: 14px;
    color: var(--muted);
    margin: 0;
    line-height: 1.6;
}

@media (max-width: 720px) {
    .features-grid { grid-template-columns: 1fr; }
}

/* ─── Steps section ──────────────────────────────────── */
.steps-section {
    padding: 72px 0;
    background: var(--bg-dark);
}
.steps-section .section-title,
.steps-section .section-lead { color: var(--text-inv); }
.steps-section .section-lead { color: var(--muted-inv); }
.steps-section__header { margin-bottom: 44px; }

.steps-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 680px;
}
.step-item {
    display: flex;
    gap: 20px;
    padding: 28px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    position: relative;
}
.step-item:last-child { border-bottom: none; }

.step-item__num {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    width: 40px;
}
.step-item__circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.10);
    border: 2px solid rgba(255,255,255,0.20);
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}
.step-item--featured .step-item__circle {
    background: #fff;
    color: var(--brand);
    border-color: #fff;
}
.step-item__line {
    flex: 1;
    width: 2px;
    background: rgba(255,255,255,0.10);
    margin: 8px auto 0;
}
.step-item:last-child .step-item__line { display: none; }

.step-item__body { flex: 1; }
.step-item__title {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin: 8px 0 8px;
    letter-spacing: -0.02em;
}
.step-item__desc {
    font-size: 15px;
    color: rgba(255,255,255,0.65);
    margin: 0;
}
.step-item__actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
    flex-wrap: wrap;
}

/* ─── Plans / email section ──────────────────────────── */
.plans-section {
    padding: 72px 0;
    background: var(--bg2);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.plans-section__header {
    text-align: center;
    margin-bottom: 44px;
}
.plans-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.plan-card {
    background: var(--card);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.15s, border-color 0.15s;
}
.plan-card:hover {
    box-shadow: var(--shadow);
    border-color: var(--border-hi);
}
.plan-card--featured {
    border-color: var(--brand);
    box-shadow: var(--shadow);
    position: relative;
}
.plan-card__badge {
    display: inline-block;
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--brand);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 3px 12px;
    border-radius: var(--radius-pill);
    white-space: nowrap;
}
.plan-card__period {
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 12px;
}
.plan-card__price {
    font-size: 32px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.03em;
    margin: 0 0 4px;
    line-height: 1;
}
.plan-card__price span {
    font-size: 16px;
    font-weight: 500;
    color: var(--muted);
    letter-spacing: 0;
}
.plan-card__old {
    font-size: 13px;
    color: var(--muted2);
    text-decoration: line-through;
    margin: 0 0 16px;
    min-height: 20px;
}
.plan-card__features {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}
.plan-card__features li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    color: var(--text2);
}
.plan-card__features li::before {
    content: '✓';
    color: var(--green);
    font-weight: 700;
    font-size: 12px;
    flex-shrink: 0;
    margin-top: 1px;
}
.plan-card__btn {
    display: block;
    width: 100%;
    padding: 11px 16px;
    border-radius: var(--radius-sm);
    background: var(--brand);
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    text-align: center;
    transition: background 0.15s;
}
.plan-card__btn:hover { background: var(--brand-dk); }

.plan-card__form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
}
.plan-card__input {
    width: 100%;
    padding: 10px 12px;
    font-family: inherit;
    font-size: 14px;
    border: 1.5px solid var(--border-hi);
    border-radius: var(--radius-sm);
    outline: none;
    background: var(--bg);
    color: var(--text);
    transition: border-color 0.15s;
    box-sizing: border-box;
}
.plan-card__input:focus { border-color: var(--brand); }
.plan-card__consent {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 11px;
    line-height: 1.45;
    color: var(--muted);
    cursor: pointer;
}
.plan-card__consent input { margin-top: 2px; cursor: pointer; flex-shrink: 0; }
.plan-card__consent a { color: var(--text); text-decoration: underline; }
.plan-card__submit {
    display: block;
    width: 100%;
    padding: 11px 16px;
    border-radius: var(--radius-sm);
    background: var(--brand);
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    text-align: center;
    transition: background 0.15s;
}
.plan-card__submit:hover { background: var(--brand-dk); }
.plan-card--featured .plan-card__submit { background: var(--brand); }

.plans-section__note {
    text-align: center;
    font-size: 13px;
    color: var(--muted);
    margin-top: 28px;
}
.plans-section__note a { color: var(--text); font-weight: 500; }

@media (max-width: 860px) {
    .plans-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
    .plans-grid { grid-template-columns: 1fr; }
}

/* ─── Email form ─────────────────────────────────────── */
.email-form-section {
    padding: 72px 0;
    background: var(--bg);
}
.email-form-section__inner {
    max-width: 540px;
    margin: 0 auto;
    text-align: center;
}
.email-input-row {
    display: flex;
    gap: 0;
    margin-bottom: 12px;
}
.email-input {
    flex: 1;
    padding: 12px 16px;
    font-family: inherit;
    font-size: 15px;
    border: 1.5px solid var(--border-hi);
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    outline: none;
    background: var(--bg);
    color: var(--text);
    transition: border-color 0.15s;
}
.email-input:focus { border-color: var(--brand); }
.email-input-btn {
    padding: 12px 20px;
    background: var(--brand);
    color: #fff;
    border: 1.5px solid var(--brand);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}
.email-input-btn:hover { background: var(--brand-dk); border-color: var(--brand-dk); }

/* ─── FAQ ────────────────────────────────────────────── */
.faq-section {
    padding: 72px 0;
    background: var(--bg);
    border-top: 1px solid var(--border);
}
.faq-section__inner {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 64px;
    align-items: start;
}
.faq-section__label { margin: 0; }
.faq-section__label .section-title { margin: 0; }

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}
details.faq-item {
    border-bottom: 1px solid var(--border);
}
details.faq-item:first-child { border-top: 1px solid var(--border); }

details.faq-item summary {
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding: 18px 0;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    user-select: none;
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after {
    content: '+';
    flex-shrink: 0;
    font-size: 20px;
    font-weight: 400;
    color: var(--muted);
    transition: transform 0.2s;
    line-height: 1;
    margin-top: 2px;
}
details.faq-item[open] summary::after {
    content: '–';
}
details.faq-item .faq-answer {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.7;
    padding-bottom: 18px;
}

@media (max-width: 720px) {
    .faq-section__inner { grid-template-columns: 1fr; gap: 32px; }
}

/* ─── Footer ─────────────────────────────────────────── */
.site-footer {
    background: var(--bg2);
    border-top: 1px solid var(--border);
    padding: 40px 0 32px;
}
.site-footer__inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 32px;
    align-items: start;
}
.footer-brand {}
.footer-brand__name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
}
.footer-brand__desc {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.6;
    max-width: 440px;
    margin: 0;
}
.footer-disclaimer {
    font-size: 11px;
    color: var(--muted2);
    margin-top: 12px;
    max-width: 440px;
    line-height: 1.6;
}
.footer-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: right;
}
.footer-links a {
    font-size: 13px;
    color: var(--muted);
    transition: color 0.15s;
}
.footer-links a:hover { color: var(--text); }
.footer-copy {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    font-size: 12px;
    color: var(--muted2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

@media (max-width: 600px) {
    .site-footer__inner { grid-template-columns: 1fr; }
    .footer-links { text-align: left; }
}

/* ─── Notice / alert ─────────────────────────────────── */
.notice {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 20px;
}
.notice--success { background: var(--green-sf); color: var(--green); border: 1px solid rgba(15,157,88,0.2); }
.notice--error   { background: var(--red-sf); color: var(--red); border: 1px solid rgba(224,62,62,0.2); }

/* ─── Email page specific ────────────────────────────── */
.email-page {
    padding: 56px 0 72px;
}
.email-page__header {
    text-align: center;
    margin-bottom: 48px;
}
.email-plans {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}
@media (max-width: 860px) {
    .email-plans { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
    .email-plans { grid-template-columns: 1fr; }
}

.email-plan {
    background: var(--card);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 16px;
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s;
    position: relative;
}
.email-plan:hover {
    border-color: var(--brand);
    box-shadow: var(--shadow-sm);
}
.email-plan.is-selected {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(25,25,25,0.12);
}
.email-plan__badge {
    position: absolute;
    top: -9px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--brand);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    white-space: nowrap;
}
.email-plan__period {
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 8px;
}
.email-plan__price {
    font-size: 26px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.03em;
    line-height: 1;
    margin: 0 0 2px;
}
.email-plan__price span {
    font-size: 14px;
    font-weight: 500;
    color: var(--muted);
    letter-spacing: 0;
}
.email-plan__old {
    font-size: 12px;
    color: var(--muted2);
    text-decoration: line-through;
    min-height: 18px;
    margin: 0;
}

.checkout-form {
    max-width: 420px;
    margin: 0 auto;
}
.form-field {
    margin-bottom: 16px;
}
.form-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text2);
    margin-bottom: 6px;
}
.form-field input[type="email"],
.form-field input[type="text"] {
    width: 100%;
    padding: 11px 14px;
    font-family: inherit;
    font-size: 15px;
    border: 1.5px solid var(--border-hi);
    border-radius: var(--radius-sm);
    background: var(--bg);
    color: var(--text);
    outline: none;
    transition: border-color 0.15s;
}
.form-field input:focus { border-color: var(--brand); }

.form-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 13px;
    color: var(--muted);
    cursor: pointer;
    line-height: 1.5;
}
.form-consent input { margin-top: 3px; cursor: pointer; }
.form-consent a { color: var(--text); text-decoration: underline; }

.form-submit {
    width: 100%;
    padding: 14px;
    background: var(--brand);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s;
}
.form-submit:hover { background: var(--brand-dk); }

/* ─── Responsive tweaks ──────────────────────────────── */
@media (max-width: 480px) {
    .hero { padding: 48px 0 40px; }
    .hero h1 { font-size: 28px; }
    .hero-lead { font-size: 16px; }
}


/* ─── Blog / Knowledge Base ──────────────────────────── */

.blog-eyebrow,
.blog-card__eyebrow {
    color: var(--brand);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.blog-hero,
.article-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, var(--bg2) 0%, var(--bg) 100%);
    border-bottom: 1px solid var(--border);
}

.blog-hero::after,
.article-hero::after {
    content: '';
    position: absolute;
    width: 360px;
    height: 360px;
    right: -140px;
    bottom: -220px;
    border: 70px solid var(--brand-soft);
    border-radius: 50%;
    pointer-events: none;
}

.blog-hero__inner {
    position: relative;
    z-index: 1;
    min-height: 320px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    align-items: center;
    gap: 40px;
    padding-top: 48px;
    padding-bottom: 48px;
}

.blog-hero h1,
.article-hero h1 {
    max-width: 850px;
    margin: 12px 0 20px;
    font-size: clamp(32px, 5vw, 54px);
    font-weight: 900;
    line-height: 1.04;
    letter-spacing: -.04em;
}

.blog-hero p,
.article-deck {
    max-width: 640px;
    margin: 0;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.7;
}

.blog-hero__status {
    display: grid;
    gap: 6px;
    padding: 20px;
    background: var(--card);
    border: 1px solid var(--border-hi);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.blog-hero__status span { color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.blog-hero__status strong { font-size: 26px; letter-spacing: -.04em; }
.blog-hero__status small { color: var(--muted2); line-height: 1.5; font-size: 13px; }

.blog-index { padding: 56px 0 80px; }

.blog-index__head,
.related-section__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

.blog-index__head h2,
.related-section__head h2,
.editorial-note h2 {
    margin: 0 0 6px;
    font-size: clamp(24px, 3.5vw, 36px);
    font-weight: 900;
    line-height: 1.12;
    letter-spacing: -.03em;
}

.blog-index__head p { margin: 0; color: var(--muted); font-size: 15px; }

.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.blog-card {
    display: flex;
    flex-direction: column;
    min-height: 280px;
    overflow: hidden;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: transform .18s, box-shadow .18s, border-color .18s;
}

.blog-card:hover {
    transform: translateY(-3px);
    border-color: var(--border-hi);
    box-shadow: var(--shadow);
}

.blog-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 28px;
}

.blog-card h2 {
    margin: 14px 0 10px;
    font-size: clamp(20px, 2.6vw, 28px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -.03em;
}

.blog-card p { color: var(--muted); line-height: 1.6; font-size: 14px; }
.blog-card__link { margin-top: auto; padding-top: 14px; color: var(--brand); font-weight: 800; font-size: 14px; }

.blog-card__meta {
    display: flex;
    padding: 12px 28px;
    color: var(--muted2);
    background: var(--bg2);
    border-top: 1px solid var(--border);
    font-size: 12px;
}

.blog-empty {
    grid-column: 1 / -1;
    padding: 44px;
    text-align: center;
    color: var(--muted2);
    background: var(--card);
    border: 1px dashed var(--border);
    border-radius: var(--radius);
}

.editorial-note {
    padding: 56px 0;
    background: var(--bg2);
    border-top: 1px solid var(--border);
}

.editorial-note__inner {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    gap: 48px;
    align-items: center;
}

.editorial-note p { color: var(--muted); font-size: 16px; line-height: 1.75; }

/* ─── Article Hero ───────────────────────────────────── */
.article-hero__inner {
    position: relative;
    z-index: 1;
    padding-top: 44px;
    padding-bottom: 52px;
}

.article-breadcrumbs {
    display: flex;
    gap: 9px;
    margin-bottom: 28px;
    color: var(--muted2);
    font-size: 13px;
}

.article-breadcrumbs a:hover { color: var(--text); }

.article-byline {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin-top: 22px;
    color: var(--muted2);
    font-size: 13px;
}

/* ─── Article Shell ──────────────────────────────────── */
.article-shell {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 44px;
    padding: 44px 0 36px;
}

.article-aside { display: flex; flex-direction: column; gap: 18px; }

.article-aside__box {
    position: sticky;
    top: 80px;
    background: var(--card);
    border: 1px solid var(--border-hi);
    border-radius: var(--radius);
    padding: 22px;
}

.article-aside__box strong { display: block; margin-bottom: 6px; font-size: 15px; }
.article-aside__box p { color: var(--muted); font-size: 13px; line-height: 1.6; margin: 0 0 14px; }

.article-aside__trust {
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: var(--muted2);
    font-size: 12px;
}

.article-aside__trust span::before { content: '\2713 '; color: var(--brand); }

.article-main { min-width: 0; }

.article-answer {
    background: var(--brand-soft);
    border: 1px solid var(--border-hi);
    border-radius: var(--radius-sm);
    padding: 18px 22px;
    margin-bottom: 28px;
}

.article-answer strong {
    display: block;
    color: var(--text);
    margin-bottom: 8px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.article-answer p { color: var(--muted); font-size: 15px; line-height: 1.7; margin: 0; }

.article-disclaimer {
    margin-top: 36px;
    padding: 16px 20px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 13px;
    line-height: 1.7;
    color: var(--muted2);
}

.article-disclaimer strong { color: var(--muted); }

.article-cta {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 28px;
    align-items: center;
    margin-top: 36px;
    padding: 32px;
    background: var(--brand);
    border-radius: var(--radius);
    color: #fff;
}

.article-cta h2 { margin: 10px 0 12px; font-size: clamp(18px, 2.5vw, 26px); font-weight: 800; letter-spacing: -.03em; }
.article-cta p { color: rgba(255,255,255,0.82); font-size: 15px; line-height: 1.6; margin: 0; }

.btn--white {
    background: #fff;
    color: var(--brand);
    font-weight: 700;
    white-space: nowrap;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    transition: background .15s;
}
.btn--white:hover { background: rgba(255,255,255,0.9); }

/* ─── Related ────────────────────────────────────────── */
.related-section {
    padding: 44px 0 56px;
    border-top: 1px solid var(--border);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.related-card {
    display: block;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 22px;
    transition: border-color .15s, transform .15s;
}

.related-card:hover {
    border-color: var(--border-hi);
    transform: translateY(-2px);
}

.related-card span {
    display: block;
    color: var(--brand);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.related-card strong {
    display: block;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 6px;
}

.related-card p { color: var(--muted); font-size: 13px; line-height: 1.55; margin: 0; }

@media (max-width: 860px) {
    .blog-hero__inner { grid-template-columns: 1fr; min-height: auto; }
    .article-shell { grid-template-columns: 1fr; }
    .blog-grid { grid-template-columns: 1fr; }
    .related-grid { grid-template-columns: 1fr; }
    .editorial-note__inner { grid-template-columns: 1fr; }
    .article-cta { grid-template-columns: 1fr; }
}

/* ─── Free trial (homepage + /free-trial/) ─────────── */
.l4-trial {
  margin: 0 0 48px;
  padding: 36px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.l4-trial__inner {
  background: linear-gradient(135deg, #eef4ff 0%, #f5f0ff 50%, #eef9ff 100%);
  border: 2px solid var(--border, #e2e8f0);
  border-radius: 16px;
  padding: 32px 28px 28px;
  text-align: center;
}

.l4-trial__badge {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.l4-trial__title {
  font-size: 24px;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 12px;
  line-height: 1.3;
}

.l4-trial__lead {
  font-size: 15px;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 24px;
  line-height: 1.6;
}

.l4-trial__row {
  display: flex;
  gap: 10px;
  max-width: 520px;
  margin: 0 auto;
}

.l4-trial__input {
  flex: 1;
  padding: 13px 16px;
  border: 2px solid var(--border, #e2e8f0);
  border-radius: 10px;
  font-size: 16px;
  font-family: inherit;
  background: #fff;
  color: var(--text);
  transition: border-color .15s, box-shadow .15s;
  min-width: 0;
}

.l4-trial__input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.12);
}

.l4-trial__input:user-invalid {
  border-color: #ef4444;
}

.l4-trial__btn {
  flex-shrink: 0;
  padding: 13px 24px;
  background: linear-gradient(135deg, var(--brand), var(--brand, #0f172a));
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: filter .15s, transform .1s;
  white-space: nowrap;
}

.l4-trial__btn:hover { filter: brightness(1.05); }
.l4-trial__btn:active { transform: scale(0.97); }
.l4-trial__btn:disabled {
  opacity: .6;
  cursor: not-allowed;
  transform: none;
}

.l4-trial__note {
  font-size: 13px;
  color: var(--muted, #64748b);
  margin: 10px auto 0;
  min-height: 18px;
  max-width: 520px;
  transition: color .2s;
}

.l4-trial__note--success { color: #0f9d58; }
.l4-trial__note--error { color: #ef4444; }

.l4-trial__more {
  margin: 16px 0 0;
  font-size: 14px;
}

.l4-trial__more a {
  color: var(--brand);
  font-weight: 600;
}

.l4-trial-page {
  max-width: 960px;
  margin: 0 auto;
  padding: 32px 24px 64px;
}

.l4-trial-page__hero {
  text-align: center;
  margin-bottom: 48px;
}

.l4-trial-page__badge {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.l4-trial-page__title {
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 800;
  margin: 0 0 12px;
  line-height: 1.2;
}

.l4-trial-page__lead {
  font-size: 16px;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 28px;
  line-height: 1.6;
}

.l4-trial-page__form-wrap {
  max-width: 520px;
  margin: 0 auto 24px;
}

.l4-trial-page__features {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.l4-trial-page__feature {
  font-size: 13px;
  font-weight: 600;
  color: var(--brand);
  background: rgba(15, 23, 42, 0.12);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 100px;
  padding: 6px 14px;
}

.l4-trial-page__how,
.l4-trial-page__faq,
.l4-trial-page__cta {
  margin-top: 48px;
}

.l4-trial-page__how h2,
.l4-trial-page__faq h2,
.l4-trial-page__cta h2 {
  text-align: center;
  font-size: 22px;
  margin: 0 0 24px;
}

.l4-trial-page__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.l4-trial-page__step {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  box-shadow: var(--shadow-sm);
}

.l4-trial-page__num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.l4-trial-page__step h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.l4-trial-page__step p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

.l4-trial-page__faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 10px;
}

.l4-trial-page__faq-item summary {
  cursor: pointer;
  font-weight: 600;
}

.l4-trial-page__faq-item p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.l4-trial-page__faq-item a {
  color: var(--brand);
}

.l4-trial-page__cta {
  text-align: center;
  background: linear-gradient(135deg, #eef4ff 0%, #f5f0ff 100%);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 16px;
  padding: 32px 24px;
}

.l4-trial-page__cta p {
  color: var(--muted);
  margin: 0 0 20px;
}

.l4-trial-page__cta-btn {
  display: inline-block;
  padding: 14px 28px;
  background: linear-gradient(135deg, var(--brand), var(--brand, #0f172a));
  color: #fff;
  font-weight: 700;
  border-radius: 12px;
}

.l4-trial-page__cta-btn:hover {
  filter: brightness(1.05);
}

@media (max-width: 768px) {
  .l4-trial-page__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .l4-trial__row {
    flex-direction: column;
  }
  .l4-trial__btn {
    width: 100%;
    padding: 14px;
  }
  .l4-trial__title { font-size: 20px; }
}

/* ─── Homepage download cards ─────────────────────────── */
.ntn-downloads {
    padding: 72px 0;
    background: var(--bg);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.ntn-downloads .section-title {
    text-align: center;
}
.ntn-downloads__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 32px;
}
.ntn-download-card {
    background: var(--card);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.ntn-download-card:hover {
    border-color: var(--border-hi);
    box-shadow: var(--shadow);
}
.ntn-download-card__icon {
    font-size: 28px;
    line-height: 1;
}
.ntn-download-card__title {
    font-size: 1.15rem;
    font-weight: 800;
    margin: 0;
    color: var(--text);
    letter-spacing: -0.02em;
}
.ntn-download-card__lead {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--muted);
    margin: 0;
    flex: 1;
}
.ntn-download-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 4px;
}
.ntn-download-card__btn {
    flex: 1 1 auto;
    min-width: 140px;
    text-align: center;
}
.ntn-download-card__guide,
.ntn-download-card__source {
    font-size: 13px;
    margin: 0;
}
.ntn-download-card__guide a,
.ntn-download-card__source a {
    color: var(--text);
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.ntn-download-card__guide a:hover,
.ntn-download-card__source a:hover {
    color: var(--brand);
}
.ntn-download-card__disclaimer {
    font-size: 12px;
    line-height: 1.5;
    color: var(--muted2);
    margin: 0;
}

@media (max-width: 720px) {
    .ntn-downloads__grid {
        grid-template-columns: 1fr;
    }
}

/* ─── Referral (Плати по миру) ────────────────────────── */
.referral-section {
    padding: 72px 0;
    background: #fafafa;
}
.referral-section__inner {
    max-width: 900px;
    text-align: center;
}
.referral-section__badge {
    display: inline-block;
    background: rgba(0, 0, 0, 0.06);
    color: #000;
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 24px;
}
.referral-section__title {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 800;
    color: #202124;
    margin: 0 0 16px;
}
.referral-section__lead {
    font-size: 1.05rem;
    color: #5f6368;
    line-height: 1.7;
    margin: 0 auto 40px;
    max-width: 650px;
}
.referral-section__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
    text-align: left;
}
.referral-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 24px 20px;
}
.referral-card__icon {
    font-size: 1.8rem;
    margin-bottom: 10px;
}
.referral-card__title {
    font-size: 1rem;
    font-weight: 700;
    color: #202124;
    margin: 0 0 6px;
}
.referral-card__text {
    font-size: 0.88rem;
    color: #5f6368;
    line-height: 1.55;
    margin: 0;
}
.referral-section__cta {
    display: inline-block;
    padding: 16px 40px;
    background: #000;
    color: #fff;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
}
.referral-section__cta:hover {
    background: #222;
    color: #fff;
}
.referral-section__note {
    margin: 16px 0 0;
    font-size: 0.82rem;
    color: #5f6368;
}

/* ─── Direct landing (/direct/) ───────────────────────── */
.l4-direct__note {
    margin: 16px 0 0;
    font-size: 14px;
    color: var(--muted);
}

.section {
    padding: 72px 0;
}
.section--dark {
    background: var(--bg-dark);
}
.section--dark .section__title,
.section--dark .section__lead {
    color: var(--text-inv);
}
.section--dark .section__lead {
    color: var(--muted-inv);
}
.section__title {
    font-size: clamp(24px, 3.5vw, 34px);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.03em;
    margin: 0 0 12px;
    color: var(--text);
}
.section__lead {
    font-size: 17px;
    color: var(--muted);
    margin: 0 0 40px;
    max-width: 600px;
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.step {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: var(--radius);
    padding: 24px 20px;
}
.step__num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: 2px solid rgba(255, 255, 255, 0.20);
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 14px;
}
.step__title {
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 8px;
}
.step__desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.65);
    margin: 0 0 16px;
    line-height: 1.6;
}
.step__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.btn--ghost {
    background: transparent;
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, 0.35);
}
.btn--ghost:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.55);
}
.btn--lg {
    padding: 16px 36px;
    font-size: 16px;
}

.cta-section {
    background: var(--brand);
    padding: 72px 0;
    text-align: center;
}
.cta-section h2 {
    font-size: clamp(26px, 4vw, 40px);
    font-weight: 800;
    color: #fff;
    margin: 0 0 16px;
    letter-spacing: -0.03em;
}
.cta-section p {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.80);
    margin: 0 0 32px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}
.cta-section .btn--primary {
    background: #fff;
    color: var(--brand);
}
.cta-section .btn--primary:hover {
    background: #f5f5f5;
}

/* ─── Device prompt ───────────────────────────────────── */
.ntn-device-prompt {
    max-width: 640px;
    margin: 0 auto 24px;
    padding: 14px 16px;
    border-radius: var(--radius);
    background: var(--card);
    border: 1px solid var(--border-hi);
    box-shadow: var(--shadow-sm);
    text-align: left;
}
.ntn-device-prompt__panel {
    display: none;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 16px;
}
.ntn-device-prompt__panel.is-active {
    display: flex;
}
.ntn-device-prompt__text {
    margin: 0;
    flex: 1 1 200px;
    font-size: 15px;
    line-height: 1.55;
    color: var(--muted);
}
.ntn-device-prompt__text strong {
    color: var(--text);
    font-weight: 700;
}
.ntn-device-prompt__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    flex-shrink: 0;
}
.ntn-device-prompt__btn {
    min-height: 44px;
}

.ntn-download-card--recommended {
    border-color: var(--brand);
    box-shadow: var(--shadow);
    position: relative;
}
.ntn-download-card--recommended::before {
    content: 'Для вашего устройства';
    position: absolute;
    top: -10px;
    left: 16px;
    background: var(--brand);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: var(--radius-pill);
}

/* ─── Mobile responsive pack ──────────────────────────── */
@media (max-width: 720px) {
    .referral-section__grid {
        grid-template-columns: 1fr;
    }
    .steps {
        grid-template-columns: 1fr;
    }
    .blog-index__head {
        flex-direction: column;
        align-items: flex-start;
    }
    .email-input-row {
        flex-direction: column;
    }
    .email-input {
        border-radius: var(--radius-sm);
    }
    .email-input-btn {
        width: 100%;
        border-radius: var(--radius-sm);
    }
    .site-header__inner {
        gap: 10px;
    }
    .site-nav {
        gap: 2px;
    }
    .site-nav__link {
        padding: 6px 8px;
        font-size: 13px;
    }
    .hero .btn-row {
        justify-content: center;
    }
    .mock-compare__label {
        font-size: 12px;
        word-break: break-word;
    }
    .ntn-device-prompt__panel.is-active {
        flex-direction: column;
        align-items: stretch;
    }
    .ntn-device-prompt__actions {
        flex-direction: column;
    }
    .ntn-device-prompt__actions .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .wrap {
        padding: 0 16px;
    }
    .site-brand__name {
        font-size: 14px;
    }
    .referral-section {
        padding: 48px 0;
    }
    .referral-section__cta {
        display: block;
        width: 100%;
        padding: 14px 20px;
        font-size: 1rem;
        box-sizing: border-box;
    }
    .cta-section .btn--lg {
        width: 100%;
    }
    .article-content .article-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* Кнопка перехода на портал оплаты (форма оплаты уехала на avgstart.ru). */
.l4-buy { max-width: 420px; margin: 24px auto 0; text-align: center; }
.l4-buy__btn {
  display: block;
  width: 100%;
  padding: 16px 24px;
  border-radius: 12px;
  background: var(--c-brand, var(--brand, #0058be));
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .18);
}
.l4-buy__btn:hover { filter: brightness(1.08); }
.l4-buy__btn:active { transform: scale(.99); }
.l4-buy__note { margin: 10px 0 0; font-size: 13px; color: var(--muted, #6b7280); }

/* Плитка-переключатель: радио скрыто, кликается вся карточка. */
.plan-card { cursor: pointer; }
.plan-card__radio { position: absolute; opacity: 0; pointer-events: none; }
.plan-card:has(.plan-card__radio:checked) {
  outline: 2px solid var(--c-brand, var(--brand, #0058be));
  outline-offset: 2px;
}
