/* ============================================================
   Софья Русакова — сайт-портфолио с двумя темами:
   «ночь» — мрачная, брутальная, рентгеновский синий;
   «день» — нежная: молочный, пудра, румянец с её цветного фото
   ============================================================ */
:root, [data-theme='dark'] {
  --bg: #030304;
  --bg-2: #09090c;
  --line: rgba(220, 220, 228, 0.1);
  --line-2: rgba(220, 220, 228, 0.24);
  --text: #dcdce2;
  --text-2: #b4b4bd;
  --muted: #74747e;
  --dim: #3a3a40;
  --ice: #4f6bff;
  --ice-glow: rgba(79, 107, 255, 0.35);
  --ice-soft: rgba(79, 107, 255, 0.1);
  --glow-blend: screen;
  --photo-shade: rgba(3, 3, 4, .8);
  --stage-bg: #060608;
  --overlay: rgba(3, 3, 4, .96);
  --grain: .1;
  --radius: 0px;
  color-scheme: dark;
}
[data-theme='light'] {
  --bg: #fbf7f4;
  --bg-2: #f3ebe6;
  --line: rgba(92, 64, 66, 0.12);
  --line-2: rgba(92, 64, 66, 0.26);
  --text: #3b3233;
  --text-2: #5e5254;
  --muted: #8c7f80;
  --dim: #d4c6c5;
  --ice: #a85f63;            /* румянец, затемнён до читаемого на молочном */
  --ice-glow: rgba(232, 169, 163, 0.55);
  --ice-soft: rgba(232, 169, 163, 0.22);
  --glow-blend: multiply;
  --photo-shade: rgba(251, 247, 244, 0);
  --stage-bg: #f3ebe6;
  --overlay: rgba(251, 247, 244, .97);
  --grain: .035;
  --radius: 28px;
  color-scheme: light;
}
:root {
  --f-head: 'Unbounded', 'Arial Black', sans-serif;
  --f-serif: 'Magic Wix', 'Cormorant Garamond', Georgia, serif;
  --f-body: 'Inter', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;
  --pad: clamp(18px, 4vw, 56px);
  --ease: cubic-bezier(.7, 0, .2, 1);
}

/* рукописный акцентный шрифт (лицензия: см. README) */
@font-face { font-family: 'Magic Wix'; src: url('../fonts/magic-wix.ttf') format('truetype'); font-display: swap; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 16px/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--ice); color: var(--bg); }
:focus-visible { outline: 1px solid var(--ice); outline-offset: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* фон: волны + пиксели (canvas из main.js) */
/* мягкое сияние: два облака света медленно плывут, третье лениво идёт за курсором (вместе с дымом) */
.bg-fx { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.bg-fx i { position: absolute; width: 70vmax; height: 70vmax; border-radius: 50%; background: radial-gradient(circle, var(--aura-1), transparent 62%); animation: drift 40s ease-in-out infinite alternate; }
.bg-fx i:nth-child(1) { left: -25vmax; top: -30vmax; }
.bg-fx i:nth-child(2) { right: -30vmax; bottom: -35vmax; background: radial-gradient(circle, var(--aura-2), transparent 62%); animation-duration: 52s; animation-direction: alternate-reverse; }
.bg-fx i:nth-child(3) { width: 40vmax; height: 40vmax; left: calc(var(--mx, 50) * 1vw - 20vmax); top: calc(var(--my, 50) * 1vh - 20vmax); background: radial-gradient(circle, var(--aura-3), transparent 60%); animation: none; transition: left 2.4s ease-out, top 2.4s ease-out; }
@keyframes drift { to { transform: translate(22vw, 26vh) scale(1.2); } }
:root, [data-theme='dark'] { --aura-1: rgba(79, 107, 255, .13); --aura-2: rgba(92, 60, 170, .12); --aura-3: rgba(170, 185, 255, .07); }
[data-theme='light'] { --aura-1: rgba(240, 186, 180, .5); --aura-2: rgba(214, 200, 240, .45); --aura-3: rgba(255, 214, 196, .55); }
/* зерно поверх всего */
body::after {
  content: ''; position: fixed; inset: -50%; z-index: 9300; pointer-events: none; opacity: var(--grain);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -4%); }
  60% { transform: translate(-4%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}
main, .site-footer { position: relative; z-index: 1; }

/* ---------- дым ---------- */
.fluid-canvas { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 9400; pointer-events: none; mix-blend-mode: screen; }

/* ---------- типографика ---------- */
.mono { font-family: var(--f-mono); font-size: 12px; letter-spacing: .04em; text-transform: lowercase; color: var(--muted); }
.mono b { color: var(--text); font-weight: 500; }
.h-giant {
  font-family: var(--f-head); font-weight: 900; text-transform: uppercase;
  font-size: clamp(48px, 11.5vw, 210px); line-height: .86; letter-spacing: -.045em; margin: 0;
}
.h-section {
  font-family: var(--f-head); font-weight: 800; text-transform: uppercase;
  font-size: clamp(36px, 6.4vw, 104px); line-height: .92; letter-spacing: -.035em; margin: 0;
}
.serif { font-family: var(--f-serif); font-style: normal; font-weight: 400; letter-spacing: 0; text-transform: none; }
.ice { color: var(--ice); text-shadow: 0 0 28px var(--ice-glow); }
.lead { font-size: clamp(17px, 1.5vw, 21px); line-height: 1.55; color: var(--text-2); max-width: 46ch; }
.split-line { display: block; overflow: hidden; padding-bottom: .2em; margin-bottom: -.16em; } /* запас под хвосты рукописных букв (р, у, д) */
.split-char { display: inline-block; will-change: transform; }

/* ---------- шапка ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 9000;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 18px var(--pad); mix-blend-mode: difference;
}
.logo { font-family: var(--f-head); font-weight: 900; font-size: 15px; letter-spacing: -.02em; text-transform: uppercase; }
.logo span { font-family: var(--f-mono); font-weight: 400; font-size: 11px; letter-spacing: .04em; margin-left: 8px; opacity: .6; text-transform: lowercase; }
.nav { display: flex; gap: clamp(14px, 2.4vw, 40px); }
.nav a { font-family: var(--f-mono); font-size: 12px; text-transform: lowercase; position: relative; padding: 4px 0; }
.nav a i { font-style: normal; opacity: .5; margin-right: 6px; }
.nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.nav a:hover::after, .nav a[aria-current='page']::after { transform: scaleX(1); transform-origin: left; }
.burger { display: none; width: 44px; height: 44px; position: relative; }
.burger span { position: absolute; left: 10px; right: 10px; height: 1px; background: #fff; transition: transform .4s var(--ease), top .4s var(--ease); }
.burger span:nth-child(1) { top: 18px; } .burger span:nth-child(2) { top: 26px; }
.menu-open .burger span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.menu-open .burger span:nth-child(2) { top: 22px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 8900; background: var(--bg); display: flex; flex-direction: column; justify-content: center;
  padding: var(--pad); gap: 10px; clip-path: inset(0 0 100% 0); transition: clip-path .7s var(--ease); visibility: hidden;
}
.menu-open .mobile-menu { clip-path: inset(0 0 0 0); visibility: visible; }
.mobile-menu a { font-family: var(--f-head); font-weight: 900; font-size: 12vw; line-height: 1; text-transform: uppercase; letter-spacing: -.04em; }
.mobile-menu a i { font-family: var(--f-mono); font-size: 12px; font-style: normal; color: var(--muted); vertical-align: top; margin-right: 8px; }

/* HUD-подписи по углам экрана */
.hud { position: fixed; z-index: 8000; pointer-events: none; font-family: var(--f-mono); font-size: 11px; color: var(--muted); text-transform: lowercase; }
.hud--bl { left: var(--pad); bottom: 16px; }
.hud--br { right: var(--pad); bottom: 16px; text-align: right; }


/* ---------- кнопки ---------- */
.btn {
  --h: 58px; position: relative; display: inline-flex; align-items: center; gap: 14px; height: var(--h); padding: 0 30px;
  border: 1px solid var(--line-2); border-radius: 999px; font-family: var(--f-mono); font-size: 13px; text-transform: lowercase;
  overflow: hidden; isolation: isolate; transition: color .5s var(--ease), border-color .5s;
}
.btn::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--text); border-radius: inherit; transform: translateY(101%); transition: transform .55s var(--ease); }
.btn:hover { color: var(--bg); border-color: var(--text); }
.btn:hover::before { transform: translateY(0); }
.btn--solid { background: var(--text); color: var(--bg); border-color: var(--text); }
.btn--solid::before { background: var(--ice); }
.btn--solid:hover { border-color: var(--ice); }
.btn .arr { transition: transform .5s var(--ease); }
.btn:hover .arr { transform: translateX(4px) rotate(-45deg); }
.magnetic { will-change: transform; }

