@font-face { font-family: Bricolage; font-weight: 200 800; font-display: swap; src: url(assets/fonts/bricolage-grotesque-latin-wght-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: Bricolage; font-weight: 200 800; font-display: swap; src: url(assets/fonts/bricolage-grotesque-latin-ext-wght-normal.woff2) format("woff2"); unicode-range: U+0100-02AF, U+1E00-1EFF; }
@font-face { font-family: Geist; font-weight: 100 900; font-display: swap; src: url(assets/fonts/geist-latin-wght-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: Geist; font-weight: 100 900; font-display: swap; src: url(assets/fonts/geist-latin-ext-wght-normal.woff2) format("woff2"); unicode-range: U+0100-02AF, U+1E00-1EFF; }

:root {
  --accent: #F2A71B;
  --on-accent: #07140F;
  --radius-s: 12px;
  --radius-m: 20px;
  --radius-l: 28px;
  --head: Bricolage, "Segoe UI", system-ui, sans-serif;
  --body: Geist, "Segoe UI", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: linear(0, .32 8%, .72 18%, 1.03 30%, 1.09 38%, 1.04 52%, .99 68%, 1);
  --gutter: clamp(16px, 4vw, 48px);
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #050F0C;
  --text: #F2EEE3;
  --muted: #B2BEB6;
  --glass: rgba(16, 34, 29, .62);
  --glass-strong: rgba(10, 24, 20, .88);
  --solid: #0C1D18;
  --line: rgba(242, 238, 227, .14);
  --error: #FF9C86;
  --veil: rgba(5, 15, 12, .5);
  --focus: var(--accent);
  --accent-text: var(--accent);
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #F6F1E6;
  --text: #0C1F1A;
  --muted: #47564F;
  --glass: rgba(255, 253, 247, .68);
  --glass-strong: rgba(255, 253, 247, .94);
  --solid: #FFFDF7;
  --line: rgba(12, 31, 26, .14);
  --error: #B4301A;
  --veil: rgba(246, 241, 230, .55);
  --focus: #0C1F1A;
  --accent-text: color-mix(in srgb, var(--accent) 42%, #0C1F1A);
}

* { box-sizing: border-box; }
html { background: radial-gradient(80% 70% at 75% 30%, color-mix(in srgb, var(--accent) 18%, var(--bg)), var(--bg)) fixed; -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body { margin: 0; min-height: 100dvh; display: flex; flex-direction: column; overflow-x: clip; color: var(--text); font: 400 1rem/1.6 var(--body); -webkit-font-smoothing: antialiased; }
html:not(.ready) body > :not(.aurora):not(noscript) { opacity: 0; animation: failsafe 0s 3s forwards; }
@keyframes failsafe { to { opacity: 1; } }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--head); font-weight: 700; line-height: 1.04; letter-spacing: -.02em; margin: 0; text-wrap: balance; }
h1:focus, main:focus, #lab:focus { outline: none; }
p { margin: 0; }
button, input, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.nojs { position: fixed; inset: 40% 16px auto; text-align: center; }

.skip { position: fixed; left: 12px; top: -80px; z-index: 90; padding: 8px 14px; border-radius: var(--radius-s); background: var(--accent); color: var(--on-accent); font-weight: 600; transition: top .15s; }
.skip:focus { top: 12px; }

/* Фон */
.aurora { position: fixed; inset: 0; z-index: -3; width: 100%; height: 100%; opacity: 0; transition: opacity 1.2s; }
.aurora.on { opacity: 1; }
.grain { position: fixed; inset: 0; z-index: -1; background: url(assets/grain.svg); opacity: .09; pointer-events: none; }
:root[data-theme="light"] .grain { opacity: .05; }
body::before { content: ""; position: fixed; inset: 0; z-index: -2; background: linear-gradient(100deg, var(--veil) 0, transparent 70%); pointer-events: none; }
.progress { position: fixed; inset: 0 0 auto; z-index: 60; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; }
@supports (animation-timeline: scroll()) {
  .progress { animation: grow linear both; animation-timeline: scroll(root); }
  @keyframes grow { to { transform: scaleX(1); } }
}

/* Шапка */
.bar { position: sticky; top: 12px; z-index: 40; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; margin: 12px var(--gutter) 0; padding: 7px 8px 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--glass-strong); }
@supports (backdrop-filter: blur(1px)) { .bar { background: var(--glass); backdrop-filter: blur(18px) saturate(1.3); } }
.brand { display: flex; align-items: center; gap: 9px; justify-self: start; font: 700 1.08rem var(--head); letter-spacing: -.01em; text-decoration: none; white-space: nowrap; }
.dock { position: relative; display: flex; }
.dock a { position: relative; z-index: 1; display: flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; font-size: .94rem; font-weight: 500; color: var(--muted); text-decoration: none; transition: color .25s; }
.dock a:hover, .dock a[aria-current="page"] { color: var(--text); }
.dock__pill, .seg__pill { position: absolute; left: 0; top: 0; width: 0; height: 0; border-radius: 999px; background: color-mix(in srgb, var(--text) 12%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--text) 62%, transparent); transition: transform .5s var(--spring), width .4s var(--ease); }
.tools { display: flex; align-items: center; justify-content: flex-end; gap: 6px; justify-self: end; }
.who { max-width: 14ch; padding: 0 6px; overflow: hidden; font-weight: 600; font-size: .92rem; text-overflow: ellipsis; white-space: nowrap; }

