/* =========================================================
   ПЕРВЫЙ КОМПЬЮТЕРНЫЙ — лендинг
   Палитра по брендбуку: Onyx / Ice / Paper / Scarlet (+ Steel, Flame, Grey)
   ========================================================= */
:root {
  --onyx: #0D1117;
  --onyx-2: #10151C;
  --steel: #1A222C;
  --steel-2: #151C24;
  --ice: #E6EDF6;
  --paper: #F2EEE5;
  --scarlet: #D42315;
  --scarlet-hover: #B81D10;
  --flame: #FF4433;        /* мелкий красный текст на тёмном — для контраста */
  --grey: #8896A6;
  --ink: #0D1117;
  --muted: #A3B0BF;
  --line: rgba(230, 237, 246, .10);
  --line-2: rgba(230, 237, 246, .18);

  --f-head: 'Oswald', 'Arial Narrow', Arial, sans-serif;
  --f-body: 'IBM Plex Sans', 'Segoe UI', Arial, sans-serif;

  --radius: 18px;
  --radius-lg: 26px;
  --container: 1280px;
  --gutter: clamp(16px, 4vw, 56px);
  --header-h: 84px;

  --shadow-card: 0 30px 60px -20px rgba(0, 0, 0, .7), 0 12px 24px -12px rgba(0, 0, 0, .6);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) - 8px); }
body {
  margin: 0;
  background: var(--onyx);
  color: var(--ice);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--f-head); font-weight: 700; text-transform: uppercase; letter-spacing: .01em; line-height: 1.02; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

