/* =================================================================
   Платёжный Агент — лендинг. Один файл стилей, без зависимостей.
   Перекраска бренда — в блоке :root ниже.
   ================================================================= */

/* ===== ДИЗАЙН-ТОКЕНЫ ===== */
:root {
    --primary: #15246b;
    --primary-600: #1d2f86;
    --primary-050: #eef1fb;
    --accent: #e23744;
    --success: #16a34a;

    --bg: #f7f8fb;
    --surface: #ffffff;
    --text: #1a1f36;
    --text-muted: #5b6378;
    --border: #e7e9f2;

    --shadow-sm: 0 1px 2px rgba(20,30,80,.06), 0 1px 3px rgba(20,30,80,.04);
    --shadow-md: 0 4px 12px rgba(20,30,80,.07), 0 2px 4px rgba(20,30,80,.04);
    --shadow-lg: 0 18px 40px rgba(20,30,80,.12);

    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 22px;

    --maxw: 1160px;
    --header-h: 72px;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, Arial, sans-serif;
    margin: 0; background: var(--bg); color: var(--text); line-height: 1.6;
    -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
    display: flex; flex-direction: column; min-height: 100vh;
}
h1, h2, h3 { margin: 0 0 .6em; line-height: 1.15; letter-spacing: -.02em; }
h2 { font-size: clamp(1.7rem, 1.1rem + 2vw, 2.5rem); color: var(--text); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1rem; }
a { color: inherit; }
img { max-width: 100%; display: block; }
::selection { background: var(--primary); color: #fff; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--primary) 45%, transparent); outline-offset: 2px; border-radius: 4px; }

/* ===== КНОПКИ ===== */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .7rem 1.4rem; border-radius: var(--radius-sm);
    font-size: .95rem; font-weight: 600; text-decoration: none; cursor: pointer;
    border: 1.5px solid transparent;
    transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
    white-space: nowrap; font-family: inherit;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--primary-600); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--border); }
.btn-outline:hover { border-color: var(--primary); background: var(--primary-050); }
.btn-lg { padding: 1rem 2.2rem; font-size: 1.05rem; border-radius: var(--radius); }
.btn-white { background: #fff; color: var(--primary); }
.btn-white:hover { background: #f0f2fb; }

/* ===== HEADER ===== */
header {
    position: sticky; top: 0; z-index: 1000; height: var(--header-h);
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: 0 clamp(1rem, 4vw, 3rem);
    background: rgba(255,255,255,.8);
    backdrop-filter: saturate(180%) blur(12px); -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
}
header.scrolled { border-color: var(--border); box-shadow: var(--shadow-sm); background: rgba(255,255,255,.92); }
.logo { display: flex; align-items: center; gap: .55rem; text-decoration: none; font-size: 1.15rem; font-weight: 800; letter-spacing: -.02em; color: var(--text); }
.logo-mark { width: 32px; height: 32px; border-radius: 9px; background: linear-gradient(135deg, var(--primary), var(--primary-600)); display: grid; place-items: center; color: #fff; font-size: .9rem; font-weight: 800; flex-shrink: 0; }
nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2rem; }
nav a { text-decoration: none; font-size: .95rem; font-weight: 500; color: var(--text-muted); transition: color .2s; }
nav a:hover { color: var(--primary); }
.header-actions { display: flex; align-items: center; gap: .6rem; }
.burger { display: none; flex-direction: column; gap: 5px; width: 42px; height: 42px; align-items: center; justify-content: center; background: none; border: none; cursor: pointer; border-radius: var(--radius-sm); }
.burger span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: .3s; }
.burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== LAYOUT ===== */
main { flex: 1; }
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(1rem, 4vw, 2rem); }
.section-head { max-width: 720px; margin: 0 auto 3rem; text-align: center; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--primary); background: var(--primary-050); padding: .35rem .8rem; border-radius: 30px; margin-bottom: 1rem; }
.section-head p { color: var(--text-muted); font-size: 1.1rem; }

