/* ═══ ПАРОЛЬЩИК | @Elena_evolvecode | 2026 ═══ */

:root {
    --bg-deep: #0e0e1a;
    --bg-main: #1a1a2e;
    --bg-card: #22223a;
    --bg-card-hover: #2a2a4a;
    --accent: #5555aa;
    --accent-light: #7777cc;
    --accent-glow: rgba(85, 85, 170, 0.3);
    --text-primary: #e8e8f0;
    --text-secondary: #9999bb;
    --text-muted: #666688;
    --red: #cc4444;
    --green: #44aa66;
    --gold: #ccaa33;
    --border: #333355;
    --font-display: 'Bitter', Georgia, serif;
    --font-body: 'Source Sans 3', 'Segoe UI', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    font-size: 18px;
}

body {
    font-family: var(--font-body);
    background: var(--bg-deep);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
}

/* === Навигация === */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: rgba(14, 14, 26, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(51, 51, 85, 0.4);
    transition: transform 0.3s;
}
.nav-inner {
    max-width: 960px; margin: 0 auto;
    display: flex; justify-content: space-between; align-items: center;
    padding: 14px 24px;
}
.nav-logo {
    font-family: var(--font-display);
    font-size: 1.1rem; font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    display: flex; align-items: center; gap: 10px;
}
.nav-logo img {
    width: 32px; height: 32px; border-radius: 8px;
}
.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-links a {
    color: var(--text-secondary); text-decoration: none;
    font-size: 0.85rem; font-weight: 500;
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--text-primary); }
.nav-cta {
    background: var(--accent) !important; color: #fff !important;
    padding: 8px 20px; border-radius: 50px;
    font-weight: 600 !important;
}
.nav-cta:hover { background: var(--accent-light) !important; }

@media (max-width: 640px) {
    .nav-links a:not(.nav-cta) { display: none; }
}

/* === Секции === */
section {
    padding: 80px 24px;
}
.container {
    max-width: 760px; margin: 0 auto;
}

/* === Герой === */
.hero {
    min-height: 85vh;
    display: flex; align-items: center; justify-content: center;
    padding-top: 100px;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(85,85,170,0.12) 0%, transparent 60%),
        var(--bg-deep);
    position: relative;
}
.hero::after {
    content: '';
    position: absolute; bottom: 0; left: 0; right: 0; height: 120px;
    background: linear-gradient(to bottom, transparent, var(--bg-deep));
}
.hero .container {
    max-width: 900px;
}
.hero-layout {
    display: flex; align-items: center; gap: 48px;
}
.hero-mascot {
    width: 280px; min-width: 280px; height: auto;
    border-radius: 24px;
    box-shadow: 0 12px 48px rgba(0,0,0,0.4);
    border: 1px solid rgba(85,85,170,0.2);
}
.hero-content {
    text-align: left;
}
.hero h1 {
    font-family: var(--font-display);
    font-size: 2.8rem; font-weight: 700;
    line-height: 1.2; margin-bottom: 16px;
    letter-spacing: -0.5px;
}
.hero-tagline {
    font-size: 1.15rem; color: var(--text-secondary);
    margin-bottom: 12px; font-weight: 500;
}
.hero-sub {
    font-size: 0.95rem; color: var(--text-muted);
    margin-bottom: 28px;
}
.hero-badges {
    display: flex; gap: 10px;
    flex-wrap: wrap; margin-bottom: 32px;
}
.badge {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 6px 16px; border-radius: 50px;
    font-size: 0.8rem; color: var(--text-secondary);
}
.btn-primary {
    display: inline-flex; align-items: center; gap: 10px;
    background: var(--accent); color: #fff;
    padding: 16px 36px; border-radius: 50px;
    font-size: 1.05rem; font-weight: 600;
    text-decoration: none;
    box-shadow: 0 4px 20px var(--accent-glow);
    transition: all 0.25s;
}
.btn-primary:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 28px var(--accent-glow);
}

@media (max-width: 740px) {
    .hero-layout {
        flex-direction: column; gap: 28px;
    }
    .hero-mascot {
        width: 200px; min-width: 200px;
    }
    .hero-content { text-align: center; }
    .hero-badges { justify-content: center; }
    .hero h1 { font-size: 2rem; }
}

.hero h1 {
    font-family: var(--font-display);
    font-size: 2.8rem; font-weight: 700;
    line-height: 1.2; margin-bottom: 16px;
    letter-spacing: -0.5px;
}
.hero-tagline {
    font-size: 1.15rem; color: var(--text-secondary);
    margin-bottom: 12px; font-weight: 500;
}
.hero-sub {
    font-size: 0.95rem; color: var(--text-muted);
    margin-bottom: 40px;
}
.hero-badges {
    display: flex; gap: 12px; justify-content: center;
    flex-wrap: wrap; margin-bottom: 40px;
}
.badge {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 6px 16px; border-radius: 50px;
    font-size: 0.8rem; color: var(--text-secondary);
}
.btn-primary {
    display: inline-flex; align-items: center; gap: 10px;
    background: var(--accent); color: #fff;
    padding: 16px 36px; border-radius: 50px;
    font-size: 1.05rem; font-weight: 600;
    text-decoration: none;
    box-shadow: 0 4px 20px var(--accent-glow);
    transition: all 0.25s;
}
.btn-primary:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 28px var(--accent-glow);
}