:focus-visible { outline: 2px solid var(--flame); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; background: var(--scarlet); color: #fff; border-radius: 10px; text-decoration: none;
  transition: top .2s;
}
.skip-link:focus { top: 16px; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

.eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--f-body); font-size: 13px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 20px;
}
.eyebrow .num { color: var(--flame); }
.eyebrow .num::after { content: ''; display: inline-block; width: 28px; height: 2px; background: var(--scarlet); vertical-align: middle; margin-left: 12px; }
.eyebrow-dark { color: #56606C; }
.eyebrow-dark .num { color: var(--scarlet); }

.h2 { font-size: clamp(34px, 4.6vw, 64px); }
.accent-text { color: var(--flame); }
.lead { font-size: clamp(17px, 1.35vw, 20px); color: var(--muted); max-width: 560px; margin-top: 22px; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px; border-radius: 999px;
  font-family: var(--f-body); font-weight: 600; font-size: 16px; line-height: 1;
  text-decoration: none; white-space: nowrap;
  border: 1.5px solid transparent;
  transition: background-color .25s, border-color .25s, color .25s, transform .25s var(--ease-out), box-shadow .25s;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary { background: var(--scarlet); color: #fff; box-shadow: 0 10px 30px -8px rgba(212, 35, 21, .7); }
.btn-primary:hover { background: var(--scarlet-hover); box-shadow: 0 14px 36px -8px rgba(212, 35, 21, .85); }
.btn-outline { border-color: rgba(230, 237, 246, .35); color: var(--ice); }
.btn-outline:hover { border-color: var(--ice); background: rgba(230, 237, 246, .06); }
.btn-outline-dark { border-color: rgba(13, 17, 23, .3); color: var(--ink); }
.btn-outline-dark:hover { border-color: var(--ink); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--paper); }
.btn-outline-light { border-color: rgba(255, 255, 255, .6); color: #fff; }
.btn-outline-light:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }
.btn-lg { min-height: 60px; padding: 0 44px; font-size: 17px; letter-spacing: .08em; text-transform: uppercase; }
.btn-sm { min-height: 44px; padding: 0 22px; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.text-link { color: var(--flame); font-weight: 600; text-decoration: none; display: inline-block; margin-top: 14px; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Логотип ---------- */
.logo { display: inline-flex; align-items: stretch; gap: 14px; text-decoration: none; color: var(--ice); }
.logo-mark { height: 46px; width: auto; flex: none; filter: drop-shadow(0 0 14px rgba(255, 68, 51, .35)); }
.logo-word { display: flex; flex-direction: column; justify-content: space-between; height: 46px; }
.logo-word b { font-family: var(--f-head); font-weight: 700; font-size: 35px; line-height: .8; letter-spacing: .015em; margin-top: -1px; }
.logo-word i { font-style: normal; font-family: var(--f-head); font-weight: 500; font-size: 10.5px; line-height: 1; letter-spacing: .42em; margin-right: -.42em; }
.logo-sm .logo-mark, .logo-sm .logo-word { height: 38px; }
.logo-sm .logo-word b { font-size: 29px; }
.logo-sm .logo-word i { font-size: 8.6px; }

/* ---------- Шапка ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  display: flex; align-items: center;
  transition: background-color .35s, box-shadow .35s, backdrop-filter .35s;
}
.site-header.is-scrolled {
  background: rgba(13, 17, 23, .82);
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 1px 0 var(--line);
}
.header-row { display: flex; align-items: center; gap: 24px; }
.main-nav { display: flex; align-items: center; gap: clamp(20px, 3vw, 48px); margin-left: clamp(24px, 5vw, 80px); flex: 1; }
.main-nav > a:not(.btn) {
  position: relative; text-decoration: none; font-size: 14px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; padding: 10px 0;
}
.main-nav > a:not(.btn)::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 4px; height: 2px; background: var(--scarlet);
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease-out);
}
.main-nav > a:not(.btn):hover::after, .main-nav > a.is-current::after { transform: scaleX(1); }
.nav-call { border-color: var(--scarlet); color: #fff; }
.nav-call:hover { background: var(--scarlet); border-color: var(--scarlet); }
.icon-btn { display: none; width: 48px; height: 48px; border-radius: 50%; align-items: center; justify-content: center; border: 1.5px solid var(--line-2); flex: none; }
.icon-btn svg { width: 20px; height: 20px; fill: var(--ice); }
.header-call { border-color: var(--scarlet); margin-left: auto; }
.burger { flex-direction: column; gap: 6px; }
.burger span { display: block; width: 18px; height: 2px; background: var(--ice); transition: transform .3s; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* =========================================================
   1. HERO
   ========================================================= */
.hero { position: relative; background: var(--onyx); }
.hero-sticky { position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden; isolation: isolate; }
.has-pin .hero { height: 280vh; height: 280svh; }
.has-pin .hero-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; }

/* Кадр 1672×941 — прижат вправо, масштабируется по высоте экрана */
.hero-stage { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-frame {
  position: absolute; right: 0; top: 50%;
  height: min(100svh, 56.28vw); aspect-ratio: 1672 / 941;
  transform: translateY(-50%);
}
.hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 6%, #000 94%, transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 0, #000 6%, #000 94%, transparent 100%);
}
.hero-bg-fade { position: absolute; inset: 0; background: linear-gradient(90deg, var(--onyx) 0%, rgba(13, 17, 23, .85) 22%, rgba(13, 17, 23, .25) 44%, transparent 60%); }

.item {
  position: absolute; z-index: var(--z);
  left: calc(var(--x) * 1%); top: calc(var(--y) * 1%); width: calc(var(--w) * 1%);
  transform: translate(-50%, -50%);
}
.item-par, .item-in { will-change: transform; }

/* ----- Композиция hero: центр (--x/--y) и ширина (--w) в % кадра 1672×941, наклон --r, парение --float (px) ----- */
.item[data-item="laptop"]      { --x: 83;   --y: 25;   --w: 29;   --r: -5deg; --z: 1; --float: 5; }
.item[data-item="phone"]       { --x: 88.5; --y: 61;   --w: 13;   --r: -8deg; --z: 2; --float: 7; }
.item[data-item="photo"]       { --x: 55;   --y: 70;   --w: 13;   --r: 4deg;  --z: 3; --float: 6; }
.item[data-item="cartridge"]   { --x: 57;   --y: 38;   --w: 29;   --r: 22deg; --z: 4; --float: 8; }
.item[data-item="stand"]       { --x: 75;   --y: 76;   --w: 16.5; --r: 0deg;  --z: 5; --float: 1.5; }
.item[data-item="screwdriver"] { --x: 44;   --y: 78.5;   --w: 17;   --r: 11deg; --z: 6; --float: 1; }
.item[data-item="screws"]      { --x: 47.5; --y: 85;   --w: 4.6;  --r: 0deg;  --z: 7; --float: .5; }

/* Альфа-маски предметов */
.m-02-screws { -webkit-mask-image: url(../assets/hero/02-screws-mask.png); mask-image: url(../assets/hero/02-screws-mask.png); }
.m-03-screwdriver { -webkit-mask-image: url(../assets/hero/03-screwdriver-mask.png); mask-image: url(../assets/hero/03-screwdriver-mask.png); }
.m-04-storefront-photo-print { -webkit-mask-image: url(../assets/hero/04-storefront-photo-print-mask.png); mask-image: url(../assets/hero/04-storefront-photo-print-mask.png); }
.m-05-advertising-stand { -webkit-mask-image: url(../assets/hero/05-advertising-stand-mask.png); mask-image: url(../assets/hero/05-advertising-stand-mask.png); }
.m-06-toner-cartridge { -webkit-mask-image: url(../assets/hero/06-toner-cartridge-mask.png); mask-image: url(../assets/hero/06-toner-cartridge-mask.png); }
.m-07-smartphone { -webkit-mask-image: url(../assets/hero/07-smartphone-mask.png); mask-image: url(../assets/hero/07-smartphone-mask.png); }
.m-08-laptop { -webkit-mask-image: url(../assets/hero/08-laptop-mask.png); mask-image: url(../assets/hero/08-laptop-mask.png); }
.item-rot { position: relative; transform: rotate(var(--r)); }
/* Предметы: JPG + альфа-маска (в 6–10 раз легче PNG). Тень — на обёртке, т.к. маска обрезала бы её. */
.shape { display: block; }
.shape img { width: 100%; -webkit-mask-size: 100% 100%; mask-size: 100% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
.item .shape { filter: drop-shadow(0 26px 22px rgba(0, 0, 0, .55)) drop-shadow(0 6px 6px rgba(0, 0, 0, .4)); }
.item-rest .shape { filter: drop-shadow(0 14px 10px rgba(0, 0, 0, .65)) drop-shadow(0 3px 3px rgba(0, 0, 0, .5)); }
.glow {
  position: absolute; inset: -18%; z-index: -1; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(212, 35, 21, .55), rgba(212, 35, 21, .18) 55%, transparent 75%);
  opacity: 0;
}
/* До запуска предметы скрыты */
.js .hero:not(.is-ready) .item-in { opacity: 0; }
.hero.is-float:not(.is-offscreen) .item-rot { animation: float var(--float-dur, 7s) ease-in-out infinite alternate; }
@keyframes float { from { translate: 0 calc(var(--float, 4) * -1px); } to { translate: 0 calc(var(--float, 4) * 1px); } }

.hero-content {
  position: relative; z-index: 2;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding-top: var(--header-h); padding-bottom: 96px;
}
.hero-content .eyebrow { color: var(--muted); }
.hero-title {
  font-size: clamp(56px, 7.4vw, 136px); line-height: .9; letter-spacing: -.005em;
  text-shadow: 0 6px 40px rgba(0, 0, 0, .5);
  max-width: 46vw;
}
.hero-title .accent { color: var(--scarlet); text-shadow: 0 0 60px rgba(212, 35, 21, .35); }
.hero-sub { margin-top: 26px; font-size: clamp(19px, 1.75vw, 28px); font-weight: 500; line-height: 1.3; max-width: 40ch; }
.hero-list { display: flex; flex-wrap: wrap; gap: 6px 0; margin-top: 18px; font-size: clamp(15px, 1.15vw, 18px); color: var(--muted); max-width: 46vw; }
.hero-list li { display: inline-flex; align-items: center; }
.hero-list li + li::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--scarlet); margin: 0 14px; }
.hero-actions { margin-top: 38px; }

/* Индикатор прокрутки */
.scroll-hint {
  position: absolute; z-index: 3; left: 50%; bottom: 26px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 8px 14px; color: var(--ice); border-radius: 14px;
  transition: opacity .5s, transform .5s var(--ease-out);
}
.scroll-hint-text { font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.mouse { width: 26px; height: 40px; border: 2px solid var(--scarlet); border-radius: 14px; position: relative; box-shadow: 0 0 18px rgba(212, 35, 21, .35); }
.wheel { position: absolute; left: 50%; top: 7px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--flame); animation: wheel 2.4s var(--ease-out) infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(-2px); } 25% { opacity: 1; } 70% { opacity: 0; transform: translateY(10px); } 100% { opacity: 0; } }
.hero.is-moving .scroll-hint { opacity: 0; transform: translate(-50%, 12px); pointer-events: none; }

