/* Base */
:root {
  --bg: #faf8f5;
  --ink: #6b5d4f;
  --muted: #9b8d7f;
  --primary: #8b6f47;
  --primary-ink: #ffffff;
  --alt: #f5f1eb;
  --card: #ffffff;
  --border: #e8e0d6;
  --accent: #d4c4b0;
  --shadow: 0 2px 8px rgba(107, 93, 79, 0.08);
}

html {
  scroll-behavior: smooth;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-weight: 300;
}

img { max-width: 100%; display: block; border-radius: 0; }
a { color: inherit; text-decoration: none; transition: opacity 0.2s ease; }
a:hover { opacity: 0.7; }

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Nav */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 40px;
  background: rgba(250, 248, 245, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
}
.brand { 
  font-family: "Playfair Display", serif; 
  font-weight: 400; 
  font-size: 20px;
  letter-spacing: 3px;
  color: var(--primary);
}
.nav__list { display: flex; gap: 40px; list-style: none; margin: 0; padding: 0; }
.nav__list a { 
  padding: 0; 
  color: var(--muted);
  font-weight: 300;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.nav__list a:hover { 
  color: var(--primary);
}
.nav__list .btn {
  border: none;
  padding: 0;
  background: transparent;
}
.nav__list .btn:hover {
  background: transparent;
  color: var(--primary);
  opacity: 0.7;
}
.nav__toggle { 
  display: none; 
  background: transparent; 
  border: 0; 
  font-size: 20px;
  cursor: pointer;
  padding: 8px;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-bottom: 10vh;
}
.hero__bg {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, #faf8f5 0%, #f5f1eb 100%);
  z-index: -2;
  overflow: hidden;
}
.hero__bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  image-rendering: auto;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  will-change: transform;
}
.hero__bg::after {
  content: '';
  position: absolute; inset: 0;
  background: transparent;
  z-index: -1;
}
.hero__content {
  position: relative;
  z-index: 1;
  color: var(--ink);
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 22vh 40px 18vh;
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.overline { 
  text-transform: uppercase; 
  letter-spacing: 4px; 
  color: var(--muted); 
  font-size: 11px; 
  margin: 0;
  font-weight: 300;
}
.hero__title { 
  font-family: "Playfair Display", serif; 
  font-size: clamp(56px, 9vw, 84px); 
  margin: 0; 
  color: var(--primary);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.5px;
}
.hero__subtitle { 
  color: var(--muted); 
  margin: 0;
  font-size: clamp(16px, 2.2vw, 20px);
  font-weight: 300;
  letter-spacing: 1px;
  line-height: 1.6;
}
.countdown { 
  display: flex; 
  gap: 20px; 
  justify-content: center; 
  margin: 24px 0;
  flex-wrap: wrap;
}
.countdown__item { 
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border); 
  padding: 20px 28px; 
  border-radius: 0; 
  min-width: 80px;
  text-align: center;
}
.countdown__item span { 
  display: block; 
  font-weight: 300; 
  font-size: 36px;
  color: var(--primary);
  line-height: 1;
  letter-spacing: -1px;
  font-family: "Playfair Display", serif;
}
.countdown__item small { 
  color: var(--muted); 
  font-size: 10px;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-top: 12px;
  display: block;
}

/* Sections */
.section { 
  padding: 100px 0;
  position: relative;
}
.section--alt { 
  background: var(--alt);
}
.section h2 { 
  font-family: "Playfair Display", serif; 
  font-size: clamp(36px, 5vw, 48px); 
  margin: 0 0 60px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.5px;
  text-align: center;
  color: var(--primary);
}
.section h3 { 
  margin: 0 0 20px; 
  font-size: 14px;
  font-weight: 300;
  color: var(--muted);
  letter-spacing: 2px;
  text-transform: uppercase;
}

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

.timeline { 
  list-style: none; 
  margin: 0; 
  padding: 0; 
  display: grid; 
  gap: 40px; 
  max-width: 650px;
  margin: 0 auto;
}
.timeline li { 
  display: grid; 
  grid-template-columns: 100px 1fr; 
  gap: 40px; 
  align-items: start; 
  background: transparent; 
  border: none; 
  border-bottom: 1px solid var(--border);
  padding: 0 0 40px; 
  border-radius: 0; 
  box-shadow: none;
}
.timeline li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.timeline .time { 
  font-weight: 300; 
  color: var(--primary);
  font-size: 18px;
  letter-spacing: 1px;
  font-family: "Playfair Display", serif;
}
.timeline .event { 
  font-weight: 300;
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink);
}

.map-placeholder { 
  height: 300px; 
  border: 1px solid var(--border); 
  border-radius: 0; 
  display: grid; 
  place-items: center; 
  color: var(--muted);
  background: var(--alt);
}
.map-embed { 
  position: relative; 
  width: 100%; 
  padding-bottom: 56.25%; 
  border-radius: 0; 
  overflow: hidden; 
  box-shadow: none; 
  border: 1px solid var(--border);
}
.map-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-photo { 
  width: 100%; 
  height: auto; 
  display: block; 
  border-radius: 0; 
  box-shadow: none; 
  border: 1px solid var(--border);
}

