/* ── CSS Variables ──────────────────────────────────────────────────────────── */
:root {
  /* Colors — тёмная тема, идентичная landing.html */
  --color-primary: #5eead4;
  --color-primary-light: #22d3ee;
  --color-bg: #0f1115;
  --color-bg-alt: #151a22;
  --color-card-bg: #1b2230;
  --color-card-bg-2: #20293a;
  --color-text: #e8ecf2;
  --color-text-muted: #a7b1c2;
  --color-ok: #33d17a;
  --color-warn: #ffb84d;
  --color-danger: #ff6b6b;
  --color-border: rgba(255, 255, 255, 0.08);

  /* Shadows */
  --shadow-card: 0 15px 45px rgba(0, 0, 0, 0.35);

  /* Radii */
  --radius-card: 18px;
  --radius-btn: 14px;

  /* Fonts */
  --font-display: 'Manrope', 'Segoe UI', Tahoma, sans-serif;
  --font-body: 'Manrope', 'Segoe UI', Tahoma, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

/* ── Reset ──────────────────────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
}

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

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

/* ── Page Background ────────────────────────────────────────────────────────── */
.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(34, 211, 238, 0.12), transparent 60%),
    radial-gradient(900px 500px at -10% 10%, rgba(94, 234, 212, 0.14), transparent 60%),
    var(--color-bg);
}

/* ── Header ─────────────────────────────────────────────────────────────────── */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 17, 21, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-border);
  padding: 0 24px;
  height: 64px;
}

.header__inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(94, 234, 212, 0.3), rgba(34, 211, 238, 0.2));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--color-primary);
  font-size: 13px;
  flex-shrink: 0;
}

.logo-name {
  font-size: 17px;
  font-weight: 800;
}

.header__tagline {
  flex: 1;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-text-muted);
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.03);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.header__phone {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--color-primary);
  font-weight: 700;
  font-size: 14px;
  padding: 8px 14px;
  border-radius: var(--radius-btn);
  background: rgba(94, 234, 212, 0.08);
  border: 1px solid rgba(94, 234, 212, 0.2);
  transition: background 0.18s;
}

.header__phone:hover {
  background: rgba(94, 234, 212, 0.16);
}

/* ── Buttons ─────────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  border-radius: var(--radius-btn);
  border: 1px solid var(--color-border);
  background: var(--color-bg-alt);
  color: var(--color-text);
  transition: transform 0.18s ease, filter 0.18s ease, background 0.18s ease;
  font-family: var(--font-display);
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  background: linear-gradient(135deg, rgba(94, 234, 212, 0.22), rgba(34, 211, 238, 0.28));
  border-color: rgba(94, 234, 212, 0.4);
}

.btn--primary:hover {
  filter: brightness(1.1);
}

.btn--accent {
  background: linear-gradient(135deg, rgba(94, 234, 212, 0.3), rgba(34, 211, 238, 0.4));
  border-color: rgba(94, 234, 212, 0.6);
  color: var(--color-bg);
  font-weight: 800;
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--color-border);
}

.btn--lg {
  padding: 15px 28px;
  font-size: 15px;
  border-radius: 16px;
}

/* ── Sections ────────────────────────────────────────────────────────────────── */
.section {
  padding: 80px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.section--alt {
  background: linear-gradient(180deg, rgba(94, 234, 212, 0.03), transparent);
}

.section-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-primary);
  background: rgba(94, 234, 212, 0.1);
  border: 1px solid rgba(94, 234, 212, 0.2);
  border-radius: 999px;
  padding: 5px 14px;
  margin-bottom: 18px;
}

.section-title {
  font-size: clamp(24px, 3.5vw, 38px);
  font-weight: 800;
  line-height: 1.22;
  margin-bottom: 36px;
}

.section-cta {
  margin-top: 40px;
  text-align: center;
}

/* ── Hero ────────────────────────────────────────────────────────────────────── */
.hero {
  padding: 96px 24px 72px;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  column-gap: 48px;
  align-items: start;
}

