/* ============================================================
   AIAA · AI Автоматизация 24/7 — стили главной страницы
   Тёмная основа, «лёгкая» подача: воздух, крупная типографика,
   интерфейсные элементы, схемы процессов и показатели.
   ============================================================ */

:root {
  --bg: #0B0E13;
  --bg-2: #0F131A;
  --surface: #131924;
  --surface-2: #171E2B;
  --line: rgba(233, 236, 241, 0.09);
  --line-strong: rgba(233, 236, 241, 0.16);
  --text: #EDF0F4;
  --muted: #9AA4B2;
  --accent: #E7B45C;
  --accent-strong: #F2C572;
  --accent-ink: #201708;
  --ok: #5EC98C;
  --info: #7FB3E8;

  --radius: 16px;
  --radius-sm: 12px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --header-h: 72px;
}

/* ---------- База ---------- */

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

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

body {
  margin: 0;
  font-family: "Inter", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(1100px 560px at 75% -10%, rgba(231, 180, 92, 0.06), transparent 60%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
}

p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

svg {
  display: block;
}

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

::selection {
  background: rgba(231, 180, 92, 0.35);
}

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Кнопки ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn-primary:hover {
  background: var(--accent-strong);
}

.btn-ghost {
  border-color: var(--line-strong);
  color: var(--text);
  background: transparent;
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-sm {
  padding: 10px 16px;
  font-size: 14.5px;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 17px;
}

/* ---------- Шапка ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(11, 14, 19, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 18px;
  font-weight: 800;
}

.brand-sub {
  color: var(--muted);
  font-weight: 500;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 15.5px;
  font-weight: 500;
}

.site-nav > a:not(.nav-cta) {
  color: var(--muted);
  transition: color 0.2s;
  padding: 6px 0;
}

.site-nav > a:not(.nav-cta):hover,
.site-nav > a:not(.nav-cta).active {
  color: var(--text);
}

.site-nav > a.active {
  color: var(--accent);
}

.nav-toggle {
  display: none;
  position: relative;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  position: absolute;
  left: 11px;
  right: 11px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.25s, top 0.25s;
}

.nav-toggle span:nth-child(1) { top: 16px; }
.nav-toggle span:nth-child(2) { top: 24px; }

body.nav-open .nav-toggle span:nth-child(1) { top: 20px; transform: rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { top: 20px; transform: rotate(-45deg); }

/* ---------- Первый экран ---------- */

.hero {
  padding: 72px 0 0;
  overflow: hidden;
}

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

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(38px, 5vw, 58px);
  font-weight: 800;
  margin-bottom: 22px;
}

.lede {
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--muted);
  max-width: 54ch;
  margin-bottom: 32px;
}

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

.hero-note {
  font-size: 14.5px;
  color: var(--muted);
}

/* KPI */

.kpi-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 64px 0 0;
  padding: 28px 8px;
  border-top: 1px solid var(--line);
}

.kpi-num {
  display: block;
  font-size: clamp(26px, 2.6vw, 34px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--accent);
}

.kpi-label {
  display: block;
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--muted);
}

/* ---------- Секции ---------- */

.section {
  padding: 110px 0;
}

.section-alt {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  max-width: 720px;
  margin-bottom: 52px;
}

.section-head h2 {
  font-size: clamp(30px, 3.4vw, 44px);
  font-weight: 800;
  margin-bottom: 16px;
}

.section-sub {
  color: var(--muted);
  font-size: 17.5px;
}

/* ---------- Окна (интерфейсные макеты) ---------- */

.window {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.window-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.window-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}

.window-footnote {
  padding: 14px 20px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}

/* Статусные метки */

.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.5;
  border: 1px solid var(--line-strong);
  color: var(--muted);
  white-space: nowrap;
}

.pill::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--muted);
}

.pill-ok { color: var(--ok); border-color: rgba(94, 201, 140, 0.35); }
.pill-ok::before { background: var(--ok); }

.pill-warn { color: var(--accent); border-color: rgba(231, 180, 92, 0.4); }
.pill-warn::before { background: var(--accent); }

.pill-plan { color: var(--info); border-color: rgba(127, 179, 232, 0.35); }
.pill-plan::before { background: var(--info); }

/* Лента активности на первом экране */

.feed-list {
  padding: 6px 8px;
}

.feed-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 13px 12px;
  border-radius: var(--radius-sm);
  transition: background 0.2s;
}

.feed-row:hover {
  background: rgba(255, 255, 255, 0.03);
}

.feed-row + .feed-row {
  border-top: 1px solid var(--line);
}