.gallery__grid { 
  display: grid; 
  grid-template-columns: repeat(4, 1fr); 
  gap: 2px;
}
.gallery__grid img {
  border-radius: 0;
  transition: opacity 0.3s ease;
}
.gallery__grid img:hover {
  opacity: 0.8;
}

/* Form */
.form { 
  max-width: 600px; 
  margin: 0 auto;
}
.form__row { 
  display: grid; 
  gap: 8px; 
  margin-bottom: 32px; 
}
.form label { 
  font-size: 12px; 
  color: var(--muted);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.form input, .form textarea { 
  width: 100%; 
  padding: 16px 0; 
  border: none; 
  border-bottom: 1px solid var(--border); 
  border-radius: 0; 
  background: transparent; 
  outline: none; 
  transition: border-color 0.2s ease;
  font-size: 16px;
  font-family: inherit;
  color: var(--ink);
  font-weight: 300;
}
.form input:focus, .form textarea:focus { 
  border-bottom-color: var(--primary);
}
.form__radio-group, .form__checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 12px;
}
.form__radio-label, .form__checkbox-label {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 300;
  color: var(--ink);
  text-transform: none;
  letter-spacing: 0;
  margin-bottom: 0;
}
.form__radio-label span,
.form__checkbox-label span {
  order: 2;
  flex: 1;
}
.form__radio-label input[type="radio"],
.form__checkbox-label input[type="checkbox"] {
  order: 1;
  width: 20px;
  height: 20px;
  margin: 0;
  padding: 0;
  border: 2px solid var(--border);
  border-bottom: 2px solid var(--border);
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: transparent;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
}
.form__radio-label input[type="radio"] {
  border-radius: 50%;
}
.form__checkbox-label input[type="checkbox"] {
  border-radius: 0;
}
.form__radio-label input[type="radio"]:checked,
.form__checkbox-label input[type="checkbox"]:checked {
  border-color: var(--primary);
  background: var(--primary);
}
.form__radio-label input[type="radio"]:checked::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary-ink);
}
.form__checkbox-label input[type="checkbox"]:checked::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--primary-ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
}
.form__radio-label:hover input[type="radio"],
.form__checkbox-label:hover input[type="checkbox"] {
  border-color: var(--primary);
}
.form__actions { 
  display: flex; 
  gap: 16px; 
  align-items: center; 
  margin-top: 40px; 
}
.form__note { 
  color: var(--muted); 
  font-size: 12px;
  line-height: 1.6;
  margin-bottom: 24px;
}
.form__status { 
  margin-top: 24px; 
  font-weight: 400;
  padding: 16px 0;
  border-top: 1px solid var(--border);
}
.palette { 
  display: flex; 
  gap: 16px; 
  align-items: center; 
  margin-top: 16px; 
  flex-wrap: wrap; 
}
.palette__item { 
  width: 32px; 
  height: 32px; 
  border-radius: 0; 
  background: var(--c, #eee); 
  border: 1px solid var(--border); 
  box-shadow: none;
}

/* Buttons */
.btn { 
  display: inline-block; 
  padding: 18px 56px; 
  border-radius: 0; 
  border: 1px solid var(--primary); 
  background: transparent; 
  color: var(--primary); 
  box-shadow: none;
  font-weight: 300;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 2px;
}
.btn:hover {
  background: var(--primary);
  color: var(--primary-ink);
}
.btn--small { 
  padding: 14px 40px;
  font-size: 11px;
}
.btn--primary { 
  background: var(--primary);
  color: var(--primary-ink); 
  border-color: var(--primary);
}
.btn--primary:hover { 
  background: transparent;
  color: var(--primary);
}

/* Footer */
.footer { 
  padding: 80px 0; 
  text-align: center; 
  color: var(--muted);
  background: var(--bg);
  border-top: 1px solid var(--border);
}
.footnote { 
  font-size: 11px;
  margin-top: 24px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Responsive */
@media (max-width: 900px) {
  .grid--2 { grid-template-columns: 1fr; }
  .gallery__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .nav__toggle { display: block; }
  .nav__list { position: absolute; top: 56px; right: 12px; padding: 10px; background: #fff; border: 1px solid var(--border); border-radius: 12px; display: none; flex-direction: column; min-width: 200px; box-shadow: var(--shadow); }
  .nav__list.show { display: flex; }
  
  /* Исправление фона для мобильных устройств */
  .hero__bg-image {
    object-fit: cover;
    object-position: center center;
    width: 100%;
    height: 100%;
    min-height: 100vh;
  }
  
  .hero__bg {
    min-height: 100vh;
  }
  
  .hero__content {
    padding: 15vh 20px 10vh;
  }
  
  .countdown {
    gap: 12px;
  }
  
  .countdown__item {
    padding: 16px 20px;
    min-width: 70px;
  }
  
  .countdown__item span {
    font-size: 28px;
  }
}

/* Animations */
[data-reveal] { 
  opacity: 0; 
  transition: opacity 0.6s ease; 
}
[data-reveal].show { 
  opacity: 1; 
}


