@property --t { syntax: "<number>"; inherits: true; initial-value: .64; }

:root {
  --bg: #0a0b0d;
  --on-c: #0a0b0d;
  --text-2: #c9cec8;
  --acc-t: #d4ff3a;
  --plast: #d4ff3a;
  --surface: #121418;
  --surface-2: #191c21;
  --line: rgb(255 255 255 / .1);
  --text: #eef0ea;
  --muted: #9aa19b;
  --acc: #d4ff3a;
  --acc-ink: #0d1200;
  --frost: #6fe3ff;
  --multi: #b9a2ff;
  --air: #f2f4f0;
  --heat: #ff8548;
  --display: "Golos Text", system-ui, sans-serif;
  --body: "Onest", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --pad: clamp(16px, 4vw, 56px);
  --r: 18px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 clamp(16px, 1.05vw + 12px, 18px)/1.55 var(--body);
  overflow-x: hidden;
}
h1, h2, h3, p, ul, ol, dl, dd, figure, fieldset { margin: 0; padding: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
::selection { background: var(--acc); color: var(--acc-ink); }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; border-radius: 6px; }

h1, h2 { font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: -.02em; text-wrap: balance; }
h2 { font-size: clamp(1.4rem, 3.1vw, 2.7rem); line-height: 1.08; }
h3 { font: 600 1.05rem/1.25 var(--display); }
.kicker, .mono { font: 600 .74rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--acc-t); }
.mono { color: var(--muted); }
.lead { color: var(--muted); font-size: 1.1em; max-width: 60ch; }

/* progress */
.progress { position: fixed; inset: 0 0 auto; height: 3px; background: var(--acc); transform-origin: 0 50%; transform: scaleX(0); z-index: 60; }
@supports (animation-timeline: scroll()) {
  .progress { animation: grow linear both; animation-timeline: scroll(root); }
  @keyframes grow { to { transform: scaleX(1); } }
}

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .7em 1.15em; border-radius: 999px; border: 1px solid var(--line);
  font: 600 .9rem/1 var(--body); white-space: nowrap; cursor: pointer;
  background: none; transition: transform .2s, background .2s, border-color .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--lg { padding: 1.05em 1.6em; font-size: 1rem; }
