:root {
  color-scheme: dark;
  --bg: #070a09;
  --bg-soft: #0b0f0d;
  --surface: #111612;
  --surface-2: #161c17;
  --surface-glass: rgba(14, 19, 16, .86);
  --text: #f3f5ef;
  --muted: #9ca69d;
  --faint: #727b74;
  --line: rgba(218, 232, 219, .14);
  --line-strong: rgba(218, 232, 219, .25);
  --accent: #caff4c;
  --accent-ink: #101509;
  --blue: #8cb8ff;
  --good: #81e6a4;
  --warn: #ffd27d;
  --bad: #ff8f91;
  --shadow: 0 28px 90px rgba(0, 0, 0, .34);
  --radius: 28px;
  --radius-sm: 16px;
  --page: min(1240px, calc(100% - 40px));
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #efeee8;
  --bg-soft: #e7e6df;
  --surface: #f8f7f1;
  --surface-2: #ffffff;
  --surface-glass: rgba(248, 247, 241, .9);
  --text: #11140f;
  --muted: #5d665c;
  --faint: #747c73;
  --line: rgba(20, 28, 20, .14);
  --line-strong: rgba(20, 28, 20, .25);
  --accent: #9ed414;
  --accent-ink: #11150a;
  --blue: #245fb8;
  --good: #176d3a;
  --warn: #8a5a00;
  --bad: #a52b32;
  --shadow: 0 28px 70px rgba(48, 50, 38, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body { margin: 0; min-width: 320px; background: var(--bg); color: var(--text); font: 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: -1; background: radial-gradient(circle at 70% 12%, rgba(177, 255, 70, .08), transparent 30%), linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px); background-size: auto, 64px 64px, 64px 64px; mask-image: linear-gradient(to bottom, #000, transparent 70%); }
a { color: inherit; }
img { max-width: 100%; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.skip { position: fixed; left: 20px; top: -80px; z-index: 100; padding: 12px 18px; border-radius: 12px; background: var(--accent); color: var(--accent-ink); font-weight: 800; }
.skip:focus { top: 18px; }
.shell { width: var(--page); margin-inline: auto; }
.kicker { margin: 0 0 16px; color: var(--accent); font: 750 11px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .14em; text-transform: uppercase; }
.muted { color: var(--muted); }
.text-link { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 4px; }
.nowrap { white-space: nowrap; }

.site-top { position: sticky; top: 0; z-index: 40; border-bottom: 1px solid transparent; background: color-mix(in srgb, var(--bg) 84%, transparent); backdrop-filter: blur(18px); }
.site-top.is-scrolled { border-color: var(--line); }
.top-inner { min-height: 70px; display: grid; grid-template-columns: 184px 1fr auto; gap: 18px; align-items: center; }
.brand { display: inline-flex; align-items: center; width: 176px; }
.brand img { display: block; width: 176px; height: auto; }
.brand-light { display: none !important; }
:root[data-theme="light"] .brand-dark { display: none !important; }
:root[data-theme="light"] .brand-light { display: block !important; }
.primary-nav { display: flex; justify-content: center; gap: 5px; }
.primary-nav a { padding: 10px 9px; border-radius: 10px; color: var(--muted); text-decoration: none; font-size: 13px; }
.primary-nav a:hover, .primary-nav a[aria-current="page"] { background: var(--surface); color: var(--text); }
.top-actions { display: flex; gap: 8px; align-items: center; }
.header-status { display: inline-flex; align-items: center; gap: 7px; padding: 8px 10px; border: 1px solid color-mix(in srgb, var(--good) 24%, transparent); border-radius: 999px; color: var(--muted); text-decoration: none; font-size: 11px; white-space: nowrap; }
.header-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--good); box-shadow: 0 0 12px color-mix(in srgb, var(--good) 55%, transparent); }
.icon-action { width: 40px; height: 40px; display: inline-grid; place-items: center; flex: 0 0 40px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.icon-action:hover { border-color: var(--line-strong); }
.icon-action svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.icon-action img { width: 22px; height: 22px; object-fit: contain; border-radius: 6px; }
.telegram-action { color: #2aabee; }
.max-action img, .max-mark { filter: invert(1); }
.theme-button, .menu-button { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); color: var(--text); cursor: pointer; }
.menu-button { display: none; }
.button { min-height: 46px; padding: 12px 18px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 1px solid var(--line-strong); border-radius: 13px; color: var(--text); background: var(--surface); text-decoration: none; font-weight: 760; cursor: pointer; }
.button:hover { transform: translateY(-1px); border-color: var(--accent); }
.button.accent { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); }
.button.ghost { background: transparent; }
.button.small { min-height: 40px; padding: 9px 14px; font-size: 13px; }

.page-hero { padding: clamp(84px, 11vw, 150px) 0 84px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr); gap: clamp(44px, 8vw, 120px); align-items: end; }
.hero-title { max-width: 900px; margin: 0; font: 400 clamp(58px, 8.3vw, 118px)/.88 var(--serif); letter-spacing: -.065em; text-wrap: balance; }
.hero-title em { color: var(--accent); font-style: normal; }
.hero-lead { max-width: 660px; margin: 30px 0 0; color: var(--muted); font-size: clamp(18px, 2vw, 22px); line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.hero-aside { position: relative; min-height: 320px; padding: 32px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, var(--surface-2), var(--surface)); box-shadow: var(--shadow); }
.hero-aside::after { content: ""; position: absolute; width: 280px; aspect-ratio: 1; right: -84px; bottom: -100px; border: 1px solid color-mix(in srgb, var(--accent) 48%, transparent); border-radius: 50%; box-shadow: 0 0 0 32px color-mix(in srgb, var(--accent) 7%, transparent), 0 0 0 70px color-mix(in srgb, var(--accent) 4%, transparent); }
.hero-aside > * { position: relative; z-index: 1; }
.hero-aside strong { max-width: 290px; font: 400 36px/1.05 var(--serif); letter-spacing: -.035em; }
.hero-aside p { max-width: 300px; color: var(--muted); }
.signal { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 13px; }
.signal::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--warn); box-shadow: 0 0 18px color-mix(in srgb, var(--warn) 50%, transparent); }

