/* ==========================================================================
   Marta Szczygieł — Nieruchomości
   ========================================================================== */

:root {
  --ivory: #f7f3ee;
  --paper: #fffdfa;
  --sand: #ebe4da;
  --line: #ddd4c7;
  --ink: #1f1c19;
  --ink-soft: #4a443d;
  --muted: #857a6d;
  --bronze: #9c7a54;
  --bronze-dark: #7f6242;

  --serif: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1200px;
  --gutter: clamp(20px, 5vw, 56px);
  --section: clamp(80px, 11vw, 150px);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -.005em;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.8rem, 6.4vw, 5.6rem); }
h2 { font-size: clamp(2.2rem, 4.2vw, 3.5rem); }
h3 { font-size: clamp(1.45rem, 2vw, 1.75rem); }
h1 em, h2 em { font-style: italic; color: var(--bronze); }

p { margin: 0 0 1.2em; color: var(--ink-soft); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section--paper { background: var(--paper); }
.section--sand { background: var(--sand); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: .74rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--bronze);
  font-weight: 400;
  margin-bottom: 26px;
}
.eyebrow::before { content: ""; width: 36px; height: 1px; background: currentColor; }

.lead { font-size: 1.15rem; max-width: 40em; }

/* Buttons ------------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 17px 34px;
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 400;
  letter-spacing: .22em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--ivory);
  cursor: pointer;
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.btn:hover { background: var(--bronze); border-color: var(--bronze); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.btn--light { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn--light:hover { background: #fff; color: var(--ink); border-color: #fff; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: .78rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
  padding-bottom: 6px;
  transition: gap .3s var(--ease), border-color .3s var(--ease);
}
.link-arrow::after { content: "→"; font-family: var(--serif); font-size: 1.1rem; letter-spacing: 0; }
.link-arrow:hover { gap: 18px; border-color: var(--bronze); }

/* Header ------------------------------------------------------------------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background .4s var(--ease), box-shadow .4s var(--ease), color .4s var(--ease);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 92px;
  transition: height .4s var(--ease);
}
.logo { display: flex; flex-direction: column; line-height: 1; }
.logo__name { font-family: var(--serif); font-size: 1.7rem; letter-spacing: .02em; }
.logo__tag { font-size: .62rem; letter-spacing: .34em; text-transform: uppercase; margin-top: 7px; opacity: .75; }

.nav { display: flex; align-items: center; gap: 40px; }
.nav a {
  font-size: .76rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  position: relative;
  padding-block: 6px;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .4s var(--ease);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav .nav__cta { border: 1px solid currentColor; padding: 11px 22px; }
.nav .nav__cta::after { display: none; }
.nav .nav__cta:hover { background: var(--ink); color: var(--ivory); border-color: var(--ink); }

/* header over the hero image */
.header--overlay { color: #fff; }
.header--overlay .nav .nav__cta:hover { background: #fff; color: var(--ink); border-color: #fff; }

/* header after scrolling / on inner pages */
.header.is-solid {
  background: rgba(247, 243, 238, .96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line);
  color: var(--ink);
}
.header.is-solid .header__inner { height: 76px; }
.header.is-solid .nav .nav__cta:hover { background: var(--ink); color: var(--ivory); border-color: var(--ink); }

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  color: inherit;
  width: 44px; height: 44px;
  padding: 0;
  cursor: pointer;
  position: relative;
  z-index: 60;
}
.menu-toggle span {
  position: absolute; left: 10px; right: 10px;
  height: 1px; background: currentColor;
  transition: transform .4s var(--ease), top .4s var(--ease);
}
.menu-toggle span:nth-child(1) { top: 18px; }
.menu-toggle span:nth-child(2) { top: 26px; }
.menu-open .menu-toggle span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { top: 22px; transform: rotate(-45deg); }

/* Hero (home) -------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0;
  background: url("../img/hero.jpg") center / cover no-repeat;
  transform: scale(1.06);
  animation: heroZoom 14s var(--ease) forwards;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(20,17,14,.55) 0%, rgba(20,17,14,0) 65%),
    linear-gradient(180deg, rgba(20,17,14,.55) 0%, rgba(20,17,14,0) 28%),
    linear-gradient(0deg, rgba(20,17,14,.78) 0%, rgba(20,17,14,.15) 60%);
}
@keyframes heroZoom { to { transform: scale(1); } }

.hero__content { position: relative; z-index: 2; width: 100%; padding-bottom: clamp(70px, 12vh, 130px); }
.hero .eyebrow { color: #e9d9c4; }
.hero h1 { max-width: 12em; margin-bottom: .45em; }
.hero h1 em { color: #e9d9c4; }
.hero p { color: rgba(255,255,255,.85); font-size: 1.15rem; max-width: 34em; margin-bottom: 2.4em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; }
.hero__actions .btn:not(.btn--light) { background: #fff; color: var(--ink); border-color: #fff; }
.hero__actions .btn:not(.btn--light):hover { background: var(--bronze); color: #fff; border-color: var(--bronze); }

.hero__scroll {
  position: absolute; z-index: 2;
  right: var(--gutter); bottom: 48px;
  writing-mode: vertical-rl;
  font-size: .66rem; letter-spacing: .3em; text-transform: uppercase;
  color: rgba(255,255,255,.75);
  display: flex; align-items: center; gap: 16px;
}
.hero__scroll::after { content: ""; width: 1px; height: 60px; background: rgba(255,255,255,.55); }

/* Page header (inner pages) ------------------------------------------------ */
.page-head { padding-top: calc(76px + clamp(70px, 10vw, 130px)); padding-bottom: clamp(50px, 7vw, 90px); }
.page-head h1 { font-size: clamp(2.6rem, 5.6vw, 4.6rem); max-width: 14em; }
.page-head .lead { margin-top: 10px; }

/* Split layout ------------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 8vw, 120px);
  align-items: center;
}
.split--wide-text { grid-template-columns: 5fr 6fr; }

.frame { position: relative; }
.frame img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.frame::before {
  content: "";
  position: absolute;
  inset: 28px -28px -28px 28px;
  border: 1px solid var(--bronze);
  z-index: -1;
  opacity: .55;
}
.frame--left::before { inset: 28px 28px -28px -28px; }

.signature { font-family: var(--serif); font-style: italic; font-size: 2.1rem; color: var(--ink); margin-top: 8px; }

/* Services ----------------------------------------------------------------- */
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  margin-top: 60px;
}
.service { padding: 48px 40px 48px 0; border-right: 1px solid var(--line); }
.service + .service { padding-left: 40px; }
.service:last-child { border-right: 0; padding-right: 0; }
.service__num { font-family: var(--serif); font-size: 1rem; color: var(--bronze); letter-spacing: .1em; display: block; margin-bottom: 26px; }
.service p { font-size: .98rem; }