.feed-time {
  flex-shrink: 0;
  margin-top: 2px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.feed-body {
  flex: 1;
  min-width: 0;
}

.feed-body strong {
  display: block;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.4;
}

.feed-body span {
  display: block;
  margin-top: 2px;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.45;
}

.feed-row .pill {
  margin-top: 2px;
}

/* ---------- Общие элементы карточек ---------- */

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(231, 180, 92, 0.1);
  border: 1px solid rgba(231, 180, 92, 0.22);
  color: var(--accent);
  flex-shrink: 0;
}

.card-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Задачи ---------- */

.tasks-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.task-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 26px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.2s, transform 0.2s, background 0.2s;
}

.task-card:hover {
  border-color: var(--line-strong);
  background: var(--surface-2);
  transform: translateY(-3px);
}

.task-card h3 {
  font-size: 17.5px;
  font-weight: 700;
}

.task-card p {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.55;
}

.task-card-cta {
  border-color: rgba(231, 180, 92, 0.4);
  background: rgba(231, 180, 92, 0.06);
  color: var(--text);
}

.task-card-cta:hover {
  border-color: var(--accent);
  background: rgba(231, 180, 92, 0.1);
}

.task-card-cta p {
  color: var(--text);
}

/* ---------- Схема работы ---------- */

.flow {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  counter-reset: flow;
}

.flow-step {
  position: relative;
  padding: 24px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.flow-step:not(:last-child)::after {
  content: "→";
  position: absolute;
  top: 24px;
  right: -19px;
  z-index: 1;
  color: var(--accent);
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
}

.flow-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin-bottom: 14px;
  border-radius: 9px;
  background: rgba(231, 180, 92, 0.12);
  border: 1px solid rgba(231, 180, 92, 0.3);
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
}

.flow-step h3 {
  font-size: 16.5px;
  margin-bottom: 8px;
}

.flow-step p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

/* ---------- Примеры решений ---------- */

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.solution-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.2s, transform 0.2s, background 0.2s;
}

.solution-card:hover {
  border-color: var(--line-strong);
  background: var(--surface-2);
  transform: translateY(-3px);
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.card-tags span {
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}

.solution-card h3 {
  font-size: 19px;
}

.solution-card p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.55;
}

.card-result {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 14px !important;
  color: var(--text) !important;
}

.card-result::before {
  content: "↳ ";
  color: var(--accent);
  font-weight: 700;
}

/* ---------- Результат ---------- */

.results-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: start;
}

.timeline {
  padding: 18px 20px 8px;
}

.timeline li {
  position: relative;
  display: flex;
  gap: 14px;
  padding: 0 0 20px 24px;
  font-size: 14.5px;
  line-height: 1.5;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(231, 180, 92, 0.15);
}

.timeline li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 20px;
  bottom: -2px;
  width: 1px;
  background: var(--line-strong);
}

.timeline-time {
  flex-shrink: 0;
  font-weight: 700;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.benefits-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.benefits-list li {
  display: flex;
  gap: 16px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.2s;
}

.benefits-list li:hover {
  border-color: var(--line-strong);
}

.benefits-list h3 {
  font-size: 16px;
  margin-bottom: 6px;
}

.benefits-list p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

/* ---------- AIAA ---------- */

.aiaa-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.aiaa-feature {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.aiaa-feature h3 {
  font-size: 16.5px;
}

.aiaa-feature p {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.55;
}

.aiaa-window {
  margin-top: 16px;
}

.aiaa-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
}

.aiaa-agents {
  padding: 18px;
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.015);
}

.aiaa-side-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
  padding-left: 10px;
}

.aiaa-agents li {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 10px;
  border-radius: var(--radius-sm);
  transition: background 0.2s;
}

.aiaa-agents li:hover {
  background: rgba(255, 255, 255, 0.03);
}

.agent-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dot-ok { background: var(--ok); box-shadow: 0 0 0 3px rgba(94, 201, 140, 0.15); }
.dot-warn { background: var(--accent); box-shadow: 0 0 0 3px rgba(231, 180, 92, 0.15); }
.dot-plan { background: var(--info); box-shadow: 0 0 0 3px rgba(127, 179, 232, 0.15); }

.aiaa-agents li > div {
  flex: 1;
  min-width: 0;
}

.aiaa-agents strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}

.aiaa-agents li > div > span {
  display: block;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.4;
}

.aiaa-task {
  padding: 24px 26px;
}

.aiaa-task-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.aiaa-task-id {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.aiaa-task-head h3 {
  font-size: 20px;
}

.aiaa-checklist li {
  position: relative;
  padding: 9px 0 9px 34px;
  font-size: 15px;
  line-height: 1.5;
  border-top: 1px solid var(--line);
}

.aiaa-checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 11px;
}

