:root {
  --olive: #59644c;
  --olive-deep: #46503b;
  --ochre: #9d7730;
  --cream: #f3ebdf;
  --sand: #d0b896;
  --brown: #6f4d36;
  --text-light: #f7f0e6;
  --text-dark: #5d5547;
  --line-light: rgba(247, 240, 230, 0.4);
  --line-dark: rgba(93, 85, 71, 0.22);
  --shadow: 0 18px 42px rgba(44, 34, 20, 0.14);
  --content-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", "Segoe UI", Arial, sans-serif;
  background: linear-gradient(180deg, #dfd3bf 0%, #efe6da 100%);
  color: var(--text-dark);
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

button,
input,
textarea {
  font: inherit;
}

textarea {
  resize: vertical;
}

.page-shell {
  width: 100%;
  min-height: 100vh;
}

.section {
  padding: 74px clamp(20px, 5vw, 64px);
}

.section-inner {
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
}

.section-olive {
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.12), transparent 18%),
    var(--olive);
  color: var(--text-light);
}

.section-ochre {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent),
    var(--ochre);
  color: var(--text-light);
}

.section-cream {
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.55), transparent 22%),
    var(--cream);
  color: var(--text-dark);
}

.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
  gap: 54px;
  align-items: center;
}

.eyebrow,
.hero__subtitle,
.section-copy,
.calendar-card__caption,
.venue__info p,
.invitation__note,
.form-note,
.slider-caption,
.wishes-card {
  font-family: "Manrope", "Segoe UI", Arial, sans-serif;
  letter-spacing: 0.02em;
}

.eyebrow {
  margin: 0 0 20px;
  text-align: center;
  font-size: 1rem;
  font-weight: 500;
  opacity: 0.9;
}

.hero__title,
h2,
h3,
.invitation__date,
.contacts__farewell {
  font-weight: 400;
  letter-spacing: 0.01em;
  font-family: "Forum", "Times New Roman", serif;
  font-style: normal;
}

.hero__copy {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__title {
  margin: 0;
  text-align: center;
  font-size: clamp(3.2rem, 6.8vw, 5rem);
  line-height: 0.9;
  max-width: 7ch;
}

.hero__spark {
  margin-top: 34px;
  font-size: 1.5rem;
  opacity: 0.75;
}

.hero__visual {
  width: min(100%, 430px);
  justify-self: center;
}

.hero__subtitle {
  margin: 18px 0 0;
  text-align: right;
  font-family: "Forum", "Times New Roman", serif;
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  line-height: 0.92;
  letter-spacing: 0.02em;
  text-transform: none;
  width: 100%;
}

.photo-frame {
  overflow: hidden;
  box-shadow: var(--shadow);
}

.photo-frame--arch {
  border-radius: 190px 190px 0 0;
  aspect-ratio: 0.86;
}

.photo-frame--oval {
  width: min(280px, 72vw);
  aspect-ratio: 0.82;
  border-radius: 48% 48% 44% 44% / 38% 38% 52% 52%;
}

.invitation {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
  gap: 60px;
  align-items: center;
}

.invitation__text,
.timeline__inner,
.countdown__inner,
.wishes__inner {
  text-align: center;
}

.invitation__text h2,
.section-intro h2,
.timeline h2,
.countdown h2,
.rsvp h2,
.wishes h2,
.dresscode h2,
.contacts h2 {
  margin: 0 0 18px;
  font-size: clamp(2.35rem, 4.3vw, 3.1rem);
  line-height: 0.95;
}

.invitation__text p,
.section-copy,
.calendar-card__caption,
.venue__info p {
  margin: 0 auto;
  max-width: 32rem;
  font-size: 1rem;
  line-height: 1.65;
}

.invitation__note {
  margin-top: 18px;
}

.invitation__date {
  margin-top: 24px;
  font-size: clamp(2rem, 3.6vw, 2.8rem);
}

.calendar-card {
  padding: 28px 28px 24px;
  border: 1px solid var(--line-light);
}

.calendar-card__title {
  margin: 0 0 12px;
  text-align: center;
  font-size: 1.85rem;
}

.calendar-card__weekdays,
.calendar-card__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px 8px;
  text-align: center;
}

.calendar-card__weekdays {
  margin-bottom: 12px;
  font-size: 0.8rem;
  font-weight: 500;
  opacity: 0.74;
}

.calendar-day {
  position: relative;
  min-height: 28px;
  font-size: 1.12rem;
}

