/* proxella.pro — дизайн-система, адаптация боевого app.css proxella.ru.
   Тот же визуальный язык: светлая тема, палитра #4C5BEB→#7C5CFF, системные
   шрифты, белые карточки r18, три уровня теней, glass-шапка, hero glow.
   Статический файл без сборки (vite не используется сознательно: у витрины
   нет своего JS-бандла, CSS один). Версия в имени каталога не нужна —
   кэш 30 дней ломается через ?v= в layout. */

:root {
    --color-primary: #4C5BEB;
    --color-primary-dark: #293CA0;
    --color-primary-hover: #3D4AD1;
    --color-accent: #7C5CFF;

    --color-bg: #F6F8FD;
    --color-bg-alt: #ECF0FB;
    --color-surface: #FFFFFF;

    --color-text: #141A33;
    --color-text-muted: #5B6488;

    --color-border: rgba(20, 26, 51, 0.10);
    --color-border-strong: rgba(20, 26, 51, 0.16);
    --color-glow: rgba(76, 91, 235, 0.22);
    --color-cta-text: #FFFFFF;

    --win-blue: #0067C0;
    --ok-green: #1FA363;

    --gradient-brand: linear-gradient(135deg, #4C5BEB 0%, #7C5CFF 100%);

    --radius-card: 18px;
    --radius-btn: 14px;
    --shadow-sm: 0 2px 10px rgba(20, 26, 51, 0.06);
    --shadow-card: 0 10px 34px rgba(20, 26, 51, 0.10);
    --shadow-glow: 0 16px 44px var(--color-glow);

    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, "Noto Sans", sans-serif,
        "Apple Color Emoji", "Segoe UI Emoji";
    --font-mono: ui-monospace, "SF Mono", "Cascadia Code", "Segoe UI Mono",
        Menlo, Consolas, "Liberation Mono", monospace;

    --container: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; }

a { color: var(--color-primary); }
a:hover { color: var(--color-primary-hover); }

.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 20px; }
.container-narrow { max-width: 820px; }

.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section-alt { background: var(--color-bg-alt); }
.section-tight { padding-block: clamp(2rem, 4vw, 3rem); }

.eyebrow {
    display: block;
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: .8rem;
}

