/* ============================================================
   Cobalt IT·Studio — landing styles
   Palette: deep navy background, cobalt/cyan accents
   ============================================================ */

:root {
  --bg: #070D20;
  --bg-soft: #0D1C46;
  --surface: #0E1830;
  --line: rgba(140, 170, 255, 0.14);
  --line-strong: rgba(110, 150, 255, 0.32);

  --text: #EAF0FF;
  --muted: #A3B4D9;
  --muted-2: #7C8FB8;

  --accent: #3D7BFF;
  --accent-2: #45C4FF;
  --accent-grad: linear-gradient(135deg, #3D7BFF, #45C4FF);
  --success: #34D399;

  --radius: 18px;
  --radius-sm: 12px;
  --header-h: 72px;
  --container: 1160px;

  --shadow-card: 0 24px 48px rgba(2, 6, 18, 0.45);
  --shadow-btn: 0 10px 28px rgba(61, 123, 255, 0.35);
}

/* ---------- Reset / base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; }
a { color: inherit; text-decoration: none; }
ul, ol, figure, blockquote, dl, dd { margin: 0; padding: 0; }
li { list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* атрибут hidden сильнее любых display-правил компонентов */
[hidden] { display: none !important; }

h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); line-height: 1.12; font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); line-height: 1.18; font-weight: 800; letter-spacing: -0.015em; }
h3 { font-size: 1.15rem; font-weight: 700; }

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}
.container-narrow { max-width: 820px; }

.grad-text {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--accent);
  border-radius: 0 0 10px 10px;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

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

/* ---------- Sections ---------- */

/* Тоновая «волна»: каждая секция — вертикальный градиент, заканчивающийся
   цветом, с которого начинается следующая. Границы секций бесшовные,
   без линий; градиенты только вертикальные — пятен быть не может. */
.section { padding: 96px 0; background: linear-gradient(180deg, var(--bg-soft), var(--bg)); }
.section-alt { background: linear-gradient(180deg, var(--bg), var(--bg-soft)); }

.section-head {
  max-width: 680px;
  margin: 0 auto 56px;
  text-align: center;
}
.section-lead {
  margin-top: 16px;
  color: var(--muted);
  font-size: 1.06rem;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  padding: 6px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(61, 123, 255, 0.08);
  color: var(--accent-2);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.98rem;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s, background 0.2s;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent-grad);
  color: #fff;
  box-shadow: var(--shadow-btn);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(61, 123, 255, 0.45); }
.btn-primary:active { transform: translateY(0); }
.btn[disabled] { opacity: 0.6; cursor: wait; transform: none; pointer-events: none; }

.btn-ghost {
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--accent-2); background: rgba(61, 123, 255, 0.1); transform: translateY(-2px); }

.btn-sm { padding: 10px 20px; font-size: 0.9rem; }
.btn-block { width: 100%; }

.link-btn {
  color: var(--accent-2);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 4px 0;
  transition: color 0.2s;
}
.link-btn:hover { color: var(--text); }

/* ---------- Cards ---------- */

.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-card);
}

.card-foot {
  margin-top: auto;
  padding-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
}

.icon-tile {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  border-radius: 12px;
  background: rgba(61, 123, 255, 0.14);
  border: 1px solid rgba(69, 196, 255, 0.25);
  color: var(--accent-2);
}
.icon-tile svg { width: 22px; height: 22px; }

.check-list { display: grid; gap: 8px; }
.check-list li {
  position: relative;
  padding-left: 26px;
  color: var(--muted);
  font-size: 0.92rem;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.32em;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(52, 211, 153, 0.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath d='M2 5.2l2 2 4-4.4' stroke='%2334D399' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 10px no-repeat;
  border: 1px solid rgba(52, 211, 153, 0.3);
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  transition: background 0.25s, border-color 0.25s;
  border-bottom: 1px solid transparent;
}
/* без backdrop-filter: размытие фиксированной шапки пересчитывалось
   каждый кадр скролла и роняло FPS */
.site-header.scrolled {
  background: rgba(6, 11, 28, 0.94);
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 100%;
}

.logo { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-text {
  display: flex;
  flex-direction: column;
  font-weight: 800;
  font-size: 1.18rem;
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.logo-text small {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.site-nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
}
.site-nav a {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.94rem;
  transition: color 0.2s;
}
.site-nav a:hover { color: var(--text); }

.header-cta { flex-shrink: 0; }

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 9px;
  border-radius: 10px;
  border: 1px solid var(--line);
}
.burger span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.25s, opacity 0.25s;
}
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: calc(var(--header-h) + 72px) 0 88px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--bg), var(--bg-soft));
}

