/* ==========================================================================
   NOHANDS LAB — стили сайта (v3, тёмная тема)
   Токены: tokens.css. Здесь — только сборка компонентов.
   ========================================================================== */

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; background: var(--bg); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-text);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
main:focus { outline: none; }
[hidden] { display: none !important; }

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 200;
  padding: 10px 16px; border-radius: var(--radius-pill);
  background: var(--accent); color: var(--on-accent); font-weight: 600;
  transition: top var(--dur-fast) var(--ease-out);
}
.skip-link:focus { top: 16px; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
main, .footer { position: relative; z-index: 1; }

/* ---------- Живой фон ---------- */
.glow { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.glow i { position: absolute; width: 70vmax; height: 70vmax; border-radius: 50%; will-change: transform; }
.glow__a {
  left: -22vmax; top: -30vmax;
  background: radial-gradient(circle, color-mix(in srgb, var(--glow-a) 38%, transparent) 0%, transparent 62%);
  animation: drift-a 28s var(--ease-inout) infinite alternate;
}
.glow__b {
  right: -26vmax; bottom: -34vmax;
  background: radial-gradient(circle, color-mix(in srgb, var(--glow-b) 14%, transparent) 0%, transparent 60%);
  animation: drift-b 34s var(--ease-inout) infinite alternate;
}
@keyframes drift-a { to { transform: translate(18vmax, 14vmax) scale(1.1); } }
@keyframes drift-b { to { transform: translate(-16vmax, -12vmax) scale(.92); } }

/* ---------- Типографика ---------- */
.mono {
  font-family: var(--font-mono); font-size: var(--fs-micro); font-weight: 500;
  letter-spacing: var(--track-mono); text-transform: uppercase; line-height: 1.4;
  color: var(--muted);
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-mono); font-size: var(--fs-micro); font-weight: 500;
  letter-spacing: var(--track-mono); text-transform: uppercase; color: var(--muted);
}
.eyebrow i {
  font-style: normal; display: inline-grid; place-items: center;
  min-width: 30px; height: 22px; padding: 0 6px;
  border: 1px solid var(--accent); border-radius: 6px; color: var(--accent);
}
.eyebrow--ink { color: var(--on-accent); }
.eyebrow--ink i { color: var(--on-accent); border-color: var(--on-accent); }
.h2 {
  margin-top: 18px;
  font-family: var(--font-display); font-weight: 600;
  font-size: var(--fs-h2); line-height: var(--lh-head); letter-spacing: -0.035em;
}
.lead { font-size: var(--fs-lead); line-height: 1.45; }
.js-split .line-mask, .js-split [class*="-mask"] { padding-bottom: .08em; margin-bottom: -.08em; }

/* ---------- Кнопки и ссылки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  height: 52px; padding: 0 26px; border-radius: var(--radius-pill);
  font-family: var(--font-text); font-size: 15.5px; font-weight: 600; line-height: 1; white-space: nowrap;
  border: 1.5px solid transparent;
  transition: background-color var(--dur-mid) var(--ease-out), color var(--dur-mid) var(--ease-out), border-color var(--dur-mid), box-shadow var(--dur-mid);
  will-change: transform;
}
.btn span[aria-hidden] { display: inline-block; transition: transform var(--dur-mid) var(--ease-out); }
.btn:hover span[aria-hidden] { transform: translate(2px, -2px); }
.btn--accent { background: var(--accent); color: var(--on-accent); box-shadow: 0 0 0 0 transparent; }
.btn--accent:hover { background: var(--accent-hover); box-shadow: 0 10px 40px -10px color-mix(in srgb, var(--accent) 70%, transparent); }
.btn--ink { background: var(--bg); color: var(--text); }
.btn--ink:hover { background: var(--surface-2); }
.btn--sm { height: 40px; padding: 0 18px; font-size: 14px; }
.btn--lg { height: 56px; padding: 0 28px; font-size: 16px; }
.btn--xl { height: 66px; padding: 0 34px; font-size: 17px; }
.btn--block { width: 100%; }
.btn.is-pressed { transform: scale(.94); }

.link-arrow {
  display: inline-flex; align-items: center; gap: .45em;
  font-weight: 500; font-size: 15.5px; padding-bottom: 4px;
  background: linear-gradient(currentColor, currentColor) left bottom / 100% 1px no-repeat;
  transition: background-size var(--dur-mid) var(--ease-out), color var(--dur-fast);
}
.link-arrow span { display: inline-block; transition: transform var(--dur-mid) var(--ease-out); }
.link-arrow:hover { background-size: 30% 1px; color: var(--accent); }
.link-arrow:hover span { transform: translateX(3px); }

/* ---------- Прелоадер ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 150;
  display: grid; place-content: center; justify-items: center; gap: 22px;
  background: var(--bg); color: var(--text);
  animation: preloader-failsafe 0s linear 4s forwards;
}
@keyframes preloader-failsafe { to { visibility: hidden; opacity: 0; } }
.preloader__tile, .el-tile { position: relative; display: inline-grid; place-items: center; font-family: var(--font-display); font-weight: 700; letter-spacing: -0.04em; }
.preloader__tile { width: 120px; height: 120px; border: 2px solid var(--text); border-radius: 18px; font-size: 48px; }
.tile__num { position: absolute; top: 9px; left: 12px; font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: 0; }
.preloader__count { font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; color: var(--accent); font-variant-numeric: tabular-nums; }
.preloader__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--line); }
.preloader__bar i { position: absolute; inset: 0; background: var(--accent); transform-origin: left; transform: scaleX(0); }

/* ---------- Шапка ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 70; color: var(--text);
  transition: transform var(--dur-slow) var(--ease-out), color var(--dur-mid);
}
.header__inner {
  display: flex; align-items: center; gap: 24px;
  height: 72px; padding-inline: var(--gutter);
  border-bottom: 1px solid transparent;
  transition: background-color var(--dur-mid), border-color var(--dur-mid);
}
.header.is-scrolled .header__inner {
  background: rgba(10, 11, 15, .72);
  backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-color: var(--line);
}
.header[data-theme="accent"] { color: var(--on-accent); }
.header.is-scrolled[data-theme="accent"] .header__inner { background: color-mix(in srgb, var(--accent) 88%, transparent); border-color: rgba(10, 11, 15, .15); }
.header[data-theme="accent"] .btn--accent { background: var(--on-accent); color: var(--text); }
.header[data-theme="accent"] .logo__mark rect { fill: var(--on-accent); }
.header[data-theme="accent"] .logo__mark path { fill: var(--accent); }
.header.is-hidden { transform: translateY(-100%); }
.menu-open .header { color: var(--text); transform: none; }
.menu-open .header .header__inner { background: transparent !important; border-color: transparent !important; backdrop-filter: none !important; }

.logo { display: inline-flex; align-items: center; gap: 11px; flex: none; }
.logo__mark { width: 34px; height: 34px; flex: none; }
.logo__mark rect { fill: var(--accent); transition: fill var(--dur-mid); }
.logo__mark path { fill: var(--on-accent); transition: fill var(--dur-mid); }
.logo__word { font-family: var(--font-display); font-weight: 700; font-size: 14.5px; letter-spacing: -0.01em; }
.logo__word b { font-weight: 300; margin-left: 5px; }

.nav { display: flex; gap: 2px; margin-left: auto; }
.nav a {
  position: relative; padding: 8px 13px; border-radius: var(--radius-pill);
  font-size: 14.5px; font-weight: 500; color: color-mix(in srgb, currentColor 70%, transparent);
  transition: color var(--dur-fast), background-color var(--dur-fast);
}
.nav a:hover { color: currentColor; background: rgba(255, 255, 255, .06); }
.header .nav a { color: var(--muted); }
.header .nav a:hover, .header .nav a.is-active { color: var(--text); }
.header[data-theme="accent"] .nav a { color: rgba(10, 11, 15, .65); }
.header[data-theme="accent"] .nav a:hover, .header[data-theme="accent"] .nav a.is-active { color: var(--on-accent); background: rgba(10, 11, 15, .06); }
.nav a.is-active::after {
  content: ""; position: absolute; left: 50%; bottom: 1px; width: 4px; height: 4px; border-radius: 50%;
  background: var(--accent); transform: translateX(-50%);
}
.header[data-theme="accent"] .nav a.is-active::after { background: var(--on-accent); }

.header__actions { display: flex; align-items: center; gap: 10px; margin-left: 12px; }
.autopilot-btn {
  display: inline-flex; align-items: center; gap: 9px;
  height: 40px; padding: 0 15px; border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong);
  font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  transition: background-color var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast);
}
.autopilot-btn:hover { border-color: currentColor; }
.autopilot-btn__dot { width: 0; height: 0; border-style: solid; border-width: 5px 0 5px 8px; border-color: transparent transparent transparent var(--accent); }
.header[data-theme="accent"] .autopilot-btn { border-color: rgba(10, 11, 15, .3); }
.header[data-theme="accent"] .autopilot-btn__dot { border-left-color: var(--on-accent); }
.is-autopilot .autopilot-btn { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.is-autopilot .autopilot-btn__dot { border-width: 0; width: 8px; height: 8px; border-radius: 2px; background: var(--on-accent); }

.burger { display: none; position: relative; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); flex: none; }
.burger span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: currentColor; transition: transform var(--dur-mid) var(--ease-out), top var(--dur-mid) var(--ease-out); }
.burger span:nth-child(1) { top: 17px; }
.burger span:nth-child(2) { top: 25px; }
.menu-open .burger span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.menu-open .burger span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 60;
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  padding: 100px var(--gutter) 24px; overflow-y: auto;
  background: var(--bg); color: var(--text);
  opacity: 0; transition: opacity var(--dur-mid);
}
.menu.is-open { opacity: 1; }
.menu__nav { display: flex; flex-direction: column; }
.menu__nav a {
  display: flex; align-items: baseline; gap: 14px;
  padding: 14px 0; border-bottom: 1px solid var(--line);
  font-family: var(--font-display); font-weight: 600; font-size: clamp(1.6rem, 7.5vw, 2.6rem); letter-spacing: -0.03em; line-height: 1.15;
  opacity: 0; transform: translateY(18px);
  transition: opacity var(--dur-mid) var(--ease-out), transform var(--dur-slow) var(--ease-out), color var(--dur-fast);
}
.menu__nav a i { font-style: normal; font-family: var(--font-mono); font-size: 12px; font-weight: 500; color: var(--accent); letter-spacing: .08em; }
.menu__nav a:hover { color: var(--accent); }
.menu.is-open .menu__nav a { opacity: 1; transform: none; }
.menu.is-open .menu__nav a:nth-child(2) { transition-delay: 40ms; }
.menu.is-open .menu__nav a:nth-child(3) { transition-delay: 80ms; }
.menu.is-open .menu__nav a:nth-child(4) { transition-delay: 120ms; }
.menu.is-open .menu__nav a:nth-child(5) { transition-delay: 160ms; }
.menu__foot { display: grid; gap: 16px; justify-items: center; }
.menu__mail { color: var(--muted); font-weight: 500; }

/* Плашка автопилота */
.autopilot-hud {
  position: fixed; left: 50%; bottom: 20px; z-index: 80;
  display: flex; align-items: center; gap: 14px;
  padding: 8px 8px 8px 18px; border-radius: var(--radius-pill);
  background: var(--surface-2); color: var(--text); border: 1px solid var(--line-strong);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  transform: translate(-50%, 160%); transition: transform var(--dur-slow) var(--ease-out);
}
.is-autopilot .autopilot-hud { transform: translate(-50%, 0); }
.autopilot-hud__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.autopilot-hud__step { color: var(--muted); font-variant-numeric: tabular-nums; }
.autopilot-hud__stop { height: 32px; padding: 0 14px; border-radius: var(--radius-pill); background: var(--accent); color: var(--on-accent); font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 120px 0 44px;
}
.mega { position: relative; margin-bottom: clamp(36px, 6vh, 72px); }
.mega__field {
  --field-step: clamp(6px, .085em, 18px);
  position: absolute; left: 0; right: 0; top: 50%; height: .7em;
  transform: translateY(-50%); z-index: 0; pointer-events: none;
  opacity: .32; overflow: hidden;
}
.mega__field::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(200,255,46,.48) 1px, transparent 1.45px);
  background-size: var(--field-step) var(--field-step);
  background-position: calc(var(--field-anchor-x,50%) - var(--field-step) * .5) calc(var(--field-anchor-y,46%) - var(--field-step) * .5);
  opacity: .72;
}
.mega.is-field-live .mega__field::before { animation: mega-field-breathe 5.2s ease-in-out infinite alternate; }
.mega.is-paused .mega__field::before { animation-play-state: paused; }
@keyframes mega-field-breathe { from { opacity: .45; } to { opacity: .9; } }
.mega__line {
  position: relative; z-index: 1;
  --mega-size: 14vw;
  display: flex; align-items: center;
  font-family: var(--font-display); font-weight: 800;
  font-size: var(--mega-size); line-height: .82; letter-spacing: -0.045em;
  white-space: nowrap; user-select: none; color: var(--text);
}
.mega__a, .mega__b { display: inline-block; will-change: transform; }
.mega .ch {
  display: inline-block; will-change: transform;
  background: linear-gradient(180deg, var(--text) 30%, color-mix(in srgb, var(--text) 52%, var(--bg)) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-bottom: .04em;
}
.mega__gap { position: relative; flex: 1 0 44px; align-self: stretch; min-width: 44px; }
/* Каретка превращается в два встречных потока — знак внутри слова. */
.mega__beam {
  position: absolute; left: 8%; right: 8%; top: 46%;
  height: clamp(2px, .014em, 3px); margin-top: -1px;
  background: var(--accent); opacity: 0; transform-origin: center;
}
.mega__gap.is-typing .mega__beam { animation: mega-blink .72s steps(1) infinite; }
@keyframes mega-blink { 50% { opacity: 0; } }
.mega__exchange {
  position: absolute; inset: 0; pointer-events: none; color: var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.mega__exchange .data-transfer { display: block; width: 100%; height: .7em; overflow: visible; }
.mega__gap.is-paused .mega__beam { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .mega__gap .mega__beam { animation: none !important; }
  .mega__field::before { animation: none !important; }
}

.hero__bottom { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 80px); align-items: end; }
/* Reveal не занимает transform: hover карточек и циклы продолжают работать. */
@media (prefers-reduced-motion: no-preference) {
  .js .scroll-reveal {
    opacity: 0; translate: 0 26px;
    transition: opacity 750ms cubic-bezier(.22,.61,.21,1) var(--reveal-delay, 0ms), translate 750ms cubic-bezier(.22,.61,.21,1) var(--reveal-delay, 0ms);
  }
  .js .scroll-reveal.is-revealed { opacity: 1; translate: 0 0; }
}
.hero__title {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.5rem, 2.6vw, 2.6rem); line-height: 1.12; letter-spacing: -0.03em; max-width: 20ch;
}
.hl { position: relative; display: inline-block; z-index: 0; padding: 0 .14em; margin: 0 -.06em; color: var(--on-accent); }
.hl::before { content: ""; position: absolute; inset: .06em 0 0; z-index: -1; background: var(--accent); border-radius: .12em; transform: scaleX(var(--hl, 1)); transform-origin: left; }
.hero__side { display: grid; gap: 26px; }
.hero__lead { font-size: var(--fs-lead); line-height: 1.45; color: var(--muted); max-width: 32ch; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 28px; }