/* =========================================================
   2. ТОЧКА РЕШЕНИЙ (липкая колонка)
   ========================================================= */
.section { position: relative; padding: clamp(80px, 11vw, 160px) 0; }
.about { background: linear-gradient(180deg, var(--onyx) 0%, var(--onyx-2) 100%); }
.about-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 110px); align-items: start; }
.about-aside { position: sticky; top: calc(var(--header-h) + 40px); }
.about-index { margin-top: 48px; display: grid; gap: 4px; border-left: 1px solid var(--line-2); }
.about-index li {
  position: relative; display: flex; align-items: baseline; gap: 18px; padding: 10px 0 10px 24px;
  font-family: var(--f-head); font-size: 26px; font-weight: 600; text-transform: uppercase; color: rgba(230, 237, 246, .35);
  transition: color .4s;
}
.about-index li span { font-family: var(--f-body); font-size: 13px; letter-spacing: .15em; color: inherit; }
.about-index li::before { content: ''; position: absolute; left: -1.5px; top: 8px; bottom: 8px; width: 3px; background: var(--scarlet); transform: scaleY(0); transition: transform .4s var(--ease-out); }
.about-index li.is-active { color: var(--ice); }
.about-index li.is-active span { color: var(--flame); }
.about-index li.is-active::before { transform: scaleY(1); }

.about-cards { display: grid; gap: clamp(24px, 4vw, 48px); padding-bottom: 10vh; }
.meaning {
  position: relative; overflow: hidden;
  padding: clamp(28px, 4vw, 56px); border-radius: var(--radius-lg);
  background: linear-gradient(160deg, #1C2530 0%, var(--steel-2) 60%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  min-height: 62vh; display: flex; flex-direction: column; justify-content: flex-end;
}
.meaning::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, var(--scarlet), transparent 70%); }
.meaning-num { position: absolute; top: clamp(20px, 3vw, 40px); right: clamp(24px, 3vw, 44px); font-family: var(--f-head); font-weight: 700; font-size: clamp(90px, 12vw, 180px); line-height: .8; color: transparent; -webkit-text-stroke: 1.5px rgba(230, 237, 246, .12); }
.meaning-word { font-size: clamp(48px, 6.4vw, 96px); line-height: .9; }
.meaning-lead { margin-top: 18px; font-size: clamp(19px, 1.6vw, 24px); font-weight: 600; line-height: 1.35; max-width: 30ch; }
.meaning > p:not([class]) { margin-top: 14px; color: var(--muted); max-width: 52ch; }
.task {
  margin-top: 32px; display: grid; grid-template-columns: 1fr auto 1fr; gap: 18px; align-items: center;
  padding: 20px 22px; border-radius: 14px; background: rgba(13, 17, 23, .55); border: 1px solid var(--line);
  font-size: 15px; line-height: 1.45;
}
.task-label { display: block; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--grey); margin-bottom: 6px; }
.task-label.is-red { color: var(--flame); }
.task b { font-weight: 600; }
.task-arrow { width: 36px; height: 2px; background: var(--scarlet); position: relative; }
.task-arrow::after { content: ''; position: absolute; right: -1px; top: -4px; width: 10px; height: 10px; border-top: 2px solid var(--scarlet); border-right: 2px solid var(--scarlet); transform: rotate(45deg); }

.js .meaning { opacity: .35; transform: translateY(40px) scale(.97); transition: opacity .8s var(--ease-out), transform .9s var(--ease-out), border-color .6s; }
.js .meaning.is-in { opacity: 1; transform: none; }
.js .meaning.is-active { border-color: rgba(212, 35, 21, .35); }

/* =========================================================
   3. 3D-КАРТОЧКИ
   ========================================================= */
