/* ============================================================
   AUROFORM Design — лендинг
   Легковесна тема без сторонніх бібліотек і фреймворків.
   Mobile-first: 375px → 1920px.
   ============================================================ */

:root {
  --ink: #060a13;
  --ink-2: #0a1120;
  --surface: #0d1526;
  --card: #101a2e;
  --card-2: #152238;
  --line: rgba(148, 163, 184, 0.14);
  --line-strong: rgba(148, 163, 184, 0.32);
  --text: #e9eef7;
  --muted: #9dabc2;
  --faint: #6b7a93;
  --accent: #22d3ee;
  --accent-strong: #06b6d4;
  --accent-soft: rgba(34, 211, 238, 0.12);
  --accent-ink: #052731;
  --ok: #34d399;
  --err: #f87171;
  --radius: 14px;
  --radius-sm: 9px;
  --container: 1120px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono",
    monospace;
}

/* ---------- Скидання ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: var(--ink);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

::selection {
  background: rgba(34, 211, 238, 0.28);
  color: #fff;
}

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

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.2;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease,
    box-shadow 0.15s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn:hover {
  text-decoration: none;
}

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

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 8px 28px rgba(34, 211, 238, 0.22);
}

.btn-primary:hover {
  background: #67e8f9;
  box-shadow: 0 10px 32px rgba(34, 211, 238, 0.32);
}

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

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

.btn-sm {
  padding: 9px 18px;
  font-size: 14px;
}

.btn[disabled] {
  opacity: 0.6;
  cursor: wait;
}

/* ---------- Шапка ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(6, 10, 19, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 800;
  letter-spacing: 0.06em;
  font-size: 15px;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  width: 30px;
  height: 30px;
  color: var(--accent);
  flex: none;
}

.brand-name em {
  font-style: normal;
  font-weight: 400;
  color: var(--muted);
}

.main-nav {
  display: none;
  gap: 26px;
  margin-left: 12px;
}

.main-nav a {
  color: var(--muted);
  font-size: 14.5px;
  font-weight: 500;
}

.main-nav a:hover {
  color: var(--text);
  text-decoration: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.header-actions .btn {
  display: none;
}

/* Перемикач мов */
.lang-switch {
  display: inline-flex;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}

.lang-link {
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.lang-link:hover {
  color: var(--text);
  text-decoration: none;
}

.lang-link.is-active {
  background: var(--accent-soft);
  color: var(--accent);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: radial-gradient(1100px 500px at 75% -10%, rgba(34, 211, 238, 0.09), transparent 60%),
    var(--ink);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(148, 163, 184, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.055) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 25%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 25%, transparent 78%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  gap: 40px;
  padding: 72px 20px 84px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1.5px;
  background: var(--accent);
}

.hero h1 {
  font-size: clamp(1.75rem, 4.6vw, 3.1rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 800;
  max-width: 19ch;
  margin-bottom: 18px;
}

.hero-sub {
  font-size: clamp(1rem, 1.6vw, 1.13rem);
  color: var(--muted);
  max-width: 56ch;
  margin-bottom: 30px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.hero-note {
  font-size: 13px;
  color: var(--faint);
}

.hero-visual {
  display: none;
  justify-content: center;
}

.hero-visual svg {
  width: 100%;
  max-width: 420px;
  opacity: 0.9;
}

/* ---------- Секції ---------- */
.section {
  padding: 76px 0;
  border-bottom: 1px solid var(--line);
}

.section-alt {
  background: var(--ink-2);
}

.section-head {
  max-width: 640px;
  margin-bottom: 44px;
}

.section-index {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.12em;
  color: var(--accent);
  display: block;
  margin-bottom: 10px;
}

.section-head h2 {
  font-size: clamp(1.45rem, 3vw, 2.05rem);
  line-height: 1.2;
  letter-spacing: -0.015em;
  font-weight: 800;
  margin-bottom: 12px;
}

.section-head p {
  color: var(--muted);
  font-size: 1rem;
}

/* ---------- Вигода (3 картки) ---------- */
.benefits-grid {
  display: grid;
  gap: 16px;
}

.benefit-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.benefit-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.benefit-num {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 14px;
}

.benefit-card h3 {
  font-size: 1.12rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.benefit-card p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- Фільтр «Кому підходить / не підходить» ---------- */
.fit-grid {
  display: grid;
  gap: 16px;
}

.fit-panel {
  border-radius: var(--radius);
  padding: 28px 26px;
  border: 1px solid var(--line);
}

.fit-panel.fit-yes {
  background: linear-gradient(180deg, rgba(52, 211, 153, 0.06), rgba(52, 211, 153, 0.02));
  border-color: rgba(52, 211, 153, 0.25);
}

.fit-panel.fit-no {
  background: linear-gradient(180deg, rgba(248, 113, 113, 0.05), rgba(248, 113, 113, 0.015));
  border-color: rgba(248, 113, 113, 0.22);
}

.fit-panel h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 18px;
}

.fit-panel h3 .fit-icon {
  width: 26px;
  height: 26px;
  flex: none;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
}

.fit-yes .fit-icon {
  background: rgba(52, 211, 153, 0.15);
  color: var(--ok);
}

.fit-no .fit-icon {
  background: rgba(248, 113, 113, 0.14);
  color: var(--err);
}

.fit-list {
  list-style: none;
  display: grid;
  gap: 12px;
}

.fit-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--text);
  font-size: 0.97rem;
}

.fit-list li::before {
  content: "";
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  border-radius: 50%;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 10px;
}

.fit-yes .fit-list li::before {
  background-color: rgba(52, 211, 153, 0.16);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2334d399' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
}

.fit-no .fit-list li::before {
  background-color: rgba(248, 113, 113, 0.14);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f87171' stroke-width='3.2' stroke-linecap='round'%3E%3Cpath d='M18 6L6 18M6 6l12 12'/%3E%3C/svg%3E");
}

/* ---------- Блок чек-листа ---------- */
.checklist-layout {
  display: grid;
  gap: 36px;
  align-items: center;
}

.paper-mock {
  background: #f4f7fb;
  color: #0f172a;
  border-radius: 10px;
  padding: 22px 20px;
  box-shadow: 0 24px 60px rgba(2, 6, 16, 0.55), 0 0 0 1px rgba(148, 163, 184, 0.25);
  transform: rotate(-1.2deg);
}

.paper-mock .pm-brand {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0e7490;
  border-bottom: 2px solid #0f172a;
  padding-bottom: 8px;
  margin-bottom: 14px;
}

.paper-mock .pm-title {
  font-size: 15px;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 12px;
}

.paper-mock .pm-row {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 8px;
  align-items: center;
  padding: 5px 0;
  border-bottom: 0.75pt solid #dbe3ee;
  font-size: 10.5px;
  color: #334155;
}

.paper-mock .pm-row .pm-code {
  font-weight: 800;
  color: #0e7490;
  font-family: var(--mono);
  font-size: 9.5px;
}

.paper-mock .pm-row .pm-line {
  height: 5px;
  border-radius: 3px;
  background: linear-gradient(90deg, #cbd5e1, #e2e8f0);
}

.paper-mock .pm-foot {
  margin-top: 12px;
  font-size: 9px;
  color: #64748b;
  display: flex;
  justify-content: space-between;
}

.checklist-points {
  list-style: none;
  display: grid;
  gap: 10px;
  margin: 18px 0 26px;
  color: var(--muted);
  font-size: 0.97rem;
}

.checklist-points li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.checklist-points li::before {
  content: "▸";
  color: var(--accent);
  flex: none;
}

.checklist-points strong {
  white-space: nowrap;
}

/* ---------- Форма захоплення ---------- */
.lead-layout {
  display: grid;
  gap: 40px;
  align-items: start;
}

.lead-form-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
}

.form-grid {
  display: grid;
  gap: 16px;
}

.field label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 7px;
  color: var(--text);
}

