/* Знайка — лендинг aicare24.ru
   Палитра: сине-фиолетово-голубая. Без внешних CDN и шрифтов. */

:root {
  --bg-0: #0b1026;
  --bg-1: #131a3a;
  --bg-2: #1a2350;
  --blue: #5b8def;
  --blue-soft: #7aa6f7;
  --violet: #7b5bf5;
  --violet-soft: #9b82ff;
  --cyan: #56ccf2;
  --text: #e8ecff;
  --text-dim: #9aa6ce;
  --border: #2a3566;
  --card: rgba(255, 255, 255, 0.04);
  --card-hover: rgba(255, 255, 255, 0.07);
  --radius: 16px;
  --maxw: 1120px;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg-0: #f4f6ff;
    --bg-1: #e9edff;
    --bg-2: #dde3ff;
    --text: #131a3a;
    --text-dim: #4d5a85;
    --border: #c6d0f0;
    --card: rgba(255, 255, 255, 0.75);
    --card-hover: #ffffff;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
  background: var(--bg-0);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

/* ── Фоновое свечение ────────────────────────────────────────── */

.glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(60% 50% at 15% 0%, rgba(91, 141, 239, 0.28), transparent 70%),
    radial-gradient(55% 45% at 85% 10%, rgba(123, 91, 245, 0.26), transparent 70%),
    radial-gradient(45% 40% at 50% 100%, rgba(86, 204, 242, 0.12), transparent 70%),
    linear-gradient(180deg, var(--bg-0), var(--bg-1) 60%, var(--bg-0));
}

/* ── Шапка ───────────────────────────────────────────────────── */

header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--bg-0) 78%, transparent);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.2px;
  text-decoration: none;
  color: var(--text);
}

.brand-logo {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  box-shadow: 0 4px 14px rgba(86, 204, 242, 0.35);
  background: #a8e6e0;
}

.brand-logo-sm {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  box-shadow: none;
}

.nav-links {
  display: none;
  gap: 22px;
  margin-left: auto;
}

.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 15px;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-cta {
  margin-left: auto;
}

@media (min-width: 860px) {
  .nav-links {
    display: flex;
  }
  .nav-cta {
    margin-left: 0;
  }
}

/* ── Кнопки ──────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border: 0;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  box-shadow: 0 10px 26px rgba(91, 141, 239, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(123, 91, 245, 0.45);
}

.btn-ghost {
  color: var(--text);
  background: transparent;
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--blue);
  background: var(--card-hover);
}

.btn-sm {
  padding: 9px 16px;
  font-size: 14px;
  border-radius: 10px;
}

.btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* ── Hero ────────────────────────────────────────────────────── */

.hero {
  padding: 64px 0 44px;
}

@media (min-width: 900px) {
  .hero {
    padding: 96px 0 64px;
  }
}

.hero-grid {
  display: grid;
  gap: 40px;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 56px;
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 22px;
}

.eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
}

h1 {
  margin: 0 0 20px;
  font-size: clamp(30px, 5.2vw, 54px);
  line-height: 1.12;
  letter-spacing: -0.8px;
  font-weight: 800;
}

.grad {
  background: linear-gradient(120deg, var(--blue-soft), var(--violet-soft) 55%, var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.lead {
  margin: 0 0 30px;
  font-size: clamp(16px, 2vw, 19px);
  color: var(--text-dim);
  max-width: 56ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-note {
  margin-top: 18px;
  font-size: 13.5px;
  color: var(--text-dim);
}

/* ── Секции ──────────────────────────────────────────────────── */

section {
  padding: 56px 0;
}

@media (min-width: 900px) {
  section {
    padding: 76px 0;
  }
}

.section-head {
  max-width: 62ch;
  margin-bottom: 36px;
}

h2 {
  margin: 0 0 14px;
  font-size: clamp(24px, 3.4vw, 36px);
  line-height: 1.2;
  letter-spacing: -0.4px;
  font-weight: 750;
}

.section-head p {
  margin: 0;
  color: var(--text-dim);
  font-size: 17px;
}

/* ── Карточки ────────────────────────────────────────────────── */

.cards {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

@media (min-width: 620px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 980px) {
  .cards-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card);
  transition: background 0.18s ease, border-color 0.18s ease,
    transform 0.18s ease;
}

.card:hover {
  background: var(--card-hover);
  border-color: color-mix(in srgb, var(--blue) 55%, var(--border));
  transform: translateY(-3px);
}

.card-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 20px;
  margin-bottom: 14px;
  background: linear-gradient(135deg, rgba(91, 141, 239, 0.22), rgba(123, 91, 245, 0.22));
  border: 1px solid var(--border);
}

.card h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 700;
}

.card p {
  margin: 0;
  color: var(--text-dim);
  font-size: 14.5px;
}

/* ── Макет чата MAX ──────────────────────────────────────────── */

.chat {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  padding: 18px;
  max-width: 420px;
  box-shadow: 0 24px 60px rgba(6, 10, 30, 0.45);
}

@media (prefers-color-scheme: light) {
  .chat {
    box-shadow: 0 20px 44px rgba(19, 26, 58, 0.12);
  }
}

.chat-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  font-weight: 600;
}

