/* ===== Палитра как в примере webdis-event ===== */
:root {
  --bg: #f7f5f2;
  --bg-white: #ffffff;
  --text: #2c2824;
  --text-soft: #6b6560;
  --accent: #8b9a7b;
  --accent-dark: #6d7a5f;
  --gold: #a8895c;
  --line: rgba(44, 40, 36, 0.12);
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Montserrat", "Helvetica Neue", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 15px;
  color: var(--text);
  background: var(--bg);
  line-height: 1.75;
}

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

a {
  color: var(--accent-dark);
  text-decoration: none;
}

a:hover {
  color: var(--gold);
}

.container {
  width: min(720px, 90vw);
  margin: 0 auto;
  text-align: center;
}

.container--narrow {
  width: min(560px, 88vw);
}

.section {
  padding: 4.5rem 0;
}

.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-photo.placeholder {
  background: linear-gradient(180deg, #ebe6df 0%, #e0dbd3 100%);
}

.hero-photo.placeholder::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(247, 245, 242, 0.55);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-label {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6.5vw, 3.25rem);
  font-weight: 400;
  color: var(--text);
  margin: 0 0 2rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  line-height: 1.2;
}

.hero-label-line {
  display: block;
  text-align: center;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  /* компенсация letter-spacing — строка визуально по центру */
  padding-right: 0.18em;
}

.hero-subtitle {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 3vw, 1.4rem);
  font-style: italic;
  line-height: 1.65;
  margin: 0 0 1.25rem;
  color: var(--text);
  max-width: 440px;
}

.hero-text {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text-soft);
  max-width: 400px;
  margin: 0;
}

.section--countdown {
  background: var(--bg-white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.countdown-label {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 2rem;
}

.countdown {
  display: flex;
  justify-content: center;
  gap: clamp(1.25rem, 5vw, 2.5rem);
  flex-wrap: wrap;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 72px;
}

.countdown-value {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 7vw, 3.5rem);
  font-weight: 400;
  line-height: 1;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.countdown-unit {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-top: 0.5rem;
}

.section--program {
  background: var(--bg);
}

.program-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 400;
  letter-spacing: 0.45em;
  text-indent: 0.45em;
  text-transform: uppercase;
  margin-bottom: 3rem;
  color: var(--text);
}

.program-list {
  display: flex;
  flex-direction: column;
  gap: 2.75rem;
  max-width: 480px;
  margin: 0 auto;
}

.couple-photo-block {
  width: 100%;
  background: var(--bg);
}

.couple-photo-inner {
  position: relative;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  aspect-ratio: 959 / 806;
  max-height: 70vh;
  background: #e8e3dc;
  overflow: hidden;
}

.couple-photo-inner img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.couple-photo-inner.placeholder img {
  display: none;
}

.couple-photo-inner:not(.placeholder) .couple-photo-fallback {
  display: none;
}

.couple-photo-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.15em;
  color: var(--text-soft);
  text-align: center;
  padding: 1rem;
}

.program-item {
  text-align: center;
}

.program-time {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 2.75rem);
  font-weight: 400;
  color: var(--text);
  margin-bottom: 0.75rem;
  letter-spacing: 0.05em;
}

.program-text {
  font-size: 0.95rem;
  color: var(--text-soft);
  line-height: 1.7;
  max-width: 400px;
  margin: 0 auto;
}

.section--date {
  background: var(--bg-white);
  padding: 4rem 0;
}

.month-calendar {
  margin-bottom: 2rem;
}

.month-row,
.month-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.35rem;
  max-width: 360px;
  margin: 0 auto;
}

.month-row--labels {
  margin-bottom: 0.75rem;
}

.month-label {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--text-soft);
  text-align: center;
}

.month-day {
  font-family: var(--font-display);
  font-size: 1.05rem;
  padding: 0.35rem;
  color: var(--text-soft);
  text-align: center;
  min-height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.month-day--empty {
  visibility: hidden;
}

.month-day--wedding {
  color: var(--bg-white);
  background: var(--accent);
  border-radius: 50%;
  width: 2.25rem;
  height: 2.25rem;
  font-weight: 500;
}

.wedding-date {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  letter-spacing: 0.15em;
  color: var(--text);
}

.wedding-date .sep {
  margin: 0 0.35em;
  color: var(--gold);
  font-weight: 300;
}

.section--location {
  background: var(--bg);
}

.block-title {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 4vw, 1.75rem);
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.location-city {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin-bottom: 0.35rem;
}

.location-venue {
  font-size: 1rem;
  margin-bottom: 1.75rem;
}

.btn-map {
  display: inline-block;
  padding: 0.9rem 2rem;
  border: 1px solid var(--text);
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text);
  transition: background 0.25s, color 0.25s;
}

