:root {
  --bg: #07101f;
  --bg-soft: #0b1628;
  --panel: rgba(17, 31, 52, .82);
  --panel-solid: #111f34;
  --border: rgba(148, 163, 184, .17);
  --text: #f8fafc;
  --muted: #94a3b8;
  --primary: #60a5fa;
  --primary-2: #7c3aed;
  --success: #34d399;
  --danger: #fb7185;
  --shadow: 0 24px 80px rgba(0, 0, 0, .34);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--text); background: radial-gradient(circle at 85% 5%, rgba(124, 58, 237, .13), transparent 32%), var(--bg); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.55; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, textarea { font: inherit; }
button { color: inherit; }
.container { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }
.narrow { max-width: 820px; }
.section { padding: 104px 0; }
.section-soft { background: linear-gradient(180deg, rgba(17, 31, 52, .5), rgba(11, 22, 40, .68)); border-block: 1px solid var(--border); }
.eyebrow { margin-bottom: 14px; color: #93c5fd; font-size: .82rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 760px; margin-bottom: 24px; font-size: clamp(2.55rem, 6vw, 5.15rem); line-height: .99; letter-spacing: -.055em; }
h2 { margin-bottom: 18px; font-size: clamp(2rem, 4vw, 3.25rem); line-height: 1.08; letter-spacing: -.04em; }
h3 { margin-bottom: 10px; font-size: 1.2rem; }
p { color: var(--muted); }
.lead { max-width: 690px; margin-bottom: 32px; font-size: 1.18rem; }
.muted { color: var(--muted); }

.site-header { position: sticky; z-index: 20; top: 0; border-bottom: 1px solid rgba(148, 163, 184, .12); background: rgba(7, 16, 31, .82); backdrop-filter: blur(18px); }
.header-inner { display: flex; min-height: 76px; align-items: center; gap: 28px; }
.brand { margin-right: auto; }
.brand img { width: 176px; }
.main-nav { display: flex; align-items: center; gap: 28px; color: #cbd5e1; font-size: .95rem; }
.main-nav a:hover { color: #fff; }
.menu-button { display: none; border: 0; background: transparent; }

.button { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; padding: 0 22px; border: 1px solid transparent; border-radius: 14px; cursor: pointer; font-weight: 750; transition: transform .2s ease, background .2s ease, border-color .2s ease; }
.button:hover { transform: translateY(-2px); }
.button:disabled { cursor: wait; opacity: .65; transform: none; }
.button-primary { background: linear-gradient(135deg, var(--primary), var(--primary-2)); box-shadow: 0 12px 34px rgba(96, 165, 250, .19); }
.button-secondary { border-color: rgba(96, 165, 250, .38); background: rgba(96, 165, 250, .11); }
.button-ghost { color: #cbd5e1; }
.button-outline { border-color: var(--border); background: rgba(255,255,255,.03); }
.button-small { min-height: 42px; padding: 0 17px; border-radius: 12px; }
.button-full { width: 100%; }

.hero { position: relative; overflow: hidden; padding-top: 120px; }
.hero::before { position: absolute; inset: -20% auto auto 45%; width: 720px; height: 720px; border-radius: 50%; background: radial-gradient(circle, rgba(96, 165, 250, .15), transparent 65%); content: ""; pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: 1.03fr .97fr; align-items: center; gap: 64px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-notes { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 26px; color: #94a3b8; font-size: .87rem; }
.hero-notes span::before { margin-right: 8px; color: var(--success); content: "●"; font-size: .7rem; }

.app-preview { overflow: hidden; border: 1px solid rgba(148, 163, 184, .18); border-radius: 26px; background: #0d1829; box-shadow: var(--shadow); transform: perspective(1200px) rotateY(-4deg) rotateX(2deg); }
.window-bar { display: flex; height: 45px; align-items: center; gap: 7px; padding: 0 16px; border-bottom: 1px solid var(--border); background: #111d30; }
.window-bar span { width: 9px; height: 9px; border-radius: 50%; background: #475569; }
.window-bar strong { margin-left: 8px; color: #64748b; font-size: .72rem; }
.preview-body { display: grid; min-height: 460px; grid-template-columns: 64px 1fr; }
.preview-sidebar { display: flex; align-items: center; flex-direction: column; gap: 25px; padding-top: 20px; border-right: 1px solid var(--border); background: #0a1423; }
.preview-logo { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 10px; background: linear-gradient(135deg, var(--primary), var(--primary-2)); font-weight: 900; }
.nav-dot { width: 18px; height: 18px; border-radius: 6px; background: #27364c; }
.nav-dot.active { background: #60a5fa; }
.preview-content { padding: 26px; }
.preview-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.preview-title small, .preview-title strong { display: block; }
.preview-title small { color: #64748b; font-size: .72rem; }
.preview-title strong { font-size: 1.05rem; }
.preview-avatar { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; background: #26364d; color: #bfdbfe; font-size: .7rem; }
.metric-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-bottom: 18px; }
.metric { padding: 14px; border: 1px solid var(--border); border-radius: 14px; background: #101d30; }
.metric small, .metric strong, .metric span { display: block; }
.metric small, .metric span { color: #718096; font-size: .62rem; }
.metric strong { margin: 4px 0; font-size: 1.45rem; }
.order-card { display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 12px; margin-top: 9px; padding: 13px; border: 1px solid var(--border); border-radius: 14px; background: #0d192a; }
.order-card strong, .order-card small { display: block; }
.order-card strong { font-size: .76rem; }
.order-card small { color: #64748b; font-size: .64rem; }
.market { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 10px; background: #ef4444; font-style: normal; font-weight: 900; }
.market.flip { background: #3b82f6; }.market.wb { background: #a855f7; }
.status { padding: 5px 8px; border-radius: 8px; background: rgba(96,165,250,.13); color: #93c5fd; font-size: .56rem; }
.status.progress { color: #fcd34d; background: rgba(250,204,21,.11); }.status.done { color: #6ee7b7; background: rgba(52,211,153,.11); }

.section-heading { max-width: 680px; margin-bottom: 42px; }
.cards-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.feature-card { min-height: 220px; padding: 28px; border: 1px solid var(--border); border-radius: var(--radius); background: linear-gradient(145deg, rgba(17,31,52,.9), rgba(11,22,40,.75)); }
.feature-card .icon { display: grid; width: 42px; height: 42px; margin-bottom: 24px; place-items: center; border: 1px solid rgba(96,165,250,.3); border-radius: 12px; color: #93c5fd; font-size: .75rem; font-weight: 800; }
.feature-card p { margin-bottom: 0; }
.integration-wrap { display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; gap: 70px; }
.integration-list { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; }
.integration-list span { padding: 18px 20px; border: 1px solid var(--border); border-radius: 14px; background: rgba(17,31,52,.65); color: #dbeafe; font-weight: 750; }
.steps-grid { display: grid; grid-template-columns: .75fr 1.25fr; gap: 70px; }
.steps { margin: 0; padding: 0; list-style: none; }
.steps li { display: grid; grid-template-columns: 54px 1fr; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--border); }
.steps li > span { display: grid; width: 46px; height: 46px; place-items: center; border-radius: 14px; background: rgba(96,165,250,.12); color: #93c5fd; font-weight: 850; }
.steps strong { font-size: 1.05rem; }.steps p { margin: 4px 0 0; }
.request-section { background: radial-gradient(circle at 15% 65%, rgba(96,165,250,.12), transparent 27%); }
.request-grid { display: grid; grid-template-columns: .85fr 1.15fr; align-items: start; gap: 78px; }
.contact-panel { display: grid; gap: 10px; margin-top: 34px; padding: 22px; border: 1px solid var(--border); border-radius: 18px; background: rgba(17,31,52,.7); }
.contact-panel strong { margin-bottom: 4px; }.contact-panel span { color: #cbd5e1; }.contact-panel span::before { margin-right: 10px; color: var(--success); content: "✓"; }
.request-form, .auth-card { padding: 30px; border: 1px solid var(--border); border-radius: var(--radius); background: rgba(17,31,52,.84); box-shadow: var(--shadow); }
.request-form label, .auth-card label { display: grid; gap: 8px; margin-bottom: 18px; color: #cbd5e1; font-size: .9rem; font-weight: 650; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
input, textarea { width: 100%; border: 1px solid rgba(148,163,184,.23); border-radius: 12px; outline: none; background: #0a1525; color: #fff; padding: 14px 15px; }
input:focus, textarea:focus { border-color: #60a5fa; box-shadow: 0 0 0 3px rgba(96,165,250,.11); }
textarea { resize: vertical; }
.checkbox { grid-template-columns: 20px 1fr !important; align-items: start; font-weight: 450 !important; }
.checkbox input { width: 18px; height: 18px; margin-top: 2px; accent-color: #60a5fa; }
.checkbox a { color: #93c5fd; text-decoration: underline; }
.form-message { min-height: 24px; margin-top: 14px; font-size: .9rem; }.form-message.success { color: var(--success); }.form-message.error { color: var(--danger); }
.site-footer { padding: 40px 0; border-top: 1px solid var(--border); }
.footer-inner { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 28px; }
.footer-inner img { width: 150px; }.footer-inner p { margin: 0; }.footer-inner div { display: flex; gap: 18px; color: #94a3b8; font-size: .9rem; }.footer-inner small { color: #64748b; }

.auth-page { min-height: 100vh; background: radial-gradient(circle at top, rgba(96,165,250,.14), transparent 38%), var(--bg); }
.auth-shell { display: grid; min-height: 100vh; place-items: center; padding: 40px 20px; }
.auth-brand { position: absolute; top: 34px; left: 40px; }
.auth-card { width: min(440px, 100%); }
.auth-card h1 { margin-bottom: 10px; font-size: 2.3rem; }
.auth-card > p { margin-bottom: 28px; }
.back-link { display: block; margin-top: 22px; color: #94a3b8; text-align: center; }

.cabinet-header { border-bottom: 1px solid var(--border); background: #091424; }
.cabinet-user { display: flex; margin-left: auto; align-items: center; gap: 14px; }
.cabinet-title { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.cabinet-title h1 { margin-bottom: 0; font-size: clamp(2rem,4vw,3.6rem); }
.table-card { overflow: hidden; border: 1px solid var(--border); border-radius: 18px; background: var(--panel-solid); box-shadow: var(--shadow); }
.table-scroll { overflow: auto; }
table { width: 100%; min-width: 980px; border-collapse: collapse; }
th, td { padding: 16px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
th { color: #94a3b8; background: #0c1829; font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; }
td { color: #cbd5e1; font-size: .9rem; }
td a { color: #93c5fd; }.comment-cell { min-width: 280px; max-width: 430px; white-space: pre-wrap; }
.legal-page h1 { font-size: clamp(2.4rem, 5vw, 4rem); }.legal-page h2 { margin-top: 36px; font-size: 1.5rem; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 960px) {
  .desktop-login { display: none; }
  .menu-button { display: block; margin-left: auto; }
  .main-nav { position: absolute; top: 76px; right: 20px; display: none; width: 220px; align-items: stretch; flex-direction: column; gap: 0; padding: 10px; border: 1px solid var(--border); border-radius: 14px; background: #0d192a; box-shadow: var(--shadow); }
  .main-nav.open { display: flex; }.main-nav a { padding: 12px; }
  .hero-grid, .integration-wrap, .steps-grid, .request-grid { grid-template-columns: 1fr; }
  .hero-grid { gap: 58px; }.app-preview { max-width: 680px; transform: none; }
  .cards-grid { grid-template-columns: repeat(2,1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .container { width: min(100% - 28px, 1160px); }
  .section { padding: 78px 0; }
  .hero { padding-top: 82px; }
  h1 { font-size: 3rem; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .button { width: 100%; }
  .cards-grid, .field-row, .integration-list { grid-template-columns: 1fr; }
  .preview-body { min-height: 390px; grid-template-columns: 48px 1fr; }.preview-content { padding: 16px 12px; }.metric-grid { grid-template-columns: 1fr 1fr; }.metric-grid .metric:last-child { display: none; }
  .order-card { grid-template-columns: 34px 1fr; }.order-card .status { display: none; }
  .request-form, .auth-card { padding: 22px; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-inner div { flex-direction: column; gap: 8px; }
  .auth-brand { position: static; margin-bottom: 28px; }.auth-shell { display: flex; align-items: center; flex-direction: column; justify-content: center; }
  .cabinet-title { align-items: stretch; flex-direction: column; }
  .cabinet-title .button { width: auto; align-self: flex-start; }
}
