/* ==========================================================================
   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 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; }
}
