/* Warm palette from the original site (espresso wood, cream, logo orange), with a lighter, modern layout. */
:root {
  --cream: #f8f1e6;
  --paper: #fffaf3;
  --ink: #2b1d14;
  --muted: #7a6656;
  --line: #e6d9c6;
  --espresso: #1f1510;
  --espresso-2: #2c1f17;
  --on-dark: #f3e9d8;
  --gold: #f2c86b;
  --orange: #d9771f;
  --orange-hover: #bf6417;
  --radius: 14px;
  --serif: 'Playfair Display', Georgia, serif;
  --script: 'Pacifico', cursive;
  --sans: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --header-h: 88px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--cream);
  color: var(--ink);
  font: 400 17px/1.7 var(--sans);
}

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

a { color: var(--orange-hover); text-underline-offset: 3px; }
a:hover { color: var(--orange); }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 .5em;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2.1rem, 5.5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); }
h3 { font-size: 1.25rem; }

.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }

.eyebrow {
  margin: 0 0 .4em;
  font: 1.25rem/1.4 var(--script);
  color: var(--gold);
}
.eyebrow a { color: inherit; text-decoration: none; font: 700 .95rem var(--sans); letter-spacing: .02em; }
.eyebrow a:hover { color: #fff; }

/* --- Buttons --- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transition: background .15s, transform .15s;
}
.btn:hover { background: var(--orange-hover); color: #fff; transform: translateY(-1px); }
.btn svg { width: 16px; height: 16px; fill: currentColor; }
.btn-light { background: rgba(255, 255, 255, .14); backdrop-filter: blur(6px); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .6); }
.btn-light:hover { background: rgba(255, 255, 255, .26); }
.btn-small { padding: 9px 18px; font-size: 15px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 1.6em 0 0; }

/* --- Header --- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 241, 230, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.brand img { width: 185px; }
.nav-panel { display: flex; align-items: center; gap: 24px; margin-left: auto; }

.mainnav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.mainnav a {
  display: block;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}
.mainnav a:hover { background: rgba(217, 119, 31, .1); color: var(--ink); }
.mainnav a[aria-current] { color: var(--orange-hover); }

.langs { display: flex; gap: 2px; font-size: 14px; }
.langs a { padding: 4px 7px; color: var(--muted); font-weight: 700; text-decoration: none; border-radius: 6px; }
.langs a:hover { color: var(--ink); }
.langs a[aria-current] { color: var(--ink); box-shadow: inset 0 -2px var(--orange); border-radius: 0; }

.nav-toggle { display: none; }

@media (max-width: 900px) {
  .brand img { width: 150px; }
  :root { --header-h: 72px; }
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--paper);
    color: var(--ink);
    font: 700 15px var(--sans);
    cursor: pointer;
  }
  .burger, .burger::before, .burger::after { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative; }
  .burger::before, .burger::after { content: ''; position: absolute; }
  .burger::before { top: -6px; }
  .burger::after { top: 6px; }
  .nav-panel {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 16px 20px 24px;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 30px rgba(43, 29, 20, .12);
  }
  .site-header.open .nav-panel { display: flex; }
  .mainnav ul { flex-direction: column; }
  .mainnav a { padding: 12px 8px; border-radius: 8px; font-size: 18px; }
  .langs { font-size: 16px; }
  .nav-panel .btn { justify-content: center; }
}

main { flex: 1; }

/* --- Hero --- */

.hero {
  position: relative;
  min-height: min(78vh, 720px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--espresso) url(/img/wood.png) center / cover;
  color: #fff;
}
.hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 70%;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1.4s ease, transform 7s ease-out;
}
.hero > img.is-active { opacity: 1; transform: scale(1); }
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20, 12, 7, .85) 0%, rgba(20, 12, 7, .35) 45%, rgba(20, 12, 7, 0) 75%);
}
.hero-plain { min-height: 420px; }
.hero-content { position: relative; z-index: 1; padding: 0 0 72px; }
.hero h1 { max-width: 16ch; text-shadow: 0 2px 20px rgba(0, 0, 0, .35); }
.hero-dots { position: absolute; z-index: 1; bottom: 28px; right: max(20px, (100% - 1160px) / 2); display: flex; gap: 8px; }
.hero-dots button {
  width: 28px; height: 4px; padding: 0;
  border: 0;
  border-radius: 2px;
  background: rgba(255, 255, 255, .45);
  cursor: pointer;
}
.hero-dots button.is-active { background: #fff; }
@media (max-width: 640px) {
  .hero { min-height: 72vh; }
  .hero-content { padding-bottom: 56px; }
  .hero-dots { right: auto; left: 20px; bottom: 22px; }
}

/* --- Announcement --- */

.announcement { background: var(--orange); color: #fff; }
.announcement-inner { display: flex; gap: 24px; align-items: center; padding: 22px 0; }
.announcement img { width: 120px; border-radius: 8px; }
.announcement .prose { font-size: 1.1rem; font-weight: 700; }
.announcement .prose > :last-child { margin-bottom: 0; }
.announcement a { color: #fff; }

/* --- Sections --- */

.section { padding: clamp(48px, 8vw, 96px) 0; }
.section-dark {
  position: relative;
  background: var(--espresso);
  color: var(--on-dark);
  isolation: isolate;
}
.section-dark::before, .page-head::before, .site-footer::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url(/img/wood.png) center / 850px auto;
  opacity: .22;
}
.section-dark a { color: var(--gold); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 28px; }
.section-head h2 { margin: 0; }
.section-head a { font-weight: 700; text-decoration: none; }

.page-head {
  position: relative;
  isolation: isolate;
  background: var(--espresso);
  color: #fff;
  padding: clamp(40px, 7vw, 72px) 0 clamp(32px, 5vw, 48px);
}
.page-head h1 { margin: 0; }

/* --- Text --- */

.prose { max-width: 68ch; }
.prose p { margin: 0 0 1em; }
.prose h2 { font-size: 1.6rem; margin-top: 1.4em; }
.prose ul { margin: 0 0 1.2em; padding: 0; list-style: none; }
.prose li { position: relative; padding-left: 1.7em; margin-bottom: .45em; }
.prose li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .55em;
  width: .7em;
  height: .7em;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 3px rgba(217, 119, 31, .2);
}
.prose strong { font-weight: 700; }
.prose-lead > p:first-child { font-family: var(--serif); font-size: clamp(1.3rem, 2.4vw, 1.6rem); line-height: 1.45; }
@media (min-width: 700px) {
  .prose-lead ul { columns: 2; column-gap: 32px; }
  .prose-lead li { break-inside: avoid; }
}

/* --- Home --- */

.home-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(32px, 6vw, 80px); align-items: start; }
.info-card {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  padding: 28px;
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 20px 40px -24px rgba(43, 29, 20, .35);
}
.info-card h3 { margin-top: 1.4em; }
.info-card h3:first-child { margin-top: 0; }
.info-card p { margin: 0 0 .6em; }
@media (max-width: 900px) {
  .home-grid { grid-template-columns: 1fr; }
  .info-card { position: static; }
}