.hero__bot {
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: center;
  width: 160px;
  flex-shrink: 0;
  overflow: visible;
  filter: drop-shadow(0 0 18px rgba(94, 234, 212, 0.18));
}

.bot-svg {
  width: 160px;
  height: 200px;
  display: block;
  overflow: visible;
}

.bot-arm-l {
  transform-origin: 15px 112px; /* shoulder pivot — center-top of arm */
}

@keyframes bot-wave {
  0%   { transform: rotate(0deg); }      /* рука висит вниз */
  18%  { transform: rotate(125deg); }    /* поднимаем от себя вверх-влево */
  30%  { transform: rotate(105deg); }    /* мах вниз */
  42%  { transform: rotate(125deg); }    /* мах вверх */
  54%  { transform: rotate(105deg); }    /* мах вниз */
  66%  { transform: rotate(125deg); }    /* мах вверх */
  82%  { transform: rotate(45deg); }     /* начинаем опускать */
  100% { transform: rotate(0deg); }      /* рука вниз */
}

.bot-arm-l.waving {
  animation: bot-wave 1.8s ease-in-out forwards;
}

@keyframes bot-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

.hero__bot {
  animation: bot-float 3.2s ease-in-out infinite;
}

@keyframes antenna-pulse {
  0%, 100% { opacity: 1; r: 4px; }
  50%      { opacity: 0.4; r: 6px; }
}

.bot-antenna-dot {
  animation: antenna-pulse 1.6s ease-in-out infinite;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--color-primary);
  background: rgba(94, 234, 212, 0.1);
  border: 1px solid rgba(94, 234, 212, 0.22);
  border-radius: 999px;
  padding: 6px 16px;
  margin-bottom: 22px;
}

.hero__badge::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-primary);
  animation: pulse-dot 1.5s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.7); }
}

.hero__title {
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero__title span {
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__sub {
  font-size: 18px;
  color: var(--color-text-muted);
  line-height: 1.65;
  margin-bottom: 36px;
  max-width: 560px;
}

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

.hero__card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01)), var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 24px 18px;
  text-align: center;
  transition: transform 0.2s ease, border-color 0.2s ease;
  box-shadow: var(--shadow-card);
}

.hero__card:hover {
  transform: translateY(-4px);
  border-color: rgba(94, 234, 212, 0.25);
}

.hero__card-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(94, 234, 212, 0.12), rgba(34, 211, 238, 0.06));
  border: 1px solid rgba(94, 234, 212, 0.18);
}

.hero__card-icon svg {
  width: 30px;
  height: 30px;
  color: var(--color-primary);
  display: block;
}

.hero__card-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-text-muted);
  line-height: 1.45;
}

/* ── Demo CTA ─────────────────────────────────────────────────────────────────── */
.demo-cta {
  background: linear-gradient(135deg, rgba(94, 234, 212, 0.12), rgba(34, 211, 238, 0.08));
  border-top: 1px solid rgba(94, 234, 212, 0.18);
  border-bottom: 1px solid rgba(94, 234, 212, 0.18);
  padding: 56px 24px;
  text-align: center;
}

.demo-cta__inner {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.demo-cta__text {
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 700;
  line-height: 1.4;
  color: var(--color-text);
}

.demo-cta__text strong {
  color: var(--color-primary);
}

/* ── Cards Grid ──────────────────────────────────────────────────────────────── */
.cards-grid {
  display: grid;
  gap: 18px;
}

.cards-grid--4 {
  grid-template-columns: 1fr;
}

.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)), var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 26px 22px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(94, 234, 212, 0.22);
}

.card__icon {
  width: 52px;
  height: 52px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
  background: linear-gradient(135deg, rgba(94, 234, 212, 0.1), rgba(34, 211, 238, 0.05));
  border: 1px solid rgba(94, 234, 212, 0.16);
  flex-shrink: 0;
}