.section-title {
    font-size: clamp(1.7rem, 3.6vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.15;
    margin: 0 0 1rem;
}

.section-lead {
    font-size: 1.08rem;
    color: var(--color-text-muted);
    max-width: 60ch;
    margin: 0 0 2rem;
}

.center { text-align: center; }
.center .section-lead { margin-inline: auto; }

/* ── Шапка ─────────────────────────────────────────────────────────────── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: saturate(160%) blur(12px);
    -webkit-backdrop-filter: saturate(160%) blur(12px);
    background: rgba(246, 248, 253, 0.82);
    border-bottom: 1px solid var(--color-border);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    height: 64px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: -0.01em;
    color: var(--color-text);
    text-decoration: none;
}
.brand:hover { color: var(--color-text); }

.site-nav { display: flex; gap: 22px; margin-left: auto; }
.site-nav a {
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: .95rem;
    font-weight: 500;
    padding: 6px 2px;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--color-text); }

.header-cta { display: inline-flex; }

/* Мобильное меню: чекбокс-хак, без JS */
.nav-toggle { display: none; }
.nav-toggle-label {
    display: none;
    margin-left: auto;
    cursor: pointer;
    padding: 10px;
    border-radius: 10px;
}
.nav-toggle-label:hover { background: rgba(76, 91, 235, 0.08); }
.nav-toggle-label svg { display: block; }

/* ── Кнопки ─────────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 26px;
    border-radius: var(--radius-btn);
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.1;
    cursor: pointer;
    text-decoration: none;
    border: 1px solid transparent;
    transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--color-primary); color: var(--color-cta-text); box-shadow: 0 8px 22px var(--color-glow); }
.btn-primary:hover { background: var(--color-primary-hover); color: var(--color-cta-text); box-shadow: var(--shadow-glow); transform: translateY(-2px); }

.btn-ghost { background: transparent; color: var(--color-text); border-color: var(--color-border-strong); }
.btn-ghost:hover { border-color: var(--color-primary); color: var(--color-primary); background: rgba(76, 91, 235, 0.06); }

.btn-light { background: #fff; color: var(--color-primary); }
.btn-light:hover { background: #f0f2ff; color: var(--color-primary-dark); }

.btn-sm { padding: 9px 18px; font-size: .92rem; border-radius: 11px; }
.btn-lg { padding: 16px 32px; font-size: 1.1rem; }
.btn-block { width: 100%; }

.btn-hero {
    padding: 20px 44px;
    font-size: 1.3rem;
    border-radius: 16px;
    gap: 14px;
    box-shadow: 0 14px 34px var(--color-glow);
}
.btn-hero:hover { transform: translateY(-3px); }

.btn-sub { display: block; font-size: .78rem; font-weight: 500; opacity: .85; margin-top: 2px; }

/* ── Hero ──────────────────────────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; text-align: center; padding-block: clamp(3.5rem, 8vw, 6rem) clamp(3rem, 6vw, 4.5rem); }

.hero-glow {
    position: absolute;
    inset: -30% -10% auto -10%;
    height: 640px;
    z-index: 0;
    background:
        radial-gradient(50% 55% at 50% 25%, rgba(124, 92, 255, 0.16), transparent 70%),
        radial-gradient(45% 50% at 30% 10%, rgba(76, 91, 235, 0.14), transparent 70%);
    pointer-events: none;
}

.hero > .container { position: relative; z-index: 1; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 84px;
    height: 84px;
    border-radius: 22px;
    background: var(--color-surface);
    box-shadow: var(--shadow-card);
    margin-bottom: 1.4rem;
}

.hero-title {
    font-size: clamp(2.3rem, 5.5vw, 3.8rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.06;
    margin: 0 0 1.1rem;
    text-wrap: balance;
}

.hero-lead {
    font-size: 1.18rem;
    color: var(--color-text-muted);
    max-width: 52ch;
    margin: 0 auto 2rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-bottom: 1.4rem; }

.hero-sub { font-size: .95rem; color: var(--color-text-muted); margin-top: .8rem; }

.trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 26px;
    justify-content: center;
    margin-top: 1.8rem;
    font-size: .92rem;
    color: var(--color-text-muted);
}
.trust-row .trust-item { display: inline-flex; align-items: center; gap: 8px; }
.trust-row svg { width: 17px; height: 17px; color: var(--color-primary); flex: none; }

/* ── Бегущая строка флагов ─────────────────────────────────────────────── */
.flags-strip { margin-top: 2.4rem; overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.flags-track { display: flex; gap: 22px; width: max-content; animation: flag-scroll 34s linear infinite; }
.flags-strip:hover .flags-track { animation-play-state: paused; }
.flag-item { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: .74rem; color: var(--color-text-muted); }
.flag-item svg { width: 46px; height: 31px; border-radius: 6px; box-shadow: var(--shadow-sm); display: block; }

@keyframes flag-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* ── Карточки ──────────────────────────────────────────────────────────── */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 18px;
}

.feature-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.feature-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 11px;
    background: var(--gradient-brand);
    box-shadow: 0 8px 20px var(--color-glow);
    margin-bottom: 14px;
}
.feature-dot svg { width: 22px; height: 22px; color: #fff; }

.feature-card h3 { font-size: 1.15rem; margin: 0 0 .5rem; }
.feature-card p { font-size: .96rem; color: var(--color-text-muted); margin: 0; }

/* Карточка устройства/платформы */
.device-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    padding: 26px;
    box-shadow: var(--shadow-card);
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.device-card .device-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 15px;
    background: rgba(76, 91, 235, 0.08);
    margin-inline: auto;
}
.device-card .device-icon svg { width: 30px; height: 30px; color: var(--color-primary); }
.device-card h3 { margin: 0; font-size: 1.15rem; }
.device-card p { margin: 0; font-size: .95rem; color: var(--color-text-muted); flex-grow: 1; }
.device-card .btn { margin-top: 6px; }