.calendar-day--selected::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 31px;
  height: 31px;
  border: 1px solid var(--text-light);
  border-radius: 999px;
  transform: translate(-50%, -50%);
}

.venue {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 42px;
  align-items: center;
}

.section-intro {
  text-align: center;
}

.venue__content {
  display: grid;
  grid-template-columns: minmax(220px, 340px) minmax(0, 1fr);
  gap: 30px;
  align-items: end;
}

.venue__place {
  margin-bottom: 10px;
  font-size: 1.72rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 172px;
  min-height: 48px;
  margin-top: 18px;
  padding: 10px 24px;
  border: 1px solid transparent;
  background: var(--cream);
  color: var(--olive-deep);
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, opacity 180ms ease;
}

.button:hover,
.slider-button:hover,
.dot:hover {
  transform: translateY(-1px);
}

.button--ghost {
  background: transparent;
  border-color: var(--line-dark);
  color: var(--text-dark);
}

.dresscode {
  text-align: center;
}

.dresscode .section-copy {
  max-width: 44rem;
}

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

.look-card {
  padding: 12px 24px 24px;
}

.look-card__head {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.look-card h3 {
  margin: 0;
  font-size: 1.7rem;
  text-align: center;
}

.slider-nav {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.slider-button {
  border: 0;
  padding: 0;
  background: none;
  color: var(--text-light);
  cursor: pointer;
  line-height: 1;
}

.slider-button--plain {
  font-size: 1.45rem;
  font-family: "Manrope", "Segoe UI", Arial, sans-serif;
  font-weight: 500;
  font-style: normal;
}

.look-slider {
  width: min(100%, 270px);
  margin: 0 auto;
}

.look-slide {
  overflow: hidden;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  aspect-ratio: 0.74;
}

.look-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slider-dots,
.wishes-controls {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
}

.dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.32);
  cursor: pointer;
}

.dot--active {
  background: var(--text-light);
}

.slider-caption {
  margin: 8px auto 0;
  max-width: 20rem;
  min-height: 48px;
  font-size: 1rem;
  line-height: 1.5;
  opacity: 0.92;
  text-align: center;
}

.slider-nav--under {
  margin-top: 8px;
}

.timeline__inner .section-copy {
  max-width: 40rem;
}

.timeline__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 30px;
}

.timeline__item {
  padding: 20px 16px;
  text-align: center;
  border-top: 1px solid var(--line-dark);
}

.timeline__item strong {
  display: block;
  margin-bottom: 10px;
  font-size: 2.2rem;
}

.timeline__item h3 {
  margin: 0 0 8px;
  font-size: 1.45rem;
}

.timeline__item p {
  margin: 0;
  font-family: "Manrope", "Segoe UI", Arial, sans-serif;
  font-size: 0.95rem;
  line-height: 1.55;
}

.timeline__nextday {
  max-width: 42rem;
  margin: 30px auto 0;
  text-align: center;
  font-family: "Manrope", "Segoe UI", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
}

.timeline__hint {
  margin: 8px auto 0;
  text-align: center;
  font-family: "Manrope", "Segoe UI", Arial, sans-serif;
  font-size: 0.88rem;
  line-height: 1.5;
  opacity: 0.82;
}

.wishes-card {
  width: min(100%, 720px);
  margin: 28px auto 0;
  padding: 10px 28px 0;
  font-size: 1rem;
  line-height: 1.75;
  text-align: center;
}

.wishes-controls {
  align-items: center;
  margin-top: 14px;
}

.wishes-counter {
  min-width: 96px;
  text-align: center;
  font-size: 1.45rem;
  font-family: "Forum", "Times New Roman", serif;
  font-style: normal;
}

.wishes-arrow {
  font-size: 2.8rem;
}

.countdown__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  max-width: 760px;
  margin: 34px auto 0;
}

.countdown__item {
  padding: 18px 10px;
  border-top: 1px solid var(--line-light);
}

.countdown__value {
  font-size: clamp(3rem, 6vw, 4.2rem);
  line-height: 1;
}

.countdown__label {
  margin-top: 6px;
  font-size: 1rem;
  opacity: 0.8;
}

.countdown .photo-frame--oval {
  margin: 36px auto 0;
}

.rsvp__heading {
  margin-bottom: 34px;
  text-align: center;
}

.rsvp-form {
  width: min(100%, 620px);
  margin: 0 auto;
}

.rsvp-form label,
.rsvp-form fieldset {
  display: block;
  margin: 0 0 22px;
}

