/* «Сохранили!» brand system (CLAUDE.md) */
:root {
    --bg-deep:          #0B0E14;
    --bg-card:          #141820;
    --bg-raised:        #1E2430;
    --brand-blue:       #5B8DEF;
    --blue-light:       #93B4F5;
    --amber:            #F5A623;
    --amber-hover:      #D88C1C;
    --green:            #34D399;
    --coral:            #F87171;
    --text-primary:     #EDF2F7;
    --text-secondary:   #8899AA;
    --text-muted:       #556677;
    --border:           #2A3648;
    --border-strong:    #3A4658;
    --glass-bg:         rgba(25, 32, 45, 0.72);
    --blue-glow:        rgba(91, 141, 239, 0.15);
    --amber-glow:       rgba(245, 166, 35, 0.12);
    --radius-card:      16px;
    --radius-btn:       14px;
    --radius-sheet:     24px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
    background: var(--bg-deep);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    font-size: 16px;
    overflow-x: hidden;
}

/* ============ NAVIGATION ============ */
.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 24px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(1.3);
    -webkit-backdrop-filter: blur(20px) saturate(1.3);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}
.top-nav .logo {
    font-weight: 600;
    font-size: 17px;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.2px;
}
.top-nav .logo .amp {
    color: var(--amber);
    margin-left: 1px;
}
.top-nav .nav-links {
    display: flex;
    gap: 28px;
    align-items: center;
}
.top-nav .nav-links a {
    color: var(--text-secondary);
    font-size: 14px;
    text-decoration: none;
    transition: color 0.2s;
}
.top-nav .nav-links a:hover { color: var(--text-primary); }

.lang-switcher {
    display: flex;
    gap: 3px;
    background: var(--bg-raised);
    border-radius: 11px;
    padding: 3px;
}
.lang-switcher a {
    padding: 5px 11px;
    border-radius: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: all 0.2s;
}
.lang-switcher a.active {
    background: var(--brand-blue);
    color: var(--text-primary);
}

/* Mobile nav */
@media (max-width: 720px) {
    .top-nav .nav-links { display: none; }
}

/* ============ CONTAINERS ============ */
.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}
.container-narrow {
    max-width: 760px;
    margin: 0 auto;
    padding: 48px 24px 96px;
}

/* ============ TYPOGRAPHY ============ */
h1 {
    font-size: 56px;
    font-weight: 800;
    letter-spacing: -1.5px;
    line-height: 1.05;
}
@media (max-width: 720px) { h1 { font-size: 38px; } }

h1 .amp,
h2 .amp { color: var(--amber); }

h2 {
    font-size: 36px;
    font-weight: 700;
    letter-spacing: -0.8px;
    line-height: 1.15;
    margin-bottom: 16px;
}
@media (max-width: 720px) { h2 { font-size: 28px; } }

h3 {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.3px;
    margin-bottom: 8px;
    color: var(--text-primary);
}

p { color: var(--text-primary); margin-bottom: 12px; }
.subtle { color: var(--text-secondary); }

a { color: var(--blue-light); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--brand-blue); }

ul { padding-left: 20px; margin-bottom: 16px; }
ul li { margin-bottom: 8px; }

code {
    font-family: "SF Mono", Menlo, monospace;
    font-size: 0.9em;
    background: var(--bg-raised);
    padding: 2px 6px;
    border-radius: 6px;
    color: var(--blue-light);
}

/* ============ HERO ============ */
.hero {
    position: relative;
    padding: 96px 0 64px;
    overflow: hidden;
    text-align: center;
}
.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    height: 600px;
    background: radial-gradient(circle at center,
        var(--blue-glow) 0%,
        transparent 50%),
        radial-gradient(circle at 70% 40%,
        var(--amber-glow) 0%,
        transparent 60%);
    pointer-events: none;
    z-index: 0;
    animation: heroBreathe 8s ease-in-out infinite;
}
@keyframes heroBreathe {
    0%, 100% { opacity: 0.6; transform: translateX(-50%) scale(1); }
    50% { opacity: 1; transform: translateX(-50%) scale(1.1); }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 760px;
    margin: 0 auto;
    padding: 0 24px;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 20px;
}
.pill .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 8px var(--green);
    animation: dotPulse 2s ease-in-out infinite;
}
@keyframes dotPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.hero h1 {
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--blue-light) 60%, var(--brand-blue) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeUp 0.8s ease-out both;
}
.hero h1 .amp { -webkit-text-fill-color: var(--amber); }