.seg { position: relative; display: inline-flex; }
.seg > button, .seg > a { position: relative; z-index: 1; min-width: 38px; min-height: 40px; padding: 0 9px; border: 0; border-radius: 999px; background: none; color: var(--muted); font-size: .84rem; font-weight: 600; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; transition: color .25s; }
.seg > button:hover, .seg > a:hover, .seg > [aria-pressed="true"], .seg > [aria-current="page"] { color: var(--text); }
.seg--soft { padding: 4px; border: 1px solid var(--line); border-radius: 999px; }
.seg--soft > button, .seg--soft > a { padding: 0 16px; font-size: .92rem; }
.seg--full { display: flex; }
.seg--full > a { flex: 1; }

.icon { display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 8px; border: 0; border-radius: 999px; background: none; color: var(--muted); font-size: .76rem; font-weight: 600; cursor: pointer; transition: color .2s, background-color .2s; }
.icon:hover { color: var(--text); background: color-mix(in srgb, var(--text) 10%, transparent); }
.icon__sun { width: 16px; height: 16px; border-radius: 50%; background: linear-gradient(90deg, currentColor 50%, transparent 50%); border: 2px solid currentColor; transition: rotate .5s var(--spring); }
:root[data-theme="light"] .icon__sun { rotate: 180deg; }

/* Кнопки */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; overflow: hidden; border: 1px solid transparent; border-radius: 999px; font-weight: 600; text-decoration: none; white-space: nowrap; cursor: pointer; transition: scale .3s var(--spring), translate .4s var(--spring), background-color .2s, border-color .2s, box-shadow .3s; }
.btn:active { scale: .95; }
.btn--main { background: var(--accent); color: var(--on-accent); box-shadow: 0 8px 30px -10px var(--accent); }
.btn--quiet { background: color-mix(in srgb, var(--text) 8%, transparent); border-color: var(--line); color: var(--text); }
.btn--lg { min-height: 58px; padding: 0 30px; font-size: 1.06rem; }
.btn--sm { min-height: 40px; padding: 0 15px; font-size: .9rem; }
.btn--full { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .34) 50%, transparent 62%); translate: -110% 0; pointer-events: none; }
@media (hover: hover) {
  .btn:hover { scale: 1.03; }
  .btn:hover::after { translate: 110% 0; transition: translate .7s var(--ease); }
  .btn--quiet:hover { border-color: var(--accent); }
}
kbd { padding: 1px 7px; border: 1px solid var(--line); border-radius: 6px; font: 500 .78rem var(--body); color: var(--muted); }
.ripple { position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .4); transform: scale(0); pointer-events: none; animation: ripple .6s var(--ease) forwards; }
@keyframes ripple { to { transform: scale(1); opacity: 0; } }
.spark { position: fixed; z-index: 95; width: 6px; height: 6px; border-radius: 50%; pointer-events: none; }