.directions { position: relative; background: radial-gradient(120% 80% at 50% 60%, #19202A 0%, var(--onyx) 70%); }
.dir-sticky { padding: clamp(80px, 10vw, 140px) 0 clamp(60px, 8vw, 110px); overflow: hidden; }
.dir-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.dir-controls { display: flex; align-items: center; gap: 12px; }
.dir-counter { font-family: var(--f-head); font-size: 20px; color: var(--grey); margin-right: 10px; letter-spacing: .06em; }
.dir-counter b { color: var(--ice); font-weight: 600; }
.round-btn { width: 56px; height: 56px; border-radius: 50%; border: 1.5px solid var(--line-2); display: inline-flex; align-items: center; justify-content: center; transition: border-color .25s, background-color .25s; }
.round-btn svg { width: 22px; height: 22px; fill: none; stroke: var(--ice); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.round-btn:hover { border-color: var(--scarlet); background: var(--scarlet); }
.round-btn:disabled { opacity: .35; pointer-events: none; }

.dir-stage { position: relative; margin-top: clamp(32px, 5vw, 64px); }
.dir-track { outline: none; }
.dcard {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  background: var(--steel); border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  display: flex; flex-direction: column;
}
.dcard-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #0A0E13; }
.dcard-media img { width: 100%; height: 100%; object-fit: cover; }
.dcard-media::after { content: ''; position: absolute; inset: auto 0 0; height: 40%; background: linear-gradient(to top, var(--steel), transparent); }
.dcard-media--product { background: radial-gradient(70% 90% at 50% 60%, #2A1416 0%, #0B0F14 70%); display: flex; align-items: center; justify-content: center; }
.dcard-media--product .shape { width: 78%; filter: drop-shadow(0 22px 22px rgba(0, 0, 0, .6)); transform: rotate(-6deg); }
.dcard-media--product img { height: auto; }
.dcard-media--photo .shape { width: auto; height: 86%; aspect-ratio: 760 / 808; transform: rotate(-4deg); }
.dcard-media--photo img { height: 100%; }
.dcard-body { padding: clamp(22px, 2.6vw, 34px); padding-top: 8px; flex: 1; }
.dcard-num { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--flame); font-weight: 600; margin-bottom: 10px; }
.dcard h3 { font-size: clamp(26px, 2.4vw, 36px); }
.dcard-body > p:not(.dcard-num) { margin-top: 12px; color: var(--muted); font-size: 16px; }
.dir-dots { display: flex; justify-content: center; gap: 10px; margin-top: 32px; }
.dir-dots button { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; }
.dir-dots button::before { content: ''; width: 28px; height: 3px; border-radius: 2px; background: var(--line-2); transition: background-color .3s, width .3s; }
.dir-dots button[aria-current="true"]::before { background: var(--scarlet); width: 44px; }

/* Режим 3D-сцены (десктоп) */
.dir-3d .directions { height: 300vh; }
.dir-3d .dir-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: var(--header-h) 0 24px; }
.dir-3d .dir-stage { perspective: 1800px; perspective-origin: 50% 40%; height: min(560px, 62svh); margin-top: clamp(20px, 3vh, 40px); }
.dir-3d .dir-track { position: relative; height: 100%; transform-style: preserve-3d; }
.dir-3d .dcard {
  position: absolute; left: 50%; top: 0; height: 100%; width: min(620px, 46vw); margin-left: calc(min(620px, 46vw) / -2);
  transform-style: preserve-3d;
  transition: transform .9s var(--ease-out), opacity .7s var(--ease-out), box-shadow .5s, filter .6s;
  cursor: pointer;
}
.dir-3d .dcard .dcard-media { aspect-ratio: auto; flex: 0 0 52%; }
.dir-3d .dcard[data-pos="0"]  { transform: translate3d(0, 0, 0) rotateY(0); z-index: 5; cursor: default; box-shadow: 0 50px 80px -30px rgba(0,0,0,.85), 0 0 0 1px rgba(212,35,21,.25), 0 30px 80px -40px rgba(212,35,21,.45); }
.dir-3d .dcard[data-pos="-1"] { transform: translate3d(-62%, 0, -220px) rotateY(12deg); z-index: 4; filter: brightness(.62); }
.dir-3d .dcard[data-pos="1"]  { transform: translate3d(62%, 0, -220px) rotateY(-12deg); z-index: 4; filter: brightness(.62); }
.dir-3d .dcard[data-pos="-2"] { transform: translate3d(-108%, 0, -440px) rotateY(16deg); z-index: 3; filter: brightness(.4); }
.dir-3d .dcard[data-pos="2"]  { transform: translate3d(108%, 0, -440px) rotateY(-16deg); z-index: 3; filter: brightness(.4); }
.dir-3d .dcard[data-pos="far"] { transform: translate3d(0, 0, -600px); opacity: 0; pointer-events: none; }
.dir-3d .dcard[data-pos="0"]:hover  { transform: translate3d(0, -10px, 30px); }
.dir-3d .dcard[data-pos="-1"]:hover { transform: translate3d(-62%, -8px, -200px) rotateY(12deg); filter: brightness(.8); }
.dir-3d .dcard[data-pos="1"]:hover  { transform: translate3d(62%, -8px, -200px) rotateY(-12deg); filter: brightness(.8); }

/* Режим ленты (телефоны, уменьшение движения) */
html:not(.dir-3d) .dir-track {
  display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 8px var(--gutter) 32px; scroll-padding: 0 var(--gutter);
}
html:not(.dir-3d) .dir-track::-webkit-scrollbar { display: none; }
html:not(.dir-3d) .dcard { flex: 0 0 min(86vw, 420px); scroll-snap-align: start; transition: transform .35s var(--ease-out); }
@media (hover: hover) { html:not(.dir-3d) .dcard:hover { transform: translateY(-6px); } }

/* =========================================================
   4. ПРЕИМУЩЕСТВА
   ========================================================= */
.benefits { background: var(--onyx); border-top: 1px solid var(--line); }
.benefit-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: clamp(40px, 5vw, 64px); }
.benefit {
  padding: 32px 28px 30px; border-radius: var(--radius); background: var(--steel-2); border: 1px solid var(--line);
  transition: transform .4s var(--ease-out), border-color .4s;
}
.benefit:hover { transform: translateY(-4px); border-color: rgba(212, 35, 21, .45); }
.benefit-big { font-family: var(--f-head); font-weight: 700; font-size: clamp(34px, 3.3vw, 48px); line-height: 1; text-transform: uppercase; color: var(--ice); padding-bottom: 20px; margin-bottom: 20px; border-bottom: 2px solid var(--scarlet); }
.benefit h3 { font-size: 20px; letter-spacing: .03em; }
.benefit p:not(.benefit-big) { margin-top: 8px; color: var(--muted); font-size: 15.5px; }

/* =========================================================
   5. УСЛУГИ — светлый блок «Бумага»
   ========================================================= */
.services { background: var(--paper); color: var(--ink); }
.services .h2 { color: var(--ink); }
.services-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.services-intro { margin-top: 18px; max-width: 560px; color: #3E4955; font-size: 17px; }
.services-note { max-width: 380px; color: #4D5864; font-size: 15px; padding-left: 16px; border-left: 3px solid var(--scarlet); }
.service-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: clamp(40px, 5vw, 64px); }
.service-group { background: #fff; border-radius: var(--radius); padding: 28px clamp(20px, 2.5vw, 34px) 12px; box-shadow: 0 1px 0 rgba(13, 17, 23, .06), 0 18px 40px -24px rgba(13, 17, 23, .25); }
.service-group h3 { font-size: 26px; color: var(--ink); padding-bottom: 14px; }
.service-group li {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name price" "name time";
  gap: 2px 20px; padding: 16px 0; border-top: 1px solid rgba(13, 17, 23, .09);
}
.s-name { grid-area: name; font-weight: 600; font-size: 16.5px; line-height: 1.35; }
.s-name small { display: block; font-weight: 400; font-size: 14px; color: #5C6773; margin-top: 3px; }
.s-price { grid-area: price; text-align: right; font-size: 14.5px; color: #5C6773; white-space: nowrap; }
.s-price.has-price { font-family: var(--f-head); font-size: 22px; font-weight: 600; color: var(--ink); }
.s-time { grid-area: time; text-align: right; font-size: 14px; color: var(--scarlet); font-weight: 600; white-space: nowrap; }
.services-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

/* =========================================================
   6. БИЗНЕСУ
   ========================================================= */
.business { background: var(--onyx-2); }
.business-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.business-media { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-card); aspect-ratio: 4 / 3.4; }
.business-media img { width: 100%; height: 100%; object-fit: cover; }
.business-media::after { content: ''; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px var(--line); border-radius: inherit; }
.check-list { margin-top: 28px; display: grid; gap: 14px; }
.check-list li { position: relative; padding-left: 34px; font-size: 17px; }
.check-list li::before { content: ''; position: absolute; left: 0; top: .5em; width: 18px; height: 2px; background: var(--scarlet); }

/* =========================================================
   7. КОНТАКТЫ
   ========================================================= */
.contacts { background: var(--onyx); border-top: 1px solid var(--line); }
.contacts-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 20px; margin-top: clamp(36px, 5vw, 56px); align-items: stretch; }
.contact-card { padding: clamp(24px, 3vw, 40px); border-radius: var(--radius-lg); background: var(--steel-2); border: 1px solid var(--line); }
.contact-name { font-family: var(--f-head); font-weight: 700; font-size: 22px; text-transform: uppercase; letter-spacing: .04em; padding-bottom: 18px; margin-bottom: 22px; border-bottom: 2px solid var(--scarlet); }
.contact-list { font-style: normal; display: grid; gap: 22px; font-size: 17px; }
.contact-list .dt { display: block; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--grey); margin-bottom: 4px; }
.contact-list small { display: block; color: var(--muted); font-size: 14px; }
.contact-list a { text-decoration: none; }
.contact-list a:hover { color: var(--flame); }
.contact-big { font-family: var(--f-head); font-size: clamp(24px, 2.3vw, 32px); font-weight: 600; line-height: 1.15; text-transform: uppercase; }
.storefront { margin: 32px 0 0; border-radius: 14px; overflow: hidden; position: relative; }
.storefront img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.storefront figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 16px 12px; font-size: 13.5px; background: linear-gradient(to top, rgba(13, 17, 23, .9), transparent); }
.map-wrap { position: relative; min-height: 460px; border-radius: var(--radius-lg); overflow: hidden; background: var(--steel); border: 1px solid var(--line); }
.map { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; border: 0; filter: grayscale(.25) contrast(1.02); }
.map-fallback { position: absolute; left: 24px; bottom: 20px; color: var(--muted); font-size: 14px; }

/* =========================================================
   8. ФИНАЛ
   ========================================================= */
.final { padding: clamp(60px, 8vw, 110px) 0; background: var(--onyx); }
.final-inner {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 40px; align-items: end;
  padding: clamp(32px, 5vw, 72px); border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #DC2A1B 0%, var(--scarlet) 50%, #A9180C 100%); color: #fff;
  box-shadow: 0 40px 90px -40px rgba(212, 35, 21, .75);
}
.final-inner::before { content: ''; position: absolute; right: -4%; top: -30%; width: 38%; height: 160%; background: rgba(0, 0, 0, .12); transform: skewX(-12deg); }
.final-inner > * { position: relative; }
.final-kicker { font-size: 13px; letter-spacing: .22em; text-transform: uppercase; opacity: .85; margin-bottom: 14px; }
.final-title { font-size: clamp(44px, 6.4vw, 96px); line-height: .92; }
.final-text { margin-top: 20px; font-size: 18px; max-width: 44ch; opacity: .92; }
.final-phone { display: inline-block; font-family: var(--f-head); font-weight: 600; font-size: clamp(30px, 3.2vw, 46px); text-decoration: none; letter-spacing: .01em; }
.final-actions .btn-row { margin-top: 20px; }

.site-footer { padding: 36px 0 44px; border-top: 1px solid var(--line); background: var(--onyx); }
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 20px 40px; flex-wrap: wrap; }
.footer-meta { color: var(--grey); font-size: 14px; }

.mobile-bar { display: none; }

/* Плавное появление блоков */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.js .reveal.is-in { opacity: 1; transform: none; }
.benefit-grid .reveal:nth-child(2), .service-groups .reveal:nth-child(2) { transition-delay: .08s; }
.benefit-grid .reveal:nth-child(3), .service-groups .reveal:nth-child(3) { transition-delay: .16s; }
.benefit-grid .reveal:nth-child(4), .service-groups .reveal:nth-child(4) { transition-delay: .24s; }

/* Отладка композиции: index.html?compose */
.compose-ref { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .45; z-index: 20; pointer-events: none; mix-blend-mode: screen; }

/* =========================================================
   АДАПТИВ
   ========================================================= */
@media (max-width: 1180px) {
  .benefit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Узкие и «высокие» экраны: текст сверху, сцена под ним */
@media (max-width: 899px), (max-aspect-ratio: 5/4) {
  /* Телефон и «высокие» экраны: тоже закреплённый экран, текст сверху, сцена снизу — всё в одном экране */
  .has-pin .hero { height: 260vh; height: 260svh; }
  .hero-sticky, .has-pin .hero-sticky { display: flex; flex-direction: column; }
  .has-pin .hero-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; min-height: 0; }
  .hero-content { order: 1; flex: none; min-height: 0; padding-top: calc(var(--header-h) + 20px); padding-bottom: 0; }
  .hero-title, .hero-list { max-width: none; }
  .hero-stage { order: 2; position: relative; inset: auto; flex: 1 1 auto; min-height: 240px; width: 100%; overflow: hidden; }
  .hero-frame { top: auto; bottom: 0; right: 0; height: auto; width: max(161%, calc(100% * 1.1)); transform: none; }
  .hero-bg-fade { background: linear-gradient(90deg, var(--onyx) 0%, transparent 45%), linear-gradient(180deg, var(--onyx) 0%, transparent 18%); }
  .scroll-hint { bottom: 12px; }
}

@media (max-width: 899px) {
  :root { --header-h: 68px; }
  body { font-size: 16px; padding-bottom: 76px; }
  .logo-mark, .logo-word { height: 38px; }
  .logo-word b { font-size: 29px; }
  .logo-word i { font-size: 8.6px; }
  .icon-btn { display: inline-flex; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 auto; margin: 0; flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px var(--gutter) 24px; background: rgba(13, 17, 23, .97); border-bottom: 1px solid var(--line);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .25s, transform .25s, visibility .25s;
  }
  .main-nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .main-nav > a:not(.btn) { padding: 16px 0; font-size: 16px; border-bottom: 1px solid var(--line); }
  .main-nav > a:not(.btn)::after { display: none; }
  .nav-call { margin-top: 18px; min-height: 52px; }
  .site-header { background: rgba(13, 17, 23, .88); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }

  .hero-sub { font-size: 19px; }
  .hero-actions .btn { width: 100%; }

  .about-grid { grid-template-columns: 1fr; }
  .about-aside { position: static; }
  .about-index { display: none; }
  .meaning { min-height: 0; padding-top: 110px; }
  .task { grid-template-columns: 1fr; gap: 12px; }
  .task-arrow { transform: rotate(90deg); margin: 4px 0 4px 8px; width: 20px; }

  .dir-head { align-items: flex-start; }
  .dir-controls { width: 100%; }
  .dir-counter { margin-right: auto; }
  .dir-stage { margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1); }
  .dir-sticky > .dir-stage { margin: 24px 0 0; }

  .benefit-grid, .service-groups { grid-template-columns: 1fr; }
  .service-group li { grid-template-columns: 1fr; grid-template-areas: "name" "time" "price"; }
  .s-price, .s-time { text-align: left; }
  .business-grid, .contacts-grid { grid-template-columns: 1fr; }
  .business-media { order: 2; }
  .map-wrap { min-height: 360px; }
  .btn-row .btn { flex: 1 1 200px; }
  .final-inner { grid-template-columns: 1fr; }
  .final-actions .btn { flex: 1 1 100%; }

  .mobile-bar {
    display: flex; gap: 10px; position: fixed; z-index: 40; left: 0; right: 0; bottom: 0;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(13, 17, 23, .94); border-top: 1px solid var(--line);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    transform: translateY(110%); transition: transform .35s var(--ease-out);
  }
  .mobile-bar.is-visible { transform: none; }
  .mobile-bar .btn { flex: 1; min-height: 52px; }
}

