:root {
    --ink: #1a0d2e;
    --ink-soft: #3a2758;
    --cream: #fff8ef;
    --cream-2: #fff1dc;
    --gold: #f0b429;
    --gold-2: #ffe08a;
    --ruby: #ff4d6d;
    --emerald: #1fad78;
    --sapphire: #3b82f6;
    --amethyst: #a855f7;
    --muted: #cbb8e4;
    --line: rgba(255, 246, 232, 0.14);
    --shadow: 0 24px 60px rgba(18, 6, 36, 0.35);
    --font: "Nunito", sans-serif;
    --display: "Baloo 2", "Nunito", sans-serif;
    --header: 78px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font);
    color: var(--cream);
    background:
        radial-gradient(900px 500px at 100% -10%, rgba(168, 85, 247, 0.28), transparent 55%),
        radial-gradient(700px 420px at -10% 20%, rgba(240, 180, 41, 0.16), transparent 50%),
        linear-gradient(180deg, #241042 0%, #14091f 42%, #1b0d30 100%);
    min-height: 100vh;
    line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, textarea { font-family: inherit; }

.wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    height: var(--header);
    display: flex;
    align-items: center;
    backdrop-filter: blur(16px);
    background: rgba(20, 9, 31, 0.78);
    border-bottom: 1px solid var(--line);
}
.site-header .wrap {
    display: flex;
    align-items: center;
    gap: 18px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-family: var(--display);
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
    margin-right: auto;
}
.brand img {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
}
.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav a {
    text-decoration: none;
    color: var(--muted);
    font-weight: 800;
    font-size: 0.95rem;
    padding: 8px 12px;
    border-radius: 999px;
}
.site-nav a:hover, .site-nav a.is-active { color: var(--cream); background: rgba(255, 255, 255, 0.06); }
.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--cream);
    cursor: pointer;
}
.btn-gold, .btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    border-radius: 999px;
    font-weight: 800;
    border: 0;
    cursor: pointer;
}
.btn-gold {
    background: linear-gradient(180deg, var(--gold-2), var(--gold));
    color: #3b2204;
    padding: 12px 20px;
    box-shadow: 0 10px 24px rgba(240, 180, 41, 0.28);
}
.btn-gold:hover { transform: translateY(-1px); }
.btn-ghost {
    padding: 12px 18px;
    color: var(--cream);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.04);
}
.btn-lg { padding: 15px 24px; font-size: 1.05rem; }
.site-nav .btn-gold { color: #3b2204; background: linear-gradient(180deg, var(--gold-2), var(--gold)); }

.hero { padding: 42px 0 28px; }
.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 40px;
    align-items: center;
}
.kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(240, 180, 41, 0.14);
    color: var(--gold-2);
    border: 1px solid rgba(240, 180, 41, 0.28);
    border-radius: 999px;
    padding: 6px 12px;
    font-weight: 800;
    font-size: 0.85rem;
    margin-bottom: 16px;
}
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.03em; line-height: 1.12; }
.hero h1 { font-size: clamp(2.4rem, 5vw, 4.3rem); margin-bottom: 14px; }
.hero h1 span { color: var(--gold-2); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 540px; margin-bottom: 22px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.pills li {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 0.86rem;
    font-weight: 800;
    color: var(--cream);
}
.hero-stage { position: relative; display: grid; place-items: center; min-height: 560px; }
.hero-logo {
    position: absolute;
    width: 148px;
    height: 148px;
    left: 0;
    top: 18px;
    border-radius: 36px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
    z-index: 2;
}
.phone {
    width: min(300px, 78vw);
    padding: 10px;
    border-radius: 36px;
    background: #120818;
    box-shadow: var(--shadow), inset 0 0 0 2px rgba(240, 180, 41, 0.7);
}
.phone img { border-radius: 28px; width: 100%; height: auto; }
.phone button {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
    border-radius: 28px;
}

.section { padding: 64px 0; }
.section h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); margin-bottom: 8px; }
.section-intro { color: var(--muted); max-width: 620px; margin-bottom: 28px; }
.center { text-align: center; }
.center .section-intro { margin-left: auto; margin-right: auto; }

.gallery {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
}
.gallery figure { margin: 0; }
.gallery figcaption {
    text-align: center;
    margin-top: 10px;
    font-weight: 800;
    font-size: 0.92rem;
}
.gallery .phone { width: 100%; }