@media (max-width: 640px) {
    .hero h1 { font-size: 2rem; }
}

/* === Цитата автора === */
.cry {
    background: var(--bg-main);
}
.quote-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 36px 32px 32px;
    position: relative;
}
.quote-mark {
    position: absolute; top: -18px; left: 28px;
    font-size: 3.5rem; line-height: 1;
    color: var(--accent);
    font-family: Georgia, serif;
}
.quote-text {
    font-family: 'Marck Script', cursive;
    font-size: 1.35rem; line-height: 1.1;
    color: var(--text-secondary);
    margin-bottom: 14px;
    font-weight: 200;
}
.quote-text em {
    font-family: inherit;
    color: var(--text-primary);
    font-style: normal;
    font-weight: 200;
}
.quote-highlight {
    font-family: 'Marck Script', cursive;
    font-size: 1.45rem; font-weight: 200;
    color: var(--accent-light);
    margin-top: 14px;
}
.quote-author {
    display: flex; align-items: center; gap: 14px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}
.quote-avatar {
    width: 48px; height: 48px; border-radius: 50%;
    border: 2px solid var(--accent);
    object-fit: cover;
}
.quote-name {
    font-weight: 600; font-size: 0.95rem;
    color: var(--text-primary);
}
.quote-role {
    font-size: 0.8rem; color: var(--text-muted);
    margin-top: 2px;
}

/* === Почему Парольщик === */
.promises {
    background: var(--bg-deep);
}
.section-title {
    font-family: var(--font-display);
    font-size: 1.8rem; font-weight: 700;
    margin-bottom: 40px; text-align: center;
    line-height: 1.3;
}
.promise-grid {
    display: grid; grid-template-columns: 1fr; gap: 14px;
}
.promise-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px; padding: 20px 22px;
    transition: border-color 0.3s;
    display: flex; align-items: flex-start; gap: 18px;
}
.promise-card:hover {
    border-color: var(--accent);
}
.promise-icon {
    flex-shrink: 0;
    width: 48px; height: 48px;
    background: rgba(85,85,170,0.12);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    color: var(--accent-light);
}
.promise-text { flex: 1; }
.promise-card h3 {
    font-family: var(--font-display);
    font-size: 1.05rem; margin-bottom: 6px;
}
.promise-card p {
    color: var(--text-secondary); font-size: 0.88rem; line-height: 1.55;
}

/* === Как это работает === */
.how {
    background: var(--bg-main);
}
.steps {
    counter-reset: step;
}
.step {
    display: flex; gap: 20px; margin-bottom: 32px;
    align-items: flex-start;
}
.step-num {
    counter-increment: step;
    flex-shrink: 0;
    width: 48px; height: 48px;
    background: var(--accent);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-display);
    font-size: 1.2rem; font-weight: 700;
    color: #fff;
}
.step-content h3 {
    font-family: var(--font-display);
    font-size: 1.1rem; margin-bottom: 6px;
}
.step-content p {
    color: var(--text-secondary); font-size: 0.95rem;
}

/* === Безопасность === */
.security {
    background: var(--bg-deep);
}
.security-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.sec-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px; padding: 20px;
}
.sec-item h4 {
    font-size: 0.95rem; margin-bottom: 6px;
    color: var(--green);
}
.sec-item p {
    font-size: 0.85rem; color: var(--text-secondary);
    line-height: 1.5;
}

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

/* === Маскот безопасности === */
.security-mascot {
    margin-top: 32px;
    text-align: center;
}
.security-mascot img {
    width: 100%;
    max-width: 360px;
    border-radius: 20px;
    border: 1px solid var(--border);
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
.security-mascot p {
    margin-top: 12px;
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--text-secondary);
    font-style: italic;
}

/* === Блок честности === */
.honest {
    background: var(--bg-main);
}
.honest-block {
    border-radius: 16px; padding: 28px 24px;
    margin-bottom: 20px;
}
.honest-can {
    background: rgba(68,170,102,0.06);
    border: 1px solid rgba(68,170,102,0.2);
}
.honest-cant {
    background: rgba(204,68,68,0.06);
    border: 1px solid rgba(204,68,68,0.2);
}
.honest-block h3 {
    font-family: var(--font-display);
    font-size: 1.1rem; margin-bottom: 14px;
}
.honest-can h3 { color: var(--green); }
.honest-cant h3 { color: var(--red); }
.honest-list {
    list-style: none;
}
.honest-list li {
    font-size: 0.95rem; color: var(--text-secondary);
    padding: 6px 0; padding-left: 24px;
    position: relative;
}
.honest-list li::before {
    position: absolute; left: 0;
}
.honest-can .honest-list li::before { content: '✓'; color: var(--green); }
.honest-cant .honest-list li::before { content: '✕'; color: var(--red); }