.btn--acc { background: var(--acc); color: var(--acc-ink); border-color: var(--acc); }
.btn--acc:hover { background: #e6ff7a; }
.btn--ghost { backdrop-filter: blur(10px); background: color-mix(in oklab, var(--text) 5%, transparent); }
.btn--ghost:hover { border-color: var(--acc); color: var(--acc-t); }

/* header */
.hdr {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px var(--pad);
  background: linear-gradient(color-mix(in oklab, var(--bg) 85%, transparent), transparent);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  mask: linear-gradient(#000 70%, transparent);
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo__tile {
  position: relative; display: grid; place-items: end start; flex: none;
  width: 44px; height: 44px; padding: 0 0 4px 6px;
  background: var(--acc); color: var(--acc-ink); border-radius: 9px;
  font: 800 1.05rem/1 var(--display);
}
.logo__tile i { position: absolute; top: 5px; right: 6px; font: 600 .5rem/1 var(--mono); }
.logo__name { font: 800 .72rem/1.15 var(--display); letter-spacing: .08em; }
.nav { display: flex; gap: clamp(14px, 2vw, 30px); font-size: .92rem; }
.nav a { color: var(--muted); transition: color .2s; }
.nav a:hover { color: var(--text); }
.hdr__right { display: flex; align-items: center; gap: 10px; }
.lang { display: flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.lang button { border: 0; background: none; padding: .45em .7em; border-radius: 999px; font: 600 .7rem/1 var(--mono); cursor: pointer; color: var(--muted); }
.lang button[aria-pressed="true"] { background: var(--text); color: var(--bg); }
.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: none; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 13px; right: 13px; height: 2px; background: var(--text); transition: transform .25s, top .25s; }
.burger span:first-child { top: 17px; } .burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* hero */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; padding: 110px var(--pad) 0; isolation: isolate; overflow: hidden; }
.hero__gl { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; background: radial-gradient(120% 90% at 70% 30%, var(--surface-2), var(--bg) 70%); }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 35%; background: linear-gradient(transparent, var(--bg)); z-index: -1; }
.hero__in { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: clamp(20px, 4vw, 64px); flex: 1; }
.hero h1 { font-size: clamp(2.1rem, 6.2vw, 5.8rem); line-height: .92; margin: .35em 0 .3em; }
.hero h1 em { font-style: normal; color: var(--acc-t); }
.hero__sub { max-width: 52ch; color: var(--text-2); font-size: 1.08em; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.hero__tile { perspective: 900px; }
.bigtile {
  --rx: 0deg; --ry: 0deg;
  position: relative; width: clamp(200px, 24vw, 340px); aspect-ratio: 1 / 1.12;
  padding: 7%; border-radius: 9%;
  background: var(--acc); color: var(--acc-ink);
  display: flex; flex-direction: column; justify-content: flex-end;
  transform: rotateX(var(--rx)) rotateY(var(--ry)) rotate(4deg);
  transition: transform .25s ease-out;
  box-shadow: 0 40px 120px -20px rgb(212 255 58 / .45), inset 0 0 0 1px rgb(255 255 255 / .5);
}
.bigtile__n, .bigtile__m { position: absolute; top: 7%; font: 600 clamp(.8rem, 1.3vw, 1.1rem)/1 var(--mono); }
.bigtile__n { left: 8%; } .bigtile__m { right: 8%; }
.bigtile__s { font: 800 clamp(5rem, 11vw, 10rem)/.85 var(--display); letter-spacing: -.06em; }
.bigtile__l { font: 800 clamp(.8rem, 1.4vw, 1.25rem)/1.1 var(--display); text-transform: uppercase; margin-top: .6em; }
.bigtile__c { font: 400 clamp(.6rem, .9vw, .8rem)/1.2 var(--mono); margin-top: .5em; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin: clamp(28px, 5vh, 56px) calc(var(--pad) * -1) 0; border-top: 1px solid var(--line); }
.stats li { padding: 22px var(--pad); border-right: 1px solid var(--line); display: grid; gap: 6px; }
.stats li:last-child { border: 0; }
.stats b { font: 800 clamp(1.35rem, 2.6vw, 2.3rem)/1 var(--display); letter-spacing: -.03em; }
.stats small { font-size: .5em; color: var(--acc-t); margin-left: .1em; }
.stats li > span { color: var(--muted); font-size: .88rem; }

/* marquee */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: var(--acc); color: var(--acc-ink); }
.marquee__track { display: flex; width: max-content; animation: slide 30s linear infinite; }
.marquee span { font: 800 1rem/1 var(--display); padding: 16px 26px; white-space: nowrap; }
.marquee span::after { content: "✦"; margin-left: 52px; }
@keyframes slide { to { transform: translateX(-50%); } }

/* sections */
.sec { padding: clamp(72px, 11vw, 160px) var(--pad); position: relative; }
.sec__head { display: grid; gap: 18px; margin-bottom: clamp(28px, 4vw, 56px); max-width: 1100px; }

/* periodic table */
.legend { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 22px; font: 400 .78rem/1 var(--mono); color: var(--muted); }
.legend li::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--c); margin-right: 8px; }
[data-cat="plast"] { --c: var(--plast); } [data-cat="frost"] { --c: var(--frost); }
[data-cat="multi"] { --c: var(--multi); } [data-cat="air"] { --c: var(--air); } [data-cat="retard"] { --c: var(--heat); }

