/* Главная как ufaned: обложка → предложения → навигатор */
@import url("https://fonts.googleapis.com/css2?family=Onest:wght@500;600;700;800&display=swap");

.ned-home {
  --nh-brand: #2563eb;
  --nh-brand-mid: #3b82f6;
  --nh-brand-soft: #dbeafe;
  --nh-brand-muted: #bfdbfe;
  --nh-accent: #f59e0b;
  --nh-accent-soft: #fbbf24;
  --nh-text: #0f172a;
  --nh-text-2: #475569;
  --nh-surface: #fff;
  --nh-surface-2: #f8fafc;
  --nh-surface-3: #f1f5f9;
  --nh-promo-bg: #0f172a;
  --nh-btn: linear-gradient(180deg, #3b82f6 0%, #1d4ed8 100%);
  --nh-btn-shadow: #1e40af;
  --nh-shadow: 0 10px 28px rgba(15, 23, 42, .12);
  --nh-shadow-lg: 0 24px 48px rgba(15, 23, 42, .18);
  font-family: Onest, "Golos Text", system-ui, sans-serif;
  color: var(--nh-text);
  background: var(--nh-surface-3);
  padding: 16px 0 8px;
}
.ned-home .wrap-nh {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* —— Cover —— */
.nh-cover { margin: 0 0 20px; }
.nh-cover__grid {
  display: grid;
  grid-template-columns: minmax(260px, .42fr) minmax(0, 1.58fr);
  gap: 20px;
  align-items: stretch;
}
.nh-cover__stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  min-height: 100%;
}
.nh-cover__right { min-width: 0; display: flex; flex-direction: column; }

.nh-promo {
  position: relative;
  isolation: isolate;
  color: #f8fafc;
  border-radius: 24px;
  padding: 18px 16px 16px;
  overflow: hidden;
  flex: 1 1 auto;
  border: 1px solid rgba(255,255,255,.08);
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(245,158,11,.22) 0%, transparent 55%),
    radial-gradient(80% 60% at 0% 100%, rgba(59,130,246,.18) 0%, transparent 50%),
    var(--nh-promo-bg);
  box-shadow: 0 1px 0 rgba(255,255,255,.06) inset, 0 24px 48px rgba(15,23,42,.35);
}
.nh-promo::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto auto;
  width: 180px; height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(251,191,36,.35) 0%, transparent 70%);
  pointer-events: none;
}
.nh-promo__inner { position: relative; z-index: 1; }
.nh-promo__head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.nh-promo__badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 52px; padding: 6px 10px; border-radius: 12px;
  background: linear-gradient(135deg, #fbbf24 0%, var(--nh-accent) 100%);
  color: var(--nh-text); font-size: 15px; font-weight: 900; letter-spacing: -.02em;
  box-shadow: 0 4px 14px rgba(245,158,11,.45);
}
.nh-promo__kicker {
  margin: 0; font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .12em; color: rgba(248,250,252,.72);
}
.nh-promo__title {
  margin: 0 0 8px; font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  font-weight: 800; line-height: 1.15; letter-spacing: -.03em; color: #fff;
}
.nh-promo__sub {
  margin: 0 0 12px; font-size: 11px; line-height: 1.5; color: rgba(226,232,240,.88); max-width: 28em;
}
.nh-timer__label {
  display: block; font-size: 9px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .14em; margin-bottom: 8px; color: rgba(248,250,252,.55);
}
.nh-timer__digits {
  display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 6px;
}
.nh-timer__unit {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  border-radius: 11px; padding: 6px 3px 7px; text-align: center;
}
.nh-timer__val {
  display: block; font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums;
  line-height: 1; color: #fff;
}
.nh-timer__cap {
  display: block; font-size: 8px; margin-top: 5px;
  color: rgba(248,250,252,.5); text-transform: lowercase;
}
.nh-promo__btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 100%; margin-top: 14px; padding: 14px 18px 13px; border-radius: 14px;
  background: var(--nh-btn); color: #fff !important; font: inherit; font-weight: 800; font-size: 13px;
  text-decoration: none !important; border: 1px solid var(--nh-brand);
  border-bottom: 4px solid var(--nh-btn-shadow); cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 5px 0 var(--nh-btn-shadow), 0 10px 22px rgba(29,78,216,.55);
  transition: transform .12s ease, box-shadow .12s ease;
}
.nh-promo__btn:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 7px 0 #1e3a8a, 0 14px 28px rgba(29,78,216,.6);
}