/* ---------- HUD-рамка (угловые скобки) ---------- */
.frame { position: relative; }
.frame::before, .frame::after, .frame > .c1, .frame > .c2 {
  content: ''; position: absolute; width: 14px; height: 14px; border: 1px solid var(--text); z-index: 3; pointer-events: none;
  transition: transform .5s var(--ease), border-color .4s;
}
.frame::before { top: -6px; left: -6px; border-right: 0; border-bottom: 0; }
.frame::after { bottom: -6px; right: -6px; border-left: 0; border-top: 0; }
.frame > .c1 { top: -6px; right: -6px; border-left: 0; border-bottom: 0; }
.frame > .c2 { bottom: -6px; left: -6px; border-right: 0; border-top: 0; }
.frame:hover::before { transform: translate(-6px, -6px); border-color: var(--ice); }
.frame:hover::after { transform: translate(6px, 6px); border-color: var(--ice); }
.frame:hover > .c1 { transform: translate(6px, -6px); border-color: var(--ice); }
.frame:hover > .c2 { transform: translate(-6px, 6px); border-color: var(--ice); }

/* ---------- секции ---------- */
.section { padding: clamp(90px, 14vw, 200px) var(--pad); position: relative; }
.section-head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 24px; margin-bottom: clamp(40px, 6vw, 90px); }
.section-head .mono { justify-self: end; text-align: right; }
.kicker { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px; }
.kicker::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--ice); box-shadow: 0 0 12px var(--ice); }

