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

:root {
  --yellow:  #FFDD6F;
  --yd:      #e8c84a;
  --red:     #e8332a;
  --dark:    #4e4e53;
  --text:    #1f1f24;
  --muted:   #777782;
  --border:  #e2e2ea;
  --bg:      #f4f4f6;
  --white:   #ffffff;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Manrope', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 20px;
}


/* =====================
   HERO
   ===================== */
.hero-block {
  padding: 26px 0 30px;
}

.logo-line {
  margin-bottom: 20px;
}

.logo-text {
  display: block;
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.4px;
  line-height: 1.15;
  margin-bottom: 4px;
}

.logo-sub {
  display: block;
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}

/* Карточка-цитата директора — как у конкурента */
.hero-card {
  display: flex;
  gap: 0;
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.hero-card-left {
  flex: 1;
  padding: 18px 18px 20px 20px;
  min-width: 0;
}

/* Красные кавычки — как у конкурента */
.hero-qq {
  font-size: 32px;
  font-weight: 900;
  color: var(--red);
  line-height: 0.9;
  margin-bottom: 10px;
  font-family: Georgia, serif;
  letter-spacing: -1px;
}

.hero-intro {
  font-size: 14px;
  color: var(--text);
  line-height: 1.65;
  margin-bottom: 14px;
}

.hero-pitch {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.65;
}

/* Фото директора */
.hero-photo-wrap {
  flex: 0 0 150px;
  position: relative;
  background: #e2e2e6;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-photo-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.hero-photo-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: #bbb;
  font-size: 11px;
  text-align: center;
}

.hero-photo-label {
  position: relative;
  z-index: 2;
  width: 100%;
  background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, transparent 100%);
  padding: 20px 10px 9px;
  font-size: 10.5px;
  color: rgba(255,255,255,0.88);
  font-weight: 600;
}


/* =====================
   QUIZ BLOCK
   ===================== */
.quiz-block {
  padding: 30px 0 40px;
}

.offer-line {
  width: 36px;
  height: 3px;
  background: var(--red);
  border-radius: 2px;
  margin-bottom: 12px;
}

.offer-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}

.offer-title mark {
  background: var(--yellow);
  color: var(--text);
  padding: 1px 5px 2px;
  border-radius: 3px;
  -webkit-box-decoration-break: clone;
}

.offer-sub {
  font-size: 15px;
  color: var(--text);
  margin-bottom: 20px;
  line-height: 1.6;
}

/* Quiz card */
.quiz-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--white);
}

.progress-track {
  height: 4px;
  background: #e8e8ee;
}

.progress-fill {
  height: 100%;
  background: var(--yellow);
  width: 0%;
  transition: width 0.45s cubic-bezier(.4,0,.2,1);
}

/* Steps */
.step {
  display: none;
  padding: 22px 20px 4px;
}

.step.active { display: block; }

.step-q {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
  line-height: 1.35;
}

/* Options — 2 col */
.opts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-bottom: 6px;
}

.opt-wide { grid-column: 1 / -1; }

.opt {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 14px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  transition: border-color .15s, background .15s;
  user-select: none;
  line-height: 1.3;
}

.opt:hover { border-color: #c4c4cc; }
.opt.sel { border-color: var(--yd); background: #fffaed; }
.opt input[type="radio"] { display: none; }

.radio {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #ccc;
  flex-shrink: 0;
  position: relative;
  transition: border-color .15s;
}

.opt.sel .radio { border-color: var(--yd); }

.opt.sel .radio::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--yd);
}

/* Form step */
.step-hint {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 16px;
  line-height: 1.6;
}

.step-hint strong { color: var(--text); }

.phone-inp {
  display: block;
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 15px 16px;
  font-family: inherit;
  font-size: 16px;
  color: var(--text);
  background: var(--white);
  outline: none;
  margin-bottom: 14px;
  transition: border-color .2s;
}

.phone-inp:focus { border-color: var(--yd); }
.phone-inp.error { border-color: var(--red); }

.agree {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 16px;
  cursor: pointer;
  line-height: 1.5;
}

.agree input { display: none; }

.agree-box {
  width: 17px; height: 17px;
  border: 1.5px solid #ccc;
  border-radius: 3px;
  flex-shrink: 0;
  margin-top: 1px;
  position: relative;
  background: var(--white);
  transition: background .15s, border-color .15s;
}

.agree input:checked + .agree-box {
  background: var(--yd);
  border-color: var(--yd);
}

.agree input:checked + .agree-box::after {
  content: '';
  position: absolute;
  left: 3px; top: 0;
  width: 5px; height: 10px;
  border: 2px solid #fff;
  border-top: none; border-left: none;
  transform: rotate(45deg);
}

.agree a { color: var(--dark); text-decoration: underline; }

.btn-send {
  display: block;
  width: 100%;
  background: var(--yellow);
  color: var(--dark);
  border: none;
  border-radius: 8px;
  padding: 16px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  margin-bottom: 22px;
  transition: background .15s;
}

.btn-send:hover { background: var(--yd); }
.btn-send:disabled { background: #ddd; color: #aaa; cursor: default; }

/* Nav */
.quiz-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px 18px;
  border-top: 1px solid var(--border);
}

.btn-back {
  background: none;
  border: none;
  color: var(--muted);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  padding: 7px 0;
  transition: color .15s;
  visibility: hidden;
}

.btn-back.show { visibility: visible; }
.btn-back:hover { color: var(--text); }

.btn-next {
  background: var(--yellow);
  color: var(--dark);
  border: none;
  border-radius: 8px;
  padding: 11px 24px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: background .15s;
  margin-left: auto;
}

.btn-next:hover:not(:disabled) { background: var(--yd); }
.btn-next:disabled { background: #ebebee; color: #bbb; cursor: default; }

/* Success */
.success {
  text-align: center;
  padding: 36px 16px 30px;
}

.success-icon {
  width: 54px; height: 54px;
  border-radius: 50%;
  border: 2px solid var(--yd);
  background: #fffaed;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--dark);
  font-weight: 900;
  margin: 0 auto 16px;
}

.success-title {
  font-size: 19px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 10px;
}

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


/* =====================
   TEXT BLOCK
   ===================== */
.text-block {
  padding: 28px 0 32px;
}

.text-block p {
  font-size: 15px;
  color: var(--text);
  line-height: 1.75;
  margin-bottom: 16px;
}

.text-block p:last-child { margin-bottom: 0; }


/* =====================
   FOOTER
   ===================== */
.footer {
  border-top: 1px solid var(--border);
  padding: 18px 0 36px;
}

.footer p {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 4px;
}

.footer a { color: var(--muted); text-decoration: underline; }


/* =====================
   MOBILE
   ===================== */
@media (max-width: 400px) {
  .logo-text { font-size: 17px; }
  .offer-title { font-size: 20px; }
  .hero-photo-wrap { flex: 0 0 108px; }
  .opt { font-size: 13px; padding: 11px 12px; }
}

/* =====================
   FORM ERROR
   ===================== */
.form-err {
  font-size: 13px;
  color: var(--red);
  margin-top: -10px;
  margin-bottom: 14px;
  line-height: 1.5;
}

/* Turnstile invisible widget (без фрейма) — на всякий случай прячем место */
.cf-turnstile { margin: 0; }