.rsvp-form span,
.rsvp-form legend {
  display: block;
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.rsvp-form input[type="text"],
.rsvp-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(93, 85, 71, 0.28);
  background: rgba(255, 255, 255, 0.35);
  color: var(--text-dark);
}

.rsvp-form .button {
  background: var(--olive);
  color: var(--text-light);
  border: 1px solid var(--olive);
  box-shadow: 0 10px 24px rgba(70, 80, 59, 0.22);
}

.rsvp-form input[type="text"] {
  height: 46px;
}

.rsvp-form fieldset {
  border: 0;
  padding: 0;
}

.fieldset-note {
  margin: -2px 0 14px;
  color: rgba(93, 85, 71, 0.9);
  font-size: 0.92rem;
  line-height: 1.6;
}

.rsvp-form fieldset label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.form-note {
  min-height: 24px;
  margin-top: 12px;
}

.footer-strip {
  height: 72px;
  background: var(--olive);
}

@media (max-width: 980px) {
  .hero-section {
    min-height: auto;
    padding-top: 36px;
    padding-bottom: 44px;
  }

  .hero,
  .invitation,
  .venue,
  .venue__content,
  .dresscode__looks,
  .timeline__grid {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 24px;
  }

  .hero__visual {
    order: -1;
    width: min(100%, 340px);
  }

  .invitation,
  .venue {
    gap: 34px;
  }

  .hero__subtitle,
  .venue__info,
  .section-intro {
    text-align: center;
  }

  .hero__subtitle {
    margin-top: 12px;
  }

  .countdown__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .section {
    padding: 46px 16px;
  }

  .hero-section {
    padding-top: 28px;
    padding-bottom: 34px;
  }

  .hero {
    gap: 18px;
  }

  .hero__visual {
    width: min(100%, 292px);
  }

  .hero__title {
    font-size: 2.55rem;
    line-height: 0.94;
    max-width: none;
  }

  .hero__subtitle {
    font-size: 0.96rem;
    line-height: 1.12;
    letter-spacing: 0.05em;
  }

  .eyebrow {
    margin-bottom: 12px;
    font-size: 0.92rem;
  }

  .hero__spark {
    margin-top: 18px;
    font-size: 1.2rem;
  }

  .invitation__text h2,
  .section-intro h2,
  .timeline h2,
  .countdown h2,
  .rsvp h2,
  .wishes h2,
  .dresscode h2 {
    font-size: 1.9rem;
  }

  .invitation,
  .venue,
  .dresscode__looks,
  .timeline__grid {
    gap: 22px;
  }

  .invitation__text p,
  .section-copy,
  .venue__info p,
  .timeline__nextday,
  .wishes-card {
    font-size: 0.94rem;
    line-height: 1.6;
  }

  .invitation__date {
    margin-top: 18px;
    font-size: 1.7rem;
  }

  .calendar-card {
    padding: 18px 16px;
  }

  .calendar-card__title {
    font-size: 1.6rem;
  }

  .calendar-day {
    min-height: 24px;
    font-size: 1rem;
  }

  .calendar-card,
  .look-card {
    padding: 20px;
  }

  .look-card {
    padding: 10px 12px 18px;
  }

  .look-card h3 {
    font-size: 1.45rem;
  }

  .look-slider {
    width: min(100%, 230px);
  }

  .slider-nav--under {
    margin-top: 4px;
  }

  .slider-button--plain {
    font-size: 1.25rem;
  }

  .timeline__item {
    padding: 16px 10px;
  }

  .timeline__item strong {
    font-size: 1.85rem;
  }

  .timeline__item h3 {
    font-size: 1.2rem;
  }

  .timeline__hint {
    font-size: 0.8rem;
  }

  .wishes-card {
    padding: 18px 8px 0;
  }

  .wishes-counter {
    min-width: 74px;
    font-size: 1.2rem;
  }

  .wishes-arrow {
    font-size: 2rem;
  }

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

  .countdown__item {
    padding: 14px 8px;
  }

  .countdown__value {
    font-size: 2.2rem;
  }

  .rsvp-form span,
  .rsvp-form legend {
    font-size: 0.98rem;
  }

  .rsvp-form label,
  .rsvp-form fieldset {
    margin-bottom: 18px;
  }

  .rsvp-form input[type="text"],
  .rsvp-form textarea {
    padding: 11px 12px;
  }

  .button,
  .rsvp-form .button {
    width: 100%;
    min-width: 0;
  }
}