/* ---------- hero ---------- */
.hero { min-height: 100svh; display: grid; align-content: end; padding: 96px var(--pad) clamp(40px, 6vw, 80px); position: relative; overflow: hidden; }
.hero > * { position: relative; z-index: 1; }
.hero__top { display: flex; justify-content: space-between; gap: 20px; margin-bottom: clamp(26px, 4vw, 50px); }
.hero__grid { display: grid; grid-template-columns: 1fr minmax(200px, 19vw); grid-template-areas: 'lead photo' 'name name'; column-gap: clamp(24px, 4vw, 70px); align-items: end; }
.hero__lead { grid-area: lead; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 26px 30px; padding-bottom: clamp(16px, 2vw, 30px); }
.hero__lead .lead { margin: 0; }
.hero__tag { grid-column: 1 / -1; font-size: clamp(32px, 4vw, 68px); line-height: 1.12; margin: 0 0 .15em; max-width: 12em; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__name { grid-area: name; position: relative; z-index: 2; mix-blend-mode: difference; font-size: clamp(44px, 11.6vw, 224px); }
.hero__name .split-line:last-child { padding-left: 4vw; }

.portrait { grid-area: photo; aspect-ratio: 4 / 5; margin-bottom: 1.5vw; } /* фото над именем, без наложения */
.portrait__img { position: absolute; inset: 0; overflow: hidden; background: var(--bg-2); transition: border-radius .8s var(--ease); }
.portrait__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transform: scale(1.15); transition: opacity .9s var(--ease); }
.portrait__img .ph-dark { filter: grayscale(1) contrast(1.22) brightness(.78); }  /* ночью — мрачнее */
[data-theme='dark'] .ph-light, [data-theme='light'] .ph-dark { opacity: 0; }
.portrait__img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, var(--photo-shade)); }
.callout { position: absolute; z-index: 4; font-family: var(--f-mono); font-size: 11px; line-height: 1.45; color: var(--text); white-space: nowrap; text-transform: lowercase; }
.callout::before { content: ''; position: absolute; top: 7px; height: 1px; background: var(--text); width: 46px; }
.callout--t { right: 0; bottom: calc(100% + 18px); text-align: right; }
.callout--t::before { top: auto; bottom: -14px; right: 0; width: 1px; height: 10px; }
.callout i { font-style: normal; color: var(--muted); }
.scan { position: absolute; left: 0; right: 0; height: 1px; top: 0; z-index: 2; background: var(--ice); box-shadow: 0 0 18px 2px var(--ice-glow); animation: scan 5s var(--ease) infinite; }
@keyframes scan { 0%, 100% { top: 4%; opacity: 0; } 10%, 90% { opacity: .9; } 50% { top: 96%; } }

/* ---------- бегущая строка ---------- */
.marquee { border-block: 1px solid var(--line); overflow: hidden; padding: 22px 0; position: relative; z-index: 1; background: var(--bg); }
.marquee__track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.marquee__track span { font-family: var(--f-head); font-weight: 800; font-size: clamp(26px, 3.6vw, 52px); text-transform: uppercase; letter-spacing: -.03em; padding-right: .9em; white-space: nowrap; }
.marquee__track span:nth-child(even) { font-family: var(--f-serif); font-style: normal; font-weight: 400; text-transform: none; color: var(--ice); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- регалии / цифры ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.stat { padding: 30px 24px 34px 0; border-right: 1px solid var(--line); }
.stat + .stat { padding-left: 24px; }
.stat:last-child { border-right: 0; }
.stat__num { font-family: var(--f-head); font-weight: 900; font-size: clamp(44px, 6vw, 96px); line-height: 1; letter-spacing: -.05em; }
.stat__num > span:first-child { white-space: nowrap; } /* разряды-барабаны не должны переноситься */
.odo { display: inline-block; height: 1em; overflow: hidden; vertical-align: top; }
.odo__col, .odo__col span { display: block; height: 1em; }
.odo__col { height: auto; }
.stat__num small { display: block; font-family: var(--f-mono); font-weight: 400; font-size: 12px; letter-spacing: .04em; margin-top: 10px; color: var(--ice); }
.stat p { margin: 12px 0 0; color: var(--muted); font-size: 14px; max-width: 24ch; }

.manifesto { font-family: var(--f-head); font-weight: 700; text-transform: uppercase; font-size: clamp(26px, 3.8vw, 60px); line-height: 1.05; letter-spacing: -.03em; max-width: 22ch; margin: 0 0 clamp(60px, 8vw, 120px); }
.manifesto .serif { text-transform: none; color: var(--ice); }
.manifesto .dim { color: var(--dim); }

/* почему я */
.why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.why__item { background: var(--bg); padding: clamp(26px, 3vw, 44px); min-height: 300px; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; transition: background .5s; }
.why__item:hover { background: var(--bg-2); }
.why__item h3 { font-family: var(--f-head); font-weight: 800; font-size: clamp(20px, 2vw, 28px); text-transform: uppercase; letter-spacing: -.02em; line-height: 1.05; margin: 0 0 14px; }
.why__item p { margin: 0; color: var(--muted); }

/* таймлайн опыта */
.timeline { border-top: 1px solid var(--line); }
.tl-row { display: grid; grid-template-columns: 160px 1.1fr 1.4fr 40px; gap: 24px; align-items: baseline; padding: 30px 0; border-bottom: 1px solid var(--line); position: relative; transition: padding .5s var(--ease); }
.tl-row::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, var(--ice-soft), transparent 70%); opacity: 0; transition: opacity .5s; pointer-events: none; }
.tl-row:hover { padding-left: 16px; }
.tl-row:hover::before { opacity: 1; }
.tl-row h3 { font-family: var(--f-head); font-weight: 800; text-transform: uppercase; font-size: clamp(20px, 2.4vw, 36px); letter-spacing: -.03em; line-height: 1; margin: 0; }
.tl-row h3 small { display: block; font-family: var(--f-mono); font-weight: 400; font-size: 12px; letter-spacing: .02em; color: var(--ice); text-transform: lowercase; margin-top: 10px; }
.tl-row p { margin: 0; color: var(--muted); font-size: 15px; }
.tl-row .idx { justify-self: end; }