.hero-sub {
    font-size: 20px;
    color: var(--text-secondary);
    margin-top: 20px;
    line-height: 1.5;
    animation: fadeUp 0.8s 0.15s ease-out both;
}
@media (max-width: 720px) { .hero-sub { font-size: 17px; } }

.hero-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 32px;
    flex-wrap: wrap;
    animation: fadeUp 0.8s 0.3s ease-out both;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    border-radius: var(--radius-btn);
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn:active { transform: translateY(0); }

.btn-primary {
    background: var(--amber);
    color: var(--bg-deep);
    box-shadow: 0 4px 20px rgba(245, 166, 35, 0.3);
}
.btn-primary:hover { background: var(--amber-hover); color: var(--bg-deep); box-shadow: 0 6px 28px rgba(245, 166, 35, 0.4); }

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-strong);
}
.btn-secondary:hover { background: var(--bg-raised); color: var(--text-primary); }

/* ============ PHONE MOCKUP ============ */
.phone-mockup {
    position: relative;
    margin: 64px auto 0;
    max-width: 320px;
    animation: fadeUp 1s 0.5s ease-out both;
}
.phone-frame {
    background: #1a1f2a;
    border-radius: 44px;
    padding: 14px;
    border: 2px solid #2a3040;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255,255,255,0.05);
    position: relative;
}
.phone-frame::before {
    content: '';
    position: absolute;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 26px;
    background: #000;
    border-radius: 14px;
    z-index: 2;
}
.phone-screen {
    background: var(--bg-deep);
    border-radius: 32px;
    aspect-ratio: 9 / 19;
    padding: 50px 14px 14px;
    overflow: hidden;
    position: relative;
}

.mock-card {
    position: absolute;
    left: 14px;
    right: 14px;
    top: 50px;
    bottom: 14px;
    border-radius: 20px;
    background: linear-gradient(135deg, #1e2a4a 0%, #2a3b5a 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    animation: cardSwipe 5s ease-in-out infinite;
}
.mock-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 40%, rgba(11,14,20,0.9) 100%);
    border-radius: 20px;
}
.mock-card-content {
    position: relative;
    z-index: 1;
}
.mock-card-tag {
    display: inline-block;
    padding: 3px 10px;
    background: rgba(91, 141, 239, 0.25);
    border-radius: 6px;
    color: var(--blue-light);
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 8px;
    border: 1px solid rgba(91, 141, 239, 0.4);
}
.mock-card-title {
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
}

@keyframes cardSwipe {
    0%, 70% { transform: translateX(0) rotate(0); opacity: 1; }
    85% { transform: translateX(400px) rotate(20deg); opacity: 0; }
    86% { transform: translateX(-400px) rotate(-20deg); opacity: 0; }
    100% { transform: translateX(0) rotate(0); opacity: 1; }
}

/* ============ SECTIONS ============ */
section { padding: 72px 0; position: relative; }
@media (max-width: 720px) { section { padding: 56px 0; } }

.section-head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 48px;
}
.section-head .eyebrow {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 999px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--blue-light);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 16px;
}
.section-head p.subtle {
    font-size: 17px;
    margin-top: 8px;
}

/* ============ FEATURE CARDS ============ */
.grid-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
@media (max-width: 980px) {
    .grid-features { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
    .grid-features { grid-template-columns: 1fr; }
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: 28px 24px;
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
    position: relative;
}
.feature-card:hover {
    border-color: var(--border-strong);
    transform: translateY(-3px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}
.feature-card .icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 24px;
}
.icon-blue  { background: rgba(91, 141, 239, 0.15); color: var(--brand-blue); }
.icon-amber { background: rgba(245, 166, 35, 0.15); color: var(--amber); }
.icon-green { background: rgba(52, 211, 153, 0.15); color: var(--green); }
.icon-coral { background: rgba(248, 113, 113, 0.15); color: var(--coral); }

.feature-card h3 { color: var(--text-primary); }
.feature-card p  { color: var(--text-secondary); font-size: 14px; margin: 0; }

/* ============ HOW IT WORKS ============ */
.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    position: relative;
}
@media (max-width: 880px) {
    .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
    .steps { grid-template-columns: 1fr; }
}
.step {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: 24px;
    position: relative;
}
.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-blue), var(--amber));
    color: var(--text-primary);
    font-weight: 700;
    margin-bottom: 16px;
    font-size: 14px;
}
.step h3 { font-size: 16px; }
.step p  { color: var(--text-secondary); font-size: 13px; margin: 0; }

