/* ============================================================
   cagebreak.click — Светлый неоморфизм
   ============================================================ */

:root {
    --bg: #e0e5ec;
    --bg-soft: #e8edf4;
    --shadow-light: #ffffff;
    --shadow-dark: #a3b1c6;
    --text: #2d3748;
    --text-muted: #64748b;
    --accent: #6366f1;
    --accent-hover: #4f46e5;
    --accent-soft: #eef2ff;
    --radius-sm: 12px;
    --radius-md: 18px;
    --radius-lg: 28px;
    --gap: 1.5rem;
    --container: 1100px;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

a { color: var(--accent); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent-hover); }

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

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ---------- Neumorphism helpers ---------- */
.neu-raised {
    background: var(--bg);
    box-shadow:
        -8px -8px 16px var(--shadow-light),
         8px  8px 16px var(--shadow-dark);
}
.neu-inset {
    background: var(--bg);
    box-shadow:
        inset -4px -4px 8px var(--shadow-light),
        inset  4px  4px 8px var(--shadow-dark);
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    color: var(--text);
    background: var(--bg);
    box-shadow:
        -6px -6px 12px var(--shadow-light),
         6px  6px 12px var(--shadow-dark);
}
.btn:hover {
    color: var(--accent);
    box-shadow:
        -4px -4px 8px var(--shadow-light),
         4px  4px 8px var(--shadow-dark);
}
.btn:active,
.btn.active {
    box-shadow:
        inset -4px -4px 8px var(--shadow-light),
        inset  4px  4px 8px var(--shadow-dark);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: #ffffff;
    box-shadow:
        -6px -6px 12px var(--shadow-light),
         6px  6px 12px var(--shadow-dark),
         0 4px 14px rgba(99, 102, 241, 0.35);
}
.btn-primary:hover {
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow:
        -4px -4px 8px var(--shadow-light),
         4px  4px 8px var(--shadow-dark),
         0 6px 20px rgba(99, 102, 241, 0.45);
}
.btn-primary:active {
    transform: translateY(0);
    box-shadow:
        inset -4px -4px 8px rgba(255,255,255,0.2),
        inset  4px  4px 8px rgba(0,0,0,0.15);
}

.btn-ghost {
    color: var(--accent);
}
.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.05rem;
}
.btn-block {
    display: block;
    width: 100%;
}

/* ---------- Header ---------- */
.site-header {
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg);
    box-shadow:
        0 4px 12px rgba(163, 177, 198, 0.25);
}
.nav-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}
.logo {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.02em;
}
.logo span { color: var(--accent); }
.logo:hover { color: var(--text); }

.nav {
    display: flex;
    gap: 1.75rem;
    flex: 1;
    justify-content: center;
}
.nav a {
    color: var(--text);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.4rem 0.6rem;
    border-radius: 8px;
    transition: var(--transition);
}
.nav a:hover {
    color: var(--accent);
    background: var(--bg);
    box-shadow:
        inset -2px -2px 4px var(--shadow-light),
        inset  2px  2px 4px var(--shadow-dark);
}

.burger {
    display: none;
    background: transparent;
    border: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 0.5rem;
}
.burger span {
    width: 26px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: var(--transition);
}

/* ---------- Hero ---------- */
.hero {
    padding: 4rem 0 5rem;
}
.hero-card {
    text-align: center;
    padding: 4rem 2rem;
    border-radius: var(--radius-lg);
    background: var(--bg);
    box-shadow:
        -12px -12px 24px var(--shadow-light),
         12px  12px 24px var(--shadow-dark);
}
.hero-title {
    font-size: clamp(1.8rem, 4.5vw, 3.2rem);
    font-weight: 700;
    line-height: 1.15;
    margin: 0 0 1.5rem;
    letter-spacing: -0.02em;
}
.hero-sub {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 640px;
    margin: 0 auto 2.5rem;
}
.hero-actions {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}
.hero-link {
    font-weight: 600;
    color: var(--accent);
}

/* ---------- Sections ---------- */
.section {
    padding: 4rem 0;
}
.section-alt {
    background: var(--bg-soft);
    border-radius: var(--radius-lg);
    margin: 2rem 0;
}
.section-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    margin: 0 0 1rem;
    text-align: center;
    letter-spacing: -0.02em;
}
.section-lead {
    text-align: center;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 3rem;
    font-size: 1.05rem;
}

