:root {
  --ink: #1e2a31;
  --muted: #5b6870;
  --line: #d9e0df;
  --paper: #f7f5ef;
  --panel: #ffffff;
  --green: #2f6f5e;
  --green-dark: #1f4d43;
  --gold: #c69436;
  --red: #a43d35;
  --shadow: 0 18px 55px rgba(30, 42, 49, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 14px clamp(18px, 5vw, 72px);
  background: rgba(247, 245, 239, 0.92);
  border-bottom: 1px solid rgba(217, 224, 223, 0.8);
  backdrop-filter: blur(18px);
}

.brand,
nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: #fff;
  background: var(--green);
  border-radius: 8px;
}

nav {
  flex-wrap: wrap;
  gap: clamp(12px, 3vw, 30px);
  color: var(--muted);
  font-size: 0.95rem;
}

nav a {
  text-decoration: none;
}

nav a:hover {
  color: var(--green-dark);
}

.hero {
  position: relative;
  min-height: calc(100svh - 72px);
  display: grid;
  align-items: end;
  overflow: hidden;
  background: #1e2a31;
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(18, 30, 32, 0.82), rgba(18, 30, 32, 0.52) 45%, rgba(18, 30, 32, 0.18)),
    linear-gradient(0deg, rgba(18, 30, 32, 0.68), transparent 38%);
}

.hero-content {
  position: relative;
  width: min(760px, calc(100% - 36px));
  margin: 0 clamp(18px, 5vw, 72px) clamp(44px, 9vh, 96px);
  color: #fff;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 720px;
  margin-bottom: 18px;
  font-size: clamp(3rem, 7vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-content p:not(.eyebrow) {
  max-width: 660px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.05rem, 2vw, 1.32rem);
}

.hero-actions,
.choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button,
.submit-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.button.primary,
.submit-button {
  color: #fff;
  background: var(--green);
}

.button.secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.1);
}

.summary,
.gallery-section,
.form-section {
  padding: clamp(56px, 8vw, 92px) clamp(18px, 5vw, 72px);
}

.section-heading,
.form-intro {
  max-width: 760px;
  margin-bottom: 30px;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.section-heading p:not(.eyebrow),
.form-intro p {
  color: var(--muted);
  font-size: 1.08rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
  box-shadow: var(--shadow);
}

.feature-grid article {
  min-height: 230px;
  padding: 24px;
  background: var(--panel);
}

.feature-icon {
  color: var(--gold);
  font-weight: 900;
}

h3 {
  margin: 38px 0 10px;
  font-size: 1.25rem;
}

.feature-grid p,
.field-help,
.field-note {
  color: var(--muted);
}

.gallery-section {
  background: #eef3ef;
}

.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.filter-button {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--green-dark);
  background: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.filter-button.active,
.filter-button:hover {
  color: #fff;
  border-color: var(--green);
  background: var(--green);
}

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

.gallery-item {
  position: relative;
  display: block;
  min-height: 190px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  background: #d9e0df;
  box-shadow: 0 12px 32px rgba(30, 42, 49, 0.12);
  cursor: pointer;
}

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

.gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform 180ms ease;
}

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

.gallery-item span {
  position: absolute;
  left: 12px;
  bottom: 12px;
  margin: 0;
  padding: 6px 10px;
  border-radius: 8px;
  color: #fff;
  background: rgba(30, 42, 49, 0.78);
  font-size: 0.86rem;
  font-weight: 850;
}

.gallery-item.hidden {
  display: none;
}

.gallery-dialog {
  width: min(1100px, calc(100vw - 28px));
  max-height: calc(100vh - 28px);
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  background: #101819;
  color: #fff;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
}

.gallery-dialog::backdrop {
  background: rgba(16, 24, 25, 0.82);
}

.gallery-dialog img {
  display: block;
  width: 100%;
  max-height: calc(100vh - 96px);
  object-fit: contain;
  background: #101819;
}

.gallery-dialog p {
  margin: 0;
  padding: 12px 18px 16px;
  font-weight: 800;
}

.dialog-close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: rgba(30, 42, 49, 0.82);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

.form-section {
  display: grid;
  grid-template-columns: minmax(240px, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(28px, 5vw, 68px);
  background: #fff;
}

.registration-form {
  padding: clamp(20px, 4vw, 36px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaf6;
  box-shadow: 0 12px 36px rgba(30, 42, 49, 0.09);
}

fieldset {
  margin: 0 0 28px;
  padding: 0;
  border: 0;
}

legend {
  margin-bottom: 16px;
  font-size: 1.25rem;
  font-weight: 850;
}

.field-grid,
.two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

label span,
.field-note {
  display: block;
  margin-bottom: 8px;
  font-weight: 750;
}

input,
textarea {
  width: 100%;
  border: 1px solid #cdd7d5;
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

input {
  min-height: 46px;
  padding: 10px 12px;
}

textarea {
  resize: vertical;
  padding: 12px;
}

input:focus,
textarea:focus {
  outline: 3px solid rgba(47, 111, 94, 0.22);
  border-color: var(--green);
}

.choice,
.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.choice input,
.consent input {
  width: 18px;
  height: 18px;
  min-height: 18px;
  margin: 3px 0 0;
  accent-color: var(--green);
}

.choice span,
.consent span {
  margin: 0;
  font-weight: 650;
}

.choice-stack {
  display: grid;
  gap: 10px;
}

.compact .choice {
  flex: 1 1 auto;
}

.two-column {
  margin-top: 22px;
}

.field-help {
  margin-bottom: 14px;
}

.full-width {
  display: block;
  margin-bottom: 18px;
}

small {
  color: var(--muted);
  font-weight: 500;
}

.consent {
  margin-bottom: 18px;
}

.submit-button {
  width: 100%;
  min-height: 54px;
}

.submit-button:hover,
.button.primary:hover {
  background: var(--green-dark);
}

.form-error,
.form-success {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 8px;
}

.form-error {
  color: var(--red);
  background: #fff1ef;
}

.form-success {
  margin-top: 16px;
  color: var(--green-dark);
  background: #eaf4ef;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 34px clamp(18px, 5vw, 72px);
  color: #fff;
  background: var(--ink);
}

.site-footer p {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.72);
}

.site-footer a {
  color: #fff;
  font-weight: 800;
}

@media (max-width: 940px) {
  .feature-grid,
  .gallery-grid,
  .form-section {
    grid-template-columns: 1fr 1fr;
  }

  .form-section {
    display: block;
  }

  .form-intro {
    margin-bottom: 24px;
  }
}

@media (max-width: 680px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  nav {
    width: 100%;
    justify-content: flex-start;
  }

  .hero {
    min-height: 760px;
  }

  .hero-content {
    margin-bottom: 34px;
  }

  h1 {
    font-size: 3rem;
  }

  .feature-grid,
  .gallery-grid,
  .field-grid,
  .two-column {
    grid-template-columns: 1fr;
  }

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

  .registration-form {
    padding: 18px;
  }

  .site-footer {
    display: block;
  }

  .site-footer a {
    display: inline-block;
    margin-top: 18px;
  }
}