.hero-bg { position: absolute; inset: 0; pointer-events: none; will-change: transform; }

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(120, 160, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 160, 255, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 85% 65% at 50% 0%, #000 35%, transparent 100%);
  mask-image: radial-gradient(ellipse 85% 65% at 50% 0%, #000 35%, transparent 100%);
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  opacity: 0.55;
  animation: drift 14s ease-in-out infinite alternate;
}
/* многоступенчатое затухание вместо blur-фильтра: ровный ambient-свет
   без «горячего» центра и заметной границы пятна */
.hero-glow-1 { width: 640px; height: 640px; top: -260px; right: -160px; background: radial-gradient(circle, rgba(61, 123, 255, 0.2), rgba(61, 123, 255, 0.08) 40%, transparent 70%); }

@keyframes drift {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-30px, 24px, 0); }
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 56px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  padding: 8px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(10, 18, 40, 0.6);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.hero-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 10px var(--success);
  flex-shrink: 0;
}

.hero-lead {
  margin: 22px 0 32px;
  max-width: 540px;
  color: var(--muted);
  font-size: 1.12rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 52px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.stat-value {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-stats dd { color: var(--muted-2); font-size: 0.82rem; line-height: 1.4; margin-top: 4px; }

/* Hero visual */

.hero-visual { position: relative; }

.glass-card {
  padding: 22px;
  border-radius: 20px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(160deg, rgba(20, 32, 62, 0.92), rgba(10, 18, 40, 0.96));
  box-shadow: 0 30px 60px rgba(2, 6, 18, 0.55);
}

.glass-card-head { display: flex; align-items: center; gap: 7px; margin-bottom: 18px; }
.win-dot { width: 10px; height: 10px; border-radius: 50%; }
.glass-card-title {
  margin-left: 10px;
  color: var(--muted-2);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.metric-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.chip {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
}
.chip-up { color: var(--success); border-color: rgba(52, 211, 153, 0.35); background: rgba(52, 211, 153, 0.08); }
.chip-down { color: var(--accent-2); border-color: rgba(69, 196, 255, 0.35); background: rgba(69, 196, 255, 0.08); }

.bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 7px;
  height: 130px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(6, 11, 28, 0.5);
}
.bar-chart i {
  flex: 1;
  height: var(--h, 40%);
  border-radius: 4px 4px 2px 2px;
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  opacity: 0.85;
}
.bar-chart i:nth-child(-n+5) { opacity: 0.35; }
.bar-caption { margin-top: 12px; color: var(--muted-2); font-size: 0.78rem; text-align: center; }

.float-badge {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: rgba(10, 18, 40, 0.96);
  font-size: 0.84rem;
  font-weight: 700;
  box-shadow: var(--shadow-card);
  animation: floaty 5s ease-in-out infinite alternate;
}
.float-badge svg { width: 18px; height: 18px; color: var(--accent-2); }
.float-badge-tr { top: -18px; right: -12px; color: var(--success); }
.float-badge-tr svg { color: var(--success); }
.float-badge-bl { bottom: -16px; left: -10px; animation-delay: -2.5s; }

@keyframes floaty {
  from { transform: translateY(0); }
  to   { transform: translateY(-8px); }
}

/* ---------- Tech marquee (бесконечная лента влево) ---------- */

.tech-strip {
  background: var(--bg-soft);
  overflow: hidden;
  padding-block: 18px;
}
.tech-head {
  margin: 0 0 14px;
  text-align: center;
  color: var(--muted-2);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
}

.tech-ribbon {
  overflow: hidden;
  /* растворяем края ленты, чтобы список не «обрезался» резко */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.tech-track {
  display: flex;
  width: max-content;
  animation: tech-scroll 42s linear infinite;
}
.tech-ribbon:hover .tech-track { animation-play-state: paused; }

@keyframes tech-scroll {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); } /* ровно один дублированный набор */
}

.tech-list {
  display: flex;
  align-items: center;
  gap: 12px 0;
  /* отступ на стыке копий даёт padding-right у последнего li —
     так зазор и точка совпадают с внутренними интервалами */
}
.tech-list li {
  color: var(--muted);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
  padding-right: 36px;
  position: relative;
}
/* разделительная точка между технологиями */
.tech-list li::after {
  content: "·";
  position: absolute;
  right: 14px;
  color: var(--line-strong);
}

/* ---------- Services ---------- */

.services-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

.service-card {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  padding: 28px;
}
.service-card p { color: var(--muted); font-size: 0.95rem; margin-top: 10px; }
.service-card .check-list { margin-top: 18px; }

/* ---------- Solutions ---------- */

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 20px;
}
.product-card {
  display: flex;
  flex-direction: column;
  padding: 26px;
}
.product-card p { color: var(--muted); font-size: 0.94rem; margin-top: 10px; }

/* ---------- Process ---------- */

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: step;
}
.process-step {
  position: relative;
  padding: 26px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.012));
  transition: border-color 0.25s, transform 0.25s;
}
.process-step:hover { border-color: var(--line-strong); transform: translateY(-4px); }

