:root {
  --ink: #1c1712;
  --muted: #5e564c;
  --paper: #f4efe6;
  --card: #fffdf8;
  --lake: #7a3b2e;
  --lake-deep: #2c1612;
  --water: #8d4b34;
  --ochre: #d9822b;
  --line: #e3d9cb;
  --shadow: 0 18px 50px rgba(8, 40, 48, 0.14);
  --serif: "Fraunces", "Iowan Old Style", Palatino, "Palatino Linotype", serif;
  --sans: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 100% -10%, rgba(217, 130, 43, 0.14), transparent 55%),
    var(--paper);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.6;
}

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

a { color: var(--water); }

a:hover { color: var(--lake); }

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: #fff;
  padding: 0.5rem 0.8rem;
  z-index: 20;
}

.skip:focus { top: 1rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 6vw;
  background: rgba(244, 239, 230, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(227, 217, 203, 0.9);
}

.brand {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--lake-deep);
  line-height: 1.1;
}

.brand strong {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 560;
}

.brand span {
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  font: inherit;
  cursor: pointer;
}

.nav {
  display: flex;
  gap: 1.25rem;
}

.nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
}

.nav a:hover { color: var(--ochre); }

.hero {
  position: relative;
  min-height: 88vh;
  display: grid;
  align-items: end;
  color: #f7f3ec;
  background: var(--lake-deep);
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(44, 22, 18, 0.12) 0%, rgba(44, 22, 18, 0.2) 40%, rgba(44, 22, 18, 0.78) 100%);
}

.hero-copy {
  position: relative;
  z-index: 1;
  padding: 8vh 6vw 7rem;
  max-width: 52rem;
}

.eyebrow {
  margin: 0 0 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 520;
  font-size: clamp(3.4rem, 8vw, 7rem);
  line-height: 0.92;
  letter-spacing: -0.03em;
}

.hero p.lead {
  max-width: 38rem;
  font-size: 1.2rem;
  margin: 1rem 0 1.5rem;
}

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.75rem 1.2rem;
  font-weight: 600;
}

.button.primary { background: var(--ochre); color: #1c1712; }

.button.primary:hover { background: #ef9a3a; color: #1c1712; }

.button.ghost {
  color: #f7f3ec;
  border: 1px solid rgba(247, 243, 230, 0.55);
}

.button.ghost:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }

.facts {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  margin: -2.4rem 6vw 0;
  position: relative;
  background: var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.facts div {
  background: var(--card);
  padding: 1.1rem 1rem 1.2rem;
}

.facts strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 560;
  color: var(--lake);
}

.facts span { color: var(--muted); font-size: 0.92rem; }

.section {
  padding: 5.5rem 6vw;
  scroll-margin-top: 4.5rem;
}

.section h2 {
  font-family: var(--serif);
  font-weight: 540;
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
}

.kicker {
  margin: 0 0 0.4rem;
  color: var(--ochre);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 700;
}

.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.prose p { margin: 0 0 1rem; }

.quote {
  margin: 1.5rem 0 0;
  padding: 1.2rem 1.3rem;
  background: var(--lake);
  color: #f4efe6;
  border-radius: 16px;
}

.quote p { margin: 0; font-family: var(--serif); font-size: 1.25rem; line-height: 1.45; }

.quote footer { margin-top: 0.8rem; color: #d7c4a4; font-size: 0.92rem; }

.frame {
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.frame img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 5; }

.spaces { display: grid; gap: 2.5rem; }

.space {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
}

.space:nth-child(even) { grid-template-columns: 0.85fr 1.15fr; }

.space:nth-child(even) .space-copy { order: 2; }

.space img { width: 100%; height: 100%; min-height: 280px; object-fit: cover; }

.space-copy { padding: 1.6rem 1.8rem 1.8rem; }

.space-copy h3 {
  font-family: var(--serif);
  font-size: 2rem;
  margin: 0 0 0.5rem;
  font-weight: 540;
}

.space-copy p { margin: 0; color: var(--muted); }

.groups {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.group {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.2rem 1.25rem 1.3rem;
}

.group h3 {
  margin: 0 0 0.7rem;
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--lake);
}

.group ul { margin: 0; padding-left: 1.1rem; }

.group li { margin: 0.25rem 0; }

.note {
  margin-top: 1.2rem;
  color: var(--muted);
}

.practical {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.2rem;
}

.panel {
  background: var(--card);
  border-radius: 22px;
  border: 1px solid var(--line);
  padding: 1.6rem;
}

.panel.dark {
  background: var(--lake-deep);
  color: #f4efe6;
  border: 0;
}

.panel h3 { margin: 0 0 0.8rem; font-family: var(--serif); font-size: 1.8rem; font-weight: 540; }

.panel ul { margin: 0; padding-left: 1.1rem; }

.panel li { margin: 0.4rem 0; }

.codes { margin-top: 1.2rem; font-size: 0.95rem; color: #d7c4a4; }

.gallery {
  columns: 3 240px;
  column-gap: 0.8rem;
}

.gallery button {
  width: 100%;
  margin: 0 0 0.8rem;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  break-inside: avoid;
  border-radius: 14px;
  overflow: hidden;
}

.gallery img {
  width: 100%;
  height: auto;
  transition: transform 0.35s ease;
}

.gallery button:hover img,
.gallery button:focus-visible img { transform: scale(1.03); }

.around {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: center;
}

.around img {
  border-radius: 22px;
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.contacts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 1.5rem 1.5rem 1.4rem;
}

.card h3 {
  margin: 0.2rem 0 0.8rem;
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 540;
}

.card p { margin: 0.35rem 0; }

.card a { font-weight: 650; text-decoration: none; }

.role {
  margin: 0;
  color: var(--ochre);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
}

.site-footer {
  padding: 2rem 6vw 2.5rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.lightbox {
  width: min(1100px, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  border: 0;
  padding: 0;
  background: transparent;
}

.lightbox::backdrop { background: rgba(28, 16, 12, 0.88); }

.lightbox figure { margin: 0; color: #f4efe6; }

.lightbox img {
  width: 100%;
  max-height: calc(100vh - 7rem);
  object-fit: contain;
  background: #000;
  border-radius: 12px;
}

.lightbox figcaption { padding: 0.7rem 0.2rem 0; }

.lightbox-bar {
  display: flex;
  justify-content: flex-end;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
}

.lightbox-bar button {
  border: 0;
  background: #f4efe6;
  color: var(--ink);
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
  font: inherit;
  cursor: pointer;
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 0.4rem 6vw 0.8rem;
  }

  .nav.is-open { display: flex; }

  .nav a { padding: 0.7rem 0; border-top: 1px solid var(--line); }

  .facts,
  .split,
  .practical,
  .around,
  .contacts,
  .groups { grid-template-columns: 1fr; }

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

  .facts div:last-child { grid-column: 1 / -1; }

  .space,
  .space:nth-child(even) { grid-template-columns: 1fr; }

  .space:nth-child(even) .space-copy { order: 0; }

  .hero { min-height: 78vh; }

  .section { padding: 3.5rem 6vw; }

  .around img { height: 260px; }
}
