/* =============================================
   REAL ESTATE LANDING — MAIN STYLES
   ============================================= */

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

:root {
  --green:       #5a8a6e;
  --green-light: #7ab090;
  --green-pale:  #e8f0eb;
  --green-dark:  #3d6b55;
  --coral:       #e86b5f;
  --coral-dark:  #d45a4e;
  --dark:        #1a1a1a;
  --gray:        #666;
  --light-gray:  #f4f4f4;
  --white:       #fff;
  --border:      #e5e5e5;
  --font:        'Inter', 'Helvetica Neue', Arial, sans-serif;
  --max-w:       430px;
  --radius:      14px;
  --radius-sm:   8px;
  --shadow:      0 2px 16px rgba(0,0,0,0.08);
  --shadow-md:   0 4px 24px rgba(0,0,0,0.12);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: #f0f0f0;
  color: var(--dark);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* =============================================
   PAGE WRAPPER
   ============================================= */
.page {
  display: none;
  max-width: var(--max-w);
  margin: 0 auto;
  background: var(--white);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}
.page.active { display: block; }

@media (min-width: 431px) {
  .page { box-shadow: 0 0 40px rgba(0,0,0,0.15); }
}

/* =============================================
   HEADER
   ============================================= */
.header {
  background: var(--white);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 1px 8px rgba(0,0,0,0.06);
}
.header-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}
.header-logo-icon {
  width: 38px;
  height: 38px;
  background: var(--green-pale);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.header-logo-text {
  font-size: 9.5px;
  color: var(--gray);
  max-width: 130px;
  line-height: 1.35;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.4px;
}
.header-phone {
  background: var(--coral);
  color: var(--white);
  padding: 9px 14px;
  border-radius: 24px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s;
  flex-shrink: 0;
}
.header-phone:hover { background: var(--coral-dark); }

/* =============================================
   SECTIONS
   ============================================= */
.section {
  padding: 28px 16px;
  border-bottom: 1px solid #f2f2f2;
}
.section:last-child { border-bottom: none; }

/* =============================================
   TYPOGRAPHY
   ============================================= */
.page-title {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 16px;
  color: var(--dark);
}
.page-title .accent { color: var(--green); }

.section-title {
  font-size: 21px;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 16px;
  color: var(--dark);
}
.section-title .accent { color: var(--green); }

.body-text {
  font-size: 15px;
  line-height: 1.7;
  color: #333;
  margin-bottom: 14px;
}
.body-text .accent { color: var(--green); font-weight: 600; }
.body-text strong { color: var(--dark); }

.sub-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--dark);
}

/* =============================================
   HERO BLOCK
   ============================================= */
.hero {
  padding: 24px 16px 0;
  text-align: center;
}
.hero-bubble {
  background: #f7f7f7;
  border-radius: var(--radius);
  padding: 16px 18px;
  text-align: left;
  margin-bottom: 20px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--gray);
}
.hero-bubble .accent { color: var(--green); font-weight: 600; font-style: normal; }

.hero-img-wrap {
  position: relative;
  margin: 0 -16px;
  overflow: hidden;
}
.hero-img-wrap img {
  width: 100%;
  display: block;
  object-fit: cover;
  max-height: 300px;
  object-position: top center;
}
.hero-badges {
  position: absolute;
  width: 100%;
  top: 28%;
  display: flex;
  justify-content: space-between;
  padding: 0 14px;
  pointer-events: none;
}
.badge {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}
.badge-yes { background: #4caf50; }
.badge-no  { background: #e84040; }

/* =============================================
   IMAGE
   ============================================= */
.img-block {
  width: 100%;
  border-radius: var(--radius);
  display: block;
  margin-bottom: 18px;
  object-fit: cover;
}
.img-block.h-sm  { max-height: 180px; }
.img-block.h-md  { max-height: 220px; }
.img-block.h-lg  { max-height: 280px; }
.img-block.center { margin-left: auto; margin-right: auto; }

/* =============================================
   IMAGINE LABEL
   ============================================= */
.imagine-label {
  display: inline-block;
  background: var(--green);
  color: var(--white);
  padding: 10px 22px;
  border-radius: var(--radius);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
}

/* =============================================
   ICON LIST
   ============================================= */
.icon-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 4px;
}
.icon-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  line-height: 1.55;
  color: #333;
}
.icon-wrap {
  width: 38px;
  height: 38px;
  background: var(--green-pale);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 19px;
}
.icon-list .accent { color: var(--green); font-weight: 600; }

