@font-face {
  font-family: Inter;
  src: url('/assets/fonts/Inter-cyrillic.woff2') format('woff2');
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: Inter;
  src: url('/assets/fonts/Inter-latin.woff2') format('woff2');
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: dark;
  --bg: #050b12;
  --panel: #0b1625;
  --border: #173754;
  --text: #d4e7f5;
  --white: #f3f8fc;
  --muted: #9cb4c7;
  --cyan: #00d4ff;
  --rose: #ff4068;
  --mono: Consolas, 'Courier New', monospace;
  font: 16px/1.6 Inter, 'Segoe UI', Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; }
button, input { font: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, figure, ul, ol, dl, dd { margin: 0; }
h1, h2, h3 { color: var(--white); line-height: 1.12; }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); letter-spacing: -.045em; }
h3 { font-size: 1.12rem; letter-spacing: -.02em; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; }
.shell { width: min(1200px, 100% - 80px); margin-inline: auto; }
.muted { color: var(--muted); }
.skip { position: fixed; z-index: 5; top: .75rem; left: .75rem; transform: translateY(-160%); }
.skip:focus { transform: translateY(0); }

.top { border-bottom: 1px solid var(--border); background: #071019; }
.top-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 11px; min-height: 44px; font-weight: 730; letter-spacing: -.04em; color: var(--white); text-decoration: none; white-space: nowrap; }
.brand-mark { width: 31px; height: 31px; display: grid; place-items: center; border: 1px solid #68283d; border-radius: 8px; background: #261320; color: var(--rose); font: 19px/1 var(--mono); }
.nav { display: flex; align-items: center; gap: 20px; }
.nav a, .languages a, .footer a { min-height: 44px; display: inline-flex; align-items: center; text-decoration: none; }
.nav a { color: var(--muted); font-size: .875rem; font-weight: 550; white-space: nowrap; }
.nav a:hover, .footer a:hover { color: var(--cyan); }
.top-actions { display: flex; align-items: center; gap: 15px; }
.languages { display: flex; align-items: center; }
.languages a { justify-content: center; min-width: 44px; color: var(--muted); font: .81rem var(--mono); }
.languages a:hover, .languages [aria-current='page'] { color: var(--cyan); text-decoration: underline; text-underline-offset: 5px; }
.top .menu-toggle { display: none; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 10px 19px; border: 1px solid transparent; border-radius: 6px; cursor: pointer; font: 700 .94rem/1.2 var(--mono); text-decoration: none; }
.primary { color: #030c13; background: var(--cyan); }
.primary:hover { background: #79eaff; }
.secondary { color: var(--text); background: #0b1625; border-color: #31526c; }
.secondary:hover { color: var(--white); border-color: var(--cyan); }
.top .button { min-height: 44px; padding-inline: 13px; }

.hero { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: stretch; min-height: 530px; margin-top: 32px; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; isolation: isolate; background: #071019; }
.hero-copy { position: relative; z-index: 1; align-self: center; padding: 46px 0 46px clamp(27px, 4.4vw, 68px); }
.hero h1 { font-size: clamp(3.45rem, 7.25vw, 7.35rem); letter-spacing: -.06em; font-weight: 780; line-height: .95; white-space: nowrap; }
.hero h1 span { color: var(--cyan); }
.hero-lead { max-width: 32rem; margin-top: 25px; color: var(--text); font-size: clamp(1.06rem, 1.6vw, 1.3rem); line-height: 1.46; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.hero-media { position: relative; min-width: 0; }
.hero-media img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; object-position: 53% 50%; }
.hero-media::after { position: absolute; inset: 0; content: ''; background: linear-gradient(90deg, #071019 0%, #07101900 28%), linear-gradient(0deg, #071019 0%, #07101900 30%); pointer-events: none; }
.hero figcaption { position: absolute; z-index: 1; inset: auto 20px 16px; text-align: right; font: .75rem/1.5 var(--mono); color: var(--text); }
.section { padding-block: clamp(48px, 7vw, 100px); border-bottom: 1px solid var(--border); }
.section + .section, .contact-section { content-visibility: auto; contain-intrinsic-block-size: auto 280px; }
.section h2 + p { margin-top: 14px; }
.features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; list-style: none; padding: 0; margin-top: 26px; }
.features li { min-width: 0; padding: 22px; border: 1px solid var(--border); border-radius: 8px; background: linear-gradient(155deg, #0d1c2b, var(--panel) 65%); }
.feature-symbol { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--border); border-radius: 6px; color: var(--cyan); background: #0b2232; font: 21px var(--mono); margin-bottom: 21px; }
.features li:first-child .feature-symbol { color: var(--rose); background: #261320; border-color: #68283d; }
.features p, .steps p { margin-top: 10px; font-size: .91rem; color: var(--muted); }

.section-split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(26px, 5vw, 88px); align-items: start; }
.section-split > * { min-width: 0; }
.section-intro p { margin-top: 14px; max-width: 43ch; }
.rhythms { background: #09121c; border: 1px solid var(--border); border-radius: 8px; }
.rhythm { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 17px 20px; }
.rhythm + .rhythm { border-top: 1px solid var(--border); }
.rhythm dt { color: var(--white); font-weight: 650; line-height: 1.3; }
.rhythm dt span { display: block; margin-top: 4px; color: var(--muted); font-size: .85rem; font-weight: 400; }
.rhythm dd { text-align: right; font: 700 1.1rem/1.25 var(--mono); color: var(--cyan); white-space: nowrap; }
.rhythm dd small { display: block; font-size: .75rem; color: var(--muted); }

.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; list-style: none; padding: 0; margin-top: 28px; }
.steps li { counter-increment: step; border-top: 1px solid #31526c; padding-block: 18px 0; }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; color: var(--cyan); font: .9rem var(--mono); margin-bottom: 14px; }
.audiences, .contact-list { list-style: none; padding: 0; }
.audiences { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.audiences li { display: flex; align-items: center; min-height: 56px; padding: 12px 14px; background: var(--panel); border: 1px solid var(--border); border-radius: 6px; }
.draft { color: var(--muted); font: .75rem/1.55 var(--mono); }
.section .draft { display: block; margin-top: 12px; }
.contact-section { margin: clamp(46px, 6vw, 80px) 0; padding: clamp(18px, 4vw, 48px); border: 1px solid var(--border); border-radius: 10px; background: linear-gradient(130deg, #0d2031, #0b1625 60%); }
.contact-list li { display: grid; grid-template-columns: minmax(0, 8ch) minmax(0, 1fr); align-items: center; min-height: 46px; gap: 12px; padding-block: 9px; }
.contact-list li + li { border-top: 1px solid var(--border); }
.contact-list a { display: inline-flex; align-items: center; min-height: 44px; color: var(--cyan); overflow-wrap: anywhere; }

.footer { background: #071019; border-top: 1px solid var(--border); }
.footer-inner { min-height: 82px; display: flex; align-items: center; gap: 8px 24px; flex-wrap: wrap; padding-block: 12px; color: var(--muted); font-size: .9rem; }
.footer-inner p { margin-right: auto; }

.subpage { min-height: 100vh; display: grid; grid-template-rows: auto 1fr auto; }
.sub-main { display: grid; place-items: center; padding-block: 54px; }
.sub-card { width: min(100%, 480px); padding: clamp(24px, 5vw, 42px); border: 1px solid var(--border); border-radius: 10px; background: var(--panel); }
.sub-card h1 { font-size: clamp(2rem, 5vw, 2.6rem); letter-spacing: -.045em; overflow-wrap: anywhere; }
.sub-card p { margin-top: 14px; }
.sub-card > .button { margin-top: 25px; }
.login-form { margin-top: 25px; display: grid; gap: 10px; }
.login-form label { color: var(--white); font-weight: 620; }
.login-form input { width: 100%; min-height: 48px; padding: 10px 12px; color: var(--white); background: #050b12; border: 1px solid #31526c; border-radius: 6px; }
.login-form input + label { margin-top: 5px; }
.form-error { min-height: 1.5em; color: #ff8ea5; font-size: .9rem; }

@media (max-width: 1100px) {
  .top-inner { gap: 14px; }
  .top-actions { gap: 7px; }
  .nav { gap: 12px; }
  .hero { min-height: 470px; }
}

@media (max-width: 960px) {
  .top-inner { position: relative; flex-wrap: wrap; gap: 0 12px; }
  .top-actions { margin-left: auto; }
  .js .menu-toggle { display: inline-flex; width: 44px; padding-inline: 0; }
  .nav { order: 1; width: 100%; flex-wrap: wrap; border-top: 1px solid var(--border); padding: 6px 0; }
  .js .nav:not([data-open]) { display: none; }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 740px) {
  .shell { width: calc(100% - 36px); }
  .top-inner { min-height: 65px; }
  .hero { grid-template-columns: 1fr; min-height: auto; margin-top: 18px; }
  .hero-copy { padding: 30px 22px 6px; }
  .hero h1 { font-size: clamp(3.4rem, 11vw, 5.85rem); }
  .hero-lead { margin-top: 15px; }
  .hero-actions { margin-top: 20px; gap: 8px; }
  .hero-media { min-height: 275px; }
  .hero-media img { object-position: center; }
  .hero-media::after { background: linear-gradient(180deg, #071019 0%, #07101900 20%), linear-gradient(0deg, #071019 0%, #07101900 25%); }
  .hero figcaption { inset: auto 12px 12px; }
  .section-split { grid-template-columns: 1fr; }
  .features li { padding: 15px; }
}

@media (max-width: 550px) {
  .top-inner { gap: 0 8px; }
  .top-inner:has(.languages) { padding-top: 8px; }
  .top-actions { margin-left: auto; }
  .languages { order: 2; width: 100%; }
  .top-actions:has(.languages) { display: contents; }
  .top-actions > a.button { margin-left: auto; }
  .nav { order: 3; gap: 0 14px; }
  .hero-media { min-height: 230px; }
  .hero-actions .button { padding-inline: 12px; }
  .features, .audiences { gap: 8px; }
  .steps { grid-template-columns: 1fr; gap: 17px; }
  .rhythm { padding: 14px 12px; }
  .footer-inner { gap: 0 16px; }
}