.platform-strip { border-block: 1px solid var(--line); background: var(--bg-soft); }
.platform-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; padding-block: 1px; background: var(--line); }
.platform-grid article { min-width: 0; min-height: 118px; padding: 20px; display: flex; flex-direction: column; background: var(--bg); }
.platform-grid b { color: var(--accent); font: 700 11px/1 ui-monospace, monospace; }
.platform-grid strong { margin-top: auto; font-size: 14px; }
.platform-grid span { margin-top: 6px; color: var(--muted); font-size: 12px; line-height: 1.4; }
.section { padding: 106px 0; }
.section.compact { padding: 74px 0; }
.section.tint { border-block: 1px solid var(--line); background: var(--bg-soft); }
.section-head { margin-bottom: 42px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, .48fr); gap: 40px; align-items: end; }
.section-head h2 { max-width: 820px; margin: 0; font: 400 clamp(42px, 5.3vw, 76px)/.98 var(--serif); letter-spacing: -.05em; }
.section-head > p { margin: 0; color: var(--muted); font-size: 17px; }
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.feature-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.feature { min-height: 260px; padding: 28px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); }
.feature-number { color: var(--accent); font: 700 12px/1 ui-monospace, monospace; }
.feature h3 { margin: 70px 0 12px; font: 400 29px/1.08 var(--serif); letter-spacing: -.035em; }
.feature p { margin: 0; color: var(--muted); }
.process { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--line); }
.process article { min-height: 240px; padding: 28px; background: var(--surface); }
.process b { color: var(--accent); font: 700 12px ui-monospace, monospace; }
.process h3 { margin: 76px 0 10px; font-size: 19px; }
.process p { margin: 0; color: var(--muted); font-size: 14px; }