.facts { display: flex; flex-wrap: wrap; margin-top: clamp(40px, 6vh, 64px); }
.facts::before { content: ""; flex: 0 0 100%; height: 1px; margin-bottom: 22px; background: var(--line); }
.facts li { display: grid; gap: 2px; padding-right: 28px; margin-right: 28px; border-right: 1px solid var(--line); }
.facts li:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.facts b { font-size: 1.15rem; font-weight: 600; letter-spacing: -0.01em; }
.facts span { font-size: var(--fs-small); color: var(--muted); }

/* ==========================================================================
   Секции
   ========================================================================== */
.section { padding: var(--space-section) 0; position: relative; }
.section--alt { background: rgba(255, 255, 255, .018); border-block: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 48px; flex-wrap: wrap; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head__note { max-width: 36ch; color: var(--muted); font-size: 1.05rem; }

/* ---------- Обо мне ---------- */
.about__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 7vw, 120px); align-items: center; }
.about__photo { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); background: var(--surface); }
.about__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; filter: grayscale(1) contrast(1.06); }
.about__photo::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--line); pointer-events: none; }
.about__copy .lead { margin-top: 28px; max-width: 34ch; }
.about__text { margin-top: 18px; color: var(--muted); max-width: 52ch; font-size: 1.05rem; }
.spec { margin-top: 40px; border-bottom: 1px solid var(--line); }
.spec > div { display: grid; grid-template-columns: 170px 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.spec dt { font-family: var(--font-mono); font-size: var(--fs-micro); font-weight: 500; letter-spacing: var(--track-mono); text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.spec dd { font-weight: 500; }
.about__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px 32px; margin-top: 40px; }

/* ---------- Услуги: таблица элементов ---------- */
.group-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 16px; }
.group-head h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.15rem; letter-spacing: -0.01em; }
.group-head--care { margin-top: 48px; }