.nh-ipo {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: 16px; margin-top: auto;
  background: linear-gradient(135deg, var(--nh-brand-soft) 0%, var(--nh-surface) 55%);
  border: 1px solid var(--nh-brand-muted); box-shadow: 0 4px 14px rgba(37,99,235,.08);
}
.nh-ipo__rate {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 56px; padding: 6px 8px; border-radius: 12px;
  background: var(--nh-surface); border: 1px solid var(--nh-brand-muted);
}
.nh-ipo__val { font-size: 18px; font-weight: 800; line-height: 1; letter-spacing: -.03em; color: var(--nh-brand); }
.nh-ipo__cap { margin-top: 3px; font-size: 9px; font-weight: 700; color: var(--nh-text-2); text-align: center; line-height: 1.2; }
.nh-ipo__title { margin: 0; font-size: 14px; font-weight: 800; color: var(--nh-text); }
.nh-ipo__desc { margin: 2px 0 0; font-size: 11px; line-height: 1.35; color: var(--nh-text-2); }
.nh-ipo__btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 9px 14px; border-radius: 12px; border: none; cursor: pointer;
  background: var(--nh-brand); color: #fff; font: inherit; font-size: 12px; font-weight: 800;
  text-decoration: none; white-space: nowrap;
}
.nh-ipo__btn:hover { background: #1d4ed8; }

/* USP slider */
.nh-usp {
  position: relative; border-radius: 24px; overflow: hidden; min-height: 0;
  flex: 1 1 auto; display: flex; flex-direction: column; background: var(--nh-text);
  box-shadow: 0 1px 0 rgba(255,255,255,.04) inset, var(--nh-shadow-lg);
}
.nh-usp__viewport {
  flex: 1; position: relative; width: 100%; aspect-ratio: 16/9; min-height: 0;
}
.nh-usp__slide {
  position: absolute; inset: 0; margin: 0; opacity: 0; transform: scale(1.03);
  transition: opacity .65s cubic-bezier(.4,0,.2,1), transform .65s cubic-bezier(.4,0,.2,1);
  pointer-events: none;
}
.nh-usp__slide.is-active { opacity: 1; transform: scale(1); pointer-events: auto; }
.nh-usp__hero { position: absolute; inset: 0; overflow: hidden; }
.nh-usp__picture, .nh-usp__img {
  position: absolute; inset: 0; width: 100%; height: 100%; display: block;
}
.nh-usp__img { object-fit: cover; object-position: center; transform: scale(1.02); transition: transform 8s ease-out; }
.nh-usp__slide.is-active .nh-usp__img { transform: scale(1.08); }
.nh-usp__shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(105deg, rgba(15,23,42,.92) 0%, rgba(15,23,42,.45) 42%, transparent 68%),
    linear-gradient(0deg, rgba(15,23,42,.85) 0%, transparent 55%);
}
.nh-usp__copy {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 28px 24px 72px; max-width: 92%; box-sizing: border-box;
}
.nh-usp__eyebrow {
  margin: 0 0 10px; display: inline-flex; padding: 5px 12px; border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--nh-accent-soft); background: rgba(245,158,11,.2); border: 1px solid rgba(251,191,36,.35);
}
.nh-usp__title {
  margin: 0 0 10px; font-size: clamp(1.35rem, 3vw, 2rem); font-weight: 800;
  line-height: 1.12; letter-spacing: -.03em; color: #fff;
  text-shadow: 0 2px 24px rgba(0,0,0,.35);
}
.nh-usp__lead {
  margin: 0 0 18px; font-size: clamp(13px, 1.6vw, 15px); line-height: 1.45;
  color: rgba(241,245,249,.9); max-width: 36em;
}
.nh-usp__btn {
  display: inline-flex; align-items: center; padding: 13px 24px 12px; border-radius: 14px;
  background: #fff; color: var(--nh-text) !important; font: inherit; font-weight: 800; font-size: 14px;
  text-decoration: none !important; border: 1px solid #e2e8f0; border-bottom: 4px solid #94a3b8;
  cursor: pointer; box-shadow: inset 0 1px 0 #fff, 0 5px 0 #94a3b8, 0 12px 28px rgba(15,23,42,.35);
  transition: transform .12s ease;
}
.nh-usp__btn:hover { transform: translateY(-2px); }
.nh-usp__nav {
  position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 5;
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 999px;
  background: rgba(15,23,42,.55); border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(12px) saturate(140%);
}
.nh-usp__arrow {
  width: 34px; height: 34px; border-radius: 999px; border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.08); font-size: 18px; line-height: 1; cursor: pointer; color: #fff;
}
.nh-usp__arrow:hover { background: rgba(255,255,255,.18); }
.nh-usp__dots { display: flex; gap: 6px; align-items: center; }
.nh-usp__dot {
  width: 7px; height: 7px; border-radius: 999px; border: none; padding: 0;
  background: rgba(255,255,255,.35); cursor: pointer; transition: width .25s ease, background .25s ease;
}
.nh-usp__dot.is-active { background: var(--nh-accent); width: 24px; }

