/* ==========================================================================
   Hof Sonnenwiese – Stylesheet
   Vanilla CSS, keine Abhängigkeiten.
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  --bg: #f8f3e8;
  --bg-soft: #f1e9d9;
  --surface: #fffdf7;
  --surface-sage: #eef1e4;
  --ink: #243127;
  --ink-soft: #4d5a4c;
  --muted: #6b7663;
  --line: #e2d7c3;
  --line-soft: #ece4d3;
  --green: #2f4a35;
  --green-deep: #22362a;
  --green-soft: #7d9470;
  --green-tint: #dfe7d5;
  --terra: #b05a3c;
  --terra-deep: #95462d;
  --gold: #d9a441;
  --gold-soft: #f0d9a8;

  --font-display: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --font-body: "Avenir Next", Avenir, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-script: "Snell Roundhand", "Segoe Script", "Bradley Hand", cursive;

  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 28px;
  --radius-xl: 40px;

  --shadow-sm: 0 4px 16px rgba(58, 52, 38, 0.07);
  --shadow-md: 0 14px 34px -12px rgba(46, 48, 34, 0.22);
  --shadow-lg: 0 30px 70px -28px rgba(32, 42, 30, 0.38);

  --container: 1180px;
  --header-h: 86px;
}

/* ---------- 2. Reset & base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-wrap: balance;
}

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--terra-deep); }

ul, ol { margin: 0; padding: 0; list-style: none; }

button { font: inherit; color: inherit; }

::selection { background: var(--gold-soft); color: var(--ink); }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- 3. Utilities ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 32px;
}

.container--narrow { max-width: 860px; }

.section { padding: clamp(64px, 8vw, 108px) 0; }
.section--tight { padding: clamp(48px, 5vw, 72px) 0; }
.section--soft { background: var(--bg-soft); }
.section--sage { background: var(--surface-sage); }
.section--green { background: var(--green); color: #f3eddf; }
.section--green h2,
.section--green h3 { color: #fbf6e9; }

body.nav-open,
body.lightbox-open { overflow: hidden; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: 10px; left: 16px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--green);
  color: #fffdf7;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}
.skip-link:focus { transform: none; color: #fffdf7; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terra-deep);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
  opacity: 0.65;
}
.section--green .eyebrow { color: var(--gold-soft); }

.display { font-size: clamp(2rem, 3.8vw, 3.1rem); }
.h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }

.lead {
  font-size: clamp(1.06rem, 1.35vw, 1.2rem);
  line-height: 1.75;
  color: var(--ink-soft);
}
.section--green .lead { color: #dfe5d5; }

.muted { color: var(--muted); }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }

.section-head { max-width: 680px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head p:not(.eyebrow) { margin-top: 18px; color: var(--ink-soft); }

.section-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(32px, 4vw, 48px);
}
.section-head-row .section-head { margin-bottom: 0; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--green);
  text-decoration: none;
  white-space: nowrap;
}
.link-arrow svg { width: 18px; height: 18px; transition: transform 0.2s ease; }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- 4. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0.9em 1.5em;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn--primary {
  background: var(--green);
  color: #fdfaf1;
  box-shadow: 0 10px 24px -12px rgba(34, 54, 42, 0.6);
}
.btn--primary:hover {
  background: var(--green-deep);
  color: #fffdf7;
  transform: translateY(-2px);
  box-shadow: 0 16px 30px -14px rgba(34, 54, 42, 0.65);
}
.btn--terra { background: var(--terra); color: #fffaf3; }
.btn--terra:hover { background: var(--terra-deep); color: #fff; transform: translateY(-2px); }
.btn--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}
.btn--ghost:hover { border-color: var(--green-soft); background: var(--surface); color: var(--green-deep); transform: translateY(-2px); }
.btn--light { background: #fbf6e9; color: var(--green-deep); }
.btn--light:hover { background: #fffdf7; color: var(--green-deep); transform: translateY(-2px); }
.btn--outline-light { border-color: rgba(251, 246, 233, 0.4); color: #fbf6e9; background: transparent; }
.btn--outline-light:hover { background: rgba(251, 246, 233, 0.12); color: #fff; border-color: rgba(251, 246, 233, 0.7); }
.btn--sm { min-height: 44px; padding: 0.6em 1.15em; font-size: 0.9rem; }
.btn--block { width: 100%; }

/* ---------- 5. Header / Navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 243, 232, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}
.site-header.is-scrolled {
  background: rgba(248, 243, 232, 0.95);
  border-bottom-color: var(--line-soft);
  box-shadow: 0 10px 30px -24px rgba(36, 49, 39, 0.4);
}
.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}
.brand:hover { color: var(--ink); }
.brand-mark { width: 44px; height: 44px; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong {
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.brand-text small {
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 3px;
}

.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav ul { display: flex; align-items: center; gap: 26px; }
.site-nav a:not(.btn) {
  position: relative;
  display: inline-block;
  padding: 6px 0;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.2s ease;
}
.site-nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1.5px;
  background: var(--terra);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.site-nav a:not(.btn):hover { color: var(--ink); }
.site-nav a:not(.btn):hover::after,
.site-nav a.is-active::after { transform: scaleX(1); }
.site-nav a.is-active { color: var(--ink); font-weight: 600; }
.nav-cta { margin-left: 4px; }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  cursor: pointer;
}
.nav-toggle-bars { position: relative; width: 20px; height: 14px; }
.nav-toggle-bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-toggle-bars span:first-child { top: 0; }
.nav-toggle-bars span:last-child { bottom: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:first-child { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:last-child { transform: translateY(-6px) rotate(-45deg); }

/* ---------- 6. Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(40px, 6vw, 72px) 0 clamp(64px, 8vw, 104px);
}
.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto auto;
  width: 720px; height: 720px;
  background: radial-gradient(circle, rgba(217, 164, 65, 0.18), transparent 62%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  position: relative;
}
.hero-copy { max-width: 560px; }
.hero h1 {
  font-size: clamp(2.6rem, 4.9vw, 4.35rem);
  line-height: 1.02;
  margin-bottom: 24px;
}
.hero h1 em {
  font-style: italic;
  color: var(--terra);
  position: relative;
  white-space: nowrap;
}
.hero h1 em::after {
  content: "";
  position: absolute;
  left: 2%; right: 2%;
  bottom: 0.02em;
  height: 0.16em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 12' preserveAspectRatio='none'%3E%3Cpath d='M2 9C22 3 46 2 98 6' fill='none' stroke='%23d9a441' stroke-width='3.5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
  opacity: 0.85;
}
.hero .lead { max-width: 490px; margin-bottom: 30px; }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 40px;
}
.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 34px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.hero-facts li { display: flex; flex-direction: column; gap: 2px; }
.hero-facts strong {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  line-height: 1.1;
  color: var(--ink);
}
.hero-facts span {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-visual { position: relative; }
.hero-visual::before {
  content: "";
  position: absolute;
  inset: -26px -26px auto auto;
  width: 210px; height: 210px;
  border: 1.5px dashed rgba(176, 90, 60, 0.35);
  border-radius: 50%;
  animation: spin 70s linear infinite;
  pointer-events: none;
}
.hero-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 4.35;
  border-radius: 230px 230px var(--radius-lg) var(--radius-lg);
  border: 8px solid rgba(255, 253, 247, 0.9);
  background: var(--bg-soft);
  box-shadow: var(--shadow-lg);
}
.hero-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.01);
}
.hero-badge {
  position: absolute;
  top: 30px; left: -18px;
  display: grid;
  place-items: center;
  width: 108px; height: 108px;
  padding: 12px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px dashed var(--terra);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transform: rotate(-7deg);
}
.hero-badge strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.55rem;
  line-height: 1;
  color: var(--terra-deep);
}
.hero-badge span {
  display: block;
  margin-top: 4px;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.3;
}
.hero-note {
  position: absolute;
  right: -14px; bottom: 34px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: var(--surface);
  border-radius: 999px;
  box-shadow: var(--shadow-md);
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--ink-soft);
  transform: rotate(2deg);
}
.hero-note svg { width: 20px; height: 20px; color: var(--terra); flex-shrink: 0; }

.hero-wave {
  display: block;
  width: 100%;
  height: 48px;
  margin-top: -20px;
  color: var(--bg-soft);
}

/* ---------- 7. Split / intro ---------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
}
.split--reverse .split-media { order: -1; }
.split-copy h2 { margin-bottom: 22px; }
.split-copy .lead { margin-bottom: 24px; }
.split-copy > p { color: var(--ink-soft); }

.check-list { display: grid; gap: 13px; margin: 26px 0 30px; }
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.98rem;
  color: var(--ink-soft);
}
.check-list svg {
  width: 21px; height: 21px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--green-soft);
}

.signature {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.signature-name {
  font-family: var(--font-script);
  font-size: 2rem;
  line-height: 1;
  color: var(--terra-deep);
  transform: rotate(-3deg);
}
.signature small { font-size: 0.78rem; color: var(--muted); line-height: 1.4; }

.split-media { position: relative; padding: 0 0 44px 38px; }
.split-media__main {
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 4.5;
}
.split-media__main img { width: 100%; height: 100%; object-fit: cover; }
.split-media__inset {
  position: absolute;
  left: 0; bottom: 0;
  width: 46%;
  overflow: hidden;
  border-radius: var(--radius);
  border: 6px solid var(--bg-soft);
  box-shadow: var(--shadow-md);
  aspect-ratio: 1 / 1;
}
.split-media__inset img { width: 100%; height: 100%; object-fit: cover; }
.split-media__stamp {
  position: absolute;
  top: 26px; right: -16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 20px;
  background: var(--surface);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  transform: rotate(3deg);
}
.split-media__stamp strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1;
  color: var(--green);
}
.split-media__stamp span { font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

/* ---------- 8. Features ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.feature-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 30px 26px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--line);
}
.icon-badge {
  display: grid;
  place-items: center;
  width: 54px; height: 54px;
  border-radius: 50%;
  background: var(--green-tint);
  color: var(--green);
}
.icon-badge svg { width: 26px; height: 26px; }
.icon-badge--terra { background: #f2ded4; color: var(--terra-deep); }
.icon-badge--gold { background: #f6ead1; color: #a5772f; }
.feature-card h3 { font-size: 1.22rem; }
.feature-card p { font-size: 0.93rem; color: var(--muted); line-height: 1.65; margin: 0; }
.feature-card .link-arrow { margin-top: auto; font-size: 0.88rem; }

/* ---------- 9. Apartment cards ---------- */
.apartment-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}
.apartment-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.apartment-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.apartment-card__media { position: relative; overflow: hidden; aspect-ratio: 4 / 3; }
.apartment-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.apartment-card:hover .apartment-card__media img { transform: scale(1.045); }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  border-radius: 999px;
  background: rgba(255, 253, 247, 0.92);
  backdrop-filter: blur(6px);
  font-size: 0.71rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.apartment-card__badge { position: absolute; top: 16px; left: 16px; }
