/* PixelBoost Studio — стили */
:root {
  --bg: #f7f7fb;
  --surface: #ffffff;
  --surface-2: #f1f0f8;
  --text: #16172b;
  --muted: #64667d;
  --line: #e4e4ee;
  --primary: #5b4cf0;
  --primary-600: #4a3bd9;
  --primary-50: #efedfe;
  --accent: #ff6b4a;
  --ok: #128a5b;
  --ok-bg: #e5f6ee;
  --bad: #c7362a;
  --bad-bg: #fdecea;
  --warn: #9a6a00;
  --warn-bg: #fff4d6;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(22, 23, 43, .05), 0 8px 24px rgba(22, 23, 43, .06);
  --shadow-lg: 0 24px 60px rgba(22, 23, 43, .18);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); color: var(--text); background: var(--bg);
  font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(28px, 4vw, 40px); }
h2 { font-size: clamp(24px, 3vw, 32px); }
h3 { font-size: 18px; }
p { margin: 0 0 1em; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.center { text-align: center; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 12px; border: 1px solid transparent;
  font: inherit; font-weight: 600; font-size: 15px; cursor: pointer; text-decoration: none !important;
  transition: background .15s, border-color .15s, transform .05s, box-shadow .15s; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 6px 16px rgba(91, 76, 240, .28); }
.btn-primary:hover:not(:disabled) { background: var(--primary-600); }
.btn-outline { background: var(--surface); color: var(--primary); border-color: #cfcaf9; }
.btn-outline:hover { border-color: var(--primary); background: var(--primary-50); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-light { background: #fff; color: var(--primary); }
.btn-sm { padding: 7px 14px; font-size: 14px; border-radius: 10px; }
.btn-lg { padding: 14px 26px; font-size: 16px; }
.btn-block { width: 100%; }
.link { background: none; border: 0; padding: 0; color: var(--primary); font: inherit; cursor: pointer; text-decoration: underline; }

/* Test banner */
.test-banner {
  background: var(--warn-bg); color: var(--warn); text-align: center; font-size: 13px;
  padding: 6px 16px; border-bottom: 1px solid #f2e2ad;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(247, 247, 251, .85);
  backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; font-size: 18px; text-decoration: none !important; }
.logo-mark {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--primary), #8a5cf6 60%, var(--accent)); font-size: 18px;
}
.logo-text span { color: var(--primary); font-weight: 600; }
.main-nav { display: flex; align-items: center; gap: 22px; font-size: 15px; }
.main-nav a { color: var(--text); font-weight: 500; }
.main-nav a.active { color: var(--primary); }
.main-nav .nav-muted { color: var(--muted); }
.balance-pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px;
  background: var(--primary-50); color: var(--primary) !important; font-size: 14px; text-decoration: none !important;
}
.balance-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); }
.burger { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.burger span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; border-radius: 2px; }

/* Sections */
.section { padding: 72px 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 40px; }

