@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&display=swap");

:root {
  --bg: #ffffff;
  --surface: #f8f9fa;
  --accent: #1a1a1a;
  --text: #1a1a1a;
  --muted: #6c757d;
  --border: #e9ecef;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: "DM Sans", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

body.menu-open,
body.modal-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
a {
  min-height: 44px;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.narrow {
  width: min(760px, calc(100% - 32px));
}

.section {
  padding: 48px 0;
}

.surface {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 9990;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  color: var(--accent);
  min-height: 44px;
  flex: 0 0 auto;
}

.brand svg {
  width: 180px;
  height: 40px;
}

.desktop-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.desktop-nav a,
.mobile-menu a {
  color: var(--muted);
  font-weight: 600;
  padding: 10px 12px;
  border-radius: 999px;
  transition: color .2s ease, background .2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.mobile-menu a.active {
  color: var(--text);
  background: var(--surface);
}

.header-phone {
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 700;
  white-space: nowrap;
}

.burger {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid var(--border);
  background: var(--bg);
  border-radius: 999px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  margin-left: auto;
}

.burger span {
  width: 18px;
  height: 2px;
  background: var(--accent);
  display: block;
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--bg);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  transform: translateX(100%);
  opacity: 0;
  transition: transform .3s ease, opacity .3s ease;
}

.mobile-menu.open {
  display: flex;
  transform: translateX(0);
  opacity: 1;
}

.mobile-menu a {
  font-size: 20px;
  padding: 12px 0;
  width: 100%;
  text-align: center;
}

.mobile-close {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 32px;
  cursor: pointer;
  z-index: 10001;
  min-width: 44px;
  min-height: 44px;
  border: 0;
  background: transparent;
  color: var(--accent);
}

h1,
h2,
h3 {
  margin: 0 0 16px;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

h1 {
  font-size: clamp(2rem, 8vw, 4.8rem);
  max-width: 900px;
}

h2 {
  font-size: clamp(1.6rem, 5vw, 3rem);
}

h3 {
  font-size: 1.2rem;
}

p {
  color: var(--muted);
  margin: 0 0 16px;
}

.lead {
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  max-width: 680px;
}

.eyebrow {
  display: inline-block;
  color: var(--muted);
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 800;
  margin-bottom: 14px;
}

.hero-grid,
.two-column,
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
}

.hero-media {
  position: relative;
}

.hero-media img,
.rounded-img,
.contact-card img,
.gallery-grid img {
  border-radius: 18px;
  border: 1px solid var(--border);
  object-fit: cover;
}

.hero-media img {
  aspect-ratio: 4 / 5;
  width: 100%;
}

.floating-card {
  position: absolute;
  left: 16px;
  bottom: 16px;
  background: rgba(255,255,255,0.92);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: 0 18px 50px rgba(0,0,0,.08);
  max-width: calc(100% - 32px);
}

.floating-card strong,
.floating-card span {
  display: block;
}

.floating-card span {
  color: var(--muted);
  font-size: .9rem;
}

.hero-actions,
.center {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.center {
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 13px 20px;
  border: 1px solid var(--accent);
  font-weight: 800;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
  min-height: 48px;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
}

.btn-secondary {
  background: var(--bg);
  color: var(--accent);
  border-color: var(--border);
}

.text-link {
  display: inline-flex;
  font-weight: 800;
  border-bottom: 1px solid var(--accent);
  min-height: 44px;
  align-items: center;
}

.trust-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.trust-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 18px 0;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-weight: 700;
}

.trust-badge svg {
  width: 44px;
  height: 44px;
  color: var(--accent);
}

.section-head {
  max-width: 780px;
  margin-bottom: 28px;
}

.benefit-grid,
.property-grid,
.service-preview-grid,
.review-grid,
.agent-grid,
.steps-grid,
.service-grid,
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.card,
.property-card,
.image-card,
.review-card,
.agent-card,
.step,
.calculator-card,
.search-panel,
.contact-card,
.contact-form,
.service-card,
.cta-banner,
.legal .container {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 20px;
}

.card,
.property-card,
.image-card,
.review-card,
.agent-card,
.step,
.service-card {
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.card:hover,
.property-card:hover,
.image-card:hover,
.review-card:hover,
.agent-card:hover,
.service-card:hover {
  transform: translateY(-4px);
  border-color: #d8dde2;
  box-shadow: 0 18px 50px rgba(0,0,0,.05);
}

.icon {
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 999px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}

.icon svg {
  width: 22px;
  height: 22px;
}

.property-card,
.image-card,
.service-card,
.agent-card,
.review-card {
  overflow: hidden;
}

.property-card,
.image-card,
.agent-card {
  padding: 0;
}

.property-card img,
.image-card img,
.service-card img,
.agent-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.property-body,
.image-card h3,
.image-card p,
.agent-card h3,
.agent-card p,
.agent-card span {
  padding-left: 18px;
  padding-right: 18px;
}

.property-body {
  padding-top: 18px;
  padding-bottom: 18px;
}

.image-card h3,
.agent-card h3 {
  padding-top: 18px;
}

.tag {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: .78rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.property-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: .9rem;
}

.property-meta span {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 9px;
}

.cta-banner {
  position: relative;
  overflow: hidden;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
}

.cta-banner img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid var(--border);
}

.calculator-card label,
.search-panel label,
.contact-form label {
  display: block;
  font-weight: 800;
  margin: 14px 0 8px;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--border);
  background: var(--bg);
  border-radius: 12px;
  padding: 14px 14px;
  min-height: 48px;
  font-size: 16px;
  color: var(--text);
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  outline: 2px solid rgba(26,26,26,.14);
  border-color: var(--accent);
}

.calc-result {
  margin-top: 20px;
  border-top: 1px solid var(--border);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

.calc-result span {
  color: var(--muted);
}

.calc-result strong {
  font-size: 1.5rem;
}

.stars {
  display: flex;
  gap: 3px;
  color: var(--accent);
  margin: 10px 0;
}

.stars svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.review-card img {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid var(--border);
}

.review-card strong,
.review-card span {
  display: block;
}

.review-card span {
  color: var(--muted);
  font-size: .9rem;
}

.agent-card span {
  display: block;
  color: var(--muted);
  padding-bottom: 18px;
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
}

.search-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.filter-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 12px;
  margin-bottom: 10px;
}

.filter-btn {
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--muted);
  border-radius: 999px;
  min-height: 44px;
  padding: 10px 14px;
  cursor: pointer;
  font-weight: 800;
  white-space: nowrap;
}

