﻿@font-face {
  font-family: "Denistina";
  src: url("../fonts/fonts/ofont.ru_Denistina.woff") format("woff");
  font-display: block;
}

:root {
  --bg-light: #e6dac7;
  --bg-dark: #385723;
  --text: #385723;
  --accent: #990201;
  --line: #5b7a46;
  --line-soft: #7f8d6c;
  --container: min(100% - 2rem, 68rem);
  --card-max: 36rem;
  --card-unified-width: 43rem;
  --body-copy-size: clamp(0.98rem, 1.55vw, 1.35rem);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg-light);
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.45;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.section {
  padding: clamp(1rem, 1.3vw + 0.8rem, 2.25rem) 0;
  overflow-x: clip;
}

.section--dark {
  background: var(--bg-dark);
  border-left: 2px solid var(--bg-dark);
  border-right: 2px solid var(--bg-dark);
  overflow: hidden;
}

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

.card {
  position: relative;
  background: var(--bg-light);
  border-radius: 0.65rem;
}

.frame-card {
  isolation: isolate;
}

.frame-card__frame {
  position: absolute;
  inset: 0.65rem;
  width: calc(100% - 1.3rem);
  height: calc(100% - 1.3rem);
  object-fit: contain;
  object-position: center;
  image-rendering: auto;
  opacity: 1;
  pointer-events: none;
  z-index: 0;
}