/* навыки */
.skills { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 80px); }
.tags { display: flex; flex-wrap: wrap; gap: 10px; }
.tag { border: 1px solid var(--line-2); border-radius: 999px; padding: 10px 18px; font-size: 14px; transition: background .4s, color .4s, border-color .4s; }
.tag:hover { background: var(--text); color: var(--bg); border-color: var(--text); }
.edu { border: 1px solid var(--line); padding: clamp(24px, 3vw, 40px); margin-top: 30px; }
.edu h3 { font-family: var(--f-head); font-weight: 800; text-transform: uppercase; letter-spacing: -.02em; font-size: clamp(18px, 1.8vw, 26px); margin: 10px 0 8px; line-height: 1.1; }
.edu p { margin: 0; color: var(--muted); }

/* ---------- работы ---------- */
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filters button { font-family: var(--f-mono); font-size: 12px; text-transform: lowercase; padding: 10px 16px; border: 1px solid var(--line-2); border-radius: 999px; transition: background .4s, color .4s; }
.filters button[aria-pressed='true'], .filters button:hover { background: var(--text); color: var(--bg); }
.works-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 4vw, 64px) clamp(18px, 3vw, 48px); padding-bottom: 8vw; }
.work { cursor: pointer; display: block; text-align: left; width: 100%; padding: 0; position: relative; }
.work[data-pos='1'] { top: 8vw; } /* правая колонка смещена вниз — «рваная» сетка */
.work.is-feature { grid-column: 1 / -1; top: 0; }
.work.is-hidden { display: none; }
.work__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-2); position: relative; transition: border-radius .8s var(--ease); }
.work.is-feature .work__media { aspect-ratio: 16 / 8; }
.work__media img, .work__media video { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.08) brightness(.8); transform: scale(1.04); transition: filter .8s var(--ease), transform 1.2s var(--ease); }
.work:hover .work__media img, .work:hover .work__media video, .work:focus-visible .work__media img { filter: none; transform: scale(1); }
.work__media::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), var(--ice-glow), transparent 40%); opacity: 0; transition: opacity .5s; mix-blend-mode: var(--glow-blend); z-index: 4; pointer-events: none; }
.work:hover .work__media::after { opacity: 1; }
.work__meta { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: baseline; margin-top: 20px; }
.work__title { font-family: var(--f-head); font-weight: 800; text-transform: uppercase; letter-spacing: -.03em; font-size: clamp(20px, 2.2vw, 34px); line-height: 1; margin: 0; }
.work__desc { color: var(--muted); font-size: 14px; margin: 10px 0 0; max-width: 52ch; grid-column: 2 / -1; }
.work__view { position: absolute; z-index: 4; left: 50%; top: 50%; width: 110px; height: 110px; margin: -55px 0 0 -55px; border-radius: 50%; background: var(--text); color: var(--bg); display: grid; place-items: center; font-family: var(--f-mono); font-size: 12px; transform: scale(0); transition: transform .5s var(--ease); pointer-events: none; }
.work:hover .work__view { transform: scale(1); }

