:root {
  --ink: #27292B;
  --brand: #B11F23;
  --brand-dark: #8f181c;
  --text: #333333;
  --muted: #5b6070;
  --line: #d8d8d8;
  --bg: #f5f5f5;
  --white: #ffffff;
  --shadow: 0 10px 30px rgba(39, 41, 43, 0.08);
  --radius: 16px;
  --header-h: 88px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Open Sans", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  color: var(--brand-dark);
}

h1, h2, h3, h4 {
  font-family: "Ubuntu", Arial, sans-serif;
  color: var(--ink);
  line-height: 1.25;
  margin: 0 0 0.6em;
}

p {
  margin: 0 0 1em;
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--brand);
  color: #fff;
  padding: 8px 12px;
  z-index: 100;
}

.skip-link:focus {
  top: 12px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 3px solid var(--brand);
  box-shadow: 0 2px 12px rgba(39, 41, 43, 0.08);
}

.header-inner {
  position: relative;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo-link {
  display: flex;
  align-items: center;
  line-height: 0;
}

.logo {
  width: 150px;
  height: auto;
}

.nav-toggle {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding: 0;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  flex-shrink: 0;
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-nav {
  display: none;
  flex-direction: column;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: #fff;
  padding: 8px 16px 16px;
  border-bottom: 1px solid var(--line);
}

.site-nav.is-open {
  display: flex;
}

.nav-link {
  display: block;
  padding: 12px 10px;
  color: var(--ink);
  font-weight: 600;
  font-size: 15px;
  border-bottom: 2px solid transparent;
}

.nav-link.is-active,
.nav-link:hover {
  color: var(--brand);
  border-bottom-color: var(--brand);
}

.hero {
  color: var(--text);
  display: flex;
  align-items: center;
  background: #fff;
}

.hero-inner {
  padding: 56px 0;
}

.hero-media,
.hero-media img {
  display: none !important;
}

.hero h1 {
  color: var(--ink);
  font-size: clamp(1.8rem, 5vw, 3rem);
  max-width: 16ch;
}

.hero p {
  max-width: 58ch;
  font-size: 1.05rem;
  color: var(--text);
}

.hero .btn-ghost {
  color: var(--ink);
  border-color: var(--ink);
}

.hero .btn-ghost:hover {
  background: var(--ink);
  color: #fff;
}

.page-hero .kicker {
  color: #fff;
}

.page-hero .btn-primary {
  background: #fff;
  color: var(--brand);
}

.page-hero .btn-primary:hover {
  background: #f3f3f3;
  color: var(--brand-dark);
}

.hero-actions,
.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 700;
  border: 2px solid transparent;
  cursor: pointer;
  font-family: inherit;
  font-size: 15px;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
}

.btn-primary:hover {
  background: var(--brand-dark);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: #fff;
}

.btn-ghost:hover {
  background: #fff;
  color: var(--ink);
}

.btn-outline {
  background: #fff;
  color: var(--ink);
  border-color: var(--ink);
}

.btn-outline:hover {
  background: var(--ink);
  color: #fff;
}

.section {
  padding: 56px 0;
}

.section-lite {
  background: #fff;
}

.kicker {
  color: var(--brand);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  margin-bottom: 8px;
}

.lead {
  font-size: 1.05rem;
  color: var(--muted);
}

.stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 28px;
}

.stat {
  background: #fff;
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--brand);
}

.stat strong {
  display: block;
  font-size: 1.6rem;
  color: var(--ink);
  font-family: Ubuntu, sans-serif;
}

.cards,
.album-grid,
.photo-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.card,
.album-card,
.job-item,
.form-card,
.info-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.card,
.form-card,
.info-card,
.job-item {
  padding: 22px;
}

.card-image {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 14px;
}

.page-hero {
  background: var(--brand);
  color: #fff;
  padding: 42px 0;
}

.page-hero h1,
.page-hero p {
  color: #fff;
}

.page-hero p {
  max-width: 70ch;
  color: #ffe9e9;
}

.site-footer {
  background: var(--ink);
  color: #e8e8e8;
  padding-top: 18px;
}

.site-footer h2 {
  color: #fff;
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.site-footer p {
  margin-bottom: 0;
  font-size: 14px;
  line-height: 1.45;
}

.site-footer a {
  color: #fff;
}

.site-footer a:hover {
  color: var(--brand);
}

.footer-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-bottom: 16px;
}

.footer-logo {
  width: 110px;
  background: #fff;
  border-radius: 6px;
  padding: 4px;
  margin-bottom: 6px;
}

.footer-tagline {
  font-size: 13px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding: 10px 0;
  font-size: 13px;
}

.footer-bottom-inner {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-bottom a {
  margin-right: 12px;
}

.form-grid {
  display: grid;
  gap: 14px;
}

label {
  display: block;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}

input,
textarea,
select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  background: #fff;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
}

.alert {
  padding: 12px 14px;
  border-radius: 10px;
  margin-bottom: 16px;
  font-weight: 600;
}

.alert-ok {
  background: #e8f8ee;
  color: #146c2e;
}

.alert-err {
  background: #ffece8;
  color: #9b1c00;
}

.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.job-head {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  background: none;
  border: 0;
  padding: 0;
  text-align: left;
  cursor: pointer;
  font: inherit;
}

.job-head h2 {
  margin: 0;
  font-size: 1.1rem;
}

.job-toggle {
  min-width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
}

.job-meta {
  color: var(--muted);
  font-size: 14px;
  margin: 8px 0 0;
}

.job-body {
  display: none;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  margin-top: 16px;
}

.job-item.is-open .job-body {
  display: block;
}

.job-item.is-open .job-toggle {
  background: var(--brand);
}

.album-card {
  color: inherit;
}

.album-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.album-card h2 {
  font-size: 1.05rem;
  margin: 14px 16px 16px;
}

.photo-grid a {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  background: #ddd;
}

.photo-grid img {
  width: 100%;
  height: 170px;
  object-fit: cover;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(39, 41, 43, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 80;
  padding: 16px;
}

.lightbox.is-open {
  display: flex;
}

.lightbox img {
  max-width: min(96vw, 1100px);
  max-height: 82vh;
  object-fit: contain;
}

.lightbox-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
}

.lightbox-prev { left: 12px; }
.lightbox-next { right: 12px; }

.lightbox-close {
  top: 16px;
  right: 16px;
  transform: none;
}

.map-frame {
  width: 100%;
  min-height: 260px;
  border: 0;
  border-radius: var(--radius);
}

.back-link {
  display: inline-block;
  margin-bottom: 16px;
  font-weight: 700;
}

@media (min-width: 720px) {
  .stats,
  .cards,
  .album-grid,
  .photo-grid,
  .split,
  .footer-grid {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
  }

  .footer-grid > div:last-child {
    text-align: right;
    max-width: 380px;
  }

  .nav-toggle {
    display: none;
  }

  .site-nav {
    display: flex;
    flex-direction: row;
    position: static;
    padding: 0;
    border: 0;
    gap: 4px;
  }

  .logo {
    width: 176px;
  }
}

@media (min-width: 980px) {
  .hero-inner {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 40px;
  }

  .hero-media {
    display: block !important;
  }

  .hero-media img {
    display: block !important;
    width: 100%;
    height: 340px;
    object-fit: cover;
    border-radius: var(--radius);
  }

  .cards,
  .album-grid,
  .photo-grid,
  .stats {
    grid-template-columns: repeat(4, 1fr);
  }

  .album-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .photo-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-bottom-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}
