/* ============================================================
   FormPlay — стили сайта
   Современный светлый премиум-стиль: indigo + navy, мягкие тени,
   градиенты, стекло, анимации появления.
   ============================================================ */

:root {
    --indigo: #4f46e5;
    --indigo-dark: #4338ca;
    --indigo-soft: #eef2ff;
    --navy: #18181b;
    --ink: #1f2333;
    --muted: #64748b;
    --line: #e8ebf2;
    --bg: #ffffff;
    --bg-soft: #f7f8fc;
    --violet: #7c3aed;
    --cyan: #06b6d4;
    --amber: #f59e0b;
    --emerald: #10b981;
    --radius: 18px;
    --radius-lg: 28px;
    --shadow-sm: 0 1px 2px rgba(16,24,40,.06), 0 1px 3px rgba(16,24,40,.05);
    --shadow: 0 10px 30px -12px rgba(30,41,90,.18);
    --shadow-lg: 0 30px 60px -20px rgba(30,41,90,.30);
    --maxw: 1160px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

h1, h2, h3, h4 { color: var(--navy); line-height: 1.15; letter-spacing: -.02em; margin: 0; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0; }

.text-grad {
    background: linear-gradient(100deg, var(--indigo), var(--violet) 55%, var(--cyan));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.muted { color: var(--muted); }
.center { text-align: center; }

/* ---------- Кнопки ---------- */
.btn {
    display: inline-flex; align-items: center; gap: .5rem;
    font-weight: 600; font-size: .98rem;
    padding: .8rem 1.5rem; border-radius: 999px;
    border: 1px solid transparent; cursor: pointer;
    transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
    background: linear-gradient(120deg, var(--indigo), var(--violet));
    color: #fff; box-shadow: 0 12px 24px -10px rgba(79,70,229,.7);
}
.btn-primary:hover { box-shadow: 0 18px 34px -12px rgba(79,70,229,.8); }
.btn-ghost { background: #fff; color: var(--navy); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { border-color: #cdd3e4; }
.btn-lg { padding: 1rem 1.9rem; font-size: 1.05rem; }

/* ---------- Хедер ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255,255,255,.8);
    backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 1rem; }
.logo { display: flex; align-items: center; gap: .55rem; font-weight: 800; font-size: 1.22rem; color: var(--navy); letter-spacing: -.03em; }
.logo .mark {
    width: 34px; height: 34px; border-radius: 10px;
    background: linear-gradient(135deg, var(--indigo), var(--violet));
    display: grid; place-items: center; color: #fff; font-size: 1rem;
    box-shadow: 0 6px 14px -4px rgba(79,70,229,.6);
}
.nav { display: flex; align-items: center; gap: .3rem; }
.nav a {
    padding: .5rem .85rem; border-radius: 10px; color: var(--muted);
    font-weight: 500; font-size: .95rem; transition: color .15s, background .15s;
}
.nav a:hover { color: var(--navy); background: var(--bg-soft); }
.nav a.active { color: var(--indigo); }
.header-cta { display: flex; align-items: center; gap: .6rem; }
.burger { display: none; background: none; border: 0; cursor: pointer; padding: .4rem; }
.burger span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; border-radius: 2px; transition: .3s; }

/* ---------- Секции ---------- */
section { padding: 84px 0; }
.section-tag {
    display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .08em;
    text-transform: uppercase; color: var(--indigo);
    background: var(--indigo-soft); padding: .35rem .8rem; border-radius: 999px; margin-bottom: 1rem;
}
.section-head { max-width: 720px; margin: 0 auto 3rem; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.1rem; margin-top: .9rem; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 96px 0 72px; overflow: hidden; }
.hero::before {
    content: ''; position: absolute; inset: 0; z-index: -1;
    background:
        radial-gradient(700px 380px at 15% -5%, rgba(124,58,237,.14), transparent 60%),
        radial-gradient(680px 420px at 100% 0%, rgba(6,182,212,.12), transparent 55%),
        linear-gradient(180deg, var(--bg-soft), #fff 70%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { margin-bottom: 1.2rem; }
.hero .lead { font-size: 1.2rem; color: var(--muted); max-width: 540px; margin-bottom: 2rem; }
.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; margin-bottom: 1.6rem; }
.hero-trust { display: flex; gap: 1.4rem; flex-wrap: wrap; color: var(--muted); font-size: .92rem; }
.hero-trust b { color: var(--navy); }

/* Демо-карточка в hero */
.hero-visual { position: relative; }
.demo-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg); padding: 30px; position: relative; overflow: hidden;
}
.demo-card::after {
    content: ''; position: absolute; top: -40%; right: -30%; width: 320px; height: 320px;
    background: radial-gradient(circle, rgba(124,58,237,.18), transparent 65%);
}
.wheel {
    width: 230px; height: 230px; border-radius: 50%; margin: 6px auto 22px; position: relative;
    background: conic-gradient(
        var(--indigo) 0 60deg, var(--violet) 60deg 120deg, var(--cyan) 120deg 180deg,
        var(--amber) 180deg 240deg, var(--emerald) 240deg 300deg, #ec4899 300deg 360deg);
    box-shadow: 0 0 0 10px #fff, 0 0 0 12px var(--line), var(--shadow);
    animation: spin 14s linear infinite;
}
.wheel::before {
    content: '🎁'; position: absolute; inset: 0; margin: auto; width: 54px; height: 54px;
    background: #fff; border-radius: 50%; display: grid; place-items: center; font-size: 1.5rem;
    box-shadow: var(--shadow-sm);
}
@keyframes spin { to { transform: rotate(360deg); } }
.demo-pointer { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); font-size: 1.6rem; z-index: 2; }
.demo-prizes { display: flex; justify-content: center; gap: .5rem; flex-wrap: wrap; }
.chip { background: var(--indigo-soft); color: var(--indigo-dark); font-weight: 600; font-size: .82rem; padding: .35rem .7rem; border-radius: 999px; }

/* Плавающие бейджи */
.float-badge {
    position: absolute; background: #fff; border: 1px solid var(--line); border-radius: 14px;
    padding: .6rem .9rem; box-shadow: var(--shadow); font-size: .85rem; font-weight: 600;
    display: flex; align-items: center; gap: .5rem;
}
.float-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--emerald); }
.float-badge.b1 { top: -18px; left: -18px; animation: float 5s ease-in-out infinite; }
.float-badge.b2 { bottom: -16px; right: -14px; animation: float 6s ease-in-out infinite reverse; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

/* ---------- Логобар ---------- */
.logobar { padding: 34px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.logobar .wrap { display: flex; align-items: center; justify-content: center; gap: 2.4rem; flex-wrap: wrap; }
.logobar span { color: var(--muted); font-weight: 600; font-size: 1rem; display: flex; align-items: center; gap: .5rem; }

/* ---------- Карточки-сетки ---------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 28px; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #dfe3f0; }
.card .ico {
    width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
    font-size: 1.5rem; margin-bottom: 1rem; background: var(--indigo-soft);
}
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--muted); font-size: .98rem; }

/* ---------- Как работает ---------- */
.steps { counter-reset: step; }
.step { position: relative; padding-left: 4.4rem; }
.step .num {
    position: absolute; left: 0; top: 0; width: 3rem; height: 3rem; border-radius: 14px;
    background: linear-gradient(135deg, var(--indigo), var(--violet)); color: #fff;
    display: grid; place-items: center; font-weight: 800; font-size: 1.2rem;
    box-shadow: 0 10px 20px -8px rgba(79,70,229,.6);
}
.step h3 { margin-bottom: .4rem; }
.step p { color: var(--muted); }

/* ---------- Виджеты (детально) ---------- */
.widget-row { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; margin-bottom: 56px; }
.widget-row:nth-child(even) .widget-visual { order: -1; }
.widget-visual {
    border-radius: var(--radius-lg); padding: 46px; min-height: 300px;
    display: grid; place-items: center; position: relative; overflow: hidden;
    background: linear-gradient(135deg, var(--indigo-soft), #fff);
    border: 1px solid var(--line);
}
.widget-visual .big-emoji { font-size: 6rem; filter: drop-shadow(0 14px 24px rgba(79,70,229,.25)); }
.feature-list { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; gap: .8rem; }
.feature-list li { display: flex; gap: .7rem; align-items: flex-start; color: var(--ink); }
.feature-list li::before {
    content: '✓'; flex: 0 0 22px; height: 22px; margin-top: 2px; border-radius: 50%;
    background: var(--emerald); color: #fff; font-size: .75rem; font-weight: 700;
    display: grid; place-items: center;
}
.pill { display: inline-block; font-size: .82rem; font-weight: 700; color: var(--violet); background: #f3e8ff; padding: .3rem .75rem; border-radius: 999px; margin-bottom: .8rem; }

/* ---------- Тарифы ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; align-items: stretch; }
.plan {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
    padding: 30px 26px; display: flex; flex-direction: column; box-shadow: var(--shadow-sm);
    transition: transform .2s, box-shadow .2s;
}
.plan:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.plan.accent {
    border-color: transparent; color: #fff;
    background: linear-gradient(160deg, var(--navy), #2a2a52 60%, var(--indigo-dark));
    box-shadow: var(--shadow-lg);
}
.plan.accent h3, .plan.accent .price { color: #fff; }
.plan.accent .muted { color: rgba(255,255,255,.7); }
.plan.accent .feature-list li { color: rgba(255,255,255,.92); }
.plan .badge-top { align-self: flex-start; font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; background: linear-gradient(120deg, var(--amber), #f97316); color: #fff; padding: .3rem .7rem; border-radius: 999px; margin-bottom: 1rem; }
.plan .price { font-size: 2.4rem; font-weight: 800; color: var(--navy); letter-spacing: -.03em; }
.plan .price small { font-size: 1rem; font-weight: 600; color: var(--muted); }
.plan .note { font-size: .9rem; margin: .3rem 0 1.2rem; }
.plan .feature-list { margin-bottom: 1.6rem; flex: 1; }
.plan .btn { width: 100%; justify-content: center; }
.plan.accent .btn-ghost { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.25); }

/* Таблица сравнения */
.compare { width: 100%; border-collapse: collapse; margin-top: 2.4rem; font-size: .96rem; }
.compare th, .compare td { padding: 14px 16px; text-align: center; border-bottom: 1px solid var(--line); }
.compare th:first-child, .compare td:first-child { text-align: left; font-weight: 600; color: var(--navy); }
.compare thead th { font-size: 1rem; font-weight: 800; color: var(--navy); }
.compare thead th.hl { color: var(--indigo); }
.compare tbody tr:hover { background: var(--bg-soft); }
.compare .yes { color: var(--emerald); font-weight: 700; }
.compare .no { color: #cbd2e0; }

/* ---------- CTA-полоса ---------- */
.cta-band {
    border-radius: var(--radius-lg); padding: 60px; text-align: center; position: relative; overflow: hidden;
    background: linear-gradient(135deg, var(--navy), var(--indigo-dark));
    color: #fff; box-shadow: var(--shadow-lg);
}
.cta-band::before { content: ''; position: absolute; inset: 0; background: radial-gradient(600px 260px at 20% 0%, rgba(124,58,237,.4), transparent 60%); }
.cta-band h2 { color: #fff; position: relative; }
.cta-band p { color: rgba(255,255,255,.82); max-width: 560px; margin: 1rem auto 2rem; position: relative; }
.cta-band .btn { position: relative; }

/* ---------- FAQ ---------- */
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 14px; background: #fff; overflow: hidden; transition: box-shadow .2s; }
.faq-item[open] { box-shadow: var(--shadow-sm); }
.faq-item summary {
    cursor: pointer; list-style: none; padding: 20px 24px; font-weight: 600; color: var(--navy);
    display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.5rem; color: var(--indigo); font-weight: 400; transition: transform .2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-body { padding: 0 24px 20px; color: var(--muted); }

/* ---------- Форма контактов ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; }
.field { margin-bottom: 1rem; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .4rem; color: var(--navy); }
.field input, .field textarea {
    width: 100%; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: 12px;
    font-family: inherit; font-size: 1rem; background: #fff; transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--indigo); box-shadow: 0 0 0 3px var(--indigo-soft); }
.contact-info { display: grid; gap: 1rem; }
.contact-info .row { display: flex; gap: .9rem; align-items: center; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.contact-info .row .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--indigo-soft); display: grid; place-items: center; font-size: 1.3rem; }

/* ---------- Футер ---------- */
.site-footer { background: var(--navy); color: rgba(255,255,255,.7); padding: 60px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 40px; }
.site-footer .logo { color: #fff; margin-bottom: 1rem; }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: 1rem; }
.site-footer a { display: block; color: rgba(255,255,255,.65); padding: .3rem 0; transition: color .15s; }
.site-footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 24px; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .88rem; }

/* ---------- Анимация появления ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Адаптив ---------- */
@media (max-width: 960px) {
    .hero-grid, .widget-row, .contact-grid { grid-template-columns: 1fr; }
    .widget-row:nth-child(even) .widget-visual { order: 0; }
    .grid-3, .grid-4, .pricing-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .hero-visual { max-width: 420px; margin: 0 auto; }
}
@media (max-width: 720px) {
    section { padding: 60px 0; }
    .nav, .header-cta .btn-ghost { display: none; }
    .burger { display: block; }
    .nav.open {
        display: flex; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0;
        background: #fff; border-bottom: 1px solid var(--line); padding: 12px 24px; gap: .2rem; box-shadow: var(--shadow);
    }
    .nav.open a { padding: .8rem; }
    .grid-3, .grid-4, .pricing-grid, .grid-2 { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .cta-band { padding: 40px 24px; }
    .compare { font-size: .85rem; }
    .compare th, .compare td { padding: 10px 8px; }
}