/* ---------- Grids ---------- */
.grid {
    display: grid;
    gap: var(--gap);
}
.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

/* ---------- Cards (neu) ---------- */
.neu-card {
    background: var(--bg);
    border-radius: var(--radius-md);
    padding: 2rem;
    box-shadow:
        -8px -8px 16px var(--shadow-light),
         8px  8px 16px var(--shadow-dark);
    transition: var(--transition);
}
.neu-card:hover {
    transform: translateY(-2px);
    box-shadow:
        -10px -10px 20px var(--shadow-light),
         10px  10px 20px var(--shadow-dark);
}

.icon-circle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 1.2rem;
    background: var(--bg);
    box-shadow:
        inset -4px -4px 8px var(--shadow-light),
        inset  4px  4px 8px var(--shadow-dark);
}

.neu-card h3 {
    margin: 0 0 0.75rem;
    font-size: 1.15rem;
    font-weight: 600;
}
.neu-card p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ---------- About + Stats ---------- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}
.about-text p {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin: 0 0 1rem;
}
.stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--gap);
}
.stat {
    text-align: center;
    padding: 1.5rem 1rem;
}
.stat strong {
    display: block;
    font-size: 1.6rem;
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 0.25rem;
}
.stat span {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ---------- Pricing ---------- */
.pricing-grid {
    align-items: stretch;
}
.pricing-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    position: relative;
}
.pricing-card .price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
    margin: 0.5rem 0 1.25rem;
}
.pricing-card .price small {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-muted);
}
.pricing-card .features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    text-align: left;
    flex: 1;
}
.pricing-card .features li {
    padding: 0.5rem 0;
    border-bottom: 1px dashed rgba(163, 177, 198, 0.4);
    color: var(--text-muted);
    font-size: 0.95rem;
}
.pricing-card .features li:last-child {
    border-bottom: none;
}
.pricing-card .features li::before {
    content: "✓ ";
    color: var(--accent);
    font-weight: 700;
    margin-right: 0.5rem;
}
.pricing-featured {
    box-shadow:
        -10px -10px 20px var(--shadow-light),
         10px  10px 20px var(--shadow-dark),
         inset 0 0 0 2px var(--accent);
}
.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: #fff;
    padding: 0.25rem 1rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(99, 102, 241, 0.4);
}

/* ---------- FAQ ---------- */
.faq {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
}
.faq-item {
    padding: 1rem 1.5rem;
    cursor: pointer;
}
.faq-item summary {
    font-weight: 600;
    font-size: 1.05rem;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
}
.faq-item summary::after {
    content: "+";
    font-size: 1.5rem;
    color: var(--accent);
    font-weight: 400;
    transition: var(--transition);
}
.faq-item[open] summary::after {
    content: "−";
}
.faq-item[open] {
    box-shadow:
        inset -4px -4px 8px var(--shadow-light),
        inset  4px  4px 8px var(--shadow-dark);
}
.faq-item p {
    margin: 0.75rem 0 0;
    color: var(--text-muted);
}

/* ---------- Footer ---------- */
.site-footer {
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
    background: var(--bg);
    box-shadow:
        0 -4px 12px rgba(163, 177, 198, 0.2);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(163, 177, 198, 0.3);
}
.footer-brand p { margin: 0.5rem 0 0; color: var(--text-muted); font-size: 0.9rem; }
.footer-nav, .footer-contacts {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.footer-nav a, .footer-contacts a {
    color: var(--text);
    font-size: 0.95rem;
}
.footer-nav a:hover, .footer-contacts a:hover { color: var(--accent); }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}
.footer-bottom small { color: var(--text-muted); }
.footer-policies {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
}
.footer-policies a {
    color: var(--text-muted);
    font-size: 0.85rem;
}
.footer-policies a:hover { color: var(--accent); }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
    .nav, .nav-cta { display: none; }
    .burger { display: flex; }
    .nav.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 1.5rem;
        right: 1.5rem;
        padding: 1.5rem;
        background: var(--bg);
        border-radius: var(--radius-md);
        box-shadow:
            -8px -8px 16px var(--shadow-light),
             8px  8px 16px var(--shadow-dark);
        margin-top: 0.5rem;
    }
    .nav.open ~ .nav-cta {
        display: inline-block;
        margin-top: 0.75rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-card { padding: 3rem 1.5rem; }
    .container { padding: 0 1rem; }
    .neu-card { padding: 1.5rem; }
    .stat strong { font-size: 1.3rem; }
}

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

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