/* ====== Сайт SS 10 — «Центр помощи заёмщикам» ======
   Лендинг по референсу + квиз 1:1 с bfl.ssland.ru в оверлее. */

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

:root {
  --blue: #2160e0;
  --blue-dark: #1749b8;
  --blue-soft: #e9f1fc;
  --navy: #12233f;
  --text: #33445e;
  --muted: #64748b;
  --bg: #f3f6fb;
  --card-border: #e4ebf5;
  --radius: 22px;
}

html { scroll-behavior: smooth; }

body {
  font-family: Manrope, sans-serif;
  background: var(--bg);
  color: var(--navy);
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ================= ЛЕНДИНГ ================= */
.landing {
  max-width: 1060px;
  margin: 0 auto;
  padding: 14px 16px 28px;
}

/* появление при скролле */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---- Шапка ---- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 8px 4px 16px;
  position: relative;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 48px; height: 48px; flex-shrink: 0; display: flex; }
.brand-mark svg { width: 100%; height: 100%; }
.brand-name {
  color: var(--blue);
  font-size: 21px;
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.burger {
  background: none;
  border: none;
  color: var(--blue);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 10px;
  -webkit-tap-highlight-color: transparent;
}
.burger svg { width: 27px; height: 27px; }
.burger:hover { background: var(--blue-soft); }

.menu[hidden] { display: none; }
.menu {
  position: absolute;
  top: calc(100% - 4px);
  right: 4px;
  z-index: 40;
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: 16px;
  box-shadow: 0 16px 44px rgba(18, 35, 63, 0.14);
  padding: 8px;
  display: flex;
  flex-direction: column;
  min-width: 220px;
}
.menu a, .menu .menu-cta {
  font-family: Manrope, sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  padding: 11px 14px;
  border-radius: 10px;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.menu a:hover { background: var(--blue-soft); color: var(--blue); }
.menu .menu-cta { color: #fff; background: var(--blue); margin-top: 4px; text-align: center; }
.menu .menu-cta:hover { background: var(--blue-dark); }

/* ---- Hero: оффер + фото размытием на фоне ---- */
.hero {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--blue-soft);
  box-shadow: 0 10px 36px rgba(18, 35, 63, 0.08);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: url("img/hero-bg.jpg") center 32% / cover no-repeat;
  filter: blur(6px) saturate(1.08);
  transform: scale(1.06); /* прячем «ореол» блюра за края */
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(236, 243, 252, 0.97) 0%,
    rgba(236, 243, 252, 0.9) 48%,
    rgba(236, 243, 252, 0.45) 100%
  );
}
.hero-inner {
  position: relative;
  z-index: 1;
  padding: 40px 36px 42px;
  max-width: 640px;
}
.hero h1 {
  margin: 0;
  font-size: clamp(26px, 4.4vw, 40px);
  line-height: 1.18;
  font-weight: 800;
  letter-spacing: -0.015em;
}
.hero-sub {
  margin: 16px 0 0;
  font-size: clamp(15px, 2vw, 17px);
  line-height: 1.5;
  color: var(--text);
  font-weight: 600;
  max-width: 430px;
}
.hero-docs {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 460px;
}
.hero-docs li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: clamp(14.5px, 1.9vw, 16px);
  font-weight: 600;
  line-height: 1.4;
  color: var(--navy);
}
.doc-check { width: 22px; height: 22px; flex-shrink: 0; margin-top: 1px; display: flex; }
.doc-check svg { width: 100%; height: 100%; }

