:root {
  --paper: #fffdf8;
  --sand: #f4eadc;
  --linen: #fbf6ed;
  --wood: #b27648;
  --olive: #63745a;
  --olive-deep: #354534;
  --terra: #b85f3f;
  --ink: #27231e;
  --muted: #71685f;
  --line: rgba(64, 54, 43, 0.14);
  --shadow: 0 22px 70px rgba(65, 46, 28, 0.14);
  --radius: 8px;
  --display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --body: "Avenir Next", Avenir, "Segoe UI", Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(244, 234, 220, 0.65), rgba(255, 253, 248, 0.9) 34rem),
    var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

body.is-locked {
  overflow: hidden;
}

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

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 64px;
  padding: 0.7rem clamp(1rem, 4vw, 3rem);
  background: rgba(255, 253, 248, 0.86);
  border-bottom: 1px solid rgba(64, 54, 43, 0.09);
  backdrop-filter: blur(18px);
}

.brand {
  display: grid;
  gap: 0.05rem;
  min-width: max-content;
  letter-spacing: 0;
}

.brand span {
  font-weight: 800;
  font-size: 1rem;
}

.brand small {
  color: var(--muted);
  font-size: 0.67rem;
  text-transform: uppercase;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
}

.language-switch {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem;
  background: var(--sand);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.lang-btn {
  min-width: 2.25rem;
  min-height: 2rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: 800 0.78rem/1 var(--body);
}

.lang-btn.is-active {
  background: var(--olive-deep);
  color: #fffdf8;
}

.header-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.35rem;
  padding: 0 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--olive-deep);
  font-size: 0.86rem;
  font-weight: 800;
  white-space: nowrap;
}

.phone-link {
  background: #fff;
}

.section-shell {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.hero {
  display: grid;
  gap: clamp(1.4rem, 4vw, 4rem);
  align-items: center;
  padding: clamp(1.15rem, 5vw, 4.8rem) 0 clamp(2rem, 6vw, 5rem);
}

.hero-copy {
  max-width: 42rem;
}

.eyebrow {
  margin: 0 0 0.65rem;
  color: var(--terra);
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: 0;
}

h1 {
  max-width: 12ch;
  font-size: clamp(3.1rem, 13vw, 6.8rem);
}

h2 {
  font-size: clamp(2rem, 5vw, 4.2rem);
}

.hero-subtitle {
  margin: 1.15rem 0 0;
  color: var(--olive-deep);
  font-size: clamp(1.05rem, 2.6vw, 1.45rem);
  font-weight: 850;
}

.hero-text {
  max-width: 34rem;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 1.04rem;
}

.hero-actions,
.final-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.45rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.15rem;
  padding: 0.1rem 1.25rem;
  border-radius: 999px;
  font-weight: 850;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

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

.button-primary {
  background: var(--olive-deep);
  color: #fffdf8;
  box-shadow: 0 14px 34px rgba(53, 69, 52, 0.22);
}

.button-secondary {
  border: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.72);
  color: var(--olive-deep);
}

.hero-photo {
  position: relative;
  order: -1;
  margin: 0;
  overflow: hidden;
  height: clamp(15.5rem, 72vw, 21rem);
  border-radius: var(--radius);
  background: var(--sand);
  box-shadow: var(--shadow);
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-photo figcaption,
.gallery-item span {
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.75rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.84);
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 760;
  backdrop-filter: blur(14px);
}

.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  padding: 0 0 clamp(2rem, 6vw, 4.5rem);
}

.fact {
  min-height: 5.6rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.72);
}

.fact span {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--muted);
  font-size: 0.77rem;
  font-weight: 800;
  text-transform: uppercase;
}

.fact strong {
  display: block;
  color: var(--olive-deep);
  font-family: var(--display);
  font-size: clamp(1.28rem, 4vw, 1.75rem);
  font-weight: 500;
  line-height: 1.08;
}

.intro,
.investment {
  display: grid;
  gap: 1.4rem;
  align-items: start;
  padding: clamp(2rem, 6vw, 4.4rem) 0;
  border-top: 1px solid var(--line);
}

.intro p:last-child,
.location-copy p,
.investment-note p,
.final-cta p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.02rem, 2vw, 1.2rem);
}

.gallery {
  padding: clamp(2rem, 6vw, 5rem) 0;
}

.section-heading {
  display: grid;
  gap: 0.25rem;
  margin-bottom: 1.15rem;
}

.section-heading h2 {
  max-width: 14ch;
}

.gallery-grid {
  display: grid;
  gap: 0.8rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  min-height: 18rem;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: var(--sand);
  cursor: zoom-in;
  text-align: left;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  min-height: 18rem;
  object-fit: cover;
  transition: transform 480ms ease;
}

.gallery-item:hover img {
  transform: scale(1.025);
}