.ptable { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(8px, 1vw, 14px); }
.el {
  position: relative; aspect-ratio: 1 / .92; text-align: left; cursor: pointer;
  padding: clamp(12px, 1.6vw, 24px); border-radius: var(--r);
  border: 1px solid color-mix(in oklab, var(--c) 35%, transparent);
  background: linear-gradient(160deg, color-mix(in oklab, var(--c) 12%, var(--surface)), var(--surface) 60%);
  display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden;
  transition: transform .3s cubic-bezier(.2,.8,.2,1), background .3s, color .3s, box-shadow .3s;
}
.el__n, .el__k { position: absolute; top: clamp(12px, 1.6vw, 22px); font: 600 .72rem/1 var(--mono); color: var(--c); }
.el__n { left: clamp(12px, 1.6vw, 24px); } .el__k { right: clamp(12px, 1.6vw, 24px); }
.el { container-type: inline-size; }
.el__s { font: 800 clamp(3rem, 36cqi, 8rem)/.9 var(--display); letter-spacing: -.05em; color: var(--c); transition: color .3s; }
.el__name { font: 600 clamp(.72rem, 1vw, .95rem)/1.2 var(--display); margin-top: .7em; }
.el__type { font-size: clamp(.72rem, .85vw, .86rem); line-height: 1.3; color: var(--muted); margin-top: .35em; transition: color .3s; }
.el:hover, .el:focus-visible {
  transform: translateY(-6px) scale(1.02); background: var(--c); color: var(--on-c);
  box-shadow: 0 24px 60px -18px color-mix(in oklab, var(--c) 60%, transparent);
}
.el:hover :is(.el__s, .el__n, .el__k, .el__type), .el:focus-visible :is(.el__s, .el__n, .el__k, .el__type) { color: var(--on-c); }