/* Первый экран */
main { flex: 1; width: 100%; }
.hero { position: relative; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 22px; min-height: calc(100dvh - 76px); padding: 40px var(--gutter) 96px; }
.tag { display: inline-flex; align-items: center; gap: 9px; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--glass); font-size: .88rem; font-weight: 500; }
.tag i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 var(--accent); } 70%, 100% { box-shadow: 0 0 0 8px transparent; } }
.hero h1 { max-width: 12ch; font-size: clamp(3.1rem, 10.5vw, 10rem); font-weight: 800; line-height: .96; letter-spacing: -.035em; }
.word { display: inline-block; overflow: clip; overflow-clip-margin: .16em; padding-bottom: .1em; margin-bottom: -.1em; vertical-align: top; }
.word > span { display: inline-block; animation: wordup .95s var(--ease) both; animation-delay: calc(var(--i) * 90ms + 80ms); }
@keyframes wordup { from { transform: translateY(105%) rotate(5deg); } }
.word:last-child > span { background: linear-gradient(100deg, var(--accent-text), color-mix(in srgb, var(--accent-text) 55%, var(--text))); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { max-width: 54ch; font-size: clamp(1.05rem, 1.7vw, 1.28rem); color: var(--muted); animation: fadeup .9s .35s var(--ease) both; }
.hero .row { animation: fadeup .9s .5s var(--ease) both; }
@keyframes fadeup { from { opacity: 0; transform: translateY(18px); } }
.row { display: flex; flex-wrap: wrap; gap: 12px; }
.row--end { justify-content: flex-end; }
.seal { position: absolute; right: var(--gutter); bottom: 70px; width: clamp(120px, 15vw, 210px); }
.seal text { font: 600 16.4px var(--body); letter-spacing: .13em; fill: var(--text); }
.seal__spin { transform-origin: 100px 100px; animation: spin 26s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.hero__scroll { position: absolute; left: var(--gutter); bottom: 26px; display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .84rem; }
.hero__scroll i { position: relative; width: 52px; height: 1px; overflow: hidden; background: var(--line); }
.hero__scroll i::after { content: ""; position: absolute; inset: 0; background: var(--accent); animation: slide 2.2s var(--ease) infinite; }
@keyframes slide { from { translate: -100% 0; } to { translate: 100% 0; } }

/* Бегущая строка */
.marquee { overflow: hidden; padding: 20px 0; border-block: 1px solid var(--line); background: var(--glass); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; width: max-content; animation: run 38s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes run { to { transform: translateX(-50%); } }
.marquee span { padding-inline: 26px; font: 600 clamp(1.3rem, 3vw, 2.2rem) var(--head); letter-spacing: -.01em; white-space: nowrap; }
.marquee span::after { content: "✦"; margin-left: 52px; color: var(--accent); font-size: .7em; vertical-align: middle; }

/* Разделы */
.wrap { width: 100%; max-width: 1320px; margin-inline: auto; padding: clamp(64px, 11vw, 140px) var(--gutter) 0; }
.wrap--page { padding-top: clamp(40px, 7vw, 84px); padding-bottom: 40px; }
.big { max-width: 17ch; font-size: clamp(2.3rem, 6.5vw, 5.4rem); font-weight: 800; }
.sub { max-width: 58ch; margin-top: 16px; color: var(--muted); font-size: 1.1rem; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 42%; }
    @keyframes reveal { from { opacity: 0; transform: translateY(46px) scale(.97); } }
  }
}

/* Лаборатория */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; margin-top: 44px; }
.cell { position: relative; grid-column: span 4; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; min-height: 250px; padding: 24px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-l); background: var(--glass); }
.cell--wide { grid-column: span 8; grid-row: span 2; }
.cell h3 { font-size: 1.42rem; }
.cell p { color: var(--muted); }
.cell > .btn, .cell > .swatches, .cell > .hello { margin-top: auto; }
.spot::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%); opacity: 0; pointer-events: none; transition: opacity .3s; }
.spot:hover::before { opacity: 1; }
.spot > * { position: relative; }