.elements {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px; background: var(--line-strong); border: 1px solid var(--line-strong); border-radius: var(--radius); overflow: hidden;
}
.elements > li { display: flex; }
.element {
  --mx: 50%; --my: 50%;
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; flex: 1;
  min-height: 340px; padding: clamp(20px, 2vw, 28px);
  background: var(--surface); color: var(--text);
  transition: color var(--dur-mid) var(--ease-out);
}
.element::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--accent); transform: scaleY(0); transform-origin: bottom; transition: transform 560ms var(--ease-out); }
.element::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(240px circle at var(--mx) var(--my), rgba(255, 255, 255, .07), transparent 70%); opacity: 0; transition: opacity var(--dur-mid); }
.element__top { display: flex; justify-content: space-between; gap: 8px; color: var(--muted); transition: color var(--dur-mid); }
.element__sym { margin: 20px 0 16px; font-family: var(--font-display); font-weight: 700; font-size: clamp(3.4rem, 5.2vw, 5.4rem); line-height: .9; letter-spacing: -0.05em; transition: transform 700ms var(--ease-out), color var(--dur-mid); }
.element__name { font-weight: 600; font-size: 1.12rem; letter-spacing: -0.01em; line-height: 1.2; }
.element__desc { margin: 8px 0 24px; color: var(--muted); font-size: .95rem; transition: color var(--dur-mid); }
.element__foot { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line-strong); transition: border-color var(--dur-mid); }
.element__price { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.15rem, 1.5vw, 1.4rem); letter-spacing: -0.03em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.element__price small { font-family: var(--font-text); font-size: .6em; font-weight: 500; letter-spacing: 0; color: var(--muted); transition: color var(--dur-mid); }