.card__icon svg {
  width: 26px;
  height: 26px;
  color: var(--color-primary);
}

.card__title {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 8px;
}

.card__text {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.65;
}

/* ── Partners / Logos ───────────────────────────────────────────────────────── */
.logos-row {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, 1fr);
  margin-bottom: 16px;
}

.logo-item {
  background: linear-gradient(135deg, rgba(94, 234, 212, 0.38), rgba(34, 211, 238, 0.45));
  border: 1px solid rgba(94, 234, 212, 0.55);
  border-radius: var(--radius-card);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 32px;
  min-height: 140px;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.logo-item:hover {
  background: linear-gradient(135deg, rgba(94, 234, 212, 0.52), rgba(34, 211, 238, 0.58));
  border-color: rgba(94, 234, 212, 0.75);
  transform: translateY(-2px);
}

.logo-item img {
  max-height: 130px;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.25));
  transition: transform 0.2s, filter 0.2s;
}

.logo-item:hover img {
  transform: scale(1.04);
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.3));
}

/* broken img fallback — show alt text */
.logo-item img::after {
  content: attr(alt);
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-text-muted);
  text-align: center;
}

/* ── Process ─────────────────────────────────────────────────────────────────── */
.process {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 48px;
}

.process__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.process__arrow {
  display: none;
}

.process__step {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)), var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  transition: border-color 0.2s, transform 0.2s;
}

.process__step:hover {
  border-color: rgba(94, 234, 212, 0.25);
  transform: translateY(-2px);
}

.process__circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 800;
  font-family: var(--font-mono);
  background: linear-gradient(135deg, rgba(94, 234, 212, 0.18), rgba(34, 211, 238, 0.12));
  border: 2px solid rgba(94, 234, 212, 0.3);
  color: var(--color-primary);
}

.process__circle--finish {
  background: linear-gradient(135deg, rgba(51, 209, 122, 0.2), rgba(51, 209, 122, 0.1));
  border-color: rgba(51, 209, 122, 0.4);
  color: var(--color-ok);
}

.process__label {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

.process__connector {
  display: flex;
  align-items: center;
  padding: 12px 24px;
  gap: 0;
  justify-content: center;
}

.process__connector-line {
  display: none;
}

.process__connector-arrow {
  font-size: 24px;
  color: rgba(94, 234, 212, 0.4);
  font-weight: 700;
  text-align: center;
}

/* ── Video Shorts ──────────────────────────────────────────────────────────── */
.video-shorts-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.video-shorts-wrap {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: #000;
  flex-shrink: 0;
  aspect-ratio: 9 / 16;
}

.video-shorts-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* Centre video — larger */
.video-shorts-wrap--main {
  width: 280px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(94, 234, 212, 0.15);
  border-color: rgba(94, 234, 212, 0.25);
  z-index: 1;
}

/* Side videos — smaller, slightly faded */
.video-shorts-wrap--side {
  width: 220px;
  opacity: 0.75;
  transition: opacity 0.2s, transform 0.2s;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.video-shorts-wrap--side:hover {
  opacity: 1;
  transform: scale(1.02);
}

@media (max-width: 767px) {
  .video-shorts-row {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }
  .video-shorts-wrap--main,
  .video-shorts-wrap--side {
    width: 260px;
    opacity: 1;
  }
}

/* ── FAQ ─────────────────────────────────────────────────────────────────────── */
.faq {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 820px;
}

.faq-item {
  border-radius: 16px;
  border: 1px solid var(--color-border);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)), var(--color-card-bg);
  overflow: hidden;
}

.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  cursor: pointer;
  background: none;
  border: none;
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  text-align: left;
  gap: 16px;
  transition: color 0.15s;
}

.faq-q:hover {
  color: var(--color-primary);
}