/* ---- Кнопка CTA ---- */
.cta-btn {
  margin-top: 28px;
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: 13px;
  padding: 17px 30px;
  font-family: Manrope, sans-serif;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(33, 96, 224, 0.32);
  transition: background 0.15s, transform 0.12s, box-shadow 0.15s;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.cta-btn:hover { background: var(--blue-dark); box-shadow: 0 12px 30px rgba(23, 73, 184, 0.36); }
.cta-btn:active { transform: scale(0.98); }
.cta-btn.wide { width: 100%; margin-top: 0; padding: 19px 30px; }

/* ---- Преимущества 2×2 ---- */
.benefits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}
.b-card {
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 28px 26px 26px;
  box-shadow: 0 6px 22px rgba(18, 35, 63, 0.05);
}
.b-icon {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.b-icon svg { width: 30px; height: 30px; }
.ic-purple { background: #efeafe; color: #7c5cf0; }
.ic-green  { background: #e6f6ec; color: #2f9e5f; }
.ic-blue   { background: #e5effc; color: var(--blue); }
.ic-yellow { background: #fdf3d9; color: #d9a514; }
.b-card h3 {
  margin: 18px 0 0;
  font-size: 19px;
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.b-card p {
  margin: 10px 0 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--muted);
}

/* ---- Траст-полоса ---- */
.trust {
  margin-top: 16px;
  background: var(--blue-soft);
  border-radius: var(--radius);
  padding: 26px 18px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
}
.t-item {
  text-align: center;
  padding: 4px 10px;
  position: relative;
}
.t-item + .t-item::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 12%;
  height: 76%;
  width: 1px;
  background: rgba(33, 96, 224, 0.14);
}
.t-icon { color: var(--blue); display: inline-flex; }
.t-icon svg { width: 34px; height: 34px; }
.t-item h4 { margin: 10px 0 0; font-size: 15.5px; font-weight: 800; }
.t-item p { margin: 6px 0 0; font-size: 13px; line-height: 1.5; color: var(--muted); }

/* ---- Фото ---- */
.photo { margin-top: 16px; }
.photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: 50% 22%;
  border-radius: var(--radius);
  box-shadow: 0 10px 36px rgba(18, 35, 63, 0.1);
}

/* ---- Финальный CTA ---- */
.bottom-cta { margin-top: 16px; }

/* ---- Футер лендинга ---- */
.site-footer {
  text-align: center;
  padding: 26px 12px 6px;
  font-size: 11.5px;
  color: var(--muted);
  letter-spacing: 0.2px;
  line-height: 1.6;
}
.site-footer a { text-decoration: none; color: inherit; }
.site-footer a:hover { color: var(--blue); text-decoration: underline; }
.site-footer .sep { color: #cbd5e0; margin: 0 3px; }
.site-footer .legal-company { color: #47597a; font-weight: 600; }
.site-footer .legal-phone a { color: var(--blue); font-weight: 700; }
.site-footer .legal-docs { margin-top: 5px; }
.site-footer .legal-docs a { color: #8fa0b8; white-space: nowrap; }

/* ---- Мобильная адаптация лендинга ---- */
@media (max-width: 760px) {
  .benefits { grid-template-columns: 1fr; }
  .hero-inner { padding: 30px 22px 32px; max-width: none; }
  .hero::after {
    background: linear-gradient(
      175deg,
      rgba(236, 243, 252, 0.96) 0%,
      rgba(236, 243, 252, 0.86) 48%,
      rgba(236, 243, 252, 0.5) 100%
    );
  }
  .hero-bg { background-position: center 20%; }
  .cta-btn { width: 100%; }
  .b-card { padding: 24px 20px 22px; }
  .photo img { aspect-ratio: 4 / 3; }
}
@media (max-width: 560px) {
  .landing { padding: 10px 12px 22px; }
  .brand-name { font-size: 18px; }
  .brand-mark { width: 42px; height: 42px; }
  .trust { grid-template-columns: 1fr; gap: 18px; padding: 24px 16px; }
  .t-item + .t-item::before {
    left: 14%;
    right: 14%;
    top: -9px;
    width: auto;
    height: 1px;
  }
}

/* ================= КВИЗ (1:1 bfl.ssland.ru, в оверлее) ================= */
.quiz-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(13, 23, 48, 0.52);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.quiz-overlay.open { opacity: 1; }
.quiz-overlay[hidden] { display: none; }

body.quiz-open { overflow: hidden; }

/* ---- Карточка ---- */
.quiz-wrapper {
  width: 480px;
  max-width: 100%;
  height: 620px;
  max-height: calc(100dvh - 40px);
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(10, 18, 40, 0.35);
  display: flex;
  flex-direction: column;
  transform: translateY(16px) scale(0.98);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.quiz-overlay.open .quiz-wrapper { transform: none; }

/* ---- Шапка ---- */
.quiz-header {
  background: linear-gradient(135deg, #2160e0 0%, #1749b8 100%);
  padding: 16px 18px 14px;
  color: #fff;
  flex-shrink: 0;
}
.header-top { display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  position: relative;
}
.avatar-icon { display: flex; line-height: 1; }
.avatar-letter { line-height: 1; }
.online-dot {
  position: absolute;
  bottom: 1px;
  right: 1px;
  width: 11px;
  height: 11px;
  background: #4ade80;
  border-radius: 50%;
  border: 2px solid #2160e0;
  animation: pulse-dot 2s ease infinite;
}
/* когда статус рисует Lottie — прячем CSS-точку */
.avatar.lottie-online .online-dot { display: none; }
.lottie-online-holder {
  position: absolute;
  bottom: -4px;
  right: -4px;
  width: 22px;
  height: 22px;
  pointer-events: none;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.5); }
  50% { box-shadow: 0 0 0 4px rgba(74, 222, 128, 0); }
}
.header-info { min-width: 0; flex: 1 1 auto; }
.header-name { font-size: 16px; font-weight: 700; }
.header-status { font-size: 13px; opacity: 0.9; }

.quiz-close {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s, transform 0.12s;
  -webkit-tap-highlight-color: transparent;
}
.quiz-close:hover { background: rgba(255, 255, 255, 0.28); }
.quiz-close:active { transform: scale(0.92); }

.progress-bar {
  background: rgba(255, 255, 255, 0.25);
  border-radius: 99px;
  height: 4px;
  margin-top: 12px;
  overflow: hidden;
}
.progress-fill {
  background: #fff;
  height: 100%;
  border-radius: 99px;
  width: 20%;
  transition: width 0.4s;
}
.progress-label { font-size: 11px; opacity: 0.65; margin-top: 6px; }

/* ---- Чат ---- */
.chat-area {
  flex: 1 1 0%;
  min-height: 56px;
  overflow-y: auto;
  padding: 18px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scroll-behavior: smooth;
  background-color: #f6f8fc;
}

.bot-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  align-self: flex-start;
  max-width: 88%;
  animation: fadeUp 0.3s ease both;
}
.mini-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #2160e0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.mini-avatar svg { width: 15px; height: 15px; }

.bubble {
  max-width: 82%;
  min-width: 0;
  padding: 11px 14px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.55;
  animation: fadeUp 0.3s ease both;
  word-break: break-word;
}
.bubble.bot {
  background: #fff;
  color: #1e293b;
  border-bottom-left-radius: 4px;
}
.bot-row .bubble.bot { align-self: unset; max-width: 100%; animation: none; }
.bubble.user {
  background: #2160e0;
  color: #fff;
  border-bottom-right-radius: 4px;
  align-self: flex-end;
  font-weight: 500;
}

/* индикатор «печатает» */
.bubble.typing { background: #fff; align-self: flex-start; padding: 10px 14px; }
.bot-row.typing-row .bubble.typing { align-self: unset; animation: none; }
.lottie-typing { width: 46px; height: 20px; }
/* CSS-fallback точки, если Lottie не загрузился */
.dots { display: flex; gap: 5px; align-items: center; }
.dots span {
  width: 7px; height: 7px;
  background: #8fb0e8;
  border-radius: 50%;
  animation: blink 1.2s ease infinite;
}
.dots span:nth-child(2) { animation-delay: 0.2s; }
.dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink {
  0%, 100% { opacity: 0.3; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-3px); }
}

@keyframes fadeUp {
  0% { opacity: 0; transform: translateY(8px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ---- Зона вариантов ---- */
.input-zone { flex-shrink: 0; }
/* режим «панель» (вопрос с вариантами): рамка жёсткая, список скроллится внутри,
   кнопка/подсказка/подвал не сдвигаются */
.input-zone.panel {
  flex: 0 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.input-zone.panel .choices-area {
  flex: 1 1 auto;
  min-height: 0;
}
.choices-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-right: 2px;
}
.choices-area {
  padding: 8px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}
.choice-btn {
  background: #fff;
  border: 1.5px solid #bcd3f5;
  border-radius: 12px;
  padding: 13px 16px;
  font-size: 14px;
  font-family: Manrope, sans-serif;
  font-weight: 500;
  color: #1e293b;
  cursor: pointer;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.choice-btn:hover { background: #e9f1fc; border-color: #2160e0; }
@media (hover: hover) { .choice-btn:hover { transform: translateX(2px); } }
.choice-btn:active { transform: scale(0.97); background: #e9f1fc; border-color: #2160e0; }
.choice-badge {
  background: #2160e0;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 99px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* подсказка над вариантами */
.choices-hint {
  font-size: 12px;
  font-weight: 500;
  color: #94a3b8;
  padding: 0 2px 2px;
}

/* множественный выбор */
.choice-btn.multi { padding-right: 12px; }
.choice-btn .check-box {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  border: 1.5px solid #cfdff5;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: transparent;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}
.choice-btn .check-box svg {
  width: 14px;
  height: 14px;
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.15s, transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.choice-btn.multi.selected {
  background: #e9f1fc;
  border-color: #2160e0;
}
.choice-btn.multi.selected .check-box {
  background: #2160e0;
  border-color: #2160e0;
}
.choice-btn.multi.selected .check-box svg { opacity: 1; transform: scale(1); }
.choice-btn.multi:active { transform: scale(0.985); }
.submit-btn.multi-cta { margin-top: 4px; }

/* текстовое поле (имя) */
.text-row {
  display: flex;
  border: 1.5px solid #bcd3f5;
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s;
  width: 100%;
}
.text-row:focus-within { border-color: #2160e0; }
.text-input {
  flex: 1 1 0%;
  border: none;
  outline: none;
  padding: 13px;
  font-size: 15px;
  font-family: Manrope, sans-serif;
  font-weight: 500;
  color: #1e293b;
  background: transparent;
  min-width: 0;
}
.text-input::placeholder { color: #94a3b8; font-weight: 400; }
@media (max-width: 560px) { .text-input { font-size: 16px; } }

/* ---- Телефон ---- */
.phone-area {
  padding: 8px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  width: 100%;
}
.phone-row {
  display: flex;
  border: 1.5px solid #bcd3f5;
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s;
  width: 100%;
}
.phone-row:focus-within { border-color: #2160e0; }
.phone-prefix {
  background: #f4f8fd;
  border-right: 1.5px solid #bcd3f5;
  padding: 13px;
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  flex-shrink: 0;
}
.phone-input {
  flex: 1 1 0%;
  border: none;
  outline: none;
  padding: 13px;
  font-size: 15px;
  font-family: Manrope, sans-serif;
  font-weight: 500;
  color: #1e293b;
  background: transparent;
  min-width: 0;
}
.phone-input::placeholder { color: #94a3b8; font-weight: 400; }

.consent-row { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.consent-check { width: 19px; height: 19px; flex-shrink: 0; margin-top: 1px; cursor: pointer; accent-color: #2160e0; }
.consent-label { font-size: 12.5px; color: #64748b; line-height: 1.5; }
.consent-label a { color: #2160e0; text-decoration: none; font-weight: 500; }
.consent-label a:hover { text-decoration: underline; }

.submit-btn {
  background: #2160e0;
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 15px 20px;
  font-size: 15px;
  font-family: Manrope, sans-serif;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  transition: background 0.15s, transform 0.1s, opacity 0.15s;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.submit-btn:hover { background: #1c53c4; }
.submit-btn:active { transform: scale(0.98); background: #1c53c4; }
.submit-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ---- Экран благодарности / тупик ---- */
.thank-you {
  flex: 1 1 0%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 40px 24px;
  text-align: center;
  animation: fadeUp 0.4s ease both;
}
.input-zone.grow { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.ty-icon { width: 96px; height: 96px; }
.ty-title { font-size: 20px; font-weight: 700; color: #1e293b; }
.ty-text { font-size: 14px; color: #64748b; line-height: 1.55; max-width: 320px; }
.ty-phone { font-size: 22px; font-weight: 700; color: #2160e0; letter-spacing: 0.01em; }
.ty-restart {
  margin-top: 6px;
  background: transparent;
  border: 1.5px solid #bcd3f5;
  color: #2160e0;
  border-radius: 12px;
  padding: 11px 18px;
  font-family: Manrope, sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.ty-restart:hover { background: #e9f1fc; border-color: #2160e0; }

.thank-you.dead-end .ty-icon { color: #ef4444; }

/* ---- Футер квиза ---- */
.legal-links.quiz-legal {
  flex-shrink: 0;
  text-align: center;
  padding: 9px 14px 12px;
  background: #fff;
  font-size: 10px;
  color: #64748b;
  border-top: 1px solid #edf2f9;
  letter-spacing: 0.2px;
  line-height: 1.5;
}
.quiz-legal a { text-decoration: none; color: inherit; transition: color 0.2s; }
.quiz-legal a:hover { color: #2160e0; text-decoration: underline; }
.quiz-legal span.sep { color: #cbd5e0; margin: 0 3px; }
.quiz-legal .legal-company { color: #334155; font-weight: 500; }
.quiz-legal .legal-phone { margin-top: 1px; }
.quiz-legal .legal-phone a { color: #2160e0; font-weight: 700; }
.quiz-legal .legal-docs { margin-top: 4px; }
.quiz-legal .legal-docs a { color: #94a3b8; white-space: nowrap; }

/* ---- Cookie ---- */
.cookie-banner {
  position: fixed;
  bottom: 16px;
  right: 16px;
  max-width: 340px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
  z-index: 70;
}
.cookie-banner.hidden { display: none; }
.cookie-text { font-size: 13px; color: #334155; line-height: 1.5; }
.cookie-text a { color: #94a3b8; text-decoration: none; }
.cookie-accept {
  background: #0f0f0f;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 22px;
  font-family: Manrope, sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
}
.cookie-close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: none;
  border: none;
  font-size: 18px;
  line-height: 1;
  color: #94a3b8;
  cursor: pointer;
}

/* ---- Мобильная адаптация квиза ---- */
@media (max-width: 560px) {
  .quiz-overlay { padding: 0; align-items: flex-start; }
  .quiz-wrapper {
    width: 100%;
    height: 100dvh;
    max-height: none;
    border-radius: 0;
  }
  .quiz-header { padding: max(14px, env(safe-area-inset-top)) 12px 12px; }
  .chat-area { padding: 14px 12px 8px; gap: 9px; }
  .bubble { font-size: 13.5px; padding: 10px 13px; max-width: 88%; }
  .choices-area { padding: 8px 12px max(16px, env(safe-area-inset-bottom)); gap: 7px; }
  .choice-btn { padding: 14px 16px; }
  .phone-area { padding: 8px 12px max(16px, env(safe-area-inset-bottom)); }
  .phone-input { font-size: 16px; }
  .consent-check { width: 20px; height: 20px; }
  .submit-btn { padding: 16px 20px; }
  .legal-links.quiz-legal { padding: 8px 12px 10px; font-size: 9.5px; }

  /* карточка ужимается на высоту cookie-панели, чтобы та не перекрывала кнопки */
  body.cookie-open .quiz-wrapper { height: calc(100dvh - var(--cookie-h, 0px)); }

  /* cookie как нижняя панель во всю ширину */
  .cookie-banner {
    left: 0;
    right: 0;
    bottom: 0;
    max-width: none;
    border-radius: 16px 16px 0 0;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 12px;
    padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
    box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.1);
  }
  .cookie-text { flex: 1 1 180px; font-size: 12.5px; }
  .cookie-accept { flex: 0 0 auto; padding: 11px 22px; }
  .cookie-close { top: 8px; right: 10px; }
}