/* === Для кого === */
.audience {
    background: var(--bg-deep);
}
.audience-cols {
    display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
}
.aud-col { border-radius: 16px; padding: 24px; }
.aud-yes {
    background: var(--bg-card);
    border: 1px solid var(--border);
}
.aud-no {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
}
.aud-col h3 {
    font-family: var(--font-display);
    font-size: 1.05rem; margin-bottom: 14px;
}
.aud-yes h3 { color: var(--green); }
.aud-no h3 { color: var(--text-muted); }
.aud-col ul {
    list-style: none;
}
.aud-col li {
    font-size: 0.9rem; color: var(--text-secondary);
    padding: 5px 0;
}
.aud-no p {
    font-size: 0.85rem; color: var(--text-muted);
    margin-top: 12px; font-style: italic;
}

@media (max-width: 640px) {
    .audience-cols { grid-template-columns: 1fr; }
}

/* === Техническая таблица === */
.tech-toggle {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px; padding: 18px 24px;
    cursor: pointer; width: 100%;
    text-align: left;
    color: var(--text-secondary);
    font-size: 0.95rem; font-family: var(--font-body);
    display: flex; justify-content: space-between; align-items: center;
    transition: border-color 0.3s;
}
.tech-toggle:hover { border-color: var(--accent); }
.tech-toggle-arrow {
    transition: transform 0.3s;
    font-size: 0.8rem;
}
.tech-toggle.open .tech-toggle-arrow { transform: rotate(180deg); }
.tech-panel {
    max-height: 0; overflow: hidden;
    transition: max-height 0.4s ease;
}
.tech-panel.open { max-height: 800px; }
.tech-table {
    width: 100%; border-collapse: collapse;
    margin-top: 16px;
}
.tech-table th, .tech-table td {
    text-align: left; padding: 10px 14px;
    border-bottom: 1px solid var(--border);
    font-size: 0.85rem;
}
.tech-table th { color: var(--accent-light); font-weight: 600; width: 40%; }
.tech-table td { color: var(--text-secondary); }

/* === CTA финальный === */
.cta-final {
    background:
        radial-gradient(ellipse at 50% 100%, rgba(85,85,170,0.15) 0%, transparent 60%),
        var(--bg-deep);
    text-align: center;
    padding: 100px 24px;
}
.cta-final h2 {
    font-family: var(--font-display);
    font-size: 2rem; margin-bottom: 16px;
}
.cta-final p {
    color: var(--text-secondary);
    margin-bottom: 32px; font-size: 1rem;
}
.cta-req {
    font-size: 0.8rem; color: var(--text-muted);
    margin-top: 20px;
}

/* === Футер === */
.footer {
    background: var(--bg-main);
    border-top: 1px solid var(--border);
    padding: 40px 24px;
}
.footer-inner {
    max-width: 760px; margin: 0 auto;
    text-align: center;
}
.footer-links {
    display: flex; gap: 20px; justify-content: center;
    flex-wrap: wrap; margin-bottom: 20px;
}
.footer-links a {
    color: var(--text-secondary); text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s;
}
.footer-links a:hover { color: var(--text-primary); }
.footer-copy {
    color: var(--text-muted); font-size: 0.8rem;
    line-height: 1.6;
}
.footer-privacy {
    color: var(--text-secondary); font-size: 0.75rem;
    margin-top: 12px; line-height: 1.5;
}

/* === Модалка приватности === */
.modal-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(6px);
    display: none; align-items: center; justify-content: center;
    z-index: 500; padding: 24px;
}
.modal-overlay.open { display: flex; }
.modal-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px; padding: 32px;
    max-width: 540px; width: 100%;
    max-height: 80vh; overflow-y: auto;
}
.modal-box h2 {
    font-family: var(--font-display);
    font-size: 1.3rem; margin-bottom: 16px;
}
.modal-box p {
    font-size: 0.9rem; color: var(--text-secondary);
    margin-bottom: 10px; line-height: 1.6;
}
.modal-box strong { color: var(--text-primary); }
.modal-close {
    display: block; margin: 24px auto 0;
    background: var(--accent); color: #fff; border: none;
    padding: 12px 32px; border-radius: 50px;
    font-size: 0.95rem; font-weight: 600;
    cursor: pointer;
}
.modal-close:hover { background: var(--accent-light); }

/* === Анимации при скролле === */
.reveal {
    opacity: 0; transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
    opacity: 1; transform: translateY(0);
}

/* === Скроллбар === */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* === Стрелка скролла === */
.scroll-hint {
    margin-top: 32px;
    font-size: 1.5rem;
    color: var(--text-muted);
    animation: bounce 2s ease infinite;
}
@keyframes bounce {
    0%, 100% { transform: translateY(0); opacity: 0.4; }
    50% { transform: translateY(10px); opacity: 0.8; }
}