.msg {
  padding: 11px 14px;
  border-radius: 14px;
  font-size: 14px;
  margin-bottom: 10px;
  max-width: 92%;
  line-height: 1.45;
}

.msg-bot {
  background: rgba(91, 141, 239, 0.16);
  border: 1px solid rgba(91, 141, 239, 0.3);
  border-top-left-radius: 5px;
}

.msg-user {
  margin-left: auto;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  color: #fff;
  border-top-right-radius: 5px;
}

.msg-dim {
  color: var(--text-dim);
  font-size: 12.5px;
}

.kbd {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.kbd span {
  padding: 6px 11px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-2);
  font-size: 12.5px;
  color: var(--text);
}

/* ── Акцентные блоки ────────────────────────────────────────── */

.highlight {
  padding: 26px;
  border-radius: var(--radius);
  border: 1px solid color-mix(in srgb, var(--violet) 40%, var(--border));
  background: linear-gradient(
    135deg,
    rgba(91, 141, 239, 0.12),
    rgba(123, 91, 245, 0.12)
  );
}

.highlight h3 {
  margin: 0 0 10px;
  font-size: 19px;
}

.highlight p {
  margin: 0;
  color: var(--text-dim);
}

.split {
  display: grid;
  gap: 28px;
  align-items: start;
}

@media (min-width: 860px) {
  .split {
    grid-template-columns: 1fr 0.85fr;
    gap: 44px;
    align-items: center;
  }
}

.tick-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.tick-list li {
  display: flex;
  gap: 11px;
  font-size: 15.5px;
  color: var(--text-dim);
}

.tick-list li::before {
  content: "✓";
  flex: 0 0 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--violet));
}

.tick-list strong {
  color: var(--text);
  font-weight: 650;
}

/* ── Форма заявки ───────────────────────────────────────────── */

.form-box {
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card);
}

@media (min-width: 640px) {
  .form-box {
    padding: 34px;
  }
}

.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  margin-bottom: 7px;
  font-size: 14px;
  font-weight: 600;
}

.field .hint {
  font-weight: 400;
  color: var(--text-dim);
}

.field input,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 11px;
  border: 1px solid var(--border);
  background: var(--bg-0);
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

@media (prefers-color-scheme: light) {
  .field input,
  .field textarea {
    background: #fff;
  }
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(91, 141, 239, 0.22);
}

.field textarea {
  min-height: 96px;
  resize: vertical;
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.form-msg {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 14.5px;
  display: none;
}

.form-msg.show {
  display: block;
}

.form-msg.ok {
  background: rgba(86, 204, 242, 0.14);
  border: 1px solid rgba(86, 204, 242, 0.4);
}

.form-msg.err {
  background: rgba(245, 91, 120, 0.14);
  border: 1px solid rgba(245, 91, 120, 0.4);
}

.consent {
  margin-top: 12px;
  font-size: 12.5px;
  color: var(--text-dim);
}

/* ── Подвал ─────────────────────────────────────────────────── */

footer {
  border-top: 1px solid var(--border);
  padding: 34px 0 44px;
  color: var(--text-dim);
  font-size: 13.5px;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  justify-content: space-between;
  align-items: center;
}

footer a {
  color: var(--blue-soft);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

.disclaimer {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--text-dim);
  max-width: 80ch;
}

/* ── Мягкое появление (без JS) ──────────────────────────────── */

@media (prefers-reduced-motion: no-preference) {
  .hero-grid > *,
  .card,
  .highlight {
    animation: rise 0.6s ease both;
  }
  .cards .card:nth-child(2) { animation-delay: 0.06s; }
  .cards .card:nth-child(3) { animation-delay: 0.12s; }
  .cards .card:nth-child(4) { animation-delay: 0.18s; }
  .cards .card:nth-child(5) { animation-delay: 0.24s; }
  .cards .card:nth-child(6) { animation-delay: 0.3s; }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.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;
}