@media (max-width: 420px) {
  .hero-title { font-size: 54px; }
  .hero-list li + li::before { margin: 0 10px; }
}

/* Уменьшение движения: без сборки, парения и параллакса */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js .hero:not(.is-ready) .item-in { opacity: 1; }
  .js .reveal, .js .meaning { opacity: 1; transform: none; }
}

/* ---------- Кнопка звука ---------- */
.sound-btn {
  display: inline-flex; align-items: center; gap: 8px; flex: none;
  min-height: 44px; padding: 0 14px 0 12px; border-radius: 999px;
  border: 1.5px solid var(--line-2); color: var(--muted);
  font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  transition: border-color .25s, color .25s, background-color .25s;
}
.sound-btn:hover { border-color: var(--ice); color: var(--ice); }
.sound-ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sound-ico .spk { fill: currentColor; stroke: none; }
.sound-ico .wave { display: none; }
.sound-btn.is-on { color: var(--ice); border-color: rgba(212, 35, 21, .7); }
.sound-btn.is-on .wave { display: inline; }
.sound-btn.is-on .cross { display: none; }
.sound-bars { display: none; align-items: flex-end; gap: 2px; height: 12px; }
.sound-bars i { width: 2px; height: 100%; background: var(--flame); border-radius: 1px; transform-origin: bottom; animation: bars 1.1s ease-in-out infinite alternate; }
.sound-bars i:nth-child(2) { animation-delay: -.4s; }
.sound-bars i:nth-child(3) { animation-delay: -.8s; }
.sound-btn.is-on .sound-bars { display: inline-flex; }
@keyframes bars { from { transform: scaleY(.3); } to { transform: scaleY(1); } }
@media (max-width: 899px) {
  .sound-btn { width: 48px; height: 48px; padding: 0; justify-content: center; margin-left: auto; }
  .sound-label, .sound-btn .sound-bars { display: none !important; }
  .header-call { margin-left: 0; }
  .header-row { gap: 10px; }
}
@media (prefers-reduced-motion: reduce) { .sound-bars i { animation: none; transform: scaleY(.7); } }

