/*
Theme Name: RealEstateHelp
Description: Independent theme for realestatehelp.com.ua.
Version: 0.1.2
Text Domain: realestatehelp
*/

:root {
  --reh-background: #f5f4ef;
  --reh-surface: #ffffff;
  --reh-text: #1b2a24;
  --reh-accent: #2c6855;
  --reh-muted: #5e6d67;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--reh-background); color: var(--reh-text); font-family: system-ui, sans-serif; }
a { color: var(--reh-accent); }
.site-shell { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.site-header, .site-footer { padding: 24px 0; }
.hero { min-height: 60vh; display: grid; place-items: center; }
.hero__card { max-width: 760px; padding: clamp(28px, 6vw, 72px); border-radius: 24px; background: var(--reh-surface); }
.eyebrow { color: var(--reh-accent); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
h1 { font-size: clamp(2.2rem, 6vw, 4.8rem); line-height: 1; margin: 16px 0; }
.notice { color: var(--reh-muted); }
.direction-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 28px 0; }
.direction-links a { display: grid; gap: 8px; padding: 18px; border: 1px solid #cad3ce; border-radius: 14px; color: var(--reh-text); text-decoration: none; }
.direction-links a:hover, .direction-links a:focus-visible { border-color: var(--reh-accent); outline: 3px solid rgba(44, 104, 85, .2); outline-offset: 2px; }
.direction-links span { color: var(--reh-muted); font-size: .95rem; line-height: 1.45; }
.quiz-shell { width: min(760px, 100%); margin: 32px auto 80px; padding: clamp(24px, 5vw, 48px); border-radius: 24px; background: var(--reh-surface); }
.quiz-shell fieldset { display: grid; gap: 12px; border: 0; padding: 0; }
.quiz-shell legend { margin-bottom: 16px; font-size: 1.35rem; font-weight: 700; }
.quiz-shell label { display: flex; gap: 10px; padding: 14px; border: 1px solid #cad3ce; border-radius: 12px; cursor: pointer; }
.quiz-shell select { width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid #8b9c94; border-radius: 10px; background: #fff; color: var(--reh-text); font: inherit; }
.quiz-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; }
.quiz-actions button { min-height: 44px; padding: 10px 20px; border: 0; border-radius: 999px; background: var(--reh-accent); color: #fff; font: inherit; font-weight: 700; }
.quiz-actions button[data-quiz-back] { background: #dfe6e2; color: var(--reh-text); }
.quiz-result { margin-top: 20px; padding: 20px; border-radius: 12px; background: #e9f2ed; }
.contact-step { display: grid; gap: 16px; margin-top: 24px; }
.contact-step[hidden] { display: none; }
.contact-step label { display: grid; gap: 6px; padding: 0; border: 0; }
.contact-step input:not([type="checkbox"]) { min-height: 46px; padding: 10px 12px; border: 1px solid #8b9c94; border-radius: 10px; font: inherit; }
.contact-step button { min-height: 46px; padding: 10px 20px; border: 0; border-radius: 999px; background: var(--reh-accent); color: #fff; font: inherit; font-weight: 700; }
.contact-step .consent-row { display: flex; align-items: flex-start; }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.analytics-consent { position: fixed; z-index: 1000; right: 18px; bottom: 18px; width: min(520px, calc(100% - 36px)); padding: 20px; border: 1px solid #cad3ce; border-radius: 16px; background: var(--reh-surface); box-shadow: 0 12px 40px rgba(27, 42, 36, .18); }
.analytics-consent p { margin: 0 0 14px; line-height: 1.5; }
.analytics-consent div { display: flex; flex-wrap: wrap; gap: 10px; }
.analytics-consent button { min-height: 44px; padding: 10px 18px; border: 1px solid var(--reh-accent); border-radius: 999px; background: var(--reh-accent); color: #fff; font: inherit; font-weight: 700; }
.analytics-consent button[data-analytics-reject] { background: #fff; color: var(--reh-accent); }

@media (max-width: 640px) {
  .site-shell { width: min(100% - 20px, 1120px); }
  .hero__card, .quiz-shell { border-radius: 16px; }
  .direction-links { grid-template-columns: 1fr; }
  .quiz-actions { flex-wrap: wrap; }
}
