/* ==========================================================================
   RAENKO — тёмная кинематографичная система.
   Слои: 0 токены и база · 1 шапка · 2 первый экран · 3 секции · 4 контакт · 5 подвал · 6 адаптив
   ========================================================================== */

/* ---- 0. Токены и база ---------------------------------------------------- */
@font-face { font-family: "Prata"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/prata-cyrillic-a2.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Prata"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/prata-latin-a2.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/assets/fonts/jost-cyrillic-a2.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/assets/fonts/jost-latin-a2.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #03080e;
  --bg-2: #060f18;
  --bg-3: #0a1622;
  --text: #f1faee;
  --muted: #a9b9c4;
  --dim: #6f8798;
  --line: rgba(255, 255, 255, .1);
  --line-2: rgba(255, 255, 255, .2);
  --accent: #c2ff3d;
  --accent-soft: #d9ff7a;
  --on-accent: #08130a;
  --ice: #a8dadc;
  --blue: #457b9d;
  --font: "Jost", "Futura", "Century Gothic", "Segoe UI", Arial, sans-serif;
  --serif: "Prata", "Playfair Display", Georgia, "Times New Roman", serif;
  --gutter: clamp(20px, 4vw, 64px);
  --maxw: 1560px;
  --header-h: 72px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); background: var(--bg); }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 16px/1.65 var(--font); text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}
/* Плёночное зерно поверх всей страницы: лёгкий слой, не перехватывает клики. */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 60; pointer-events: none; opacity: .045; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
a { color: inherit; }
img { max-width: 100%; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }
h1, h2, h3, p, ul, ol { margin-top: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.12; letter-spacing: -.01em; }

.skip-link {
  position: absolute; left: -999px; top: 12px; z-index: 100; padding: 10px 14px; border-radius: 8px;
  background: var(--accent); color: var(--on-accent); font-weight: 700;
}
.skip-link:focus { left: 12px; }
.container { width: min(var(--maxw), calc(100% - 2 * var(--gutter))); margin-inline: auto; }

/* Моно-метки */
.eyebrow, .kicker, .index, .contact-main span {
  font-family: var(--font); font-size: 12px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase;
}
.eyebrow, .kicker { margin: 0 0 20px; color: var(--accent); }
.kicker::before { content: ""; display: inline-block; width: 28px; height: 1px; margin-right: 12px; vertical-align: middle; background: var(--accent); }

