:root {
  --bg: #091414;
  --ink: #f5f0e6;
  --soft: #c8d1c9;
  --muted: #abbcb4;
  --copper: #ecac7d;
  --line: #33453e;
  --serif: "Kodilo Display", Georgia, "Times New Roman", serif;
  --sans: "Kodilo Sans", Arial, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --glass: #172521;
  --anchor-offset: 6.5rem;
  --section-inset: clamp(4.8rem,8vw,8rem);
  --gutter: clamp(1.12rem, 5.25vw, 6.5rem);
  color-scheme: dark;
  scroll-behavior: smooth;
  scroll-padding-top: var(--anchor-offset);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1rem/1.6 var(--sans); }
p, h1, h2, h3, figure, dl, dd { margin: 0; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; cursor: pointer; }
a:focus-visible, button:focus-visible, summary:focus-visible, [tabindex]:focus-visible { outline: 3px solid #ffc295; outline-offset: 4px; }
[hidden] { display: none !important; }
.wrap { width: min(100% - 2 * var(--gutter), 88rem); margin-inline: auto; }
.skip { position: fixed; left: 1rem; top: .5rem; z-index: 30; padding: .75rem 1.2rem; border-radius: 2rem; background: var(--ink); color: var(--bg); transform: translateY(-160%); }
.skip:focus { transform: none; }

.mast {
  position: fixed;
  z-index: 15;
  top: 1rem; left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100% - 2rem);
  display: flex; align-items: center; justify-content: space-between;
  gap: clamp(2rem, 9vw, 9.5rem);
  padding: .45rem .48rem .45rem 1.05rem;
  background: var(--glass);
  border-radius: 2.55rem;
  box-shadow: inset 0 1px 0 #ffffff23, inset 0 -1px 0 #ffffff09, 0 5px 24px #0004;
}
.brand { display: inline-flex; flex: none; align-items: center; gap: .63rem; width: max-content; }
.brand-mark { width: 2.3rem; height: 2.3rem; display: block; }
.brand-name { display: grid; gap: .04rem; color: var(--ink); font: 400 1.5rem/1.03 var(--serif); letter-spacing: -.055em; }
.brand-prefix { color: #efb790; font: 650 .65rem/1 var(--sans); letter-spacing: .16em; }
#navigation { display: flex; align-items: center; gap: .14rem; }
#navigation a, .menu-toggle {
  min-height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: .55rem clamp(.7rem, 1.15vw, 1.18rem);
  color: #e5ece7; border-radius: 999px;
  font-size: .93rem; font-weight: 570; line-height: 1.2;
  transition: background .18s, color .18s;
}
#navigation a:hover, #navigation a[aria-current] { color: #fff6e9; background: #d5e5d91a; }
#navigation .contact-nav { background: #d0dfd2; color: #17251d; padding-inline: 1.35rem; margin-left: .35rem; }
#navigation .contact-nav:hover, #navigation .contact-nav[aria-current] { background: #eff5e9; color: #16221f; }
.menu-toggle { display: none; border: 0; }
@supports ((backdrop-filter: blur(12px)) or (-webkit-backdrop-filter: blur(12px))) {
  .mast, .motion-controls {
    --glass: #15221fcb;
    -webkit-backdrop-filter: blur(20px) saturate(1.15);
    backdrop-filter: blur(20px) saturate(1.15);
  }
}

