/* ============================================================
   AM.DEV — Design System
   Индустриальный монохром · Терминальная эстетика
   ------------------------------------------------------------
   Токены · Типографика · Компоненты · Motion
   ============================================================ */

/* ---------- 1. TOKENS ---------- */
:root {
  /* Цвета — строгий монохром, белый как единственный акцент */
  --bg:        #0A0A0A;
  --bg-2:      #111111;
  --bg-3:      #171717;
  --line:      rgba(255, 255, 255, 0.08);
  --line-2:    rgba(255, 255, 255, 0.16);
  --text:      #FFFFFF;
  --text-dim:  #A3A3A3;
  --text-mute: #5F5F5F;

  /* Типографика */
  --font-display: 'Unbounded', 'Golos Text', system-ui, sans-serif;
  --font-body:    'Golos Text', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, 'Cascadia Code', monospace;

  /* Движение */
  --ease:  cubic-bezier(0.22, 1, 0.36, 1);   /* плавный выход */
  --ease-2: cubic-bezier(0.77, 0, 0.175, 1); /* драматичный */
  --dur:   0.45s;

  /* Макет */
  --container: 1200px;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 2px;
}

/* ---------- 2. RESET / BASE ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input, textarea { font: inherit; color: inherit; }
ul, ol { list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.1; letter-spacing: -0.01em; }

::selection { background: var(--text); color: var(--bg); }

/* Кастомный скроллбар */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #2A2A2A; border: 2px solid var(--bg); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #3A3A3A; }

/* Зерно — тонкая плёнка над всем сайтом */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='300' height='300'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.6'/></svg>");
}

/* Скрытый для скринридеров */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- 3. UTILITIES ---------- */
.container {
  width: min(var(--container), 100% - var(--pad) * 2);
  margin-inline: auto;
}

.section { padding-block: clamp(4.5rem, 10vw, 8.5rem); position: relative; }

/* Тонкие разделители секций */
.section--lined { border-top: 1px solid var(--line); }

/* Заголовок секции: моно-лейбл + крупный дисплей */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-dim);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.eyebrow::before { content: "//"; color: var(--text); }
.eyebrow--num::after {
  content: attr(data-num);
  color: var(--text-mute);
  letter-spacing: 0.1em;
}

.section-title {
  font-size: clamp(1.75rem, 4.5vw, 3rem);
  max-width: 22ch;
}
.section-title--stroke {
  color: transparent;
  -webkit-text-stroke: 1px var(--line-2);
}
.section-sub {
  color: var(--text-dim);
  max-width: 58ch;
  margin-top: 1.25rem;
}

/* Гигантский контурный текст-декор */
.outline-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(4rem, 14vw, 11rem);
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.12);
  user-select: none;
  pointer-events: none;
  white-space: nowrap;
}

/* ---------- 4. BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 1rem 1.9rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  transition:
    background var(--dur) var(--ease),
    color var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    transform var(--dur) var(--ease);
  will-change: transform;
}
.btn .btn-arrow {
  transition: transform var(--dur) var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:hover .btn-arrow { transform: translateX(4px); }
.btn:active { transform: translateY(0) scale(0.98); }

.btn-primary {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}
.btn-primary:hover { background: #D9D9D9; border-color: #D9D9D9; }

.btn-ghost { background: transparent; color: var(--text); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.07); border-color: var(--text); }

/* ---------- 5. HEADER / NAV ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.78);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
}
.logo .logo-caret {
  width: 0.62em;
  height: 1em;
  background: var(--text);
  animation: caret 1.1s steps(1) infinite;
}
@keyframes caret {
  0%, 49%  { opacity: 1; }
  50%, 100% { opacity: 0; }
}

.nav { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2.25rem); }
.nav a {
  position: relative;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding-block: 0.4rem;
  transition: color var(--dur) var(--ease);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--text);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--dur) var(--ease);
}
.nav a:hover { color: var(--text); }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav a.active { color: var(--text); }
.nav a.active::after { transform: scaleX(1); }

/* Бургер */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 10px;
  z-index: 102;
}
.burger span {
  display: block;
  height: 1.5px;
  width: 100%;
  background: var(--text);
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Мобильное меню */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 101;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--pad);
  transform: translateX(100%);
  transition: transform 0.55s var(--ease-2);
  visibility: hidden;
}
.mobile-menu.open { transform: translateX(0); visibility: visible; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 0.5rem; }
.mobile-menu nav a {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 8vw, 2.8rem);
  font-weight: 700;
  padding-block: 0.35rem;
  color: var(--text-dim);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  transition: color var(--dur) var(--ease), padding-left var(--dur) var(--ease);
}
.mobile-menu nav a small {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--text-mute);
}
.mobile-menu nav a:hover, .mobile-menu nav a.active { color: var(--text); padding-left: 0.75rem; }
.mobile-menu .menu-foot {
  margin-top: 3rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mute);
}

