/* === SVET VNUTRI · QUIZ / FUNNEL ===
   Дополнение к дизайн-системе сайта (../css/style.css).
   Палитра, шрифты и кнопки — из общей таблицы токенов. */

.fn {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.fn__head {
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  background: rgba(250, 246, 239, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 50;
}
.fn__head-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.fn__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--wine);
}
.fn__logo-mark { color: var(--gold); font-size: 22px; line-height: 1; }
.fn__logo-text {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.fn__logo-text small {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-light);
}
.fn__home {
  font-size: 13px;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
  white-space: nowrap;
}
.fn__home:hover { color: var(--wine); }

.fn__main {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 48px 0 80px;
}

.fn__card {
  width: 100%;
  max-width: 760px;
}

/* ---------- прогресс ---------- */
.fn__progress {
  margin-bottom: 36px;
}
.fn__progress-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-light);
  margin-bottom: 14px;
}
.fn__progress-step { color: var(--wine); font-weight: 600; }
.fn__bar {
  height: 3px;
  background: var(--line);
  border-radius: 3px;
  overflow: hidden;
}
.fn__bar-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft));
  transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.fn__dots {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}
.fn__dot {
  width: 100%;
  height: 3px;
  border-radius: 3px;
  background: var(--line);
  transition: background 0.3s;
}
.fn__dot.is-done { background: var(--gold-soft); }
.fn__dot.is-now { background: var(--gold); }

/* ---------- шаги ---------- */
.fn__step { display: none; }
.fn__step.is-active {
  display: block;
  animation: fn-in 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes fn-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.fn__eyebrow {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--wine);
  font-weight: 500;
  margin-bottom: 14px;
}
.fn__title {
  font-family: var(--serif);
  font-size: clamp(30px, 5vw, 44px);
  line-height: 1.12;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 14px;
}
.fn__sub {
  font-size: 16px;
  color: var(--ink-soft);
  margin-bottom: 32px;
  max-width: 620px;
}

.fn__opts {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.fn__opt {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  width: 100%;
  text-align: left;
  padding: 20px 22px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  font-family: inherit;
  font-size: 16px;
  color: var(--ink);
  transition: all 0.22s ease;
  box-shadow: var(--shadow-sm);
}
.fn__opt:hover {
  border-color: var(--gold);
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
}
.fn__opt:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.fn__opt.is-picked {
  border-color: var(--gold);
  background: linear-gradient(135deg, #fffbf0 0%, var(--bg-alt) 100%);
}
.fn__opt-ico {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  font-size: 18px;
  transition: all 0.22s;
}
.fn__opt.is-picked .fn__opt-ico {
  background: var(--gold);
  border-color: var(--gold);
}
.fn__opt-text { display: block; font-weight: 500; line-height: 1.45; }
.fn__opt-note {
  display: block;
  font-size: 13px;
  color: var(--ink-light);
  margin-top: 4px;
  font-weight: 400;
}

/* ---------- форма ---------- */
.fn__form {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: var(--shadow-sm);
}
.fn__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.fn__field label {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
}
.fn__field input {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 16px;
  font-family: inherit;
  background: var(--bg-alt);
  color: var(--ink);
  transition: border-color 0.2s;
}
.fn__field input:focus {
  outline: none;
  border-color: var(--gold);
}
.fn__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fn__check {
  flex-direction: row !important;
  align-items: flex-start;
  gap: 10px !important;
  font-size: 13px !important;
  color: var(--ink-light) !important;
  line-height: 1.5;
}
.fn__check input {
  width: auto;
  margin-top: 3px;
  flex-shrink: 0;
}
.fn__hint {
  font-size: 13px;
  color: var(--ink-light);
  line-height: 1.55;
}
.fn__err {
  font-size: 14px;
  color: #a12d3f;
  min-height: 0;
}
.fn__err:empty { display: none; }
.fn__nav {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.fn__back {
  background: none;
  border: none;
  font-family: inherit;
  font-size: 14px;
  color: var(--ink-light);
  cursor: pointer;
  padding: 8px 4px;
}
.fn__back:hover { color: var(--wine); }
.fn__nav .btn { flex: 1; min-width: 200px; }

/* ---------- результат ---------- */
.fn__result-head {
  text-align: center;
  margin-bottom: 32px;
}
.fn__result-title {
  font-family: var(--serif);
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.12;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 16px;
}
.fn__result-title em { color: var(--wine); font-style: italic; }
.fn__why {
  background: var(--bg);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 24px 26px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin-bottom: 28px;
}
.fn__why b { color: var(--wine); font-weight: 600; }

.fn__product {
  background: var(--bg);
  border: 2px solid var(--gold);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-md);
  margin-bottom: 24px;
}
.fn__product-tag {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-light);
  margin-bottom: 10px;
}
.fn__product-title {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 12px;
}
.fn__product-desc {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin-bottom: 18px;
}
.fn__product-list {
  list-style: none;
  margin-bottom: 20px;
}
.fn__product-list li {
  font-size: 14px;
  color: var(--ink-soft);
  padding: 7px 0 7px 24px;
  position: relative;
  border-top: 1px solid var(--line);
}
.fn__product-list li:first-child { border-top: none; }
.fn__product-list li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: 11px;
  top: 9px;
}
.fn__price {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 20px;
}
.fn__price-num {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 600;
  color: var(--wine);
  line-height: 1;
}
.fn__price-old {
  font-size: 16px;
  color: var(--ink-light);
  text-decoration: line-through;
}
.fn__price-meta { font-size: 13px; color: var(--ink-light); }
.fn__actions { display: flex; flex-direction: column; gap: 12px; }
.fn__actions .btn { width: 100%; }
.fn__actions-note {
  font-size: 13px;
  color: var(--ink-light);
  text-align: center;
  margin-top: 4px;
}

