/* ============================================================
   Свадебный сайт — «тихая роскошь»
   Палитра: бумага, графит, олива, терракота
   ============================================================ */

:root {
  --paper: #f7f2e9;
  --paper-2: #efe8db;
  --ink: #1e211d;
  --muted: #6e7268;
  --olive: #3b4a3e;
  --olive-soft: #5d6d5f;
  --clay: #a8562f;
  --line: #d8cfc0;
  --white: #fffdf8;

  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --s1: 4px;  --s2: 8px;  --s3: 12px; --s4: 16px;
  --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;

  --container: 1120px;
  --radius: 2px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 300;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 { font-family: var(--font-display); font-weight: 500; margin: 0; }

p { margin: 0 0 var(--s4); }
p:last-child { margin-bottom: 0; }

a { color: var(--olive); text-decoration-color: var(--line); text-underline-offset: 3px; }
a:hover { color: var(--clay); }

:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 3px;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: var(--s3);
  font-weight: 500;
}

.h2 { font-size: clamp(30px, 4vw, 46px); line-height: 1.15; margin-bottom: var(--s5); }

/* ---------- верхняя панель ---------- */

.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--s4) clamp(var(--s4), 4vw, var(--s7));
  color: var(--white);
  background: linear-gradient(to bottom, rgba(15,18,15,.55), rgba(15,18,15,0));
  transition: background .3s var(--ease), color .3s var(--ease);
}

.topbar__mark {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: .06em;
  color: inherit;
  text-decoration: none;
}
.topbar__mark span { color: #e8c9a8; }

.topbar__nav { display: flex; gap: var(--s5); }

.topbar__nav a {
  color: inherit;
  text-decoration: none;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .85;
  padding: var(--s1) 0;
  border-bottom: 1px solid transparent;
  transition: opacity .2s, border-color .2s;
}
.topbar__nav a:hover { opacity: 1; border-color: currentColor; color: inherit; }

.topbar.is-solid {
  background: rgba(247,242,233,.94);
  color: var(--ink);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.topbar.is-solid .topbar__mark span { color: var(--clay); }

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  color: var(--white);
  text-align: center;
  padding: var(--s9) var(--s5) var(--s8);
  overflow: hidden;
}

.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.hero__veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 45%, rgba(20,24,20,.25), rgba(20,24,20,.62) 70%),
    linear-gradient(to bottom, rgba(20,24,20,.55), rgba(20,24,20,.25) 40%, rgba(20,24,20,.7));
}

.hero__inner { position: relative; max-width: 760px; }

.hero__kicker {
  font-size: 13px;
  letter-spacing: .32em;
  text-transform: uppercase;
  margin-bottom: var(--s5);
  color: #f0dfcb;
}

.hero__names {
  font-size: clamp(52px, 11vw, 112px);
  line-height: .98;
  letter-spacing: .01em;
  margin-bottom: var(--s5);
}
.hero__names span { font-size: .55em; color: #e8c9a8; font-style: italic; }

.hero__place {
  font-size: 15px;
  letter-spacing: .08em;
  color: rgba(255,253,248,.85);
  margin-bottom: var(--s6);
}

.hero__cta {
  display: inline-block;
  padding: var(--s3) var(--s6);
  border: 1px solid rgba(255,253,248,.6);
  color: var(--white);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s;
}
.hero__cta:hover { background: var(--white); color: var(--ink); border-color: var(--white); }

/* ---------- приглашение ---------- */

.invite {
  max-width: 720px;
  margin: 0 auto;
  padding: var(--s9) var(--s5);
  text-align: center;
}

.invite__lead {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(24px, 3.4vw, 34px);
  color: var(--olive);
  margin-bottom: var(--s5);
}

.invite__text { font-size: 18px; line-height: 1.8; color: #3a3f38; }

.invite__sign {
  margin-top: var(--s6);
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--clay);
}

/* ---------- отсчёт ---------- */

.countdown {
  background: var(--olive);
  color: var(--white);
  padding: var(--s7) var(--s5);
}

.countdown__grid {
  max-width: 640px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  text-align: center;
  gap: var(--s5);
}

.countdown__num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(38px, 7vw, 64px);
  line-height: 1;
  margin-bottom: var(--s2);
}

.countdown__label {
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(255,253,248,.7);
}

/* ---------- две колонки ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--s9) var(--s5);
  gap: clamp(var(--s5), 5vw, var(--s8));
}

.split__media img {
  width: 100%;
  height: 100%;
  min-height: 380px;
  object-fit: cover;
}

.split__body { align-self: center; max-width: 480px; }

/* ---------- расписание ---------- */

.day { background: var(--paper-2); padding: var(--s9) var(--s5); }

.day__inner { max-width: 780px; margin: 0 auto; }

.timeline { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }

.timeline li {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: var(--s5);
  padding: var(--s5) 0 var(--s5) var(--s5);
  position: relative;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -4px;
  top: 38px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--clay);
}

.timeline time {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--olive);
  line-height: 1.2;
}