.catalog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: stretch; }
.catalog-grid.five { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.catalog-grid.five .price-card { grid-column: span 2; }
.catalog-grid.five .price-card:nth-last-child(-n+2) { grid-column: span 3; }
.price-card { position: relative; min-width: 0; padding: 28px; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); }
.price-card.recommended { border-color: color-mix(in srgb, var(--accent) 58%, transparent); box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 16%, transparent) inset; }
.recommend { position: absolute; right: 18px; top: 18px; padding: 6px 9px; border-radius: 99px; background: var(--accent); color: var(--accent-ink); font-size: 10px; font-weight: 850; text-transform: uppercase; letter-spacing: .06em; }
.price-card h3 { min-height: 55px; margin: 10px 0 10px; font: 400 28px/1.05 var(--serif); letter-spacing: -.03em; }
.price-card .lead { min-height: 68px; margin: 0 0 22px; color: var(--muted); font-size: 14px; }
.specs { min-height: 54px; margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 6px; }
.specs span { padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; font-size: 12px; }
.price { display: flex; align-items: baseline; gap: 7px; margin: 8px 0 24px; }
.price strong { font: 400 42px/1 var(--serif); letter-spacing: -.045em; white-space: nowrap; }
.price span { color: var(--muted); font-size: 12px; }
.price-card ul { min-height: 150px; margin: 0 0 20px; padding: 0; list-style: none; }
.price-card li { position: relative; padding: 7px 0 7px 18px; border-bottom: 1px solid var(--line); font-size: 13px; }
.price-card li::before { content: "+"; position: absolute; left: 0; color: var(--accent); }
.limitations { min-height: 58px; margin: 0 0 20px; color: var(--muted); font-size: 12px; }
.price-card .button { margin-top: auto; width: 100%; }
.tax-note { margin: 20px 0 0; color: var(--muted); font-size: 12px; }

.editorial-card { padding: clamp(30px, 5vw, 62px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.editorial-card h2, .editorial-card h3 { margin-top: 0; font-family: var(--serif); font-weight: 400; letter-spacing: -.04em; }
.editorial-card h2 { font-size: clamp(38px, 5vw, 66px); }
.editorial-card h3 { font-size: 30px; }
.editorial-card p, .editorial-card li { color: var(--muted); }
.check-list { margin: 22px 0 0; padding: 0; list-style: none; }
.check-list li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.check-list li::before { content: "↗"; margin-right: 12px; color: var(--accent); }
.case-card { padding: 34px; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); }
.case-card h2 { margin: 40px 0 12px; font: 400 clamp(34px, 4vw, 54px)/1 var(--serif); }
.case-card p { color: var(--muted); }
.case-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0; }
.case-meta span { padding: 7px 10px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: 12px; }