.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 22px;
}
.card h3 { font-size: 1.25rem; margin: 12px 0 6px; }
.card p { color: var(--muted); }
.gem {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    color: white;
    font-size: 1.15rem;
}
.gem.gold { background: linear-gradient(180deg, #ffe08a, #e39b12); color: #3b2204; }
.gem.ruby { background: linear-gradient(180deg, #ff8fa3, #e11d48); }
.gem.emerald { background: linear-gradient(180deg, #6ee7b7, #059669); }
.gem.sapphire { background: linear-gradient(180deg, #93c5fd, #2563eb); }
.gem.amethyst { background: linear-gradient(180deg, #d8b4fe, #7e22ce); }
.gem.amber { background: linear-gradient(180deg, #fdba74, #ea580c); }

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px;
    align-items: center;
}
.split.reverse { direction: rtl; }
.split.reverse > * { direction: ltr; }
.split .phone { width: min(280px, 100%); margin-inline: auto; }
.check { list-style: none; margin-top: 16px; display: grid; gap: 8px; }
.check li { font-weight: 700; }
.check i { color: var(--gold-2); margin-right: 8px; }

.panel {
    background: var(--cream);
    color: var(--ink);
    border-radius: 28px;
    padding: 28px;
    box-shadow: var(--shadow);
}
.panel p, .panel li { color: var(--ink-soft); }
.panel h2, .panel h3 { color: var(--ink); }
.panel a { color: #7c3aed; font-weight: 800; }

.download {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 28px;
    border-radius: 28px;
    background:
        radial-gradient(400px 180px at 100% 0%, rgba(255, 224, 138, 0.25), transparent 60%),
        linear-gradient(135deg, #4c1d95, #2a1054);
    border: 1px solid rgba(255, 224, 138, 0.25);
}
.download p { color: var(--muted); margin-top: 6px; }
.note { font-size: 0.85rem; color: var(--muted); margin-top: 8px; }

.site-footer { border-top: 1px solid var(--line); padding: 42px 0 24px; margin-top: 20px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
.site-footer h4 { margin-bottom: 10px; font-size: 1.05rem; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--cream); }
.site-footer ul { list-style: none; display: grid; gap: 8px; }
.site-footer p { color: var(--muted); margin-top: 10px; }
.legal {
    margin-top: 28px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.88rem;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.page-hero { padding: 36px 0 8px; }
.page-hero h1 { font-size: clamp(2rem, 4vw, 3.2rem); }
.page-hero p { color: var(--muted); max-width: 640px; margin-top: 8px; }
.stack { display: grid; gap: 16px; }
.two { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 18px; align-items: start; }
.info-list { display: grid; gap: 12px; }
.info-list article {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 16px;
}
.info-list h3 { font-size: 1rem; margin-bottom: 4px; }
.info-list p, .info-list a { color: var(--muted); text-decoration: none; font-weight: 700; }
.info-list a:hover { color: var(--gold-2); }
.socials { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.socials a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.05);
    color: var(--cream);
    font-weight: 800;
    text-decoration: none;
}
.socials a:hover { color: #3b2204; background: linear-gradient(180deg, var(--gold-2), var(--gold)); }

label { display: block; font-weight: 800; margin-bottom: 6px; }
.field { margin-bottom: 14px; }
.field input, .field textarea {
    width: 100%;
    border: 1px solid #eadcc8;
    background: #fff;
    border-radius: 14px;
    padding: 12px 14px;
    font-size: 1rem;
    color: var(--ink);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus {
    outline: 3px solid rgba(168, 85, 247, 0.25);
    border-color: #a855f7;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.alert {
    border-radius: 14px;
    padding: 12px 14px;
    margin-bottom: 14px;
    font-weight: 800;
}
.alert.ok { background: #ecfdf5; color: #065f46; }
.alert.bad { background: #fff1f2; color: #9f1239; }
.policy h2 { font-size: 1.25rem; margin: 22px 0 8px; }
.policy h2:first-child { margin-top: 0; }
.policy ul { margin: 8px 0 12px 1.2rem; }
.callout, .policy .callout {
    background: #f6efff;
    border-left: 4px solid #7c3aed;
    border-radius: 12px;
    padding: 12px 14px;
    margin: 12px 0;
}
.callout.warn, .policy .warn {
    background: #fff1f2;
    border-left-color: #e11d48;
}
.btn-danger {
    width: 100%;
    border: 0;
    border-radius: 14px;
    padding: 14px;
    background: #e11d48;
    color: white;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
}
.btn-block { width: 100%; }

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 80;
    background: rgba(10, 4, 18, 0.86);
    display: none;
    place-items: center;
    padding: 24px;
}
.lightbox.is-open { display: grid; }
.promo-popup {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: none;
    place-items: center;
    padding: 24px;
    background: rgba(10, 4, 18, 0.82);
}
.promo-popup.is-open { display: grid; }
.promo-popup-card { position: relative; max-width: min(92vw, 560px); }
.promo-popup-card img {
    width: auto;
    max-width: 100%;
    max-height: 82vh;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.promo-popup-close {
    position: absolute;
    top: -14px;
    right: -14px;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: var(--cream);
    color: var(--ink);
    font-size: 1.4rem;
    cursor: pointer;
    z-index: 2;
}
.lightbox img { max-height: 92vh; width: auto; border-radius: 18px; box-shadow: var(--shadow); }
.lightbox-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 0;
    background: var(--cream);
    color: var(--ink);
    font-size: 1.4rem;
    cursor: pointer;
}

@media (max-width: 980px) {
    .hero-grid, .split, .split.reverse, .features, .two, .footer-grid, .download { grid-template-columns: 1fr; direction: ltr; }
    .download, .footer-grid { display: grid; }
    .hero-stage { min-height: 0; padding-top: 24px; }
    .hero-logo { position: static; margin: 0 auto 16px; }
    .gallery {
        display: flex;
        overflow-x: auto;
        gap: 12px;
        scroll-snap-type: x mandatory;
        padding-bottom: 8px;
    }
    .gallery figure { flex: 0 0 210px; scroll-snap-align: center; }
    .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
    .nav-toggle { display: inline-grid; place-items: center; }
    .site-nav {
        display: none;
        position: absolute;
        top: var(--header);
        left: 0;
        right: 0;
        z-index: 50;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding: 12px 16px 18px;
        background: #160a28;
        border-bottom: 1px solid var(--line);
        box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
    }
    .site-nav.is-open { display: flex; }
    .site-nav .btn-gold { text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
    * { scroll-behavior: auto !important; transition: none !important; }
}