.section-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap; }
.section-top h2 { margin-bottom: 0; }

/* Listings ----------------------------------------------------------------- */
.listings {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 56px 32px;
  margin-top: 60px;
}
.listing { display: block; }
.listing__img { position: relative; overflow: hidden; aspect-ratio: 4 / 5; background: var(--sand); }
.listing__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.listing:hover .listing__img img { transform: scale(1.05); }
.listing__badge {
  position: absolute; top: 18px; left: 18px;
  background: rgba(255,253,250,.94);
  font-size: .64rem; letter-spacing: .24em; text-transform: uppercase;
  padding: 7px 13px;
}
.listing__body { padding-top: 24px; }
.listing__loc { font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.listing h3 { margin: 8px 0 14px; transition: color .3s var(--ease); }
.listing:hover h3 { color: var(--bronze); }
.listing__meta {
  display: flex; flex-wrap: wrap; gap: 6px 22px;
  font-size: .86rem; color: var(--ink-soft);
  padding-top: 14px; border-top: 1px solid var(--line);
}
.listing__price { font-family: var(--serif); font-size: 1.45rem; color: var(--ink); margin-top: 12px; }
.listing[hidden] { display: none; }

.filters { display: flex; flex-wrap: wrap; gap: 10px 34px; margin-top: 10px; }
.filters button {
  background: none; border: 0; padding: 6px 0; cursor: pointer;
  font-family: var(--sans); font-size: .76rem; font-weight: 300;
  letter-spacing: .22em; text-transform: uppercase; color: var(--muted);
  border-bottom: 1px solid transparent;
  transition: color .3s, border-color .3s;
}
.filters button:hover { color: var(--ink); }
.filters button.is-active { color: var(--ink); border-color: var(--bronze); }

/* Stats -------------------------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; }
.stat__num { font-family: var(--serif); font-size: clamp(3rem, 5vw, 4.4rem); line-height: 1; color: var(--ink); }
.stat__label { font-size: .72rem; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); margin-top: 14px; }

/* Quote -------------------------------------------------------------------- */
.quote { text-align: center; max-width: 880px; margin: 0 auto; }
.quote__mark { font-family: var(--serif); font-size: 6rem; line-height: .5; color: var(--bronze); display: block; height: 44px; }
.quote blockquote {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  line-height: 1.35;
  font-style: italic;
  color: var(--ink);
}
.quote cite { display: block; margin-top: 34px; font-style: normal; font-size: .74rem; letter-spacing: .26em; text-transform: uppercase; color: var(--muted); }

.testimonials { position: relative; }
.testimonial { display: none; }
.testimonial.is-active { display: block; animation: fadeIn .8s var(--ease); }
.dots { display: flex; justify-content: center; gap: 12px; margin-top: 40px; }
.dots button {
  width: 34px; height: 1px; border: 0; padding: 10px 0; cursor: pointer;
  background: linear-gradient(var(--line), var(--line)) center / 100% 1px no-repeat;
}
.dots button.is-active { background-image: linear-gradient(var(--ink), var(--ink)); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Image band --------------------------------------------------------------- */
.band {
  position: relative;
  padding-block: clamp(110px, 16vw, 200px);
  color: #fff;
  text-align: center;
  background: center / cover no-repeat;
  background-attachment: fixed;
}
.band::before { content: ""; position: absolute; inset: 0; background: rgba(24,20,17,.6); }
.band > * { position: relative; }
.band h2 { max-width: 15em; margin-inline: auto; }
.band p { color: rgba(255,255,255,.85); max-width: 34em; margin: 0 auto 2.4em; }
.band .eyebrow { color: #e9d9c4; }

/* Process steps ------------------------------------------------------------ */
.steps { counter-reset: step; margin-top: 60px; border-top: 1px solid var(--line); }
.step {
  display: grid;
  grid-template-columns: 120px 1fr 1.3fr;
  gap: 30px;
  padding-block: 44px;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--serif);
  font-size: 2.6rem;
  color: var(--bronze);
  line-height: 1;
}
.step h3 { margin: 0; }
.step p { margin: 0; }

/* Values ------------------------------------------------------------------- */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 50px; margin-top: 60px; }
.value h3 { padding-top: 26px; border-top: 1px solid var(--bronze); }

/* FAQ ---------------------------------------------------------------------- */
.faq { max-width: 860px; margin: 50px auto 0; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 28px 50px 28px 0;
  font-family: var(--serif);
  font-size: 1.45rem;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute; right: 4px; top: 50%;
  transform: translateY(-50%);
  font-family: var(--sans); font-weight: 200; font-size: 1.6rem;
  color: var(--bronze);
  transition: transform .35s var(--ease);
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding-bottom: 28px; margin: 0; max-width: 46em; }

/* Contact ------------------------------------------------------------------ */
.contact { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(40px, 8vw, 120px); }
.contact__item { padding-block: 26px; border-bottom: 1px solid var(--line); }
.contact__item:first-child { border-top: 1px solid var(--line); }
.contact__label { font-size: .7rem; letter-spacing: .26em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 6px; }
.contact__value { font-family: var(--serif); font-size: 1.6rem; line-height: 1.3; }
.contact__value a { transition: color .3s; }
.contact__value a:hover { color: var(--bronze); }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 34px 30px; }
.field { display: flex; flex-direction: column; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .7rem; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  font: inherit;
  font-size: 1.05rem;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 10px 0;
  outline: none;
  transition: border-color .3s;
  -webkit-appearance: none;
  appearance: none;
}
.field select {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%239c7a54'/%3E%3C/svg%3E") right 4px center no-repeat;
  cursor: pointer;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--bronze); }