.timeline h3 { font-size: 22px; margin-bottom: var(--s1); }
.timeline p { color: var(--muted); margin: 0; font-size: 15.5px; }

/* ---------- место ---------- */

.place {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--s9) var(--s5);
  gap: clamp(var(--s5), 5vw, var(--s8));
  align-items: center;
}

.place__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.place__addr {
  font-size: 14px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: var(--s4);
}

.place__facts { list-style: none; padding: 0; margin: var(--s5) 0 var(--s6); }
.place__facts li {
  padding: var(--s3) 0;
  border-top: 1px solid var(--line);
  font-size: 15.5px;
  display: flex;
  justify-content: space-between;
  gap: var(--s4);
}
.place__facts strong { font-weight: 500; color: var(--olive); }

.btn {
  display: inline-block;
  padding: var(--s3) var(--s5);
  border: 1px solid var(--olive);
  color: var(--olive);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  transition: background .25s var(--ease), color .25s var(--ease);
  cursor: pointer;
  background: transparent;
  font-family: var(--font-body);
}
.btn:hover { background: var(--olive); color: var(--white); }

.btn--solid { background: var(--olive); color: var(--white); }
.btn--solid:hover { background: var(--clay); border-color: var(--clay); }

/* ---------- проживание ---------- */

.stay { padding: var(--s9) var(--s5); background: var(--white); }

.stay__inner { max-width: var(--container); margin: 0 auto; }

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s5);
}

.card {
  border: 1px solid var(--line);
  padding: var(--s6);
  background: var(--paper);
}

.card h3 { font-size: 24px; margin-bottom: var(--s2); }
.card__meta {
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: var(--s4);
}
.card p { font-size: 15.5px; color: #3a3f38; }
.card__price {
  margin-top: var(--s4);
  padding-top: var(--s4);
  border-top: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--olive);
}

/* ---------- заметки ---------- */

.notes {
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--s8) var(--s5);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(var(--s5), 6vw, var(--s8));
}

.notes__item p:last-child { font-size: 16.5px; color: #3a3f38; }

/* ---------- RSVP ---------- */

.rsvp { background: var(--olive); color: var(--white); padding: var(--s9) var(--s5); }

.rsvp__inner { max-width: 620px; margin: 0 auto; }

.rsvp .eyebrow { color: #e8c9a8; }
.rsvp .h2 { color: var(--white); }

.form { margin-top: var(--s6); }

.field { margin-bottom: var(--s5); }

.field label {
  display: block;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,253,248,.72);
  margin-bottom: var(--s2);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: var(--s3) var(--s3);
  background: rgba(255,253,248,.07);
  border: 1px solid rgba(255,253,248,.28);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  border-radius: var(--radius);
}

.field input::placeholder,
.field textarea::placeholder { color: rgba(255,253,248,.45); }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: #e8c9a8;
  background: rgba(255,253,248,.12);
}

.field select option { color: var(--ink); }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); }

.field--checks { border: 0; padding: 0; margin: 0 0 var(--s5); }
.field--checks legend {
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,253,248,.72);
  margin-bottom: var(--s3);
  padding: 0;
}
.field--checks label {
  display: flex;
  align-items: center;
  gap: var(--s2);
  font-size: 15px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--white);
  margin-bottom: var(--s2);
}
.field--checks input { width: 18px; height: 18px; accent-color: var(--clay); }

.form__status { margin-top: var(--s4); font-size: 15px; color: #e8c9a8; min-height: 22px; }

/* ---------- футер ---------- */

.footer {
  text-align: center;
  padding: var(--s8) var(--s5);
  background: var(--paper-2);
  border-top: 1px solid var(--line);
}

.footer__names {
  font-family: var(--font-display);
  font-size: 30px;
  color: var(--olive);
  margin-bottom: var(--s1);
}

.footer__date { font-size: 13px; letter-spacing: .28em; color: var(--clay); margin-bottom: var(--s4); }

.footer__contact { font-size: 14px; color: var(--muted); margin-bottom: var(--s4); }

.footer__nfc { font-size: 12px; letter-spacing: .08em; color: #8b8f84; }

/* ---------- появление ---------- */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- адаптив ---------- */

@media (max-width: 900px) {
  .split, .place, .notes { grid-template-columns: 1fr; }
  .split__body { max-width: none; }
  .cards { grid-template-columns: 1fr; }
  .place__media { order: -1; }
  .split__media img { min-height: 300px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .topbar__nav { gap: var(--s4); }
  .topbar__nav a { font-size: 11px; letter-spacing: .06em; }
  .hero { padding-top: 120px; }
  .invite, .day, .stay, .rsvp { padding-left: var(--s4); padding-right: var(--s4); }
  .split, .place, .notes { padding: var(--s7) var(--s4); }
  .timeline li { grid-template-columns: 64px 1fr; gap: var(--s3); }
  .timeline time { font-size: 19px; }
  .field-row { grid-template-columns: 1fr; }
  .countdown__grid { gap: var(--s3); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