.step-num {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: var(--accent-grad);
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
  box-shadow: var(--shadow-btn);
}
.process-step h3 { margin-bottom: 8px; }
.process-step p { color: var(--muted); font-size: 0.92rem; }
.step-time {
  display: inline-block;
  margin-top: 16px;
  color: var(--accent-2);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ---------- Clients (NDA) ---------- */

.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.client-card {
  display: flex;
  flex-direction: column;
  min-height: 180px;
  padding: 26px 24px;
}
.client-note { font-weight: 700; font-size: 1rem; margin-top: auto; }
.client-meta { color: var(--muted-2); font-size: 0.84rem; margin-top: 6px; }

/* «Зацензуренные» логотипы: полосы мерцают, при наведении размываются ещё сильнее */
.client-redacted { display: grid; gap: 10px; }
.client-redacted span {
  height: 16px;
  border-radius: 6px;
  background: rgba(163, 180, 217, 0.22);
  animation: redact-pulse 4.5s ease-in-out infinite;
  transition: filter 0.3s;
}
.client-redacted span:nth-child(2) { animation-delay: -2.2s; }
.client-card:hover .client-redacted span { filter: blur(5px); }

@keyframes redact-pulse {
  0%, 100% { opacity: 0.95; }
  50% { opacity: 0.45; }
}

.client-cta {
  justify-content: center;
  border-style: dashed;
  border-color: var(--line-strong);
  background: rgba(61, 123, 255, 0.06);
}
.client-cta h3 { margin-bottom: 6px; }
.client-cta .link-btn { margin-top: 14px; }

.clients-note {
  margin-top: 30px;
  text-align: center;
  color: var(--muted-2);
  font-size: 0.85rem;
}

/* ---------- Reviews ---------- */

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.review-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 26px;
}
.review-card blockquote {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.65;
}
.review-card figcaption {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.86rem;
  color: var(--muted-2);
  line-height: 1.35;
}
.review-card strong { color: var(--text); font-size: 0.95rem; }

.avatar {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--accent-grad);
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
}

/* ---------- FAQ ---------- */

.faq-list { display: grid; gap: 12px; }
.faq-list details {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
  transition: border-color 0.25s, background 0.25s;
}
.faq-list details[open] {
  border-color: var(--line-strong);
  background: rgba(61, 123, 255, 0.05);
}
.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  cursor: pointer;
  font-weight: 700;
  font-size: 1rem;
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  color: var(--accent-2);
  font-weight: 600;
  transition: transform 0.25s, background 0.25s;
}
.faq-list details[open] summary::after {
  transform: rotate(45deg);
  background: rgba(61, 123, 255, 0.15);
}
.faq-list details p {
  padding: 0 22px 20px;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.contact-lead { margin: 18px 0 26px; color: var(--muted); font-size: 1.05rem; }

.contact-list { display: grid; gap: 10px; margin-bottom: 30px; }
.contact-list a {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--accent-2);
  transition: color 0.2s;
}
.contact-list a:hover { color: var(--text); }

.guarantee-list { gap: 12px; }
.guarantee-list li { color: var(--text); font-size: 0.95rem; }

.form-wrap { position: relative; }
.lead-form {
  display: grid;
  gap: 18px;
  padding: 30px;
  background: linear-gradient(180deg, rgba(14, 24, 48, 0.9), rgba(10, 18, 40, 0.9));
}
.lead-form:hover { transform: none; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.field { display: grid; gap: 8px; }
.field label { font-weight: 600; font-size: 0.9rem; }
.field .optional { color: var(--muted-2); font-weight: 500; font-size: 0.82rem; }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { resize: vertical; min-height: 84px; }
.field ::placeholder { color: var(--muted-2); }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(61, 123, 255, 0.22);
}

.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23A3B4D9' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  cursor: pointer;
}
.field select:invalid { color: var(--muted-2); }
.field select option { background: var(--surface); color: var(--text); }

.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  font-size: 0.86rem;
  cursor: pointer;
  user-select: none;
}
.consent input {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  flex-shrink: 0;
}

.form-note {
  color: var(--muted-2);
  font-size: 0.8rem;
  text-align: center;
}

.form-consent {
  color: var(--muted-2);
  font-size: 0.76rem;
  line-height: 1.55;
  text-align: center;
  margin-top: -6px;
}

/* honeypot: скрыт от людей, доступен ботам */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* cookie-уведомление */
.cookie-banner {
  position: fixed;
  inset: auto 16px 16px;
  z-index: 60;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  max-width: 720px;
  margin-inline: auto;
  padding: 14px 18px;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: rgba(7, 13, 32, 0.96);
  box-shadow: 0 18px 44px rgba(2, 6, 18, 0.55);
}
.cookie-banner p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