/* thermometer */
.pick { --cold: var(--frost); --hot: var(--heat); --tc: color-mix(in oklab, var(--cold), var(--hot) calc(var(--t) * 100%)); }
.pick::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(70% 60% at 50% 55%, color-mix(in oklab, var(--tc) 16%, transparent), transparent 70%); }
.thermo { display: grid; grid-template-columns: auto 1fr; gap: clamp(20px, 4vw, 64px) clamp(24px, 5vw, 80px); align-items: center; padding: clamp(20px, 4vw, 56px); border: 1px solid var(--line); border-radius: calc(var(--r) * 1.5); background: color-mix(in oklab, var(--surface) 70%, transparent); }
.thermo__read { display: grid; gap: 10px; }
.thermo__read output { font: 800 clamp(3.2rem, 8vw, 6.5rem)/.85 var(--display); letter-spacing: -.05em; color: var(--tc); min-width: 3.2ch; font-variant-numeric: tabular-nums; }
.thermo__read span { font: 400 .78rem/1 var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.thermo__ctl { display: grid; gap: 10px; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; background: none; cursor: grab; }
input[type="range"]::-webkit-slider-runnable-track { height: 10px; border-radius: 9px; background: linear-gradient(90deg, var(--frost), #dfe5df 40%, var(--heat)); }
input[type="range"]::-moz-range-track { height: 10px; border-radius: 9px; background: linear-gradient(90deg, var(--frost), #dfe5df 40%, var(--heat)); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 34px; height: 34px; margin-top: -12px; border-radius: 50%; background: var(--text); border: 6px solid var(--bg); box-shadow: 0 0 0 2px var(--text); }
input[type="range"]::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: var(--text); border: 6px solid var(--bg); box-shadow: 0 0 0 2px var(--text); }
.thermo__scale { display: flex; justify-content: space-between; font: 400 .7rem/1 var(--mono); color: var(--muted); }
.thermo__rec { grid-column: 1 / -1; display: grid; gap: 14px; padding-top: clamp(18px, 3vw, 32px); border-top: 1px solid var(--line); }
.thermo__tiles { display: flex; flex-wrap: wrap; gap: 12px; }
.thermo__tiles .el { width: clamp(132px, 16vw, 190px); aspect-ratio: 1; }
.thermo__tiles .el__s { font-size: clamp(2.4rem, 32cqi, 3.8rem); }
.thermo__msg { max-width: 62ch; color: var(--text-2); }

/* calc */
.calc { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(12px, 1.4vw, 20px); }
.calc__in, .calc__out { padding: clamp(20px, 3vw, 44px); border-radius: calc(var(--r) * 1.5); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 18px; align-content: start; }
.calc__out { background: linear-gradient(150deg, color-mix(in oklab, var(--acc) 13%, var(--surface)), var(--surface) 65%); border-color: color-mix(in oklab, var(--acc) 30%, transparent); gap: 10px; }
label { display: grid; gap: 8px; }
label > span, legend { font: 400 .74rem/1.2 var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
input:not([type="range"], [type="radio"]), select {
  width: 100%; min-height: 54px; padding: 0 16px; border-radius: 12px;
  background: var(--surface-2); border: 1px solid var(--line); font-size: 1.05rem;
  transition: border-color .2s;
}
input:not([type="range"], [type="radio"]):focus, select:focus { outline: 0; border-color: var(--acc); }
.calc__big { font: 800 clamp(1.5rem, 3.2vw, 2.8rem)/1 var(--display); letter-spacing: -.03em; margin-bottom: 14px; font-variant-numeric: tabular-nums; }
.calc__big small { font-size: .4em; color: var(--muted); letter-spacing: 0; }
.calc__big--acc { color: var(--acc-t); }
.note { font-size: .84rem; color: var(--muted); max-width: 58ch; }

/* about */
.about { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.about > div { display: grid; gap: 22px; position: sticky; top: 110px; }
.std { display: grid; gap: 0; margin-top: 10px; border-top: 1px solid var(--line); }
.std li { display: grid; grid-template-columns: minmax(150px, auto) 1fr; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.std b { font: 600 .86rem/1.2 var(--mono); color: var(--acc-t); }
.std span { color: var(--muted); font-size: .94rem; }
.pillars { counter-reset: p; display: grid; gap: clamp(8px, 1vw, 14px); }
.pillars li { counter-increment: p; padding: clamp(20px, 2.6vw, 36px); border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 10px; }
.pillars li::before { content: "0" counter(p); font: 600 .74rem/1 var(--mono); color: var(--acc-t); }
.pillars p { color: var(--muted); }

/* contact */
.contact { background: var(--surface); border-radius: clamp(24px, 4vw, 56px) clamp(24px, 4vw, 56px) 0 0; }
.contact__grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.contact__grid > div { display: grid; gap: 22px; }
.bigphone { font: 800 clamp(1.4rem, 3.6vw, 3.2rem)/1 var(--display); letter-spacing: -.03em; color: var(--acc-t); white-space: nowrap; width: fit-content; background: linear-gradient(currentColor, currentColor) 0 100% / 0 3px no-repeat; transition: background-size .4s; padding-bottom: 8px; }
.bigphone:hover { background-size: 100% 3px; }
.cinfo { display: grid; gap: 0; border-top: 1px solid var(--line); }
.cinfo div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cinfo dt { font: 400 .74rem/1.6 var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.cinfo a { text-decoration: underline; text-decoration-color: var(--acc); text-underline-offset: 4px; }
.form { padding: clamp(20px, 3vw, 40px); border-radius: calc(var(--r) * 1.5); background: var(--bg); border: 1px solid var(--line); }
.form__body, .form__done { display: grid; gap: 16px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg legend { margin-bottom: 8px; }
.seg label { display: block; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: grid; place-items: center; min-height: 50px; padding: 0 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); cursor: pointer; text-transform: none; letter-spacing: 0; font: 500 .9rem/1.2 var(--body); color: var(--text); text-align: center; }
.seg input:checked + span { background: var(--text); color: var(--bg); border-color: var(--text); }
.seg input:focus-visible + span { outline: 2px solid var(--acc); outline-offset: 2px; }
.form__err { color: var(--heat); font-size: .9rem; }
.form__done p { color: var(--muted); }
.form__done pre { margin: 0; padding: 16px; border-radius: 12px; background: var(--surface-2); font: 400 .82rem/1.6 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; }
[hidden] { display: none !important; }

/* footer */
.ftr { background: var(--surface); border-top: 1px solid var(--line); padding: 24px var(--pad) calc(24px + env(safe-area-inset-bottom)); display: flex; flex-wrap: wrap; align-items: center; gap: 16px; color: var(--muted); font-size: .86rem; }
.ftr p { flex: 1; min-width: 200px; }
.ftr a { color: var(--text); font-weight: 600; }

/* dialog */
.pd { width: min(760px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 1px solid color-mix(in oklab, var(--c, var(--acc)) 45%, transparent); border-radius: 26px; background: var(--surface); color: var(--text); overflow: auto; }
.pd::backdrop { background: rgb(5 6 7 / .78); backdrop-filter: blur(10px); }
.pd[open] { animation: pop .35s cubic-bezier(.2,.9,.2,1); }
@keyframes pop { from { opacity: 0; transform: translateY(24px) scale(.96); } }
.pd__top { display: grid; grid-template-columns: auto 1fr; gap: clamp(16px, 3vw, 28px); align-items: end; padding: clamp(20px, 4vw, 36px); background: var(--c); color: var(--on-c); }
.pd__sym { font: 800 clamp(4rem, 13vw, 7rem)/.8 var(--display); letter-spacing: -.06em; }
.pd__top h3 { font-size: clamp(1.1rem, 2.6vw, 1.6rem); }
.pd__top p { font: 400 .78rem/1.3 var(--mono); margin-top: 6px; }
.pd__x { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgb(10 11 13 / .15); color: var(--on-c); font-size: 1.3rem; cursor: pointer; }
.pd__x:hover { background: rgb(10 11 13 / .3); }
.pd__body { padding: clamp(20px, 4vw, 36px); display: grid; gap: 20px; }
.pd__lead { font-size: 1.1em; }
.pd__list { display: grid; gap: 10px; }
.pd__list li { padding-left: 26px; position: relative; color: var(--text-2); }
.pd__list li::before { content: ""; position: absolute; left: 0; top: .5em; width: 12px; height: 12px; border-radius: 3px; background: var(--c); }
.pd__meta { display: grid; gap: 0; border-top: 1px solid var(--line); }
.pd__meta div { display: grid; grid-template-columns: 130px 1fr; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.pd__meta dt { font: 400 .72rem/1.7 var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }

/* reveal */
.rv { opacity: 0; transform: translateY(28px); transition: opacity .8s, transform .8s cubic-bezier(.2,.8,.2,1); transition-delay: var(--d, 0s); }
.rv.in { opacity: 1; transform: none; }

/* responsive */
@media (max-width: 1080px) {
  .nav { position: fixed; inset: 0; z-index: -1; flex-direction: column; justify-content: center; gap: 22px; padding: 0 var(--pad); background: var(--bg); font: 800 clamp(1.6rem, 7vw, 2.6rem)/1 var(--display); text-transform: uppercase; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; height: 100dvh; }
  .nav a { color: var(--text); }
  .nav.open { opacity: 1; visibility: visible; }
  .hdr:has(.nav.open) { mask: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .burger { display: block; }
}
@media (max-width: 860px) {
  .hero__in { grid-template-columns: 1fr; }
  .hero__tile { position: absolute; right: -18px; top: 84px; z-index: -1; }
  .bigtile { width: 140px; }
  .hero { padding-top: 280px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats li:nth-child(2) { border-right: 0; }
  .stats li:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .ptable { grid-template-columns: 1fr 1fr; }
  .thermo, .calc, .about, .contact__grid { grid-template-columns: 1fr; }
  .about > div { position: static; }
  .std li { grid-template-columns: 1fr; gap: 4px; }
  .hdr__call { display: none; }
}
@media (max-width: 420px) {
  .logo__name { display: none; }
  .cinfo div, .pd__meta div { grid-template-columns: 1fr; gap: 2px; }
  .thermo__tiles .el { width: calc(50% - 6px); }
}

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

/* ───────── motion layer ───────── */
.loader { position: fixed; inset: 0; z-index: 100; background: var(--bg); display: grid; place-items: center; pointer-events: none; animation: loaderOut .45s 1.6s forwards; }
.loader__tile { width: 110px; height: 110px; border-radius: 22px; background: var(--acc); color: var(--acc-ink); position: relative; animation: lin .7s cubic-bezier(.2,1.5,.3,1) both, lout .75s 1s cubic-bezier(.7,0,.2,1) forwards; }
.loader__tile span { position: absolute; inset: 0; display: grid; place-items: end start; padding: 0 0 12px 14px; font: 800 2.7rem/1 var(--display); animation: fadeOut .2s 1s forwards; }
.loader__tile i { position: absolute; top: 12px; right: 14px; font: 600 .8rem/1 var(--mono); }
@keyframes lin { from { transform: scale(0) rotate(-120deg); } }
@keyframes lout { to { transform: scale(40) rotate(20deg); border-radius: 0; } }
@keyframes fadeOut { to { opacity: 0; } }
@keyframes loaderOut { to { opacity: 0; visibility: hidden; } }

.ln { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.ln > span { display: block; animation: rise 1s cubic-bezier(.16,1,.3,1) both; animation-delay: calc(1.55s + var(--i, 0) * .1s); }
.ln:nth-child(2) { --i: 1; } .ln:nth-child(3) { --i: 2; }
@keyframes rise { from { transform: translateY(110%) rotate(4deg); } }
.ready .ln > span { animation-delay: 0s; }
.hdr, .hero .kicker, .hero__sub, .hero .hero__cta, .stats, .hero__tile { animation: up .9s cubic-bezier(.16,1,.3,1) both; }
.hdr { animation-name: down; animation-delay: 1.7s; }
.hero .kicker { animation-delay: 1.5s; } .hero__sub { animation-delay: 1.95s; } .hero .hero__cta { animation-delay: 2.05s; }
.stats { animation-delay: 2.2s; } .hero__tile { animation-name: tileIn; animation-delay: 1.75s; animation-duration: 1.2s; }
@keyframes up { from { opacity: 0; transform: translateY(30px); } }
@keyframes down { from { opacity: 0; transform: translateY(-30px); } }
@keyframes tileIn { from { opacity: 0; transform: translateY(120px) rotate(-30deg) scale(.6); } }

.hero__tile > .bigtile { --sy: 0; transform: translateY(calc(var(--sy) * -160px)) rotateX(var(--rx)) rotateY(var(--ry)) rotate(calc(4deg + var(--sy) * 50deg)); animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { translate: 0 -14px; } }
.bigtile::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(115deg, transparent 35%, rgb(255 255 255 / .7) 50%, transparent 65%) var(--gx, -100%) 0 / 250% 100% no-repeat; mix-blend-mode: soft-light; pointer-events: none; animation: glare 4.5s ease-in-out infinite; }
@keyframes glare { from { background-position: 180% 0; } to { background-position: -80% 0; } }

.cursor { position: fixed; top: -7px; left: -7px; width: 14px; height: 14px; border-radius: 50%; background: var(--acc); mix-blend-mode: difference; pointer-events: none; z-index: 200; will-change: transform; }

/* manifesto */
.mani { padding: clamp(64px, 9vw, 140px) var(--pad); }
.mani__text { font: 800 clamp(1.15rem, 2.7vw, 2.6rem)/1.25 var(--display); text-transform: uppercase; letter-spacing: -.02em; max-width: 22ch; max-width: min(100%, 1100px); }
.mani__text .w { opacity: .12; transition: opacity .35s, color .35s; }
.mani__text .w.on { opacity: 1; }
.mani__text .w.hot { color: var(--acc-t); }

/* heading word reveal */
h2 .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
h2 .w > span { display: inline-block; transform: translateY(110%); transition: transform .9s cubic-bezier(.16,1,.3,1); transition-delay: calc(var(--i) * 55ms); }
.rv.in h2 .w > span { transform: none; }

/* tiles */
.ptable { perspective: 1400px; }
.el:not(.in) { opacity: 0; }
.el.in { animation: flip 1s cubic-bezier(.16,1,.3,1) var(--d, 0s) backwards; }
@keyframes flip { from { opacity: 0; transform: rotateX(-85deg) translateY(60px) scale(.8); } }
.el::before { content: ""; position: absolute; inset: 0; background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), rgb(255 255 255 / .35), transparent 60%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.el:hover::before { opacity: 1; }
.el:hover .el__s { animation: wob .5s; }
@keyframes wob { 30% { transform: scale(1.12) rotate(-4deg); } 60% { transform: scale(.96) rotate(2deg); } }

.thermo { position: relative; overflow: hidden; }
.thermo > canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.thermo > :not(canvas) { position: relative; }
.thermo__tiles .el { opacity: 1; animation: flip .6s cubic-bezier(.16,1,.3,1) backwards; }
.thermo__tiles .el:nth-child(2) { animation-delay: .08s; }

.calc__out { position: relative; overflow: hidden; }
.calc__out::before { content: ""; position: absolute; width: 60%; aspect-ratio: 1; right: -20%; top: -30%; border-radius: 50%; background: radial-gradient(var(--acc), transparent 65%); opacity: .14; animation: pulse 5s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.35); opacity: .24; } }

.pillars li { transition: transform .4s cubic-bezier(.16,1,.3,1), border-color .3s, opacity .8s; }
.pillars li.in:hover { transform: translateX(-10px); border-color: var(--acc); }
.bigphone { font-variant-numeric: tabular-nums; }

@media (max-width: 860px) {
  .hero__tile > .bigtile { transform: translateY(calc(var(--sy) * -80px)) rotate(calc(12deg + var(--sy) * 40deg)); }
}
@media (prefers-reduced-motion: reduce) {
  .loader, .cursor { display: none; }
  .el:not(.in), .mani__text .w { opacity: 1; }
  h2 .w > span { transform: none; }
}

/* читаемость заголовков */
h1, h2, .mani__text { letter-spacing: 0; word-spacing: .16em; text-transform: var(--tt, uppercase); }
.thermo__tiles .el { width: clamp(168px, 18vw, 200px); }
.thermo__tiles .el__type { font-size: .72rem; overflow-wrap: anywhere; }
@media (max-width: 420px) { .thermo__tiles .el { width: calc(50% - 6px); } }

/* выбор языка */
select.langsel { width: auto; min-height: 44px; padding: 0 34px 0 16px; border-radius: 999px; background: color-mix(in oklab, var(--text) 6%, transparent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23eef0ea' stroke-width='1.5'/%3E%3C/svg%3E") right 14px center / 10px no-repeat; -webkit-appearance: none; appearance: none; font: 600 .86rem/1 var(--body); cursor: pointer; }
select.langsel option { background: var(--surface); color: var(--text); }
:lang(zh) :is(h1, h2, .mani__text) { word-spacing: 0; letter-spacing: .02em; }
:lang(zh) h2 .w { padding-bottom: .15em; }

/* для кого */
.aud { padding-top: 0; }
.aud__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(10px, 1.4vw, 20px); }
.aud__card { position: relative; display: grid; gap: 22px; align-content: start; padding: clamp(22px, 3.4vw, 52px); border-radius: calc(var(--r) * 1.6); border: 1px solid color-mix(in oklab, var(--c) 35%, transparent); background: linear-gradient(155deg, color-mix(in oklab, var(--c) 13%, var(--surface)), var(--surface) 62%); overflow: hidden; transition: opacity .8s, transform .8s cubic-bezier(.2,.8,.2,1), border-color .3s; }
.aud__card:nth-child(2) { --d: .12s; }
.aud__card:hover { border-color: var(--c); }
.aud__n { position: absolute; right: clamp(14px, 2.4vw, 36px); top: clamp(6px, 1vw, 16px); font: 800 clamp(5rem, 13vw, 11rem)/1 var(--display); color: var(--c); opacity: .1; pointer-events: none; }
.aud__card h3 { font-size: clamp(1.25rem, 2.3vw, 2rem); line-height: 1.12; text-transform: uppercase; max-width: 16ch; }
.aud__card ul { display: grid; gap: 12px; }
.aud__card li { position: relative; padding-left: 28px; color: var(--text-2); }
.aud__card li::before { content: ""; position: absolute; left: 0; top: .5em; width: 12px; height: 12px; border-radius: 3px; background: var(--c); }
.aud__els { display: grid; gap: 12px; padding-top: 20px; border-top: 1px solid var(--line); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid color-mix(in oklab, var(--c) 45%, transparent); background: none; cursor: pointer; font: 600 .82rem/1 var(--mono); color: var(--c); transition: background .2s, color .2s, transform .2s; }
.chips button:hover { background: var(--c); color: var(--on-c); transform: translateY(-2px); }

/* партнёры */
.plogos { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: clamp(8px, 1vw, 14px); }
.plogo { display: grid; place-items: center; min-height: 120px; padding: 22px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); font: 800 1.05rem/1.2 var(--display); text-align: center; text-transform: uppercase; transition: border-color .3s, transform .3s; }
.plogo:hover { border-color: var(--acc); transform: translateY(-4px); }
.plogo img { max-width: 100%; max-height: 64px; object-fit: contain; filter: grayscale(1) brightness(1.6); transition: filter .3s; }
.plogo:hover img { filter: none; }
@media (max-width: 860px) { .aud__grid { grid-template-columns: 1fr; } }

/* ───────── дневной режим ───────── */
:root[data-theme="light"] {
  --bg: #f2f3ee; --surface: #ffffff; --surface-2: #e8eae3; --line: rgb(12 16 8 / .13);
  --text: #101310; --text-2: #39403b; --muted: #5a615b;
  --acc-t: #4a6400; --plast: #5a7a00; --on-c: #ffffff;
  --frost: #0b83a8; --multi: #6a4fd8; --air: #3b4146; --heat: #d2541a;
  color-scheme: light;
}
:root[data-theme="light"] select.langsel { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23101310' stroke-width='1.5'/%3E%3C/svg%3E"); }
:root[data-theme="light"] .pd::backdrop { background: rgb(240 242 236 / .8); }
:root[data-theme="light"] .pd__x { background: rgb(255 255 255 / .25); }
:root[data-theme="light"] .plogo img { filter: grayscale(1); }
:root[data-theme="light"] .cursor { mix-blend-mode: normal; background: var(--acc-t); opacity: .85; }
:root[data-theme="light"] :is(.calc__in, .calc__out, .pillars li, .form, .aud__card, .thermo, .el) { box-shadow: 0 10px 30px -18px rgb(20 30 10 / .25); }

.theme { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: color-mix(in oklab, var(--text) 6%, transparent); cursor: pointer; display: grid; place-items: center; transition: transform .4s cubic-bezier(.2,.8,.2,1), border-color .2s; }
.theme:hover { border-color: var(--acc-t); transform: rotate(40deg); }
.theme svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme .sun { display: none; }
:root[data-theme="light"] .theme .sun { display: block; }
:root[data-theme="light"] .theme .moon { display: none; }
body, .hdr, .contact, .ftr { transition: background-color .5s, color .5s; }