/* =============================================
   EQUAL BLOCK
   ============================================= */
.equal-block {
  background: var(--green);
  color: var(--white);
  border-radius: var(--radius);
  padding: 20px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.equal-side {
  flex: 1;
  font-size: 14px;
  line-height: 1.4;
  text-align: center;
}
.equal-side strong { font-size: 17px; font-weight: 800; display: block; }
.equal-sign { font-size: 32px; font-weight: 800; opacity: 0.85; }

/* =============================================
   DARK SECTION
   ============================================= */
.dark-box {
  background: #1a1a1a;
  color: var(--white);
  border-radius: var(--radius);
  padding: 20px 16px;
  margin-bottom: 18px;
}
.dark-box-title {
  background: var(--white);
  color: var(--dark);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.4;
}
.dark-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.dark-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.55;
}
.dark-list .warn { font-size: 22px; flex-shrink: 0; margin-top: 1px; }

/* =============================================
   STAT
   ============================================= */
.stat-text {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 10px;
  color: var(--dark);
}

/* =============================================
   TRAP ITEMS
   ============================================= */
.trap-item {
  background: var(--white);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--coral);
}
.trap-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.trap-num {
  width: 30px;
  height: 30px;
  background: var(--coral);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}
.trap-item h4 { font-size: 14px; font-weight: 700; color: var(--dark); }
.trap-item p  { font-size: 13px; line-height: 1.6; color: #555; }
.trap-how {
  background: var(--green-pale);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 12px;
  color: var(--green-dark);
  font-weight: 600;
  margin-top: 10px;
}

/* =============================================
   CASE BLOCKS
   ============================================= */
.case-block {
  background: var(--green-pale);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 16px;
}
.case-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.case-num {
  width: 34px;
  height: 34px;
  background: var(--green);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  flex-shrink: 0;
}
.case-block h4 { font-size: 14px; font-weight: 700; color: var(--dark); }
.case-detail {
  font-size: 13px;
  line-height: 1.6;
  color: #444;
  margin-bottom: 10px;
}
.case-result {
  background: var(--green);
  color: var(--white);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 600;
}
.case-result strong { font-size: 15px; display: block; margin-bottom: 2px; }

/* =============================================
   MARKET CARD
   ============================================= */
.market-card {
  background: var(--green-pale);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 14px;
}
.market-card h4 { font-size: 15px; font-weight: 700; color: var(--green-dark); margin-bottom: 6px; }
.market-card p  { font-size: 13px; line-height: 1.6; color: #444; }

/* =============================================
   WARNING / AGENT NOTE
   ============================================= */
.warning-block {
  background: #fff3f3;
  border-left: 4px solid var(--coral);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 14px 16px;
  margin-bottom: 16px;
  font-size: 14px;
  line-height: 1.6;
  color: #444;
}
.warning-block strong { color: var(--coral); }

.agent-note {
  background: #fff8f0;
  border: 1px solid #ffe0c0;
  border-radius: var(--radius);
  padding: 14px 16px;
  font-size: 13px;
  line-height: 1.65;
  color: #555;
  margin-bottom: 16px;
}
.agent-note strong { color: var(--coral); }

/* =============================================
   CHECKLIST
   ============================================= */
.checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.55;
  color: #333;
}
.checklist .ck { flex-shrink: 0; margin-top: 1px; font-size: 16px; }
.checklist .accent { color: var(--green); font-weight: 600; }

/* =============================================
   EXPERT BUBBLE
   ============================================= */
.expert-bubble {
  background: var(--green-pale);
  border-radius: var(--radius);
  padding: 12px 14px;
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  font-size: 13px;
  line-height: 1.55;
  color: #333;
}
.expert-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.expert-name { font-weight: 700; color: var(--green-dark); font-size: 12px; margin-bottom: 4px; }

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 18px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
  margin: 4px 0;
  font-family: var(--font);
}
.btn:active { transform: scale(0.98); }