/* ---- 1. Шапка ------------------------------------------------------------ */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 40; color: var(--text);
  background: rgba(3, 8, 14, .84); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px);
  transition: background .35s ease, border-color .35s ease;
}
.site-header.on-hero { background: linear-gradient(rgba(3, 8, 14, .78), rgba(3, 8, 14, 0)); border-bottom-color: transparent; backdrop-filter: none; }
@media (scripting: none) { .site-header.on-hero { background: rgba(3, 8, 14, .9); } }
.header-grid { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark {
  display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid rgba(194, 255, 61, .6); border-radius: 10px;
  color: var(--accent); font-family: var(--serif); font-weight: 400; background: rgba(194, 255, 61, .06);
}
.brand-mark:has(img) { display: grid; place-items: center; transform: none; }
.brand-mark:has(img)::before, .brand-mark:has(img)::after { display: none; }
.brand-mark img { display: block; width: 52px; height: 48px; object-fit: contain; }
.brand strong { display: block; font-size: 15px; font-weight: 600; letter-spacing: .24em; line-height: 1.1; }
.brand small { display: block; white-space: nowrap; font-family: var(--font); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.nav { display: flex; gap: 2px; }
.nav a {
  white-space: nowrap; padding: 9px 12px; border-radius: 99px; color: var(--muted); font-size: 14px; font-weight: 600; text-decoration: none;
  transition: color .2s ease, background .2s ease;
}
.nav a:hover, .nav a:focus-visible { color: var(--accent); background: rgba(255, 255, 255, .06); outline: none; }

/* ---- 2. Первый экран: картинка + карта глубины (WebGL) -------------------- */
.hero {
  position: relative; display: flex; align-items: flex-end; min-height: 100svh; overflow: hidden; isolation: isolate;
  padding: calc(var(--header-h) + 24px) 0 clamp(32px, 5vw, 64px);
  background: #03080e url("data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAA0JCgsKCA0LCgsODg0PEyAVExISEyccHhcgLikxMC4pLSwzOko+MzZGNywtQFdBRkxOUlNSMj5aYVpQYEpRUk//2wBDAQ4ODhMREyYVFSZPNS01T09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0//wAARCAASACADASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwDzaA7ZVYdQa6KVF1GBXAAmUYPvXORjLiugsDFEpbceByaqyuZzJIkXToS4wZmGB7ViXDK0peRtzE1sXvlSgNuI3d6x7i3aM5xlfUUO1xRZWXqK04/+PJqKKByHN/x5rTtO+aUhuR6GiiplsSf/2Q==") center / cover no-repeat;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(0deg, rgba(3, 8, 14, .9) 0%, rgba(3, 8, 14, .44) 34%, rgba(3, 8, 14, 0) 62%),
    linear-gradient(90deg, rgba(3, 8, 14, .5) 0%, rgba(3, 8, 14, 0) 55%);
}
.hero-poster, .hero-scene { position: absolute; inset: 0; z-index: 0; display: block; width: 100%; height: 100%; pointer-events: none; }
.hero-poster { object-fit: cover; object-position: 50% 50%; transform: scale(1.14); }
.hero-scene { opacity: 0; transition: opacity 1.1s ease; }
.hero-scene.is-ready { opacity: 1; }

.hero-inner {
  position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 340px);
  align-items: end; gap: clamp(28px, 5vw, 80px);
}
.hero h1 { max-width: none; margin: 0; }
.wordmark {
  display: block; font-family: var(--font); font-size: clamp(13px, 1.1vw, 16px); font-weight: 500; line-height: 1;
  letter-spacing: .5em; text-transform: uppercase; color: var(--ice);
}
.tagline {
  display: block; max-width: 17em; margin-top: clamp(16px, 2vw, 26px); font-family: var(--serif); color: var(--text);
  font-size: clamp(30px, 4.3vw, 70px); font-weight: 400; line-height: 1.1; letter-spacing: -.015em;
}
.hero-side { padding-bottom: .5em; }
.hero-lead { margin: 0 0 22px; color: #dbe6ec; font-size: 16px; line-height: 1.55; }

@media (prefers-reduced-motion: no-preference) {
  .hero-in { animation: hero-in .9s cubic-bezier(.2, .7, .2, 1) both; }
  .hero-side.hero-in { animation-delay: .18s; }
}
@keyframes hero-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }


/* ---- Интерактив первого экрана (текстовый слой; картинка и сцена не затронуты) ---- */
.hero-inner { grid-template-columns: minmax(0, 1fr) minmax(300px, 420px); }

/* Правая панель: стекло с объёмом */
.hero-side {
  position: relative; padding: 26px 26px 24px; border-radius: 18px; isolation: isolate;
  background: linear-gradient(155deg, rgba(40, 70, 40, .38) 0%, rgba(6, 16, 24, .62) 55%, rgba(3, 8, 14, .72) 100%);
  border: 1px solid rgba(194, 255, 61, .22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), inset 0 -24px 40px rgba(0, 0, 0, .25), 0 30px 70px rgba(0, 0, 0, .55), 0 0 60px rgba(194, 255, 61, .07);
  -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%);
}
.hero-side::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: radial-gradient(120% 70% at 0% 0%, rgba(194, 255, 61, .16), transparent 55%);
}
.hero-lead { color: #eef6f0; text-shadow: 0 1px 12px rgba(0, 0, 0, .6); }

/* Заголовок: объёмный металлический градиент с тенью */
.tagline {
  padding: .06em .12em .2em; margin-left: -.12em; margin-bottom: -.2em;
  color: #fff;
  background: linear-gradient(180deg, #ffffff 0%, #f1ffd6 42%, #b9f05a 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 0 rgba(3, 8, 14, .55)) drop-shadow(0 14px 28px rgba(0, 0, 0, .65)) drop-shadow(0 0 26px rgba(194, 255, 61, .22));
}
.eyebrow { color: var(--accent); text-shadow: 0 0 14px rgba(194, 255, 61, .55), 0 1px 8px rgba(0, 0, 0, .8); font-weight: 600; }
.wordmark { color: #fff; text-shadow: 0 1px 10px rgba(0, 0, 0, .8); }

/* Шапка: стекло, яркие ссылки, светящаяся линия */
.site-header.on-hero { background: linear-gradient(rgba(3, 8, 14, .6), rgba(3, 8, 14, 0)); }
.site-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(194, 255, 61, .55) 30%, rgba(194, 255, 61, .55) 70%, transparent);
}
.brand-mark {
  border-color: rgba(194, 255, 61, .85); color: #eaffb8;
  background: linear-gradient(145deg, rgba(194, 255, 61, .28), rgba(194, 255, 61, .04));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 0 18px rgba(194, 255, 61, .35);
}
.nav a { color: #e8f1ea; text-shadow: 0 1px 8px rgba(0, 0, 0, .7); }
.nav a:hover, .nav a:focus-visible { color: var(--on-accent); background: var(--accent); text-shadow: none; box-shadow: 0 0 18px rgba(194, 255, 61, .5); }
.status {
  color: #eaf7e0; border-color: rgba(194, 255, 61, .4); background: linear-gradient(180deg, rgba(194, 255, 61, .12), rgba(3, 8, 14, .4));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 0 20px rgba(194, 255, 61, .15);
}

/* Кнопка: выпуклая, с глянцем и свечением */
.btn-cta {
  position: relative; width: 100%; justify-content: center; padding: 18px 24px; border-radius: 12px; overflow: hidden;
  color: var(--on-accent); font-family: var(--font); font-size: 16px; font-weight: 600; letter-spacing: .02em; text-transform: none; line-height: 1.2;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .45);
  background: linear-gradient(180deg, #e4ff82 0%, #c2ff3d 48%, #92dc12 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .85), inset 0 -3px 0 rgba(60, 100, 0, .45), 0 0 0 1px rgba(150, 220, 20, .8), 0 8px 0 -2px rgba(70, 110, 0, .55), 0 16px 34px rgba(194, 255, 61, .38), 0 0 46px rgba(194, 255, 61, .3);
  transition: box-shadow .3s ease, filter .3s ease, transform .2s ease;
}
.btn-cta::before {
  content: ""; position: absolute; inset: 0 0 50% 0; pointer-events: none; border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0));
}
.btn-cta span { display: inline-block; transition: transform .3s ease; }
.btn-cta:hover, .btn-cta:focus-visible {
  background: linear-gradient(180deg, #efffa0 0%, #d2ff55 48%, #a2ee1c 100%); filter: brightness(1.05); outline: none; transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), inset 0 -3px 0 rgba(60, 100, 0, .45), 0 0 0 1px rgba(190, 255, 70, .9), 0 10px 0 -2px rgba(70, 110, 0, .55), 0 22px 44px rgba(194, 255, 61, .5), 0 0 70px rgba(194, 255, 61, .5);
}
.btn-cta:active { transform: translateY(3px); box-shadow: inset 0 2px 6px rgba(60, 100, 0, .5), 0 0 0 1px rgba(150, 220, 20, .8), 0 2px 0 -1px rgba(70, 110, 0, .55), 0 6px 18px rgba(194, 255, 61, .3); }
.btn-cta:hover span, .btn-cta:focus-visible span { transform: translateX(6px); }
.chips-label { margin: 20px 0 10px; color: rgba(225, 238, 228, .8); font-size: 13px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 8px 14px; border: 1px solid rgba(235, 255, 215, .3); border-radius: 99px; color: #f2fbf0; font-size: 13px; text-decoration: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .03));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2);
  transition: border-color .25s ease, background .25s ease, color .25s ease, transform .2s ease, box-shadow .25s ease;
}
.chip:hover, .chip:focus-visible { border-color: var(--accent); background: rgba(194, 255, 61, .22); color: #fff; outline: none; transform: translateY(-1px); box-shadow: 0 0 20px rgba(194, 255, 61, .35); }

.pipeline { display: flex; align-items: center; margin: 0 0 22px; }
.pipeline .node {
  padding: 7px 10px; border: 1px solid rgba(194, 255, 61, .45); border-radius: 6px; color: #efffd0; font-size: 11px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; white-space: nowrap;
  background: linear-gradient(180deg, rgba(194, 255, 61, .2), rgba(3, 8, 14, .55));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 0 14px rgba(194, 255, 61, .18);
}
.pipeline .link { position: relative; flex: 1; min-width: 14px; height: 1px; background: linear-gradient(90deg, rgba(194, 255, 61, .15), rgba(194, 255, 61, .6), rgba(194, 255, 61, .15)); overflow: visible; }
.pipeline .link::after {
  content: ""; position: absolute; left: 0; top: -2px; width: 5px; height: 5px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 10px 3px rgba(194, 255, 61, .95);
}
.status {
  display: inline-flex; align-items: center; gap: 8px; margin-left: 20px; padding: 7px 12px; border: 1px solid var(--line-2); border-radius: 99px;
  color: var(--muted); font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; white-space: nowrap;
}
.status i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px 2px rgba(194, 255, 61, .9); }
.header-grid .nav { margin-left: auto; }

@media (prefers-reduced-motion: no-preference) {
  .pipeline .link::after { animation: pulse-run 2.4s linear infinite; }
  .pipeline .link:nth-child(4)::after { animation-delay: .8s; }
  .pipeline .link:nth-child(6)::after { animation-delay: 1.6s; }
  .status i { animation: pulse-dot 1.8s ease-in-out infinite; }
}
@keyframes pulse-run { 0% { left: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { left: calc(100% - 5px); opacity: 0; } }
@keyframes pulse-dot { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .45; transform: scale(.7); } }

/* Подложка и маркеры в списках при наведении */
.rows li { border-radius: 2px; }
.rows li:hover { background: linear-gradient(90deg, rgba(194, 255, 61, .12), rgba(194, 255, 61, 0) 85%); }
.ledger-row:hover strong { color: #fff; }
.brief-list li:hover { background: linear-gradient(90deg, rgba(194, 255, 61, .1), transparent 85%); }

/* ---- 3. Секции ------------------------------------------------------------ */
.section { position: relative; padding: clamp(88px, 12vw, 180px) 0; background: var(--bg); border-top: 1px solid var(--line); }
.section-alt { background: var(--bg-2); }
.section-head { max-width: 1040px; margin-bottom: clamp(44px, 6vw, 88px); }
.section h2 { max-width: 18em; margin-bottom: 24px; font-size: clamp(30px, 4vw, 62px); }
.intro { max-width: 720px; margin: 0; color: var(--muted); font-size: clamp(16px, 1.4vw, 19px); }
.rows { margin: 0; padding: 0; list-style: none; }
.rows li {
  position: relative; padding: 15px 0 15px 28px; border-top: 1px solid var(--line); color: #d3dde7;
  transition: color .25s ease, padding-left .25s ease;
}
.rows li:last-child { border-bottom: 1px solid var(--line); }
.rows li::before {
  content: ""; position: absolute; left: 0; top: 50%; width: 8px; height: 8px; margin-top: -4px; border: 1px solid var(--accent);
  transition: background .25s ease, transform .25s ease;
}
.rows li:hover { color: #fff; padding-left: 34px; }
.rows li:hover::before { background: var(--accent); transform: rotate(45deg); }

/* Направления */
.directions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 5vw, 96px); }
.direction { padding-top: 26px; border-top: 1px solid var(--line-2); }
.index { margin: 0 0 clamp(28px, 4vw, 56px); color: var(--dim); }
.direction h3 { max-width: 14em; margin-bottom: 20px; font-size: clamp(24px, 2.6vw, 38px); }
.direction > p:not(.index) { max-width: 560px; margin-bottom: 32px; color: var(--muted); }

/* Аудит */
.audit-grid { display: grid; grid-template-columns: minmax(280px, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 120px); align-items: start; }
.audit-grid .section-head { position: sticky; top: calc(var(--header-h) + 32px); margin-bottom: 0; }
.ledger { margin: 0; padding: 0; list-style: none; }
.ledger-row {
  display: grid; grid-template-columns: minmax(150px, 1fr) minmax(0, 2fr); gap: 28px; align-items: baseline;
  padding: 26px 0; border-top: 1px solid var(--line); transition: background .3s ease;
}
.ledger-row:last-child { border-bottom: 1px solid var(--line); }
.ledger-row:hover { background: linear-gradient(90deg, rgba(194, 255, 61, .08), transparent 70%); }
.ledger-row strong { font-family: var(--serif); font-size: clamp(19px, 1.7vw, 25px); font-weight: 400; }
.ledger-row p { margin: 0; color: var(--muted); font-size: 15px; }
.audit-result {
  grid-column: 1 / -1; margin-top: clamp(24px, 4vw, 56px); padding: clamp(28px, 4vw, 56px);
  border: 1px solid var(--line-2); border-left: 3px solid var(--accent); border-radius: 4px;
  background: linear-gradient(120deg, rgba(194, 255, 61, .05), rgba(69, 123, 157, .04));
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 96px); align-items: start;
}
.audit-result .kicker { margin-bottom: 14px; }
.audit-result h3 { margin: 0; font-size: clamp(24px, 2.6vw, 38px); }

