:root {
  --bg: #f7f1ea;
  --surface: #fffdf9;
  --surface-strong: #111111;
  --text: #1f1a17;
  --muted: #6f655d;
  --accent: #a32a2a;
  --accent-strong: #811f1f;
  --border: #ddd0c2;
  --shadow: 0 18px 45px rgba(32, 17, 10, 0.08);
  --radius: 22px;
  --content-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(163, 42, 42, 0.08), transparent 32%),
    linear-gradient(180deg, #fbf7f2 0%, #f5eee6 100%);
  line-height: 1.6;
}

a {
  color: inherit;
}

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

button,
.button {
  min-height: 44px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  background: #000;
  color: #fff;
  padding: 10px 14px;
  border-radius: 10px;
  z-index: 999;
}

.skip-link:focus {
  top: 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(17, 17, 17, 0.94);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-shell {
  width: min(var(--content-width), calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.brand img {
  width: 190px;
  height: auto;
}

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 26px;
  line-height: 1;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
}

.site-nav a {
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  position: relative;
  padding-bottom: 4px;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: #fff;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.page-shell {
  width: min(var(--content-width), calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 56px;
}

.hero {
  background: linear-gradient(135deg, rgba(10, 10, 10, 0.82), rgba(34, 17, 17, 0.6));
  color: #fff;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 30px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 0;
}

.hero-copy {
  padding: 42px;
}

.hero-copy h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 5vw, 4.4rem);
  line-height: 0.98;
}

.hero-copy p {
  margin: 0;
  max-width: 62ch;
  color: rgba(255, 255, 255, 0.9);
}

.hero-kicker {
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #f3beb3;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.hero-media img {
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
}

.button,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 12px 18px;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.button {
  background: var(--accent);
  color: #fff;
}

.button:hover {
  background: var(--accent-strong);
}

.button-secondary {
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
}

.button-secondary.dark {
  border-color: var(--text);
  color: var(--text);
}

.button-secondary:hover,
.button:hover,
.card:hover {
  transform: translateY(-2px);
}

.section {
  margin-bottom: 28px;
}

.section-title {
  margin: 0 0 10px;
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  line-height: 1.05;
}

.section-intro {
  margin: 0 0 18px;
  color: var(--muted);
  max-width: 70ch;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.card-body {
  padding: 18px;
}

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

.member-card img {
  aspect-ratio: 3 / 4;
  height: auto;
  min-height: 360px;
  object-fit: cover;
}

.card-body h2,
.card-body h3 {
  margin: 0 0 8px;
  font-size: 1.3rem;
}

.meta {
  color: var(--muted);
  font-size: 0.95rem;
}

.split {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 22px;
}

.list-clean {
  list-style: none;
  padding: 0;
  margin: 0;
}

.list-clean li + li {
  margin-top: 14px;
}

.agenda-item,
.news-item,
.gallery-category,
.message-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.agenda-item time,
.news-item time {
  font-weight: 700;
  color: var(--accent-strong);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.agenda-grid {
  align-items: start;
  grid-template-columns: repeat(auto-fit, minmax(260px, 320px));
  justify-content: start;
}

.agenda-grid .card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  height: auto;
  object-fit: cover;
}

.agenda-grid .card {
  display: flex;
  flex-direction: column;
}

.gallery-grid img {
  border-radius: 16px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--border);
}

.gallery-showcase {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 22px;
}

.showcase-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.showcase-head p {
  margin: 0;
  color: var(--muted);
  max-width: 68ch;
}

.carousel-shell {
  position: relative;
  padding-inline: 54px;
}

.carousel-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 26vw);
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}

.carousel-track::-webkit-scrollbar {
  height: 8px;
}

.carousel-track::-webkit-scrollbar-thumb {
  background: rgba(31, 26, 23, 0.28);
  border-radius: 999px;
}

.carousel-link {
  display: block;
  text-decoration: none;
  scroll-snap-align: start;
}

.carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  border: 0;
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.9);
  color: #fff;
  width: 42px;
  min-width: 42px;
  min-height: 42px;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.carousel-control-prev {
  left: 0;
}