.faq-q__icon {
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.faq-item.open .faq-q__icon {
  transform: rotate(180deg);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.25s;
}

.faq-item.open .faq-a {
  max-height: 300px;
}

.faq-a__inner {
  padding: 0 24px 20px;
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ── Contact Form ─────────────────────────────────────────────────────────────── */
.contact-wrap {
  max-width: 540px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form__label {
  font-size: 12px;
  font-weight: 700;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.form__input {
  padding: 13px 14px;
  font-size: 14px;
  border-radius: 14px;
  border: 1px solid var(--color-border);
  background: rgba(15, 17, 21, 0.6);
  color: var(--color-text);
  outline: none;
  font-family: var(--font-body);
  transition: border-color 0.18s, background 0.18s;
  resize: vertical;
}

.form__input:focus {
  border-color: rgba(94, 234, 212, 0.35);
  background: rgba(15, 17, 21, 0.85);
}

.form__input::placeholder {
  color: rgba(167, 177, 194, 0.45);
}

.form__input--error {
  border-color: rgba(255, 107, 107, 0.6) !important;
  background: rgba(255, 107, 107, 0.05) !important;
}

.form__input--error:focus {
  border-color: rgba(255, 107, 107, 0.8) !important;
}

.form__textarea {
  min-height: 100px;
}

.form__submit {
  width: 100%;
  justify-content: center;
}

.form__note {
  font-size: 12px;
  color: var(--color-text-muted);
  text-align: center;
  line-height: 1.5;
}

.success-message {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px;
  border-radius: 12px;
  background: rgba(51, 209, 122, 0.1);
  border: 1px solid rgba(51, 209, 122, 0.2);
  color: #dfffee;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  line-height: 1.5;
}

.success-message.visible {
  display: flex;
}

/* ── Footer ──────────────────────────────────────────────────────────────────── */
.footer-divider {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 0;
}

.footer {
  padding: 0 0 8px;
}

.footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer__info {
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.footer__links {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.footer__link {
  color: var(--color-text-muted);
  font-size: 13px;
  font-weight: 700;
  transition: color 0.15s;
}

.footer__link:hover {
  color: var(--color-primary);
}

/* ── WhatsApp button ─────────────────────────────────────────────────────────── */
.wa-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 400;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25d366, #128c7e);
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.wa-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 36px rgba(37, 211, 102, 0.5);
}

.wa-btn svg {
  width: 28px;
  height: 28px;
  fill: #fff;
}

.wa-tooltip {
  position: absolute;
  right: 68px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  color: var(--color-text);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s;
}

.wa-btn:hover .wa-tooltip {
  opacity: 1;
}

/* ── Scroll Reveal ────────────────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive: Tablet 768px+ ───────────────────────────────────────────────── */
@media (min-width: 768px) {
  .cards-grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .logos-row {
    grid-template-columns: repeat(4, 1fr);
  }

  .logos-row--clients {
    grid-template-columns: repeat(3, 1fr);
  }

  .process__row {
    grid-template-columns: repeat(4, 1fr);
    align-items: start;
    gap: 0;
  }

  .process__step {
    flex-direction: column;
    text-align: center;
    padding: 28px 16px;
    position: relative;
  }

  .process__step:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -1px;
    top: 26px;
    width: 2px;
    height: 52px;
    background: rgba(94, 234, 212, 0.15);
  }

  .process__arrow {
    display: none;
  }

  .process__connector {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 4px 24px;
    gap: 0;
  }

  .process__connector-line {
    display: block;
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, rgba(94, 234, 212, 0.3), rgba(94, 234, 212, 0.1));
  }

  .process__connector-arrow {
    font-size: 22px;
    color: rgba(94, 234, 212, 0.5);
    padding: 0 8px;
  }

  .header__tagline {
    display: block;
  }
}

/* ── Responsive: Desktop 1200px+ ─────────────────────────────────────────────── */
@media (min-width: 1200px) {
  .cards-grid--4 {
    grid-template-columns: repeat(4, 1fr);
  }

  .hero__cards {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ── Mobile: up to 767px ──────────────────────────────────────────────────────── */
@media (max-width: 767px) {
  /* Header — скрываем тэглайн, телефон иконкой */
  .header__tagline {
    display: none;
  }

  .header__phone {
    display: flex;
    padding: 8px 10px;
    font-size: 0;       /* текст скрыт */
    gap: 0;
  }

  .header__phone svg {
    width: 18px;
    height: 18px;
  }

  /* Hero — переключаем на flex-колонку */
  .hero {
    padding: 48px 16px 40px;
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  /* Порядок: текст → бот → карточки */
  .hero__text { order: 1; }

  .hero__bot {
    display: flex;
    order: 2;
    justify-content: center;
    width: 100%;
    margin: 20px 0 4px;
    animation: none;           /* float отключаем — экономим батарею */
  }

  .hero__bot .bot-svg {
    width: 108px;
    height: 135px;
  }

  .hero__cards {
    order: 3;
    grid-template-columns: repeat(2, 1fr);
    margin-top: 24px;
  }

  .section {
    padding: 56px 16px;
  }

  .process__step {
    gap: 14px;
  }

  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .hero__cards {
    grid-template-columns: 1fr 1fr;
  }

  .cards-grid--4 {
    grid-template-columns: 1fr;
  }
}

/* ── Demo Modal ──────────────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(10, 13, 18, 0.82);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal-box {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: linear-gradient(145deg, rgba(94, 234, 212, 0.08), rgba(34, 211, 238, 0.03)), var(--color-card-bg);
  border: 1px solid rgba(94, 234, 212, 0.22);
  border-radius: 24px;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
  padding: 32px;
  transform: translateY(20px);
  transition: transform 0.25s;
}

.modal-overlay.open .modal-box {
  transform: translateY(0);
}

.modal-box__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: 16px;
  font-family: var(--font-body);
  transition: color 0.15s, background 0.15s;
}

.modal-box__close:hover {
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.08);
}

.modal-box__badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  color: var(--color-ok);
  background: rgba(51, 209, 122, 0.1);
  border: 1px solid rgba(51, 209, 122, 0.2);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 14px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.modal-box__title {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 6px;
}

.modal-box__sub {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 22px;
}

.modal-box__form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ── Quiz Modal ──────────────────────────────────────────────────────────────── */
.quiz-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(10, 13, 18, 0.82);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}

.quiz-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.quiz {
  width: 100%;
  max-width: 560px;
  background: linear-gradient(145deg, rgba(94, 234, 212, 0.07), rgba(34, 211, 238, 0.03)), var(--color-card-bg);
  border: 1px solid rgba(94, 234, 212, 0.2);
  border-radius: 24px;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
  padding: 28px;
  transform: translateY(24px);
  transition: transform 0.25s;
  max-height: 90vh;
  overflow-y: auto;
}

.quiz-overlay.open .quiz {
  transform: translateY(0);
}

/* Header */
.quiz__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.quiz__progress {
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.quiz__progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light));
  border-radius: 999px;
  transition: width 0.35s ease;
  width: 25%;
}

.quiz__step-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--color-text-muted);
  white-space: nowrap;
}

.quiz__close {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: 16px;
  font-family: var(--font-body);
  transition: color 0.15s, background 0.15s;
  flex-shrink: 0;
}

.quiz__close:hover {
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.08);
}

