/* ===== Палитра как в примере webdis-event ===== */
:root {
  --bg: rgba(247, 245, 242, 0.72);
  --bg-white: rgba(255, 255, 255, 0.78);
  --bg-fallback: #e8e0d6;
  --text: #2c2824;
  --text-soft: #6b6560;
  --accent: #8b9a7b;
  --accent-dark: #6d7a5f;
  --gold: #a8895c;
  --dress-beige: #8C624D;
  --dress-beige-dark: #6b5240;
  --line: rgba(44, 40, 36, 0.12);
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Montserrat", "Helvetica Neue", sans-serif;
  --intro-brown: #3d3834;
  --intro-brown-soft: #4a433d;
  --invite-bg-image: url("/images/invite-bg.jpg");
  --invite-bg-image-mobile: url("/images/invite-bg-mobile.jpg?v=2");
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg-fallback);
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 15px;
  color: var(--text);
  background: transparent;
  line-height: 1.75;
  position: relative;
  isolation: isolate;
}

.site-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-color: var(--bg-fallback);
  background-image: var(--invite-bg-image);
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  pointer-events: none;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translate3d(0, 0, 0);
}

body::before {
  display: none;
}

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 {
  display: none;
}

.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.04em;
  font-style: normal;
  padding-right: 0;
}

.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.8;
  color: var(--text-soft);
  max-width: 480px;
  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: 3088 / 2056;
  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,
.program-heading {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 4vw, 1.75rem);
  font-weight: 400;
  color: var(--text);
  margin-bottom: 0.75rem;
  letter-spacing: 0.03em;
  line-height: 1.35;
}

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

.program-address {
  font-size: 0.9rem;
  color: var(--text-soft);
  line-height: 1.6;
  max-width: 440px;
  margin: 0 auto;
}

.program-address a {
  color: var(--accent-dark);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

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

.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(--dress-beige-dark);
  border-radius: 50%;
  width: 2.25rem;
  height: 2.25rem;
  font-weight: 500;
}

.wedding-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  margin-top: 0.5rem;
}

.wedding-date__month {
  font-family: var(--font-body);
  font-size: clamp(0.72rem, 2.5vw, 0.85rem);
  font-weight: 400;
  letter-spacing: 0.32em;
  text-indent: 0.32em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.wedding-date__day {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 14vw, 5rem);
  font-weight: 400;
  line-height: 1;
  color: var(--text);
  letter-spacing: 0.04em;
}

.wedding-date__year {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 5vw, 1.85rem);
  font-weight: 400;
  letter-spacing: 0.22em;
  text-indent: 0.22em;
  color: var(--text);
  margin-top: 0.25rem;
}

.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;
  line-height: 1.65;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

.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-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 400;
  letter-spacing: 0.08em;
  text-align: center;
  color: var(--text);
  margin-bottom: 2rem;
}

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

.gifts-text + .gifts-text {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.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-palette {
  max-width: min(720px, 92vw);
  margin: 0 auto;
}

.dress-palette__img {
  display: block;
  width: 100%;
  height: auto;
}

.btn-dress-examples {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.9rem 2rem;
  border: 1px solid var(--text);
  background: transparent;
  font-family: inherit;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  text-indent: 0.25em;
  color: var(--text);
  cursor: pointer;
  transition: background 0.25s, color 0.25s;
}

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

.dress-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
  overflow-y: auto;
}

.dress-modal.is-open {
  display: flex;
}

.dress-modal__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(44, 40, 36, 0.72);
  cursor: pointer;
}

.dress-modal__panel {
  position: relative;
  z-index: 1;
  width: fit-content;
  max-width: min(720px, calc(100vw - 2rem));
  margin: auto;
  background: var(--bg-white);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.28);
  line-height: 0;
}

.dress-modal__close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 2;
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.dress-modal__img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(720px, calc(100vw - 2rem));
  max-height: calc(100vh - 3rem);
  object-fit: contain;
}

.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--comment .comment-label {
  font-size: 0.9rem;
  letter-spacing: normal;
  text-transform: none;
  line-height: 1.65;
  color: var(--text);
  margin-bottom: 0.75rem;
}

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

.form-group textarea {
  resize: vertical;
  min-height: 5rem;
  line-height: 1.6;
}

.form-group select {
  cursor: pointer;
}

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

.form-group--consent {
  margin-top: 1.25rem;
  margin-bottom: 0;
}

.consent-label {
  display: flex !important;
  align-items: flex-start !important;
  gap: 0.65rem !important;
  font-size: 0.82rem !important;
  line-height: 1.55 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  color: var(--text-soft) !important;
}

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

.consent-label input {
  margin-top: 0.25rem;
  flex-shrink: 0;
  accent-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-closing {
  margin-top: 1.75rem;
  margin-bottom: 0.25rem;
  text-align: center;
}

.rsvp-closing__upper {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 4.5vw, 1.85rem);
  font-weight: 400;
  letter-spacing: 0.22em;
  text-indent: 0.22em;
  text-transform: uppercase;
  line-height: 1.2;
  color: var(--intro-brown-soft);
}

.rsvp-closing__script {
  display: block;
  font-family: "Great Vibes", cursive;
  font-size: clamp(2.4rem, 8vw, 3.25rem);
  font-weight: 400;
  line-height: 1;
  color: var(--intro-brown);
  margin-top: -0.1rem;
}

.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;
  max-width: 520px;
  margin: 0 auto;
}

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

.form-success__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--accent-dark);
  margin-bottom: 1.25rem;
}

.form-success__notice {
  font-size: 0.82rem;
  line-height: 1.65;
  color: var(--text-soft);
  text-align: left;
  padding: 1rem 1.1rem;
  background: var(--bg);
  border: 1px solid var(--line);
}

.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);
}

.footer-legal {
  margin-top: 1.25rem;
  font-size: 0.78rem;
}

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

.footer-legal-sep {
  color: var(--text-soft);
}

@media (max-width: 768px) {
  :root {
    --bg: rgba(247, 245, 242, 0.58);
    --bg-white: rgba(255, 255, 255, 0.64);
  }

  .site-bg {
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    min-height: -webkit-fill-available;
  }
}

@media (max-width: 768px) and (orientation: portrait) {
  .site-bg {
    background-image: var(--invite-bg-image-mobile);
    background-size: cover;
    background-position: center center;
  }
}

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

  .hero-label-line {
    letter-spacing: 0.05em;
  }

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