:root {
  --bg: #FFF3E3;
  --bg-card: #FFFFFF;
  --bg-soft: #F9E6CE;
  --ink: #181715;
  --ink-muted: #5F5850;
  --accent: #FF5520;
  --accent-hover: #E64512;
  --dark: #181715;
  --dark-card: #24221F;
  --green: #16A34A;
  --red: #DC2626;
  --radius: 24px;
  --radius-sm: 14px;
  --shadow: 0 12px 32px rgba(24, 23, 21, 0.06);
  --font-head: 'Unbounded', sans-serif;
  --font-body: 'Manrope', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
body.modal-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input { font-family: inherit; }

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

/* Шапка */
.top {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 243, 227, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(24, 23, 21, 0.06);
}
.top-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 16px;
}
.logo {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.02em;
}
.logo b { color: var(--accent); }
.nav { display: flex; gap: 24px; font-weight: 600; font-size: 15px; }
.nav a { color: var(--ink-muted); transition: color .2s; }
.nav a:hover { color: var(--ink); }
.top-b {
  background: var(--ink);
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 99px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: transform .15s, background .2s;
}
.top-b:hover { background: var(--accent); }

/* Кнопки */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 18px 32px;
  border-radius: 18px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(255, 85, 32, 0.28);
  transition: transform .15s, background .2s, box-shadow .2s;
}
.btn:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(255, 85, 32, 0.35);
}
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* Секции и типографика */
section { padding: 56px 0; }
h1, h2, h3 { font-family: var(--font-head); margin: 0 0 16px; line-height: 1.15; letter-spacing: -0.02em; }
h2 { font-size: clamp(26px, 4vw, 38px); }
.lead { font-size: 18px; color: var(--ink-muted); max-width: 640px; margin: 0 0 32px; }

/* Первый экран */
.hero { padding: 40px 0 56px; }
.hero-g {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 28px 32px;
  align-items: center;
}
.hero h1 { font-size: clamp(32px, 5vw, 54px); margin-bottom: 18px; }
.hero h1 mark {
  background: var(--accent);
  color: #fff;
  padding: 2px 14px 5px;
  border-radius: 16px;
  display: inline-block;
}
.sub { font-size: 19px; color: var(--ink-muted); margin: 0; max-width: 540px; }

.vid {
  width: 100%;
  background: var(--bg-card);
  border: 2px solid rgba(24, 23, 21, 0.08);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform .2s, border-color .2s;
}
.vid:hover { transform: translateY(-2px); border-color: var(--accent); }
.vid-play {
  width: 52px; height: 52px; flex-shrink: 0;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: grid; place-items: center;
}
.vid-text { display: flex; flex-direction: column; gap: 4px; }
.vid-t { font-weight: 800; font-size: 15px; line-height: 1.25; }
.vid-t em { font-style: normal; color: var(--accent); }
.vid-d { font-size: 13px; color: var(--ink-muted); }
.vid-time {
  margin-left: auto;
  background: var(--bg-soft);
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
}