/* ============ BANNER / QUOTE ============ */
.banner {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 56px 48px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 20%, var(--blue-glow), transparent 50%),
                radial-gradient(circle at 80% 80%, var(--amber-glow), transparent 50%);
    pointer-events: none;
}
.banner > * { position: relative; z-index: 1; }

/* ============ FAQ ============ */
details.faq {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    margin-bottom: 12px;
    padding: 18px 24px;
    transition: border-color 0.2s;
}
details.faq:hover { border-color: var(--border-strong); }
details.faq[open] { border-color: var(--brand-blue); }
details.faq summary {
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    color: var(--text-primary);
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
    content: '+';
    font-size: 22px;
    color: var(--text-secondary);
    transition: transform 0.2s;
}
details.faq[open] summary::after { transform: rotate(45deg); color: var(--brand-blue); }
details.faq > p { color: var(--text-secondary); margin-top: 12px; font-size: 14px; line-height: 1.65; }

/* ============ META / STATS ============ */
.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    text-align: center;
    margin: 24px 0;
}
@media (max-width: 620px) { .stats { grid-template-columns: 1fr; } }
.stat-num {
    font-size: 40px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--brand-blue), var(--amber));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
}
.stat-label {
    color: var(--text-secondary);
    font-size: 13px;
    margin-top: 4px;
}

/* ============ FOOTER ============ */
footer {
    border-top: 1px solid var(--border);
    padding: 48px 24px 40px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
    margin-top: 72px;
    background: var(--bg-card);
}
footer .footer-links {
    display: flex;
    gap: 24px;
    justify-content: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
footer .footer-links a {
    color: var(--text-secondary);
    font-size: 14px;
}
footer .footer-links a:hover { color: var(--brand-blue); }
footer .copy {
    color: var(--text-muted);
    font-size: 13px;
    margin-top: 4px;
}

/* ============ LEGAL PAGES ============ */
.legal-content {
    max-width: 760px;
    margin: 0 auto;
    padding: 48px 24px 96px;
}
.legal-content h1 {
    font-size: 36px;
    -webkit-text-fill-color: initial;
    background: none;
    -webkit-background-clip: initial;
    background-clip: initial;
    margin-bottom: 8px;
}
.legal-content h2 {
    font-size: 22px;
    margin-top: 40px;
    margin-bottom: 12px;
}
.legal-content h3 {
    font-size: 16px;
    margin-top: 20px;
    margin-bottom: 6px;
}
.legal-content .meta {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}
.legal-content p { color: var(--text-primary); }
.legal-content ul li { color: var(--text-primary); }
.legal-content .toc {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 20px 24px;
    margin-bottom: 32px;
}
.legal-content .toc h3 {
    margin-top: 0;
    font-size: 13px;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.8px;
}
.legal-content .toc ol {
    padding-left: 18px;
    margin-top: 10px;
    margin-bottom: 0;
    color: var(--text-secondary);
    font-size: 14px;
}
.legal-content .toc ol li { margin-bottom: 4px; }
.legal-content .toc a { color: var(--text-secondary); }
.legal-content .toc a:hover { color: var(--brand-blue); }

table.data {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0 20px;
    font-size: 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}
table.data th {
    background: var(--bg-raised);
    color: var(--text-primary);
    text-align: left;
    padding: 10px 12px;
    font-weight: 600;
    border-bottom: 1px solid var(--border);
}
table.data td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
    vertical-align: top;
}
table.data tr:last-child td { border-bottom: none; }

.callout {
    background: var(--bg-card);
    border-left: 3px solid var(--brand-blue);
    padding: 14px 18px;
    border-radius: 8px;
    margin: 16px 0;
}
.callout.warn { border-left-color: var(--amber); }
.callout p { margin: 0; font-size: 14px; color: var(--text-secondary); }

/* ============ ANIMATIONS ============ */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}
.reveal {
    opacity: 0;
    animation: fadeUp 0.7s ease-out forwards;
}
.reveal.d1 { animation-delay: 0.1s; }
.reveal.d2 { animation-delay: 0.2s; }
.reveal.d3 { animation-delay: 0.3s; }
.reveal.d4 { animation-delay: 0.4s; }
.reveal.d5 { animation-delay: 0.5s; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ============ UTIL ============ */
.cta-inline {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 32px;
    flex-wrap: wrap;
}
.text-center { text-align: center; }