.apartment-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 26px 26px 24px;
}
.apartment-card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.apartment-card__head h3 { font-size: 1.55rem; margin-bottom: 4px; }
.apartment-card__meta { font-size: 0.82rem; color: var(--muted); letter-spacing: 0.02em; }
.apartment-card__rating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink-soft);
  white-space: nowrap;
  padding-top: 6px;
}
.apartment-card__rating svg { width: 14px; height: 14px; color: var(--gold); }
.apartment-card__desc { font-size: 0.93rem; color: var(--muted); margin: 12px 0 20px; }
.apartment-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
}
.price { display: flex; flex-direction: column; line-height: 1.2; }
.price strong {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--ink);
}
.price span { font-size: 0.72rem; color: var(--muted); letter-spacing: 0.04em; }

.apartment-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--surface);
}
.tag--green { background: var(--green-tint); border-color: transparent; color: var(--green-deep); }

/* ---------- 10. Gallery & lightbox ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 200px;
  gap: 16px;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: var(--bg-soft);
  cursor: zoom-in;
}
.gallery-item--wide { grid-column: span 2; grid-row: span 2; }
.gallery-item--tall { grid-row: span 2; }
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(28, 40, 27, 0.55), transparent 55%);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item:hover::after { opacity: 1; }
.gallery-item__label {
  position: absolute;
  left: 16px; bottom: 14px;
  z-index: 1;
  color: #fffdf7;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.gallery-item:hover .gallery-item__label { opacity: 1; transform: none; }
.gallery-item__zoom {
  position: absolute;
  top: 14px; right: 14px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255, 253, 247, 0.92);
  color: var(--ink);
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.gallery-item:hover .gallery-item__zoom { opacity: 1; transform: none; }
.gallery-item__zoom svg { width: 17px; height: 17px; }

.lightbox {
  width: min(1080px, 92vw);
  max-height: 92vh;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: #131b14;
  color: #f9f5ea;
  box-shadow: var(--shadow-lg);
}
.lightbox::backdrop { background: rgba(18, 26, 18, 0.82); backdrop-filter: blur(4px); }
.lightbox[open] { animation: lightbox-in 0.25s ease; }
.lightbox-inner { position: relative; display: flex; flex-direction: column; }
.lightbox img {
  width: 100%;
  max-height: 76vh;
  object-fit: contain;
  background: #0f150f;
  border-radius: var(--radius) var(--radius) 0 0;
}
.lightbox-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 20px;
  font-size: 0.9rem;
  color: #d8dfce;
}
.lightbox-close {
  position: absolute;
  top: 12px; right: 12px;
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(18, 26, 18, 0.65);
  color: #fffdf7;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.lightbox-close:hover { background: var(--terra); }
.lightbox-close svg { width: 20px; height: 20px; }
.lightbox-nav {
  display: flex;
  gap: 8px;
}
.lightbox-nav button {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border: 1px solid rgba(251, 246, 233, 0.3);
  border-radius: 50%;
  background: transparent;
  color: #f9f5ea;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.lightbox-nav button:hover { background: rgba(251, 246, 233, 0.14); }
.lightbox-nav svg { width: 18px; height: 18px; }

/* ---------- 11. Stats band ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.stats li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 28px 24px;
  background: var(--surface);
  text-align: center;
}
.stats strong {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 600;
  line-height: 1;
  color: var(--green);
}
.stats span { font-size: 0.76rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

/* ---------- 12. Testimonials ---------- */
.quote-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.quote-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 32px 28px 26px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-sm);
}
.stars { display: flex; gap: 3px; color: var(--gold); }
.stars svg { width: 17px; height: 17px; }
.quote-card blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.14rem;
  font-style: italic;
  line-height: 1.55;
  color: var(--ink-soft);
}
.quote-person {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
}
.avatar {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--green-tint);
  color: var(--green-deep);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
}
.avatar--terra { background: #f2ded4; color: var(--terra-deep); }
.avatar--gold { background: #f6ead1; color: #8c6526; }
.quote-person strong { display: block; font-size: 0.9rem; line-height: 1.3; }
.quote-person span { font-size: 0.78rem; color: var(--muted); }

/* ---------- 13. CTA banner ---------- */
.cta-banner {
  position: relative;
  overflow: hidden;
  padding: clamp(44px, 6vw, 72px);
  border-radius: var(--radius-xl);
  background: var(--green);
  color: #f3eddf;
  box-shadow: var(--shadow-lg);
}
.cta-banner::before {
  content: "";
  position: absolute;
  top: -120px; right: -80px;
  width: 360px; height: 360px;
  border: 1px solid rgba(240, 217, 168, 0.28);
  border-radius: 50%;
}
.cta-banner::after {
  content: "";
  position: absolute;
  bottom: -170px; left: 32%;
  width: 420px; height: 420px;
  border: 1px dashed rgba(240, 217, 168, 0.18);
  border-radius: 50%;
  pointer-events: none;
}
.cta-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
  gap: 34px;
  align-items: center;
}
.cta-banner h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); margin-bottom: 16px; }
.cta-banner p { color: #d9e0cf; max-width: 560px; }
.cta-actions { display: flex; flex-direction: column; gap: 12px; align-items: stretch; }
.cta-actions small { font-size: 0.78rem; color: #b9c5ad; text-align: center; }
.cta-phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: #f3eddf;
  text-decoration: none;
}
.cta-phone:hover { color: var(--gold-soft); }
.cta-phone svg { width: 18px; height: 18px; }

/* ---------- 14. Footer ---------- */
.site-footer {
  background: var(--green-deep);
  color: #dbe3d1;
  padding: clamp(56px, 7vw, 80px) 0 0;
  margin-top: clamp(64px, 8vw, 100px);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr 0.9fr 1.1fr;
  gap: 36px;
  padding-bottom: 48px;
}
.footer-brand .brand { color: #fbf6e9; margin-bottom: 18px; }
.footer-brand .brand:hover { color: #fff; }
.footer-brand .brand-text small { color: #a8b79c; }
.footer-brand p { font-size: 0.9rem; color: #b6c3a9; max-width: 320px; }
.footer-social { display: flex; gap: 10px; margin-top: 22px; }
.footer-social a {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border: 1px solid rgba(219, 227, 209, 0.22);
  border-radius: 50%;
  color: #dbe3d1;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.footer-social a:hover { background: var(--gold); border-color: var(--gold); color: var(--green-deep); }
.footer-social svg { width: 17px; height: 17px; }
.footer-col h3 {
  font-family: var(--font-body);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fbf6e9;
  margin: 6px 0 18px;
}
.footer-col ul { display: grid; gap: 9px; }
.footer-col a, .footer-col li { font-size: 0.9rem; color: #b6c3a9; }
.footer-col a { text-decoration: none; }
.footer-col a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer-contact li { display: flex; gap: 10px; line-height: 1.5; }
.footer-contact svg { width: 17px; height: 17px; flex-shrink: 0; margin-top: 4px; color: var(--gold); }
.footer-contact a { color: #dbe3d1; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 0;
  border-top: 1px solid rgba(219, 227, 209, 0.14);
  font-size: 0.78rem;
  color: #93a386;
}
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-bottom a { color: #a8b79c; text-decoration: none; }
.footer-bottom a:hover { color: #fff; }
.footer-note { font-size: 0.72rem; color: #7f9074; padding-bottom: 16px; }

/* ---------- 15. Page hero (subpages) ---------- */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(52px, 7vw, 92px) 0 clamp(48px, 6vw, 76px);
  background: var(--surface-sage);
  border-bottom: 1px solid var(--line-soft);
}
.page-hero::after {
  content: "";
  position: absolute;
  top: -90px; right: -60px;
  width: 380px; height: 380px;
  border: 1px dashed rgba(125, 148, 112, 0.4);
  border-radius: 50%;
  pointer-events: none;
}
.page-hero--image {
  background: var(--green);
  color: #f3eddf;
}
.page-hero--image::after { border-color: rgba(240, 217, 168, 0.25); }
.page-hero--image .eyebrow { color: var(--gold-soft); }
.page-hero--image h1 { color: #fbf6e9; }
.page-hero--image .lead { color: #d4ddc9; }
.page-hero h1 { font-size: clamp(2.3rem, 4.8vw, 3.8rem); max-width: 820px; margin-bottom: 20px; }
.page-hero .lead { max-width: 640px; }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  font-size: 0.78rem;
  color: var(--muted);
}
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--terra-deep); }
.breadcrumb [aria-current] { color: var(--ink-soft); font-weight: 600; }
.page-hero--image .breadcrumb,
.page-hero--image .breadcrumb a { color: #b7c6aa; }
.page-hero--image .breadcrumb [aria-current] { color: #f3eddf; }

/* ---------- 16. Apartments page ---------- */
.apartment-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(0, 0.97fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  padding: clamp(40px, 5vw, 64px) 0;
}
.apartment-detail + .apartment-detail { border-top: 1px solid var(--line); }
.apartment-detail.is-reversed .apartment-detail__media { order: 2; }
.apartment-detail__media { position: relative; }
.apartment-detail__frame {
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  aspect-ratio: 5 / 4;
  background: var(--bg-soft);
}
.apartment-detail__frame img { width: 100%; height: 100%; object-fit: cover; }
.apartment-detail__number {
  position: absolute;
  top: -18px; left: -18px;
  display: grid;
  place-items: center;
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px dashed var(--terra);
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--terra-deep);
  box-shadow: var(--shadow-sm);
}
.apartment-detail__body h2 { font-size: clamp(2rem, 3.4vw, 2.9rem); margin-bottom: 8px; }
.apartment-detail__meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 20px; font-size: 0.83rem; color: var(--muted); }
.apartment-detail__meta span { display: inline-flex; align-items: center; gap: 6px; }
.apartment-detail__meta svg { width: 15px; height: 15px; color: var(--green-soft); }
.apartment-detail__body > p { color: var(--ink-soft); }
.amenities {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 16px;
  margin: 24px 0 28px;
}
.amenities li { display: flex; align-items: flex-start; gap: 9px; font-size: 0.88rem; color: var(--ink-soft); }
.amenities svg { width: 17px; height: 17px; flex-shrink: 0; margin-top: 3px; color: var(--green-soft); }
.apartment-detail__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.apartment-detail__foot .price strong { font-size: 1.8rem; }

.compare-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  -webkit-overflow-scrolling: touch;
}
.compare { width: 100%; min-width: 660px; border-collapse: collapse; font-size: 0.9rem; }
.compare th, .compare td { padding: 15px 20px; text-align: left; border-bottom: 1px solid var(--line-soft); }
.compare thead th {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--bg-soft);
  font-weight: 700;
}
.compare thead th:first-child { color: var(--ink-soft); }
.compare tbody th { font-weight: 600; color: var(--ink-soft); width: 32%; }
.compare td { color: var(--ink-soft); }
.compare tbody tr:last-child th,
.compare tbody tr:last-child td { border-bottom: 0; }
.compare tbody tr:nth-child(even) { background: #fcf9f1; }
.compare .yes { color: var(--green); font-weight: 700; }
.compare .no { color: #b3aa97; }

.info-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.info-card {
  padding: 26px 24px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
}
.info-card h3 { font-size: 1.1rem; margin: 14px 0 8px; }
.info-card p { font-size: 0.86rem; color: var(--muted); margin: 0; line-height: 1.6; }
.info-card .icon-badge { width: 44px; height: 44px; }
.info-card .icon-badge svg { width: 21px; height: 21px; }

/* ---------- 17. Farm page ---------- */
.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 26px;
  counter-reset: step;
}
.timeline-item { position: relative; padding-top: 34px; }
.timeline-item::before {
  content: "";
  position: absolute;
  top: 8px; left: 0; right: 0;
  height: 1px;
  background: var(--line);
}
.timeline-item::after {
  content: "";
  position: absolute;
  top: 2px; left: 0;
  width: 13px; height: 13px;
  border-radius: 50%;
  background: var(--terra);
  box-shadow: 0 0 0 5px var(--bg);
}
.timeline-year {
  font-family: var(--font-display);
  font-size: 1.55rem;
  color: var(--terra-deep);
  margin-bottom: 6px;
  display: block;
}
.timeline-item h3 { font-size: 1.1rem; margin-bottom: 8px; }
.timeline-item p { font-size: 0.88rem; color: var(--muted); margin: 0; }

.animal-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.animal-card {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.animal-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.animal-card__visual {
  display: grid;
  place-items: center;
  min-height: 132px;
  font-size: 3.2rem;
  background: var(--surface-sage);
}
.animal-card:nth-child(2n) .animal-card__visual { background: #f3e7d6; }
.animal-card:nth-child(3n) .animal-card__visual { background: #e6ecdd; }
.animal-card__body { padding: 22px 24px 24px; }
.animal-card__body h3 { font-size: 1.2rem; margin-bottom: 6px; }
.animal-card__body p { font-size: 0.88rem; color: var(--muted); margin: 0; }
.animal-card .tag { margin-top: 14px; font-size: 0.68rem; }

.season-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.season-card {
  position: relative;
  overflow: hidden;
  padding: 26px 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line-soft);
}
.season-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--season, var(--green-soft));
}
.season-card h3 { font-size: 1.15rem; margin-bottom: 4px; }
.season-card small { display: block; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--season, var(--muted)); margin-bottom: 12px; }
.season-card p { font-size: 0.86rem; color: var(--muted); margin: 0; }
.season-card--spring { --season: #8faf72; }
.season-card--summer { --season: #d9a441; }
.season-card--autumn { --season: #b05a3c; }
.season-card--winter { --season: #7e98a0; }

/* ---------- 18. Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(32px, 5vw, 60px);
  align-items: start;
}
.contact-cards { display: grid; gap: 16px; }
.contact-card {
  display: flex;
  gap: 16px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
}
.contact-card .icon-badge { width: 46px; height: 46px; flex-shrink: 0; }
.contact-card .icon-badge svg { width: 21px; height: 21px; }
.contact-card h3 { font-size: 1.02rem; margin: 2px 0 4px; }
.contact-card p, .contact-card a { font-size: 0.88rem; color: var(--muted); line-height: 1.55; }
.contact-card a { text-decoration: none; }
.contact-card a:hover { color: var(--terra-deep); text-decoration: underline; }
.contact-card address { font-style: normal; font-size: 0.88rem; color: var(--muted); line-height: 1.6; }
.contact-hours { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); font-size: 0.8rem; color: var(--muted); }

.form-card {
  padding: clamp(26px, 4vw, 40px);
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.form-card h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin-bottom: 8px; }
.form-card > p { font-size: 0.9rem; color: var(--muted); margin-bottom: 26px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.form-field { display: flex; flex-direction: column; gap: 7px; }
.form-field--full { grid-column: 1 / -1; }
.form-field label { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.04em; color: var(--ink-soft); }
.form-field label .req { color: var(--terra); }
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 13px 15px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  background: #fdfaf3;
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.form-field textarea { min-height: 118px; resize: vertical; }
.form-field input::placeholder,
.form-field textarea::placeholder { color: #a79e8c; }
.form-field input:hover,
.form-field select:hover,
.form-field textarea:hover { border-color: #cfc1a9; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--green-soft);
  background: #fffdf7;
  box-shadow: 0 0 0 4px rgba(125, 148, 112, 0.18);
}
.form-field.has-error input,
.form-field.has-error select,
.form-field.has-error textarea { border-color: var(--terra); background: #fdf4ef; }
.form-field.has-error input:focus,
.form-field.has-error select:focus,
.form-field.has-error textarea:focus { box-shadow: 0 0 0 4px rgba(176, 90, 60, 0.16); }
.field-error { font-size: 0.76rem; color: var(--terra-deep); min-height: 0; display: none; }
.form-field.has-error .field-error { display: block; }
.form-hint { font-size: 0.76rem; color: var(--muted); }
.form-hint--nights { color: var(--green); font-weight: 600; min-height: 1.2em; }
.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.5;
}
.form-consent input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--green); flex-shrink: 0; }
.form-consent a { color: var(--green); }
.form-consent.has-error { color: var(--terra-deep); }
.form-footer { display: flex; flex-direction: column; gap: 14px; margin-top: 24px; }
.form-note { font-size: 0.73rem; color: var(--muted); text-align: center; }
.form-status {
  display: none;
  padding: 16px 18px;
  margin-top: 18px;
  border-radius: 12px;
  font-size: 0.9rem;
  line-height: 1.55;
}
.form-status.is-visible { display: block; animation: fade-in 0.35s ease; }
.form-status--success { background: #e7efdd; color: #2c462f; border: 1px solid #c6d8b6; }
.form-status--error { background: #f8e7de; color: #843c28; border: 1px solid #ecc7b6; }

.map-section { position: relative; }
.map-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  background: var(--bg-soft);
}
.map-frame img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.map-card {
  position: absolute;
  left: clamp(16px, 4vw, 40px);
  bottom: clamp(16px, 4vw, 40px);
  width: min(400px, calc(100% - 32px));
  padding: 24px;
  background: rgba(255, 253, 247, 0.96);
  backdrop-filter: blur(8px);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
.map-card h3 { font-size: 1.25rem; margin-bottom: 6px; }
.map-card p { font-size: 0.86rem; color: var(--muted); margin: 0; }

.directions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.direction-step { padding: 24px; background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); }
.direction-step span {
  display: inline-grid;
  place-items: center;
  width: 30px; height: 30px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--green-tint);
  color: var(--green-deep);
  font-size: 0.8rem;
  font-weight: 700;
}
.direction-step h3 { font-size: 1.05rem; margin-bottom: 6px; }
.direction-step p { font-size: 0.86rem; color: var(--muted); margin: 0; }

/* ---------- 19. FAQ ---------- */
.faq { display: grid; gap: 12px; max-width: 820px; margin-inline: auto; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.faq-item.is-open { border-color: var(--line); box-shadow: var(--shadow-sm); }
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  padding: 20px 22px;
  border: 0;
  background: transparent;
  text-align: left;
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}
.faq-icon {
  position: relative;
  flex-shrink: 0;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--bg-soft);
  transition: background-color 0.2s ease;
}
.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 11px; height: 1.6px;
  background: var(--green);
  transform: translate(-50%, -50%);
  transition: transform 0.25s ease;
}
.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item.is-open .faq-icon { background: var(--green-tint); }
.faq-item.is-open .faq-icon::after { transform: translate(-50%, -50%) rotate(0); }
.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}
.faq-item.is-open .faq-answer { grid-template-rows: 1fr; }
.faq-answer > div { overflow: hidden; }
.faq-answer p {
  padding: 0 22px 22px;
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.7;
}

/* ---------- 20. Legal pages ---------- */
.legal-wrap { max-width: 780px; margin-inline: auto; }
.legal-wrap h2 { font-size: clamp(1.4rem, 2.2vw, 1.8rem); margin: 40px 0 14px; }
.legal-wrap h2:first-of-type { margin-top: 0; }
.legal-wrap p, .legal-wrap li { font-size: 0.95rem; color: var(--ink-soft); }
.legal-wrap ul { list-style: disc; padding-left: 22px; display: grid; gap: 6px; margin-bottom: 18px; }
.legal-wrap a { color: var(--green); }
.notice {
  display: flex;
  gap: 14px;
  padding: 20px 22px;
  margin-bottom: 32px;
  background: var(--surface-sage);
  border: 1px solid #d5ddc7;
  border-radius: var(--radius);
  font-size: 0.88rem;
  color: var(--green-deep);
}
.notice svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; }
.legal-card { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius-lg); padding: clamp(24px, 5vw, 48px); }

/* ---------- 21. Error pages ---------- */
.error-page {
  display: grid;
  place-items: center;
  min-height: calc(100vh - var(--header-h) - 120px);
  padding: clamp(48px, 8vw, 96px) 0;
  text-align: center;
}
.error-inner { max-width: 620px; }
.error-number {
  font-family: var(--font-display);
  font-size: clamp(6rem, 18vw, 11rem);
  line-height: 0.9;
  color: var(--green);
  letter-spacing: -0.04em;
  position: relative;
  display: inline-block;
}
.error-number::after {
  content: "";
  position: absolute;
  top: 4%; right: -0.28em;
  width: 0.3em; height: 0.3em;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 0.05em var(--bg), 0 0 0 0.07em var(--gold-soft);
}
.error-inner h1 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin: 18px 0 14px; }
.error-inner p { color: var(--muted); max-width: 460px; margin-inline: auto; }
.error-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 30px; }
.error-links { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 0.85rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: center; }
.error-links a { color: var(--ink-soft); }

/* ---------- 22. Animation & reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--delay, 0ms);
}
[data-reveal].is-visible { opacity: 1; transform: none; }
.no-js [data-reveal] { opacity: 1; transform: none; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes lightbox-in { from { opacity: 0; transform: scale(0.97); } to { opacity: 1; transform: none; } }

/* ---------- 23. Responsive ---------- */
@media (max-width: 1100px) {
  .container { padding-inline: 26px; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .info-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-facts { gap: 14px 26px; }
  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; }
  .footer-col--contact { grid-column: 2 / -1; }
}

@media (max-width: 960px) {
  :root { --header-h: 74px; }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute;
    top: calc(100% - 6px);
    left: 26px;
    right: 26px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
  }
  .site-nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .site-nav a:not(.btn) { display: block; padding: 12px 14px; border-radius: 10px; }
  .site-nav a:not(.btn)::after { display: none; }
  .site-nav a:not(.btn):hover { background: var(--bg-soft); }
  .site-nav a.is-active { background: var(--green-tint); }
  .nav-cta { margin: 8px 2px 2px; }

  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-copy { max-width: 640px; }
  .hero-visual { max-width: 560px; margin-inline: auto; width: 100%; }
  .hero-frame { aspect-ratio: 4 / 3.9; }
  .hero h1 { max-width: 720px; }

  .split { grid-template-columns: 1fr; gap: 48px; }
  .split--reverse .split-media { order: 0; }
  .split-media { max-width: 560px; }
  .split-media__main { aspect-ratio: 4 / 3.8; }

  .apartment-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .apartment-grid .apartment-card:last-child { grid-column: 1 / -1; max-width: calc(50% - 13px); }
  .apartment-detail { grid-template-columns: 1fr; gap: 36px; }
  .apartment-detail.is-reversed .apartment-detail__media { order: 0; }
  .apartment-detail__media { max-width: 640px; }

  .quote-grid { grid-template-columns: 1fr; }
  .quote-card { max-width: none; }

  .cta-inner { grid-template-columns: 1fr; gap: 28px; }
  .cta-actions { max-width: 340px; align-items: stretch; }

  .contact-grid { grid-template-columns: 1fr; }
  .contact-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-card:last-child { grid-column: 1 / -1; }

  .timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 26px; }
  .timeline-item:nth-child(3)::before { display: none; }
  .animal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .season-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .directions { grid-template-columns: 1fr; }
  .directions .direction-step { display: grid; grid-template-columns: auto 1fr; gap: 0 16px; align-items: start; }
  .directions .direction-step span { grid-row: span 2; margin-bottom: 0; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 190px; }
}

@media (max-width: 720px) {
  .container { padding-inline: 20px; }
  body { font-size: 1rem; }
  .section-head-row { flex-direction: column; align-items: flex-start; }
  .gallery-grid { grid-auto-rows: 160px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px 24px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-col--contact { grid-column: 1 / -1; }
  .form-grid { grid-template-columns: 1fr; }
  .contact-cards { grid-template-columns: 1fr; }
  .contact-card:last-child { grid-column: auto; }
  .apartment-grid { grid-template-columns: 1fr; }
  .apartment-grid .apartment-card:last-child { grid-column: auto; max-width: none; }
  .map-card { position: relative; left: auto; bottom: auto; width: 100%; border-radius: 0 0 var(--radius-lg) var(--radius-lg); box-shadow: none; border-top: 1px solid var(--line); }
  .map-frame img { aspect-ratio: 4 / 3; }
  .hero-badge { width: 92px; height: 92px; top: 18px; left: -8px; }
  .hero-badge strong { font-size: 1.3rem; }
  .hero-note { right: 4px; bottom: 22px; }
  .split-media { padding: 0 0 34px 24px; }
  .timeline { grid-template-columns: 1fr; gap: 28px; }
  .timeline-item::before { display: none; }
  .timeline-item { padding-top: 0; padding-left: 28px; }
  .timeline-item::after { top: 7px; }
  .animal-grid { grid-template-columns: 1fr; }
  .season-grid { grid-template-columns: 1fr; }
  .amenities { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: 1fr; }
  .apartment-detail__foot { flex-direction: column; align-items: stretch; }
  .apartment-detail__foot .btn { width: 100%; }
  .lightbox { width: 94vw; }
  .lightbox-caption { flex-direction: column; align-items: flex-start; gap: 10px; }
  .gallery-item__zoom { opacity: 1; transform: none; }
}

@media (max-width: 540px) {
  .hero-actions .btn { width: 100%; }
  .hero-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .hero-facts strong { font-size: 1.24rem; }
  .hero-facts span { font-size: 0.62rem; line-height: 1.35; }
  .hero-frame { border-radius: 150px 150px var(--radius) var(--radius); }
  .hero-note { font-size: 0.74rem; padding: 9px 13px; }
  .hero-badge { display: none; }
  .split-media__stamp { right: -4px; }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 140px; }
  .gallery-item--wide { grid-column: span 2; grid-row: span 1; }
  .gallery-item--tall { grid-row: span 1; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand, .footer-col--contact { grid-column: auto; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .cta-banner { border-radius: var(--radius-lg); }
  .cta-actions { max-width: none; }
  .apartment-detail__number { width: 58px; height: 58px; top: -12px; left: -8px; font-size: 1.2rem; }
  .comparison .compare { min-width: 600px; }
  .form-card { padding: 24px 18px; }
  .page-hero h1 { font-size: clamp(2rem, 8vw, 2.8rem); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}

@media print {
  .site-header, .site-footer, .cta-banner, .nav-toggle, .lightbox { display: none !important; }
  body { background: #fff; color: #000; }
  .section, .page-hero { padding: 20px 0; }
  .hero-frame { box-shadow: none; }
  a { text-decoration: underline; }
}