/* Hero */
.hero { padding: 64px 0 48px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 600; color: var(--primary);
  background: var(--primary-50); padding: 6px 12px; border-radius: 999px; margin-bottom: 18px;
}
.hero h1 { font-size: clamp(32px, 5vw, 54px); letter-spacing: -.025em; }
.grad { background: linear-gradient(90deg, var(--primary), #a052f0 50%, var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 18px; color: var(--muted); max-width: 560px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0; }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 24px; color: var(--muted); font-size: 14px; }
.hero-points b { color: var(--text); }
.hero-visual { position: relative; }
.hero-visual::before {
  content: ""; position: absolute; inset: -40px -40px auto auto; width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(91, 76, 240, .25), transparent 70%); z-index: -1;
}
.hero-card { position: relative; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-lg); transform: rotate(1.5deg); background: #fff; padding: 10px; }
.hero-card img { border-radius: 16px; }
.hero-badge {
  position: absolute; left: 24px; bottom: 24px; background: rgba(22, 23, 43, .78); color: #fff;
  font-size: 13px; padding: 8px 14px; border-radius: 999px; backdrop-filter: blur(6px);
}

/* Features */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.feature p { margin: 0; }
.feature-icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-size: 22px;
  background: var(--primary-50); color: var(--primary); margin-bottom: 16px;
}
.feature-accent { background: linear-gradient(135deg, var(--primary), #8a5cf6); color: #fff; border: 0; }
.feature-accent .feature-icon { background: rgba(255, 255, 255, .18); color: #fff; }

/* Before / After */
.ba-tabs { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.ba-tab {
  border: 1px solid var(--line); background: var(--surface); padding: 8px 16px; border-radius: 999px;
  font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; color: var(--text);
}
.ba-tab.active { background: var(--text); color: #fff; border-color: var(--text); }
.ba {
  position: relative; max-width: 900px; margin: 0 auto; border-radius: 20px; overflow: hidden;
  box-shadow: var(--shadow-lg); user-select: none; aspect-ratio: 4 / 3; background: #ddd;
}
.ba-img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba-after { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--pos)); }
.ba-after.checker, .checker {
  background-color: #fff;
  background-image: linear-gradient(45deg, #e9e9f0 25%, transparent 25%), linear-gradient(-45deg, #e9e9f0 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #e9e9f0 75%), linear-gradient(-45deg, transparent 75%, #e9e9f0 75%);
  background-size: 20px 20px; background-position: 0 0, 0 10px, 10px -10px, -10px 0;
}
.ba-handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; background: #fff; transform: translateX(-50%);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); pointer-events: none;
}
.ba-handle span {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 44px; height: 44px; border-radius: 50%;
  background: #fff; display: grid; place-items: center; box-shadow: var(--shadow-lg); color: var(--primary); font-weight: 700;
}
.ba-label {
  position: absolute; top: 16px; padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 600;
  background: rgba(22, 23, 43, .7); color: #fff; pointer-events: none;
}
.ba-label-l { left: 16px; } .ba-label-r { right: 16px; }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }

/* Use cases & steps */
.usecases { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.usecase { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.usecase p { margin: 0; font-size: 15px; }
.usecase-tag { display: inline-block; font-size: 12px; font-weight: 600; color: var(--accent); margin-bottom: 10px; text-transform: uppercase; letter-spacing: .04em; }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps li { counter-increment: s; display: flex; flex-direction: column; gap: 4px; padding-left: 52px; position: relative; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 0; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; background: var(--text); color: #fff; font-weight: 700;
}

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.price-card {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
  padding: 28px 24px 24px; display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s;
}
.price-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.price-card.popular { border: 2px solid var(--primary); box-shadow: 0 16px 40px rgba(91, 76, 240, .18); }
.popular-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--primary); color: #fff;
  font-size: 12px; font-weight: 700; padding: 5px 14px; border-radius: 999px; letter-spacing: .03em; text-transform: uppercase;
}
.price-title { font-size: 14px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.price-points { font-size: 18px; margin: 8px 0 2px; }
.price-points b { font-size: 34px; letter-spacing: -.02em; }
.price-sum { font-size: 22px; font-weight: 700; color: var(--primary); }
.price-meta { list-style: none; padding: 0; margin: 16px 0 22px; color: var(--muted); font-size: 14px; flex: 1; }
.price-meta li { padding: 4px 0 4px 22px; position: relative; }
.price-meta li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }

/* FAQ */
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 18px 22px; font-weight: 600; list-style: none; position: relative; padding-right: 50px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 22px; color: var(--primary); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 22px 18px; margin: 0; color: var(--muted); }

/* CTA */
.cta-section { padding-top: 0; }
.cta {
  text-align: center; color: #fff; padding: 56px 24px; border-radius: 28px;
  background: linear-gradient(135deg, var(--primary), #8a5cf6 60%, #c05ae8);
}
.cta p { opacity: .9; margin-bottom: 24px; }

/* Footer */
.site-footer { background: #13142a; color: #c9cadb; padding: 56px 0 28px; margin-top: 40px; }
.site-footer a { color: #e3e4f2; }
.site-footer .muted { color: #8f91a8; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid h4 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 14px; }
.footer-grid > div > a, .footer-grid > div > span { display: block; margin-bottom: 8px; font-size: 15px; }
.logo-footer { color: #fff; margin-bottom: 12px; }
.logo-footer .logo-text span { color: #a99ff9; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-top: 40px; padding-top: 24px; border-top: 1px solid #2a2c47; flex-wrap: wrap; }
.pay-icons { list-style: none; padding: 0; margin: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.pay-icons li { width: 56px; height: 35px; border-radius: 6px; overflow: hidden; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); }
.pay-icons svg { width: 100%; height: 100%; display: block; }
.legal .pay-icons { margin: 8px 0 16px; }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(15, 16, 34, .55); backdrop-filter: blur(3px); animation: fade .15s; }
.modal-card {
  position: relative; background: var(--surface); width: 100%; max-width: 480px; max-height: calc(100vh - 40px); overflow: auto;
  border-radius: 22px; padding: 28px; box-shadow: var(--shadow-lg); animation: pop .18s ease-out;
}
.modal-close { position: absolute; top: 12px; right: 14px; background: none; border: 0; font-size: 28px; line-height: 1; color: var(--muted); cursor: pointer; }
.modal-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.modal-actions.center { justify-content: center; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.pkg-list { border: 0; padding: 0; margin: 0 0 16px; display: grid; gap: 8px; }
.pkg-option {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer;
  transition: border-color .15s, background .15s;
}
.pkg-option:has(input:checked) { border-color: var(--primary); background: var(--primary-50); }
.pkg-option input { accent-color: var(--primary); width: 18px; height: 18px; margin: 0; }
.pkg-body { flex: 1; display: flex; flex-direction: column; }
.pkg-points { font-weight: 600; }
.pkg-price { font-weight: 700; }
.tag { font-style: normal; font-size: 11px; font-weight: 700; color: #fff; background: var(--primary); padding: 2px 8px; border-radius: 999px; margin-left: 6px; vertical-align: 2px; }
.success-icon {
  width: 64px; height: 64px; margin: 4px auto 16px; border-radius: 50%; background: var(--ok-bg); color: var(--ok);
  display: grid; place-items: center; font-size: 32px; font-weight: 700;
}

/* Forms */
.label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.field { display: block; margin-bottom: 16px; }
.field input, .field select {
  width: 100%; padding: 12px 14px; font: inherit; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--text);
}
.field input:focus, .field select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-50); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; margin-bottom: 16px; cursor: pointer; }
.check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--primary); flex-shrink: 0; }
.form-error { background: var(--bad-bg); color: var(--bad); border-radius: 10px; padding: 10px 14px; font-size: 14px; margin-bottom: 14px; }
.auth-section { display: flex; justify-content: center; padding: 64px 20px; }
.auth-card { width: 100%; max-width: 440px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 32px; box-shadow: var(--shadow); }

/* Dashboard */
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 28px; flex-wrap: wrap; }
.page-head h1 { margin-bottom: 4px; }
.page-head p { margin: 0; }
.page-head-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.balance-big { font-size: 15px; color: var(--muted); }
.balance-big b { color: var(--text); font-size: 18px; }
.stats { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 16px; margin-bottom: 32px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 4px; }
.stat-main { background: linear-gradient(135deg, var(--primary), #8a5cf6); color: #fff; border: 0; }
.stat-label { font-size: 14px; opacity: .75; }
.stat-value { font-size: 32px; font-weight: 800; letter-spacing: -.02em; }
.stat-value small { font-size: 16px; font-weight: 500; opacity: .8; }
.stat-hint { font-size: 14px; opacity: .8; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; }
.tab { background: none; border: 0; padding: 12px 16px; font: inherit; font-weight: 600; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th, .table td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th.right, .table td.right { text-align: right; }
.table th { font-size: 13px; font-weight: 600; color: var(--muted); background: var(--surface-2); }
.table tr:last-child td { border-bottom: 0; }
.plus { color: var(--ok); font-weight: 700; }
.minus { color: var(--bad); font-weight: 700; }
.status { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; margin-right: 4px; }
.status.ok { background: var(--ok-bg); color: var(--ok); }
.status.bad { background: var(--bad-bg); color: var(--bad); }
.status.wait { background: var(--warn-bg); color: var(--warn); }
.status.test { background: var(--surface-2); color: var(--muted); }
.empty { background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); padding: 40px; text-align: center; color: var(--muted); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.gallery-item { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.gallery-thumb { display: block; aspect-ratio: 1; background-color: var(--surface-2); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: contain; }
.gallery-item figcaption { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.gallery-mode { font-weight: 600; font-size: 14px; }

/* Studio */
.studio { display: grid; grid-template-columns: 420px 1fr; gap: 24px; align-items: start; }
.studio-panel { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 24px; box-shadow: var(--shadow); }
.studio-result { position: sticky; top: 92px; min-height: 420px; }
.step-title { display: flex; align-items: center; gap: 10px; font-weight: 700; margin: 4px 0 14px; }
.step-title span { width: 26px; height: 26px; border-radius: 50%; background: var(--text); color: #fff; display: grid; place-items: center; font-size: 13px; }
.dropzone {
  display: block; border: 2px dashed #cfcaf9; border-radius: 16px; background: var(--primary-50); cursor: pointer;
  padding: 26px; text-align: center; margin-bottom: 24px; transition: background .15s, border-color .15s;
}
.dropzone.drag { border-color: var(--primary); background: #e4e0fe; }
.dz-empty { display: flex; flex-direction: column; gap: 4px; align-items: center; }
.dz-icon { font-size: 30px; color: var(--primary); }
.dz-preview img { max-height: 180px; margin: 0 auto 8px; border-radius: 10px; }
.dz-name { color: var(--muted); word-break: break-all; }
.modes { display: grid; gap: 8px; margin-bottom: 18px; }
.mode { cursor: pointer; }
.mode input { position: absolute; opacity: 0; pointer-events: none; }
.mode-body { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; transition: border-color .15s, background .15s; }
.mode-body b { display: block; font-size: 15px; }
.mode-body .small { display: block; line-height: 1.4; }
.mode input:checked + .mode-body { border-color: var(--primary); background: var(--primary-50); }
.mode input:focus-visible + .mode-body { box-shadow: 0 0 0 3px #cfcaf9; }
.mode-icon { width: 34px; height: 34px; flex-shrink: 0; border-radius: 10px; display: grid; place-items: center; background: var(--surface-2); color: var(--primary); font-size: 17px; }
.mode-options { background: var(--surface-2); border-radius: 12px; padding: 16px 16px 2px; margin-bottom: 18px; }
.result-empty, .result-loading { display: grid; place-items: center; min-height: 340px; text-align: center; border: 1px dashed var(--line); border-radius: 14px; }
.spinner { width: 42px; height: 42px; border-radius: 50%; border: 4px solid var(--primary-50); border-top-color: var(--primary); animation: spin .8s linear infinite; margin: 0 auto 12px; }
@keyframes spin { to { transform: rotate(360deg); } }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.compare figure { margin: 0; }
.compare figcaption { font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.compare-img { aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); display: grid; place-items: center; }
.compare-img { position: relative; }
.compare-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.result-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 18px 0; }
.result-meta div { background: var(--surface-2); border-radius: 10px; padding: 10px 12px; }
.result-meta dt { font-size: 12px; color: var(--muted); }
.result-meta dd { margin: 0; font-weight: 600; font-size: 14px; }
.result-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* Legal */
.legal-wrap { display: grid; grid-template-columns: 240px 1fr; gap: 32px; align-items: start; }
.legal-nav { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 4px; }
.legal-nav a { padding: 10px 14px; border-radius: 10px; color: var(--text); font-weight: 500; font-size: 15px; }
.legal-nav a:hover { background: var(--surface-2); text-decoration: none; }
.legal-nav a.active { background: var(--primary-50); color: var(--primary); }
.legal { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 36px 40px; }
.legal h2 { font-size: 20px; margin-top: 28px; }
.legal p, .legal li { font-size: 15.5px; }
.legal ul, .legal ol { padding-left: 22px; }
.legal .table-wrap { margin-bottom: 16px; }
.requisites { margin: 0 0 20px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.requisites div { display: grid; grid-template-columns: 220px 1fr; border-bottom: 1px solid var(--line); }
.requisites div:last-child { border-bottom: 0; }
.requisites dt { padding: 12px 16px; background: var(--surface-2); color: var(--muted); font-size: 14px; }
.requisites dd { padding: 12px 16px; margin: 0; font-weight: 500; word-break: break-word; }

/* Responsive */
@media (max-width: 1024px) {
  .features-grid, .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .usecases { grid-template-columns: repeat(2, 1fr); }
  .studio { grid-template-columns: 1fr; }
  .studio-result { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .burger { display: block; }
  .main-nav {
    position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--line); padding: 8px 20px 16px; display: none; box-shadow: var(--shadow);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .main-nav .btn, .main-nav .balance-pill { margin-top: 10px; justify-content: center; border-bottom: 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-card { transform: none; }
  .steps { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .legal-wrap { grid-template-columns: 1fr; }
  .legal-nav { position: static; flex-direction: row; overflow-x: auto; }
  .legal-nav a { white-space: nowrap; }
  .legal { padding: 24px 20px; }
  .requisites div { grid-template-columns: 1fr; }
  .requisites dt { padding-bottom: 4px; }
}
@media (max-width: 560px) {
  .section { padding: 52px 0; }
  .container { padding: 0 16px; }
  .features-grid, .pricing-grid, .usecases { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .compare { grid-template-columns: 1fr; }
  .result-meta { grid-template-columns: 1fr; }
  .modal { padding: 10px; }
  .modal-card { padding: 22px 18px; }
  .auth-card { padding: 24px 18px; }
  .ba { aspect-ratio: 1; }
}