.opening {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: clamp(680px, 88svh, 940px); padding-top: 90px;
  display: flex; flex-direction: column; background: #071213;
}
.hero-art, .atmosphere, #code-trail { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-art { z-index: -1; overflow: hidden; }
.atmosphere { background: #071213 linear-gradient(110deg, #090f0f, #112425); }
.atmosphere::before { content:""; position:absolute; inset:0; background:url("assets/atmosphere.webp") center / cover; opacity:.9; }
.hero-art::after { content:""; position:absolute; inset:0 0 auto; height:95px; background:linear-gradient(to bottom, #051011b3, #05101191 56%, transparent); z-index:3; }
#code-trail { z-index:1; }
#code-cat { z-index:2; }
.censer-rig { position: absolute; left: 65%; top: -12%; height: 96%; transform-origin: 50% 0; transform: translateX(-50%) rotate(-15deg); }
#censer { display: block; height: 100%; width: auto; }
#code-cat { position:absolute; left:0; top:0; color:#ffe2ad; font:bold clamp(15px,1.7vw,25px)/1 var(--mono); white-space:pre; text-shadow:0 0 7px #d87728; transform-origin:center; }

.hero { display: flex; align-items: center; flex: 1; padding-block: clamp(72px,10vh,128px) clamp(82px,13vh,150px); pointer-events: none; }
.hero-copy { width: max-content; max-width: 100%; }
.hero-copy a { pointer-events: auto; }
.section-eyebrow {
  display: flex; align-items: center; gap: .65rem;
  color: var(--copper); font: 550 .81rem/1.4 var(--mono); letter-spacing: .025em;
}
.section-eyebrow::before { content:""; width: 1.3rem; height: 2px; border-radius: 2px; background: currentColor; }
.hero-kicker { margin-bottom: 1.55rem; }
h1, h2 { font-family: var(--serif); font-weight: 400; }
h1 { font-size: clamp(3.75rem,6.1vw,6.85rem); letter-spacing: -.064em; line-height: 1.12; }
h1 span { color: #e7d9c4; }
h2 { font-size: clamp(2.52rem,4.6vw,5.1rem); line-height: 1.12; letter-spacing: -.058em; }
.hero-sub { max-width: 39ch; margin-top: 1.45rem; color: #e0e6df; text-wrap: pretty; font-size: clamp(1.04rem,1.3vw,1.32rem); line-height: 1.56; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 2.05rem; }
.button {
  width: max-content; max-width: 100%; min-height: 3.25rem; padding: .82rem 1.48rem;
  display: inline-flex; align-items: center; justify-content: center; gap: .66rem;
  border-radius: 999px; font-weight: 720; font-size: .99rem; line-height: 1.3;
  transition: transform .16s, background .16s, box-shadow .16s;
}
.button:active { transform: scale(.975); }
.copper { background: linear-gradient(150deg,#f5bc91,#e29a66); color: #251912; box-shadow: inset 0 1px 0 #ffe2bb99, 0 5px 18px #17100c4d; }
.copper:hover { background: #f8c49a; box-shadow: 0 6px 21px #a5643e38; }
.play-icon { position:relative; display: inline-grid; place-items:center; width:1.25rem; height:1.25rem; background:#482e21; border-radius:50%; }
.play-icon::before { content:""; width:.45rem; height:.52rem; margin-left:.08rem; background:#ffcc9f; clip-path:polygon(0 0,100% 50%,0 100%); }
.hero-terms { display:grid; align-content:center; min-height:3.25rem; line-height:1.4; }
.hero-terms b { font: 650 1.01rem/1.45 var(--sans); color:#f1e6d5; }
.hero-terms span { font-size:.85rem; color:#ccd2c7; }
.hero-terms:hover b { color:var(--copper); }
.motion-controls {
  position:absolute; right:var(--gutter); bottom:1.35rem; display:flex; align-items:center; gap:.12rem;
  padding:.2rem; background:var(--glass); border-radius:999px; box-shadow:inset 0 1px 0 #ffffff24, 0 4px 18px #0003;
}
.motion-controls:not(:has(button:not([hidden]))) { display:none; }
.motion-controls button {
  display:inline-flex; align-items:center; justify-content:center; gap:.4rem;
  min-height:44px; padding:.45rem .9rem; color:#e0e5dd; background:transparent; border:0; border-radius:999px; font-size:.83rem;
}
.motion-controls button:hover { background:#ccded21c; color:white; }
#smoke-pause::before { content:""; width:10px; height:12px; border-inline:3px solid var(--copper); }
#smoke-pause[aria-label^="Продолжить"]::before { border:0; background:var(--copper); clip-path:polygon(0 0,100% 50%,0 100%); }
#replay span { color:var(--copper); font:1.3rem/1 Arial,sans-serif; }

.stand-section,.complex-section { padding-block:var(--section-inset); scroll-margin-top:calc(0px - min(var(--anchor-offset), var(--section-inset))); }
.stand-section { background: #10211e; }
.stand-heading { display:grid; grid-template-columns: 1fr 1fr; align-items:end; gap:clamp(2.5rem,7vw,7rem); }
.section-eyebrow + h2 { margin-top:1.15rem; }
.stand-intro { max-width:56ch; padding-bottom:.3rem; color:var(--soft); font-size:clamp(1rem,1.13vw,1.16rem); }
.stand-intro p + p { margin-top:.65rem; }
.stand-intro strong,.complex-copy strong { color:var(--ink); font-weight:650; }
#stand-app { margin-top:clamp(1.7rem,3.6vw,3.9rem); }

.complex-section { background:#0b1716; }
.complex-grid { display:grid; grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr); grid-template-areas:"photo copy"; align-items:center; gap:clamp(2.5rem,6vw,6.5rem); }
.complex-copy { grid-area:copy; }
.complex-copy > p:not(.section-eyebrow) { margin-top:1.1rem; color:var(--soft); max-width:54ch; font-size:1.04rem; }
.boundary-figure {
  grid-area:photo; position:relative; isolation:isolate; overflow:hidden; margin:0;
  min-height:clamp(25rem,34vw,35rem); border-radius:clamp(1.65rem,3vw,3rem);
  background:#172622; display:flex; align-items:end; padding:clamp(1.15rem,2.8vw,2.8rem);
}
.boundary-figure > img { position:absolute; z-index:-2; inset:0; width:100%; height:100%; object-fit:cover; }
.boundary-figure::before { content:""; position:absolute; z-index:-1; inset:0; background:linear-gradient(to bottom, transparent 25%,#06100e26 46%,#05100efd); }
.boundary-figure figcaption { width:100%; color:#f4f1e8; }
.boundary-label { display:block; margin-bottom:.65rem; color:#eac1a1; font:500 .85rem/1.5 var(--mono); }
.boundary-flow { display:flex; gap:clamp(.45rem,1.2vw,1.3rem); align-items:center; font-size:clamp(.97rem,1.36vw,1.35rem); font-weight:650; line-height:1.35; }
.flow-symbol { flex:1; display:flex; align-items:center; gap:.28rem; color:var(--copper); font-family:var(--sans); }
.flow-symbol::before,.flow-symbol::after { content:""; height:1px; flex:1; background:#bc8f6785; }
.security-law { margin-top:1.3rem; }
.security-law summary {
  display:flex; align-items:center; gap:.65rem; cursor:pointer; list-style:none; min-height:44px;
  color:#efbc96; font-size:.94rem; line-height:1.45; font-weight:600;
}
.security-law summary::-webkit-details-marker { display:none; }
.security-law summary::before { content:"+"; display:grid; place-items:center; flex:0 0 1.6rem; height:1.6rem; border-radius:50%; background:#263831; color:#f4ccb0; font:1.22rem/1 var(--sans); }
.security-law[open] summary::before { content:"−"; }
.security-law summary:hover, .law-sources a:hover { color:#ffe1c4; }
.security-law[open] > div { padding:.7rem 0; color:var(--soft); font-size:.96rem; }
.law-sources { display:flex; flex-wrap:wrap; gap:.3rem 1.3rem; margin-top:.7rem; }
.law-sources a, .lab-link { text-decoration:underline; text-underline-offset:4px; text-decoration-thickness:1px; }

.supply-section { background:#0b1716; padding-bottom:clamp(2rem,5.4vw,6rem); }
.supply-panel {
  display:grid; grid-template-columns:minmax(0,1.27fr) minmax(0,.73fr); grid-template-areas:"head terms" "action terms"; align-items:center; gap:1.6rem clamp(2rem,8vw,9rem);
  padding:clamp(2rem,5.1vw,5.6rem); border-radius:clamp(1.85rem,3.3vw,3.6rem);
  color:#1c2923; background:radial-gradient(ellipse at 100% 4%,#f2ceab95,transparent 63%), #e9e8dc;
}
.supply-panel .section-eyebrow { color:#7b442b; }
.supply-head { grid-area:head; align-self:end; }
.supply-head h2 { max-width:12ch; }
.supply-copy { max-width:46ch; color:#415149; margin-top:1.1rem; font-size:1.02rem; }
.supply-cta { grid-area:action; align-self:start; background:#20372e; color:#f3f1e5; }
.supply-cta:hover { background:#335044; }
.supply-panel a:focus-visible { outline-color:#803c20; }
.terms { grid-area:terms; display:grid; gap:clamp(1.6rem,3.5vw,3.5rem); }
.terms dt { margin-bottom:.3rem; color:#48574c; font-weight:600; }
.terms dd { white-space:nowrap; font:400 clamp(2.65rem,4.2vw,5rem)/1.12 var(--serif); letter-spacing:-.07em; }
.terms dd span { font:550 .43em/1 var(--sans); letter-spacing:0; }

footer { padding:clamp(4rem,7vw,7rem) 0 1.6rem; background:#091311; }
.contact-grid { display:grid; grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr); gap:clamp(2rem,7vw,7rem); align-items:start; margin-top:1rem; }
.lab-link { display:inline-block; color:#c9d4cb; margin-top:1.4rem; font-size:.96rem; text-decoration-color:#738276; }
.lab-link:hover,.footer-line a:hover { color:var(--copper); }
.contact-data { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:2rem 1.2rem; }
.contact-data > div { display:grid; align-content:start; gap:.18rem; }
.contact-data span { color:var(--muted); font-size:.89rem; }
.contact-phone a { display:flex; align-items:center; min-height:44px; color:#efece1; width:max-content; max-width:100%; font:580 clamp(1.07rem,1.47vw,1.58rem)/1.4 var(--sans); letter-spacing:-.04em; white-space:nowrap; }
.contact-phone a:hover { color:var(--copper); }
.contact-address { grid-column:1/-1; }
address { color:var(--soft); font-style:normal; }
.footer-line { display:flex; align-items:center; gap:1.25rem; margin-top:clamp(3.6rem,6vw,7rem); padding-top:1.35rem; box-shadow:inset 0 1px 0 #9cafa329; }
.footer-line .brand-name { font-size:1.27rem; }
.footer-line .brand-mark { width:2.05rem; height:2.05rem; }
.footer-line > span,.footer-line > a:last-child { color:var(--muted); font-size:.86rem; }
.footer-line > a:last-child { margin-left:auto; background:#1b2b25; border-radius:999px; padding:.65rem 1.12rem; min-height:44px; }

@media (min-width:1750px) { .censer-rig { left:66%; } }
@media (max-width:980px) {
  .opening { padding-top:78px; min-height:clamp(610px,82svh,800px); }
  .hero { padding:5rem 0; }
  h1 { font-size:clamp(3rem,6.4vw,4.7rem); }
  .stand-heading,.complex-grid { column-gap:2.15rem; }
  .contact-data { grid-template-columns:1fr; gap:1.1rem; }
}
@media (max-width:760px) {
  .stand-heading,.complex-grid,.supply-panel,.contact-grid { grid-template-columns:minmax(0,1fr); }
  .stand-heading { gap:1.4rem; }
  .stand-heading h2 br { display:none; }
  .complex-grid { grid-template-areas:"copy" "photo"; gap:1.8rem; }
  .boundary-figure { min-height:clamp(16rem,55vw,23rem); }
  .supply-panel { grid-template-areas:"head" "terms" "action"; gap:2rem; padding:clamp(1.5rem,5vw,2.5rem); }
  .supply-head h2 { max-width:100%; }
  .terms { display:flex; flex-wrap:wrap; gap:1.2rem 2rem; }
  .terms dd { font-size:clamp(2.4rem,7.6vw,3.2rem); }
  .terms dt { font-size:.87rem; }
  .contact-grid { gap:2rem; }
}
@media (max-width:700px) {
  :root { --anchor-offset:5.2rem; --section-inset:clamp(3.6rem,10vw,4.9rem); }
  .opening { min-height:0; padding-top:68px; }
  .hero-art::after { height:76px; background:linear-gradient(to bottom,#051011d0,#05101195 55%,transparent); }
  .mast { top:.65rem; width:calc(100% - 2rem); max-width:28rem; padding:.32rem .38rem .32rem .85rem; gap:.5rem; }
  .brand-mark { width:2.03rem; height:2.03rem; }
  .brand-name { font-size:1.35rem; }
  .brand-prefix { font-size:.6rem; }
  #navigation { flex-wrap:wrap; gap:0; }
  #navigation a { padding:.5rem .65rem; font-size:.85rem; }
  .has-menu .menu-toggle { display:inline-flex; gap:.58rem; background:#35463e; color:#f5efe4; padding-inline:.95rem; }
  .menu-symbol { width:13px; height:7px; border-block:1.5px solid currentColor; }
  .has-menu #navigation { display:none; }
  .has-menu #navigation.is-open { display:grid; position:absolute; top:calc(100% + .32rem); right:0; width:min(100%,18rem); padding:.4rem; background:#192a23; border-radius:1.5rem; box-shadow:0 12px 36px #03090680,inset 0 1px #ffffff1a; }
  .has-menu #navigation a { justify-content:start; padding:.78rem 1.15rem; min-height:46px; font-size:.99rem; }
  .has-menu #navigation .contact-nav { margin:.1rem 0 0; }
  .hero { padding:clamp(232px,63vw,355px) 0 2.75rem; }
  .hero-copy { width:100%; }
  .hero-kicker { margin-bottom:1rem; }
  h1 { font-size:clamp(2.45rem,9.25vw,4.1rem); line-height:1.11; }
  .hero-sub { margin-top:1rem; font-size:1.02rem; }
  .hero-actions { margin-top:1.45rem; gap:.8rem 1.2rem; }
  .button { padding:.78rem 1.16rem; min-height:3rem; font-size:.94rem; }
  .hero-terms { min-height:3rem; }
  .hero-terms b { font-size:.95rem; }
  .hero-terms span { font-size:.79rem; }
  .censer-rig { left:58%; top:-44px; height:clamp(290px,76vw,395px); }
  .motion-controls { right:var(--gutter); top:clamp(218px,54vw,315px); bottom:auto; }
  .motion-controls button { min-width:44px; padding:.45rem .72rem; }
  #replay { font-size:0; gap:0; }
  .section-eyebrow { font-size:.8rem; }
}
@media (max-width:370px) {
  .hero-actions { gap:.6rem .8rem; }
  .button { padding-inline:.95rem; }
  .hero-terms span { font-size:.75rem; }
}
@media (prefers-reduced-transparency:reduce) {
  .mast,.motion-controls { background:#192822; -webkit-backdrop-filter:none; backdrop-filter:none; }
}
@media (prefers-reduced-motion:reduce) {
  :root { scroll-behavior:auto; }
  *,*::before,*::after { transition-duration:.01ms!important; }
}
@media (forced-colors:active) {
  .mast,.button,.motion-controls,.menu-toggle,.footer-line > a:last-child { border:1px solid ButtonText; }
  .play-icon { border:1px solid ButtonText; }
}
