@font-face {
  font-family: Geist;
  src: url("assets/geist-cyrillic.woff2") format("woff2");
  font-style: normal;
  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: Geist;
  src: url("assets/geist-latin.woff2") format("woff2");
  font-style: normal;
  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: #101010;
  --surface: #171717;
  --line: #2c2b2a;
  --text: #f3f0ee;
  --muted: #afaaa6;
  --orange: #ff7047;
  --mono: "Cascadia Mono", Consolas, monospace;
  --sans: "Geist", "Segoe UI", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 1rem/1.6 var(--sans); }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 5px; }
h1, h2, h3, p, figure { margin: 0; }
section { scroll-margin-top: 5.5rem; }
.wrap { width: min(100% - 5rem, 81rem); margin-inline: auto; }
.skip-link { position: fixed; top: .5rem; left: 1rem; z-index: 5; padding: .6rem 1rem; background: var(--orange); color: #1c0b05; translate: 0 -200%; }
.skip-link:focus { translate: 0; }
.site-header { position: sticky; z-index: 3; top: 0; border-bottom: 1px solid var(--line); background: #101010f4; }
.header-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 4.5rem; }
.brand { display: inline-flex; justify-self: start; align-items: center; gap: .7rem; width: max-content; font-weight: 800; font-size: 1.12rem; letter-spacing: -.04em; }
.brand-mark { display: grid; place-items: center; width: 2.05rem; height: 2.05rem; background: var(--orange); color: #160906; font: 800 italic .89rem var(--sans); letter-spacing: -.09em; clip-path: polygon(0 0, 100% 0, 100% 76%, 76% 100%, 0 100%); }
.main-nav { display: flex; gap: clamp(1.25rem, 3vw, 2.65rem); color: var(--muted); font-size: .94rem; font-weight: 600; }
.main-nav a:hover { color: var(--text); }
.locale { display: flex; justify-self: end; border: 1px solid var(--line); padding: .2rem; border-radius: .25rem; }
.locale button { display: grid; place-items: center; min-width: 2.3rem; min-height: 2rem; padding: 0 .35rem; border: 0; background: transparent; color: var(--muted); cursor: pointer; font: 600 .84rem var(--mono); }
.locale button[aria-pressed="true"] { color: var(--orange); background: #2d1b16; }
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); background: radial-gradient(ellipse at 78% 45%, #16202f 0%, #101010 63%); }
.hero-grid { min-height: clamp(34rem, 46vw, 43rem); display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.23fr); gap: 1.5rem; align-items: center; position: relative; }
.hero-copy { position: relative; z-index: 1; padding: 3rem 0; }
.eyebrow { display: flex; align-items: center; gap: .65rem; color: var(--orange); font: 600 .86rem/1.45 var(--mono); letter-spacing: .09em; }
.eyebrow-line { width: 1.4rem; height: 1px; flex: none; background: currentColor; }
.hero h1 { margin: 1.15rem 0 1.48rem; font-size: clamp(4.55rem, 7.65vw, 7.8rem); font-weight: 800; line-height: .9; letter-spacing: -.065em; }
.hero h1 span { display: block; }
.hero h1 .accent { color: var(--orange); }
html[lang="ru"] .hero h1 { font-size: clamp(3.85rem, 6.4vw, 6.7rem); letter-spacing: -.048em; }
.hero-description { max-width: 26rem; color: #c1bbb6; font-size: clamp(1.02rem, 1.7vw, 1.22rem); line-height: 1.57; }
.hero-actions { margin-top: 1.9rem; display: flex; flex-wrap: wrap; gap: .65rem; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 3.15rem; padding: .55rem 1.05rem; border-radius: .2rem; font-size: .94rem; font-weight: 700; transition: background-color .18s, border-color .18s, color .18s; }
.button-primary { background: var(--orange); color: #1f0c07; border: 1px solid var(--orange); }
.button-primary:hover { background: #ff916f; border-color: #ff916f; }
.button-secondary { border: 1px solid #3c3632; color: var(--text); background: #191715; }
.button-secondary:hover { border-color: var(--orange); }
.shape-icon, .scene-icon { display: inline-block; flex: none; width: .67rem; height: .67rem; rotate: 45deg; border: 1px solid var(--orange); }
.hero-art { min-width: 0; width: 100%; overflow: hidden; border: 1px solid #394351; border-radius: .42rem; background: #14181e; box-shadow: 0 1.4rem 3.5rem #070a1059; }
.capture-controls { display: flex; gap: .3rem; padding: .5rem; }
.capture-controls button { min-height: 2.3rem; padding: .32rem .8rem; border: 1px solid transparent; border-radius: .2rem; background: transparent; color: #b9c5d2; font-size: .9rem; font-weight: 650; cursor: pointer; }
.capture-controls button:hover { color: var(--text); }
.capture-controls button[aria-pressed="true"] { border-color: #485c72; background: #263344; color: #f4f7fa; }
.capture-controls button:focus-visible { outline-offset: 2px; }
.art-image { aspect-ratio: 16 / 9; background: #111318; }
.art-image img { display: block; width: 100%; height: 100%; object-fit: contain; }
.hero-capture figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .25rem .8rem; min-height: 3.1rem; padding: .55rem .9rem; color: #dce4ee; font-size: .88rem; }
.hero-capture figcaption a { color: #b9c5d2; text-decoration: underline; text-underline-offset: .2em; }
.hero-capture figcaption a:hover { color: var(--text); }
.section { padding: clamp(3.65rem, 6vw, 6rem) 0; }
.section h2 { margin: .5rem 0 1.7rem; font-size: clamp(2.6rem, 5.25vw, 4.6rem); font-weight: 800; line-height: 1.01; letter-spacing: -.052em; }
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .85rem; }
.service-card { display: flex; flex-direction: column; align-items: flex-start; min-height: 16rem; padding: clamp(1.15rem, 2.3vw, 1.85rem); border: 1px solid var(--line); border-radius: .25rem; background: var(--surface); }
.service-card h3 { font-size: clamp(1.22rem, 2vw, 1.56rem); letter-spacing: -.042em; line-height: 1.2; margin: 1.1rem 0 .55rem; }
.service-card p, .scene-details p { color: var(--muted); line-height: 1.6; }
.service-tag { margin-top: auto; padding-top: 1.2rem; color: #ed9a83; font: 500 .78rem var(--mono); letter-spacing: .045em; }
.service-icon { position: relative; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; color: var(--orange); background: #2d1e18; border: 1px solid #493025; border-radius: .22rem; }
.service-icon i { position: absolute; display: block; }
.service-map i { width: .92rem; height: .64rem; border: 1px solid currentColor; transform: rotate(-28deg) skewX(34deg); }
.service-map i:first-child { margin-top: -.56rem; background: #2d1e18; z-index: 2; }
.service-map i:nth-child(2) { margin-top: -.01rem; background: #2d1e18; z-index: 1; }
.service-map i:last-child { margin-top: .54rem; }
.service-code i:first-child, .service-code i:last-child { width: .42rem; height: .42rem; border: solid currentColor; border-width: 0 0 1px 1px; rotate: 45deg; left: .66rem; }
.service-code i:last-child { left: auto; right: .66rem; rotate: 225deg; }
.service-code i:nth-child(2) { width: 1px; height: .92rem; background: currentColor; rotate: 18deg; }
.service-art i:first-child { width: 1.01rem; height: 1.01rem; border: 1px solid currentColor; rotate: 45deg; }
.service-art i:nth-child(2) { width: 1.01rem; height: 1px; background: currentColor; }
.service-art i:last-child { width: 1px; height: .71rem; background: currentColor; margin-top: .64rem; }
.lab { background: #141313; border-block: 1px solid var(--line); }
.lab-grid { display: grid; grid-template-columns: minmax(14rem, .66fr) minmax(0, 1.55fr); align-items: start; gap: 1rem; }
.lab-info { display: grid; gap: 1.65rem; }
.scene-options { display: grid; gap: .5rem; }
.scene-option { display: flex; align-items: center; gap: .85rem; width: 100%; min-height: 3.15rem; padding: .68rem 1rem; border: 1px solid var(--line); border-radius: .24rem; color: var(--muted); background: #181717; text-align: left; cursor: pointer; font-weight: 650; }
.scene-option:hover { color: var(--text); }
.scene-option[aria-pressed="true"] { color: var(--text); border-color: #ad553d; background: #281c18; }
.scene-icon { margin-inline: .2rem; width: .76rem; height: .76rem; }
.arena-icon { rotate: 0deg; }
.core-icon { border-radius: 50%; }
.scene-details { padding-inline: .2rem; }
.scene-details h3 { margin-bottom: .3rem; font-size: 1.28rem; }
.viewer { overflow: clip; border-radius: .25rem; border: 1px solid #40342f; background: #15100e; }
.viewer canvas { display: block; width: 100%; height: clamp(19rem, 34vw, 31rem); cursor: grab; touch-action: none; }
.viewer canvas:active { cursor: grabbing; }
.viewer canvas:focus-visible { outline-offset: -4px; }
.viewer-bar { display: flex; align-items: center; justify-content: space-between; gap: .75rem; min-height: 3.65rem; padding: .5rem .8rem .5rem 1rem; border-top: 1px solid #40342f; background: #1a1716; }
#viewer-help { color: #c7bcb6; font: 500 .8rem/1.4 var(--mono); }
.viewer-controls { display: flex; gap: .3rem; }
.viewer-controls button { display: grid; place-items: center; width: 2.55rem; height: 2.55rem; padding: 0; background: #27211f; color: var(--text); border: 1px solid #493c36; border-radius: .2rem; cursor: pointer; font-size: 1.2rem; }
.viewer-controls button:hover { border-color: var(--orange); }
.contact-wrap { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: 3rem; align-items: center; padding: clamp(1.5rem, 4vw, 3.5rem); border: 1px solid #51392e; border-radius: .3rem; background: radial-gradient(ellipse at 100% 100%, #2d1c14, #171413 66%); }
.contact h2 { margin-bottom: .85rem; }
.contact-wrap p { color: var(--muted); max-width: 35rem; }
.contact-actions { position: relative; display: grid; gap: .65rem; }
.contact-link { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: .6rem; padding: .7rem .8rem .7rem 1rem; min-height: 4.4rem; background: #1c1918; border: 1px solid #4b3a34; border-radius: .22rem; overflow-wrap: anywhere; }
.contact-link strong { grid-column: 1; line-height: 1.25; }
.contact-platform { grid-column: 1; color: var(--muted); font-size: .875rem; }
.contact-action { grid-column: 2; grid-row: 1 / span 2; padding: .55rem .75rem; border-radius: .2rem; border: 1px solid #574138; color: var(--orange); background: #281d19; font-size: .88rem; font-weight: 700; text-align: center; }
button.contact-action { cursor: pointer; }
.telegram:hover, .contact-action:hover { border-color: var(--orange); }
.copy-status { position: absolute; top: calc(100% + .2rem); font-size: .82rem; }
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.5rem; }
.footer-inner p { color: var(--muted); font-size: .87rem; }
@media (max-width: 1000px) {
  .wrap { width: calc(100% - 3rem); }
  .hero-grid { gap: 1rem; min-height: 32rem; }
  .hero h1 { font-size: clamp(3.4rem, 8vw, 5.5rem); }
  html[lang="ru"] .hero h1 { font-size: clamp(3rem, 6.8vw, 5.2rem); }
  .contact-wrap { gap: 1.5rem; }
}
@media (max-width: 720px) {
  .wrap { width: calc(100% - 2rem); }
  .header-inner { grid-template-columns: 1fr auto; padding-top: .55rem; }
  .locale { grid-column: 2; grid-row: 1; }
  .main-nav { grid-column: 1 / -1; grid-row: 2; gap: 1.35rem; padding-block: .45rem .57rem; }
  section { scroll-margin-top: 6rem; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 0; padding-bottom: 1.4rem; }
  .hero-copy { padding: 3rem 0 1.6rem; }
  .hero h1 { font-size: clamp(3.65rem, 13.1vw, 6rem); }
  html[lang="ru"] .hero h1 { font-size: clamp(3.25rem, 11.9vw, 5.6rem); }
  .service-grid, .contact-wrap { grid-template-columns: minmax(0, 1fr); }
  .service-card { min-height: 0; }
  .lab-grid { grid-template-columns: minmax(0, 1fr); }
  .lab-info { gap: .8rem; }
  .scene-options { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .scene-option { justify-content: center; padding-inline: .45rem; font-size: .86rem; }
  .scene-option .scene-icon { display: none; }
  .viewer canvas { height: clamp(16rem, 66vw, 27rem); }
  .contact-wrap { padding-bottom: 2.3rem; }
  .footer-inner { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; }
}