.carousel-control-next {
  right: 0;
}

.carousel-link figure,
.lightbox-trigger {
  margin: 0;
  background: #14110f;
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.carousel-link img,
.lightbox-trigger img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.carousel-link figcaption {
  display: none;
}

.gallery-page-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.lightbox-trigger {
  display: block;
  width: 100%;
  padding: 0;
  cursor: zoom-in;
  border: 1px solid var(--border);
  background: #14110f;
}

.lightbox-trigger figcaption {
  display: none;
}

.lightbox-trigger:focus-visible {
  outline: 3px solid rgba(163, 42, 42, 0.35);
  outline-offset: 3px;
}

.gallery-page-grid .lightbox-trigger img {
  aspect-ratio: 3 / 4;
}

.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 8, 7, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 120;
}

.lightbox-overlay[hidden] {
  display: none;
}

.lightbox-dialog {
  width: min(1120px, 100%);
  max-height: 100%;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 72px;
  align-items: center;
  gap: 12px;
}

.lightbox-frame {
  background: #090909;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.42);
}

.lightbox-media {
  display: block;
  width: 100%;
  max-height: min(78vh, 980px);
  object-fit: contain;
  margin: 0 auto;
  user-select: none;
  -webkit-user-drag: none;
}

.lightbox-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 16px 16px;
  color: rgba(255, 255, 255, 0.88);
}

.lightbox-close,
.lightbox-nav {
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  min-height: 52px;
  min-width: 52px;
  font-size: 1.6rem;
  transition: background 0.2s ease, transform 0.2s ease;
}

.lightbox-close:hover,
.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.lightbox-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.lightbox-counter {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.92rem;
}

.page-lock {
  overflow: hidden;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.contact-card {
  padding: 18px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.placeholder-note {
  border-left: 4px solid var(--accent);
  background: #fff6ef;
  color: #4d392e;
  padding: 16px 18px;
  border-radius: 16px;
}

.site-footer {
  background: #111;
  color: rgba(255, 255, 255, 0.88);
  margin-top: 24px;
}

.footer-shell {
  width: min(var(--content-width), calc(100% - 32px));
  margin: 0 auto;
  padding: 26px 0 34px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 0.9fr;
  gap: 18px;
  margin-bottom: 18px;
}

.footer-grid h2 {
  margin: 0 0 10px;
  font-size: 1rem;
}

.footer-grid p,
.footer-grid li {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-grid li + li {
  margin-top: 8px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 16px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.92rem;
}

.footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-socials a {
  color: #fff;
}

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

:focus-visible {
  outline: 3px solid rgba(163, 42, 42, 0.28);
  outline-offset: 3px;
}

@media (max-width: 980px) {
  .cards,
  .contact-grid,
  .gallery-grid,
  .gallery-page-grid,
  .footer-grid,
  .split,
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-media {
    order: -1;
  }

  .card img {
    height: 220px;
  }

  .carousel-track {
    grid-auto-columns: minmax(220px, 72vw);
  }

  .carousel-shell {
    padding-inline: 0;
  }

  .carousel-control {
    display: none;
  }

  .showcase-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .lightbox-dialog {
    grid-template-columns: 1fr;
    position: relative;
  }

  .lightbox-nav {
    display: inline-flex;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
  }

  .lightbox-dialog .lightbox-nav[data-lightbox-prev] {
    left: 8px;
  }

  .lightbox-dialog .lightbox-nav[data-lightbox-next] {
    right: 8px;
  }
}

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

  .site-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: calc(100% + 10px);
    background: rgba(17, 17, 17, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 14px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
  }

  .site-header.open .site-nav {
    display: flex;
  }

  .hero-copy,
  .panel {
    padding: 18px;
  }
}

@media (max-width: 540px) {
  .page-shell,
  .nav-shell,
  .footer-shell {
    width: min(var(--content-width), calc(100% - 20px));
  }

  .hero-copy h1 {
    font-size: 2.2rem;
  }
}