.socials { display: flex; gap: 10px; margin-top: 16px; }
.social {
  display: grid; place-items: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff !important;
  transition: background .15s;
}
.social:hover { background: var(--orange-hover); }
.social svg { width: 22px; height: 22px; fill: currentColor; }

/* --- Galleries --- */

.albums { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.album-card {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  color: #fff !important;
  text-decoration: none;
  background: var(--espresso-2);
}
.album-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.album-card:hover img { transform: scale(1.06); }
.album-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(20, 12, 7, .8), rgba(20, 12, 7, 0) 55%); }
.album-meta { position: absolute; z-index: 1; left: 20px; right: 20px; bottom: 18px; }
.album-title { display: block; font: 600 1.45rem/1.2 var(--serif); }
.album-count { font-size: 14px; opacity: .8; }
@media (max-width: 640px) { .album-card { aspect-ratio: 16 / 10; } }

.photo-grid { columns: 4 240px; column-gap: 12px; }
.photo-grid a { display: block; margin-bottom: 12px; border-radius: 10px; overflow: hidden; break-inside: avoid; background: var(--line); }
.photo-grid img { width: 100%; transition: transform .4s ease, opacity .2s; }
.photo-grid a:hover img { transform: scale(1.04); }
@media (max-width: 480px) { .photo-grid { columns: 2; column-gap: 8px; } .photo-grid a { margin-bottom: 8px; } }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 9, 5, .95);
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: calc(100vw - 32px); max-height: calc(100vh - 100px); border-radius: 8px; }
.lightbox button {
  position: absolute;
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  color: #fff;
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
}
.lightbox button[hidden] { display: none; }
.lightbox button:hover { background: var(--orange); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; translate: 0 -50%; }
.lb-next { right: 16px; top: 50%; translate: 0 -50%; }

/* --- Menu & contacts --- */

.pdf {
  width: 100%;
  height: 85vh;
  margin-top: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 20px 40px -24px rgba(43, 29, 20, .35);
}
@media (max-width: 640px) { .pdf { display: none; } }

.contacts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 72px); align-items: start; }
.contacts-grid .prose h2:first-child { margin-top: 0; }
.map { width: 100%; aspect-ratio: 1; border: 0; border-radius: var(--radius); box-shadow: 0 20px 40px -24px rgba(43, 29, 20, .35); }
@media (max-width: 860px) { .contacts-grid { grid-template-columns: 1fr; } .map { aspect-ratio: 4 / 3; } }

.notfound .cta { margin-top: 0; }

/* --- Footer --- */

.site-footer {
  position: relative;
  isolation: isolate;
  background: var(--espresso);
  color: var(--on-dark);
  padding: 56px 0 24px;
  font-size: 15px;
}
.site-footer a { color: var(--on-dark); }
.site-footer a:hover { color: var(--gold); }
.site-footer h3 { font-family: var(--sans); font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.site-footer p { margin: 0 0 .6em; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer-name { font: 2rem/1.3 var(--script); color: var(--gold); margin-bottom: 4px; }
.site-footer .socials { margin-top: 0; }
.copyright { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(243, 233, 216, .12); font-size: 13px; opacity: .6; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
