/* B4K Agency — b4k.online. Без фреймворків: один файл стилів, mobile-first. */
:root {
  --bg: #07070c;
  --bg-2: #0e0e17;
  --card: #12121d;
  --line: #23233a;
  --text: #ecedf5;
  --muted: #9a9cb3;
  --cyan: #00e5f0;
  --purple: #a020f0;
  --gold: #ffd166;
  --ok: #33d69f;
  --danger: #ff5c7a;
  --grad: linear-gradient(90deg, var(--cyan), var(--purple) 55%, var(--gold));
  --radius: 18px;
  --wrap: 1160px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: #fff; color: #000; padding: 8px 12px; z-index: 100; border-radius: 8px; }

/* --- Header --- */
.header { position: sticky; top: 0; z-index: 50; background: rgba(7, 7, 12, 0.82); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.header .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { font-weight: 900; font-size: 28px; letter-spacing: -1px; }
.brand-name { font-size: 11px; line-height: 1.15; color: var(--muted); text-transform: uppercase; letter-spacing: 0.12em; }
.brand-name b { color: var(--text); display: block; letter-spacing: 0.18em; }
.nav { display: none; gap: 26px; margin-left: auto; font-size: 14px; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover { color: var(--text); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.lang { font-size: 13px; font-weight: 600; color: var(--muted); text-decoration: none; padding: 6px 10px; border: 1px solid var(--line); border-radius: 10px; }
.lang:hover { color: var(--text); border-color: #3a3a5c; }
.header .btn { display: none; }
@media (min-width: 960px) {
  .nav { display: flex; }
  .header-actions { margin-left: 8px; }
  .header .btn { display: inline-flex; }
}

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px; border-radius: 14px; border: 1px solid transparent;
  font: 600 15px/1 inherit; text-decoration: none; cursor: pointer; transition: transform .15s, background .15s, border-color .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: #fff; color: #07070c; }
.btn-primary:hover { background: var(--cyan); }
.btn-ghost { background: transparent; color: var(--text); border-color: #34345a; }
.btn-ghost:hover { border-color: var(--cyan); }
.btn-sm { padding: 10px 16px; font-size: 14px; border-radius: 12px; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* --- Hero --- */
.hero { position: relative; overflow: hidden; padding: 72px 0 64px; }
.hero::before {
  content: ""; position: absolute; inset: -30% -10% auto; height: 700px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(160, 32, 240, .28), transparent 70%),
              radial-gradient(closest-side at 70% 40%, rgba(0, 229, 240, .16), transparent 70%);
}
.hero .wrap { position: relative; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; background: rgba(255,255,255,.02); }
.eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.hero h1 { font-size: clamp(36px, 7vw, 76px); line-height: 1.04; letter-spacing: -0.035em; font-weight: 900; margin: 22px 0 20px; max-width: 15ch; }
.hero p.lead { font-size: clamp(17px, 2.2vw, 21px); color: #c4c6da; max-width: 60ch; margin: 0 0 32px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.platforms { margin-top: 48px; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--muted); font-size: 14px; }
.platforms span { white-space: nowrap; }
.platforms span::before { content: "◆"; font-size: 9px; color: var(--purple); margin-right: 8px; vertical-align: 2px; }

/* --- Sections --- */
section.block { padding: 84px 0; border-top: 1px solid var(--line); }
.section-head { max-width: 760px; margin-bottom: 40px; }
.kicker { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: var(--cyan); }
.section-head h2 { font-size: clamp(28px, 4.4vw, 46px); line-height: 1.1; letter-spacing: -0.025em; margin: 10px 0 14px; }
.section-head p { color: var(--muted); font-size: 18px; margin: 0; }

.grid { display: grid; gap: 16px; }
@media (min-width: 720px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; position: relative; }
.card h3 { font-size: 21px; margin: 14px 0 10px; letter-spacing: -0.01em; }
.card p { color: var(--muted); margin: 0 0 14px; }
.card ul { margin: 0; padding-left: 18px; color: #c4c6da; font-size: 15px; }
.card li { margin: 4px 0; }
.icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 20px; background: linear-gradient(135deg, rgba(0,229,240,.16), rgba(160,32,240,.22)); border: 1px solid #2e2e4c; }
.badge { position: absolute; top: 22px; right: 22px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; color: #07070c; background: var(--gold); }
.card.featured { border-color: #4a2a74; background: linear-gradient(160deg, #18122a, var(--card) 60%); }

/* --- Steps --- */
.steps { counter-reset: step; display: grid; gap: 14px; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(5, 1fr); } }
.step { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.step::before { counter-increment: step; content: "0" counter(step); font-weight: 800; font-size: 14px; color: var(--cyan); }
.step h3 { font-size: 17px; margin: 10px 0 8px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }
.principles { margin-top: 28px; }
.principle { display: flex; gap: 14px; align-items: flex-start; }
.principle .icon { flex-shrink: 0; }
.principle h3 { margin: 2px 0 4px; font-size: 17px; }
.principle p { margin: 0; color: var(--muted); font-size: 15px; }

/* --- CDP --- */
.cdp { display: grid; gap: 28px; align-items: center; }
@media (min-width: 960px) { .cdp { grid-template-columns: 1.1fr 1fr; } }
.cdp-visual { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; font-size: 14px; }
.cdp-row { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px dashed var(--line); color: var(--muted); }
.cdp-row:last-child { border-bottom: 0; }
.cdp-row b { color: var(--text); font-weight: 600; text-align: right; }
.checks { list-style: none; padding: 0; margin: 0 0 26px; }
.checks li { padding-left: 30px; position: relative; margin: 10px 0; color: #c4c6da; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 6px; background: rgba(51,214,159,.14); color: var(--ok); font-size: 13px; display: grid; place-items: center; font-weight: 800; }

/* --- Audit / form --- */
.audit { display: grid; gap: 32px; }
@media (min-width: 960px) { .audit { grid-template-columns: 1fr 1.15fr; align-items: start; } }
.form { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 26px; }
.form .row2 { display: grid; gap: 14px; }
@media (min-width: 600px) { .form .row2 { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 13px; color: var(--muted); }
.field label .req { color: var(--danger); }
.field input, .field select, .field textarea {
  width: 100%; background: #0a0a12; border: 1px solid #2a2a44; color: var(--text); border-radius: 12px;
  padding: 13px 14px; font: inherit; font-size: 15px; transition: border-color .15s;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--cyan); }
.field input[aria-invalid="true"] { border-color: var(--danger); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); margin: 4px 0 18px; }
.consent input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--cyan); flex-shrink: 0; }
.consent a { color: var(--cyan); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { width: 100%; }
.form-note { font-size: 13px; color: var(--muted); margin-top: 12px; text-align: center; }
.form-msg { display: none; border-radius: 14px; padding: 16px; margin-top: 14px; font-size: 15px; }
.form-msg.show { display: block; }
.form-msg.ok { background: rgba(51,214,159,.1); border: 1px solid rgba(51,214,159,.4); }
.form-msg.err { background: rgba(255,92,122,.08); border: 1px solid rgba(255,92,122,.4); }
.form-msg a { color: var(--cyan); }

/* --- FAQ --- */
.faq { max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--cyan); font-size: 22px; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); margin: 12px 0 0; }

/* --- Contacts / footer --- */
.contacts { display: grid; gap: 16px; }
@media (min-width: 800px) { .contacts { grid-template-columns: repeat(3, 1fr); } }
.contact-card { text-decoration: none; display: block; }
.contact-card:hover { border-color: #3a3a64; }
.contact-card small { color: var(--muted); display: block; margin-bottom: 4px; }
.contact-card b { font-size: 18px; }
footer { border-top: 1px solid var(--line); padding: 30px 0 90px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; }
footer a { color: var(--muted); }

.form-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 60; height: 52px; padding: 0 20px 0 16px; border-radius: 999px;
  background: var(--grad); color: #07070c; display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  font-weight: 700; font-size: 15px; box-shadow: 0 10px 30px rgba(160,32,240,.35);
}
.form-float svg { width: 22px; height: 22px; fill: #07070c; }
.form-float.hidden-near-form { opacity: 0; pointer-events: none; transform: translateY(12px); }
.form-float { transition: opacity .2s, transform .2s; }

/* --- Legal page --- */
.legal { max-width: 820px; padding: 56px 20px 80px; margin: 0 auto; }
.legal h1 { font-size: clamp(30px, 5vw, 44px); letter-spacing: -0.02em; margin: 0 0 8px; }
.legal h2 { font-size: 21px; margin: 34px 0 8px; }
.legal p, .legal li { color: #c4c6da; }
.legal .muted { color: var(--muted); }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