/* Шапка и hero шире основной сетки — как в референсе (логотип и заголовок ближе к краю) */
.site-header .container, .hero-content.container { max-width: none; padding-left: clamp(20px, 4.6vw, 96px); padding-right: clamp(20px, 3vw, 64px); }

/* ---------- Карточки: наклон за курсором и «парящие» тени ---------- */
.tilt { --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 50%; position: relative; will-change: transform; }
.tilt::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(480px circle at var(--mx) var(--my), rgba(212, 35, 21, .10), transparent 55%);
  opacity: 0; transition: opacity .35s;
}
.benefit.tilt::after { background: radial-gradient(420px circle at var(--mx) var(--my), rgba(255, 255, 255, .08), transparent 55%); }
.service-group {
  box-shadow: 0 1px 2px rgba(13, 17, 23, .05), 0 22px 40px -22px rgba(13, 17, 23, .30), 0 56px 70px -48px rgba(13, 17, 23, .38);
}
.benefit { box-shadow: 0 24px 44px -24px rgba(0, 0, 0, .8), 0 60px 80px -60px rgba(212, 35, 21, .25); }
html .tilt.is-tilt {
  transform: perspective(1000px) rotateX(var(--rx)) rotateY(var(--ry)) translate3d(0, -8px, 0) !important;
  transition: transform .12s linear, box-shadow .35s, border-color .35s !important;
}
html .tilt.is-tilt::after { opacity: 1; }
html .service-group.is-tilt { box-shadow: 0 2px 4px rgba(13, 17, 23, .06), 0 36px 60px -26px rgba(13, 17, 23, .38), 0 80px 90px -60px rgba(212, 35, 21, .30); }
html .benefit.is-tilt { box-shadow: 0 40px 60px -26px rgba(0, 0, 0, .9), 0 70px 90px -50px rgba(212, 35, 21, .40); }