/* Step */
.quiz__step {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.quiz__step--hidden {
  display: none;
}

.quiz__title {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 20px;
}

/* Options */
.quiz__options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.quiz__opt {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  cursor: pointer;
  text-align: left;
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  transition: border-color 0.18s, background 0.18s, transform 0.15s;
  width: 100%;
}

.quiz__opt:hover {
  border-color: rgba(94, 234, 212, 0.3);
  background: rgba(94, 234, 212, 0.05);
}

.quiz__opt.selected {
  border-color: rgba(94, 234, 212, 0.55);
  background: rgba(94, 234, 212, 0.1);
  color: var(--color-text);
}

.quiz__opt-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(94, 234, 212, 0.07);
  border: 1px solid rgba(94, 234, 212, 0.12);
  transition: background 0.18s, border-color 0.18s;
}

.quiz__opt-icon svg {
  width: 18px;
  height: 18px;
  color: var(--color-text-muted);
  transition: color 0.18s;
}

.quiz__opt.selected .quiz__opt-icon {
  background: rgba(94, 234, 212, 0.15);
  border-color: rgba(94, 234, 212, 0.35);
}

.quiz__opt.selected .quiz__opt-icon svg {
  color: var(--color-primary);
}

.quiz__opt-label {
  flex: 1;
  line-height: 1.4;
}