/* ===== HERO ===== */
.hero {
    position: relative; overflow: hidden; color: #fff;
    background:
        radial-gradient(1200px 600px at 80% -10%, rgba(226,55,68,.35), transparent 60%),
        radial-gradient(900px 600px at 0% 110%, rgba(29,47,134,.6), transparent 55%),
        linear-gradient(135deg, #0f1a4d 0%, var(--primary) 55%, #25347f 100%);
}
.hero-inner { position: relative; z-index: 2; padding: clamp(4rem, 9vw, 7rem) 0; text-align: center; }
.hero-badge { display: inline-flex; align-items: center; gap: .5rem; font-size: .85rem; font-weight: 600; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); padding: .45rem 1rem; border-radius: 30px; margin-bottom: 1.6rem; backdrop-filter: blur(4px); }
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 4px rgba(74,222,128,.25); }
.hero h1 { font-size: clamp(2.2rem, 1.3rem + 4vw, 4rem); font-weight: 800; max-width: 18ch; margin: 0 auto 1.2rem; }
.hero-sub { font-size: clamp(1.05rem, .95rem + .6vw, 1.35rem); color: rgba(255,255,255,.82); max-width: 640px; margin: 0 auto 2.4rem; }
.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero-cta .btn-outline { color: #fff; border-color: rgba(255,255,255,.4); }
.hero-cta .btn-outline:hover { background: rgba(255,255,255,.12); border-color: #fff; }

/* ===== СТАТЫ ===== */
.hero-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); max-width: 880px; margin: -3.5rem auto 0; position: relative; z-index: 5; }
.stat { background: var(--surface); padding: 1.6rem 1rem; text-align: center; }
.stat b { display: block; font-size: clamp(1.5rem, 1rem + 1.6vw, 2rem); color: var(--primary); font-weight: 800; letter-spacing: -.03em; }
.stat span { font-size: .9rem; color: var(--text-muted); }

/* ===== О КОМПАНИИ ===== */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.about-grid p { color: var(--text-muted); font-size: 1.05rem; }
.about-highlight { border-left: 3px solid var(--primary); padding: .4rem 0 .4rem 1.4rem; font-weight: 600; color: var(--text); font-size: 1.1rem; }
.about-visual { background: linear-gradient(135deg, var(--primary-050), #fff); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2.5rem; box-shadow: var(--shadow-md); display: grid; gap: 1rem; }
.about-visual .mini { display: flex; align-items: center; gap: .9rem; font-weight: 600; }
.about-visual .mini .ico { width: 40px; height: 40px; border-radius: 11px; background: var(--primary-050); color: var(--primary); display: grid; place-items: center; flex-shrink: 0; }

/* ===== КАРТОЧКИ ===== */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 1.4rem; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--primary) 25%, var(--border)); }
.card .ico { width: 48px; height: 48px; border-radius: 12px; background: var(--primary-050); color: var(--primary); display: grid; place-items: center; margin-bottom: 1.1rem; }
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--text-muted); margin: 0; font-size: .98rem; }

