@font-face { font-family: 'Unbounded'; font-weight: 200 900; font-display: swap; src: url('/assets/fonts/unbounded-latin.woff2') format('woff2'); 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; }
@font-face { font-family: 'Unbounded'; font-weight: 200 900; font-display: swap; src: url('/assets/fonts/unbounded-cyrillic.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Onest'; font-weight: 100 900; font-display: swap; src: url('/assets/fonts/onest-latin.woff2') format('woff2'); 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; }
@font-face { font-family: 'Onest'; font-weight: 100 900; font-display: swap; src: url('/assets/fonts/onest-cyrillic.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

:root {
  color-scheme: light;
  --paper: #f1f4f7;
  --paper-deep: #e6eaf0;
  --ink: #171b21;
  --ink-soft: #3f4954;
  --muted: #5b6673;
  --line: rgba(23, 27, 33, 0.14);
  --line-strong: rgba(23, 27, 33, 0.3);
  --grid: rgba(23, 27, 33, 0.08);
  --header: rgba(241, 244, 247, 0.88);
  --x: #e53b51;
  --y: #477200;
  --z: #3368df;
  --cube-top: #fbfcfd;
  --cube-left: #d6dce3;
  --cube-right: #aeb8c4;
  --shell: min(1240px, calc(100% - 48px));
  --display: 'Unbounded', 'Segoe UI', sans-serif;
  --body: 'Onest', 'Segoe UI', sans-serif;
}

:root[data-theme='dark'] {
  color-scheme: dark;
  --paper: #151920;
  --paper-deep: #0f1318;
  --ink: #edf1f6;
  --ink-soft: #c0c8d2;
  --muted: #8f9aa7;
  --line: rgba(237, 241, 246, 0.14);
  --line-strong: rgba(237, 241, 246, 0.32);
  --grid: rgba(237, 241, 246, 0.07);
  --header: rgba(21, 25, 32, 0.88);
  --x: #ff5a6e;
  --y: #86d62c;
  --z: #5b8dff;
  --cube-top: #e8edf3;
  --cube-left: #8d99a6;
  --cube-right: #56616e;
}

* { box-sizing: border-box; }
html { background: var(--paper); }
body { min-height: 100vh; margin: 0; color: var(--ink); background: var(--paper); font: 400 16px/1.55 var(--body); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
h1, h2, h3, p { margin: 0; }
::selection { color: #fff; background: var(--z); }
:focus-visible { outline: 3px solid var(--z); outline-offset: 3px; border-radius: 4px; }
html[data-lang='ru'] [data-en], html[data-lang='en'] [data-ru] { display: none !important; }
.shell { width: var(--shell); margin-inline: auto; }

.topbar { position: fixed; z-index: 20; inset: 0 0 auto; border-bottom: 1px solid var(--line); background: var(--header); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.topbar-inner { display: flex; align-items: center; gap: 24px; width: var(--shell); height: 70px; margin-inline: auto; }
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.brand-mark { width: 30px; height: 30px; }
.brand-name { font: 700 17px/1 var(--display); letter-spacing: -0.04em; }
.brand-section { padding-left: 10px; border-left: 1px solid var(--line-strong); color: var(--y); font-weight: 700; }
.nav { display: flex; align-items: center; gap: 26px; color: var(--ink-soft); font-size: 14px; font-weight: 550; }
.nav a { padding-block: 7px; border-bottom: 1px solid transparent; }
.nav a:hover, .nav a[aria-current='page'] { color: var(--ink); border-bottom-color: currentColor; }
.controls { display: flex; align-items: center; gap: 10px; }
.seg { display: flex; padding: 3px; border: 1px solid var(--line); border-radius: 10px; }
.seg button { padding: 6px 9px; border: 0; border-radius: 7px; color: var(--muted); background: transparent; cursor: pointer; font-size: 12px; font-weight: 700; }
.seg button[aria-pressed='true'] { color: var(--paper); background: var(--ink); }
.theme { display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 1px solid var(--line); border-radius: 10px; background: transparent; cursor: pointer; }
.theme:hover { border-color: var(--line-strong); }
.theme svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.hero { position: relative; min-height: 520px; padding: 144px 0 94px; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-grid { position: absolute; inset: 70px 0 0; pointer-events: none; background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 64px 64px; -webkit-mask-image: linear-gradient(to bottom, transparent, #000 20%, #000 75%, transparent); mask-image: linear-gradient(to bottom, transparent, #000 20%, #000 75%, transparent); }
.axis { position: absolute; display: block; }
.axis-x { left: 0; right: 0; top: 58%; height: 1px; background: linear-gradient(90deg, transparent, var(--x) 18%, var(--x) 82%, transparent); opacity: 0.55; }
.axis-z { top: 0; bottom: 0; left: 68%; width: 1px; background: linear-gradient(transparent, var(--z) 20%, var(--z) 80%, transparent); opacity: 0.58; }
.hero-inner { position: relative; }
.address { display: inline-flex; align-items: center; gap: 11px; color: var(--ink-soft); font-size: 14px; }
.address-mark { width: 9px; height: 9px; border-radius: 2px; background: var(--y); box-shadow: 0 0 0 5px color-mix(in srgb, var(--y) 18%, transparent); transform: rotate(45deg); }
.hero h1 { max-width: 9ch; margin-top: 46px; font: 750 clamp(68px, 12vw, 174px)/0.9 var(--display); letter-spacing: -0.065em; }
.lead { max-width: 47ch; margin-top: 38px; color: var(--ink-soft); font-size: clamp(17px, 2vw, 20px); }

.catalog { padding: clamp(72px, 9vw, 126px) 0 clamp(90px, 12vw, 160px); }
.catalog-layout { display: grid; grid-template-columns: minmax(190px, 2fr) minmax(0, 10fr); gap: clamp(42px, 6vw, 84px); }
.catalog-head h2 { font: 700 clamp(25px, 3.6vw, 44px)/1.05 var(--display); letter-spacing: -0.05em; }
.catalog-head p { max-width: 30ch; margin-top: 20px; color: var(--muted); }
.empty-state { min-height: 360px; display: grid; grid-template-columns: minmax(250px, 5fr) minmax(260px, 4fr); align-items: center; gap: clamp(24px, 4vw, 64px); padding: clamp(30px, 5vw, 64px); border: 1px solid var(--line); border-radius: 18px; background: var(--paper-deep); overflow: hidden; }
.empty-copy { position: relative; z-index: 2; }
.empty-copy h3 { font: 700 clamp(26px, 3vw, 36px)/1.08 var(--display); letter-spacing: -0.05em; }
.empty-copy p { max-width: 30ch; margin-top: 18px; color: var(--muted); }
.empty-scene { min-height: 250px; perspective: 620px; perspective-origin: 50% 25%; }
.plane { position: relative; width: 100%; height: 100%; min-height: 250px; transform: rotateX(58deg) rotateZ(-4deg); transform-style: preserve-3d; border: 1px solid var(--line); background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 42px 42px; }
.plane-x, .plane-z { position: absolute; background: currentColor; }
.plane-x { z-index: 1; left: 0; right: 0; top: 50%; height: 2px; color: var(--x); }
.plane-z { z-index: 1; top: 0; bottom: 0; left: 50%; width: 2px; color: var(--z); }
.spawn { position: absolute; z-index: 2; top: calc(50% - 9px); left: calc(50% - 9px); width: 18px; height: 18px; border: 4px solid var(--y); border-radius: 50%; background: var(--paper-deep); transform: translateZ(3px); box-shadow: 0 0 0 9px color-mix(in srgb, var(--y) 12%, transparent); }
.cube { position: absolute; z-index: 3; width: 42px; height: 42px; transform-style: preserve-3d; }
.cube-one { top: 24%; left: 24%; transform: translateZ(22px); }
.cube-two { right: 16%; bottom: 18%; transform: translateZ(22px); }
.cube i, .cube b, .cube em { position: absolute; inset: 0; display: block; border: 1px solid var(--line-strong); }
.cube i { background: var(--cube-top); transform: translateZ(21px); }
.cube b { background: var(--cube-left); transform: rotateX(90deg) translateZ(-21px); }
.cube em { background: var(--cube-right); transform: rotateY(90deg) translateZ(21px); }

.footer { padding: 34px 0 46px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; }

@media (max-width: 850px) {
  .nav { display: none; }
  .catalog-layout { grid-template-columns: 1fr; }
  .catalog-head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; }
  .catalog-head p { margin-top: 0; text-align: right; }
}

@media (max-width: 640px) {
  :root { --shell: min(100% - 28px, 1240px); }
  .topbar-inner { height: 64px; gap: 10px; }
  .brand-name { display: none; }
  .brand-section { padding-left: 0; border-left: 0; }
  .hero { min-height: 450px; padding: 112px 0 72px; }
  .hero-grid { inset-block-start: 64px; background-size: 48px 48px; }
  .hero h1 { margin-top: 38px; }
  .lead { margin-top: 30px; }
  .catalog-head { display: block; }
  .catalog-head p { margin-top: 14px; text-align: left; }
  .empty-state { grid-template-columns: 1fr; min-height: 0; }
  .empty-scene { min-height: 190px; margin-inline: -18px; }
  .plane { min-height: 190px; }
  .footer-inner { flex-direction: column; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