.aiaa-checklist li.done::before {
  border-color: var(--ok);
  background-color: rgba(94, 201, 140, 0.12);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235EC98C' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}

.aiaa-checklist li.pending {
  color: var(--accent);
  font-weight: 600;
}

.aiaa-checklist li.pending::before {
  border-color: var(--accent);
  background-color: rgba(231, 180, 92, 0.1);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23E7B45C'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3C/svg%3E");
}

.aiaa-note {
  margin-top: 14px;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  background: rgba(231, 180, 92, 0.08);
  border: 1px solid rgba(231, 180, 92, 0.25);
  font-size: 14px;
  line-height: 1.55;
  color: var(--text);
}

.aiaa-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.mock-btn {
  display: inline-flex;
  align-items: center;
  padding: 9px 16px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}

.mock-btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.aiaa-foot {
  padding: 13px 20px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}

/* ---------- Процесс ---------- */

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  counter-reset: process;
}

.process-step {
  position: relative;
  padding: 26px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.process-num {
  display: block;
  font-size: 15px;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 12px;
  font-variant-numeric: tabular-nums;
}

.process-num::before {
  content: "0";
  color: rgba(231, 180, 92, 0.45);
}

.process-step h3 {
  font-size: 17.5px;
  margin-bottom: 8px;
}

.process-step p {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.55;
}

/* ---------- Финальный CTA и форма ---------- */

.cta {
  padding-bottom: 130px;
}

.cta-inner {
  max-width: 860px;
}

.cta .section-head {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 44px;
}

.lead-form,
.form-success {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: var(--shadow);
}

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

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-field-wide {
  grid-column: 1 / -1;
}

.form-field label {
  font-size: 14px;
  font-weight: 600;
}

.optional {
  color: var(--muted);
  font-weight: 500;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 13px 15px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: var(--bg-2);
  color: var(--text);
  font-family: inherit;
  font-size: 15.5px;
  line-height: 1.5;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-field textarea {
  resize: vertical;
  min-height: 110px;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: rgba(154, 164, 178, 0.55);
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(231, 180, 92, 0.15);
}

.form-field input.invalid,
.form-field textarea.invalid {
  border-color: #E26D5A;
}

.form-footer {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 24px;
}

.form-note {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

.form-error {
  margin-top: 16px;
  font-size: 14px;
  color: #E26D5A;
}

.form-success {
  text-align: center;
  padding: 56px 34px;
}

.success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(94, 201, 140, 0.12);
  border: 1px solid rgba(94, 201, 140, 0.4);
  color: var(--ok);
  margin-bottom: 18px;
}

.success-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.form-success h3 {
  font-size: 24px;
  margin-bottom: 10px;
}

.form-success p {
  color: var(--muted);
}

/* ---------- Подвал ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-2);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding: 52px 24px;
}

.footer-brand p {
  margin-top: 16px;
  font-size: 14.5px;
  color: var(--muted);
  max-width: 34ch;
}

.footer-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}

.footer-nav a,
.footer-contacts > a {
  font-size: 15px;
  color: var(--text);
  opacity: 0.85;
  transition: opacity 0.2s, color 0.2s;
}

.footer-nav a:hover,
.footer-contacts > a:hover {
  opacity: 1;
  color: var(--accent);
}

.footer-contacts {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}

.footer-note {
  font-size: 13px;
  color: var(--muted);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 20px;
  padding-bottom: 26px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--muted);
}

/* ---------- Появление при прокрутке ---------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Адаптив ---------- */

@media (max-width: 1080px) {
  .tasks-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .flow-step:not(:last-child)::after {
    content: none;
  }

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

  .aiaa-agents {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

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

@media (max-width: 900px) {
  .section {
    padding: 80px 0;
  }

  .hero {
    padding-top: 48px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-visual {
    order: 2;
  }

  .kpi-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 48px;
  }

  .results-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

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

  /* Мобильное меню */
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px 24px 20px;
    background: rgba(11, 14, 19, 0.98);
    border-bottom: 1px solid var(--line-strong);
    display: none;
  }

  body.nav-open .site-nav {
    display: flex;
  }

  .site-nav > a:not(.nav-cta) {
    padding: 12px 4px;
    font-size: 17px;
  }

  .nav-cta {
    margin-top: 10px;
  }
}

@media (max-width: 620px) {
  body {
    font-size: 16px;
  }

  .container {
    padding: 0 18px;
  }

  .tasks-grid,
  .solutions-grid,
  .aiaa-features,
  .process-grid,
  .benefits-list,
  .flow {
    grid-template-columns: 1fr;
  }

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

  .lead-form,
  .form-success {
    padding: 24px 20px;
  }

  .form-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .form-footer .btn {
    width: 100%;
  }

  .aiaa-task-head {
    flex-direction: column;
  }

  .feed-row .pill {
    display: none;
  }

  .hero-actions .btn {
    flex: 1 1 100%;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 6px;
  }
}