.quiz__custom-input {
  padding: 12px 14px;
  font-size: 14px;
  border-radius: 12px;
  border: 1px solid rgba(94, 234, 212, 0.3);
  background: rgba(15, 17, 21, 0.6);
  color: var(--color-text);
  outline: none;
  font-family: var(--font-body);
  transition: border-color 0.18s;
  margin-bottom: 16px;
}

.quiz__custom-input:focus {
  border-color: rgba(94, 234, 212, 0.5);
}

.quiz__custom-input::placeholder {
  color: rgba(167, 177, 194, 0.45);
}

/* Step 4 — textarea + contacts */
.quiz__textarea {
  padding: 14px;
  font-size: 14px;
  border-radius: 14px;
  border: 1px solid var(--color-border);
  background: rgba(15, 17, 21, 0.6);
  color: var(--color-text);
  outline: none;
  font-family: var(--font-body);
  resize: vertical;
  min-height: 110px;
  transition: border-color 0.18s;
  margin-bottom: 18px;
}

.quiz__textarea:focus {
  border-color: rgba(94, 234, 212, 0.35);
}

.quiz__textarea::placeholder {
  color: rgba(167, 177, 194, 0.4);
  line-height: 1.55;
}

.quiz__contact-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}

.quiz__contact-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.quiz__contact-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.quiz__contact-input {
  padding: 12px 13px;
  font-size: 14px;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  background: rgba(15, 17, 21, 0.6);
  color: var(--color-text);
  outline: none;
  font-family: var(--font-body);
  transition: border-color 0.18s;
}

.quiz__contact-input:focus {
  border-color: rgba(94, 234, 212, 0.35);
}

.quiz__contact-input::placeholder {
  color: rgba(167, 177, 194, 0.4);
}

.quiz__contact-input--error {
  border-color: rgba(255, 107, 107, 0.6) !important;
  background: rgba(255, 107, 107, 0.05) !important;
}

.quiz__contact-input--error:focus {
  border-color: rgba(255, 107, 107, 0.8) !important;
}

.quiz__note {
  font-size: 11px;
  color: var(--color-text-muted);
  text-align: center;
  margin-bottom: 14px;
  line-height: 1.5;
}

.quiz__next,
.quiz__submit {
  width: 100%;
  justify-content: center;
}

.quiz__next {
  display: none; /* shown only when "Свой вариант" is selected */
}

.quiz__next--visible {
  display: inline-flex;
}

.quiz__next:disabled,
.quiz__submit:disabled {
  opacity: 0.4;
  cursor: default;
  transform: none;
  filter: none;
}

/* Success */
.quiz__step--success {
  text-align: center;
  padding: 20px 0;
  gap: 16px;
}

.quiz__success-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto;
  color: var(--color-primary);
}

.quiz__success-icon svg {
  width: 80px;
  height: 80px;
}

.quiz__success-text {
  font-size: 15px;
  color: var(--color-text-muted);
  line-height: 1.7;
  max-width: 380px;
  margin: 0 auto;
}

@media (max-width: 480px) {
  .quiz__contact-row {
    grid-template-columns: 1fr;
  }

  .quiz__title {
    font-size: 17px;
  }
}