.stage { flex: 1; display: grid; place-items: center; width: 100%; min-height: 320px; margin-top: 8px; overflow: hidden; border-radius: var(--radius-m); background: color-mix(in srgb, var(--text) 5%, transparent); }
.device { container-type: inline-size; width: 92%; height: 292px; overflow: hidden; border: 5px solid color-mix(in srgb, var(--text) 26%, transparent); border-radius: 18px; background: var(--bg); transition: width .75s var(--spring), border-radius .4s; }
.device[data-size="tablet"] { width: min(60%, 380px); }
.device[data-size="phone"] { width: 164px; border-radius: 26px; }
.mini { display: grid; gap: 10px; padding: 12px; }
.mini i, .mini b, .mini u, .mini span { display: block; border-radius: 6px; background: color-mix(in srgb, var(--text) 15%, transparent); }
.mini__nav { display: flex; align-items: center; gap: 7px; }
.mini__nav b { width: 42px; height: 12px; margin-right: auto; background: var(--accent); }
.mini__nav i { width: 28px; height: 8px; }
.mini__hero { display: grid; grid-template-columns: 1.3fr 1fr; gap: 12px; align-items: center; }
.mini__hero div { display: grid; gap: 8px; }
.mini__hero b { width: 92%; height: 26px; }
.mini__hero i { width: 70%; height: 9px; }
.mini__hero u { width: 76px; height: 22px; border-radius: 99px; background: var(--accent); }
.mini__hero > span { height: 112px; border-radius: 12px; background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 22%, var(--bg))); }
.mini__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mini__grid i { height: 62px; border-radius: 10px; }
@container (max-width: 400px) {
  .mini__nav i:nth-of-type(n+2) { display: none; }
  .mini__grid { grid-template-columns: repeat(2, 1fr); }
  .mini__grid i:last-child { display: none; }
  .mini__hero > span { height: 90px; }
}
@container (max-width: 240px) {
  .mini__hero { grid-template-columns: 1fr; }
  .mini__hero > span { order: -1; height: 76px; }
  .mini__grid { grid-template-columns: 1fr; }
}

.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatches button { width: 44px; height: 44px; border: 3px solid transparent; border-radius: 50%; background: var(--swatch) padding-box; box-shadow: 0 0 0 1px var(--line); cursor: pointer; transition: scale .35s var(--spring); }
.swatches button:hover { scale: 1.12; }
.swatches button[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--text); scale: 1.08; }

.stats { display: grid; gap: 6px; width: 100%; margin: auto 0 0; }
.stats div { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding-top: 6px; border-top: 1px solid var(--line); }
.stats dt { color: var(--muted); font-size: .86rem; }
.stats dd { margin: 0; font: 700 1.3rem var(--head); font-variant-numeric: tabular-nums; white-space: nowrap; }

.hello { position: relative; width: 100%; height: 72px; overflow: hidden; }
.hello span { position: absolute; left: 0; bottom: 0; font: 800 3.6rem/1 var(--head); color: var(--accent-text); opacity: 0; animation: hello 7.5s infinite var(--ease); }
.hello span:nth-child(2) { animation-delay: 2.5s; }
.hello span:nth-child(3) { animation-delay: 5s; }
@keyframes hello { 0% { opacity: 0; transform: translateY(70%); } 6%, 28% { opacity: 1; transform: none; } 34%, 100% { opacity: 0; transform: translateY(-70%); } }