/* Ведение — отдельная строка, как лантаноиды под таблицей */
.element--row {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px 40px;
  min-height: 0; padding: 26px 32px;
  border: 1px dashed var(--line-strong); border-radius: var(--radius);
}
.element--row .element__sym { margin: 0; font-size: clamp(3rem, 4.4vw, 4.4rem); color: transparent; -webkit-text-stroke: 1.5px var(--text); }
.element__body { display: grid; gap: 6px; }
.element--row .element__desc { margin: 0; max-width: 52ch; }
.element--row .element__price { font-size: clamp(1.3rem, 2vw, 1.8rem); }

@media (hover: hover) {
  .element:hover { color: var(--on-accent); }
  .element:hover::before { transform: scaleY(1); }
  .element:hover::after { opacity: 1; }
  .element:hover .element__sym { transform: translateY(-5px); color: var(--on-accent); -webkit-text-stroke: 0; }
  .element:hover .element__top, .element:hover .element__desc, .element:hover .element__price small, .element:hover .element__go { color: rgba(10, 11, 15, .7); }
  .element:hover .element__foot { border-color: rgba(10, 11, 15, .2); }
}
.services__note { margin-top: 24px; color: var(--muted); font-size: .95rem; }

/* ---------- Работы ---------- */
.works { position: relative; }
.works__pin { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; gap: clamp(28px, 4vh, 48px); padding: 110px 0 48px; }
.works__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 48px; flex-wrap: wrap; }
.works__meta { display: grid; justify-items: end; gap: 14px; text-align: right; }
.works__note { color: var(--muted); max-width: 32ch; }
.works__counter { font-variant-numeric: tabular-nums; }
.works__cur { color: var(--accent); }
.works__viewport { overflow: hidden; }
.works__track { display: flex; gap: clamp(16px, 2vw, 28px); width: max-content; padding-inline: var(--gutter); will-change: transform; }
.exp { width: clamp(300px, 38vw, 600px); flex: none; }
.exp a { display: block; }
.exp__img { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.exp__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) brightness(.8); transform: scale(1.02); transition: filter 700ms var(--ease-out), transform 1100ms var(--ease-out); }
.exp a:hover .exp__img img, .exp a:focus-visible .exp__img img { filter: none; transform: scale(1.06); }
.exp__meta { display: grid; gap: 6px; padding-top: 18px; }
.exp__meta h3 { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.2rem, 1.8vw, 1.7rem); letter-spacing: -0.03em; line-height: 1.1; transition: color var(--dur-fast); }
.exp__meta p { color: var(--muted); }
.exp a:hover h3 { color: var(--accent); }
.works__bar { position: relative; height: 1px; background: var(--line); }
.works__fill { position: absolute; left: 0; right: 0; top: -1px; height: 3px; border-radius: 3px; background: var(--accent); transform-origin: left; transform: scaleX(0); }