/* ---------- 6. HERO ---------- */
.hero {
  position: relative;
  padding-block: clamp(5rem, 12vw, 9rem) clamp(4rem, 9vw, 7rem);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
/* Сетка-подложка */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 20%, black 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 90% 80% at 50% 20%, black 30%, transparent 75%);
  pointer-events: none;
}

.hero-inner { position: relative; }
.hero-title {
  font-size: clamp(2.4rem, 7.5vw, 5.6rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  max-width: 14ch;
  text-wrap: balance;
}
.hero-title .t-dim {
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.35);
}
.hero-title .t-line {
  position: relative;
  white-space: nowrap;
}
.hero-title .t-line::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0.04em;
  width: 100%;
  height: 0.08em;
  background: var(--text);
  transform: scaleX(0);
  transform-origin: left;
  animation: drawLine 0.9s var(--ease-2) 0.9s forwards;
}
@keyframes drawLine { to { transform: scaleX(1); } }

.hero-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 2rem;
  margin-top: clamp(2.5rem, 6vw, 4.5rem);
}
.hero-sub {
  color: var(--text-dim);
  max-width: 52ch;
  font-size: 1.05rem;
}
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2rem; }

/* Терминальная строка */
.terminal {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-dim);
  border: 1px solid var(--line);
  background: var(--bg-2);
  padding: 0.85rem 1.15rem;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  border-radius: var(--radius);
  max-width: 100%;
  overflow: hidden;
}
.terminal .prompt { color: var(--text); }
.terminal .cmd { color: var(--text-mute); white-space: nowrap; }
.terminal .blink {
  width: 0.6em; height: 1.1em;
  background: var(--text);
  flex-shrink: 0;
  animation: caret 1.1s steps(1) infinite;
}

/* ---------- 7. PAGE HERO (внутренние страницы) ---------- */
.page-hero {
  padding-block: clamp(4rem, 9vw, 6.5rem);
  border-bottom: 1px solid var(--line);
}
.page-hero .ph-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: end;
}
.page-title {
  font-size: clamp(2.4rem, 7vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
}
.page-title .t-dim {
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.35);
}
.page-sub { color: var(--text-dim); max-width: 46ch; }

/* ---------- 8. MARQUEE ---------- */
.marquee {
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding-block: 1.1rem;
}
.marquee-track {
  display: flex;
  gap: 3.5rem;
  width: max-content;
  animation: marquee 30s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-dim);
  display: inline-flex;
  align-items: center;
  gap: 3.5rem;
  white-space: nowrap;
}
.marquee-track span::after { content: "//"; color: var(--text-mute); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- 9. STATS ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
}
.stat {
  padding: clamp(2rem, 4vw, 3.25rem) var(--pad);
  border-right: 1px solid var(--line);
}
.stat:last-child { border-right: none; }
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}
.stat-num small { font-size: 0.5em; color: var(--text-dim); }
.stat-label {
  margin-top: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-mute);
}

