/* ============================================================
   Sograda · Conversion Pack (общий для всех продуктовых страниц)
   ============================================================ */

:root {
  --c-wa: #25D366;
  --c-tg: #229ED9;
  --c-max: #6E2DD3;
  --c-max-grad: linear-gradient(135deg, #2C2BDD 0%, #8C2DD3 100%);
}

/* ============ ШАПКА: иконки мессенджеров ============ */
.cv-nav-msgs {
  display: inline-flex; align-items: center; gap: 8px; margin-right: 8px;
}
.cv-nav-msg {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px; text-decoration: none;
  transition: transform .15s, opacity .15s;
}
.cv-nav-msg:hover { transform: translateY(-2px); }
.cv-nav-msg svg { width: 18px; height: 18px; fill: #fff; display: block; }
.cv-nav-msg.max { background: var(--c-max-grad); }
.cv-nav-msg.tg  { background: var(--c-tg); }
.cv-nav-msg.wa  { background: var(--c-wa); }

/* ============ HERO CTA: MAX + мелкие WA/TG ============ */
.cv-hero-cta {
  display: flex; align-items: stretch; gap: 10px;
  flex-wrap: nowrap;
  margin-top: 18px;
}
.cv-hero-cta > * { min-height: 56px; }
.cv-btn-max {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--c-max-grad); color: #fff;
  font-family: var(--font-display, 'Unbounded', sans-serif);
  font-size: 14px; font-weight: 700;
  padding: 16px 18px;
  border-radius: var(--radius-sm, 8px);
  text-decoration: none;
  white-space: nowrap;
  flex: 1 1 auto; min-width: 0;
  transition: transform .15s, box-shadow .15s;
  box-shadow: 0 4px 14px rgba(108, 45, 211, 0.35);
}
.cv-btn-max:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(108, 45, 211, 0.5); }
.cv-btn-max svg { width: 18px; height: 18px; fill: #fff; flex-shrink: 0; }
.cv-msg-icon {
  width: 56px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm, 8px); text-decoration: none;
  transition: transform .15s, opacity .15s;
  flex: 0 0 56px;
}
.cv-msg-icon:hover { transform: translateY(-2px); opacity: 0.92; }
.cv-msg-icon.tg { background: var(--c-tg); }
.cv-msg-icon.wa { background: var(--c-wa); }
.cv-msg-icon svg { width: 22px; height: 22px; fill: #fff; }

/* ============ FOOTER: мессенджеры ============ */
.cv-footer-msgs {
  display: flex; gap: 10px; margin: 14px 0 8px;
}
a.cv-footer-msg, .cv-footer-msg {
  width: 40px; height: 40px;
  display: inline-flex !important; align-items: center; justify-content: center;
  border-radius: 10px; text-decoration: none;
  padding: 0;
  transition: transform .15s;
}
.cv-footer-msg:hover { transform: translateY(-2px); }
.cv-footer-msg svg { width: 20px; height: 20px; fill: #fff; }
.cv-footer-msg.max { background: var(--c-max-grad); }
.cv-footer-msg.tg  { background: var(--c-tg); }
.cv-footer-msg.wa  { background: var(--c-wa); }
.cv-footer-msg.vk  { background: #0077FF; }

/* ============ STICKY-БАР на мобиле ============ */
.cv-sticky {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0;
  z-index: 90;
  background: rgba(33, 40, 43, 0.97);
  backdrop-filter: blur(14px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  gap: 8px;
}
.cv-sticky-btn {
  flex: 1;
  display: flex; flex-direction: column; align-items: center;
  gap: 4px;
  padding: 6px 4px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 10px;
  border-radius: 8px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: background .15s;
}
.cv-sticky-btn:active { background: rgba(255, 255, 255, 0.05); }
.cv-sticky-btn svg { width: 22px; height: 22px; fill: currentColor; }
.cv-sticky-btn.max { color: var(--c-max); }
.cv-sticky-btn.tg  { color: var(--c-tg); }
.cv-sticky-btn.cta {
  flex: 1.4;
  background: var(--yellow, #FFCF3D);
  color: var(--dark, #21282B);
  font-family: var(--font-display, 'Unbounded', sans-serif);
  font-weight: 700;
  font-size: 11px;
  justify-content: center;
}

/* ============ КВИЗ-МОДАЛКА ============ */
.cv-modal-overlay {
  display: none;
  position: fixed; inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.75);
  align-items: center; justify-content: center;
  padding: 20px;
  overflow-y: auto;
}
.cv-modal-overlay.open { display: flex; }
.cv-modal {
  width: 100%; max-width: 560px;
  background: #21282B;
  border-radius: 18px;
  padding: 28px;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.cv-modal-close {
  position: absolute; top: 14px; right: 14px;
  width: 32px; height: 32px;
  background: rgba(255, 255, 255, 0.06);
  border: none; cursor: pointer;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 18px;
}
.cv-modal-close:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.cv-modal-header { margin-bottom: 18px; padding-right: 40px; }
.cv-modal-title {
  font-family: var(--font-display, 'Unbounded', sans-serif);
  font-size: 20px; font-weight: 700; color: #fff;
  line-height: 1.25;
}
.cv-modal-sub {
  font-size: 13px; color: rgba(255, 255, 255, 0.6);
  margin-top: 6px; line-height: 1.45;
}
.cv-quiz-progress {
  height: 4px; background: rgba(255, 255, 255, 0.08);
  border-radius: 2px; overflow: hidden;
  margin-bottom: 8px;
}
.cv-quiz-bar { height: 100%; background: var(--yellow, #FFCF3D); width: 0%; transition: width .3s; }
.cv-quiz-progress-text {
  font-size: 11px; color: rgba(255, 255, 255, 0.45);
  margin-bottom: 16px;
}
.cv-quiz-step { display: none; }
.cv-quiz-step.active { display: block; }
.cv-quiz-q {
  font-family: var(--font-display, 'Unbounded', sans-serif);
  font-size: 16px; font-weight: 700;
  margin-bottom: 16px; color: #fff;
}
.cv-quiz-opts {
  display: grid; gap: 10px;
  grid-template-columns: 1fr 1fr;
}
.cv-quiz-opt {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 14px;
  color: #fff;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: border-color .15s, background .15s;
}
.cv-quiz-opt:hover { border-color: var(--yellow, #FFCF3D); }
.cv-quiz-opt.selected { background: rgba(255, 207, 61, 0.12); border-color: var(--yellow, #FFCF3D); color: var(--yellow, #FFCF3D); }
.cv-quiz-opt.full { grid-column: 1 / -1; }
.cv-quiz-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 15px;
  color: #fff;
  font-family: inherit;
  outline: none;
  margin-bottom: 10px;
}
.cv-quiz-input::placeholder { color: rgba(255, 255, 255, 0.4); }
.cv-quiz-input:focus { border-color: var(--yellow, #FFCF3D); }
.cv-quiz-bonus {
  background: rgba(255, 207, 61, 0.08);
  border: 1px dashed rgba(255, 207, 61, 0.4);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13px; color: rgba(255, 255, 255, 0.8);
  margin-bottom: 14px; line-height: 1.5;
}
.cv-quiz-bonus b { color: var(--yellow, #FFCF3D); }
.cv-quiz-actions {
  display: flex; gap: 10px; margin-top: 14px;
  align-items: center;
}
.cv-quiz-back {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.7);
  padding: 12px 18px;
  border-radius: 10px;
  cursor: pointer; font-size: 13px;
  font-family: inherit;
}
.cv-quiz-skip {
  background: none; border: none;
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
  padding: 8px 12px;
  cursor: pointer;
  text-decoration: underline;
  font-family: inherit;
}
.cv-quiz-skip:hover { color: rgba(255, 255, 255, 0.85); }
.cv-quiz-next {
  flex: 1;
  background: var(--yellow, #FFCF3D);
  color: var(--dark, #21282B);
  border: none;
  padding: 14px 22px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px; font-weight: 700;
  font-family: var(--font-display, 'Unbounded', sans-serif);
}
.cv-quiz-next:disabled { opacity: 0.5; cursor: not-allowed; }
.cv-quiz-next:not(:disabled):hover { background: #F8BA00; }
.cv-quiz-channels {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 8px; margin-bottom: 14px;
}
.cv-quiz-channels button {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.75);
  padding: 10px 6px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 12px;
  font-family: inherit;
}
.cv-quiz-channels button.selected { background: rgba(255, 207, 61, 0.1); border-color: var(--yellow, #FFCF3D); color: var(--yellow, #FFCF3D); }
.cv-quiz-policy {
  font-size: 12px; color: rgba(255, 255, 255, 0.5);
  margin-top: 10px; line-height: 1.5;
}
.cv-quiz-policy a { color: rgba(255, 255, 255, 0.7); text-decoration: underline; }

/* ============ Responsive ============ */
@media (max-width: 900px) {
  .cv-sticky { display: flex; }
  body.cv-has-sticky { padding-bottom: 76px; }
  .cv-nav-msgs { display: none; }
}
@media (max-width: 600px) {
  .cv-hero-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .cv-hero-cta > .cv-btn-max,
  .cv-hero-cta > .cv-btn-primary,
  .cv-hero-cta > .cv-btn-outline { grid-column: 1 / -1; }
  .cv-hero-cta > .cv-msg-icon { width: 100%; height: 56px; flex: none; }
  .cv-quiz-opts { grid-template-columns: 1fr; }
  .cv-modal { padding: 22px 18px; }
}
@media (max-width: 420px) {
  .cv-quiz-channels { grid-template-columns: repeat(2, 1fr); }
}