.consent { grid-column: 1 / -1; display: flex; gap: 14px; font-size: .85rem; color: var(--muted); line-height: 1.6; }
.consent input { accent-color: var(--bronze); margin-top: 4px; flex: none; }
.form__note { grid-column: 1 / -1; font-size: .92rem; color: var(--bronze); margin: 0; }

/* Footer ------------------------------------------------------------------- */
.footer { background: var(--ink); color: rgba(255,255,255,.7); padding-top: clamp(70px, 9vw, 110px); font-size: .92rem; }
.footer a:hover { color: #fff; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.footer .logo { color: #fff; margin-bottom: 22px; }
.footer p { color: rgba(255,255,255,.6); max-width: 22em; }
.footer h4 { font-weight: 400; font-size: .7rem; letter-spacing: .26em; text-transform: uppercase; color: #d8c3a5; margin: 6px 0 22px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer__bottom {
  margin-top: 80px;
  padding-block: 28px;
  border-top: 1px solid rgba(255,255,255,.12);
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  font-size: .78rem; color: rgba(255,255,255,.45);
}

/* Reveal on scroll --------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .12s; }
.reveal-d2 { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* Responsive --------------------------------------------------------------- */
@media (max-width: 1024px) {
  .listings { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__grid > :first-child { grid-column: 1 / -1; }
  .step { grid-template-columns: 80px 1fr; }
  .step p { grid-column: 2; }
}

@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .nav {
    position: fixed; inset: 0;
    flex-direction: column; justify-content: center; gap: 30px;
    background: var(--ivory); color: var(--ink);
    opacity: 0; visibility: hidden;
    transition: opacity .4s var(--ease), visibility .4s;
  }
  .nav a { font-size: .9rem; }
  .menu-open .nav { opacity: 1; visibility: visible; }
  /* backdrop-filter would make the header the containing block of the fixed menu */
  .menu-open .header {
    color: var(--ink);
    background: var(--ivory);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .nav { height: 100vh; height: 100dvh; overflow-y: auto; }

  .split, .split--wide-text, .contact { grid-template-columns: 1fr; }
  .split .frame { max-width: 520px; }
  .services, .values { grid-template-columns: 1fr; }
  .service, .service + .service { padding: 38px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 50px 20px; }
  .band { background-attachment: scroll; }
  .hero__scroll { display: none; }
  .hero::after { background: linear-gradient(0deg, rgba(20,17,14,.85) 0%, rgba(20,17,14,.45) 70%, rgba(20,17,14,.5) 100%); }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .listings { grid-template-columns: 1fr; gap: 28px; }
  .listing {
    background: var(--paper);
    border: 1px solid var(--line);
    box-shadow: 0 10px 30px -18px rgba(31, 28, 25, .35);
  }
  .listing__img { aspect-ratio: 4 / 3; }
  .listing__body { padding: 20px 20px 24px; }
  .listing h3 { margin-bottom: 12px; }
  .section--paper .listing { background: #fff; }
  .form { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .frame::before { inset: 16px -12px -16px 16px; }
  .frame--left::before { inset: 16px 16px -16px -12px; }
  .step { grid-template-columns: 1fr; gap: 14px; }
  .step p { grid-column: auto; }
}

.footer__links { display: flex; flex-wrap: wrap; gap: 8px 28px; }

/* Listing extras ----------------------------------------------------------- */
.listing__status {
  position: absolute; top: 18px; right: 18px;
  background: var(--ink); color: var(--ivory);
  font-size: .64rem; letter-spacing: .24em; text-transform: uppercase;
  padding: 7px 13px;
}
.listing__video {
  position: absolute; left: 18px; bottom: 18px;
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,253,250,.92); color: var(--ink);
  font-size: .8rem; padding-left: 3px;
}
.listings__empty { grid-column: 1 / -1; color: var(--muted); margin: 0; }

/* Single offer ------------------------------------------------------------- */
.link-back {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: .74rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 40px; transition: color .3s, gap .3s var(--ease);
}
.link-back::before { content: "←"; font-family: var(--serif); font-size: 1.1rem; letter-spacing: 0; }
.link-back:hover { color: var(--ink); gap: 18px; }

.offer-head { padding-bottom: clamp(36px, 5vw, 60px); }
.offer-head__row { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px 60px; flex-wrap: wrap; }
.offer-head h1 { margin-bottom: 0; font-size: clamp(2.4rem, 5vw, 4rem); }
.offer-head__price { font-family: var(--serif); font-size: clamp(1.8rem, 3vw, 2.5rem); line-height: 1.2; text-align: right; }
.offer-status {
  display: block; width: fit-content; margin: 0 0 10px auto;
  font-family: var(--sans); font-size: .66rem; letter-spacing: .24em; text-transform: uppercase;
  background: var(--ink); color: var(--ivory); padding: 6px 12px;
}

.offer { padding-bottom: var(--section); }
.gallery__main {
  display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in;
  background: var(--sand); aspect-ratio: 16 / 9; overflow: hidden;
}
.gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumbs { display: flex; gap: 12px; margin-top: 12px; overflow-x: auto; padding-bottom: 4px; }
.gallery__thumbs button {
  flex: none; width: 116px; aspect-ratio: 4 / 3; padding: 0; border: 0; cursor: pointer;
  background: var(--sand); opacity: .55; transition: opacity .3s; outline-offset: 2px;
}
.gallery__thumbs button.is-active, .gallery__thumbs button:hover { opacity: 1; }
.gallery__thumbs button.is-active { outline: 1px solid var(--bronze); }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }

.offer__grid {
  display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(40px, 7vw, 100px);
  margin-top: clamp(50px, 7vw, 90px); align-items: start;
}
.offer__desc p { font-size: 1.05rem; }
.offer__video { margin-top: 50px; }
.offer__video video { width: 100%; max-height: 80vh; background: #000; display: block; }
.offer__card {
  position: sticky; top: 110px;
  background: var(--paper); border: 1px solid var(--line); padding: 36px;
}
.params { margin: 0 0 30px; }
.params div { display: flex; justify-content: space-between; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.params div:first-child { padding-top: 0; }
.params dt { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.params dd { margin: 0; text-align: right; font-family: var(--serif); font-size: 1.2rem; line-height: 1.3; }
.offer__card .btn { width: 100%; justify-content: center; }
.offer__phone { display: block; text-align: center; margin-top: 16px; font-size: .9rem; color: var(--muted); }
.offer__phone:hover { color: var(--ink); }

.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(20,17,14,.95);
  display: flex; align-items: center; justify-content: center;
  padding: 60px 70px;
}
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; cursor: pointer; font-family: var(--sans); font-weight: 200; opacity: .8; }
.lightbox button:hover { opacity: 1; }
.lightbox__close { top: 14px; right: 20px; font-size: 2.6rem; line-height: 1; }
.lightbox__nav { top: 50%; transform: translateY(-50%); font-size: 3.4rem; padding: 20px; }
.lightbox__nav--prev { left: 6px; }
.lightbox__nav--next { right: 6px; }
.lightbox__count { position: absolute; bottom: 20px; left: 0; right: 0; text-align: center; color: rgba(255,255,255,.7); font-size: .8rem; letter-spacing: .2em; }

@media (max-width: 860px) {
  .offer__grid { grid-template-columns: 1fr; }
  .offer__card { position: static; }
  .offer-head__price { text-align: left; }
  .offer-status { margin-left: 0; }
  .lightbox { padding: 50px 0; }
  .gallery__main { aspect-ratio: 4 / 3; }
}

.listing__meta:empty { display: none; }

/* Reviews ------------------------------------------------------------------ */
.stars { display: inline-flex; gap: 3px; color: var(--line); font-size: 1.05rem; letter-spacing: 0; }
.stars .on { color: var(--bronze); }
.reviews-summary { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 6px 0 0; color: var(--ink-soft); }
.reviews-summary strong { font-family: var(--serif); font-size: 1.6rem; font-weight: 400; color: var(--ink); }

.reviews { columns: 2 340px; column-gap: 32px; }
.review {
  break-inside: avoid; margin: 0 0 32px;
  background: #fff; border: 1px solid var(--line); padding: 34px 34px 30px;
}
.review blockquote {
  margin: 18px 0 24px;
  font-family: var(--serif); font-style: italic; font-size: 1.35rem; line-height: 1.45; color: var(--ink);
}
.review footer { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; padding-top: 18px; border-top: 1px solid var(--line); font-size: .85rem; color: var(--muted); }
.review footer strong { font-weight: 400; color: var(--ink); font-size: .95rem; letter-spacing: .04em; }
.review footer span + span::before { content: "·"; margin-right: 14px; }

.review-form-wrap { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(40px, 8vw, 110px); align-items: start; }
.field__label { font-size: .7rem; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.field--hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__error { grid-column: 1 / -1; margin: 0; color: #a3402f; font-size: .92rem; }

.stars-input { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; padding-top: 4px; }
.stars-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.stars-input label { font-size: 2rem; line-height: 1; color: var(--line); cursor: pointer; transition: color .15s; letter-spacing: 0; text-transform: none; margin: 0; }
.stars-input input:checked ~ label,
.stars-input label:hover, .stars-input label:hover ~ label { color: var(--bronze); }
.stars-input input:focus-visible + label { outline: 1px solid var(--bronze); outline-offset: 2px; }

.testimonials__more { margin-top: 36px; }

@media (max-width: 860px) {
  .review-form-wrap { grid-template-columns: 1fr; }
  .review { padding: 26px 22px 22px; }
}

/* WhatsApp (phones only) --------------------------------------------------- */
.only-mobile { display: none; }
@media (max-width: 860px) { .only-mobile { display: block; } }
.btn-whatsapp {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  width: 100%; margin-top: 12px; padding: 18px 24px;
  background: #1f4a38; color: #f3efe6;
  font-size: .76rem; letter-spacing: .24em; text-transform: uppercase; font-weight: 400;
  transition: background .35s var(--ease);
}
.btn-whatsapp svg { color: #8fd5a6; flex: none; }
.btn-whatsapp::after { content: "→"; font-family: var(--serif); font-size: 1.15rem; letter-spacing: 0; color: #8fd5a6; transition: transform .35s var(--ease); }
.btn-whatsapp:hover, .btn-whatsapp:active { background: #173a2c; }
.btn-whatsapp:hover::after { transform: translateX(4px); }