/* ---------- 10. CARDS ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 3rem;
}
.card {
  background: var(--bg);
  padding: clamp(1.75rem, 3.5vw, 2.75rem);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transition: background var(--dur) var(--ease);
}
.card:hover { background: var(--bg-2); }
.card-top { display: flex; justify-content: space-between; align-items: flex-start; }
.card-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--text-mute);
}
.card-icon { color: var(--text); }
.card-title { font-size: clamp(1.2rem, 2.4vw, 1.6rem); margin-top: auto; }
.card-text { color: var(--text-dim); font-size: 0.95rem; }
.card-list { display: flex; flex-direction: column; gap: 0.5rem; }
.card-list li {
  display: flex;
  gap: 0.65rem;
  align-items: baseline;
  color: var(--text-dim);
  font-size: 0.92rem;
}
.card-list li::before { content: "+"; font-family: var(--font-mono); color: var(--text); }
.card-link {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.card-link .btn-arrow { transition: transform var(--dur) var(--ease); }
.card:hover .card-link .btn-arrow { transform: translateX(6px); }

/* Фичи (что входит) */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 3rem;
}
.feature {
  background: var(--bg);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.1rem;
  align-items: start;
  transition: background var(--dur) var(--ease);
}
.feature:hover { background: var(--bg-2); }
.feature-index {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-mute);
  padding-top: 0.3rem;
}
.feature h3 { font-size: 1.05rem; font-family: var(--font-body); font-weight: 600; letter-spacing: 0; }
.feature p { color: var(--text-dim); font-size: 0.92rem; margin-top: 0.4rem; }

/* Технологии — моно-теги */
.tag-row { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 2.5rem; }
.tag {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  border: 1px solid var(--line-2);
  padding: 0.55rem 0.95rem;
  border-radius: var(--radius);
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.tag:hover { color: var(--text); border-color: var(--text); }

/* ---------- 11. STEPS / TIMELINE ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 3rem;
}
.step {
  background: var(--bg);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: background var(--dur) var(--ease);
}
.step:hover { background: var(--bg-2); }
.step-num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.3);
  line-height: 1;
}
.step h3 { font-size: 1.05rem; font-family: var(--font-body); font-weight: 600; letter-spacing: 0; }
.step p { color: var(--text-dim); font-size: 0.9rem; }

/* Таймлайн на страницах услуг */
.timeline { margin-top: 3rem; }
.tl-item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 2rem;
  padding-block: 2rem;
  border-top: 1px solid var(--line);
}
.tl-item:last-child { border-bottom: 1px solid var(--line); }
.tl-num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  color: var(--text-mute);
  padding-top: 0.35rem;
}
.tl-body h3 { font-size: 1.15rem; font-family: var(--font-body); font-weight: 600; letter-spacing: 0; }
.tl-body p { color: var(--text-dim); font-size: 0.95rem; margin-top: 0.5rem; max-width: 60ch; }
.tl-num em {
  display: block;
  font-style: normal;
  margin-top: 0.5rem;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: var(--text-mute);
}

/* ---------- 11b. PRICING ---------- */
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 3rem;
}
.price-card {
  background: var(--bg);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  position: relative;
  transition: background var(--dur) var(--ease);
}
.price-card:hover { background: var(--bg-2); }
.price-card--hot { background: var(--bg-2); }
.price-badge {
  position: absolute;
  top: 0;
  right: 1.25rem;
  transform: translateY(-50%);
  background: var(--text);
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius);
}
.price-name { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; }
.price-value {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}
.price-value small {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--text-dim);
}
.price-note {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--text-mute);
}
.price-list { display: flex; flex-direction: column; gap: 0.55rem; margin-top: auto; }
.price-list li {
  display: flex;
  gap: 0.65rem;
  align-items: baseline;
  color: var(--text-dim);
  font-size: 0.9rem;
}
.price-list li::before { content: "+"; font-family: var(--font-mono); color: var(--text); }
.price-card .btn { margin-top: 1.5rem; justify-content: center; width: 100%; }
.price-foot { color: var(--text-dim); font-size: 0.92rem; margin-top: 2rem; max-width: 72ch; }
.price-foot p + p { margin-top: 0.6rem; }
.price-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.2rem;
  margin-top: 2rem;
}
.price-cta p { color: var(--text-dim); font-size: 0.92rem; max-width: 72ch; }