.hero-c { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.hero-n { margin: 0; font-size: 14px; color: var(--ink-muted); max-width: 240px; }
.hero-n b { color: var(--ink); }

.path {
  grid-column: 1 / -1;
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  counter-reset: step;
}
.path li {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(24, 23, 21, 0.06);
  padding: 16px 20px;
  border-radius: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 12px;
  counter-increment: step;
}
.path li::before {
  content: counter(step);
  width: 28px; height: 28px; flex-shrink: 0;
  border-radius: 50%;
  background: var(--bg-soft);
  color: var(--ink);
  font-family: var(--font-head);
  font-size: 13px;
  display: grid; place-items: center;
}

/* Калькулятор */
.cal {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 24px;
  align-items: stretch;
}
.banks { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.bk {
  background: var(--bg-card);
  border: 2px solid transparent;
  border-radius: 20px;
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: all .2s;
}
.bk[aria-checked="true"] { border-color: var(--ink); }
.bk[aria-checked="false"] { opacity: 0.55; background: rgba(255,255,255,0.6); }
.bk-ic {
  width: 44px; height: 44px; flex-shrink: 0;
  border-radius: 12px;
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 13px;
  display: grid; place-items: center;
}
.bk-n { display: flex; flex-direction: column; font-weight: 800; font-size: 15px; }
.bk-n small { font-weight: 500; font-size: 12px; color: var(--ink-muted); }
.bk-s { margin-left: auto; font-weight: 800; font-size: 15px; text-align: right; white-space: nowrap; }
.bk-s small { font-weight: 500; font-size: 12px; color: var(--ink-muted); }
.tg {
  width: 42px; height: 24px; flex-shrink: 0;
  border-radius: 99px;
  background: #D6CFC7;
  position: relative;
  transition: background .2s;
}
.tg::after {
  content: "";
  position: absolute;
  top: 3px; left: 3px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: transform .2s;
}
.bk[aria-checked="true"] .tg { background: var(--green); }
.bk[aria-checked="true"] .tg::after { transform: translateX(18px); }

.cal-s {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  box-shadow: var(--shadow);
}
.sum span {
  display: block;
  color: var(--ink-muted);
  font-weight: 700;
  font-size: 19px;
}
.sum b {
  display: flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 8px;
  font-family: var(--font-head);
  font-size: clamp(36px, 4.2vw, 48px);
  line-height: 1.1;
  margin: 12px 0 24px;
  white-space: nowrap;
}
.sum b small {
  font-size: clamp(22px, 2.5vw, 28px);
  font-weight: 700;
}
.cal-s .btn {
  font-size: 18px;
  padding: 20px 28px;
}
.tiny {
  margin: 16px 0 0;
  font-size: 15px;
  line-height: 1.4;
  color: var(--ink-muted);
}
/* Шаги */
.how-g { display: grid; grid-template-columns: 1.35fr 0.65fr; gap: 32px; align-items: start; }
.steps {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  counter-reset: s;
}
.steps li {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  counter-increment: s;
}
.steps li::before {
  content: "0" counter(s);
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 10px;
}
.steps h3 { font-size: 18px; margin-bottom: 8px; }
.steps p { margin: 0 0 16px; font-size: 14px; color: var(--ink-muted); }
.st-t {
  margin-top: auto;
  align-self: flex-start;
  background: var(--bg-soft);
  padding: 5px 12px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 700;
}

.need {
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 28px;
}
.need h3 { font-size: 20px; margin-bottom: 18px; }
.need ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.need li b { display: block; font-size: 15px; margin-bottom: 2px; }
.need li span { font-size: 14px; color: var(--ink-muted); }
.need-n {
  margin: 20px 0 0;
  padding-top: 16px;
  border-top: 1px solid rgba(24, 23, 21, 0.1);
  font-weight: 700;
  font-size: 14px;
}

/* Почему платим и 0 ₽ */
.duo { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 32px; }
#why, #free {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}
.big { font-size: 17px; color: var(--ink-muted); margin: 0 0 22px; }
.chain {
  list-style: none; margin: 0 0 18px; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
}
.chain li {
  background: var(--bg);
  padding: 14px;
  border-radius: 16px;
  font-size: 13px;
}
.chain li b { display: block; font-family: var(--font-head); font-size: 14px; margin-bottom: 4px; }
.note { margin: 0; font-size: 14px; color: var(--ink-muted); }

.zero { display: flex; flex-direction: column; gap: 12px; }
.z {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(24, 23, 21, 0.08);
}
.z span { font-weight: 700; font-size: 15px; }
.z small { display: block; font-weight: 500; font-size: 13px; color: var(--ink-muted); }
.z b { font-family: var(--font-head); font-size: 18px; }
.z-t { border-bottom: none; padding-bottom: 0; }
.z-get {
  background: var(--bg);
  padding: 16px 18px;
  border-radius: 16px;
  display: flex; justify-content: space-between; align-items: center;
  font-weight: 800;
}
.z-get b { font-family: var(--font-head); color: var(--accent); font-size: 20px; }

/* Тёмный блок безопасности */
.dark {
  background: var(--dark);
  color: #fff;
  border-radius: 32px;
  max-width: 1160px;
  margin: 0 auto;
}
.safe-g { padding: 48px 32px; }
.dark .lead { color: #B5AFA8; }
.safe {
  list-style: none; margin: 0 0 24px; padding: 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px;
}
.safe li {
  background: var(--dark-card);
  padding: 18px 20px;
  border-radius: 18px;
  display: flex; align-items: center; gap: 14px;
  font-weight: 700;
}
.ic { width: 22px; height: 22px; stroke: currentColor; stroke-width: 2.5; fill: none; flex-shrink: 0; }
.safe .ic { color: #EF4444; }
.warn {
  background: rgba(239, 68, 68, 0.14);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 16px;
  padding: 16px 20px;
  color: #FCA5A5;
  font-size: 14px;
}
.warn p { margin: 0; }

/* Вопросы FAQ */
.faq-g { display: grid; grid-template-columns: 0.75fr 1.25fr; gap: 32px; align-items: start; }
.faq { display: flex; flex-direction: column; gap: 10px; }
.q {
  background: var(--bg-card);
  border-radius: 18px;
  padding: 18px 22px;
  box-shadow: var(--shadow);
}
.q summary {
  font-weight: 800;
  font-size: 16px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.q summary::-webkit-details-marker { display: none; }
.q summary::after {
  content: "+";
  font-family: var(--font-head);
  font-size: 20px;
  color: var(--accent);
  transition: transform .2s;
}
.q[open] summary::after { transform: rotate(45deg); }
.q p { margin: 12px 0 0; font-size: 15px; color: var(--ink-muted); }

/* Форма заявки и CTA */
.cta-g {
  background: var(--bg-card);
  border-radius: 32px;
  padding: 44px;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 36px;
  box-shadow: var(--shadow);
}
.chk { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.chk li { display: flex; align-items: center; gap: 12px; font-weight: 700; }
.chk .ic { color: var(--green); }

.fin h3 { font-size: 24px; margin-bottom: 8px; }
.fin .lead { font-size: 15px; margin-bottom: 20px; }

form { display: flex; flex-direction: column; gap: 16px; }
.f-rest { display: flex; flex-direction: column; gap: 16px; }
.f-l { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: 14px; }
.f-in {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #E5DDD3;
  border-radius: var(--radius-sm);
  font-size: 16px;
  background: #FAF6F0;
  transition: border-color .2s, background .2s;
}
.f-in:focus { outline: none; border-color: var(--accent); background: #fff; }
.f-in.err { border-color: var(--red); }

.f-seg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  background: #FAF6F0;
  padding: 5px;
  border-radius: var(--radius-sm);
  border: 1px solid #E5DDD3;
}
.f-seg.s3 { grid-template-columns: repeat(3, 1fr); }
.f-seg button {
  border: none;
  background: transparent;
  padding: 10px 8px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  color: var(--ink-muted);
  transition: all .15s;
}
.f-seg button.on {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.f-hint { font-weight: 500; font-size: 12px; color: var(--ink-muted); }
.f-err { font-weight: 600; font-size: 13px; color: var(--red); min-height: 0; }
.f-hp { position: absolute; left: -9999px; opacity: 0; }
.f-chk { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--ink-muted); cursor: pointer; }
.f-chk input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--accent); }
.f-chk a { text-decoration: underline; }
.f-btn { width: 100%; }
.f-sub { margin: 0; text-align: center; font-size: 13px; color: var(--ink-muted); }

/* Подвал */
.foot { padding: 48px 20px 90px; font-size: 13px; color: var(--ink-muted); }
.foot-top {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 24px; margin-bottom: 24px;
  border-bottom: 1px solid rgba(24, 23, 21, 0.1);
}
.foot-nav { display: flex; gap: 20px; font-weight: 600; }
.foot p { margin: 0 0 10px; }
.foot a { text-decoration: underline; }

/* Модальное окно */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(24, 23, 21, 0.65);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow-y: auto;
}
.modal[hidden] { display: none; }
.sheet {
  position: relative;
  background: #fff;
  width: 100%;
  max-width: 480px;
  border-radius: 28px;
  padding: 32px 28px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
  margin: auto;
  animation: pop .22s ease-out;
}
@keyframes pop {
  from { opacity: 0; transform: scale(0.96) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.sheet .x {
  position: absolute;
  top: 18px; right: 18px;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--bg);
  cursor: pointer;
  display: grid; place-items: center;
}
.modal-success { text-align: center; padding: 16px 0; }
.ok-badge {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: #DCFCE7;
  color: var(--green);
  display: grid; place-items: center;
  margin: 0 auto 16px;
}
.ok-badge .ic { width: 32px; height: 32px; }

/* Мобильная кнопка и Cookie */
.sticky {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 35;
  padding: 12px 16px;
  background: rgba(255, 243, 227, 0.92);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(24, 23, 21, 0.08);
}
.sticky .btn { width: 100%; padding: 15px; font-size: 15px; }

.cookie {
  position: fixed;
  bottom: 16px; left: 16px; right: 16px;
  max-width: 560px;
  margin: 0 auto;
  z-index: 50;
  background: var(--ink);
  color: #fff;
  padding: 14px 18px;
  border-radius: 16px;
  display: flex; align-items: center; gap: 14px;
  font-size: 13px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.2);
}
.cookie[hidden] { display: none; }
.cookie p { margin: 0; }
.cookie a { text-decoration: underline; }
.cookie button {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
}

/* Адаптация под мобильные */
@media (max-width: 900px) {
  .nav { display: none; }
  .hero-g, .cal, .how-g, .duo, .faq-g, .cta-g { grid-template-columns: 1fr; }
  .path, .banks, .steps, .safe { grid-template-columns: 1fr; }
  .cta-g { padding: 28px 20px; }
  .sticky { display: block; }
}
