:root {
  --bg: #fff;
  --bg-alt: #faf7f58a;
  --text: #1a1a1a;
  --muted: #666;
  --primary: #8b1e3f;
  /* бордовый */
  --gold: #cfaf6e;
  /* мягкое золото */
  --radius: 16px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .08);
  --container: 1200px;
}

/* Сброс */
*,
*::before,
*::after {
  box-sizing: border-box
}

html,
body {
  padding: 0;
  margin: 0
}

img {
  max-width: 100%;
  display: block;
  border-radius: 12px
}

a {
  color: inherit;
  text-decoration: none
}

button,
input,
select,
textarea {
  font: inherit
}

/* База */
body {
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.6;
  background-image: url('images/bg.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('images/bg.jpg');
  background-size: cover;
  background-position: center;
  z-index: -1;
  transform: translateZ(0);
}
.map-container {
  display: none;
  margin-top: 16px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}
.map-container.visible {
  display: block;
  animation: fadeIn 0.6s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.h2 {
  font: 400 24px/1.2 Marcellus, serif;
  letter-spacing: .3px;
  margin: 0 0 18px;
}

.h3 {
  font: 600 20px/1.2 Inter, sans-serif;
  margin: 0 0 6px
}

.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto
}

/* Хедер */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid #eee;
}

.nav-wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 12px 0
}

.brand {
  font: 400 28px/1 Marcellus, serif;
  color: var(--primary);
}

.nav {
  margin-left: auto;
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap
}

.nav a {
  padding: 8px 10px;
  color: #333
}

.nav a:hover {
  color: var(--primary)
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid #e6e6e6;
  background: #fff;
  box-shadow: var(--shadow)
}
.custombtn {
  margin-top: 1rem;
}

.btn--small {
  padding: 8px 14px
}

.btn--primary {
  background: var(--primary);
  color: #fff;
  border-color: transparent
}

.btn--primary:hover {
  filter: brightness(.95)
}

/* Бургер (мобайл) */
.burger {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border: 0;
  background: #fff;
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 10px
}

.burger span {
  display: block;
  height: 2px;
  background: #333;
  margin: 6px 0;
  border-radius: 2px
}

/* HERO */
.hero {
  position: relative;
  isolation: isolate;
  min-height: 70dvh;
  display: grid;
  place-items: center;
  text-align: center;
  color: #2c2c2c;
}

/*.hero::before {*/
/*  content: "";*/
/*  position: absolute;*/
/*  inset: 0;*/
/*  z-index: -2;*/
/*  background-image: url('images/bg.jpg');*/
/*  background-size: cover;*/
/*  background-position: center;*/
/*}*/

.hero__inner {
  padding: 80px 0
}

.hero__title {
  font: 400 64px/1 Marcellus, serif;
  margin: 0 0 12px
}

.hero__meta {
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 10px
}

.hero__countdown {
  font-weight: 600;
  margin: 12px 0 22px;
  font-size: 1.1rem;
  color: #333;
}

/* Разделы */
.section {
  padding: 80px 0
}

.section--alt {
  background: var(--bg-alt)
}

.divider {
  height: 1px;
  background: #eee
}

/* Сетки */
.grid-2 {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 40px;
  align-items: center
}

.grid-2--gap-lg {
  gap: 56px
}

/* Карточки */
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 18px
}

.card {
  background: #ffffff8a;
  padding: 22px;
  border-radius: var(--radius);
  box-shadow: var(--shadow)
}

.muted {
  color: var(--muted)
}

/* Галерея */
.masonry {
  columns: 3 260px;
  column-gap: 16px;
  margin-top: 18px
}

.masonry img {
  width: 100%;
  margin: 0 0 16px;
  break-inside: avoid;
  border-radius: 14px
}

/* Люди */
.cards--people {
  grid-template-columns: repeat(4, minmax(0, 1fr))
}

.person {
  background: #fff;
  padding: 14px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center
}

.person img {
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 12px;
}

/* Форма */
.form {
  background: #fff;
  padding: 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow)
}

.form label {
  display: block;
  font-weight: 600;
  margin: 0 0 10px
}

.form input,
.form select,
.form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #e6e6e6;
  border-radius: 12px;
  margin-top: 6px;
  background: #fcfcfc;
}

.form button {
  margin-top: 10px
}

/* Ссылки */
.link {
  color: var(--primary);
  border-bottom: 1px solid rgba(139, 30, 63, .25)
}

.link:hover {
  border-color: transparent
}

/* Футер */
.footer {
  padding: 32px 0;
  border-top: 1px solid #eee;
  background: #fff
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between
}

/* ===== АНИМАЦИИ ПОЯВЛЕНИЯ ===== */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s ease, transform .7s ease
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0)
}

/* fade / slide переключаются JS'ом по data-animate */
.reveal.fade {
  transform: none
}

.reveal.slide {}

/* Респонсив */
@media (max-width: 980px) {
  .grid-2 {
    grid-template-columns: 1fr;
    gap: 24px
  }

  .cards {
    grid-template-columns: 1fr 1fr
  }

  .cards--people {
    grid-template-columns: 1fr 1fr
  }

  .hero__title {
    font-size: 48px
  }
}

@media (max-width: 720px) {
  .nav {
    display: none
  }

  .burger {
    display: inline-flex
  }

  .hero {
    min-height: 64dvh
  }

  .cards {
    grid-template-columns: 1fr
  }

  .masonry {
    columns: 2 160px
  }
}

@media (max-width: 420px) {
  .masonry {
    columns: 1 200px
  }
}