:root {
  --electric-violet: #6c2bd9;
  --deep-charcoal: #17151f;
  --ice-blue: #c8f1ff;
  --lemon: #dfff4f;
  --soft-lavender: #f0e9ff;
  --off-white: #fafaf7;
  --main-text: #202027;
  --secondary-text: #696875;
  --white: #ffffff;
  --line: rgba(32, 32, 39, 0.14);
  --shadow: 0 24px 70px rgba(23, 21, 31, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--off-white);
  color: var(--main-text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(250, 250, 247, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: grid;
  color: var(--deep-charcoal);
}

.brand span,
.site-footer strong {
  font-size: 1.05rem;
  font-weight: 950;
  letter-spacing: 0;
}

.brand small {
  color: var(--secondary-text);
  font-size: 0.72rem;
  font-weight: 800;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: clamp(10px, 1.5vw, 22px);
  font-size: 0.91rem;
  font-weight: 800;
}

.main-nav a:hover {
  color: var(--electric-violet);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.language {
  font-size: 0.82rem;
  font-weight: 900;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  padding: 0 18px;
  font-weight: 950;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.button-dark {
  background: var(--deep-charcoal);
  color: var(--white);
}

.button-violet {
  background: var(--electric-violet);
  color: var(--white);
}

.button-lemon {
  background: var(--lemon);
  color: var(--deep-charcoal);
}

.button-outline-light {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.menu-toggle {
  display: none;
}

.hero {
  position: relative;
  min-height: 720px;
  overflow: hidden;
  background: var(--electric-violet);
  color: var(--white);
  padding: clamp(70px, 10vw, 132px) clamp(18px, 7vw, 100px) 170px;
}

.poster {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  align-items: center;
  gap: 32px;
}

.micro,
.section-kicker {
  margin: 0 0 18px;
  font-size: 0.8rem;
  font-weight: 950;
  letter-spacing: 0;
}

.rent-badge,
.pill,
.status {
  display: inline-flex;
  width: max-content;
  border-radius: 999px;
  padding: 8px 12px;
  background: var(--lemon);
  color: var(--deep-charcoal);
  font-size: 0.75rem;
  font-weight: 950;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 900px;
  margin: 18px 0 22px;
  font-size: clamp(4.6rem, 13vw, 12.4rem);
  line-height: 0.78;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 span {
  display: block;
  color: var(--white);
  animation: popIn 0.8s ease both;
}

.hero-text {
  max-width: 590px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  font-weight: 700;
}

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

.down-link {
  display: inline-flex;
  margin-top: 42px;
  font-weight: 950;
  animation: arrowBounce 1.2s ease-in-out infinite;
}

.poster-art {
  position: relative;
  min-height: 460px;
}

.lemon-orbit {
  position: absolute;
  right: 9%;
  top: 7%;
  width: 150px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--lemon);
  animation: floatShape 4s ease-in-out infinite;
}

.ice-slab {
  position: absolute;
  right: 11%;
  bottom: 10%;
  width: min(380px, 76vw);
  height: 260px;
  background: var(--ice-blue);
  clip-path: polygon(0 20%, 100% 0, 86% 100%, 14% 86%);
  box-shadow: 18px 18px 0 var(--deep-charcoal);
}

.house-line {
  position: absolute;
  right: 18%;
  top: 26%;
  width: 330px;
  height: 280px;
  transform: rotate(-4deg);
}

.roof {
  width: 230px;
  height: 230px;
  border-top: 16px solid var(--white);
  border-left: 16px solid var(--white);
  transform: rotate(45deg);
  margin: 0 auto -112px;
}

.wall {
  position: relative;
  width: 260px;
  height: 170px;
  margin: 0 auto;
  border: 16px solid var(--white);
  background: rgba(108, 43, 217, 0.35);
}

.wall span {
  position: absolute;
  top: 38px;
  width: 46px;
  height: 40px;
  background: var(--lemon);
}

.wall span:first-child {
  left: 34px;
}

.wall span:nth-child(2) {
  right: 34px;
  background: var(--ice-blue);
}

.wall strong {
  position: absolute;
  left: 105px;
  bottom: 0;
  width: 50px;
  height: 76px;
  background: var(--white);
}

.quick-search {
  position: relative;
  z-index: 4;
  margin-top: -102px;
  padding: 0 clamp(18px, 6vw, 92px) 80px;
}

.search-panel {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr auto;
  gap: 14px;
  align-items: end;
  max-width: 1180px;
  margin: 0 auto;
  padding: 22px;
  border: 2px solid var(--deep-charcoal);
  border-radius: 8px;
  background: var(--off-white);
  box-shadow: var(--shadow);
}

.search-panel h2 {
  grid-column: 1 / -1;
  margin-bottom: 4px;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}

label {
  display: grid;
  gap: 8px;
  font-weight: 900;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--main-text);
  padding: 11px 12px;
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--electric-violet);
}

section:not(.hero):not(.quick-search) {
  padding: clamp(64px, 9vw, 120px) clamp(18px, 6vw, 92px);
}

.statement {
  background: var(--off-white);
}

.statement h2,
.categories h2,
.featured h2,
.locations h2,
.budget h2,
.why h2,
.journey h2,
.contact h2 {
  font-size: clamp(2.4rem, 7vw, 6.7rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.statement p {
  max-width: 760px;
  color: var(--secondary-text);
  font-size: clamp(1.1rem, 2vw, 1.55rem);
  font-weight: 800;
}

.statement strong {
  color: var(--electric-violet);
}

.category-grid,
.why-grid,
.safety-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.category-block {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 2px solid var(--deep-charcoal);
  border-radius: 8px;
  padding: 22px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-block:hover {
  transform: translateY(-8px) rotate(-1deg);
  box-shadow: 10px 10px 0 var(--deep-charcoal);
}

.category-block span {
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  font-weight: 950;
}

.category-block p {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 850;
}

.block-violet {
  background: var(--electric-violet);
  color: var(--white);
}

.block-ice {
  background: var(--ice-blue);
}

.block-lavender {
  background: var(--soft-lavender);
}

.block-lemon {
  background: var(--lemon);
}

.featured {
  background: var(--white);
}

.featured-card {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(280px, 1fr);
  gap: clamp(20px, 4vw, 58px);
  align-items: stretch;
  max-width: 1080px;
}

.property-visual {
  position: relative;
  min-height: 370px;
  overflow: hidden;
  border: 2px solid var(--deep-charcoal);
  border-radius: 8px;
  background: var(--soft-lavender);
}

.sun {
  position: absolute;
  right: 30px;
  top: 28px;
  width: 84px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--lemon);
}

.mini-house,
.preview-house {
  position: absolute;
  left: 48px;
  bottom: 44px;
  width: 230px;
  height: 156px;
  background: var(--electric-violet);
  clip-path: polygon(0 42%, 50% 0, 100% 42%, 100% 100%, 0 100%);
}

.mini-house::before,
.preview-house::before {
  content: "";
  position: absolute;
  left: 42px;
  top: 78px;
  width: 42px;
  height: 38px;
  background: var(--ice-blue);
  box-shadow: 88px 0 0 var(--lemon);
}

.featured-content {
  display: grid;
  align-content: center;
  gap: 13px;
}

.featured-content h3 {
  max-width: 620px;
  font-size: clamp(2rem, 5vw, 4.5rem);
  line-height: 0.95;
}

.featured-content strong,
.modal-price {
  color: var(--electric-violet);
  font-size: 1.45rem;
  font-weight: 950;
}

.locations {
  position: relative;
  overflow: hidden;
  background: var(--ice-blue);
}

.location-list {
  display: grid;
  gap: 4px;
  max-width: 930px;
}

.location-list a {
  display: flex;
  justify-content: space-between;
  border-top: 2px solid var(--deep-charcoal);
  padding: 10px 0;
  font-size: clamp(2rem, 6.5vw, 6.4rem);
  line-height: 0.95;
  font-weight: 950;
}

.location-list a:last-child {
  border-bottom: 2px solid var(--deep-charcoal);
}

.location-list a:hover {
  color: var(--electric-violet);
}

.location-preview {
  position: absolute;
  right: 7%;
  top: 24%;
  width: 260px;
  min-height: 230px;
  opacity: 0;
  transform: translate(20px, 20px) rotate(4deg);
  border: 2px solid var(--deep-charcoal);
  border-radius: 8px;
  background: var(--off-white);
  box-shadow: 10px 10px 0 var(--deep-charcoal);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

.locations:has(.location-list a:hover) .location-preview {
  opacity: 1;
  transform: translate(0, 0) rotate(4deg);
}

.location-preview .preview-house {
  left: 32px;
  bottom: 58px;
  width: 165px;
  height: 116px;
}

.location-preview p {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 8px;
  margin: 0;
  font-weight: 900;
}

.budget-buttons {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 10px;
}

.budget-buttons button {
  min-width: max-content;
  border: 2px solid var(--deep-charcoal);
  border-radius: 8px;
  background: var(--white);
  padding: 14px 18px;
  font-weight: 950;
  cursor: pointer;
}

.budget-buttons button.active,
.budget-buttons button:hover {
  background: var(--lemon);
}

.budget-result {
  margin-top: 18px;
  color: var(--secondary-text);
  font-weight: 850;
}

.why {
  background: var(--soft-lavender);
}

.why-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.why article,
.safety article {
  border-top: 4px solid var(--deep-charcoal);
  padding-top: 18px;
}

.why h3,
.safety h3 {
  font-size: 2rem;
}

.journey {
  position: relative;
  overflow: hidden;
  background: var(--off-white);
}

.ok-motif {
  position: absolute;
  right: 5%;
  top: 12%;
  z-index: 0;
  color: var(--soft-lavender);
  font-size: clamp(9rem, 28vw, 26rem);
  font-weight: 950;
  line-height: 1;
}

.steps {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.steps article {
  min-height: 210px;
  border: 2px solid var(--deep-charcoal);
  border-radius: 8px;
  background: var(--white);
  padding: 18px;
}

.steps span {
  color: var(--electric-violet);
  font-weight: 950;
}

.brand-band {
  background: var(--deep-charcoal);
  color: var(--white);
}

.brand-band h2 {
  font-size: clamp(3rem, 8vw, 8.2rem);
  line-height: 0.9;
}

.brand-band span {
  color: var(--lemon);
}

.brand-band p {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.25rem;
  font-weight: 800;
}

.owner {
  background: var(--lemon);
}

.owner h2 {
  max-width: 800px;
  font-size: clamp(2.6rem, 7vw, 7rem);
  line-height: 0.95;
}

.owner p {
  max-width: 640px;
  font-size: 1.2rem;
  font-weight: 850;
}

.safety {
  background: var(--white);
}

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

.contact {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(320px, 1.15fr);
  gap: clamp(24px, 6vw, 80px);
  background: var(--off-white);
}

.email-link {
  display: inline-flex;
  margin-top: 12px;
  color: var(--electric-violet);
  font-size: clamp(1.1rem, 2.6vw, 2rem);
  font-weight: 950;
  overflow-wrap: anywhere;
}

.contact-form,
.owner-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.full,
.contact-form .button,
.owner-form .button,
.form-status {
  grid-column: 1 / -1;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 24px;
  padding: 42px clamp(18px, 6vw, 92px);
  background: var(--deep-charcoal);
  color: var(--white);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  font-weight: 850;
}

.site-footer p,
.site-footer small {
  color: rgba(255, 255, 255, 0.7);
}

.sticky-cta {
  display: none;
}

.modal {
  width: min(640px, calc(100vw - 28px));
  border: 2px solid var(--deep-charcoal);
  border-radius: 8px;
  padding: 28px;
  background: var(--off-white);
  color: var(--main-text);
  box-shadow: var(--shadow);
}

.modal::backdrop {
  background: rgba(23, 21, 31, 0.64);
}

.modal-close {
  position: absolute;
  right: 14px;
  top: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: var(--deep-charcoal);
  color: var(--white);
  font-size: 1.4rem;
  cursor: pointer;
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes arrowBounce {
  50% {
    transform: translateY(8px);
  }
}

@keyframes floatShape {
  50% {
    transform: translateY(16px) translateX(-10px);
  }
}

@media (max-width: 1060px) {
  .site-header {
    grid-template-columns: auto auto;
  }

  .menu-toggle {
    display: grid;
    justify-self: end;
    gap: 6px;
    width: 44px;
    height: 44px;
    border: 2px solid var(--deep-charcoal);
    border-radius: 8px;
    background: var(--white);
    padding: 12px;
  }

  .menu-toggle span {
    display: block;
    height: 3px;
    background: var(--deep-charcoal);
  }

  .main-nav,
  .header-actions {
    display: none;
  }

  .site-header.nav-open .main-nav,
  .site-header.nav-open .header-actions {
    display: flex;
    grid-column: 1 / -1;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .poster,
  .featured-card,
  .contact {
    grid-template-columns: 1fr;
  }

  .poster-art {
    min-height: 360px;
  }

  .search-panel {
    grid-template-columns: 1fr 1fr;
  }

  .search-panel .button {
    grid-column: 1 / -1;
  }

  .category-grid,
  .safety-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .location-preview {
    display: none;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .hero {
    min-height: auto;
    padding-bottom: 130px;
  }

  h1 {
    font-size: clamp(4.2rem, 22vw, 7rem);
  }

  .quick-search {
    margin-top: -80px;
    padding-bottom: 56px;
  }

  .search-panel,
  .contact-form,
  .owner-form,
  .why-grid,
  .category-grid,
  .safety-grid {
    grid-template-columns: 1fr;
  }

  .poster-art {
    min-height: 280px;
  }

  .house-line {
    right: 0;
    scale: 0.78;
  }

  .lemon-orbit {
    width: 98px;
  }

  .category-block {
    min-height: 180px;
  }

  .location-list a {
    font-size: clamp(2rem, 14vw, 4.8rem);
  }

  .sticky-cta {
    position: fixed;
    right: 14px;
    bottom: 14px;
    z-index: 18;
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    border-radius: 999px;
    background: var(--lemon);
    color: var(--deep-charcoal);
    padding: 0 18px;
    font-weight: 950;
    box-shadow: 0 10px 30px rgba(23, 21, 31, 0.22);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