.fn__premium {
  background: linear-gradient(135deg, var(--wine-dark) 0%, var(--wine) 100%);
  color: var(--bg);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 24px;
}
.fn__premium-tag {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.fn__premium-title {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 12px;
  line-height: 1.2;
}
.fn__premium-list {
  list-style: none;
  margin-bottom: 20px;
}
.fn__premium-list li {
  font-size: 14px;
  color: var(--gold-light);
  padding: 6px 0 6px 24px;
  position: relative;
}
.fn__premium-list li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: 11px;
  top: 8px;
}
.fn__premium-price {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 18px 0;
  border-top: 1px solid rgba(201, 168, 106, 0.3);
  border-bottom: 1px solid rgba(201, 168, 106, 0.3);
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.fn__premium-price-num {
  font-family: var(--serif);
  font-size: 40px;
  font-weight: 600;
  color: var(--gold);
  line-height: 1;
}
.fn__premium-price-meta {
  font-size: 13px;
  color: var(--gold-light);
  margin-left: auto;
}
.fn__premium .btn--gold {
  box-shadow: none;
}

.fn__second {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 26px;
  margin-bottom: 24px;
}
.fn__second-tag {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-light);
  margin-bottom: 8px;
}
.fn__second-title {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}
.fn__second-desc { font-size: 14px; color: var(--ink-soft); line-height: 1.6; }

.fn__foot {
  text-align: center;
  font-size: 14px;
  color: var(--ink-light);
  margin-top: 8px;
}
.fn__foot a { color: var(--wine); border-bottom: 1px solid var(--gold); }
.fn__foot a:hover { color: var(--gold); }
.fn__reset {
  background: none;
  border: none;
  font-family: inherit;
  font-size: 13px;
  color: var(--ink-light);
  text-decoration: underline;
  cursor: pointer;
  margin-top: 14px;
}

/* ---------- спасибо ---------- */
.fn__thanks {
  text-align: center;
  padding: 20px 0;
}
.fn__thanks-mark {
  font-size: 48px;
  color: var(--gold);
  margin-bottom: 16px;
}
.fn__thanks-title {
  font-family: var(--serif);
  font-size: clamp(30px, 5vw, 44px);
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 14px;
}
.fn__thanks-text {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 560px;
  margin: 0 auto 28px;
}
.fn__thanks-box {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  text-align: left;
  margin-bottom: 24px;
}
.fn__thanks-box h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
}
.fn__thanks-box p { font-size: 14px; color: var(--ink-soft); line-height: 1.6; margin-bottom: 16px; }

/* ---------- отзыв клиентки в финале ---------- */
.fn__review { margin-top: 32px; }
.fn__review-eyebrow {
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.fn__review-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 20px;
  align-items: stretch;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.fn__review-video {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  background: #000;
  display: block;
}
.fn__review-body { padding: 20px 20px 22px; display: flex; flex-direction: column; gap: 10px; }
.fn__review-quote {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.45;
  color: var(--ink);
  margin: 0;
}
.fn__review-who { font-size: 13px; color: var(--ink-light); margin: 0; }
.fn__review-body .btn { margin-top: auto; }

/* ---------- номер заявки ---------- */
.fn__next {
  margin-top: 22px;
  padding: 22px 20px;
  background: var(--bg-soft, #f7f4f0);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.fn__next-tag {
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-light);
  margin-bottom: 8px;
}
.fn__next-text {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin-bottom: 16px;
}
.fn__next .btn { margin-top: 10px; }

.fn__lead-id {
  display: inline-block;
  font-size: 13px;
  letter-spacing: .04em;
  color: var(--ink-light);
  background: var(--bg-soft, #f7f4f0);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
  margin: 0 0 20px;
}

/* ---------- мобильная ---------- */
@media (max-width: 640px) {
  .fn__review-card { grid-template-columns: 1fr; }
  .fn__review-video { min-height: 0; aspect-ratio: 9/16; max-height: 420px; }
  .fn__review-body { padding: 18px 16px 20px; }
  .fn__review-quote { font-size: 17px; }
  .fn__main { padding: 28px 0 60px; }
  .fn__head { padding: 18px 0; }
  .fn__card { max-width: 100%; }
  .fn__title { font-size: 28px; }
  .fn__sub { font-size: 15px; margin-bottom: 24px; }
  .fn__opt { padding: 16px 16px; gap: 12px; font-size: 15px; }
  .fn__opt:hover { transform: none; }
  .fn__opt-ico { width: 32px; height: 32px; font-size: 16px; }
  .fn__row { grid-template-columns: 1fr; }
  .fn__form { padding: 20px 16px; }
  .fn__product, .fn__premium { padding: 22px 18px; }
  .fn__product-title { font-size: 24px; }
  .fn__price-num { font-size: 30px; }
  .fn__nav .btn { min-width: 100%; }
  .fn__premium-price-num { font-size: 32px; }
}