/* Порядок работы */
.steps { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 48px); margin: 0; padding: 0; list-style: none; }
.steps::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 1px; background: var(--line-2); }
.step { position: relative; padding-top: 44px; }
.step::before {
  content: ""; position: absolute; left: 0; top: 0; width: 15px; height: 15px; border-radius: 50%;
  background: var(--bg); border: 1px solid var(--accent); box-shadow: 0 0 0 6px var(--bg);
}
.step:hover::before { background: var(--accent); box-shadow: 0 0 0 6px var(--bg), 0 0 24px rgba(194, 255, 61, .55); }
.step h3 { margin-bottom: 14px; font-size: clamp(24px, 2.2vw, 32px); }
.step p { margin: 0; max-width: 340px; color: var(--muted); font-size: 15px; }

/* Работы */
.works { margin: 0; padding: 0; list-style: none; border-bottom: 1px solid var(--line-2); }
.work { border-top: 1px solid var(--line-2); }
.work a {
  display: grid; grid-template-columns: minmax(180px, 1fr) minmax(0, 2.4fr) auto; gap: clamp(16px, 3vw, 48px); align-items: baseline;
  padding: clamp(22px, 3vw, 36px) 0; text-decoration: none; transition: background .3s ease, padding-left .3s ease;
}
.work-name { font-family: var(--serif); font-size: clamp(24px, 2.6vw, 38px); line-height: 1.15; letter-spacing: -.01em; transition: color .25s ease; }
.work-text { color: var(--muted); font-size: 15px; max-width: 60ch; }
.work-text strong { display: block; margin-bottom: 4px; color: var(--text); font-weight: 500; font-size: 16px; }
.work-go { color: var(--accent); font-size: 12px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; white-space: nowrap; }
.work a:hover, .work a:focus-visible { padding-left: 14px; background: linear-gradient(90deg, rgba(194, 255, 61, .09), transparent 80%); outline: none; }
.work a:hover .work-name, .work a:focus-visible .work-name { color: var(--accent); }