@media (max-width: 900px) {
  .nh-cover__grid { grid-template-columns: 1fr; gap: 14px; }
}
@media (max-width: 767px) {
  .nh-usp__viewport { aspect-ratio: 3/4; }
  .nh-usp__copy { padding: 20px 16px 64px; max-width: 100%; }
  .nh-usp__title { font-size: 1.2rem; }
}

/* —— Offers (как ufaned) —— */
.nh-offers { margin: 12px 0 24px; position: relative; }
.nh-offers__head { margin: 0 0 14px; }
.nh-offers__title { margin: 0 0 4px; font-size: 20px; font-weight: 800; color: var(--nh-text); }
.nh-offers__sub { margin: 0; font-size: 13px; line-height: 1.45; color: var(--nh-text-2); }
.nh-offers__grid {
  display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px;
}
.nh-offer {
  position: relative; display: flex; flex-direction: column; gap: 10px;
  border-radius: 22px; padding: 12px; overflow: hidden;
  border: 1px solid #e2e8f0;
  box-shadow: 0 12px 26px rgba(17,29,59,.10);
  transition: transform .28s ease, box-shadow .28s ease;
}
.nh-offer:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(17,29,59,.16); }
.nh-offer[data-tone="a"] { background: linear-gradient(135deg, rgba(255,107,107,.18) 0%, rgba(135,206,235,.28) 100%); }
.nh-offer[data-tone="b"] { background: linear-gradient(135deg, rgba(78,205,196,.18) 0%, rgba(135,206,235,.24) 100%); }
.nh-offer[data-tone="c"] { background: linear-gradient(135deg, rgba(255,217,61,.18) 0%, rgba(135,206,235,.22) 100%); }
.nh-offer__photo {
  position: relative; z-index: 1; width: 100%; height: 168px;
  border-radius: 18px; overflow: hidden; cursor: pointer; perspective: 1200px; outline: none;
  background: #cbd5e1;
}
.nh-offer__photo-wrap {
  width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .65s ease;
}
.nh-offer__photo img {
  width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 18px;
  filter: brightness(1.05) contrast(1.08);
}
.nh-offer:hover .nh-offer__photo-wrap { transform: rotateY(12deg) rotateX(4deg) scale(1.03); }
.nh-offer__photo:focus-visible { box-shadow: 0 0 0 3px rgba(37,99,235,.35); }
.nh-offer__body {
  position: relative; z-index: 1; margin-top: 0; display: flex; flex-direction: column; flex: 1;
  padding: 12px; border-radius: 16px;
  background: linear-gradient(135deg, rgba(255,255,255,.92) 0%, rgba(248,250,252,.82) 100%);
  border: 1px solid rgba(255,255,255,.85);
}
.nh-offer__ttl { margin: 0 0 6px; font-size: 14px; font-weight: 800; color: var(--nh-text); line-height: 1.25; }
.nh-offer__price { margin: 0 0 8px; font-size: 18px; font-weight: 900; color: var(--nh-brand); }
.nh-offer__desc { margin: 0 0 10px; font-size: 12px; line-height: 1.4; color: var(--nh-text-2); flex: 1; }
.nh-offer__btn {
  display: inline-flex; align-items: center; justify-content: center; width: 100%;
  padding: 11px 12px 10px; border-radius: 12px; font: inherit; font-size: 12px; font-weight: 800;
  color: #fff !important; text-decoration: none !important; cursor: pointer;
  background: var(--nh-btn); border: 1px solid var(--nh-brand); border-bottom: 3px solid var(--nh-btn-shadow);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 4px 0 var(--nh-btn-shadow), 0 8px 16px rgba(17,29,59,.22);
}
.nh-offer__btn:hover { filter: brightness(1.05); }
@media (max-width: 980px) { .nh-offers__grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 640px) { .nh-offers__grid { grid-template-columns: 1fr; } }