.emotional {
  padding: clamp(2.5rem, 8vw, 6rem) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.emotional h2 {
  max-width: 18ch;
  color: var(--olive-deep);
}

.value-grid {
  display: grid;
  gap: 1.2rem;
  padding: clamp(2.5rem, 7vw, 5.5rem) 0;
}

.location-copy h2 {
  max-width: 12ch;
  margin-bottom: 1rem;
}

.location-list,
.distribution-list {
  display: grid;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.location-list li,
.distribution-list li {
  display: flex;
  align-items: center;
  min-height: 3.7rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.74);
  color: var(--olive-deep);
  font-weight: 820;
}

.investment {
  background:
    linear-gradient(135deg, rgba(99, 116, 90, 0.13), rgba(184, 95, 63, 0.12)),
    var(--linen);
  width: 100%;
  max-width: none;
  padding-right: max(1rem, calc((100vw - 1120px) / 2));
  padding-left: max(1rem, calc((100vw - 1120px) / 2));
}

.investment h2 {
  max-width: 12ch;
}

.investment-note {
  max-width: 30rem;
}

.investment-note strong {
  display: block;
  margin-bottom: 0.6rem;
  color: var(--olive-deep);
  font-family: var(--display);
  font-size: clamp(1.65rem, 4vw, 3rem);
  font-weight: 500;
  line-height: 1.05;
}

.investment-note small {
  display: block;
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.distribution {
  padding: clamp(2.5rem, 7vw, 5rem) 0;
}

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

.final-cta {
  display: grid;
  gap: 1.4rem;
  align-items: center;
  padding: clamp(2rem, 7vw, 5rem) 0;
  border-top: 1px solid var(--line);
}

.final-cta h2 {
  max-width: 13ch;
  margin-bottom: 1rem;
}

.site-footer {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 2rem clamp(1rem, 4vw, 3rem) 6rem;
  background: var(--olive-deep);
  color: #fffdf8;
}

.site-footer div {
  display: grid;
  gap: 0.25rem;
}

.site-footer span,
.site-footer a {
  color: rgba(255, 253, 248, 0.78);
}

.footer-contacts {
  font-weight: 800;
}

.mobile-contact {
  position: fixed;
  right: 0.8rem;
  bottom: 0.8rem;
  left: 0.8rem;
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  padding: 0.55rem;
  border: 1px solid rgba(64, 54, 43, 0.12);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.9);
  box-shadow: 0 18px 45px rgba(40, 30, 20, 0.18);
  backdrop-filter: blur(18px);
}

.mobile-contact a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.8rem;
  border-radius: 999px;
  background: var(--olive-deep);
  color: #fffdf8;
  font-weight: 850;
}

.mobile-contact a:last-child {
  background: var(--sand);
  color: var(--olive-deep);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 4.5rem 1rem 1rem;
  background: rgba(27, 24, 20, 0.92);
  overscroll-behavior: contain;
  touch-action: none;
}

.lightbox[hidden] {
  display: none;
}

.lightbox figure {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto auto;
  gap: 0.8rem;
  width: min(92vw, 980px);
  height: min(80vh, 820px);
  margin: 0;
  touch-action: none;
}

.lightbox-image {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  touch-action: none;
  pointer-events: auto;
  transition: transform 180ms ease, opacity 180ms ease;
  will-change: transform, opacity;
}

.lightbox.is-dragging .lightbox-image {
  transition: none;
}

.lightbox-caption {
  color: #fffdf8;
  font-weight: 800;
  text-align: center;
}

.lightbox-hint {
  color: rgba(255, 253, 248, 0.66);
  font-size: 0.8rem;
  font-weight: 760;
  text-align: center;
}

.lightbox-close,
.lightbox-nav {
  position: fixed;
  border: 1px solid rgba(255, 253, 248, 0.28);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.12);
  color: #fffdf8;
  cursor: pointer;
  font: 850 0.85rem/1 var(--body);
}

.lightbox-close {
  top: 1rem;
  right: 1rem;
  min-height: 2.7rem;
  padding: 0 1rem;
}

.lightbox-nav {
  top: 50%;
  min-width: 6.7rem;
  min-height: 2.75rem;
  transform: translateY(-50%);
}

.lightbox-prev {
  left: 1rem;
}

.lightbox-next {
  right: 1rem;
}

@media (max-width: 560px) {
  .site-header {
    align-items: flex-start;
    min-height: 58px;
    padding: 0.55rem 0.75rem;
  }

  .brand small,
  .phone-link {
    display: none;
  }

  .header-actions {
    gap: 0.35rem;
  }

  .header-link {
    min-height: 2rem;
    padding: 0 0.6rem;
    font-size: 0.78rem;
  }

  .lang-btn {
    min-width: 1.95rem;
    min-height: 1.8rem;
  }

  .section-shell {
    width: min(100% - 1rem, 1120px);
  }

  h1 {
    max-width: 12ch;
    font-size: clamp(2.55rem, 12vw, 3.35rem);
  }

  .hero {
    gap: 1rem;
  }

  .hero-photo {
    height: clamp(12.5rem, 58vw, 16rem);
  }

  .hero-photo img {
    object-position: center 52%;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-actions {
    display: none;
  }

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

  .fact {
    min-height: auto;
  }

  .distribution-list {
    grid-template-columns: 1fr;
  }

  .lightbox {
    padding-top: 4.25rem;
  }

  .lightbox-nav {
    top: auto;
    bottom: 1rem;
    min-width: 7rem;
    transform: none;
  }

  .lightbox-prev {
    left: 1rem;
  }

  .lightbox-next {
    right: 1rem;
  }

  .lightbox-caption {
    padding-bottom: 0;
  }

  .lightbox-hint {
    padding-bottom: 3.8rem;
  }
}

@media (min-width: 760px) {
  body {
    padding-bottom: 0;
  }

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

  .fact-wide {
    grid-column: span 2;
  }

  .intro,
  .investment,
  .final-cta {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: minmax(15rem, 22vw);
  }

  .gallery-item {
    min-height: auto;
  }

  .gallery-item img {
    min-height: 100%;
  }

  .gallery-item-large {
    grid-row: span 2;
    grid-column: span 2;
  }

  .gallery-item-wide {
    grid-column: span 2;
  }

  .value-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: start;
  }

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

  .mobile-contact {
    display: none;
  }

  .site-footer {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 2rem;
  }
}

@media (min-width: 980px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.72fr);
  }

  .hero-photo {
    order: 0;
    min-height: 32rem;
    height: min(72vh, 46rem);
  }
}

@media (min-width: 1120px) {
  .hero {
    min-height: calc(100svh - 64px);
  }
}

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