@import url('https://fonts.googleapis.com/css2?family=PT+Serif:wght@400;700&family=PT+Sans:wght@400;700&display=swap');

:root {
  --navy:    #1B3A5C;
  --navy-d:  #122740;
  --blue:    #2563A8;
  --green:   #2E7D32;
  --green-d: #1B5E20;
  --green-l: #E8F5E9;
  --gold:    #C8860A;
  --bg:      #FFFFFF;
  --bg2:     #F7F9FC;
  --bg3:     #EEF2F7;
  --border:  #D4DCE8;
  --text:    #0F1E30;
  --text-m:  #4A5F75;
  --text-l:  #8A9BAD;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'PT Sans', sans-serif;
  font-size: 20px;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* ===== ТОПБАР ===== */
.topbar {
  background: var(--navy);
  padding: 10px 0;
}
.topbar-inner {
  display: flex; align-items: center;
  justify-content: space-between; gap: 16px;
}
.topbar-address {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
  display: flex; align-items: center; gap: 6px;
}
.topbar-address i { color: #93C5FD; }
.topbar-phones a {
  color: #FDE68A;
  text-decoration: none;
  font-family: 'PT Serif', serif;
  font-size: 1.2rem;
  font-weight: 700;
  display: flex; align-items: center; gap: 7px;
}
.topbar-phones a i { color: rgba(255,255,255,0.5); font-size: 1rem; }
.topbar-phones a:hover { color: #fff; }

/* ===== NAVBAR ===== */
.navbar {
  background: var(--navy) !important;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 12px 0 !important;
  box-shadow: 0 2px 12px rgba(27,58,92,0.15);
}
.navbar-brand {
  font-family: 'PT Serif', serif !important;
  font-size: 1.4rem !important;
  color: #fff !important;
}
.navbar-nav .nav-link {
  font-size: 1rem !important;
  color: rgba(255,255,255,0.75) !important;
  padding: 7px 13px !important;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: #FDE68A !important;
  background: rgba(255,255,255,0.08);
}
.nav-cta-btn {
  background: var(--green);
  color: white; border: none;
  padding: 10px 20px; border-radius: 30px;
  font-size: 0.95rem; font-weight: 700;
  cursor: pointer; font-family: 'PT Sans', sans-serif;
  transition: background 0.15s;
}
.nav-cta-btn:hover { background: var(--green-d); }

/* ===== ГЕРОЙ — белый, чистый ===== */
.hero-b2c {
  background: var(--bg);
  padding: 52px 0 60px;
  border-bottom: 1px solid var(--border);
}

.hero-h1 {
  font-family: 'PT Serif', serif;
  font-size: 2.6rem;
  line-height: 1.25;
  margin-bottom: 18px;
  color: var(--text);
  font-weight: 700;
  max-width: 640px;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-m);
  margin-bottom: 32px;
  line-height: 1.7;
  max-width: 560px;
}

/* ДЕНЬГИ — тёмно-синяя плашка, золотые числа */
.hero-money-block {
  display: flex;
  align-items: stretch;
  background: var(--navy);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 28px;
  max-width: 560px;
}
.hero-money-item {
  flex: 1;
  padding: 22px 20px;
  text-align: center;
}
.hero-money-divider {
  width: 1px;
  background: rgba(255,255,255,0.12);
  flex-shrink: 0;
}
.hero-money-num {
  font-family: 'PT Serif', serif;
  font-size: 1.9rem;
  font-weight: 700;
  color: #FDE68A;
  line-height: 1.1;
}
.hero-money-label {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  margin-top: 5px;
  line-height: 1.4;
}

/* КНОПКА */
.btn-main-hero {
  display: block;
  width: 100%;
  max-width: 560px;
  background: var(--green);
  color: white; border: none;
  padding: 20px 28px;
  border-radius: 12px;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  font-family: 'PT Sans', sans-serif;
  text-align: center;
  transition: background 0.15s;
  margin-bottom: 18px;
}
.btn-main-hero:hover { background: var(--green-d); }

/* ТЕЛЕФОН */
.hero-phone-line {
  font-size: 0.95rem;
  color: var(--text-l);
  margin-bottom: 32px;
  line-height: 1.7;
  max-width: 560px;
}
.hero-phone-line a {
  display: block;
  color: var(--navy);
  font-weight: 700;
  font-size: 1.5rem;
  text-decoration: none;
  font-family: 'PT Serif', serif;
  margin-top: 3px;
}
.hero-phone-line a:hover { text-decoration: underline; }

/* ТРИ КАРТОЧКИ */
.hero-three-answers {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 560px;
}
.hta-item {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  background: var(--bg2);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 14px 18px;
  line-height: 1.4;
}
.hta-ico { font-size: 1.4rem; flex-shrink: 0; }

/* ===== ШАГИ ===== */
.steps-section { padding: 72px 0; background: var(--bg2); }

.sec-h2 {
  font-family: 'PT Serif', serif;
  font-size: 2.2rem;
  text-align: center;
  margin-bottom: 10px;
  color: var(--text);
}
.sec-sub {
  text-align: center;
  font-size: 1.05rem;
  color: var(--text-m);
  margin-bottom: 44px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.step-card {
  background: var(--bg);
  border-radius: 16px;
  padding: 32px 18px 24px;
  text-align: center;
  position: relative;
  border: 1.5px solid var(--border);
}
.step-card-accent {
  border-color: #86EFAC;
  background: var(--green-l);
}
.step-num {
  position: absolute; top: -14px; left: 50%;
  transform: translateX(-50%);
  width: 28px; height: 28px;
  background: var(--blue); color: white;
  border-radius: 50%; font-size: 0.9rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.step-ico { font-size: 2.2rem; display: block; margin-bottom: 12px; }
.step-card h3 {
  font-family: 'PT Serif', serif;
  font-size: 1.1rem; margin-bottom: 10px; color: var(--text);
}
.step-card p { font-size: 0.95rem; color: var(--text-m); line-height: 1.55; }

/* ===== БЕЗОПАСНОСТЬ ===== */
.trust-section { padding: 72px 0; background: var(--bg); }

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px; margin-bottom: 32px;
}
.trust-item {
  background: var(--bg2);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 28px 18px;
  text-align: center;
}
.trust-ico { font-size: 2.4rem; display: block; margin-bottom: 14px; }
.trust-item h3 {
  font-family: 'PT Serif', serif;
  font-size: 1.05rem; margin-bottom: 10px; color: var(--text);
}
.trust-item p { font-size: 0.9rem; color: var(--text-m); line-height: 1.55; }
.trust-cta { text-align: center; }
.trust-link {
  color: var(--blue); font-weight: 700;
  text-decoration: none; font-size: 1rem;
}
.trust-link:hover { text-decoration: underline; }

/* ===== FAQ ===== */
.faq-section { padding: 72px 0; background: var(--bg2); }
.faq-list { max-width: 800px; margin: 0 auto 32px; }

.faq-item { border-bottom: 2px solid var(--border); }
.faq-item summary {
  cursor: pointer; padding: 22px 0;
  font-size: 1.05rem; font-weight: 700;
  list-style: none;
  display: flex; justify-content: space-between;
  align-items: center; gap: 14px;
  color: var(--text);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; font-size: 1.6rem;
  color: var(--blue); flex-shrink: 0;
}
.faq-item[open] summary::after {
  transform: rotate(45deg); display: inline-block;
}
.faq-item p {
  padding: 0 0 20px;
  font-size: 1rem; color: var(--text-m); line-height: 1.7;
}
.faq-more { text-align: center; }
.faq-more a {
  color: var(--blue); font-weight: 700;
  text-decoration: none; font-size: 1rem;
}
.faq-more a:hover { text-decoration: underline; }

/* ===== ФИНАЛЬНЫЙ CTA ===== */
.final-cta {
  background: var(--navy);
  padding: 72px 0; text-align: center; color: #fff;
}
.final-inner h2 {
  font-family: 'PT Serif', serif;
  font-size: 2.2rem; margin-bottom: 14px; color: #fff;
}
.final-inner p { font-size: 1.1rem; opacity: 0.8; margin-bottom: 24px; }
.final-phone {
  display: block;
  font-family: 'PT Serif', serif;
  font-size: 2.2rem; font-weight: 700;
  color: #FDE68A; text-decoration: none; margin-bottom: 16px;
}
.final-phone:hover { text-decoration: underline; color: #FDE68A; }
.final-sub { font-size: 0.95rem; opacity: 0.65; margin-bottom: 22px; }

.btn-orange {
  background: var(--green); color: white; border: none;
  padding: 16px 32px; border-radius: 12px;
  font-size: 1.1rem; font-weight: 700; cursor: pointer;
  font-family: 'PT Sans', sans-serif;
  transition: background 0.15s;
  text-decoration: none; display: inline-block;
}
.btn-orange:hover { background: var(--green-d); color: white; }
.final-btn { padding: 18px 44px; font-size: 1.15rem; }

/* ===== ПОПАП ===== */
.popup-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.45);
  display: none; align-items: center;
  justify-content: center; z-index: 9999; padding: 16px;
}
.popup-overlay.open { display: flex; }

.popup {
  background: white; border-radius: 20px; padding: 0;
  max-width: 500px; width: 100%;
  position: relative; max-height: 92vh; overflow-y: auto;
}
.popup-close {
  position: absolute; top: 13px; right: 18px;
  background: none; border: none; font-size: 2rem;
  cursor: pointer; color: rgba(255,255,255,0.85);
  line-height: 1; z-index: 2;
}
.popup-close:hover { color: white; }

.popup-header-accent {
  background: var(--navy);
  border-radius: 20px 20px 0 0;
  padding: 24px 28px 20px; color: white;
}
.popup-badge {
  display: inline-block; background: var(--green);
  color: white; font-size: 0.78rem; font-weight: 700;
  padding: 4px 14px; border-radius: 20px; margin-bottom: 10px;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.popup-header-accent h2 {
  font-family: 'PT Serif', serif;
  font-size: 1.6rem; margin-bottom: 6px;
}
.popup-header-accent p { font-size: 0.95rem; opacity: 0.8; margin: 0; }

.popup form { padding: 22px 28px 26px; }

.popup-checks-group { margin-bottom: 20px; }
.popup-check-label {
  font-size: 1rem; font-weight: 700;
  color: var(--navy); margin-bottom: 10px;
}
.popup-checks { display: flex; gap: 10px; flex-wrap: wrap; }

.check-pill input { display: none; }
.check-pill span {
  display: inline-block; padding: 10px 18px;
  border: 2px solid var(--border); border-radius: 30px;
  font-size: 0.95rem; cursor: pointer; color: var(--text-m);
  transition: all 0.15s; user-select: none;
}
.check-pill input:checked + span {
  background: var(--navy); border-color: var(--navy);
  color: white; font-weight: 700;
}
.check-pill:hover span { border-color: var(--navy); color: var(--navy); }

.b2c-field { margin-bottom: 16px; }
.b2c-field label {
  display: block; font-size: 1rem;
  font-weight: 700; margin-bottom: 6px; color: var(--text);
}
.b2c-field input {
  width: 100%; padding: 14px 16px;
  font-size: 1.1rem;
  border: 2px solid var(--border); border-radius: 10px;
  font-family: 'PT Sans', sans-serif;
  color: var(--text); background: var(--bg2);
  outline: none; transition: border-color 0.2s;
}
.b2c-field input:focus { border-color: var(--navy); }

.popup-submit {
  width: 100%; padding: 18px;
  background: var(--green); color: white; border: none;
  border-radius: 12px; font-size: 1.2rem; font-weight: 700;
  cursor: pointer; font-family: 'PT Sans', sans-serif;
  margin-top: 8px; transition: background 0.15s;
}
.popup-submit:hover { background: var(--green-d); }

.popup-lock {
  text-align: center; font-size: 0.88rem;
  color: var(--text-l); margin-top: 12px; margin-bottom: 0;
}

.popup-success { text-align: center; padding: 44px 28px; }
.popup-success .bi {
  font-size: 3.5rem; color: var(--green);
  display: block; margin-bottom: 16px;
}
.popup-success h3 {
  font-family: 'PT Serif', serif;
  font-size: 1.7rem; margin-bottom: 12px;
}
.popup-success p {
  font-size: 1.05rem; color: var(--text-m); line-height: 1.65;
}

/* ===== АДАПТИВ ===== */
@media (max-width: 900px) {
  .steps-grid { grid-template-columns: 1fr 1fr; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .topbar-address { display: none; }
}

@media (max-width: 600px) {
  body { font-size: 18px; }
  .hero-h1 { font-size: 2rem; }
  .hero-money-num { font-size: 1.55rem; }
  .hero-money-block { max-width: 100%; }
  .btn-main-hero { max-width: 100%; font-size: 1.1rem; padding: 18px 20px; }
  .hero-phone-line { max-width: 100%; }
  .hero-three-answers { max-width: 100%; }
  .steps-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .final-phone { font-size: 1.8rem; }
  .sec-h2 { font-size: 1.85rem; }
}