/* ---------- 11c. FAQ ---------- */
.faq { margin-top: 3rem; }
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem 0;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.05rem;
  list-style: none;
  transition: color var(--dur) var(--ease);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--text); }
.faq-item summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 1.15rem;
  color: var(--text-dim);
  transition: transform var(--dur) var(--ease);
  flex-shrink: 0;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-a {
  padding: 0 0 1.5rem;
  color: var(--text-dim);
  font-size: 0.95rem;
  max-width: 72ch;
}
.faq-item .faq-a p + p { margin-top: 0.6rem; }

/* ---------- 12. CTA BANNER ---------- */
.cta-banner {
  border: 1px solid var(--line-2);
  padding: clamp(2.5rem, 6vw, 5rem) clamp(1.5rem, 4vw, 4rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
.cta-banner h2 {
  font-size: clamp(1.7rem, 4.5vw, 3rem);
  max-width: 16ch;
}
.cta-banner h2 .t-dim {
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.35);
}
.cta-banner p { color: var(--text-dim); margin-top: 0.9rem; max-width: 46ch; }

/* ---------- 13. DASHED PLACEHOLDER (цены / фото) ---------- */
.dash-box {
  border: 1px dashed var(--line-2);
  padding: clamp(2.5rem, 6vw, 4.5rem);
  text-align: center;
  margin-top: 3rem;
  position: relative;
}
.dash-box .dash-label {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.dash-box .dash-note {
  color: var(--text-dim);
  font-size: 0.95rem;
  margin-top: 0.6rem;
}
.dash-box .dash-ico { color: var(--text-mute); margin: 0 auto 1rem; }

/* ---------- 14. PORTFOLIO GRID (плейсхолдеры) ---------- */
.port-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 3rem;
}
.port-slot {
  aspect-ratio: 4 / 3;
  background: var(--bg-2);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  transition: background var(--dur) var(--ease);
}
.port-slot:hover { background: var(--bg-3); }
.port-slot .slot-inner {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.port-slot .slot-inner svg { margin: 0 auto 0.8rem; color: var(--text-mute); }

/* ---------- 15. CONTACTS ---------- */
.contact-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1.5rem;
  padding: clamp(1.5rem, 3vw, 2.25rem) 0;
  border-top: 1px solid var(--line);
  transition: padding-left var(--dur) var(--ease);
}
.contact-row:last-of-type { border-bottom: 1px solid var(--line); }
.contact-row:hover { padding-left: 0.75rem; }
.contact-label {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 0.4rem;
}
.contact-value {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.6vw, 1.8rem);
  font-weight: 600;
  word-break: break-word;
}
.contact-arrow { color: var(--text-mute); transition: color var(--dur) var(--ease), transform var(--dur) var(--ease); }
.contact-row:hover .contact-arrow { color: var(--text); transform: translateX(6px); }

/* Форма */
.contact-form { margin-top: 3rem; }
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.form-group { display: flex; flex-direction: column; gap: 0.6rem; }
.form-group--full { grid-column: 1 / -1; }
.form-group label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.form-group input,
.form-group textarea {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  color: var(--text);
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
  width: 100%;
}
.form-group textarea { min-height: 150px; resize: vertical; }
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--text);
  background: var(--bg-3);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-mute); }
.form-foot { margin-top: 1.5rem; display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.form-note { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; color: var(--text-mute); }

.form-success {
  display: none;
  border: 1px solid var(--line-2);
  padding: clamp(2rem, 5vw, 3.5rem);
  text-align: center;
}
.form-success.show { display: block; }
.form-success h3 { font-size: 1.5rem; }
.form-success p { color: var(--text-dim); margin-top: 0.7rem; }

/* ---------- 16. FOOTER ---------- */
.site-footer { border-top: 1px solid var(--line); padding-top: clamp(3rem, 7vw, 5rem); }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  padding-bottom: clamp(2.5rem, 6vw, 4rem);
}
.footer-brand p { color: var(--text-dim); font-size: 0.92rem; margin-top: 1.1rem; max-width: 34ch; }
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 1.25rem;
  font-weight: 500;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.7rem; }