/* ── Тарифы ────────────────────────────────────────────────────────────── */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; max-width: 760px; margin-inline: auto; }

.price-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
}
.price-card.featured { border: 2px solid var(--color-primary); box-shadow: var(--shadow-card); position: relative; }
.price-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-brand);
    color: #fff;
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 999px;
    white-space: nowrap;
}
.price-card h3 { margin: 0; font-size: 1.2rem; }
.price-value { font-size: 2.2rem; font-weight: 800; letter-spacing: -0.02em; }
.price-value span { font-size: 1rem; font-weight: 500; color: var(--color-text-muted); }
.price-note { font-size: .88rem; color: var(--color-text-muted); }
.price-features { list-style: none; padding: 0; margin: 10px 0 16px; display: flex; flex-direction: column; gap: 8px; font-size: .95rem; }
.price-features li { display: flex; gap: 9px; align-items: flex-start; }
.price-features svg { width: 17px; height: 17px; color: var(--ok-green); flex: none; margin-top: 3px; }
.price-card .btn { margin-top: auto; }

/* ── Таблицы ───────────────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; border-radius: var(--radius-card); border: 1px solid var(--color-border); background: var(--color-surface); box-shadow: var(--shadow-sm); }
table.data {
    width: 100%;
    border-collapse: collapse;
    font-size: .95rem;
    min-width: 560px;
}
table.data th, table.data td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--color-border); vertical-align: top; }
table.data th { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--color-text-muted); font-weight: 600; background: var(--color-bg-alt); }
table.data tr:last-child td { border-bottom: none; }
table.data td strong { font-weight: 600; }

/* ── Шаги (инструкции) ─────────────────────────────────────────────────── */
.howto-steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.howto-steps > li {
    counter-increment: step;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 14px;
    padding: 18px 20px 18px 68px;
    position: relative;
    box-shadow: var(--shadow-sm);
}
.howto-steps > li::before {
    content: counter(step);
    position: absolute;
    left: 18px;
    top: 16px;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--gradient-brand);
    color: #fff;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}
.howto-steps h3 { margin: 0 0 .3rem; font-size: 1.02rem; }
.howto-steps p { margin: 0; font-size: .95rem; color: var(--color-text-muted); }

/* ── FAQ ───────────────────────────────────────────────────────────────── */
.faq-list { max-width: 780px; margin-inline: auto; display: flex; flex-direction: column; gap: 10px; }

.faq-item {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 14px;
    padding: 4px 20px;
    box-shadow: var(--shadow-sm);
}
.faq-item summary {
    cursor: pointer;
    font-weight: 600;
    padding: 14px 30px 14px 0;
    position: relative;
    list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: "+";
    position: absolute;
    right: 2px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--color-primary);
}
.faq-item[open] summary::after { content: "−"; }
.faq-item .faq-answer { padding: 0 0 16px; color: var(--color-text-muted); font-size: .96rem; }
.faq-item .faq-answer p { margin: 0 0 .6rem; }
.faq-item .faq-answer p:last-child { margin-bottom: 0; }

/* ── Быстрый ответ (GEO): краткий прямой ответ в начале страницы ───────── */
.quick-answer {
    background: rgba(76, 91, 235, 0.07);
    border: 1px solid rgba(76, 91, 235, 0.18);
    border-radius: var(--radius-card);
    padding: 20px 24px;
    margin: 0 0 2rem;
    font-size: 1.02rem;
}
.quick-answer p { margin: 0; }
.quick-answer strong { color: var(--color-text); }