/* ---------- Контакты: компактно, в один экран ---------- */
.contacts { padding: clamp(56px, 7vw, 96px) 0; }
.contacts .h2 { font-size: clamp(30px, 3.4vw, 48px); }
.contacts-grid { margin-top: clamp(24px, 3vw, 36px); grid-template-columns: minmax(0, 4.4fr) minmax(0, 7.6fr); }
.contact-card { padding: clamp(22px, 2.4vw, 32px); display: flex; flex-direction: column; }
.contact-name { font-size: 18px; padding-bottom: 14px; margin-bottom: 18px; }
.contact-list { grid-template-columns: 1fr 1fr; gap: 18px 24px; font-size: 16px; }
.contact-list > div:first-child { grid-column: 1 / -1; }
.contact-list .dt { font-size: 11px; margin-bottom: 2px; }
.contact-big { font-size: clamp(19px, 1.55vw, 24px); }
.contact-card .btn-row { margin-top: 24px; }
.contact-card .btn { min-height: 48px; padding: 0 22px; font-size: 15px; }
.contact-hint { margin-top: auto; padding-top: 20px; font-size: 13.5px; color: var(--muted); }
.contacts-grid { align-items: stretch; }
.map-wrap { height: auto; min-height: 360px; align-self: stretch; }
@media (max-width: 899px) {
  .contact-list { grid-template-columns: 1fr; }
  .map-wrap { height: 340px; min-height: 0; }
}

/* Текст hero появляется при прокрутке (три этапа), до этого — только фон */
.hero-title .hl { display: block; }
.js .hx { opacity: 0; will-change: transform, opacity; }
@media (prefers-reduced-motion: reduce) { .js .hx { opacity: 1; } }

/* Подсказка прокрутки целиком на камне: чуть выше переднего среза стола (срез ≈ 89.5% высоты кадра) */
@media (min-width: 900px) and (min-aspect-ratio: 5/4) {
  .scroll-hint { bottom: calc(50vh - min(100vh, 56.28vw) * .395 + 22px); bottom: calc(50svh - min(100svh, 56.28vw) * .395 + 22px); }
}

/* Телефоны и «высокие» экраны: подсказка прокрутки прижата к низу экрана, пока сцена не начала собираться */
@media (max-width: 899px), (max-aspect-ratio: 5/4) {
  .scroll-hint { position: fixed; bottom: calc(24px + env(safe-area-inset-bottom)); }
}

/* Затемнение слева выходит за край кадра: при параллаксе фон сдвигается на несколько px,
   и без этого у левой границы появлялся светлый незатемнённый срез */