/* «живой» мокап браузера (Шанхай) */
.stage { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(60% 70% at 50% 60%, var(--ice-glow), transparent 70%), var(--stage-bg); overflow: hidden; }
.browser { position: relative; width: 64%; border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; background: #000; box-shadow: 0 40px 120px -30px rgba(79, 107, 255, .55), 0 0 0 1px rgba(0, 0, 0, .6); transition: transform 1s var(--ease); }
.work:hover .browser { transform: translateY(-6px) scale(1.015); }
.browser__bar { position: relative; display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; background: #141418; border-bottom: 1px solid var(--line); }
.browser__bar i { width: 9px; height: 9px; border-radius: 50%; background: #2c2c33; }
.browser__bar i:first-child { background: var(--ice); box-shadow: 0 0 8px var(--ice); }
.browser__url { margin: 0 auto; font-family: var(--f-mono); font-size: 11px; color: var(--muted); background: #0b0b0e; border-radius: 6px; padding: 3px 40px; }
.browser__load { position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; background: var(--ice); box-shadow: 0 0 10px var(--ice); transform: scaleX(0); transform-origin: left; opacity: 0; }
.browser__bar.is-loading .browser__load { animation: load .9s var(--ease); }
@keyframes load { 0% { transform: scaleX(0); opacity: 1; } 80% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }
.browser__tabs { display: flex; gap: 2px; padding: 6px 10px 0; background: #0e0e12; }
.browser__tabs span { font-family: var(--f-mono); font-size: 11px; color: var(--muted); padding: 6px 14px; border-radius: 8px 8px 0 0; transition: background .4s, color .4s; }
.browser__tabs span.is-on { background: #000; color: var(--text); box-shadow: inset 0 2px 0 var(--ice); }
.browser__screen { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #000; }
.browser__screen img, .work .browser__screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; filter: none; transform: none; clip-path: inset(100% 0 0 0); transition: clip-path .9s var(--ease); }
.browser__screen img.is-on { clip-path: inset(0 0 0 0); z-index: 2; animation: pan 3.2s ease-out both; }
.browser__screen img.is-out { clip-path: inset(0 0 0 0); z-index: 1; filter: brightness(.35) blur(2px); transition: filter .9s; }
@keyframes pan { from { transform: scale(1.08) translateY(2%); } to { transform: scale(1); } }
/* кейс «Этот сайт» выплывает из тумана: края растворяются в фоне, без углов и HUD-скобок */
.work.is-feature .work__media { background: transparent;
  /* две мягкие маски (по ширине и по высоте) — края уходят в фон до нуля, без видимой границы */
  -webkit-mask-image: linear-gradient(to right, transparent, #000 14%, #000 86%, transparent), linear-gradient(to bottom, transparent, #000 9%, #000 91%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent, #000 14%, #000 86%, transparent), linear-gradient(to bottom, transparent, #000 9%, #000 91%, transparent);
  mask-composite: intersect; }
.work.is-feature .work__media::before, .work.is-feature .work__media::after, .work.is-feature .work__media > .c1, .work.is-feature .work__media > .c2 { display: none; }
.work.is-feature .stage { transition: filter 2.2s ease, opacity 2.2s ease, transform 2.2s var(--ease); }
.work.is-feature .stage.is-fog { filter: blur(22px); opacity: .25; transform: scale(1.04); } /* пока не доскроллили — в тумане */
/* шторки: закрывают сайт, при наведении собираются к краям (на телефоне — сами, когда карточка на экране) */
.drape { position: absolute; top: 0; bottom: 0; width: 50.5%; z-index: 5; pointer-events: none; transition: transform 1.2s var(--ease);
  background: var(--bg); } /* ровно в цвет фона — шторка незаметна, пока не раскроется */
.drape--l { left: 0; transform-origin: left; }
.drape--r { right: 0; transform-origin: right; }
.work:hover .drape, .work:focus-visible .drape, .stage.is-open .drape { transform: scaleX(.06); }
.drape-hint { position: absolute; z-index: 6; left: 50%; top: 50%; transform: translate(-50%, -50%); font-family: var(--f-mono); font-size: 12px; color: var(--text); background: var(--bg); padding: 8px 16px; border-radius: 999px; transition: opacity .5s; pointer-events: none; }
.work:hover .drape-hint, .work:focus-visible .drape-hint, .stage.is-open .drape-hint { opacity: 0; }

/* лайтбокс */
.lightbox { border: 0; padding: 0; width: 100vw; height: 100vh; max-width: none; max-height: none; background: var(--overlay); color: var(--text); }
.lightbox::backdrop { background: rgba(0, 0, 0, .7); }
.lightbox[open] { display: grid; grid-template-rows: auto 1fr; animation: lbIn .5s var(--ease); }
@keyframes lbIn { from { opacity: 0; } }
.lightbox__bar { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 18px var(--pad); border-bottom: 1px solid var(--line); }
.lightbox__body { overflow: auto; padding: var(--pad); display: grid; place-items: start center; }
.lightbox__body img, .lightbox__body video { max-width: min(1400px, 100%); max-height: 76vh; width: auto; height: auto; }
.lightbox__close { font-family: var(--f-mono); font-size: 12px; border: 1px solid var(--line-2); border-radius: 999px; padding: 10px 18px; }

/* ---------- услуги и прайс ---------- */
.svc-group { display: grid; grid-template-columns: 300px 1fr; gap: 30px; padding: 50px 0; border-top: 1px solid var(--line); }
.svc-group__title { font-family: var(--f-head); font-weight: 800; text-transform: uppercase; letter-spacing: -.03em; font-size: clamp(24px, 2.6vw, 40px); line-height: 1; margin: 0; position: sticky; top: 100px; align-self: start; }
.svc-group__title small { display: block; margin-top: 12px; }
.svc { display: grid; grid-template-columns: 1fr auto; gap: 8px 30px; padding: 26px 0; border-bottom: 1px solid var(--line); position: relative; }
.svc:last-child { border-bottom: 0; }
.svc h3 { margin: 0; font-size: clamp(18px, 1.6vw, 24px); font-weight: 600; letter-spacing: -.01em; }
.svc__price { font-family: var(--f-head); font-weight: 800; font-size: clamp(20px, 2vw, 30px); letter-spacing: -.03em; white-space: nowrap; text-align: right; }
.svc__price small { font-family: var(--f-mono); font-weight: 400; font-size: 12px; color: var(--muted); margin-right: 6px; letter-spacing: 0; }
.svc p { margin: 0; color: var(--muted); font-size: 15px; max-width: 60ch; }
.svc .mono { text-align: right; }


.steps { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line); }
.step { padding: 30px 20px 0 0; border-right: 1px solid var(--line); min-height: 240px; }
.step + .step { padding-left: 20px; }
.step:last-child { border-right: 0; }
.step__n { font-family: var(--f-head); font-weight: 900; font-size: 64px; line-height: 1; letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 1px var(--line-2); transition: color .5s, -webkit-text-stroke-color .5s; }
.step:hover .step__n { color: var(--ice); -webkit-text-stroke-color: var(--ice); }
.step h3 { font-size: 18px; margin: 24px 0 8px; font-weight: 600; }
.step p { margin: 0; color: var(--muted); font-size: 14px; }

.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; padding: 26px 0; font-size: clamp(17px, 1.6vw, 22px); font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: var(--f-mono); color: var(--ice); transition: transform .4s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 26px; color: var(--muted); max-width: 70ch; }

/* ---------- контакты и форма ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 110px); }
.big-link { display: block; font-family: var(--f-head); font-weight: 900; text-transform: uppercase; letter-spacing: -.04em; font-size: clamp(30px, 4.4vw, 70px); line-height: 1; padding: 20px 0; border-bottom: 1px solid var(--line); position: relative; transition: color .4s, padding .5s var(--ease); }
.big-link small { display: block; font-family: var(--f-mono); font-size: 12px; font-weight: 400; letter-spacing: 0; color: var(--muted); text-transform: lowercase; margin-bottom: 10px; }
.big-link:hover { color: var(--ice); padding-left: 14px; }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 0 30px; }
.field { position: relative; grid-column: span 1; padding-top: 22px; }
.field--full { grid-column: 1 / -1; }
.field label { font-family: var(--f-mono); font-size: 12px; color: var(--muted); text-transform: lowercase; }
.field input, .field select, .field textarea {
  width: 100%; display: block; background: transparent; border: 0; border-bottom: 1px solid var(--line-2); color: var(--text);
  font: 400 18px/1.4 var(--f-body); padding: 12px 0 14px; border-radius: 0; transition: border-color .4s; appearance: none;
}
.field select { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23ededed' stroke-width='1.2' fill='none'/%3E%3C/svg%3E") no-repeat right 4px center; cursor: pointer; }
.field select option { background: var(--bg-2); color: var(--text); }
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ice); }
.field input:user-invalid, .field textarea:user-invalid { border-color: #ff6b6b; }
/* бриф: шаги-разделители и чипсы с выбором нескольких вариантов */
.brief__step { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 14px; margin: 70px 0 4px; font-family: var(--f-head); font-weight: 800; text-transform: uppercase; letter-spacing: -.02em; font-size: clamp(22px, 2.4vw, 34px); }
.brief__step:first-child { margin-top: 0; }
[data-theme='light'] .brief__step { font-weight: 300; }
.chips { border: 0; margin: 0; padding: 22px 0 0; display: flex; flex-wrap: wrap; gap: 10px; min-width: 0; }
.chips legend { float: left; width: 100%; padding: 0 0 12px; font-family: var(--f-mono); font-size: 12px; color: var(--muted); text-transform: lowercase; }
.chip { position: relative; cursor: pointer; user-select: none; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip:has(input:checked) { background: var(--ice); border-color: var(--ice); color: var(--bg); }
.chip:has(input:focus-visible) { outline: 1px solid var(--ice); outline-offset: 3px; }
.consent { grid-column: 1 / -1; display: flex; gap: 12px; align-items: flex-start; margin: 28px 0; font-size: 14px; color: var(--muted); cursor: pointer; }
.consent input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--ice); flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.form__status { font-family: var(--f-mono); font-size: 13px; color: var(--muted); }
.form__status a { color: var(--ice); text-decoration: underline; }
.form.is-sending .btn { opacity: .5; pointer-events: none; }
.form-done { display: none; text-align: left; }
.form-done.is-on { display: block; animation: lbIn .8s var(--ease); }
.form-done h3 { font-family: var(--f-head); font-weight: 900; text-transform: uppercase; letter-spacing: -.04em; font-size: clamp(36px, 5vw, 80px); line-height: .95; margin: 0 0 20px; }

/* ---------- юридический текст ---------- */
.legal { max-width: 780px; color: var(--text-2); }
.legal h2 { font-family: var(--f-head); font-weight: 800; text-transform: uppercase; letter-spacing: -.02em; font-size: clamp(18px, 1.8vw, 24px); color: var(--text); margin: 50px 0 14px; }
.legal p, .legal li { margin: 0 0 12px; }
.legal ul { padding-left: 20px; margin: 0 0 12px; }
.legal a { color: var(--ice); text-decoration: underline; }
.consent a { color: var(--text); text-decoration: underline; }

/* ---------- финальный CTA + подвал ---------- */
.cta-final { padding: clamp(100px, 16vw, 240px) var(--pad); text-align: center; position: relative; overflow: hidden; }
.cta-final .h-giant { font-size: clamp(42px, 9.6vw, 180px); }
.cta-final .btn { margin-top: 50px; }
.glow-orb { position: absolute; width: 60vw; height: 60vw; left: 50%; top: 50%; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, var(--ice-soft), transparent 60%); pointer-events: none; z-index: -1; filter: blur(20px); }
.site-footer { border-top: 1px solid var(--line); padding: 30px var(--pad) 60px; display: flex; flex-wrap: wrap; gap: 20px 40px; justify-content: space-between; align-items: center; background: var(--bg); }
.site-footer a:hover { color: var(--ice); }


/* reveal */
/* ---------- прелоадер и шторка ---------- */
.preloader { display: none; }
.is-loading .preloader { position: fixed; inset: 0; z-index: 9900; background: var(--bg); display: flex; flex-direction: column; justify-content: space-between; padding: 22px var(--pad); }
.preloader__count { font-family: var(--f-head); font-weight: 900; font-size: clamp(90px, 22vw, 380px); line-height: .8; letter-spacing: -.06em; align-self: flex-end; }
.preloader__bar { height: 1px; background: var(--line); position: relative; }
.preloader__bar i { position: absolute; inset: 0; background: var(--ice); box-shadow: 0 0 14px var(--ice); transform-origin: left; transform: scaleX(0); }
.curtain { position: fixed; inset: 0; z-index: 9850; background: var(--bg-2); transform: translateY(100%); pointer-events: none; display: grid; place-items: center; }
.curtain span { font-family: var(--f-serif); font-style: normal; font-size: clamp(40px, 6vw, 90px); color: var(--ice); }
.is-loading .curtain { transform: translateY(0); }

/* reveal */
[data-reveal] { opacity: 0; transform: translateY(50px); }
.no-js [data-reveal], .reduced [data-reveal] { opacity: 1; transform: none; }

/* page hero (внутренние страницы) */
.page-hero { padding: clamp(140px, 18vw, 240px) var(--pad) clamp(50px, 6vw, 90px); position: relative; overflow: hidden; }
.page-hero .lead { margin-top: 30px; }
.page-hero__row { display: flex; justify-content: space-between; align-items: end; gap: 30px; flex-wrap: wrap; margin-top: 40px; }

/* ---------- адаптив ---------- */
/* ---------- 404: рыжий кот сбивает клубок-«0» ---------- */
.e404 { min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 110px var(--pad) 70px; }
.e404__stage { display: flex; flex-direction: column; align-items: center; margin: 6px 0 26px; }
.cat { width: clamp(170px, 19vw, 260px); height: auto; overflow: visible; position: relative; z-index: 2; margin-bottom: clamp(-34px, -2.4vw, -14px); }
.cat__shadow { fill: rgba(0, 0, 0, .28); }
.e404__digits { display: flex; align-items: center; gap: .06em; font-family: var(--f-head); font-weight: 900; font-size: clamp(110px, 21vw, 320px); line-height: .8; letter-spacing: -.05em; }
.yarn { width: .8em; height: .8em; overflow: visible; animation: yarn-hit 3.2s ease-in-out infinite; }
.cat__tail { transform-box: view-box; transform-origin: 200px 236px; animation: tail 2.4s ease-in-out infinite alternate; }
.cat__eye { transform-box: fill-box; transform-origin: center; animation: blink 4.6s infinite; }
.cat__ear--r { transform-box: fill-box; transform-origin: 30% 100%; animation: ear 5.2s infinite; }
.cat__paw { transform-box: fill-box; transform-origin: 50% 0; animation: swat 3.2s ease-in-out infinite; }
@keyframes tail { from { transform: rotate(-7deg); } to { transform: rotate(9deg); } }
@keyframes blink { 0%, 91%, 100% { transform: scaleY(1); } 94% { transform: scaleY(.08); } }
@keyframes ear { 0%, 84%, 100% { transform: rotate(0); } 87% { transform: rotate(14deg); } 90% { transform: rotate(-4deg); } 93% { transform: rotate(0); } }
/* лапа замахивается и бьёт вниз — в тот же момент клубок откатывается (одна длительность 3.2 с) */
@keyframes swat { 0%, 30%, 72%, 100% { transform: translate(0, 0) rotate(0); } 42% { transform: translate(6px, -16px) rotate(-20deg); } 50% { transform: translate(3px, 30px) rotate(8deg); } 60% { transform: translate(0, 8px) rotate(0); } }
@keyframes yarn-hit { 0%, 48%, 100% { transform: translateX(0) rotate(0); } 56% { transform: translateX(.07em) rotate(40deg); } 68% { transform: translateX(-.02em) rotate(-12deg); } 80% { transform: translateX(0) rotate(0); } }
.e404__title { font-family: var(--f-head); font-weight: 800; text-transform: uppercase; letter-spacing: -.03em; font-size: clamp(26px, 3.6vw, 54px); line-height: 1; margin: 0 0 18px; }
.e404__lead { margin: 0 auto 30px; }
.e404__links { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
[data-theme='light'] :is(.e404__digits, .e404__title) { font-weight: 300; }
[data-theme='light'] .cat__shadow { fill: rgba(150, 90, 80, .18); }

/* ---------- уведомление о cookies ---------- */
.cookie { position: fixed; z-index: 9500; left: 50%; bottom: 20px; transform: translateX(-50%); width: min(680px, calc(100% - 2 * var(--pad))); display: flex; align-items: center; gap: 20px; padding: 16px 18px 16px 22px; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 20px; box-shadow: 0 20px 60px -20px rgba(0, 0, 0, .5); font-size: 14px; line-height: 1.5; color: var(--text-2); }
.cookie p { margin: 0; }
.cookie a { color: var(--text); text-decoration: underline; }
.cookie .btn { --h: 44px; padding: 0 22px; flex: none; }
@media (max-width: 560px) { .cookie { flex-direction: column; align-items: stretch; text-align: left; } .cookie .btn { justify-content: center; } }
.consent--opt { margin-top: -14px; }
.legal-links a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- переключатель темы ---------- */
.theme-toggle { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 16px; border: 1px solid rgba(255, 255, 255, .45); border-radius: 999px; font-family: var(--f-mono); font-size: 12px; text-transform: lowercase; color: #fff; }
.theme-toggle__dot { position: relative; width: 14px; height: 14px; border-radius: 50%; background: #fff; overflow: hidden; }
.theme-toggle__dot::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: #000; transform: translateX(45%); transition: transform .6s var(--ease); } /* полумесяц → полная луна */
[data-theme='light'] .theme-toggle__dot::after { transform: translateX(110%); }
.header-right { display: flex; align-items: center; gap: 10px; }
/* шапка в режиме difference: рисуем её белым в обеих темах, инверсия сделает остальное */
.site-header { color: #fff; }
.site-header .btn { border-color: rgba(255, 255, 255, .45); }
.site-header .btn::before { background: #fff; }
.site-header .btn:hover { color: #000; border-color: #fff; }

/* плавная смена темы (класс ставится на .8 с при переключении) */
html.theme-anim, html.theme-anim *, html.theme-anim *::before, html.theme-anim *::after {
  transition: background-color .8s ease, color .8s ease, border-color .8s ease, box-shadow .8s ease, opacity .8s ease, border-radius .8s var(--ease), filter .8s ease !important;
}

/* ---------- «ночь»: мрачнее — виньетка по краям ---------- */
[data-theme='dark'] body::before { content: ''; position: fixed; inset: 0; z-index: 9250; pointer-events: none; background: radial-gradient(120% 95% at 50% 42%, transparent 42%, rgba(0, 0, 0, .78) 100%); }

/* ---------- «день»: нежные, другие элементы ---------- */
[data-theme='light'] :is(.h-giant, .h-section, .manifesto, .stat__num, .why__item h3, .tl-row h3, .edu h3, .work__title, .svc-group__title, .svc__price, .big-link, .form-done h3, .step__n, .preloader__count, .mobile-menu a, .legal h2, .marquee__track span:nth-child(odd)) { font-weight: 300; letter-spacing: -.03em; }
[data-theme='light'] .hero__name { mix-blend-mode: normal; }
[data-theme='light'] .frame::before, [data-theme='light'] .frame::after, [data-theme='light'] .frame > .c1, [data-theme='light'] .frame > .c2 { opacity: 0; }  /* без HUD-скобок */
[data-theme='light'] .scan { display: none; }
[data-theme='light'] :is(.work__media, .edu, .why__item, .browser, .lightbox__body img) { border-radius: var(--radius); }
[data-theme='light'] .why { gap: 16px; background: none; border: 0; }
[data-theme='light'] :is(.why__item, .edu) { background: var(--bg-2); border-color: transparent; }
[data-theme='light'] .work__media img { filter: saturate(.8) brightness(1.02); }
[data-theme='light'] .work:hover .work__media img { filter: none; }
[data-theme='light'] .marquee { background: var(--bg-2); }
[data-theme='light'] .kicker::before { box-shadow: 0 0 12px var(--ice-glow); }
[data-theme='light'] .field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%233b3233' stroke-width='1.2' fill='none'/%3E%3C/svg%3E"); }
/* дым днём — пудровый: инвертируем «белый на чёрном» в «мягкий на молочном» */
[data-theme='light'] .fluid-canvas { mix-blend-mode: multiply; filter: invert(1) sepia(.55) hue-rotate(305deg) saturate(1.7); opacity: .4; }

/* ---------- цветок (финал главной): днём раскрывается, ночью закрывается ---------- */
.flower { position: absolute; left: 50%; bottom: -4%; width: min(760px, 92vw); transform: translateX(-50%); z-index: -1; pointer-events: none; }
.flower svg { width: 100%; height: auto; display: block; overflow: visible; }
/* ночью — полупрозрачный «рентген», как лилии в референсах; днём — живой розовый пион */
[data-theme='dark'] .flower { mix-blend-mode: screen; filter: drop-shadow(0 0 22px rgba(79, 107, 255, .4));
  --p-base: rgba(110, 130, 255, .6); --p-mid: rgba(150, 168, 255, .2); --p-tip: rgba(225, 232, 255, .06); --p-edge: rgba(210, 220, 255, .65); --p-vein: rgba(220, 228, 255, .35);
  --sh-d: rgba(0, 0, 12, .35); --sh-l: rgba(255, 255, 255, .14); --fil: rgba(200, 212, 255, .6); --anther: rgba(235, 240, 255, .95);
  --core: rgba(170, 190, 255, .35); }
[data-theme='light'] .flower { filter: drop-shadow(0 24px 40px rgba(200, 120, 128, .28));
  --p-base: #e2808d; --p-mid: #f6bfc2; --p-tip: #fff6f4; --p-edge: rgba(205, 118, 130, .45); --p-vein: rgba(196, 100, 115, .22);
  --sh-d: rgba(140, 50, 70, .22); --sh-l: rgba(255, 255, 255, .55); --fil: #f2d9a8; --anther: #d9a03c;
  --core: rgba(255, 214, 150, .55); }

@media (max-width: 1100px) {
  .callout { display: none; }
  .tl-row { grid-template-columns: 110px 1fr; }
  .tl-row p { grid-column: 2; }
  .tl-row .idx { display: none; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step { border-right: 0; border-bottom: 1px solid var(--line); padding: 26px 0 30px !important; min-height: 0; }
}
@media (max-width: 860px) {
  .nav, .site-header .btn { display: none; }
  .burger { display: block; }
  .skills, .contact-grid, .svc-group { grid-template-columns: 1fr; }
  .hero__grid { grid-template-columns: 1fr; grid-template-areas: 'photo' 'name' 'lead'; }
  .hero__lead { padding: 30px 0 0; grid-template-columns: 1fr; }
  .portrait { max-width: 420px; width: 72%; justify-self: end; margin-bottom: 16px; }
  .hero__name { font-size: 12vw; } /* «РУСАКОВА» ≈ 7.2em шириной */
  .hero__name .split-line:last-child { padding-left: 0; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { border-bottom: 1px solid var(--line); padding-left: 0 !important; padding-right: 14px; }
  .stat:nth-child(2n) { border-right: 0; padding-left: 14px !important; }
  .why { grid-template-columns: 1fr; }
  .why__item { min-height: 0; }
  .works-grid { grid-template-columns: 1fr; }
  .work, .work[data-pos] { grid-column: 1 / -1; top: 0; }
  .works-grid { padding-bottom: 0; }
  .work.is-feature .work__media { aspect-ratio: 4 / 3; }
  .browser { width: 86%; }
  .browser__tabs span { padding: 5px 8px; font-size: 10px; }
  .browser__url { padding: 3px 14px; }
  .work__view { display: none; }
  .hud { display: none; }
  .svc-group__title { position: static; }
  .section-head { grid-template-columns: 1fr; }
  .section-head .mono { justify-self: start; text-align: left; }
}
@media (max-width: 560px) {
  .form { grid-template-columns: 1fr; }
  .field { grid-column: 1 / -1; }
  .svc { grid-template-columns: 1fr; }
  .svc__price, .svc .mono { text-align: left; }
  .steps { grid-template-columns: 1fr; }
  .btn { --h: 52px; padding: 0 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .scan, body::after { display: none; }
}