.btn-coral {
  background: var(--coral);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(232,107,95,0.35);
}
.btn-coral:hover { background: var(--coral-dark); }

.btn-green {
  background: var(--green);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(90,138,110,0.35);
}
.btn-green:hover { background: var(--green-dark); }

.btn-note {
  font-size: 12px;
  color: var(--gray);
  text-align: center;
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.btn-note .arrow { font-size: 20px; }

/* =============================================
   FOOTER
   ============================================= */
.page-footer {
  padding: 22px 16px 32px;
  text-align: center;
  font-size: 12px;
  color: #aaa;
  border-top: 1px solid var(--border);
  line-height: 1.8;
}
.page-footer a { color: var(--green); text-decoration: underline; }
.footer-brand { margin-top: 10px; font-weight: 700; letter-spacing: 1.5px; color: #bbb; font-size: 11px; }

/* =============================================
   QUIZ
   ============================================= */
.quiz-header {
  background: var(--green-pale);
  padding: 14px 16px;
  border-bottom: 1px solid #d5e8db;
  position: sticky;
  top: 0;
  z-index: 99;
}
.quiz-title-bar {
  font-size: 12px;
  color: var(--green-dark);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 8px;
}
.quiz-progress-wrap {
  height: 6px;
  background: #c5dece;
  border-radius: 3px;
  overflow: hidden;
}
.quiz-progress-fill {
  height: 100%;
  background: var(--green);
  border-radius: 3px;
  transition: width 0.4s ease;
}

.quiz-step { display: none; padding: 24px 16px 32px; }
.quiz-step.active { display: block; }

.quiz-step-title {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 20px;
  color: var(--dark);
}
.step-count {
  font-size: 12px;
  color: var(--gray);
  margin-bottom: 10px;
  font-weight: 600;
}

/* Options list */
.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}
.quiz-option {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  font-size: 15px;
  font-weight: 500;
  background: var(--white);
  text-align: left;
  width: 100%;
  font-family: var(--font);
  color: var(--dark);
}
.quiz-option:hover { border-color: var(--green-light); background: var(--green-pale); }
.quiz-option.selected { border-color: var(--green); background: var(--green-pale); }

.quiz-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #ccc;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.quiz-option.selected .quiz-dot {
  background: var(--green);
  border-color: var(--green);
}
.quiz-option.selected .quiz-dot::after {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--white);
  border-radius: 50%;
}

