/* Общая система нового дизайна: монохром, шапка, подвал, кнопки, появление, глитч, переходы.
   Главная добавляет home.css, внутренние страницы — page.css. Старый styles.css больше не нужен. */

:root {
  --dark: #0d0e0f;
  --dark-2: #161718;
  --line-d: rgba(255, 255, 255, .13);
  --text-d: rgba(255, 255, 255, .68);
  --mute-d: rgba(255, 255, 255, .45);
  --paper: #f2f2f0;
  --white: #fff;
  --ink: #0f0f10;
  --text: #3b3c3e;
  --muted: #66686c; /* 5:1 на --paper (было 4,06 — ниже AA для мелкого текста) */
  --line: #d9d9d6;
  --serif: "Source Serif 4", "Source Serif Fallback", Georgia, "Times New Roman", serif;
  --sans: "Golos Text", "Golos Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Consolas, monospace;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --max: 1240px;
  --gut: 40px;
  --top-h: 76px;
  interpolate-size: allow-keywords;
}

* { box-sizing: border-box; }
html { background: var(--dark); scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; min-width: 320px; overflow-x: hidden; font-family: var(--sans); color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, p { margin-top: 0; overflow-wrap: break-word; }
p { text-wrap: pretty; }
button { font: inherit; }
::selection { background: var(--ink); color: #fff; }
.dark ::selection { background: #fff; color: var(--ink); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }
.dark { background: var(--dark); color: #fff; }
.light { background: var(--paper); }
.white { background: var(--white); }
.serif { font-family: var(--serif); font-weight: 400; letter-spacing: -.015em; }
.eyebrow { margin: 0; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.dark .eyebrow { color: var(--mute-d); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 14px; background: #fff; color: var(--ink); }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

/* ——— зерно и прогресс ——— */
.grain { position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .06; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 1.4 -.2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.progress { position: fixed; left: 0; top: 0; z-index: 95; width: 100%; height: 2px; background: #fff; mix-blend-mode: difference; transform: scaleX(0); transform-origin: left; }

/* ——— шапка ——— */
.top { position: fixed; inset: 0 0 auto; z-index: 50; color: #fff; background: rgba(13, 14, 15, .7); backdrop-filter: blur(14px) saturate(1.1); -webkit-backdrop-filter: blur(14px) saturate(1.1); border-bottom: 1px solid transparent; transition: transform .6s var(--ease), border-color .4s, background .4s; view-transition-name: top; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--top-h); transition: height .5s var(--ease); }
.top.is-compact { border-color: var(--line-d); background: rgba(13, 14, 15, .88); }
.top.is-compact .wrap { height: 60px; }
.top.is-hidden:not(:focus-within) { transform: translateY(-100%); }
.brand { display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 500; }
.logo { width: 38px; height: 33px; fill: #fff; stroke: #fff; stroke-width: 0; overflow: visible; }
.brand span { color: var(--text-d); border-left: 1px solid var(--line-d); padding-left: 12px; }
.nav { display: flex; gap: 30px; font-size: 14px; color: var(--text-d); }
.nav a { position: relative; padding: 6px 0; transition: color .25s; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: #fff; transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.nav a:hover, .nav a[aria-current] { color: #fff; }
.nav a:hover::after, .nav a[aria-current]::after { transform: scaleX(1); transform-origin: left; }
.cta-o { display: inline-block; border: 1px solid rgba(255, 255, 255, .7); padding: 10px 18px; border-radius: 999px; font-size: 14px; transition: background .3s, color .3s, border-color .3s; }
.cta-o:hover { background: #fff; color: var(--ink); border-color: #fff; }

/* ——— кнопки и ссылки ——— */
.btn, .button { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; overflow: hidden; isolation: isolate; border: 1px solid #fff; background: #fff; color: var(--ink); padding: 15px 24px; border-radius: 999px; font-weight: 500; font-size: 15px; cursor: pointer; transition: color .45s var(--ease); }
.btn::before, .button::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ink); border-radius: inherit; transform: translateY(101%); transition: transform .55s var(--ease); }
.btn:hover, .button:hover { color: #fff; }
.btn:hover::before, .button:hover::before { transform: none; }
.light .btn, .light .button, .white .btn, .white .button { background: var(--ink); color: #fff; border-color: var(--ink); }
.light .btn::before, .light .button::before, .white .btn::before, .white .button::before { background: #fff; }
.light .btn:hover, .light .button:hover, .white .btn:hover, .white .button:hover { color: var(--ink); }
.button.secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.button.secondary::before { background: var(--ink); }
.light .button.secondary:hover, .white .button.secondary:hover { color: #fff; }
.link-d { color: var(--text-d); background: linear-gradient(currentColor, currentColor) left bottom / 100% 1px no-repeat; padding-bottom: 3px; font-size: 15px; transition: color .25s; }
.link-d:hover { color: #fff; animation: underline .7s var(--ease); }
.link-l { color: var(--ink); background: linear-gradient(currentColor, currentColor) left bottom / 100% 1px no-repeat; padding-bottom: 2px; }
.link-l:hover { animation: underline .7s var(--ease); }
@keyframes underline { 0% { background-size: 100% 1px; background-position: right bottom; } 45% { background-size: 0 1px; background-position: right bottom; } 46% { background-position: left bottom; } 100% { background-size: 100% 1px; background-position: left bottom; } }
.magnetic { will-change: transform; transition: transform .6s var(--ease), color .45s var(--ease), background .3s, border-color .3s; }
.actions { display: flex; flex-wrap: wrap; gap: 26px; align-items: center; }

/* ——— заголовки разделов ——— */
section.pad { padding: 120px 0; }
.head { display: grid; grid-template-columns: 1fr 1.25fr; gap: 40px; align-items: end; margin-bottom: 56px; }
.head h2, .h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -.015em; font-size: clamp(36px, 4.4vw, 58px); line-height: 1.03; margin: 14px 0 0; }
.head > p { font-size: 17px; line-height: 1.6; color: var(--text); margin: 0; max-width: 52ch; }
.dark .head > p { color: var(--text-d); }
.line-top { position: relative; }
.line-top::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: currentColor; opacity: .9; transform-origin: left; }

/* слова заголовков выезжают из-под маски */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.w > span { display: inline-block; }

/* ——— пиксельное проявление (кадры маски — pixel-masks.css) ——— */
[data-px] { -webkit-mask-size: 168px 168px; mask-size: 168px 168px; -webkit-mask-repeat: repeat; mask-repeat: repeat; }

/* ——— FAQ ——— */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 26px 0; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item h3 { margin: 0; font-size: 19px; font-weight: 500; line-height: 1.35; transition: opacity .3s; }
.faq-item summary:hover h3 { opacity: .6; }
.faq-item summary i { position: relative; flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line); transition: background .4s, box-shadow .4s, transform .6s var(--ease); }
.faq-item summary i::before, .faq-item summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1px; margin-left: -6px; background: var(--ink); transition: transform .6s var(--ease), background .3s; }
.faq-item summary i::after { transform: rotate(90deg); }
.faq-item[open] summary i { background: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); transform: rotate(180deg); }
.faq-item[open] summary i::before, .faq-item[open] summary i::after { background: #fff; }
.faq-item[open] summary i::after { transform: rotate(0deg); }
.faq-item > p, .faq-item > div { margin: 0; padding: 0 60px 28px 0; font-size: 16px; line-height: 1.65; color: var(--text); }
.faq-item::details-content { block-size: 0; overflow: hidden; transition: block-size .6s var(--ease), content-visibility .6s allow-discrete; }
.faq-item[open]::details-content { block-size: auto; }

/* ——— отзывы (разметку вставляют server.mjs / reviews.js) ——— */
.reviews-live { border-top: 1px solid var(--ink); padding-top: 28px; }
.reviews-state { display: grid; gap: 14px; }
.reviews-state p { margin: 0; color: var(--text); line-height: 1.6; max-width: 60ch; }
.reviews-loaded { display: grid; gap: 28px; }
.reviews-summary { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; }
.reviews-summary-main { display: flex; align-items: center; gap: 14px; }
.reviews-summary-main strong { font-family: var(--serif); font-weight: 400; font-size: 64px; line-height: .9; color: var(--ink); }
.reviews-source { display: inline-flex; align-items: center; padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 12px; font-weight: 600; }
.reviews-summary-meta { color: var(--muted); font-size: 14px; }
.review-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: start; }
.review-card { display: grid; gap: 16px; padding: 28px; background: var(--white); transition: transform .6s var(--ease), box-shadow .6s var(--ease); }
.review-card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .35); }
.review-card-top { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.review-card-top > div { display: grid; gap: 4px; }
.review-stars { color: var(--line); white-space: nowrap; letter-spacing: 2px; }
.review-stars .is-filled { color: var(--ink); }
.review-date { color: var(--muted); font-size: 13px; }
.review-card blockquote { margin: 0; }
.review-card blockquote p { margin: 0; color: var(--text); font-size: 15px; line-height: 1.65; }
.review-profile-link, .review-link { justify-self: start; color: var(--ink); font-size: 14px; font-weight: 500; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.review-profile-link:hover, .review-link:hover { text-decoration-color: var(--ink); }
.reviews-more { display: flex; justify-content: center; }

/* ——— правовая оговорка ——— */
.legal-notice { max-width: 860px; margin: 14px 0 0; padding: 22px 24px; border-left: 2px solid var(--ink); background: var(--white); color: var(--ink); font-size: 17px; line-height: 1.6; }
.legal-cite { position: relative; display: grid; justify-items: start; margin-top: 16px; }
.cite { color: var(--muted); font-size: 14px; font-weight: 500; text-decoration: underline dotted; text-underline-offset: 3px; cursor: help; }
.legal-cite:hover .cite, .cite:focus-visible { color: var(--ink); }
.cite-pop { width: min(600px, 100%); max-height: 0; overflow: hidden; margin-top: 0; padding: 0 22px; background: var(--white); opacity: 0; transform: translateY(-6px); transition: max-height .5s var(--ease), margin-top .4s var(--ease), padding .4s var(--ease), opacity .3s, transform .5s var(--ease), box-shadow .4s; }
.legal-cite:hover .cite-pop, .legal-cite:focus-within .cite-pop { max-height: 520px; margin-top: 12px; padding: 20px 22px; opacity: 1; transform: none; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .35); }
.cite-list { display: grid; gap: 10px; margin: 0; padding-left: 18px; color: var(--text); font-size: 14px; line-height: 1.55; }
.cite-list b { color: var(--ink); }

/* ——— контакты и подвал ——— */
.contact { position: relative; overflow: hidden; padding: 140px 0 120px; }
.contact h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -.02em; font-size: clamp(44px, 7vw, 100px); line-height: 1; margin: 16px 0 26px; max-width: 12ch; }
.contact .wrap > p { font-size: 18px; line-height: 1.6; color: var(--text-d); max-width: 54ch; margin: 0 0 40px; }
.contact .row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.chip { border: 1px solid var(--line-d); background: transparent; color: var(--text-d); padding: 14px 20px; border-radius: 999px; font-size: 15px; cursor: pointer; transition: border-color .3s, color .3s, background .3s; }
.chip:hover { border-color: #fff; color: var(--ink); background: #fff; }
.contact-mark { position: absolute; right: 3%; bottom: -12%; width: min(52vw, 640px); height: auto; fill: none; stroke: rgba(255, 255, 255, .16); stroke-width: .9; pointer-events: none; z-index: 0; }
.contact > .wrap { position: relative; z-index: 1; }

.foot { border-top: 1px solid var(--line-d); }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 14px 32px; align-items: center; justify-content: space-between; padding-top: 26px; padding-bottom: 30px; font-size: 13px; color: var(--mute-d); }
.foot a { transition: color .25s; }
.foot a:hover { color: #fff; }
.foot-name { color: rgba(255, 255, 255, .85); font-weight: 500; }

/* свечение за курсором на тёмных разделах */
[data-glow] { position: relative; }
.glow { position: absolute; left: 0; top: 0; z-index: 0; width: 760px; height: 760px; margin: -380px 0 0 -380px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 255, 255, .07), rgba(255, 255, 255, 0)); pointer-events: none; opacity: 0; transition: opacity .6s; will-change: transform; }
[data-glow]:hover .glow { opacity: 1; }
[data-glow] > .wrap { position: relative; z-index: 1; }

/* ——— виджет заявки (contact-form.js) ——— */
.cw { position: fixed; right: clamp(16px, 3vw, 28px); bottom: clamp(16px, 3vw, 28px); z-index: 60; display: grid; justify-items: end; gap: 12px; transition: transform .6s var(--ease), opacity .4s; }
.js .cw.is-away:not(.is-open) { transform: translateY(140%); opacity: 0; pointer-events: none; visibility: hidden; transition: transform .6s var(--ease), opacity .4s, visibility 0s .6s; }
.cw-actions { display: inline-flex; gap: 10px; }
.cw-phone, .cw-toggle { display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 999px; font-weight: 500; cursor: pointer; box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .55); transition: transform .4s var(--ease), background .3s, color .3s; }
.cw-phone { width: 52px; height: 52px; background: var(--dark); color: #fff; box-shadow: inset 0 0 0 1px var(--line-d), 0 18px 40px -12px rgba(0, 0, 0, .55); }
.cw-toggle { gap: 9px; min-height: 52px; padding: 0 22px; background: #fff; color: var(--ink); font-size: 15px; box-shadow: inset 0 0 0 1px var(--line), 0 18px 40px -12px rgba(0, 0, 0, .45); }
.cw-phone:hover, .cw-toggle:hover { transform: translateY(-3px); }
.cw-toggle:hover { background: var(--ink); color: #fff; }
.cw-panel { width: min(360px, calc(100vw - 32px)); padding: 22px; background: #fff; color: var(--ink); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6), 0 0 0 1px var(--line); animation: cw-in .45s var(--ease) both; }
.cw-panel[hidden] { display: none; }
.cw-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.cw-head strong { font-size: 17px; font-weight: 600; }
.cw-close { padding: 2px 6px; border: 0; background: transparent; color: var(--muted); font-size: 22px; line-height: 1; cursor: pointer; }
.cw-close:hover { color: var(--ink); }
.cw-note { margin: 0 0 14px; color: var(--text); font-size: 14px; line-height: 1.5; }
.cw-form { display: grid; gap: 12px; }
.cw-form input[type="text"], .cw-form textarea { width: 100%; min-height: 48px; padding: 11px 13px; border: 1px solid var(--line); background: #fff; color: var(--ink); font: inherit; font-size: 15px; transition: border-color .25s; }
.cw-form textarea { min-height: 84px; resize: vertical; }
.cw-form input[type="text"]:focus, .cw-form textarea:focus { outline: none; border-color: var(--ink); }
.cw-form .button { width: 100%; background: var(--ink); color: #fff; border-color: var(--ink); }
.cw-form .button::before { background: #fff; }
.cw-form .button:hover { color: var(--ink); }
@keyframes cw-in { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.consent { display: flex; align-items: flex-start; gap: 10px; color: var(--muted); font-size: 13px; line-height: 1.45; cursor: pointer; }
.consent input { flex: 0 0 auto; width: 16px; height: 16px; margin-top: 2px; accent-color: var(--ink); }
.consent a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.form-status { margin: 0; font-size: 14px; color: var(--muted); }
.form-status.is-error { color: #b42318; }
.form-status.is-ok { color: var(--ink); font-weight: 600; }

/* ═══════════ переходы между страницами (View Transitions) ═══════════
   Старая страница растворяется, новая входит по-своему: data-vt на <html>. */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .45s var(--ease-io) both; }
::view-transition-new(root) { animation: vt-fade-in .7s var(--ease) .12s both; }
:root[data-vt="blinds"]::view-transition-new(root) { animation: vt-blinds .9s var(--ease-io) .1s both; }
:root[data-vt="curtain"]::view-transition-new(root) { animation: vt-curtain .85s var(--ease-io) .08s both; }
:root[data-vt="shift"]::view-transition-new(root) { animation: vt-shift .8s var(--ease) .1s both; }
::view-transition-group(top) { animation-duration: .5s; }
@keyframes vt-out { to { opacity: 0; transform: scale(.985); filter: blur(4px); } }
@keyframes vt-fade-in { from { opacity: 0; transform: translateY(24px); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
/* жалюзи: полосы маски растут от 0 до полной высоты */
@property --vt-b { syntax: "<length>"; inherits: false; initial-value: 0px; }
@keyframes vt-blinds { from { --vt-b: 0px; } to { --vt-b: 9vh; } }
:root[data-vt="blinds"]::view-transition-new(root) { -webkit-mask-image: repeating-linear-gradient(#000 0 var(--vt-b), transparent var(--vt-b) 9vh); mask-image: repeating-linear-gradient(#000 0 var(--vt-b), transparent var(--vt-b) 9vh); }
@keyframes vt-curtain { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0); } }
@keyframes vt-shift { from { opacity: 0; transform: translateX(6vw) skewX(-3deg); filter: blur(10px); } to { opacity: 1; transform: none; filter: none; } }

/* ═══════════ движение: только с JS и без reduce motion ═══════════ */
@keyframes rise { from { transform: translateY(105%); } to { transform: none; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(18px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes grain { 0%, 100% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); } 60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } }
@keyframes top-in { from { transform: translateY(-100%); } to { transform: none; } }
@keyframes trace { 0% { stroke-dashoffset: 1; fill-opacity: 0; stroke-width: 14; } 70% { stroke-dashoffset: 0; fill-opacity: 0; } 100% { stroke-dashoffset: 0; fill-opacity: 1; stroke-width: 0; } }

@media (prefers-reduced-motion: no-preference) {
  .js [data-px] { -webkit-mask-image: linear-gradient(transparent, transparent); mask-image: linear-gradient(transparent, transparent); }
  .js [data-px].in { animation: px-in 1.1s linear both; }
  .js .grain { animation: grain .9s steps(5) infinite; }
  .js .top { animation: top-in 1s var(--ease) backwards; }
  .js .logo { stroke-dasharray: 1; animation: trace 2.2s var(--ease-io) .2s both; }
  .js .intro { animation: fade-up 1.1s var(--ease) both; animation-delay: var(--d, 0s); }
  .js [data-split="intro"] .w > span { animation: rise 1.15s var(--ease) both; animation-delay: calc(.25s + var(--i) * 60ms); }

  .js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
  .js .reveal.in { opacity: 1; transform: none; }
  .js [data-split]:not([data-split="intro"]) .w > span { transform: translateY(105%); transition: transform 1.1s var(--ease); transition-delay: calc(var(--i) * 55ms); }
  .js [data-split].in .w > span { transform: none; }
  .js .line-top::before { transform: scaleX(0); transition: transform 1.4s var(--ease); }
  .js .line-top.in::before { transform: scaleX(1); }
  .js .reviews-live { clip-path: inset(0 100% 0 0); transition: clip-path 1.4s var(--ease); }
  .js .reviews-live.in { clip-path: inset(0 0 0 0); }
  .js .review-card { opacity: 0; transform: translateY(30px); }
  .js .reviews-live.in .review-card { opacity: 1; transform: none; transition: opacity 1s var(--ease), transform 1s var(--ease), box-shadow .6s var(--ease); }
  .js .reviews-live.in .review-card:nth-child(2) { transition-delay: .12s; }
  .js .reviews-live.in .review-card:nth-child(3) { transition-delay: .24s; }
  .js .reviews-live.in .review-card:hover { transform: translateY(-6px); transition-delay: 0s; }
  .js .contact-mark { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 4.5s var(--ease-io); }
  .js .contact-mark.in { stroke-dashoffset: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .stairs-panel.swap, .cw-panel { animation: none; }
  .faq-item::details-content { transition: none; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

/* ——— адаптив ——— */
@media (max-width: 1080px) {
  .nav { gap: 22px; }
}

@media (max-width: 900px) {
  :root { --gut: 16px; --top-h: 96px; }
  html { scroll-padding-top: 100px; }
  .top .wrap, .top.is-compact .wrap { flex-wrap: wrap; height: auto; padding-top: 10px; row-gap: 4px; }
  .nav { order: 3; width: 100%; gap: 20px; overflow-x: auto; scrollbar-width: none; padding-bottom: 8px; font-size: 13px; white-space: nowrap; }
  .nav::-webkit-scrollbar { display: none; }
  .cta-o { padding: 8px 14px; font-size: 13px; }
  .grain { display: none; }
  section.pad { padding: 80px 0; }
  .head { grid-template-columns: 1fr; gap: 18px; margin-bottom: 36px; }
  .review-cards { grid-template-columns: 1fr; }
  .reviews-summary { flex-direction: column; align-items: flex-start; }
  .faq-item > p, .faq-item > div { padding-right: 0; }
  .contact { padding: 96px 0 100px; }
  .contact-mark { width: 110vw; right: -20%; bottom: -8%; }
  .cw { left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); justify-items: stretch; pointer-events: none; }
  .cw.is-open { pointer-events: auto; }
  .cw-actions { display: none; }
  .cw-panel { width: 100%; max-height: calc(100svh - 32px); overflow-y: auto; }
}

@media (max-width: 480px) {
  .contact .row .btn { width: 100%; }
}

/* ═══════════ лестница этапов (stages.js): главная и «Публикации» ═══════════ */
.stairs { position: relative; margin-top: 70px; }
.stairs-hint { position: absolute; left: 0; top: 0; z-index: 1; }
.stairs-stage { position: relative; height: 560px; overflow: hidden; }
.stairs .scene { position: absolute; left: 50%; top: 70%; width: 0; height: 0; transform-style: preserve-3d; transform: scale(var(--k, .85)) rotateX(58deg) rotateZ(-30deg); }
.stairs .box { position: absolute; padding: 0; margin: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; transform-style: preserve-3d; transform-origin: 50% 50% 0; }
.stairs .face { position: absolute; transition: background .45s, color .45s, box-shadow .45s; }
.stairs .f-top { inset: 0; background: #232427; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .09); transform: translateZ(var(--h)); }
.stairs .f-front { left: 0; transform-origin: bottom; transform: rotateX(-90deg); background: #18191b; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05); }
.stairs .f-left { top: 0; transform-origin: right center; transform: rotateY(90deg); background: #0f1011; }
.stairs .box:hover .f-top { background: #2e2f33; }
.stairs .box:focus-visible { outline: none; }
.stairs .box:focus-visible .f-top { box-shadow: inset 0 0 0 2px #fff; }
.stairs .box.on .f-top { background: #fff; box-shadow: none; }
.stairs-static { list-style: none; margin: 0; padding: 0 0 40px; display: grid; gap: 28px; }
.stairs-static li { border-top: 1px solid var(--line-d); padding-top: 18px; }
.stairs-static h3 { font-family: var(--serif); font-weight: 400; font-size: 28px; margin: 6px 0 10px; }
.stairs-static p { color: var(--text-d); font-size: 16px; line-height: 1.6; margin: 0 0 8px; max-width: 70ch; }
.stairs-static .stairs-src { font-family: var(--mono); font-size: 12px; color: var(--mute-d); }
.stairs:not(.built) .stairs-stage, .stairs:not(.built) .stairs-hint, .stairs:not(.built) .stairs-list, .stairs:not(.built) .stairs-panel { display: none; }
.stairs .box.on .f-front { background: #e4e4e0; }
.stairs .box.on .f-left { background: #b9b9b4; }
.stairs .num { position: absolute; left: 16px; bottom: 12px; font: 400 36px/1 var(--serif); color: rgba(255, 255, 255, .28); pointer-events: none; transition: color .45s; }
.stairs .box.on .num { color: rgba(15, 15, 16, .35); }
.stairs .name { position: absolute; inset: 0; padding: 0 14px 10px; display: flex; flex-direction: column; justify-content: flex-end; color: rgba(255, 255, 255, .82); text-align: left; pointer-events: none; transition: color .45s; }
.stairs .name b { font-size: 15px; font-weight: 500; line-height: 1.15; }
.stairs .name small { font-family: var(--mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: rgba(255, 255, 255, .45); margin-top: 4px; }
.stairs .box.on .name { color: var(--ink); }
.stairs .box.on .name small { color: var(--muted); }
.stairs .pin { position: absolute; transform-style: preserve-3d; pointer-events: none; }
.stairs .pin-in { position: absolute; left: 0; bottom: 0; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; }
.stairs .pin-dot { height: 30px; padding: 0 12px; border-radius: 15px; display: grid; place-items: center; font-size: 12px; font-weight: 500; white-space: nowrap; border: 1px solid rgba(255, 255, 255, .55); color: #fff; background: var(--dark); transition: background .4s, color .4s; }
.stairs .pin-line { width: 1px; background: linear-gradient(rgba(255, 255, 255, .55), transparent); }
.stairs .pin.on .pin-dot { background: #fff; color: var(--ink); }
.stairs .floor { position: absolute; transform: translateZ(-1px); background: linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px) 0 0 / 40px 40px, linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px) 0 0 / 40px 40px; -webkit-mask: radial-gradient(closest-side, #000 45%, transparent); mask: radial-gradient(closest-side, #000 45%, transparent); }
.stairs-list { list-style: none; margin: 0 0 34px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 26px; border-top: 1px solid var(--line-d); padding-top: 18px; }
.stairs-tab { padding: 4px 0; border: 0; background: none; color: var(--mute-d); font-size: 14px; cursor: pointer; transition: color .3s; }
.stairs-tab span { font-family: var(--mono); font-size: 11px; margin-right: 8px; }
.stairs-tab:hover, .stairs-tab.on { color: #fff; }
.stairs-tab.on { box-shadow: 0 1px 0 #fff; }
.stairs-panel { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 56px; padding-bottom: 40px; }
.stairs-panel.swap { animation: fade-up .7s var(--ease) both; }
.stairs-panel h3 { font-size: clamp(32px, 3.4vw, 46px); line-height: 1.05; margin: 12px 0 16px; }
.stairs-panel p { font-size: 17px; line-height: 1.62; color: var(--text-d); margin: 0 0 12px; max-width: 58ch; }
.stairs-panel .stairs-src { font-family: var(--mono); font-size: 12px; color: var(--mute-d); letter-spacing: .02em; }
.stairs-art { display: block; padding: 14px 0; border-top: 1px solid var(--line-d); font-size: 16px; font-weight: 500; transition: padding .5s var(--ease), color .3s; }
.stairs-art small { display: block; margin-top: 4px; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--mute-d); font-weight: 400; }
.stairs-art:hover { padding-left: 10px; }
.stairs-arts .eyebrow { margin-bottom: 14px; }
.stairs-empty { color: var(--mute-d) !important; font-size: 15px !important; padding-top: 14px; border-top: 1px solid var(--line-d); }
@media (prefers-reduced-motion: no-preference) {
  /* кубы разбросаны в пространстве и слетаются в лестницу */
  .js .stairs .box { transform: translate3d(var(--fx), var(--fy), var(--fz)) rotateX(var(--rx)) rotateZ(var(--rz)) scale(.6); opacity: 0; transition: transform 1.6s cubic-bezier(.2, .9, .25, 1.08), opacity .6s; transition-delay: calc(var(--i) * 140ms); }
  .js .stairs.grown .box { transform: none; opacity: 1; }
  .js .stairs .pin { opacity: 0; transition: opacity .8s 1.6s; }
  .js .stairs.grown .pin { opacity: 1; }
}
@media (max-width: 900px) {
  .stairs { margin-top: 48px; }
  .stairs-stage { height: 300px; }
  .stairs .scene { top: 74%; }
  .stairs-panel { grid-template-columns: 1fr; gap: 28px; }
}

/* ═══════════ движение, привязанное к прокрутке (Chrome/Edge/Safari 26+; где нет — статично) ═══════════ */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    @keyframes scroll-rise { from { opacity: .25; translate: 0 90px; scale: .96; } to { opacity: 1; translate: 0 0; scale: 1; } }
    @keyframes scroll-drift { from { translate: 6vw 0; } to { translate: -4vw 0; } }
    @keyframes scroll-sink { from { translate: 0 0; scale: 1; opacity: 1; } to { translate: 0 -60px; scale: .97; opacity: .35; } }
    section.pad > .wrap, .about > .wrap, .bfl > .wrap, .page-hero + section > .wrap { animation: scroll-rise linear both; animation-timeline: view(); animation-range: entry 0px entry 360px; }
    @media (min-width: 901px) {
      .head > div:first-child, .head-side, .split > .side, .statement { animation: scroll-drift linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
    }
    .page-hero > .wrap { animation: scroll-sink linear both; animation-timeline: view(); animation-range: exit 0% exit 100%; }
  }
}

/* ——— печать: всё, что проявляется при прокрутке, видно сразу ——— */
@media print {
  .js .reveal, .js .pub { opacity: 1 !important; transform: none !important; transition: none !important; }
  .js [data-px] { -webkit-mask: none !important; mask: none !important; }
  .js [data-split] .w > span { transform: none !important; animation: none !important; transition: none !important; }
  .js .hero .mega-word { color: inherit !important; }
  .hero-canvas { display: none !important; }
  .js .stairs .box, .js .stairs .pin, .js .review-card { opacity: 1 !important; transform: none !important; transition: none !important; }
  .js .line-top::before { transform: none !important; }
  .js .contact-mark { stroke-dashoffset: 0 !important; transition: none !important; }
}