.script-title,
.script-subtitle {
  margin: 0;
  font-family: "Denistina", Arial, sans-serif;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.script-title {
  font-size: clamp(2.95rem, 4.6vw, 4.9rem);
  line-height: 0.9;
}

.script-subtitle {
  font-size: clamp(2rem, 3vw, 3.25rem);
  line-height: 0.92;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.45rem;
  padding: 0.55rem 1.1rem;
  font-size: clamp(0.78rem, 1.2vw, 1rem);
  line-height: 1;
  transition: background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.btn--outline {
  border: 1px solid #77612a;
  color: var(--text);
  background: transparent;
}

.btn--outline:hover {
  background: var(--text);
  color: var(--bg-light);
}

.btn--small {
  font-size: 0.76rem;
  padding: 0.55rem 0.95rem;
}

.btn--pill {
  border: 0;
  border-radius: 0.45rem;
  padding: 0.95rem 2.5rem;
  background: var(--bg-dark);
  color: #fff;
  font-family: "Denistina", Arial, sans-serif;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  text-transform: lowercase;
  cursor: pointer;
}

.btn--pill:hover {
  opacity: 0.86;
}

[aria-disabled="true"] {
  pointer-events: none;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 1.6s ease, transform 1.6s ease;
  transition-delay: var(--reveal-delay, 0s);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hero .container {
  display: flex;
  justify-content: center;
}

.hero-card {
  width: min(100%, var(--card-unified-width));
  aspect-ratio: 768 / 992;
  min-height: 0;
  padding: 0;
  overflow: hidden;
}

.hero-card__art {
  position: absolute;
  left: 0.04%;
  top: -6.1%;
  width: 97.92%;
  max-width: none;
  transform: none;
  z-index: 1;
}

.hero-card__title {
  position: absolute;
  left: 43.6%;
  top: 14.3%;
  width: 38.7%;
  transform: none;
  margin: 0;
  font-family: "Denistina", Arial, sans-serif;
  font-weight: 100;
  font-size: clamp(2.35rem, 7.4vw, 5.6rem);
  line-height: 1.02;
  text-align: right;
  z-index: 2;
}

.invitation {
  text-align: center;
}

.invitation__inner {
  max-width: 42rem;
  margin: 0 auto;
}

.invitation__greeting {
  margin-bottom: 0.6rem;
}

.invitation__text {
  margin: 0 auto;
  max-width: 31rem;
  font-size: var(--body-copy-size);
}

.invitation__wait {
  margin: 0.6rem 0 0;
  opacity: 0.7;
  font-size: clamp(1.45rem, 2.35vw, 1.95rem);
}

.invitation__date {
  margin: 0;
  color: var(--accent);
  font-family: "Denistina", Arial, sans-serif;
  font-size: clamp(3.1rem, 6.1vw, 5.2rem);
  line-height: 0.95;
}

.venue-card {
  width: min(100%, var(--card-unified-width));
  aspect-ratio: 768 / 1137.4375;
  margin: 0 auto;
  padding: 0;
  overflow: hidden;
}

.venue-card__title {
  position: absolute;
  margin: 0;
  font-size: clamp(2.7rem, 4.9vw, 3.95rem);
  font-weight: 700;
  line-height: 1;
  left: 12.86%;
  top: 10.65%;
  width: 93.54%;
  text-align: left;
  transform: none;
  z-index: 3;
}

.venue-card__subtitle {
  position: absolute;
  margin: 0;
  font-size: clamp(3.15rem, 5.7vw, 4.75rem);
  left: 17.03%;
  top: 17.37%;
  width: 93.54%;
  text-align: left;
  transform: none;
  z-index: 3;
}

.venue-card__place,
.venue-card__address {
  position: absolute;
  margin: 0;
  text-align: center;
  left: 25%;
  width: 50%;
  font-size: var(--body-copy-size);
  z-index: 3;
}

.venue-card__place {
  top: 28.86%;
}

.venue-card__address {
  top: 31.59%;
}

.venue-card__art {
  position: absolute;
  left: 7.03%;
  top: 22.71%;
  width: 77.08%;
  margin: 0;
  transform: none;
  z-index: 1;
}

.venue-card .btn {
  position: absolute;
  left: 50%;
  top: 84.2%;
  width: auto;
  min-width: clamp(130px, 17vw, 205px);
  min-height: 36px;
  padding: 0.55rem 1rem;
  white-space: nowrap;
  font-size: clamp(0.78rem, 1.02vw, 0.98rem);
  margin: 0;
  transform: translateX(-50%);
  z-index: 3;
}

.venue__transfer {
  margin: 0.7rem auto 0;
  max-width: 40rem;
  color: var(--bg-light);
  text-align: center;
  font-size: var(--body-copy-size);
  line-height: 1.35;
}

.program__title {
  text-align: center;
  margin: 0 0 0.9rem;
  font-size: clamp(2.95rem, 4.6vw, 4.9rem);
  line-height: 1;
}

.program {
  padding-top: clamp(1.6rem, 4vw, 2.2rem);
  padding-bottom: clamp(2.2rem, 6vw, 4rem);
}

.program-list {
  width: min(100%, 22rem);
  margin: 0 auto;
  display: grid;
  gap: 1rem;
}

.program-item {
  position: relative;
  text-align: center;
  padding: 0.4rem 0.9rem;
}

.program-item:last-child {
  padding-bottom: clamp(10rem, 30vw, 14rem);
}

.program-item__icon {
  position: absolute;
  top: 50%;
  width: 3.6rem;
  opacity: 0.95;
  pointer-events: none;
}

.program-item__icon--left {
  left: 2rem;
  transform: translate(-50%, -50%);
}

.program-item__icon--right {
  right: 2rem;
  transform: translate(50%, -50%);
}

.program-item__icon--table {
  width: clamp(13rem, 56vw, 16rem);
  top: 6%;
  left: 46%;
  transform: translateX(-50%);
}

.program-item__time {
  margin: 0;
  font-family: "Denistina", Arial, sans-serif;
  font-size: clamp(3.2rem, 10.5vw, 4.5rem);
  line-height: 1;
}

.program-item__name {
  margin-top: -0.65rem;
  margin-bottom: 0.25rem;
  font-size: clamp(2rem, 3vw, 3.25rem);
  line-height: 0.92;
}

.program-item__desc {
  margin: 0 auto 0;
  max-width: 19rem;
  font-size: var(--body-copy-size);
  line-height: 1.2;
}

.program-item:nth-child(-n + 2) .program-item__desc {
  max-width: 22rem;
}

.program-item__icon--left:not(.program-item__icon--table),
.program-item__icon--right {
  width: clamp(20rem, 110vw, 28rem);
}

.program-item:nth-child(1) .program-item__icon--left {
  left: 1.5rem;
  top: 106%;
}

.program-item:nth-child(2) .program-item__icon--right {
  right: 2.4rem;
  top: 92%;
}

.dress {
  padding-top: 0.85rem;
  padding-bottom: 0.95rem;
}

.dress-card {
  width: min(100%, var(--card-unified-width));
  margin: 0 auto;
  padding: 2.2rem 0.72rem 2.3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.dress-card__title {
  margin-top: 0.05rem;
  font-size: clamp(2.95rem, 4.6vw, 4.9rem);
  position: relative;
  z-index: 2;
}

.dress-card__text {
  margin: 0.2rem auto 0;
  max-width: 32rem;
  font-size: var(--body-copy-size);
  line-height: 1.32;
  position: relative;
  z-index: 2;
}

.dress-card__text:first-of-type {
  margin-bottom: 0.68rem;
}

.dress-card__text + .dress-card__text {
  padding-top: 0.68rem;
}

.dress-card__palette {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.34rem;
  width: min(66%, 15.5rem);
  margin: 0.15rem auto 0.95rem;
}

.dress-card__palette + .dress-card__text {
  margin-top: 0.78rem;
}

.dress-card__stroke {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 1.66rem;
}

.dress-card__stroke::before {
  content: "";
  position: absolute;
  left: -0.18rem;
  right: -0.58rem;
  top: -0.08rem;
  bottom: -0.08rem;
  background-image: var(--brush-image);
  background-position: center;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  opacity: 0.98;
  z-index: 0;
  pointer-events: none;
}

.dress-card__stroke::after {
  content: "";
  position: absolute;
  right: -0.2rem;
  top: 0.2rem;
  bottom: 0.2rem;
  width: 0.86rem;
  background:
    radial-gradient(85% 100% at 0% 50%, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0) 75%);
  opacity: 0.52;
  pointer-events: none;
}

.dress-card__stroke:nth-child(2n) {
  transform: rotate(-0.55deg);
}

.dress-card__stroke:nth-child(2n + 1) {
  transform: rotate(0.5deg);
}

.dress-card__stroke-label {
  font-family: "Denistina", Arial, sans-serif;
  position: relative;
  z-index: 1;
  font-size: 0.8rem;
  line-height: 0.92;
  letter-spacing: 0.012em;
  text-transform: lowercase;
  color: var(--label-color, rgba(71, 52, 38, 0.9));
  text-shadow: 0 1px 1.4px rgba(0, 0, 0, 0.3), 0 0 0.5px rgba(255, 255, 255, 0.2);
  pointer-events: none;
}

.dress-card__stroke--1 { width: 97%; margin-left: 0.2rem; --stroke-color: #752d32; --brush-image: url("../images/brushes/brush-1.png"); --label-color: #f2e3d4; }
.dress-card__stroke--2 { width: 100%; margin-left: 0; --stroke-color: #967a61; --brush-image: url("../images/brushes/brush-2.png"); --label-color: #f6ebdf; }
.dress-card__stroke--3 { width: 96.5%; margin-left: 0.18rem; --stroke-color: #e4cfb4; --brush-image: url("../images/brushes/brush-3.png"); --label-color: #5b4736; }
.dress-card__stroke--4 { width: 99%; margin-left: 0.05rem; --stroke-color: #565535; --brush-image: url("../images/brushes/brush-4.png"); --label-color: #eee2d1; }
.dress-card__stroke--5 { width: 95.8%; margin-left: 0.24rem; --stroke-color: #5b3422; --brush-image: url("../images/brushes/brush-5.png"); --label-color: #f2e0cf; }
.dress-card__stroke--6 { width: 98.6%; margin-left: 0.08rem; --stroke-color: #b67643; --brush-image: url("../images/brushes/brush-6.png"); --label-color: #f8ebde; }

.details__container {
  max-width: 46rem;
  text-align: center;
}

.details__title {
  margin: 0;
}

.details__divider {
  width: min(100%, 12.5rem);
  margin: 0.12rem auto 0.65rem;
  opacity: 0.95;
}

.details__divider--bottom {
  margin: 1.15rem auto 0.2rem;
  transform: rotate(180deg);
}

.details-item {
  margin-top: 0.5rem;
}

.details-item:nth-of-type(3) {
  margin-top: 0.75rem;
}

.details-item--hotels {
  margin-top: 1.4rem;
}

.details-item__title {
  margin: 0;
}

.details-item__text {
  margin: 0.7rem auto 0;
  max-width: 34rem;
  font-size: clamp(0.68rem, 1.9vw, 0.86rem);
  line-height: 1.68;
}

.details-item__details {
  margin-top: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.details-item__toggle {
  list-style: none;
  cursor: pointer;
  order: 0;
  margin-top: 0;
}

.details-item__toggle::-webkit-details-marker {
  display: none;
}

.details-item__details[open] .details-item__toggle {
  order: 2;
}

.details-item__list {
  margin: 0.9rem auto 0;
  max-width: 36rem;
  text-align: center;
  font-size: clamp(0.68rem, 1.9vw, 0.86rem);
  line-height: 1.68;
  order: 1;
}

.details-item__list a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.details-item__list a:hover {
  opacity: 0.85;
}

.details-item__hotel {
  margin: 0.65rem 0 0;
  font-size: clamp(0.68rem, 1.9vw, 0.86rem);
  line-height: 1.68;
}

.details-item__hotel:first-child {
  margin-top: 0;
}

.details-item .btn {
  margin-top: 1.1rem;
  font-family: "Denistina", Arial, sans-serif;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
}

.dress-card .btn {
  min-width: clamp(130px, 17vw, 205px);
  min-height: 36px;
  padding: 0.55rem 1rem;
  white-space: nowrap;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(0.88rem, 1.6vw, 1.1rem);
  background: var(--bg-dark);
  color: var(--bg-light);
  border-color: var(--bg-dark);
}

.details-item .btn {
  min-width: clamp(130px, 17vw, 205px);
  min-height: 36px;
  padding: 0.55rem 1rem;
  white-space: nowrap;
}

.details-item .details-item__toggle {
  margin-top: 1.1rem;
}

.details-item__details[open] .details-item__toggle {
  margin-top: 0.9rem;
}

.dress-card .btn {
  margin-top: 2rem;
  position: relative;
  z-index: 2;
}

.rsvp-card {
  width: min(100%, var(--card-unified-width));
  margin: 0 auto;
  padding: clamp(1.3rem, 2.2vw, 2rem);
}

.rsvp-card__title {
  text-align: center;
  margin: 0;
  font-size: clamp(2.95rem, 4.6vw, 4.9rem);
  line-height: 0.9;
}

.rsvp-card__subtitle {
  margin: 0.85rem auto 0;
  max-width: 34rem;
  text-align: center;
  font-size: var(--body-copy-size);
}

.rsvp-form {
  margin-top: 1.2rem;
  display: grid;
  gap: 1rem;
}

.field,
.field-group {
  margin: 0;
  padding: 0;
  border: 0;
}

.field__label {
  display: block;
  margin-bottom: 0.45rem;
  font-size: var(--body-copy-size);
}

.field__input {
  width: 100%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  font: inherit;
  padding: 0.75rem 0.85rem;
}

.field__input:focus {
  outline: 2px solid rgba(56, 87, 35, 0.22);
  outline-offset: 1px;
}

.radio {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0.5rem 0 0;
  font-size: var(--body-copy-size);
}

.radio input {
  appearance: none;
  width: 1.5rem;
  height: 1.5rem;
  border: 2px solid var(--line);
  border-radius: 50%;
  margin: 0;
  position: relative;
}

.radio input:checked::after {
  content: "";
  width: 0.64rem;
  height: 0.64rem;
  border-radius: 50%;
  background: var(--line);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.children {
  padding: 0.95rem;
  border: 1px solid rgba(56, 87, 35, 0.2);
  border-radius: 0.55rem;
  background: rgba(56, 87, 35, 0.04);
}

.children__list {
  display: grid;
  gap: 0.7rem;
  margin-bottom: 0.7rem;
}

.child-card {
  border: 1px solid rgba(56, 87, 35, 0.23);
  border-radius: 0.5rem;
  padding: 0.7rem;
  background: var(--bg-light);
}

.child-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.45rem;
}

.child-card__title {
  font-size: 0.96rem;
  font-weight: 700;
}

.child-card__remove {
  border: 0;
  background: transparent;
  color: #990201;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}

.child-card label {
  display: block;
  font-size: var(--body-copy-size);
  margin-top: 0.35rem;
}

.child-card input {
  width: 100%;
  border: 1px solid var(--line-soft);
  background: transparent;
  color: var(--text);
  font: inherit;
  padding: 0.45rem 0.55rem;
  margin-top: 0.2rem;
}

.rsvp-form .field__label,
.rsvp-form .radio,
.rsvp-form .field__input,
.rsvp-form .child-card label,
.rsvp-form .child-card input,
.rsvp-form .child-card__title,
.rsvp-form .btn--small {
  font-size: clamp(0.68rem, 1.8vw, 0.84rem) !important;
}

.rsvp-form .btn--pill {
  justify-self: center;
  margin-top: 0.15rem;
}

.success {
  margin: 0.35rem 0 0;
  text-align: center;
  font-size: var(--body-copy-size);
}

@media (max-width: 600px) {
  .hero-card .frame-card__frame {
    inset: 0;
    width: 100%;
    height: 100%;
    transform: scale(1.045);
  }

  .hero-card__art {
    top: -6%;
    width: 115%;
    left: -10%;
  }

  .hero-card__title {
    font-size: clamp(3.2rem, 14.8vw, 4.9rem);
    top: 13.8%;
    left: 42.6%;
    white-space: nowrap;
    width: 45%;
  }

  .venue-card__title {
    font-size: clamp(1.9rem, 8vw, 2.7rem);
  }

  .venue-card__subtitle {
    font-size: clamp(2.65rem, 11.1vw, 3.75rem);
    top: 19.3%;
    left: 15.8%;
  }

  .venue-card__place,
  .venue-card__address {
    left: 19%;
    width: 62%;
    text-align: center;
    font-size: clamp(0.78rem, 2.4vw, 0.95rem);
    line-height: 1.2;
  }

  .venue-card__place {
    top: 27.8%;
  }

  .venue-card__address {
    top: 32.3%;
  }

  .venue-card .frame-card__frame {
    inset: 0;
    width: 100%;
    height: 100%;
    transform: scale(1.06);
  }

  .venue-card__art {
    width: 87%;
    left: 2.8%;
    top: 21.7%;
  }

  .venue-card .btn {
    top: 81.8%;
  }

  .invitation__inner {
    max-width: 19rem;
  }

  .invitation__date {
    font-size: clamp(2.3rem, 14vw, 4rem);
  }
}

@media (max-width: 1280px) {
  .venue-card .btn {
    top: 83.1%;
  }
}

@media (max-width: 900px) {
  .venue-card .btn {
    top: 82.4%;
  }
}

@media (max-width: 1079px) {
  .rsvp-card__subtitle {
    font-size: clamp(0.86rem, 2.35vw, 1.08rem) !important;
    line-height: 1.72 !important;
  }

  .dress-card__text {
    font-size: clamp(0.74rem, 2vw, 0.94rem) !important;
    line-height: 1.72 !important;
  }

  .details-item__text {
    font-size: clamp(0.74rem, 2vw, 0.94rem) !important;
    line-height: 1.72 !important;
  }

  .details-item__list,
  .details-item__hotel {
    font-size: clamp(0.74rem, 2vw, 0.94rem) !important;
    line-height: 1.72 !important;
  }

  .rsvp-form .field__label,
  .rsvp-form .radio,
  .rsvp-form .field__input,
  .rsvp-form .child-card label,
  .rsvp-form .child-card input,
  .rsvp-form .child-card__title,
  .rsvp-form .btn--small,
  .rsvp-form .success {
    font-size: clamp(0.74rem, 2vw, 0.92rem) !important;
  }

  .venue-card__subtitle {
    font-size: clamp(2.9rem, 12vw, 4rem) !important;
    left: 18.4% !important;
    top: 18.6% !important;
  }

  .venue-card__place,
  .venue-card__address {
    left: 9% !important;
    width: 82% !important;
    margin: 0;
    text-align: center;
    font-size: clamp(0.74rem, 1.95vw, 0.92rem) !important;
    line-height: 1.18 !important;
    white-space: nowrap;
  }

  .venue-card__place {
    top: 30.1% !important;
  }

  .venue-card__address {
    top: 34.2% !important;
  }

  .venue-card__art {
    width: 95% !important;
    left: -1.2% !important;
    top: 18.2% !important;
  }

  .venue-card .btn {
    top: 88.5% !important;
    min-width: 6.4rem !important;
    min-height: 1.7rem !important;
    padding: 0.28rem 0.7rem !important;
    font-size: clamp(0.74rem, 1.95vw, 0.92rem) !important;
    color: #77612a !important;
  }

  .venue-card .btn:hover {
    color: #fff !important;
  }

  .venue__transfer {
    font-size: clamp(0.74rem, 1.95vw, 0.92rem) !important;
    line-height: 1.66 !important;
  }
}

@media (max-width: 430px) {
  .section--dark {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }

  .section--dark .container {
    width: min(100% - 2rem, 68rem) !important;
  }
}

@media (max-width: 600px) {
  .hero-card {
    aspect-ratio: 768 / 1120;
  }

  .venue-card {
    aspect-ratio: 768 / 1137.4375;
  }

  .dress-card {
    min-height: 24.8rem;
    padding: 1.4rem 0.72rem 1.1rem;
  }

  .rsvp-card {
    min-height: 36rem;
  }

  .section--dark {
    padding-top: 1.2rem;
    padding-bottom: 1.2rem;
  }

  .section--dark .container {
    width: min(100% - 2.4rem, 68rem);
  }

  .dress-card__palette {
    width: min(86%, 19rem);
    gap: 0.5rem;
    margin: 0.35rem auto 1.2rem;
  }

  .dress-card__stroke {
    height: 2.05rem;
  }

  .dress-card__stroke-label {
    font-size: 1rem;
  }

  .dress-card__text {
    margin-top: 0.72rem;
    line-height: 1.68;
  }

  .dress-card__text:first-of-type {
    margin-bottom: 0.82rem;
  }

  .dress-card__text + .dress-card__text {
    padding-top: 0.82rem;
  }

  .dress-card .btn {
    margin-top: 0.55rem;
  }
}

@media (min-width: 740px) {
  .section {
    padding: clamp(1.35rem, 2vw, 2.8rem) 0;
  }

  .program-list {
    width: min(92vw, 25rem);
    gap: 1.2rem;
  }

  .program-item {
    padding: 0.5rem 1.5rem;
  }

  .program-item__icon--left:not(.program-item__icon--table),
  .program-item__icon--right {
    width: 28rem;
  }

  .program-item__icon--left {
    left: 2.4rem;
    transform: translate(-50%, -50%);
  }

  .program-item__icon--right {
    right: 2.4rem;
    transform: translate(50%, -50%);
  }

  .program-item__icon--table {
    width: 17rem;
    left: 38%;
    transform: translateX(-50%);
    top: 24%;
  }

  .program-item:nth-child(1) .program-item__icon--left,
  .program-item:nth-child(2) .program-item__icon--right {
    top: 66%;
  }

  .program-item:nth-child(2) .program-item__icon--right {
    top: 84%;
  }
}

@media (min-width: 1080px) {
  .container {
    width: min(100% - 4rem, 76rem);
  }

  :root {
    --card-unified-width: 48rem;
  }

  .program {
    padding-bottom: 14rem;
  }

  .program-item:last-child {
    padding-bottom: 4rem;
  }

  .program-list {
    width: min(92vw, 28rem);
    gap: 1.7rem;
  }

  .program-item {
    padding: 0.55rem 3rem;
  }

  .program-item__icon--left:not(.program-item__icon--table),
  .program-item__icon--right {
    width: 40rem;
    transform: none;
  }

  .program-item__icon--table {
    width: 22.5rem;
    left: -5.8rem;
    top: -6%;
    transform: none;
  }

  .program-item:nth-child(1) .program-item__icon--left {
    left: -14rem;
    top: -78%;
  }

  .program-item:nth-child(2) .program-item__icon--right {
    right: -9.2rem;
    top: -92%;
  }

  .program-item:nth-child(3) .program-item__name {
    white-space: nowrap;
  }

  .program-item__desc {
    font-size: clamp(0.92rem, 1.45vw, 1.22rem);
  }

  .rsvp-form .field__label,
  .rsvp-form .radio,
  .rsvp-form .field__input,
  .rsvp-form .child-card__title,
  .rsvp-form .child-card label,
  .rsvp-form .child-card input,
  .rsvp-form .success {
    font-size: clamp(0.92rem, 1.45vw, 1.22rem) !important;
  }
}

@media (max-width: 1079px) {
  .program-item__desc {
    max-width: 18rem !important;
    font-size: clamp(0.74rem, 2vw, 0.92rem) !important;
    line-height: 1.3 !important;
    text-align: center !important;
  }

  .program-item:nth-child(-n + 2) .program-item__desc {
    max-width: 18rem !important;
  }

  .program-item:nth-child(1) .program-item__icon--left {
    left: 4.2rem !important;
    transform: translate(-50%, -50%) rotate(22deg) !important;
  }

  .program-item:nth-child(2) .program-item__icon--right {
    right: 3.9rem !important;
  }

  .program-item__icon--table {
    width: clamp(15.5rem, 70vw, 21rem) !important;
    left: 38% !important;
    top: -10% !important;
  }
}

@media (min-width: 740px) and (max-width: 1079px) {
  .program-item:nth-child(1) .program-item__icon--left {
    top: 88% !important;
  }

  .program-item:nth-child(2) .program-item__icon--right {
    top: 98% !important;
  }
}

@media (max-width: 440px) and (min-height: 880px) {
  .program {
    padding-bottom: clamp(3.2rem, 9vw, 5rem) !important;
  }

  .program-item__icon--table {
    top: -8.5% !important;
    left: 40% !important;
    width: clamp(14.8rem, 66vw, 19.5rem) !important;
  }
}

@media (max-width: 370px) and (min-height: 730px) and (max-height: 760px) {
  .program-item__icon--table {
    top: -4.5% !important;
    left: 39% !important;
  }
}

@media (max-width: 380px) and (max-height: 700px) {
  .program-item__icon--table {
    top: -6.8% !important;
  }
}

@media (min-width: 520px) and (max-width: 560px) and (min-height: 700px) and (max-height: 740px),
  (min-width: 700px) and (max-width: 740px) and (min-height: 520px) and (max-height: 560px) {
  .program {
    padding-bottom: clamp(4.4rem, 12vw, 6rem) !important;
  }

  .program-item__icon--table {
    top: -16% !important;
    left: 41% !important;
  }
}

@media (max-width: 360px) and (min-height: 860px) {
  .program {
    padding-bottom: clamp(1.6rem, 4vw, 2.6rem) !important;
  }

  .program-item__icon--table {
    top: -3.6% !important;
    left: 39% !important;
  }
}

@media (min-width: 740px) and (max-width: 1025px) {
  .program-item__icon--left:not(.program-item__icon--table),
  .program-item__icon--right {
    width: 24rem !important;
  }

  .program-item:nth-child(1) .program-item__icon--left {
    top: 94% !important;
    left: 2.1rem !important;
  }

  .program-item:nth-child(2) .program-item__icon--right {
    top: 102% !important;
    right: 2.1rem !important;
  }

  .program-item__icon--table {
    top: 3% !important;
  }
}

@media (min-width: 1080px) {
  body {
    zoom: 0.75;
  }

  .hero-card {
    aspect-ratio: 768 / 1038;
  }

  .hero-card {
    width: min(100%, 40.8rem) !important;
    margin: 0 auto;
  }

  .hero-card .frame-card__frame {
    inset: 0;
    width: 100%;
    height: 100%;
    transform: scale(1.06);
  }

  .venue-card .frame-card__frame {
    inset: 0.26rem 0.38rem;
    width: calc(100% - 0.76rem);
    height: calc(100% - 0.52rem);
    transform: none;
  }

  .venue-card {
    width: min(100%, 40.8rem) !important;
    aspect-ratio: 768 / 1110;
    margin: 0 auto;
  }

  .hero-card__art {
    top: -5.7%;
    left: 0.2%;
    width: 99.2%;
  }

  .hero-card__title {
    left: 43.6%;
    top: 14.3%;
    width: 38.7%;
    font-size: clamp(2.35rem, 7.4vw, 5.6rem);
    white-space: nowrap;
  }

  .venue-card__title {
    left: 15.6%;
    top: 13.2%;
    font-size: clamp(2.85rem, 5vw, 4.25rem);
  }

  .venue-card__subtitle {
    left: 19.3%;
    top: 19.5%;
    font-size: clamp(3.75rem, 6.4vw, 5.7rem);
  }

  .venue-card__place,
  .venue-card__address {
    left: 9%;
    width: 82%;
    font-size: clamp(0.9rem, 1.95vw, 1.15rem);
    line-height: 1.12;
  }

  .venue-card__place {
    top: 29.3%;
  }

  .venue-card__address {
    top: 33.2%;
  }

  .venue-card__art {
    width: 92%;
    left: -0.4%;
    top: 17.6%;
  }

  .venue-card .btn {
    top: 86.5%;
    min-width: 7.6rem;
    min-height: 2.15rem;
    padding: 0.42rem 0.9rem;
    font-size: clamp(0.88rem, 2.15vw, 1.05rem);
    color: #77612a;
  }

  .dress-card {
    width: min(100%, 40.8rem) !important;
    padding: 2.5rem 0.95rem 2.9rem;
  }

  .dress-card__text {
    font-size: clamp(0.92rem, 1.45vw, 1.22rem);
  }

  .dress-card__palette {
    width: min(86%, 39rem);
    gap: 0.92rem;
    margin: 0.68rem auto 2rem;
  }

  .dress-card__stroke {
    height: 4.36rem;
  }

  .dress-card__stroke-label {
    font-size: 2.24rem;
  }

  .details-item__text {
    font-size: clamp(0.92rem, 1.45vw, 1.22rem);
  }

  .details-item__list,
  .details-item__hotel {
    font-size: clamp(0.92rem, 1.45vw, 1.22rem);
  }

  .details-item__title {
    font-size: clamp(2.2rem, 3.3vw, 3.55rem);
  }

  .details-item .btn {
    font-size: clamp(1.32rem, 2.3vw, 1.76rem);
  }

  .details__divider {
    width: min(100%, 22rem);
  }

  .rsvp-card {
    width: min(100%, 40.8rem) !important;
  }
}