.works.is-static .works__pin { min-height: 0; padding: var(--space-section) 0 calc(var(--space-section) * .7); }
.works.is-static .works__viewport { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.works.is-static .works__viewport::-webkit-scrollbar { display: none; }
.works.is-static .exp { scroll-snap-align: start; scroll-margin-left: var(--gutter); width: min(84vw, 520px); }
@media (hover: none) { .exp__img img { filter: none; } }

/* ---------- Процесс ---------- */
.protocol { position: relative; }
.protocol__line { position: absolute; left: 0; right: 0; top: 7px; height: 1px; background: var(--line-strong); }
.protocol__line i { position: absolute; left: 0; right: 0; top: -1px; height: 3px; border-radius: 3px; background: var(--accent); transform-origin: left; transform: scaleX(0); }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.step { position: relative; padding-top: 44px; padding-right: 12px; }
.step__dot { position: absolute; left: 0; top: 0; width: 15px; height: 15px; border-radius: 50%; background: var(--bg); border: 1.5px solid var(--text); transition: background-color 400ms, border-color 400ms, transform 600ms var(--ease-out), box-shadow 600ms; }
.step.is-lit .step__dot { background: var(--accent); border-color: var(--accent); transform: scale(1.2); box-shadow: 0 0 22px color-mix(in srgb, var(--accent) 60%, transparent); }
.step.is-lit .step__num { color: var(--accent); }
.step h3 { margin: 12px 0 10px; font-family: var(--font-display); font-weight: 600; font-size: var(--fs-h3); letter-spacing: -0.02em; line-height: 1.15; }
.step p { color: var(--muted); max-width: 28ch; }

/* ---------- Вопросы ---------- */
.faq__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 32px 80px; align-items: start; }
.faq__head .h2 { max-width: 10ch; }
.faq__list { border-top: 1px solid var(--line-strong); }
.qa { border-bottom: 1px solid var(--line-strong); }
.qa summary { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 0; cursor: pointer; list-style: none; font-size: 1.12rem; font-weight: 600; letter-spacing: -0.01em; transition: color var(--dur-fast); }
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover { color: var(--accent); }
.qa summary::after {
  content: ""; flex: none; width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(currentColor, currentColor) center / 12px 1.5px no-repeat, linear-gradient(currentColor, currentColor) center / 1.5px 12px no-repeat;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  transition: transform var(--dur-mid) var(--ease-out);
}
.qa[open] summary::after { transform: rotate(45deg); }
.qa__a { padding: 0 56px 24px 0; color: var(--muted); }