.footer-col a {
  color: var(--text-dim);
  font-size: 0.92rem;
  transition: color var(--dur) var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.footer-col a:hover { color: var(--text); }
.footer-col a::before { content: "→"; font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-mute); transition: color var(--dur) var(--ease); }
.footer-col a:hover::before { color: var(--text); }
.footer-col--contacts a::before { content: ""; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-block: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-mute);
}

/* ---------- 17. MOTION: REVEAL ---------- */
/* Активируется только при наличии класса .js (JS включён) */
html.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  filter: blur(6px);
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease),
    filter 0.7s var(--ease);
  transition-delay: var(--delay, 0s);
  will-change: opacity, transform, filter;
}
html.js .reveal.in {
  opacity: 1;
  transform: none;
  filter: none;
}

/* ---------- 18. CUSTOM CURSOR ---------- */
html.has-cursor, html.has-cursor a, html.has-cursor button { cursor: none; }
.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  background: var(--text);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: difference;
  opacity: 0;
}
html.has-cursor .cursor-dot { opacity: 1; }

/* ---------- 18b. COOKIE BANNER / FOOTER LEGAL ---------- */
.cookie-banner {
  position: fixed;
  left: 1rem;
  bottom: 1rem;
  z-index: 1000;
  max-width: 420px;
  background: var(--bg-3);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
  transform: translateY(130%);
  opacity: 0;
  transition:
    transform var(--dur) var(--ease),
    opacity var(--dur) var(--ease);
}
.cookie-banner.show {
  transform: translateY(0);
  opacity: 1;
}
.cookie-banner p {
  color: var(--text-dim);
  font-size: 0.86rem;
  line-height: 1.65;
}
.cookie-banner a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--dur) var(--ease);
}
.cookie-banner a:hover { color: var(--text-dim); }
.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.cookie-actions .btn {
  padding: 0.7rem 1.3rem;
  font-size: 0.72rem;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem 1.6rem;
  border-top: 1px solid var(--line);
  margin-top: 2.5rem;
  padding-top: 1.4rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
}
.footer-legal a {
  color: var(--text-mute);
  transition: color var(--dur) var(--ease);
}
.footer-legal a:hover { color: var(--text); }

/* ---------- 11d. LEGAL PAGES ---------- */
.legal-body { max-width: 860px; }
.legal-body .legal-note {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 2.5rem;
}
.legal-body h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  margin: 2.4rem 0 0.9rem;
}
.legal-body h3:first-child { margin-top: 0; }
.legal-body p {
  color: var(--text-dim);
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 1rem;
}
.legal-body ul {
  color: var(--text-dim);
  font-size: 0.95rem;
  line-height: 1.7;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1rem;
}
.legal-body li { list-style: none; }
.legal-body li::before { content: "—"; color: var(--text); margin-right: 0.7rem; }
.legal-body a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- 19. RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .hero-row { grid-template-columns: 1fr; align-items: start; }
  .page-hero .ph-row { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .port-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .nav { display: none; }
  .burger { display: flex; }
}

@media (max-width: 640px) {
  .card-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .port-grid { grid-template-columns: 1fr; }
  .price-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .tl-item { grid-template-columns: 1fr; gap: 0.6rem; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .terminal { font-size: 0.7rem; }
  .cookie-banner { left: 0.75rem; right: 0.75rem; bottom: 0.75rem; max-width: none; }
  .cookie-actions .btn { flex: 1; justify-content: center; }
}

/* ---------- 20. REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  html.js .reveal { opacity: 1; transform: none; filter: none; }
  .cursor-dot { display: none; }
  .logo .logo-caret, .terminal .blink { animation: none; opacity: 1; }
  .hero-title .t-line::after { transform: scaleX(1); animation: none; }
}