/* ── CTA-панель ────────────────────────────────────────────────────────── */
.cta-panel {
    background: var(--gradient-brand);
    color: #fff;
    border-radius: 24px;
    padding: clamp(2rem, 5vw, 3.5rem);
    text-align: center;
    box-shadow: var(--shadow-card);
}
.cta-panel h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 0 0 .6rem; letter-spacing: -0.01em; }
.cta-panel p { margin: 0 auto 1.6rem; max-width: 56ch; opacity: .92; }

/* ── Контент-страницы (статьи, юртексты) ───────────────────────────────── */
.prose { max-width: 780px; margin-inline: auto; }
.prose h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); letter-spacing: -0.015em; line-height: 1.15; margin: 0 0 1rem; }
.prose h2 { font-size: 1.45rem; margin: 2.2rem 0 .8rem; letter-spacing: -0.01em; }
.prose h3 { font-size: 1.15rem; margin: 1.6rem 0 .6rem; }
.prose p, .prose ul, .prose ol { color: var(--color-text); }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-bottom: .4rem; }
.prose .table-wrap { margin: 1.2rem 0; }
.prose blockquote { border-left: 3px solid var(--color-primary); margin: 1.2rem 0; padding: .2rem 0 .2rem 1.1rem; color: var(--color-text-muted); }

.page-meta { font-size: .88rem; color: var(--color-text-muted); margin-bottom: 1.6rem; display: flex; flex-wrap: wrap; gap: 6px 18px; }

/* ── Хлебные крошки ────────────────────────────────────────────────────── */
.breadcrumbs { font-size: .85rem; color: var(--color-text-muted); padding-top: 1.2rem; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; opacity: .5; }
.breadcrumbs a { color: var(--color-text-muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--color-primary); }

/* ── Заметка/дисклеймер ────────────────────────────────────────────────── */
.note {
    background: rgba(76, 91, 235, 0.07);
    border-radius: 12px;
    padding: 14px 18px;
    font-size: .9rem;
    color: var(--color-text-muted);
}

/* ── Футер ─────────────────────────────────────────────────────────────── */
.site-footer {
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    padding-block: 3rem 2rem;
    color: var(--color-text-muted);
    font-size: .95rem;
}
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 28px; }
.footer-brand .brand { margin-bottom: .6rem; }
.footer-tagline { margin: .4rem 0 0; font-size: .9rem; }
.footer-col h4 {
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--color-text);
    margin: 0 0 .8rem;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-col a { color: var(--color-text-muted); text-decoration: none; }
.footer-col a:hover { color: var(--color-primary); }
.footer-legal {
    border-top: 1px solid var(--color-border);
    margin-top: 2rem;
    padding-top: 1.4rem;
    font-size: .82rem;
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

/* ── Прочее ────────────────────────────────────────────────────────────── */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--color-surface);
    color: var(--color-text);
    padding: 10px 16px;
    border-radius: 0 0 10px 0;
    z-index: 100;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }

/* ── Адаптивность ──────────────────────────────────────────────────────── */
@media (max-width: 860px) {
    .site-nav {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        background: var(--color-surface);
        border-bottom: 1px solid var(--color-border);
        box-shadow: var(--shadow-card);
        padding: 8px 20px 14px;
    }
    .site-nav a { padding: 11px 2px; font-size: 1rem; }
    .nav-toggle-label { display: block; }
    .nav-toggle:checked ~ .site-nav { display: flex; }
    .header-cta { margin-left: auto; }
    .nav-toggle-label { margin-left: 0; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 520px) {
    .footer-grid { grid-template-columns: 1fr; }
    .btn-hero, .btn-lg { width: 100%; }
    .hero-actions { flex-direction: column; align-items: stretch; }
}

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; animation: none !important; }
    html { scroll-behavior: auto; }
    .flags-track { flex-wrap: wrap; width: auto; }
}