/* ---------- Контакты в блоке об авторе ---------- */
.copy {
  display: inline-flex; align-items: center; gap: 14px; height: 66px; padding: 0 10px 0 26px;
  border: 1.5px solid var(--line-strong); border-radius: var(--radius-pill);
  font-weight: 600; font-size: 16px; transition: background-color var(--dur-mid);
}
.copy:hover { background: var(--surface); border-color: var(--muted); }
.copy__state { display: inline-grid; place-items: center; height: 46px; padding: 0 15px; border-radius: var(--radius-pill); background: var(--surface-2); color: var(--text); }
.copy.is-copied .copy__state { color: var(--accent); }

/* ---------- Футер ---------- */
.footer { padding: 88px 0 28px; overflow: hidden; background: #07080B; border-top: 1px solid var(--line); }
.footer__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.footer__id p { margin-top: 18px; color: var(--muted); max-width: 26ch; }
.footer__col { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.footer__col h2 { margin-bottom: 8px; }
.footer__col a { transition: color var(--dur-fast); }
.footer__col a:hover { color: var(--accent); }
.footer__col p { color: color-mix(in srgb, var(--text) 82%, transparent); font-size: 15px; }
.footer__giant {
  width: max-content; margin: clamp(56px, 8vw, 110px) 0 18px;
  font-family: var(--font-display); font-weight: 800; font-size: 12vw; line-height: .8; letter-spacing: -0.055em; white-space: nowrap;
  color: #12131A; user-select: none;
}
.footer__giant span { font-weight: 300; margin-left: .1em; color: #181922; }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px 32px; flex-wrap: wrap; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.footer__legal { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer__bottom a:hover { color: var(--text); }

/* ---------- Плавающая кнопка (мобильные) ---------- */
.sticky-cta { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 30; display: none; transform: translateY(140%); transition: transform var(--dur-slow) var(--ease-out); }
.sticky-cta.is-visible { transform: none; }
.sticky-cta .btn { box-shadow: 0 16px 40px -10px rgba(0, 0, 0, .7); }

/* ---------- Появление ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(24px); }

/* ==========================================================================
   Адаптив
   ========================================================================== */
@media (max-width: 1180px) {
  .nav { display: none; }
  .burger { display: inline-block; }
  .header__actions { margin-left: auto; }
  .elements { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .elements > li:last-child { grid-column: auto; }
  .element { min-height: 0; }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .hero__bottom { grid-template-columns: minmax(0, 1fr); }
  .about__grid { grid-template-columns: minmax(0, 1fr); }
  .about__photo { max-width: 460px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; }
  .protocol__line { display: none; }
  .faq__grid { grid-template-columns: minmax(0, 1fr); }
  .element--row { grid-template-columns: auto minmax(0, 1fr); }
  .element--row .element__price { grid-column: 2; }
}

@media (max-width: 640px) {
  .hero { padding-top: 100px; justify-content: flex-start; }
  .header__inner { height: 64px; gap: 10px; }
  .header .autopilot-btn, .header .btn--accent { display: none; }
  .hero__actions .btn { width: 100%; }
  .facts { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; }
  .facts::before { grid-column: 1 / -1; margin-bottom: 4px; }
  .facts li { border: 0; padding: 0; margin: 0; }
  .facts li:last-child { grid-column: 1 / -1; }
  .elements { grid-template-columns: minmax(0, 1fr); }
  .elements > li:last-child { grid-column: auto; }
  .element { min-height: 0; }
  .element--row { grid-template-columns: minmax(0, 1fr); padding: 22px; }
  .element--row .element__price { grid-column: auto; }
  .spec > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .steps { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
  .step { padding: 0 0 36px 40px; }
  .step::before { content: ""; position: absolute; left: 7px; top: 15px; bottom: 0; width: 1px; background: var(--line-strong); }
  .step:last-child::before { display: none; }
  .step__dot { top: 2px; }
  .qa__a { padding-right: 0; }
  .copy { justify-content: space-between; }
  .copy { font-size: 15px; padding-left: 22px; }
  .footer__grid { grid-template-columns: minmax(0, 1fr); }
  .footer { padding-bottom: 96px; }
  .works__meta { justify-items: start; text-align: left; }
  .sticky-cta { display: block; }
}

@media (max-width: 340px) { .logo__word { display: none; } }

/* ==========================================================================
   Меньше движения
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .preloader { display: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* ==================================================================
   Локальная редакция: обычная прокрутка, циклы внутри блоков, Montserrat Black.
   Палитра, характер компонентов и композиция подвала сохранены.
   ================================================================== */
html { scroll-behavior: auto; scroll-padding-top: 0; }
section[id] { scroll-margin-top: 88px; }
.js [data-reveal] { opacity: 1; transform: none; }
.h2 { margin-top: 0; font-weight: 750; letter-spacing: -.035em; line-height: 1.08; }
.hero__title { font-weight: 700; letter-spacing: -.035em; line-height: 1.13; }
.mega__line, .footer__giant { letter-spacing: -.04em; }
.element__sym { letter-spacing: -.04em; }
.element__top { justify-content: flex-end; }
.group-head h3 { font-weight: 700; }
.group-head .mono { letter-spacing: .045em; }
.step h3 { margin-top: 0; font-weight: 700; }
.step.is-lit h3 { color: var(--accent); }
.protocol__line i { transition: transform 1000ms var(--ease-out); }
.process__controls { display: flex; justify-content: flex-end; margin: -22px 0 20px; }

/* Проекты листаются в собственном ряду, а страница скроллится обычно. */
.works__pin, .works.is-static .works__pin {
  min-height: 0; padding: var(--space-section) 0 calc(var(--space-section) * .7);
}
.works__viewport, .works.is-static .works__viewport {
  overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain; scrollbar-width: none;
}
.works__viewport::-webkit-scrollbar { display: none; }
.works__track { transform: none; will-change: auto; padding-bottom: 8px; }
.exp, .works.is-static .exp { width: clamp(300px, 38vw, 600px); scroll-snap-align: start; scroll-margin-left: var(--gutter); }
.works__controls { display: flex; align-items: center; gap: 12px; }
.round-control { width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: 50%; display: grid; place-items: center; transition: background-color 180ms, color 180ms; }
.round-control svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 1.5; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.round-control:hover { background: var(--accent); color: var(--on-accent); }
.round-control:disabled { opacity: .3; cursor: default; }
.motion-toggle { min-width: 74px; min-height: 44px; padding: 8px 12px; border-radius: 24px; color: var(--muted); font-family: var(--font-text); font-size: 13px; line-height: 1.25; transition: color 180ms, background-color 180ms; }
.motion-toggle:hover { color: var(--text); background: var(--surface-2); }
.motion-toggle[aria-pressed="true"] { color: var(--accent); }
.works__fill { transition: transform 600ms var(--ease-out); }

/* Просторный блок об авторе после процесса. */
.about__grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(40px, 6vw, 88px); align-items: center; }
.about__photo { aspect-ratio: 4 / 5.3; }
.about__copy .h2 { font-size: clamp(3.25rem, 6.2vw, 5.5rem); line-height: 1.04; }
.about__copy .lead { max-width: 32ch; margin-top: 32px; font-size: clamp(1.2rem, 1.9vw, 1.6rem); line-height: 1.5; }
.about__text { max-width: 44ch; margin-top: 24px; font-size: 1.125rem; line-height: 1.6; }
.about__actions { margin-top: 36px; gap: 12px; scroll-margin-top: 100px; }
.about__actions .btn { flex: 1 1 230px; padding-inline: 24px; }
.about__actions .copy { flex: 1 1 326px; min-width: 0; max-width: 100%; justify-content: space-between; padding-left: 20px; gap: 10px; }
.copy__txt { min-width: 0; overflow-wrap: anywhere; }
.copy__state { flex-shrink: 0; }
@media (max-width: 900px) {
  .about__grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .about__photo { max-width: 520px; aspect-ratio: 4 / 4.5; }
  .about__copy .h2 { font-size: clamp(2.75rem, 10vw, 4.75rem); }
  .exp, .works.is-static .exp { width: min(84vw, 520px); }
  .process__controls { margin-top: -16px; }
}
@media (max-width: 640px) {
  html { scroll-padding-top: 0; }
  section[id] { scroll-margin-top: 80px; }
  .header__inner { gap: 12px; }
  .menu__nav a { gap: 0; }
  .works__meta { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
  .works__note { max-width: 26ch; font-size: 14px; }
  .works__controls { gap: 6px; flex-shrink: 0; }
  .works__controls .motion-toggle { min-width: 58px; padding-inline: 6px; font-size: 12px; }
  .round-control { width: 38px; height: 44px; }
}
@media (max-width: 440px) {
  .works__meta { display: grid; justify-items: start; }
  .works__controls { gap: 12px; }
  .round-control { width: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .glow i { animation: none; }
  .protocol__line i, .works__fill { transition: none; }
}

/* Валюта и период оплаты остаются читаемыми рядом с суммой. */
.element__price small { font-size: max(.6em, 12px); }

/* Настоящий Black 900 для крупных надписей, заголовков и цен. */
.mega__line, .logo__word, .hero__title, .h2, .menu__nav a,
.element__sym, .element__price, .exp__meta h3,
.group-head h3, .step h3 { font-weight: 900; }
.logo__word b, .footer__giant span { font-weight: 700; }


/* Логотипы из фирменного набора: оригинальные контуры и пропорции. */
.logo__image { display: block; width: 190px; height: auto; }
.header[data-theme="accent"] .logo__image { filter: brightness(0); }
.menu-open .header .logo__image { filter: none; }
.footer__id .logo__image { width: 230px; max-width: 100%; }
.footer__giant { width: 100%; line-height: 0; }
.footer__giant img { width: 100%; height: auto; opacity: .09; }
@media (max-width: 640px) {
  .logo__image { width: 175px; }
}