/* Image grid */
.quiz-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}
.quiz-grid-item {
  border: 2px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.quiz-grid-item:hover { border-color: var(--green-light); }
.quiz-grid-item.selected { border-color: var(--green); box-shadow: 0 0 0 2px var(--green-pale); }
.quiz-grid-item img { width: 100%; height: 100px; object-fit: cover; display: block; }
.quiz-grid-label {
  padding: 8px;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  color: var(--dark);
  background: var(--white);
}
.quiz-grid-item.selected .quiz-grid-label { background: var(--green-pale); color: var(--green-dark); }

/* Nav buttons */
.quiz-nav {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 4px;
}
.quiz-back {
  width: 46px;
  height: 46px;
  border: 2px solid var(--border);
  border-radius: 50%;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  flex-shrink: 0;
  transition: border-color 0.2s;
  font-family: var(--font);
}
.quiz-back:hover { border-color: var(--green); }
.quiz-next {
  flex: 1;
  background: var(--green);
  color: var(--white);
  border: none;
  border-radius: 50px;
  padding: 14px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
  font-family: var(--font);
  letter-spacing: 0.4px;
}
.quiz-next:hover { background: var(--green-dark); }

/* =============================================
   CONTACT FORM
   ============================================= */
.phone-icon-center {
  text-align: center;
  margin-bottom: 16px;
}
.phone-circle {
  width: 64px;
  height: 64px;
  background: var(--green);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  box-shadow: 0 4px 16px rgba(90,138,110,0.35);
}
.form-desc {
  font-size: 14px;
  line-height: 1.7;
  color: #444;
  margin-bottom: 20px;
}
.form-desc strong { color: var(--dark); }
.form-field { margin-bottom: 14px; }
.form-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--gray);
  margin-bottom: 6px;
}
.form-input {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--border);
  border-radius: 12px;
  font-size: 15px;
  font-family: var(--font);
  color: var(--dark);
  outline: none;
  transition: border-color 0.2s;
  background: var(--white);
}
.form-input:focus { border-color: var(--green); }
.form-input::placeholder { color: #bbb; }
.phone-input-wrap { position: relative; }
.phone-input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  pointer-events: none;
}
.phone-input-wrap .form-input { padding-left: 42px; }
.form-privacy {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  color: var(--gray);
  margin-bottom: 16px;
  line-height: 1.5;
}
.form-privacy input { margin-top: 2px; accent-color: var(--green); flex-shrink: 0; }
.form-privacy a { color: var(--green); }

/* =============================================
   THANKS PAGE
   ============================================= */
.thanks-wrap {
  padding: 40px 20px;
  text-align: center;
}
.thanks-icon { font-size: 68px; margin-bottom: 16px; }
.thanks-title {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 12px;
  line-height: 1.3;
  color: var(--dark);
}
.thanks-sub {
  font-size: 15px;
  color: var(--gray);
  margin-bottom: 32px;
  line-height: 1.7;
}
.social-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}
.social-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  color: var(--white);
  transition: opacity 0.2s;
}
.social-link:hover { opacity: 0.9; }
.social-link .sl-icon { font-size: 26px; flex-shrink: 0; }
.social-link .sl-sub { font-size: 12px; opacity: 0.85; margin-bottom: 2px; }
.sl-tg { background: #2AABEE; }
.sl-ig { background: linear-gradient(135deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); }
.call-label { font-size: 14px; color: var(--gray); margin-bottom: 14px; text-align: center; }
.btn-phone-big {
  display: inline-block;
  background: var(--coral);
  color: var(--white);
  padding: 16px 40px;
  border-radius: 50px;
  font-size: 17px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(232,107,95,0.35);
}

/* =============================================
   POPUP BAR — floating strip, no overlay
   ============================================= */
.popup-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--max-w);
  z-index: 1000;
  animation: slideUpBar 0.4s ease;
}
.popup-bar.show { display: block; }

.popup-bar__inner {
  background: var(--green);
  color: var(--white);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.18);
  border-radius: 16px 16px 0 0;
}
.popup-bar__text {
  flex: 1;
  font-size: 13px;
  line-height: 1.45;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
}
.popup-bar__icon {
  font-size: 20px;
  flex-shrink: 0;
  margin-top: 1px;
}
.popup-bar__btn {
  flex-shrink: 0;
  background: var(--white);
  color: var(--green-dark);
  border: none;
  border-radius: 24px;
  padding: 9px 14px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  font-family: var(--font);
  white-space: nowrap;
  transition: opacity 0.2s;
}
.popup-bar__btn:hover { opacity: 0.9; }
.popup-bar__close {
  flex-shrink: 0;
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
  padding: 2px;
}
.popup-bar__close:hover { color: var(--white); }

@keyframes slideUpBar {
  from { transform: translateX(-50%) translateY(100%); }
  to   { transform: translateX(-50%) translateY(0); }
}