/* —— Navigator —— */
.nh-navcalc { margin: 8px 0 28px; }
.nh-navcalc__head { margin: 0 0 14px; }
.nh-navcalc__title { margin: 0 0 6px; font-size: 20px; font-weight: 800; color: var(--nh-text); }
.nh-navcalc__sub { margin: 0; font-size: 13px; line-height: 1.45; color: var(--nh-text-2); max-width: 60ch; }
.nh-navcalc__card {
  background: var(--nh-surface); border-radius: 22px; border: 1px solid #e2e8f0;
  box-shadow: var(--nh-shadow); overflow: hidden;
}
.nh-navcalc__header {
  padding: 16px 18px; background: linear-gradient(135deg, var(--nh-brand-soft), #fff);
  border-bottom: 1px solid #e2e8f0;
}
.nh-navcalc__header strong { font-size: 15px; color: var(--nh-text); }
.nh-navcalc__header span { font-size: 12px; color: var(--nh-text-2); }
.nh-navcalc__body { padding: 18px; }
.nh-navcalc__filters {
  display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; align-items: end;
}
.nh-navcalc__field label {
  display: block; margin-bottom: 6px; font-size: 12px; font-weight: 700; color: var(--nh-text-2);
}
.nh-navcalc__field input[type="number"] {
  width: 100%; box-sizing: border-box; padding: 11px 12px; border-radius: 12px;
  border: 1px solid #cbd5e1; font: inherit; font-size: 15px; color: var(--nh-text); background: #fff;
}
.nh-navcalc__field input:focus {
  outline: 2px solid var(--nh-brand-mid); border-color: transparent;
}
.nh-navcalc__field--check label {
  display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600;
  color: var(--nh-text); cursor: pointer; padding: 10px 0;
}
.nh-navcalc__field--check input { width: 18px; height: 18px; accent-color: var(--nh-brand); }
.nh-navcalc__actions { display: flex; align-items: end; }
.nh-navcalc__btn {
  display: inline-flex; align-items: center; justify-content: center; width: 100%;
  padding: 12px 16px; border-radius: 12px; border: none; cursor: pointer;
  font: inherit; font-size: 14px; font-weight: 800; color: #fff;
  background: var(--nh-btn); box-shadow: 0 4px 14px rgba(37,99,235,.35);
}
.nh-navcalc__btn:hover { filter: brightness(1.05); }
.nh-navcalc__results {
  margin-top: 16px; min-height: 72px; padding: 14px; border-radius: 14px;
  background: var(--nh-surface-2); border: 1px dashed #cbd5e1;
}
.nh-navcalc__welcome { font-size: 13px; line-height: 1.5; color: var(--nh-text-2); }
.nh-navcalc__hit {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 0; border-bottom: 1px solid #e2e8f0;
}
.nh-navcalc__hit:last-child { border-bottom: 0; padding-bottom: 0; }
.nh-navcalc__hit-name { font-size: 14px; font-weight: 800; color: var(--nh-text); }
.nh-navcalc__hit-meta { font-size: 12px; color: var(--nh-text-2); margin-top: 2px; }
.nh-navcalc__hit-price { font-size: 14px; font-weight: 800; color: var(--nh-brand); }
.nh-navcalc__hit a {
  font-size: 12px; font-weight: 700; color: var(--nh-brand); text-decoration: none;
}
.nh-navcalc__lead {
  margin-top: 16px; padding-top: 16px; border-top: 1px solid #e2e8f0;
}
.nh-navcalc__lead-text { font-size: 13px; color: var(--nh-text-2); margin-bottom: 10px; }
.nh-navcalc__lead-row {
  display: grid; grid-template-columns: 1fr auto; gap: 10px;
}
.nh-navcalc__lead-row input[type="tel"] {
  width: 100%; box-sizing: border-box; padding: 12px 14px; border-radius: 12px;
  border: 1px solid #cbd5e1; font: inherit; font-size: 15px;
}
.nh-navcalc__status { margin-top: 8px; font-size: 12px; color: var(--nh-text-2); }
.nh-navcalc__status.is-ok { color: #15803d; }
.nh-navcalc__status.is-err { color: #b91c1c; }

@media (max-width: 980px) {
  .nh-navcalc__filters { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 560px) {
  .nh-navcalc__filters { grid-template-columns: 1fr; }
  .nh-navcalc__lead-row { grid-template-columns: 1fr; }
  .nh-ipo { grid-template-columns: auto 1fr; }
  .nh-ipo__btn { grid-column: 1 / -1; }
}

/* Quiz modal */
.nh-quiz-overlay {
  position: fixed; inset: 0; z-index: 2147483000; background: rgba(15,23,42,.48);
  display: flex; align-items: center; justify-content: center; padding: 16px; box-sizing: border-box;
}
.nh-quiz-overlay[hidden] { display: none !important; }
.nh-quiz-modal {
  position: relative; width: min(420px, 100%); max-height: min(88vh, 640px); overflow: auto;
  background: #fafaf9; border-radius: 20px; border: 1px solid #e7e5e4;
  box-shadow: 0 24px 60px rgba(28,25,23,.2); padding: 18px;
}
.nh-quiz-close {
  position: absolute; top: 10px; right: 12px; border: none; background: transparent;
  font-size: 22px; line-height: 1; cursor: pointer; color: #57534e; padding: 4px;
}
.nh-quiz-hd { margin: 0 32px 12px 0; font-size: 17px; font-weight: 800; color: #1c1917; }
.nh-quiz-q { margin: 0 0 10px; font-size: 14px; font-weight: 700; color: #334155; }
.nh-quiz-lead { margin: 0 0 12px; font-size: 13px; line-height: 1.45; color: #475569; }
.nh-quiz-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.nh-quiz-opt {
  border: 1px solid #d6d3d1; background: #fff; border-radius: 12px;
  padding: 10px 14px; font-size: 13px; font-weight: 700; cursor: pointer; color: #292524;
}
.nh-quiz-opt:hover { border-color: #57534e; }
.nh-quiz-step { display: none; flex-direction: column; gap: 8px; }
.nh-quiz-step.is-active { display: flex; }
.nh-quiz-phone {
  width: 100%; box-sizing: border-box; border: 1px solid #d6d3d1; border-radius: 10px;
  padding: 10px 12px; font-size: 15px;
}
.nh-quiz-cta {
  display: inline-flex; align-items: center; justify-content: center; margin-top: 8px;
  padding: 11px 18px; border-radius: 10px; background: var(--nh-brand-mid); color: #fff !important;
  font-weight: 800; font-size: 14px; text-decoration: none !important; border: none; cursor: pointer;
  font-family: inherit; width: 100%; box-sizing: border-box;
}
.nh-quiz-status { margin-top: 8px; font-size: 12px; color: #475569; }
.nh-quiz-status.is-ok { color: #15803d; }
.nh-quiz-status.is-err { color: #b91c1c; }