.filter-btn.active {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}

.service-card {
  padding: 0;
  display: flex;
  flex-direction: column;
}

.service-card div {
  padding: 18px;
}

.service-card strong {
  display: block;
  margin: 12px 0;
}

.step span {
  display: inline-flex;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  margin-bottom: 18px;
}

.faq-list details {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  margin-bottom: 10px;
  overflow: hidden;
}

.faq-list summary {
  padding: 18px;
  cursor: pointer;
  font-weight: 800;
  min-height: 56px;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list p {
  padding: 0 18px 18px;
}

.contact-grid {
  align-items: start;
}

.checkbox-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.checkbox-row input {
  width: 20px;
  min-height: 20px;
  margin-top: 4px;
  flex: 0 0 auto;
}

.error {
  display: block;
  color: #8a1f11;
  min-height: 20px;
  font-weight: 700;
  margin-top: 4px;
}

.form-status {
  border-radius: 12px;
  padding: 0;
  color: var(--text);
  font-weight: 800;
}

.form-status.success {
  border: 1px solid var(--border);
  padding: 14px;
  background: var(--surface);
  margin-bottom: 16px;
}

.contact-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.contact-item svg {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
}

.contact-card img {
  margin-top: 22px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.legal .container {
  padding: 28px;
}

.legal h2 {
  font-size: 1.5rem;
  margin-top: 28px;
}

.final-cta {
  text-align: center;
}

.site-footer {
  background: var(--accent);
  color: var(--bg);
  padding: 48px 0 24px;
}

.site-footer p,
.site-footer a {
  color: rgba(255,255,255,.72);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.footer-grid h3 {
  color: var(--bg);
  font-size: 1rem;
}

.footer-grid a {
  display: block;
  padding: 4px 0;
  min-height: 32px;
}

.footer-brand {
  color: var(--bg);
  margin-bottom: 12px;
}

.footer-bottom {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.14);
  color: rgba(255,255,255,.6);
  font-size: .9rem;
}

.back-to-top {
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--accent);
  color: var(--bg);
  cursor: pointer;
  z-index: 9000;
  display: none;
  font-size: 20px;
}

.back-to-top.show {
  display: block;
}

.fade-up {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .4s ease, transform .4s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 99999;
  padding: 20px;
  background: var(--accent);
  color: var(--bg);
  border-top: 1px solid rgba(255,255,255,.2);
  box-shadow: 0 -20px 60px rgba(0,0,0,.18);
}

.cookie-banner p {
  color: rgba(255,255,255,.78);
  margin: 0;
}

.cookie-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

.cookie-actions {
  display: flex;
  gap: 8px;
  flex: 0 0 auto;
}

.cookie-banner button,
.cookie-modal button {
  cursor: pointer;
  min-height: 44px;
  min-width: 100px;
  border: 1px solid var(--bg);
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 800;
  background: var(--bg);
  color: var(--accent);
}

.cookie-banner .outline,
.cookie-modal .outline {
  background: transparent;
  color: var(--bg);
  border-color: rgba(255,255,255,.45);
}

.cookie-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 99999;
}