@media (min-width: 900px) and (min-aspect-ratio: 5/4) {
.hero-bg-fade {
  left: -80px;
  background: linear-gradient(90deg, var(--onyx) 0, var(--onyx) 80px, rgba(13, 17, 23, .85) calc(80px + 22%), rgba(13, 17, 23, .25) calc(80px + 42%), transparent calc(80px + 58%));
}
}

/* Свечение-ореол вокруг каждого предмета (как светящаяся тень) */
.item .shape { filter: drop-shadow(0 26px 22px rgba(0, 0, 0, .55)) drop-shadow(0 6px 6px rgba(0, 0, 0, .4)) drop-shadow(0 0 22px rgba(212, 35, 21, .38)); }
.item-rest .shape { filter: drop-shadow(0 14px 10px rgba(0, 0, 0, .65)) drop-shadow(0 3px 3px rgba(0, 0, 0, .5)) drop-shadow(0 0 16px rgba(212, 35, 21, .32)); }
.glow { inset: -24%; background: radial-gradient(closest-side, rgba(212, 35, 21, .5), rgba(212, 35, 21, .16) 55%, transparent 78%); }
/* Контактная тень под лежащими на камне предметами */
.item-rest .item-rot::after {
  content: ''; position: absolute; left: 8%; right: 8%; bottom: -4%; height: 14%; z-index: -1;
  background: radial-gradient(closest-side, rgba(0, 0, 0, .75), transparent); filter: blur(4px);
}

/* ---------- Местному бизнесу: единый блок по сетке ----------
   Фото и текстовая колонка одной высоты: метка раздела — по верху фото, кнопки — по низу */
@media (min-width: 900px) {
  .business-grid { align-items: stretch; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 5vw, 80px); }
  .business-media { aspect-ratio: auto; height: 100%; min-height: 440px; }
  .business-text { display: flex; flex-direction: column; padding: 4px 0; }
  .business-text .eyebrow { margin-bottom: 16px; }
  .business .h2 { font-size: clamp(32px, 3.3vw, 50px); line-height: 1; }
  .business .lead { font-size: 17px; margin-top: 18px; max-width: 520px; }
  .business .check-list { margin-top: 22px; gap: 10px; }
  .business .check-list li { font-size: 16px; }
  .business .btn-row { margin-top: auto; padding-top: 28px; }
}

/* Мобильная раскладка — правила ниже перекрывают поздние десктопные уточнения */
@media (max-width: 899px) {
  .contacts-grid { grid-template-columns: 1fr; }
  .contact-list { grid-template-columns: 1fr; }
  .map-wrap { height: 340px; min-height: 0; }
  .hero-title { font-size: clamp(44px, 13vw, 60px); }
  .hero-sub { margin-top: 16px; font-size: 18px; }
  .hero-list { margin-top: 12px; font-size: 14.5px; }
  .hero-actions { margin-top: 20px; }
  .hero-content .eyebrow { margin-bottom: 12px; }
}

/* ---------- Подвал: кредит разработчика ---------- */
.dev-credit {
  display: inline-flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 18px 8px 14px;
  border-radius: 14px; border: 1px solid var(--line-2); background: rgba(230, 237, 246, .03);
  text-decoration: none; color: var(--ice);
  transition: border-color .25s, background-color .25s, transform .25s var(--ease-out);
}
.dev-credit:hover { border-color: rgba(0, 229, 160, .55); background: rgba(48, 84, 245, .08); transform: translateY(-2px); }
.dev-mark { width: 22px; height: auto; flex: none; }
.dev-text { display: flex; flex-direction: column; line-height: 1.2; }
.dev-text small { font-size: 11.5px; color: var(--grey); letter-spacing: .04em; }
.dev-text b { font-size: 15px; font-weight: 600; }
.dev-arrow { width: 16px; height: 16px; fill: none; stroke: var(--grey); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: stroke .25s, transform .25s; }
.dev-credit:hover .dev-arrow { stroke: #00E5A0; transform: translate(2px, -2px); }

/* ---------- Телефон: подсказка открыть на компьютере ---------- */
.desktop-note { display: none; }
@media (max-width: 899px) {
  .desktop-note {
    position: absolute; z-index: 4; left: 50%; top: calc(var(--header-h) + 28px); transform: translateX(-50%);
    display: flex; align-items: center; gap: 14px; width: max-content; max-width: calc(100% - 32px);
    padding: 14px 20px 14px 16px; border-radius: 16px;
    background: rgba(26, 34, 44, .78); border: 1px solid var(--line-2);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .8);
    transition: opacity .45s, transform .45s var(--ease-out);
  }
  .desktop-note svg { width: 24px; height: 24px; flex: none; fill: none; stroke: var(--ice); stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
  .desktop-note span { display: flex; flex-direction: column; line-height: 1.3; }
  .desktop-note b { font-size: 16px; font-weight: 600; }
  .desktop-note small { font-size: 14px; color: var(--muted); }
  .hero.is-moving .desktop-note { opacity: 0; transform: translate(-50%, -10px); pointer-events: none; }
}
@media (prefers-reduced-motion: reduce) { .desktop-note { display: none !important; } }

/* Подвал по сетке: логотип | контакты + копирайт | разработчик */
@media (min-width: 900px) {
  .footer-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 6px 48px; }
  .footer-row .logo { grid-row: 1 / 3; }
  .footer-row .footer-meta:nth-of-type(1) { grid-column: 2; grid-row: 1; align-self: end; }
  .footer-row .footer-meta:nth-of-type(2) { grid-column: 2; grid-row: 2; align-self: start; }
  .footer-row .dev-credit { grid-column: 3; grid-row: 1 / 3; }
}
@media (max-width: 899px) {
  .footer-row { flex-direction: column; align-items: flex-start; gap: 16px; }
}