.btn-map:hover {
  background: var(--text);
  color: var(--bg-white);
}

.section--gifts {
  background: var(--bg-white);
}

.gifts-text {
  font-size: 0.95rem;
  color: var(--text-soft);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.gifts-text:last-child {
  margin-bottom: 0;
}

.section--dress {
  background: var(--bg);
}

.dress-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2rem);
  letter-spacing: 0.4em;
  text-indent: 0.4em;
  font-weight: 400;
  margin-bottom: 1rem;
}

.dress-text {
  font-size: 0.95rem;
  color: var(--text-soft);
  margin-bottom: 1.5rem;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

.dress-colors {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: clamp(0.65rem, 3vw, 1.1rem);
  flex-wrap: wrap;
}

.dress-swatch {
  position: relative;
  width: clamp(48px, 12vw, 56px);
  height: clamp(48px, 12vw, 56px);
  border-radius: 50%;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow:
    0 3px 12px rgba(0, 0, 0, 0.14),
    inset 0 -3px 10px rgba(0, 0, 0, 0.2),
    inset 0 2px 6px rgba(255, 255, 255, 0.2);
}

.dress-swatch::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(
    125deg,
    rgba(255, 255, 255, 0.5) 0%,
    rgba(255, 255, 255, 0.1) 35%,
    transparent 50%,
    rgba(0, 0, 0, 0.1) 75%,
    rgba(0, 0, 0, 0.2) 100%
  );
  pointer-events: none;
}

.dress-swatch::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(
    ellipse 90% 55% at 28% 22%,
    rgba(255, 255, 255, 0.35) 0%,
    transparent 65%
  );
  pointer-events: none;
}

.section--rsvp {
  background: var(--bg-white);
  border-top: 1px solid var(--line);
}

.rsvp-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  margin-bottom: 2.5rem;
}

.rsvp-heading span {
  font-family: var(--font-display);
  font-size: clamp(2rem, 7vw, 3.25rem);
  font-weight: 400;
  letter-spacing: 0.35em;
  text-indent: 0.35em;
  line-height: 1.1;
}

.rsvp-form {
  max-width: 420px;
  margin: 0 auto;
  text-align: left;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 0.5rem;
}

.form-group input[type="text"] {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  background: var(--bg);
  font-family: inherit;
  font-size: 0.95rem;
}

.form-group input:focus {
  outline: none;
  border-color: var(--accent);
}

.radio-group,
.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.radio-group label,
.checkbox-group label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.9rem;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text);
  cursor: pointer;
}

.radio-group input,
.checkbox-group input {
  accent-color: var(--accent);
  margin-top: 0.2rem;
}

.btn-submit {
  width: 100%;
  margin-top: 0.5rem;
  padding: 1rem;
  background: var(--text);
  color: var(--bg-white);
  border: none;
  font-family: inherit;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.25s;
}

.btn-submit:hover:not(:disabled) {
  background: var(--accent-dark);
}

.btn-submit:disabled {
  background: #b0aaa2;
  color: #f5f3f0;
  cursor: not-allowed;
  opacity: 0.85;
}

.rsvp-disabled-note {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-soft);
  margin-top: 1rem;
  font-style: italic;
}

.form-success {
  display: none;
  text-align: center;
  padding: 2rem 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--accent-dark);
}

.form-success.show {
  display: block;
}

.form-error {
  text-align: center;
  color: #a0522d;
  margin-top: 1rem;
  font-size: 0.9rem;
}

.footer {
  padding: 4rem 1.5rem;
  text-align: center;
  background: var(--bg);
  border-top: 1px solid var(--line);
}

.footer-names {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  letter-spacing: 0.12em;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.footer-and {
  font-style: italic;
  font-size: 0.55em;
  letter-spacing: 0.2em;
  color: var(--gold);
}

.footer-organizer {
  font-size: 0.85rem;
  color: var(--text-soft);
  max-width: 400px;
  margin: 0 auto;
  line-height: 1.7;
}

.footer-organizer a {
  color: var(--text);
  border-bottom: 1px solid var(--line);
}

@media (max-width: 480px) {
  .section {
    padding: 3.25rem 0;
  }

  .hero-label-line {
    letter-spacing: 0.12em;
    padding-right: 0.12em;
  }

  .program-title {
    letter-spacing: 0.25em;
    text-indent: 0.25em;
  }
}