.cookie-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  z-index: 100000;
  width: calc(100% - 32px);
  max-width: 500px;
  max-height: 80vh;
  overflow-y: auto;
  padding: 24px;
  border-radius: 12px;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: 0 30px 100px rgba(0,0,0,.24);
}

.cookie-modal p {
  color: var(--muted);
}

.cookie-modal label {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 12px 0;
  font-weight: 800;
}

.cookie-modal input {
  width: 20px;
  min-height: 20px;
}

.cookie-modal .cookie-close,
.quick-close {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 24px;
  cursor: pointer;
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg);
  color: var(--accent);
  padding: 0;
}

.cookie-modal .modal-actions {
  display: flex;
  gap: 8px;
  margin-top: 18px;
}

.cookie-modal .btn-save {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}

.quick-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0,0,0,0.6);
}

.quick-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  z-index: 100000;
  width: calc(100% - 32px);
  max-width: 500px;
  max-height: 85vh;
  overflow-y: auto;
  margin: 0;
  border-radius: 12px;
  background: var(--bg);
  padding: 24px;
  border: 1px solid var(--border);
  box-shadow: 0 30px 100px rgba(0,0,0,.24);
}

.quick-modal img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--border);
  margin-bottom: 16px;
}

.quick-modal .btn {
  width: 100%;
}

@media (min-width: 768px) {
  .section {
    padding: 80px 0;
  }

  .hero-grid,
  .two-column {
    grid-template-columns: 1fr 1fr;
    gap: 56px;
  }

  .contact-grid {
    grid-template-columns: 1.25fr .75fr;
    gap: 28px;
  }

  .trust-inner {
    grid-template-columns: repeat(4, 1fr);
  }

  .benefit-grid,
  .service-preview-grid,
  .review-grid,
  .agent-grid,
  .steps-grid,
  .service-grid,
  .property-grid,
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .search-panel {
    grid-template-columns: repeat(4, 1fr);
    align-items: end;
  }

  .cta-banner {
    display: grid;
    grid-template-columns: 1.2fr .45fr 1fr;
    align-items: center;
  }

  .cta-banner img {
    height: 260px;
  }

  .footer-grid {
    grid-template-columns: 1.4fr .8fr 1fr .9fr;
  }
}

@media (min-width: 1024px) {
  .property-grid,
  .service-preview-grid,
  .review-grid,
  .agent-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .service-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .benefit-grid,
  .steps-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 768px) {
  .desktop-nav,
  .header-phone {
    display: none;
  }

  .burger {
    display: flex;
  }

  .header-inner {
    min-height: 64px;
  }

  .brand svg {
    width: 158px;
  }

  .btn,
  .hero-actions .btn,
  .final-cta .btn,
  .center .btn,
  .search-panel .btn,
  .contact-form .btn {
    width: 100%;
  }

  .hero-actions,
  .center {
    width: 100%;
  }

  .cookie-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-actions {
    flex-direction: column;
    gap: 8px;
    width: 100%;
  }

  .cookie-actions button {
    width: 100%;
    min-height: 48px;
    font-size: 16px;
  }

  .cookie-banner {
    padding: 16px;
  }

  .cookie-banner p {
    font-size: 14px;
  }

  .cookie-modal,
  .quick-modal {
    width: calc(100vw - 32px);
    max-width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    margin: 16px;
  }

  .cookie-modal button,
  .quick-modal button,
  .quick-modal .btn {
    min-height: 48px;
    min-width: 100px;
    font-size: 16px;
  }

  .cookie-modal .modal-actions {
    flex-direction: column;
  }

  .cookie-modal .modal-actions button {
    width: 100%;
  }
}