/* ===== ШАГИ ===== */
.steps { display: grid; gap: 1rem; max-width: 760px; margin: 0 auto; }
.step { display: flex; gap: 1.2rem; align-items: flex-start; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.3rem 1.6rem; box-shadow: var(--shadow-sm); }
.step .num { flex-shrink: 0; width: 40px; height: 40px; border-radius: 12px; background: linear-gradient(135deg, var(--primary), var(--primary-600)); color: #fff; font-weight: 800; display: grid; place-items: center; }
.step h3 { font-size: 1.05rem; margin-bottom: .25rem; }
.step p { margin: 0; color: var(--text-muted); font-size: .95rem; }

/* ===== ТЕГИ ===== */
.tags { display: flex; flex-wrap: wrap; gap: .7rem; justify-content: center; }
.tag { background: var(--surface); border: 1px solid var(--border); color: var(--text); padding: .6rem 1.2rem; border-radius: 30px; font-weight: 500; font-size: .95rem; transition: border-color .2s, color .2s; }
.tag:hover { border-color: var(--primary); color: var(--primary); }

/* ===== ЧЕК-ЛИСТ ===== */
.checklist { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; }
.checklist li { display: flex; align-items: flex-start; gap: .8rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.1rem 1.3rem; font-weight: 500; }
.checklist .check { flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; background: color-mix(in srgb, var(--success) 15%, #fff); color: var(--success); display: grid; place-items: center; font-size: .85rem; }

/* ===== FAQ ===== */
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: .8rem; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.faq-q { width: 100%; text-align: left; background: none; border: none; cursor: pointer; padding: 1.2rem 1.4rem; font-size: 1.05rem; font-weight: 600; color: var(--text); display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-family: inherit; }
.faq-q .chev { transition: transform .25s; color: var(--text-muted); flex-shrink: 0; }
.faq-item.open .chev { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a p { padding: 0 1.4rem 1.3rem; margin: 0; color: var(--text-muted); }

/* ===== CTA-полоса ===== */
.cta-band { background: linear-gradient(135deg, var(--primary), var(--primary-600)); border-radius: var(--radius-lg); padding: clamp(2.5rem, 5vw, 4rem); text-align: center; color: #fff; box-shadow: var(--shadow-lg); }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.8); max-width: 560px; margin: 0 auto 2rem; font-size: 1.1rem; }

/* ===== FOOTER ===== */
footer { background: #0f1a4d; color: rgba(255,255,255,.7); padding: clamp(3rem, 6vw, 4.5rem) 0 2rem; margin-top: auto; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2.5rem; }
.footer-brand .logo { color: #fff; margin-bottom: 1rem; }
.footer-brand p { color: rgba(255,255,255,.6); max-width: 320px; }
.footer-col h4 { color: #fff; font-size: .95rem; margin: 0 0 1rem; text-transform: uppercase; letter-spacing: .05em; }
.footer-col a { display: block; color: rgba(255,255,255,.65); text-decoration: none; padding: .3rem 0; font-size: .95rem; transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2.5rem; padding-top: 1.5rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: .85rem; color: rgba(255,255,255,.5); }

/* ===== МОДАЛКА ЗАЯВКИ ===== */
.modal { display: none; position: fixed; inset: 0; z-index: 99999; background: rgba(10,15,40,.6); backdrop-filter: blur(4px); padding: 24px; overflow-y: auto; }
.modal.open { display: grid; place-items: start center; }
body.modal-open { overflow: hidden; }
.modal-content { background: var(--surface); border-radius: var(--radius-lg); padding: 2.2rem; width: 100%; max-width: 440px; position: relative; box-shadow: var(--shadow-lg); margin: auto; animation: pop .25s ease; }
@keyframes pop { from { transform: translateY(12px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-header { text-align: center; margin-bottom: 1.5rem; }
.modal-header h2 { font-size: 1.5rem; margin: 0; }
.modal-header p { color: var(--text-muted); font-size: .95rem; margin: .4rem 0 0; }
.close-modal { position: absolute; right: 1rem; top: 1rem; width: 34px; height: 34px; border-radius: 50%; border: none; background: var(--bg); color: var(--text-muted); font-size: 1.3rem; line-height: 1; cursor: pointer; display: grid; place-items: center; transition: background .2s, color .2s; }
.close-modal:hover { background: var(--border); color: var(--text); }
.lead-form label { display: block; font-size: .85rem; font-weight: 600; color: var(--text); margin: 0 0 .35rem; }
.lead-form input, .lead-form textarea { width: 100%; padding: .8rem .9rem; margin-bottom: 1rem; border: 1.5px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); color: var(--text); font-size: 1rem; font-family: inherit; transition: border-color .2s, box-shadow .2s; }
.lead-form textarea { resize: vertical; min-height: 90px; }
.lead-form input:focus, .lead-form textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-050); }
.lead-form .btn-submit { width: 100%; margin-top: .3rem; }
.form-hint { font-size: .82rem; color: var(--text-muted); margin: -.4rem 0 1rem; }
.error-message { display: none; color: var(--accent); font-size: .88rem; margin-bottom: 1rem; padding: .6rem .8rem; background: color-mix(in srgb, var(--accent) 8%, #fff); border-radius: var(--radius-sm); }

/* ===== УВЕДОМЛЕНИЯ ===== */
.toasts { position: fixed; top: 16px; right: 16px; z-index: 100000; display: grid; gap: .6rem; max-width: 360px; }
.toast { padding: .9rem 1.1rem; border-radius: var(--radius-sm); color: #fff; display: flex; justify-content: space-between; align-items: center; gap: 1rem; box-shadow: var(--shadow-lg); animation: slideIn .3s ease; }
.toast.success { background: var(--success); }
.toast.error { background: var(--accent); }
.toast.info { background: var(--primary); }
.toast .x { cursor: pointer; font-size: 1.2rem; line-height: 1; opacity: .85; }
@keyframes slideIn { from { transform: translateX(110%); opacity: 0; } to { transform: none; opacity: 1; } }

/* ===== REVEAL ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } .reveal { opacity: 1; transform: none; } }

/* ===== АДАПТИВ ===== */
@media (max-width: 900px) {
    .about-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
    nav { position: fixed; inset: var(--header-h) 0 auto 0; background: #fff; flex-direction: column; padding: 1.5rem clamp(1rem, 4vw, 3rem); box-shadow: var(--shadow-md); border-bottom: 1px solid var(--border); transform: translateY(-120%); transition: transform .3s ease; z-index: 999; }
    nav.active { transform: none; }
    nav ul { flex-direction: column; gap: 1.2rem; }
    .burger { display: flex; }
}
@media (max-width: 600px) {
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; }
}