/* ---- 4. Контакт ------------------------------------------------------------ */
.contact {
  isolation: isolate; overflow: hidden; background: #03080e url("/assets/hero-a1.webp") 50% 40% / cover no-repeat;
}
.contact::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(3, 8, 14, .97) 0%, rgba(3, 8, 14, .82) 45%, rgba(3, 8, 14, .93) 100%);
}
.contact-grid { display: grid; gap: clamp(40px, 6vw, 96px); }
.contact h2 { max-width: 16em; }
.contact .lead { max-width: 640px; margin: 0; color: var(--muted); font-size: clamp(17px, 1.5vw, 20px); }
.brief-list { margin: 0; padding: 0; list-style: none; max-width: 640px; }
.brief-list li { display: grid; grid-template-columns: 28px 1fr; padding: 14px 0; border-top: 1px solid var(--line); color: #d3dde7; }
.brief-list li:last-child { border-bottom: 1px solid var(--line); }
.brief-list li::before { content: ""; width: 8px; height: 8px; margin-top: 9px; border: 1px solid var(--accent); }
.contact-card { display: grid; max-width: 680px; border-bottom: 1px solid var(--line-2); }
.contact-main {
  display: grid; grid-template-columns: 110px minmax(0, 1fr); align-items: baseline; gap: 16px; padding: 22px 0;
  border-top: 1px solid var(--line-2); text-decoration: none; transition: background .3s ease, padding-left .3s ease;
}
.contact-main span { color: var(--accent); }
.contact-main strong {
  font-family: var(--serif); font-size: clamp(22px, 2.4vw, 32px); font-weight: 400; line-height: 1.2; letter-spacing: -.01em;
  overflow-wrap: anywhere; transition: color .25s ease;
}
.contact-main:hover, .contact-main:focus-visible { padding-left: 12px; background: linear-gradient(90deg, rgba(194, 255, 61, .1), transparent 85%); outline: none; }
.contact-main:hover strong, .contact-main:focus-visible strong { color: var(--accent); }

/* ---- 5. Подвал -------------------------------------------------------------- */
.site-footer { padding: 28px 0; background: var(--bg); border-top: 1px solid var(--line); color: var(--dim); font-family: var(--font); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; }
.footer-grid { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; }
.site-footer a { text-decoration: none; transition: color .2s ease; }
.site-footer a:hover, .site-footer a:focus-visible { color: var(--accent); }

/* ---- Появление при прокрутке (включается только когда работает JS) --------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s cubic-bezier(.2, .7, .2, 1), transform .9s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--i, 0) * 90ms); }
.js .reveal.is-visible { opacity: 1; transform: none; }

.direction:nth-child(2), .step:nth-child(2) { --i: 1; }
.step:nth-child(3) { --i: 2; }
.step:nth-child(4) { --i: 3; }

/* ---- 6. Адаптив ------------------------------------------------------------- */
@media (max-width: 1180px) {
  .status { display: none; }
}
@media (max-width: 1040px) {
  .hero-inner { grid-template-columns: 1fr; gap: 26px; }
  .hero-side { max-width: 480px; }
  .hero-inner { grid-template-columns: 1fr; }
  .tagline { font-size: clamp(28px, 7.6vw, 56px); }
  .audit-grid { grid-template-columns: 1fr; }
  .audit-grid .section-head { position: static; margin-bottom: 8px; }
  .audit-result { grid-template-columns: 1fr; }
  .work a { grid-template-columns: 1fr; gap: 10px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 56px; }
  .steps::before { display: none; }
}
@media (max-width: 900px) {
  .status { display: none; }
  .nav a:not(.nav-contact) { display: none; }
  .nav a.nav-contact { color: var(--accent); border: 1px solid rgba(194, 255, 61, .5); }
  .directions { grid-template-columns: 1fr; gap: 56px; }
}
@media (max-width: 640px) {
  :root { --header-h: 64px; }
  .brand small { display: none; }
  .brand-mark { width: 34px; height: 34px; }
  .ledger-row { grid-template-columns: 1fr; row-gap: 8px; }
  .steps { grid-template-columns: 1fr; row-gap: 40px; padding-left: 28px; }
  .steps::before { display: block; left: 7px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .step { padding: 0 0 0 28px; }
  .step::before { left: -28px; }
  .footer-grid { flex-direction: column; align-items: flex-start; }
  .contact-main { grid-template-columns: 1fr; gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: .01ms !important; }
}

/* ==========================================================================
   Светлая система 2026 — архитектурная концепция.
   Старые WebGL/неоновые правила выше сохранены для безопасного отката, но
   полностью перекрыты этим слоем. Первый экран статичен и не запускает scene.js.
   ========================================================================== */
:root {
  --bg: #f4efe6;
  --bg-2: #eee5d9;
  --bg-3: #e4d8c9;
  --text: #25231f;
  --muted: #6f675e;
  --dim: #91877b;
  --line: rgba(62, 52, 42, .13);
  --line-2: rgba(62, 52, 42, .24);
  --accent: #a8684a;
  --accent-soft: #c48768;
  --on-accent: #fffaf3;
  --ice: #8c7b6d;
  --blue: #7a6b60;
  --header-h: 106px;
}

html, body { background: var(--bg); color: var(--text); }
body::after { opacity: .025; mix-blend-mode: multiply; }
::selection { background: #d9bca8; color: var(--text); }
:focus-visible { outline-color: var(--accent); }

/* Шапка и знак */
.site-header,
.site-header.on-hero {
  color: var(--text); background: rgba(244,239,230,.94); border-bottom-color: rgba(168,104,74,.2);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.site-header::after { display: none; }
.site-header .container, .hero-light .container { width: calc(100% - 11.1vw); max-width: none; }
.header-grid { min-height: var(--header-h); }
.brand { gap: 21px; }
.brand-mark {
  position: relative; width: 64px; height: 54px; border: 0; border-radius: 0; padding-right: 4px;
  color: var(--text); background: transparent; box-shadow: none; font-family: var(--font);
  font-size: 0; font-weight: 700; line-height: 1; transform: skewX(-7deg);
}
.brand-mark img { width: 64px; height: 54px; }
.brand-mark::before,
.brand-mark::after { content: ""; position: absolute; left: 4px; background: var(--text); }
.brand-mark::before {
  top: 7px; width: 42px; height: 9px; box-shadow: 11px 12px 0 -1px var(--text);
  clip-path: polygon(0 0, 100% 0, 83% 100%, 18% 100%);
}
.brand-mark::after {
  top: 28px; width: 44px; height: 22px;
  clip-path: polygon(0 0, 31% 0, 100% 100%, 65% 100%, 29% 50%, 29% 100%, 0 100%);
}
.brand strong { font-size: 31px; font-weight: 400; letter-spacing: .24em; }
.brand small { display: none; }
.nav { gap: clamp(18px, 2.8vw, 50px); }
.nav a { padding: 8px 0; color: var(--text); font-size: clamp(17px, 1.45vw, 24px); font-weight: 400; text-shadow: none; }
.nav a:hover, .nav a:focus-visible { color: var(--accent); background: transparent; box-shadow: inset 0 -1px 0 var(--accent); outline: none; border-radius: 0; }
.status { display: none; }

/* Первый экран */
.hero.hero-light {
  align-items: flex-start; min-height: 100svh; padding: 0;
  background: var(--bg); color: var(--text);
}
.hero.hero-light::before {
  content: ""; position: absolute; left: 3.1vw; right: 0; top: var(--header-h);
  z-index: 2; height: 1px; background: rgba(168,104,74,.24); pointer-events: none;
}
.hero.hero-light::after {
  background: linear-gradient(90deg, rgba(244,239,230,.18) 0%, rgba(244,239,230,.08) 44%, transparent 67%);
}
.hero-light .hero-poster {
  top: var(--header-h); height: calc(100% - var(--header-h));
  object-fit: cover; object-position: center; transform: none;
}
.hero-light .hero-inner { position: relative; z-index: 4; display: block; padding-top: clamp(196px, 21.7vh, 210px); }
.hero-light .hero-main { position: relative; z-index: 3; width: min(820px, 53vw); padding: 0; }
.hero-light h1 { margin: 0; }
.hero-light .tagline {
  display: block; max-width: none; margin: 0; padding: 0; color: var(--text);
  background: none; -webkit-text-fill-color: currentColor; filter: none; text-shadow: none;
  font-family: var(--serif); font-size: clamp(52px, 4.45vw, 74px); font-weight: 400;
  line-height: 1.2; letter-spacing: -.025em;
}
.hero-light .tagline > span { display: block; width: 82%; white-space: nowrap; transform: scaleX(1.22); transform-origin: left center; }
.hero-signal { display: block; width: min(780px, 100%); height: 42px; margin: 34px 0 26px; overflow: visible; }
.hero-signal path { fill: none; }
.hero-signal .signal-base { stroke: rgba(168,104,74,.58); stroke-width: 1.2; }
.hero-signal .signal-accent { stroke: var(--accent); stroke-width: 5; }
.hero-signal rect { fill: rgba(244,239,230,.55); stroke: rgba(168,104,74,.62); stroke-width: 1.3; }
.hero-signal .signal-dot { fill: var(--accent); stroke: none; }
.hero-light .btn-cta {
  display: inline-flex; width: 410px; min-width: 0; min-height: 86px; justify-content: space-between; align-items: center; gap: 34px;
  padding: 18px 40px 18px 48px; border: 1px solid rgba(120, 70, 46, .18); border-radius: 12px;
  color: var(--on-accent); background: var(--accent); text-shadow: none;
  box-shadow: 0 14px 34px rgba(112, 67, 44, .11); font-size: 29px; font-weight: 350; text-decoration: none;
}
.hero-light .btn-cta::before { display: none; }
.hero-light .btn-cta:hover, .hero-light .btn-cta:focus-visible {
  color: var(--on-accent); background: #955a40; filter: none; transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(112, 67, 44, .22);
}
.hero-light .btn-cta:active { transform: translateY(0); box-shadow: 0 8px 18px rgba(112, 67, 44, .18); }
.hero-light .btn-cta > span { font-size: 36px; font-weight: 200; }
.hero-pager { display: flex; align-items: center; gap: 13px; margin-top: 76px; }
.hero-pager i { width: 12px; height: 12px; border: 1px solid rgba(168,104,74,.7); border-radius: 50%; }
.hero-pager i:first-child { background: var(--accent); }
.hero-pager span { width: 67px; height: 1px; margin-left: 11px; background: rgba(168,104,74,.58); }
.hero-frame { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.hero-frame::before { content: ""; position: absolute; top: 0; bottom: 0; left: 3.1vw; width: 1px; background: rgba(168,104,74,.23); }
.hero-frame::after { content: ""; position: absolute; left: 0; right: 0; bottom: 3.9vh; height: 1px; background: rgba(168,104,74,.2); }
.frame-plus { position: absolute; width: 20px; height: 20px; }
.frame-plus::before, .frame-plus::after { content: ""; position: absolute; background: rgba(168,104,74,.6); }
.frame-plus::before { left: 9px; top: 0; width: 1px; height: 20px; }
.frame-plus::after { left: 0; top: 9px; width: 20px; height: 1px; }
.frame-plus-top { left: calc(3.1vw - 10px); top: calc(var(--header-h) - 10px); }
.frame-plus-bottom { right: 1.8vw; bottom: calc(3.9vh - 10px); }

/* Остальные разделы переводятся в ту же светлую палитру */
.section, .site-footer { background: var(--bg); border-color: var(--line); }
.section-alt { background: var(--bg-2); }
.kicker, .eyebrow, .contact-main span, .work-go { color: var(--accent); text-shadow: none; }
.intro, .direction > p:not(.index), .ledger-row p, .step p, .work-text, .contact .lead { color: var(--muted); }
.rows li, .brief-list li { color: #4e4841; }
.rows li:hover { color: var(--text); background: linear-gradient(90deg, rgba(168,104,74,.08), transparent 85%); }
.rows li::before, .brief-list li::before { border-color: var(--accent); }
.ledger-row:hover { background: linear-gradient(90deg, rgba(168,104,74,.07), transparent 70%); }
.ledger-row:hover strong { color: var(--accent); }
.audit-result {
  border-color: var(--line-2); border-left-color: var(--accent);
  background: linear-gradient(120deg, rgba(168,104,74,.07), rgba(255,255,255,.18));
}
.step::before { background: var(--bg); border-color: var(--accent); box-shadow: 0 0 0 6px var(--bg); }
.step:hover::before { background: var(--accent); box-shadow: 0 0 0 6px var(--bg), 0 0 0 9px rgba(168,104,74,.12); }
.work-text strong { color: var(--text); }
.work a:hover, .work a:focus-visible { background: linear-gradient(90deg, rgba(168,104,74,.08), transparent 80%); }
.work a:hover .work-name, .work a:focus-visible .work-name { color: var(--accent); }
.contact {
  background: #e9dfd2 url("/assets/hero-light-a1.webp") 70% 50% / cover no-repeat;
}
.contact::before { background: linear-gradient(90deg, rgba(244,239,230,.97), rgba(244,239,230,.88) 55%, rgba(244,239,230,.72)); }
.brief-list li { color: #4e4841; }
.contact-main:hover, .contact-main:focus-visible { background: linear-gradient(90deg, rgba(168,104,74,.08), transparent 85%); }
.contact-main:hover strong, .contact-main:focus-visible strong { color: var(--accent); }
.site-footer { color: var(--dim); }

/* Полноценный подвал */
.site-footer { padding: clamp(58px, 8vw, 104px) 0 24px; text-transform: none; letter-spacing: normal; }
.footer-main {
  display: grid; grid-template-columns: minmax(280px, 1.7fr) minmax(150px, .7fr) minmax(150px, .7fr) auto;
  gap: clamp(34px, 6vw, 92px); align-items: start; padding-bottom: clamp(44px, 7vw, 76px);
}
.footer-brand { max-width: 470px; }
.footer-logo { display: inline-flex; align-items: center; gap: 15px; color: var(--text); text-decoration: none; }
.footer-logo strong { font-size: 17px; font-weight: 500; letter-spacing: .3em; }
.footer-brand p { max-width: 430px; margin: 24px 0 0; color: var(--muted); font-size: 16px; line-height: 1.6; }
.footer-column { display: grid; align-content: start; gap: 11px; }
.footer-column > strong {
  margin-bottom: 8px; color: var(--dim); font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
}
.footer-column a { color: var(--text); font-size: 15px; text-decoration: none; transition: color .2s ease, transform .2s ease; }
.footer-column a:hover, .footer-column a:focus-visible { color: var(--accent); transform: translateX(3px); outline: none; }
.back-to-top {
  display: inline-flex; align-items: center; gap: 14px; padding: 0; border: 0; color: var(--text); background: transparent;
  font: 500 13px/1 var(--font); letter-spacing: .14em; text-transform: uppercase; cursor: pointer;
}
.back-to-top i {
  display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 50%;
  color: var(--accent); font-style: normal; font-size: 19px; transition: color .2s ease, background .2s ease, transform .2s ease;
}
.back-to-top:hover i, .back-to-top:focus-visible i { color: var(--on-accent); background: var(--accent); transform: translateY(-3px); }
.back-to-top:focus-visible { outline: none; }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-top: 22px; border-top: 1px solid var(--line);
  color: var(--dim); font-size: 11px; letter-spacing: .13em; text-transform: uppercase;
}

@media (max-width: 900px) {
  .nav a.nav-contact { color: var(--accent); border: 0; border-radius: 0; }
  .hero.hero-light::after { background: linear-gradient(90deg, rgba(244,239,230,.88), rgba(244,239,230,.62) 58%, rgba(244,239,230,.08)); }
  .hero-light .hero-main { width: min(680px, 78vw); }
  .footer-main { grid-template-columns: 1.5fr 1fr 1fr; }
  .back-to-top { grid-column: 1 / -1; justify-self: end; }
}

@media (max-width: 640px) {
  :root { --header-h: 78px; }
  .site-header .container, .hero-light .container { width: calc(100% - 40px); }
  .brand-mark { width: 40px; transform: none; }
  .brand-mark img { width: 40px; height: auto; }
  .brand strong { font-size: 14px; letter-spacing: .24em; }
  .hero.hero-light { align-items: flex-start; min-height: 100svh; padding: 0; }
  .hero.hero-light::after {
    background: linear-gradient(180deg, rgba(244,239,230,.98) 0%, rgba(244,239,230,.9) 44%, rgba(244,239,230,.15) 72%);
  }
  .hero-light .hero-poster { object-position: 72% center; }
  .hero-light .hero-inner { padding-top: 145px; }
  .hero-light .hero-main { width: 100%; }
  .hero-light .tagline { max-width: 9em; font-size: clamp(40px, 12.4vw, 58px); line-height: 1.04; }
  .hero-light .tagline > span { width: 100%; white-space: normal; transform: none; }
  .hero-signal { margin: 28px 0 22px; }
  .hero-light .btn-cta { min-width: 0; width: 100%; max-width: 360px; min-height: 68px; padding: 15px 24px; font-size: 21px; }
  .hero-pager { margin-top: 52px; }
  .hero-frame::before, .frame-plus-top { display: none; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 38px 24px; }
  .footer-brand { grid-column: 1 / -1; }
  .back-to-top { grid-column: 1 / -1; justify-self: stretch; justify-content: space-between; padding-top: 22px; border-top: 1px solid var(--line); }
  .footer-bottom { align-items: flex-start; flex-direction: column; line-height: 1.5; }
}