.field label .req {
  color: var(--accent);
}

.field input,
.field select {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: var(--ink-2);
  color: var(--text);
  font: inherit;
  font-size: 15px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field input::placeholder {
  color: var(--faint);
}

.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.18);
}

.field [aria-invalid="true"] {
  border-color: var(--err);
}

.field-error {
  display: block;
  min-height: 18px;
  font-size: 12.5px;
  color: var(--err);
  margin-top: 5px;
}

.consent-row {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.55;
}

.consent-row input {
  width: 17px;
  height: 17px;
  margin-top: 3px;
  accent-color: var(--accent);
  flex: none;
}

.form-hint {
  font-size: 12.5px;
  color: var(--faint);
  margin-top: 14px;
}

.form-message {
  border-radius: var(--radius);
  padding: 22px 20px;
  border: 1px solid var(--line);
  background: var(--card);
}

.form-message h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 9px;
}

.form-message p {
  color: var(--muted);
  font-size: 0.94rem;
  margin-bottom: 14px;
}

.form-message .msg-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.msg-success {
  border-color: rgba(52, 211, 153, 0.35);
  background: linear-gradient(180deg, rgba(52, 211, 153, 0.08), rgba(52, 211, 153, 0.02));
}

.msg-success h3 {
  color: var(--ok);
}

.msg-fallback h3 {
  color: var(--accent);
}

/* ---------- Футер ---------- */
.site-footer {
  padding: 56px 0 34px;
  background: var(--ink);
}

.footer-grid {
  display: grid;
  gap: 34px;
  margin-bottom: 40px;
}

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

.footer-nav {
  display: grid;
  gap: 9px;
  align-content: start;
}

.footer-nav h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--faint);
  margin-bottom: 4px;
}

.footer-nav a {
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-legal {
  border-top: 1px solid var(--line);
  padding-top: 26px;
}

.footer-legal ul {
  list-style: none;
  display: grid;
  gap: 8px;
  color: var(--faint);
  font-size: 0.85rem;
  margin-bottom: 22px;
}

.footer-legal ul li::before {
  content: "—";
  margin-right: 8px;
  color: var(--line-strong);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  justify-content: space-between;
  color: var(--faint);
  font-size: 0.82rem;
}

.footer-bottom .exocad-tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  padding: 3px 9px;
}

/* ---------- Адаптив ---------- */
@media (min-width: 640px) {
  .benefits-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

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

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

  .header-actions .btn {
    display: inline-flex;
  }
}

@media (min-width: 900px) {
  .main-nav {
    display: flex;
  }

  .hero-inner {
    grid-template-columns: 1.15fr 0.85fr;
    padding: 96px 0 108px;
  }

  .hero-visual {
    display: flex;
  }

  .checklist-layout {
    grid-template-columns: 0.9fr 1.1fr;
  }

  .lead-layout {
    grid-template-columns: 1fr 1fr;
  }

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

@media (min-width: 1280px) {
  .container {
    padding-inline: 32px;
  }
}

/* ---------- Доступність: зменшений рух ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