@media (max-width: 680px) {
  .cookie-banner { inset: auto 10px 10px; padding: 12px 14px; }
  .cookie-banner .btn { width: 100%; }
}

.form-success {
  padding: 40px 30px;
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 12px;
}
.success-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.4);
  color: var(--success);
  margin-bottom: 6px;
}
.success-icon svg { width: 28px; height: 28px; }
.form-success p { color: var(--muted); max-width: 340px; }
.form-success .btn { margin-top: 10px; }

/* ---------- Footer ---------- */

.site-footer {
  background: rgba(4, 8, 20, 0.8);
  padding-top: 56px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 44px;
}
.footer-brand p {
  margin-top: 16px;
  color: var(--muted-2);
  font-size: 0.9rem;
  max-width: 280px;
}

.footer-col { display: grid; gap: 10px; align-content: start; }
.footer-col h4 {
  margin-bottom: 6px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.footer-col a { color: var(--muted); font-size: 0.92rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--text); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 24px;
  padding-block: 20px;
  color: var(--muted-2);
  font-size: 0.82rem;
}
.footer-links { display: inline-flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-links a {
  color: var(--muted);
  border-bottom: 1px solid var(--line-strong);
  transition: color 0.2s, border-color 0.2s;
}
.footer-links a:hover { color: var(--text); border-color: var(--accent-2); }

.footer-legal {
  padding-block: 14px 22px;
  color: var(--muted-2);
  font-size: 0.74rem;
  line-height: 1.6;
  opacity: 0.75;
}

.consent-link {
  color: var(--accent-2);
  border-bottom: 1px solid rgba(69, 196, 255, 0.35);
  transition: color 0.2s, border-color 0.2s;
}
.consent-link:hover { color: var(--text); border-color: var(--accent-2); }

/* ---------- Фонарик: вуаль тени + световое пятно за курсором ---------- */

/* Тёмная вуаль поверх контента с плавной «дыркой» света по центру.
   Дырка не перерисовывается: элемент больше вьюпорта, позиция меняется
   только transform'ом (см. js/main.js). Шапка и меню — выше вуали (z 40+). */
.torch-overlay {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 30;
  pointer-events: none;
  background: rgba(2, 6, 18, 0.42);
  -webkit-mask-image: radial-gradient(circle 460px at center, transparent 0%, transparent 20%, rgba(0, 0, 0, 0.28) 48%, rgba(0, 0, 0, 0.72) 72%, #000 92%);
  mask-image: radial-gradient(circle 460px at center, transparent 0%, transparent 20%, rgba(0, 0, 0, 0.28) 48%, rgba(0, 0, 0, 0.72) 72%, #000 92%);
  will-change: transform;
}

/* Само световое пятно: голубое свечение внутри «дырки» */
.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 31;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(90, 160, 255, 0.13), rgba(69, 196, 255, 0.05) 45%, transparent 70%);
  pointer-events: none;
  will-change: transform;
}

@media (hover: none) {
  .torch-overlay, .cursor-glow { display: none; }
}

/* ---------- Reveal animations ---------- */

/* декоративные анимации вне вьюпорта ставятся на паузу (см. js/main.js),
   чтобы не тратить кадры во время скролла */
.off-screen { animation-play-state: paused !important; }

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  transition-delay: var(--d, 0ms);
}
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Media queries ---------- */

@media (max-width: 1080px) {
  .hero-inner { grid-template-columns: 1fr; gap: 64px; }
  .hero-content { max-width: 640px; }
  .hero-visual { max-width: 480px; }

  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .service-card, .service-card.wide { grid-column: span 1; }

  .process-grid { grid-template-columns: repeat(2, 1fr); }

  .contact-grid { grid-template-columns: 1fr; gap: 44px; }
  .contact-info { max-width: 640px; }
}

@media (max-width: 900px) {
  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    z-index: 40;
    flex-direction: column;
    gap: 4px;
    padding: 16px 24px 24px;
    background: rgba(6, 11, 28, 0.97);
    border-bottom: 1px solid var(--line);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.25s, opacity 0.25s, visibility 0.25s;
  }
  .site-nav.open { transform: translateY(0); opacity: 1; visibility: visible; }
  .site-nav a { padding: 12px 4px; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
  .site-nav a:last-child { border-bottom: 0; }

  .header-cta { margin-left: auto; }
  .burger { display: flex; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .section { padding: 68px 0; }
  .section-head { margin-bottom: 40px; }

  .hero { padding: calc(var(--header-h) + 44px) 0 64px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .hero-badge { font-size: 0.7rem; }

  .services-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }

  .form-row { grid-template-columns: 1fr; }
  .lead-form { padding: 22px; }

  .header-cta { display: none; }
  .float-badge-tr { right: 0; }
  .float-badge-bl { left: 0; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-actions .btn { width: 100%; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