/* До и после */
.compare { --pos: 50%; position: relative; height: clamp(320px, 46vw, 520px); margin-top: 40px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-l); }
.old, .new { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 24px; text-align: center; }
.old { background: #C8C8D8; color: #0000A0; font-family: "Times New Roman", Times, serif; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.old b { font-size: clamp(1.2rem, 3vw, 2.2rem); color: #C00000; }
.old u { font-size: 1rem; }
.old table { width: 60%; border: 3px ridge #888; border-collapse: separate; border-spacing: 3px; background: #E8E8F0; }
.old td { height: clamp(36px, 7vw, 80px); border: 2px inset #999; background: #FFFFE0; }
.old button { padding: 3px 14px; border: 3px outset #DDD; background: #D4D0C8; color: #000; font: 700 .9rem Arial, sans-serif; }
.old small { font-family: "Courier New", monospace; color: #000; }
.new { background: radial-gradient(90% 120% at 80% 10%, color-mix(in srgb, var(--accent) 62%, #07140F), #07140F 70%); color: #F2EEE3; clip-path: inset(0 0 0 var(--pos)); }
.new b { font: 800 clamp(2rem, 6.4vw, 5rem)/1 var(--head); letter-spacing: -.03em; }
.compare__tag { position: absolute; top: 14px; z-index: 2; padding: 4px 12px; border-radius: 999px; background: rgba(0, 0, 0, .66); color: #fff; font-size: .82rem; font-weight: 600; pointer-events: none; }
.compare__tag--l { left: 14px; }
.compare__tag--r { right: 14px; }
.compare__knob { position: absolute; top: 0; bottom: 0; left: var(--pos); z-index: 2; width: 2px; background: #fff; pointer-events: none; }
.compare__knob::after { content: "‹ ›"; position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: #fff; color: #07140F; font-weight: 700; letter-spacing: .08em; transform: translate(-50%, -50%); box-shadow: 0 6px 24px rgba(0, 0, 0, .4); }
.compare input { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.compare:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 3px; }

/* Этапы: карточки наезжают друг на друга при прокрутке */
.stack { list-style: none; display: grid; gap: 18px; margin: 44px 0 0; padding: 0; }
.stack li { position: sticky; top: calc(96px + var(--n) * 14px); display: flex; align-items: center; gap: clamp(18px, 4vw, 56px); min-height: 220px; padding: clamp(22px, 4vw, 44px); border: 1px solid var(--line); border-radius: var(--radius-l); background: var(--solid); }
.stack li:nth-child(1) { --n: 0; }
.stack li:nth-child(2) { --n: 1; }
.stack li:nth-child(3) { --n: 2; }
.stack li:nth-child(4) { --n: 3; }
.stack span { font: 800 clamp(3rem, 9vw, 7.4rem)/1 var(--head); color: var(--accent-text); }
.stack h3 { font-size: clamp(1.5rem, 3.4vw, 2.5rem); }
.stack p { max-width: 46ch; margin-top: 8px; color: var(--muted); font-size: 1.08rem; }

.cta { display: flex; flex-direction: column; align-items: center; gap: 28px; padding-bottom: 72px; text-align: center; }
.cta h2 { max-width: 12ch; font-size: clamp(3rem, 11vw, 9.4rem); font-weight: 800; letter-spacing: -.035em; }

/* Галерея */
#filters { margin-top: 26px; }
.gallery { list-style: none; display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin: 26px 0 0; padding: 0; }
.gallery li { grid-column: span 2; perspective: 900px; }
.gallery li.wide { grid-column: span 3; }
.shot { position: relative; display: block; width: 100%; height: 100%; padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--bg); cursor: zoom-in; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .3s var(--ease), box-shadow .3s, scale .3s var(--spring); }
.shot:hover { box-shadow: 0 24px 50px -24px var(--accent); }
.shot:active { scale: .98; }
.shot img { width: 100%; height: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: scale .8s var(--ease); }
.shot:hover img { scale: 1.05; }
.shot span { position: absolute; left: 10px; top: 10px; padding: 4px 12px; border-radius: 999px; background: rgba(5, 15, 12, .74); color: #F2EEE3; font-size: .88rem; font-weight: 600; }

/* Поддержка и формы */
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 18px; align-items: start; margin-top: 34px; }
.faq { display: grid; gap: 10px; }
details { border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--glass); interpolate-size: allow-keywords; transition: border-color .25s; }
details[open] { border-color: var(--accent); }
summary { display: flex; justify-content: space-between; gap: 14px; padding: 16px 20px; font-weight: 600; cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--accent-text); font-size: 1.4rem; line-height: 1; transition: rotate .4s var(--spring); }
details[open] summary::after { rotate: 45deg; }
details::details-content { height: 0; overflow: hidden; transition: height .4s var(--ease), content-visibility .4s allow-discrete; }
details[open]::details-content { height: auto; }
details p { padding: 0 20px 18px; color: var(--muted); }

.card { position: relative; display: grid; gap: 14px; padding: clamp(20px, 3vw, 30px); overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-l); background: var(--glass); }
.card h2 { font-size: 1.7rem; }
form { display: grid; gap: 14px; }
form.shake { animation: shake .38s; }
@keyframes shake { 20%, 60% { transform: translateX(-7px); } 40%, 80% { transform: translateX(7px); } }
.field { display: grid; gap: 5px; }
label { font-weight: 600; font-size: .92rem; }
input:not([type="range"]), textarea { width: 100%; min-height: 48px; padding: 11px 14px; border: 1px solid color-mix(in srgb, var(--text) 40%, transparent); border-radius: var(--radius-s); background: color-mix(in srgb, var(--bg) 42%, transparent); transition: border-color .2s, box-shadow .2s; }
textarea { resize: vertical; }
input:focus, textarea:focus { outline: 2px solid transparent; border-color: var(--focus); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 28%, transparent); }
[aria-invalid="true"] { border-color: var(--error) !important; }
.pass { position: relative; }
.pass input { padding-right: 84px; }
.pass__eye { position: absolute; right: 6px; top: 6px; bottom: 6px; padding: 0 12px; border: 0; border-radius: 9px; background: none; color: var(--text); font-size: .84rem; font-weight: 600; cursor: pointer; }
.pass__eye:hover { background: color-mix(in srgb, var(--text) 10%, transparent); }
.hint, .note { color: var(--muted); font-size: .86rem; }
.error { color: var(--error); font-size: .88rem; font-weight: 600; }
.error:empty { display: none; }
.meter { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-top: 4px; }
.meter i { height: 4px; border-radius: 2px; background: var(--line); transition: background-color .3s; }
.meter[data-level="1"] i:nth-child(-n+1), .meter[data-level="2"] i:nth-child(-n+2), .meter[data-level="3"] i { background: var(--accent); }

.auth { display: grid; grid-template-columns: 1fr 1fr; max-width: 960px; min-height: 560px; margin-inline: auto; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-l); background: var(--glass); }
.auth__art { display: flex; flex-direction: column; justify-content: flex-end; gap: 18px; padding: 34px; background: radial-gradient(120% 90% at 20% 0%, color-mix(in srgb, var(--accent) 70%, #07140F), #07140F 74%); color: #F2EEE3; }
.auth__art img { animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { translate: 0 -10px; } }
.auth__art p { font: 800 clamp(1.8rem, 3.6vw, 2.9rem)/1.02 var(--head); letter-spacing: -.02em; }
.auth__main { display: grid; align-content: start; gap: 20px; padding: clamp(20px, 4vw, 38px); }

.foot { padding: 52px var(--gutter) 22px; color: var(--muted); font-size: .86rem; text-align: center; }

/* Водяной знак фирмы */
.mark { position: fixed; right: 14px; bottom: 14px; z-index: 30; display: flex; align-items: center; gap: 7px; padding: 5px 12px 5px 8px; border: 1px solid var(--line); border-radius: 999px; background: var(--glass-strong); font-size: .78rem; pointer-events: none; user-select: none; }
.mark b { color: var(--accent); font-weight: 600; }
:root[data-theme="light"] .mark b { color: var(--text); }

/* Окна */
dialog { color: var(--text); border: 1px solid var(--line); background: var(--glass-strong); }
dialog::backdrop { background: rgba(3, 8, 7, .72); }
.lightbox { width: min(1000px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 12px; overflow: auto; border-radius: var(--radius-l); }
.lightbox figure { margin: 0; }
.lightbox img { width: 100%; max-height: calc(100dvh - 150px); object-fit: contain; border-radius: var(--radius-m); }
.lightbox figcaption { padding: 10px 4px 8px; font: 700 1.14rem var(--head); }
.palette { width: min(560px, calc(100vw - 24px)); margin-top: 14vh; padding: 0; overflow: hidden; border-radius: var(--radius-m); }
.palette[open] { animation: pop .3s var(--spring); }
@keyframes pop { from { opacity: 0; scale: .95; } }
.palette input { min-height: 58px; padding-inline: 20px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none; font-size: 1.05rem; box-shadow: none !important; }
.palette[open] { display: flex; flex-direction: column; max-height: calc(86vh - 16px); }
.palette input:focus { border-bottom-color: var(--focus); }
.palette ul { list-style: none; flex: 1; min-height: 0; max-height: 340px; margin: 0; padding: 6px; overflow: auto; }
.palette li { padding: 10px 14px; border-radius: 10px; cursor: pointer; }
.palette li[aria-selected="true"] { background: var(--accent); color: var(--on-accent); }
.palette__empty { padding: 18px 20px; color: var(--muted); }

.toast { position: fixed; left: 16px; right: 16px; bottom: 58px; z-index: 80; width: fit-content; margin-inline: auto; padding: 11px 20px; overflow-wrap: anywhere; border-radius: 22px; background: var(--text); color: var(--bg); font-weight: 600; opacity: 0; pointer-events: none; transform: translateY(16px) scale(.96); transition: opacity .25s, transform .45s var(--spring); }
.toast.show { opacity: 1; transform: none; }

/* Переходы между страницами */
html[data-vt="page"] main { view-transition-name: page; }
::view-transition-old(page) { animation: pageout .26s var(--ease) both; }
::view-transition-new(page) { animation: pagein .5s var(--ease) both; }
@keyframes pageout { to { opacity: 0; transform: translateY(-16px) scale(.985); filter: blur(5px); } }
@keyframes pagein { from { opacity: 0; transform: translateY(26px) scale(.985); filter: blur(7px); } }
html[data-vt="theme"]::view-transition-old(root), html[data-vt="theme"]::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
html[data-vt="theme"]::view-transition-new(root) { z-index: 2; }
::view-transition-group(*) { animation-duration: .5s; animation-timing-function: var(--ease); }

@media (max-width: 1020px) {
  .bar { grid-template-columns: auto 1fr auto; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .cell, .cell--wide { grid-column: span 1; grid-row: auto; }
  .cell--wide { grid-column: span 2; }
  .split { grid-template-columns: 1fr; }
  .icon--cmd { display: none; }
}

/* На телефоне вкладки уезжают в нижнюю панель */
@media (max-width: 760px) {
  .bar { grid-template-columns: auto 1fr; margin-inline: 12px; padding-left: 10px; background: var(--glass-strong); backdrop-filter: none; }
  html { scroll-padding-bottom: 120px; }
  .brand span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .who { display: none; }
  .hide-sm { display: none; }
  .tools { gap: 2px; }
  .dock { position: fixed; left: 50%; bottom: 10px; z-index: 50; translate: -50% 0; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--glass-strong); box-shadow: 0 10px 30px rgba(0, 0, 0, .4); }
  .dock a { padding: 0 14px; font-size: .9rem; }
  .mark { right: 10px; bottom: 66px; padding: 3px 9px 3px 6px; font-size: .68rem; white-space: nowrap; }
  .toast { bottom: 108px; }
  .foot { padding-bottom: 116px; }
  .hero { min-height: calc(100dvh - 90px); padding-bottom: 128px; }
  .seal { right: 14px; bottom: 112px; width: 92px; opacity: .85; }
  .hero__scroll { display: none; }
  .bento { grid-template-columns: 1fr; }
  .cell, .cell--wide { grid-column: span 1; }
  .cell { min-height: 0; }
  .gallery { grid-template-columns: 1fr; }
  .gallery li, .gallery li.wide { grid-column: auto; }
  .auth { grid-template-columns: 1fr; min-height: 0; }
  .auth__art { display: none; }
  .stack li { top: calc(84px + var(--n) * 10px); min-height: 160px; }
  .seg--soft > button, .seg--soft > a { padding: 0 12px; }
}

@media (max-width: 350px) {
  .tools .icon { display: none; }
  .tools { min-width: 0; }
}

@media (max-height: 600px) {
  .stack li { position: static; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; animation-delay: 0ms !important; transition-duration: .01ms !important; }
  .marquee__track { animation: none; }
  .hello span { opacity: 0; animation: none; }
  .hello span:first-child { opacity: 1; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}