.lead-wrap { display: grid; grid-template-columns: .72fr 1.28fr; gap: 16px; }
.lead-copy, .lead-form { padding: clamp(28px, 4vw, 48px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.lead-copy h2 { margin: 50px 0 16px; font: 400 clamp(42px, 5vw, 68px)/.95 var(--serif); letter-spacing: -.05em; }
.lead-copy p { color: var(--muted); }
.lead-messengers { display: flex; flex-wrap: wrap; gap: 18px; }
.email-reveal { width: 100%; color: inherit; text-align: left; font: inherit; cursor: pointer; }
.email-reveal:disabled { cursor: wait; opacity: .72; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: grid; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label, .field > span { color: var(--muted); font-size: 13px; }
.field input, .field textarea { width: 100%; min-height: 52px; padding: 14px 15px; border: 1px solid var(--line); border-radius: 13px; background: var(--bg); color: var(--text); }
.field textarea { min-height: 132px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 15%, transparent); }
.consent { grid-column: 1 / -1; display: flex; align-items: flex-start; gap: 10px; color: var(--muted); font-size: 12px; }
.consent input { width: 18px; height: 18px; accent-color: var(--accent); }
.form-foot { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.form-status { color: var(--muted); font-size: 13px; }
.form-status.good { color: var(--good); }
.form-status.bad { color: var(--bad); }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

.status-board { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.status-summary { padding: 34px; display: flex; justify-content: space-between; gap: 20px; align-items: center; border-bottom: 1px solid var(--line); }
.status-summary h2 { margin: 0; font: 400 38px var(--serif); }
.status-list { display: grid; }
.status-row { min-height: 74px; padding: 18px 26px; display: flex; justify-content: space-between; align-items: center; gap: 20px; border-bottom: 1px solid var(--line); }
.status-row:last-child { border-bottom: 0; }
.status-value { display: inline-flex; align-items: center; gap: 9px; color: var(--muted); font-size: 13px; }
.status-value::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--faint); }
.status-value.operational::before { background: var(--good); }
.status-value.degraded::before { background: var(--bad); }
.status-value.unknown::before { background: var(--warn); }

.contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.contact-card { min-height: 230px; padding: 28px; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); text-decoration: none; }
.contact-card img { width: 46px; height: 46px; }
.contact-card > svg { width: 46px; height: 46px; fill: none; stroke: #2aabee; stroke-width: 1.8; stroke-linecap: round; }
:root[data-theme="light"] .max-action img, :root[data-theme="light"] .max-mark { filter: none; }
.contact-card h2 { margin: auto 0 8px; font: 400 30px var(--serif); }
.contact-card p { margin: 0; color: var(--muted); }
.legal-doc { max-width: 900px; }
.legal-doc section { padding: 32px 0; border-bottom: 1px solid var(--line); }
.legal-doc h2 { margin: 0 0 16px; font: 400 31px/1.1 var(--serif); }
.legal-doc h3 { margin-top: 26px; }
.legal-doc p, .legal-doc li { color: var(--muted); }

.site-footer { padding: 76px 0 26px; border-top: 1px solid var(--line); background: var(--bg-soft); }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 54px; }
.footer-brand p { max-width: 320px; color: var(--muted); }
.footer-col { display: grid; align-content: start; gap: 9px; }
.footer-col h2 { margin: 0 0 10px; color: var(--faint); font: 700 11px ui-monospace, monospace; letter-spacing: .1em; text-transform: uppercase; }
.footer-col a { color: var(--muted); text-decoration: none; font-size: 14px; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { margin-top: 58px; padding-top: 22px; display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); color: var(--faint); font-size: 12px; }

.lab-body { --accent: #d9ff3d; --surface: #201a38; --surface-2: #30254e; background: #130f25; }
.lab-body::before { background: radial-gradient(circle at 85% 10%, rgba(255,107,176,.2), transparent 30%), linear-gradient(rgba(217,255,61,.04) 1px, transparent 1px), linear-gradient(90deg,rgba(217,255,61,.04) 1px,transparent 1px); background-size: auto, 42px 42px, 42px 42px; }
.lab-sticker { transform: rotate(-2deg); border: 2px solid #d9ff3d; box-shadow: 10px 10px 0 #ff6bb0; }

@media (max-width: 1120px) {
  .top-inner { grid-template-columns: 180px 1fr auto; }
  .primary-nav { display: none; position: absolute; left: 20px; right: 20px; top: 74px; padding: 12px; flex-direction: column; align-items: stretch; border: 1px solid var(--line); border-radius: 18px; background: var(--surface-glass); box-shadow: var(--shadow); }
  .primary-nav.open { display: flex; }
  .primary-nav a { padding: 13px; }
  .menu-button { display: inline-grid; place-items: center; }
  .header-status, .social-action, .header-cta { display: none; }
}

@media (max-width: 1199px) {
  .catalog-grid.five { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalog-grid.five .price-card, .catalog-grid.five .price-card:nth-last-child(-n+2) { grid-column: auto; }
}

@media (max-width: 820px) {
  :root { --page: min(100% - 28px, 1240px); }
  .top-inner { min-height: 72px; grid-template-columns: 160px 1fr; }
  .brand, .brand img { width: 154px; }
  .top-actions { justify-self: end; }
  .top-actions .portal-link { display: none; }
  .hero-grid, .section-head, .lead-wrap { grid-template-columns: 1fr; }
  .hero-title { font-size: clamp(50px, 15vw, 82px); }
  .hero-aside { min-height: 260px; }
  .platform-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .feature-grid, .feature-grid.four, .catalog-grid, .catalog-grid.five, .contact-grid { grid-template-columns: 1fr 1fr; }
  .process { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .page-hero { padding-top: 64px; }
  .hero-title { font-size: clamp(48px, 15vw, 70px); }
  .hero-actions .button { width: 100%; }
  .platform-grid { grid-template-columns: 1fr 1fr; }
  .platform-grid article { min-height: 104px; padding: 16px; }
  .feature-grid, .feature-grid.four, .catalog-grid, .catalog-grid.five, .contact-grid, .split, .process, .form-grid, .footer-grid { grid-template-columns: 1fr; }
  .field.full, .consent, .form-foot { grid-column: auto; }
  .feature { min-height: 220px; }
  .feature h3 { margin-top: 48px; }
  .price-card h3, .price-card .lead, .price-card ul, .limitations, .specs { min-height: 0; }
  .status-summary, .status-row, .footer-bottom { align-items: flex-start; flex-direction: column; }
  .section { padding: 76px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
