@font-face {
  font-family: 'Balpaq';
  src: url('fonts/Balpaq-Regular.ttf') format('truetype');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'Days One';
  src: url('fonts/DaysOne-Regular.ttf') format('truetype');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

/* ============================================================
   Токены макета
   ============================================================ */
:root {
  --orange: #df5502;
  --orange-dark: #b94500;
  --cream: #fff8ee;
  --blue: #84affb;
  --dark: #484848;
  --white: #ffffff;
  --lilac: #eadcf2;

  --font-display: 'Days One', 'Arial Black', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-hand: 'Caveat', cursive;

  --gutter: 28px;
  --content: 1174px;
  --section-pad: clamp(80px, 11vw, 150px);
  --title-size: clamp(36px, 9vw, 130px);
  --body-size: clamp(10px, 2.2vw, 32px);
  --label-size: clamp(18px, 4.4vw, 64px);
  --field-text: clamp(10px, 2.2vw, 32px);
  --app-height: 100vh;
  --love-height: 100vh;
  /* Значения env() замораживаются JS, чтобы панели Telegram не меняли размеры. */
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

@supports (height: 100svh) {
  :root { --app-height: 100svh; --love-height: 100svh; }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  background: #fff;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--dark);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  overflow-clip-margin: 120px;
}

main,
.invitation {
  overflow-x: clip;
  max-width: 100%;
}

button,
input,
textarea {
  font: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(var(--content), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--white);
  color: var(--dark);
}

.skip-link:focus {
  top: 16px;
}

/* ============================================================
   Общие типографические классы
   ============================================================ */
.title {
  margin: 0 0 clamp(30px, 5vw, 80px);
  font-family: var(--font-display);
  font-size: var(--title-size);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.05em;
  text-transform: uppercase;
}

.title--dark { color: var(--dark); }
.title--light { color: var(--white); }

.text {
  margin: 0;
  font-size: var(--body-size);
  line-height: 1.25;
  letter-spacing: 0.05em;
  white-space: pre-line;
}

.text--dark { color: var(--dark); }
.text--light { color: var(--white); }

.section {
  position: relative;
  padding: var(--section-pad) 0;
  overflow: hidden;
}

.section--cream { background: var(--cream); }
.section--blue { background: var(--blue); }
.section--orange { background: var(--orange); }

/* ============================================================
   Первый экран
   ============================================================ */
.cover {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 50px var(--gutter) 24px;
  background: #fff;
  color: var(--dark);
  opacity: 1;
  transform: scale(1);
  -webkit-transform: scale(1);
  transition: opacity 0.65s ease, transform 0.65s ease;
  -webkit-transition: opacity 0.65s ease, -webkit-transform 0.65s ease;
  will-change: opacity, transform;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.cover.is-leaving {
  opacity: 0;
  transform: scale(1.04);
  -webkit-transform: scale(1.04);
  pointer-events: none;
}

.cover__pattern {
  position: absolute;
  inset: 0;
  background: url('assets/cover-bg.webp') center / cover no-repeat;
  opacity: 1;
  pointer-events: none;
}

/* Приближаем письмо и поднимаем клапан выше (одинаково на ПК и мобилках). */
.cover > .cover__pattern {
  top: -39%;
  bottom: auto;
  height: 150%;
}

.cover__inner {
  position: static;
  z-index: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  height: 100%;
  min-height: 0;
}

.cover__inner > *:not(.envelope) {
  position: relative;
  z-index: 1;
}

.cover__inner > p:empty { display: none; }
.cover .button--cover { margin-top: auto; }

.cover__date,
.cover__names {
  margin: 0;
  font-size: clamp(10px, 1.2vw, 18px);
  line-height: 1.2;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dark);
}

.cover__names {
  margin-top: 8px;
}

.cover__headline {
  margin: 50px 0;
  display: flex;
  flex-direction: column;
  font-family: var(--font-display);
  font-size: clamp(40px, 5.5vw, 80px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--dark);
}

.cover__headline strong {
  font-weight: 400;
  color: var(--dark);
}

.envelope {
  --seal-size: clamp(180px, calc(57vh - 172px), 460px);
  position: static;
  width: var(--seal-size);
  aspect-ratio: 1;
  margin: 8px 0;
}

.envelope__photo {
  position: absolute;
  left: 50%;
  /* Точка смыкания клапана после подъёма письма (cover-bg.jpg, 150% высоты). */
  top: 65.5%;
  width: var(--seal-size);
  height: auto;
  object-fit: contain;
  transform: translate(-50%, -50%);
  -webkit-transform: translate(-50%, -50%);
  filter: drop-shadow(-10px 20px 35px rgba(0, 0, 0, 0.18));
  transition: transform 0.7s ease, opacity 0.5s ease;
  -webkit-transition: -webkit-transform 0.7s ease, opacity 0.5s ease;
  will-change: transform;
  z-index: 2;
}

.envelope.is-open .envelope__photo {
  transform: translate(-50%, calc(-50% - 8px)) scale(1.01);
  -webkit-transform: translate(-50%, calc(-50% - 8px)) scale(1.01);
}

/* Балансируем печать между текстом и кнопкой на разной высоте окна. */
@media (min-width: 681px) and (max-height: 800px) {
  .envelope__photo { top: 70.5%; }
}
@media (min-width: 681px) and (min-height: 801px) and (max-height: 960px) {
  .envelope__photo { top: 68.3%; }
}
@media (min-width: 681px) and (min-height: 961px) {
  .envelope__photo { top: 65.5%; }
}


.cover__text {
  max-width: 640px;
  margin: 0 0 16px;
  font-size: clamp(12px, 1.4vw, 20px);
  line-height: 1.2;
  letter-spacing: 0.1em;
  color: var(--dark);
}

/* ============================================================
   Кнопки
   ============================================================ */
.button {
  position: relative;
  top: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 32px;
  border: 0;
  border-radius: 0;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: clamp(10px, 1.6vw, 20px);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: top 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button--cover {
  min-width: clamp(189px, 35vw, 500px);
  min-height: 52px;
  color: var(--white);
  background: var(--orange);
  box-shadow: 0 14px 30px rgba(72, 72, 72, 0.18);
}

.button--submit {
  min-width: clamp(189px, 35vw, 500px);
  min-height: clamp(35px, 6vw, 80px);
  color: var(--orange-dark);
  background: var(--cream);
  box-shadow: 0 14px 30px rgba(72, 72, 72, 0.18);
}

.button:hover {
  top: -2px;
  transform: none;
  box-shadow: 0 18px 36px rgba(72, 72, 72, 0.24);
}

.button:active { top: 0; }

.button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

.button:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  top: 0;
  transform: none;
}

/* ============================================================
   Приглашение
   ============================================================ */
.invitation {
  animation: fadeIn 0.8s ease both;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.invite.section {
  overflow: visible;
}

.invite__text {
  max-width: 1174px;
  margin-bottom: 150px;
  letter-spacing: 0.1em;
}

.invite__text p {
  margin: 0 0 50px;
}

.invite__text p:last-child {
  margin-bottom: 0;
}

/* ============================================================
   Блок фото "I LOVE YOU" (по макету)
   ============================================================ */
.love {
  padding: 0;
  background: var(--orange);
  min-height: 100vh;
  min-height: 100svh;
  min-height: var(--app-height, 100svh);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.love__canvas {
  position: relative;
  width: min(100vw, calc(var(--app-height, 100svh) * 1440 / 1024));
  height: min(var(--app-height, 100svh), calc(100vw * 1024 / 1440));
  max-width: none;
  margin: 0 auto;
  overflow: visible;
  background: var(--orange);
}

.love__bg {
  position: absolute;
  inset: 0 -20vw;
  overflow: visible;
  pointer-events: none;
}

.love__bg-grid {
  position: absolute;
  top: 30%;
  left: 70%;
  width: max(300vmax, calc(100% + 24vw));
  height: 240vmax;
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 1.8vw, 24px);
  place-items: center;
  justify-content: center;
  align-content: center;
  transform: translate(-50%, -50%) rotate(22.84deg);
  opacity: 0.55;
}

.love__bg-row {
  display: flex;
  justify-content: center;
  gap: clamp(28px, 4vw, 64px);
  white-space: nowrap;
}

.love__bg-row--offset {
  transform: translateX(clamp(-360px, -20vw, -160px));
}


.love__word {
  font-family: 'Balpaq', var(--font-display);
  font-size: clamp(56px, 11vw, 170px);
  line-height: 1;
  letter-spacing: 0.05em;
  text-align: center;
  text-transform: uppercase;
  color: #fff;
  -webkit-text-stroke: clamp(1px, 0.16vw, 2.6px) #fff;
  text-stroke: clamp(1px, 0.16vw, 2.6px) #fff;
  white-space: nowrap;
  user-select: none;
}

.love__inner {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.love__photo {
  position: absolute;
  left: 50%;
  top: 1%;
  width: clamp(280px, 62%, 1100px);
  height: min(90%, 1200px);
  transform: translateX(-50%);
}

.love__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.love__sig {
  position: absolute;
  font-family: var(--font-hand);
  font-size: clamp(22px, 5.2vw, 75px);
  line-height: 1.25;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.love__sig--groom {
  left: 2%;
  bottom: 28%;
  transform: rotate(6.8deg);
}

.love__sig--bride {
  left: 28%;
  bottom: 2%;
  transform: rotate(-3.88deg);
}

.love__headline {
  position: absolute;
  left: 0;
  right: 0;
  top: 74.707%;
  margin: 0;
  padding: 0 2%;
  font-family: var(--font-display);
  font-size: clamp(34px, 8.8vw, 130px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.05em;
  text-align: center;
  text-transform: uppercase;
  color: #fff;
  white-space: nowrap;
}

.love__headline-we,
.love__headline-wed {
  display: inline;
}

.love__headline-we::after {
  content: ' ';
}

.love__date {
  position: absolute;
  left: 50%;
  top: 89.355%;
  width: 40%;
  margin: 0;
  transform: translateX(-50%);
  font-family: var(--font-body);
  font-size: clamp(10px, 2.222vw, 32px);
  font-weight: 400;
  line-height: 1.22;
  letter-spacing: 0.1em;
  text-align: center;
  color: #fff;
}

.calendar {
  margin: 0 0 150px;
  padding-top: 0;
  color: var(--orange);
  overflow: visible;
}

.calendar__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: clamp(16px, 3vw, 40px);
  font-family: var(--font-display);
  font-size: clamp(12px, 2.5vw, 40px);
  line-height: 1.2;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 400;
}

.calendar__weekdays,
.calendar__days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.calendar__weekdays {
  display: none;
}

.calendar__weekday {
  text-align: center;
  font-size: clamp(10px, 2.2vw, 32px);
  line-height: 1.2;
  letter-spacing: 0.1em;
  text-transform: lowercase;
}

.calendar__days {
  border-top: clamp(2px, 0.35vw, 5px) solid var(--orange);
  border-bottom: clamp(2px, 0.35vw, 5px) solid var(--orange);
  overflow: visible;
}

.calendar__day {
  position: relative;
  display: grid;
  place-items: center;
  min-height: clamp(48px, 9.2vw, 132px);
  font-family: var(--font-body);
  font-size: clamp(18px, 4.17vw, 60px);
  line-height: 1;
  letter-spacing: 0.1em;
  font-weight: 400;
  overflow: visible;
}

.calendar__day + .calendar__day::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: clamp(2px, 0.35vw, 5px);
  height: clamp(46px, 9.2vw, 132px);
  background: var(--orange);
  transform: translateY(-50%);
  z-index: 3;
}

.calendar__day--active {
  color: #fff;
}

.calendar__heart {
  position: absolute;
  left: 50%;
  top: 50%;
  width: clamp(34px, 13.5vw, 210px);
  height: auto;
  transform: translate(-50%, -46%);
  z-index: 0;
  pointer-events: none;
}

.calendar__heart svg {
  display: block;
  width: 100%;
  height: auto;
}

.calendar__day-num {
  position: relative;
  z-index: 6;
}


.venue__photo {
  border: clamp(8px, 1.3vw, 40px) solid var(--orange);
  background: var(--orange);
}

.venue__photo img {
  width: 100%;
  aspect-ratio: 4096 / 2286;
  object-fit: cover;
}

.venue__address {
  margin: 50px 0 0;
  display: flex;
  align-items: flex-start;
  gap: clamp(18px, 3vw, 44px);
  font-size: var(--body-size);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: 0.05em;
  color: var(--dark);
}

.venue__pin {
  flex: 0 0 auto;
  width: clamp(30px, 3.8vw, 52px);
  margin-top: 0.05em;
  display: inline-block;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.venue__pin svg {
  display: block;
  width: 100%;
  height: auto;
}



.venue__pin:hover,
.venue__pin:focus-visible {
  opacity: 0.85;
}

.venue__address-text {
  display: block;
}

.venue__address-link {
  display: inline-flex;
  flex-direction: column;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

.venue__address-textlines {
  display: block;
}

.venue__address-line {
  font-weight: 400;
}

.venue__address-line--main {
  font-weight: 700;
}

.venue__address-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  font-size: 0.72em;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--orange);
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  transition: opacity 0.2s ease;
}

.venue__address-cta::after {
  content: '↗';
  font-size: 0.95em;
  line-height: 1;
}

.venue__address-link:hover .venue__address-cta,
.venue__address-link:focus-visible .venue__address-cta {
  opacity: 0.75;
}

.venue__address-link:focus-visible {
  outline: 3px solid rgba(223, 85, 2, 0.25);
  outline-offset: 4px;
  border-radius: 4px;
}



.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: clamp(16px, 3vw, 28px);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  transform: translateX(-50%);
  cursor: pointer;
}

.scroll-hint__icon {
  width: 18px;
  height: 18px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  animation: scroll-hint-bounce 1.8s ease-in-out infinite;
}

@keyframes scroll-hint-bounce {
  0%, 100% { transform: translateY(0) rotate(45deg); opacity: 0.55; }
  50% { transform: translateY(8px) rotate(45deg); opacity: 1; }
}

/* ============================================================
   План дня
   ============================================================ */
.schedule {
  background: #84AFFB;
  overflow: hidden;
}

.schedule__title {
  max-width: min(1172px, 100%);
  margin-bottom: clamp(28px, 3.5vw, 50px);
  color: #FFFFFF;
}

.schedule__layout {
  position: relative;
  width: 100%;
}

.schedule__layout::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(768px, 65.53%);
  background: #FFFFFF;
}

.timeline {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 2.133%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #FFFFFF;
  pointer-events: none;
}

.timeline__item {
  position: relative;
  display: grid;
  grid-template-columns: 34.471% 65.529%;
  align-items: start;
}

.timeline__item:nth-child(1),
.timeline__item:nth-child(2),
.timeline__item:nth-child(3),
.timeline__item:nth-child(4) { min-height: 0; }

.timeline__time {
  padding: 71px 0 71px 24.752%;
  min-height: 0;
  display: flex;
  align-items: center;
  font-family: var(--font-body);
  font-size: clamp(18px, 4.45vw, 64px);
  font-weight: 700;
  line-height: 1.15;
  color: #FFFFFF;
  text-transform: uppercase;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.timeline__marker {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 34.471%;
  pointer-events: none;
}

.timeline__dot {
  position: absolute;
  left: calc(100% * 2.133 / 34.471 + 1.5px);
  top: calc(71px + 0.575em);
  width: clamp(13px, 3.47vw, 50px);
  height: clamp(13px, 3.47vw, 50px);
  font-size: clamp(18px, 4.45vw, 64px);
  line-height: 1.15;
  background: #FFFFFF;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.timeline__line {
  display: none;
}

.timeline__label {
  position: relative;
  display: flex;
  align-items: flex-start;
  min-height: 0;
  padding: 71px clamp(16px, 5.46vw, 64px) 71px 11.85%;
  font-family: var(--font-display);
  font-size: clamp(18px, 4.45vw, 64px);
  font-weight: 400;
  line-height: 1.15;
  text-transform: uppercase;
  color: #484848;
}

.timeline__item:first-child .timeline__time,
.timeline__item:first-child .timeline__label {
  padding-top: 71px;
}

.timeline__item:first-child .timeline__dot {
  top: calc(71px + 0.575em);
}

.timeline__label::after {
  content: '';
  position: absolute;
  left: 11.85%;
  bottom: 0;
  width: 77.6%;
  height: 3px;
  background: #484848;
}

.timeline__item:last-child .timeline__label::after {
  display: none;
}

/* ============================================================
   Дресс-код
   ============================================================ */
.dress__text {
  max-width: 1174px;
  margin-bottom: 150px;
  letter-spacing: 0.1em;
}

.dress__subtitle {
  max-width: 958px;
  margin: 0 0 50px;
}

.looks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2.8vw, 40px);
  max-width: 1174px;
  margin: 0;
}

.looks__group {
  position: relative;
  width: 100%;
  aspect-ratio: 566.56 / 404.28;
}

.looks__item {
  position: absolute;
  bottom: 0;
  object-fit: contain;
  object-position: bottom center;
}

/* Девушки: левая группа */
.looks__group--girls .looks__item--1 {
  left: 0;
  width: 33.22%;
  height: 97%;
  z-index: 1;
}

.looks__group--girls .looks__item--2 {
  left: 23.09%;
  width: 22.37%;
  height: 96.5%;
  z-index: 2;
}

.looks__group--girls .looks__item--3 {
  left: 41.03%;
  width: 58.96%;
  height: 96.98%;
  z-index: 3;
}

/* Мужчины: правая группа */
.looks__group--men .looks__item--1 {
  left: 0;
  width: 33.22%;
  height: 105%;
  z-index: 1;
}

.looks__group--men .looks__item--2 {
  left: 2.87%;
  width: 62.92%;
  height: 97.01%;
  z-index: 2;
}

.looks__group--men .looks__item--3 {
  left: 41.09%;
  width: 62.92%;
  height: 97.01%;
  z-index: 1;
}

.subtitle {
  font-family: var(--font-display);
  font-size: clamp(18px, 4.45vw, 64px);
  font-weight: 400;
  line-height: 1.15;
  text-transform: uppercase;
  color: var(--dark);
}

/* ============================================================
   Анкета
   ============================================================ */
.rsvp__intro {
  max-width: 1174px;
  margin-bottom: clamp(50px, 8vw, 120px);
}

.form-grid {
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 5vw, 70px);
}

.field {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.field__label {
  padding: 0;
  margin-bottom: clamp(8px, 1.2vw, 18px);
  font-family: var(--font-display);
  font-size: var(--label-size);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0em;
  text-transform: uppercase;
  color: var(--white);
}

.required { color: var(--lilac); }

.field__box {
  background: var(--white);
}

.field__box input,
.field__box textarea {
  display: block;
  width: 100%;
  min-height: clamp(34px, 9vw, 130px);
  padding: clamp(8px, 1.6vw, 24px) clamp(13px, 3vw, 79px);
  border: 0;
  background: transparent;
  color: var(--dark);
  font-size: var(--field-text);
  line-height: 1.2;
  letter-spacing: 0.1em;
  outline: none;
  resize: none;
  overflow: hidden;
}

.field__box--area textarea {
  min-height: clamp(35px, 12vw, 170px);
}

.field__box input::placeholder,
.field__box textarea::placeholder {
  color: #8a8a8a;
  -webkit-text-fill-color: #8a8a8a;
  opacity: 1;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.field__box:focus-within {
  box-shadow: 0 0 0 3px var(--blue);
}

.field__box [aria-invalid='true'] {
  box-shadow: inset 0 0 0 2px var(--orange-dark);
}

.radio-group {
  display: flex;
  flex-direction: column;
  gap: clamp(8px, 1.6vw, 24px);
}

.radio {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.6vw, 28px);
  min-height: clamp(20px, 3.8vw, 56px);
  padding-left: clamp(28px, 3.6vw, 58px);
  color: var(--white);
  font-size: var(--field-text);
  line-height: 1.2;
  letter-spacing: 0.1em;
  cursor: pointer;
  user-select: none;
}

.radio input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.radio__control {
  position: absolute;
  left: 0;
  top: 50%;
  width: clamp(13px, 3.5vw, 50px);
  height: clamp(13px, 3.5vw, 50px);
  border-radius: 50%;
  background: var(--white);
  transform: translateY(-50%);
}

.radio input:checked ~ .radio__control {
  background: var(--orange);
  box-shadow: inset 0 0 0 14px var(--white);
}

.radio input:focus-visible ~ .radio__control {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

.field.is-invalid .radio__control {
  box-shadow: 0 0 0 3px var(--orange-dark);
}

.field__error {
  min-height: 18px;
  margin: 8px 0 0;
  font-size: clamp(11px, 1.5vw, 20px);
  color: var(--lilac);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin-top: clamp(40px, 6vw, 90px);
}

.form-status {
  margin: 0;
  font-size: clamp(12px, 1.6vw, 22px);
  color: var(--lilac);
}

.form-status.is-error { color: #ffe0cf; }
.form-status.is-success { color: #e5ffd9; }

.form-note {
  margin: 18px 0 0;
  font-size: clamp(11px, 1.4vw, 20px);
  color: var(--lilac);
}

/* ============================================================
   Анкета — точные размеры из макета (ширина 1440)
   ============================================================ */
.rsvp form {
  position: relative;
}

.rsvp .title {
  margin-bottom: 50px;
}

.rsvp__intro {
  min-height: 312px;
  margin-bottom: 50px;
  line-height: 39px;
  letter-spacing: 0.1em;
}

.rsvp__intro p { margin: 0; }

.rsvp__intro strong {
  font-weight: 700;
}

.rsvp .form-grid {
  gap: 50px;
}

.rsvp .field {
  position: relative;
}

.rsvp .field__label {
  width: 100%;
  margin-bottom: 20px;
  line-height: 81px;
}

.rsvp .field__box input,
.rsvp .field__box textarea {
  min-height: 130px;
  padding: 45px 79px 46px;
  line-height: 39px;
}

.rsvp .field__box--area textarea {
  min-height: 170px;
  padding: 45px 79px;
}

.rsvp .radio-group {
  gap: 30px;
}

.rsvp .radio {
  min-height: 50px;
  gap: 29px;
  padding-left: 79px;
  line-height: 39px;
}

.rsvp .radio__control {
  width: 50px;
  height: 50px;
}

/* Индивидуальные сдвиги под координаты Figma */
.rsvp .field:nth-of-type(2) .radio-group { margin-top: 4px; }
.rsvp .field:nth-of-type(5) .radio-group { margin-top: -5px; }
.rsvp .field:nth-of-type(6) .field__box { margin-top: 9px; }

/* Сообщения об ошибках не должны двигать поля */
.rsvp .field__error {
  position: absolute;
  top: 100%;
  left: 0;
  min-height: 0;
  margin: 4px 0 0;
}

/* Safari: не даём hover-трансформации кнопки двигать подпись под формой */
.rsvp .form-submit {
  position: relative;
  display: flow-root;
}

.rsvp .form-actions {
  position: relative;
  justify-content: center;
  margin-top: 100px;
}

.rsvp .button--submit {
  width: 500px;
  min-width: 500px;
  min-height: 80px;
  color: var(--orange);
  line-height: 24px;
}

.rsvp .form-status {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin: 8px 0 0;
  text-align: center;
  transform: none;
  white-space: nowrap;
}

.rsvp .form-note {
  position: absolute;
  top: calc(100% + 50px);
  left: 0;
  right: 0;
  margin: 0;
  text-align: center;
  transform: none;
}

.success {
  padding: 40px 0 10px;
  text-align: center;
  color: var(--white);
}

.success__icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--cream);
  color: var(--orange);
  font-size: 32px;
}

.success h3 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(30px, 5vw, 70px);
  font-weight: 400;
  text-transform: uppercase;
}

.success p {
  margin: 0;
  font-size: var(--body-size);
}

/* ============================================================
   Подарки
   ============================================================ */
.gifts__text {
  max-width: 1174px;
  letter-spacing: 0.1em;
}

/* ============================================================
   Финал и обратный отсчёт
   ============================================================ */
.final {
  height: 100vh;
  height: var(--app-height, 100svh);
  min-height: 100vh;
  min-height: var(--app-height, 100svh);
  padding: clamp(24px, 4vw, 50px) 0 clamp(24px, 3vw, 40px);
  display: flex;
  align-items: stretch;
  overflow-x: clip;
  overflow-y: clip;
}

.cover__pattern--final {
  inset: 0 -25vw auto -25vw;
  height: min(72%, 980px);
  background: #84AFFB;
  opacity: 1;
  z-index: 0;
  overflow: visible;
  pointer-events: none;
}

.cover__pattern--final .love__bg-grid {
  top: 18%;
  left: 50%;
  width: max(320vw, 3200px);
  height: auto;
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 2vw, 28px);
  place-items: initial;
  justify-content: center;
  align-content: initial;
  transform: translate(-50%, 0) rotate(13.84deg);
  opacity: 0.55;
}

.cover__pattern--final .love__bg-row {
  display: flex;
  justify-content: center;
  gap: clamp(36px, 5vw, 90px);
  white-space: nowrap;
}

.cover__pattern--final .love__bg-row--offset {
  transform: translateX(clamp(-520px, -28vw, -260px));
}

.cover__pattern--final .love__word {
  font-size: clamp(90px, 12vw, 210px);
  -webkit-text-stroke: clamp(1.6px, 0.28vw, 5px) #fff;
  text-stroke: clamp(1.6px, 0.28vw, 5px) #fff;
}

.cover__pattern--final::after {
  content: none;
}

.final__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}

.final__photo {
  position: relative;
  z-index: 2;
  isolation: isolate;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(240px, 63vw, 1132px);
  margin: 0 auto;
  background: transparent;
}

.final__photo img {
  display: block;
  width: auto;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  /* У SVG есть прозрачные поля: увеличиваем видимую часть без изменения
     высоты блока, поэтому скролл и отступы остаются прежними. */
  transform: translateY(clamp(0px, calc(var(--app-height, 100svh) * 0.0725 - 45px), 24px)) scale(1.25);
  transform-origin: center center;
}

.final__bottom { flex: 0 0 auto; }

.final__title,
.final__last {
  max-width: 1065px;
  margin-inline: auto;
  font-size: clamp(22px, 4.06vw, 58.5206px);
  line-height: 1.15;
  letter-spacing: -0.05em;
}

.final__title {
  margin-bottom: clamp(30px, 5vw, 80px);
}

.final__last {
  margin: 0;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(8px, 1.7vw, 26px);
  max-width: 1174px;
  margin: 0 auto clamp(50px, 8vw, 110px);
}

.countdown__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: clamp(56px, 15vw, 196px);
  padding: clamp(8px, 1.5vw, 20px);
  background: var(--white);
}

.countdown__value {
  font-family: var(--font-display);
  font-size: clamp(36px, 8.2vw, 119px);
  line-height: 1.15;
  color: var(--dark);
  font-variant-numeric: tabular-nums;
}

.countdown__label {
  font-size: clamp(10px, 2vw, 29px);
  line-height: 1.15;
  color: var(--dark);
}

/* Десктоп: пропорции референса, но компактнее и с центрированным таймером.
   --design-w ограничивает макет 1080px, поэтому на широких экранах
   всё не растягивается. Мобильные (до 680px) оставляют свои 20/20/50. */
@media (min-width: 681px) {
  .final {
    --design-w: min(100vw, 1080px);
    height: calc(var(--design-w) * 1.241);
    min-height: 0;
    padding: calc(var(--design-w) * 0.0865) 0 calc(var(--design-w) * 0.0463);
    align-items: stretch;
  }

  .final__inner {
    width: var(--design-w);
    max-width: none;
    height: 100%;
    min-height: 0;
    align-items: center;
  }

  .final__photo {
    flex: 0 0 auto;
    width: calc(var(--design-w) * 0.6483);
    height: calc(var(--design-w) * 0.7535);
    max-width: none;
    margin: 0 auto calc(var(--design-w) * 0.0674);
  }

  .final__photo img {
    position: absolute;
    left: calc(var(--design-w) * -0.0844);
    top: calc(var(--design-w) * -0.0398);
    width: calc(var(--design-w) * 0.7824);
    height: calc(var(--design-w) * 0.9423);
    max-width: none;
    max-height: none;
    object-fit: fill;
    transform: none;
  }

  .final__bottom {
    flex: 0 0 auto;
    width: 100%;
  }

  .final__title,
  .final__last {
    max-width: none;
    width: 100%;
    line-height: 1;
  }

  .final__title {
    font-size: calc(var(--design-w) * 0.0406);
    margin: 0 0 calc(var(--design-w) * 0.0372);
  }

  .final__last {
    font-size: calc(var(--design-w) * 0.0285);
    margin: 0;
  }

  .countdown {
    width: calc(var(--design-w) * 0.8135);
    max-width: none;
    gap: calc(var(--design-w) * 0.0292);
    margin: 0 auto calc(var(--design-w) * 0.0463);
  }

  .countdown__item {
    min-height: 0;
    height: calc(var(--design-w) * 0.1347);
    padding: 0;
    gap: calc(var(--design-w) * 0.015);
  }

  .countdown__value {
    font-size: calc(var(--design-w) * 0.0583);
    line-height: 1;
  }

  .countdown__label {
    font-size: calc(var(--design-w) * 0.0139);
    line-height: 1;
  }
}

/* ============================================================
   Адаптив
   ============================================================ */
@media (max-width: 900px) {
  :root {
    --section-pad: clamp(64px, 12vw, 110px);
    --title-size: clamp(36px, 10vw, 90px);
    --body-size: clamp(11px, 2.6vw, 24px);
    --label-size: clamp(20px, 5vw, 48px);
    --field-text: clamp(11px, 2.6vw, 24px);
  }

  .schedule__title {
    max-width: 100%;
  }

  .rsvp__intro { min-height: 0; }
  .rsvp .field__label { line-height: 1.15; }
}

@media (max-width: 680px) {
  :root {
    --gutter: 20px;
    --content: 100%;
    --section-pad: 56px;
    --title-size: clamp(32px, 9vw, 42px);
    --body-size: clamp(14px, 4vw, 16px);
    --label-size: clamp(20px, 5.4vw, 28px);
    --field-text: 16px;
  }

  html, body { overflow-x: hidden; overflow-clip-margin: 0; width: 100%; max-width: 100%; overscroll-behavior-x: none; }
  html { background: transparent; }
  body {
    position: relative;
    overflow-x: hidden;
    overflow-clip-margin: 0;
    background: linear-gradient(to bottom, #fff 0, #fff var(--app-height, 100vh), #84AFFB var(--app-height, 100vh), #84AFFB 100%);
  }
  @supports (height: 100lvh) {
    body { background: linear-gradient(to bottom, #fff 0, #fff var(--app-height, 100lvh), #84AFFB calc(var(--app-height, 100lvh) + 1px), #84AFFB 100%); }
  }
  main, .invitation, .cover, .section, .love, .final { max-width: 100%; overflow-x: hidden; }
  .love { overflow: hidden; background: #DF5502; }
  .love__bg { inset: 0; overflow: hidden; }
  .cover__pattern--final { overflow: hidden; }

  .cover {
    height: 100svh;
    height: var(--app-height, 100svh);
    min-height: 100svh;
    min-height: var(--app-height, 100svh);
    padding: calc(50px + var(--safe-top, 0px)) 16px calc(40px + var(--safe-bottom, 0px));
    background: #fff;
    align-items: stretch;
  }
  .cover > .cover__pattern { top: -50%; }
  .cover__inner {
    height: 100%;
    min-height: 0;
  }
  .cover .button--cover { margin-top: auto; }

  .cover__date,
  .cover__names { font-size: 12px; letter-spacing: 0.08em; }

  .cover__headline { margin: 20px 0; font-size: clamp(40px, 11vw, 56px); }

  /* Печать ставим точно на место смыкания клапана письма (фон cover-bg.jpg). */
  .envelope {
    --seal-size: min(200px, calc(var(--app-height, 100svh) * 0.28));
    width: var(--seal-size);
    margin: 0;
  }
  .envelope__photo { top: 62.2%; }

  /* На коротких экранах (iPhone SE) печать иначе заходила на текст. */
  @media (max-width: 680px) and (max-height: 600px) {
    .cover > .cover__pattern { top: -46.5%; }
    .envelope { --seal-size: min(120px, calc(var(--app-height, 100svh) * 0.21)); }
    .envelope__photo { top: 64%; }
  }

  .cover__text {
    max-width: 340px;
    margin-bottom: 24px;
    font-size: 14px;
    line-height: 1.35;
    letter-spacing: 0.05em;
  }

  .button--cover,
  .button--submit,
  .rsvp .button--submit {
    min-width: min(280px, 100%);
    width: min(280px, 100%) !important;
    min-height: 48px;
    font-size: 13px;
  }

  .invite__text { margin-bottom: 48px; letter-spacing: 0.05em; font-size: 14px; line-height: 1.45; }
  .invite__text p { margin-bottom: 20px; }
  .calendar { margin: 0 0 48px; padding-top: 0; }
  .calendar__head { font-size: 16px; margin-bottom: 16px; }
  .calendar__day {
    min-height: 52px;
    font-size: 24px;
  }
  .calendar__day + .calendar__day::before { top: 0; bottom: 0; height: auto; width: 2px; transform: none; }
  .calendar__heart { width: 68px; }

  .venue__address {
    margin: 24px 0 0;
    gap: 14px;
    font-size: 13px;
    line-height: 1.4;
  }
  .venue__pin { width: 28px; margin-top: 2px; }
  .venue__photo { border-width: 8px; }

  .schedule__title { margin-bottom: 28px; }
  .schedule__layout::before { width: 63%; }
  .timeline::before { left: 8px; width: 2px; }
  .timeline__item,
  .timeline__item:nth-child(1),
  .timeline__item:nth-child(2),
  .timeline__item:nth-child(3),
  .timeline__item:nth-child(4) { grid-template-columns: 37% 63%; min-height: 0; }
  .timeline__time {
    padding: 20px 0 20px 28px;
    min-height: 0;
    font-size: 20px;
    line-height: 1.1;
    display: flex;
    align-items: flex-start;
    font-variant-numeric: tabular-nums;
  }
  .timeline__marker { width: 37%; }
  .timeline__dot { left: 9px; top: calc(20px + 0.55em); width: 18px; height: 18px; font-size: 20px; line-height: 1.1; transform: translate(-50%, -50%); }
  .timeline__label {
    padding: 20px 16px 20px 20px;
    min-height: 0;
    font-size: clamp(20px, 5.8vw, 28px);
    line-height: 1.1;
    display: flex;
    align-items: flex-start;
  }
  .timeline__label::after { left: 20px; width: calc(100% - 36px); height: 2px; }
  .timeline__item:first-child .timeline__time,
  .timeline__item:first-child .timeline__label { padding-top: 20px; }
  .timeline__item:first-child .timeline__dot { top: calc(20px + 0.55em); }
  .timeline__item:last-child .timeline__time,
  .timeline__item:last-child .timeline__label { padding-bottom: 20px; }

  .dress__text { margin-bottom: 32px; letter-spacing: 0.05em; font-size: 14px; line-height: 1.45; }
  .dress__subtitle { margin-bottom: 20px; font-size: 20px; line-height: 1.2; }
  .looks { gap: 10px; }
  .subtitle { font-size: 20px; }

  .field__box input,
  .field__box textarea {
    min-height: 52px;
    padding: 16px 20px;
    font-size: 14px;
    line-height: 1.4;
    letter-spacing: 0.05em;
  }
  .field__box--area textarea { min-height: 96px; padding: 16px 20px; }
  .radio { min-height: 28px; gap: 12px; padding-left: 40px; font-size: 15px; line-height: 1.35; }
  .radio__control { width: 24px; height: 24px; }
  .radio input:checked ~ .radio__control {
    background: var(--orange);
    box-shadow: inset 0 0 0 6px var(--white);
  }
  .field__error { font-size: 12px; min-height: 16px; }

  .gifts__text { letter-spacing: 0.05em; font-size: 14px; line-height: 1.45; }

  .love {
    min-height: 100svh;
    min-height: var(--app-height, 100svh);
    height: 100svh;
    height: var(--app-height, 100svh);
    padding: 0;
    overflow: hidden;
    background: #DF5502;
  }
  .love__canvas {
    width: 100vw;
    height: 100svh;
    height: var(--app-height, 100svh);
    margin: 0 auto;
    background: #DF5502;
  }
  .scroll-hint {
    bottom: calc(18px + var(--safe-bottom, 0px));
    width: 44px;
    height: 44px;
  }
  .love__bg {
    inset: 0;
    overflow: hidden;
    opacity: 1;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .love__bg-grid {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    transform: none;
    opacity: 0.6;
  }
  .love__bg-row {
    position: absolute;
    display: block;
    gap: 0;
    white-space: nowrap;
    transform: rotate(-4.75deg);
  }
  .love__bg-row--offset { transform: rotate(-4.75deg); }
  .love__bg-row:nth-child(n+5) { display: none; }
  .love__bg-row .love__word { display: none; }
  .love__bg-row .love__word:first-child { display: block; }
  .love__bg-row:nth-child(1) { left: -0.25%; top: 75.03%; }
  .love__bg-row:nth-child(2) { left: 41.49%; top: 58.82%; }
  .love__bg-row:nth-child(3) { left: -72.48%; top: 64.89%; }
  .love__bg-row:nth-child(4) { left: -9.02%; top: 46.33%; }
  .love__word {
    font-size: clamp(52px, 19.16vw, 71.85px);
    line-height: 1.15;
    letter-spacing: 0.05em;
    -webkit-text-stroke: 1.3px #fff;
    text-stroke: 1.3px #fff;
  }
  .love__photo {
    top: 28.5%;
    left: 50%;
    width: min(86.22%, 360px);
    height: 64.79%;
    transform: translateX(-50%) rotate(20deg);
    transform-origin: center top;
  }
  .love__photo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
  .love__headline {
    top: calc(50px + var(--safe-top, 0px));
    left: auto;
    right: 4%;
    width: fit-content;
    max-width: 92%;
    padding: 0;
    font-size: inherit;
    line-height: 1.15;
    letter-spacing: 0;
    white-space: normal;
    text-align: right;
    transform: rotate(7.12deg);
    transform-origin: right top;
    z-index: 3;
  }
  .love__headline-we,
  .love__headline-wed {
    display: block;
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1.15;
    text-align: right;
    text-transform: uppercase;
    color: #fff;
  }
  .love__headline-we {
    font-size: 92px;
    letter-spacing: -0.05em;
  }
  .love__headline-we::after { content: none; }
  .love__headline-wed {
    font-size: 41px;
    letter-spacing: 0.05em;
  }
  .love__photo {
    top: calc(18% + var(--love-photo-shift, 20px));
    left: 50%;
    width: min(132%, 430px);
    height: calc(100% - 170px - var(--love-photo-shift, 20px) - var(--safe-bottom, 0px));
    transform: translateX(-50%);
    transform-origin: center top;
  }
  /* На iOS photo фиксируется JS конкретными пикселями — ни svh, ни
     visualViewport уже не влияют на размер и положение картинки. */
  .ua-ios .love__photo {
    top: var(--love-photo-top, 18%);
    height: var(--love-photo-height, calc(100% - 170px));
  }
  .love__date {
    top: auto;
    bottom: calc(72px + var(--safe-bottom, 0px));
    left: 32.36%;
    width: 35.04%;
    transform: none;
    font-size: 12px;
    line-height: 15px;
    letter-spacing: 0.1em;
  }

  /* Точные размеры макета сбрасываем на мобильных */
  .rsvp .title { margin-bottom: 24px !important; }
  .rsvp__intro {
    min-height: 0 !important;
    margin-bottom: 28px !important;
    font-size: 14px !important;
    line-height: 1.45 !important;
    letter-spacing: 0.05em !important;
  }
  .rsvp .form-grid { gap: 24px !important; }
  .rsvp .field__label {
    margin-bottom: 10px !important;
    line-height: 1.2 !important;
    font-size: 24px !important;
  }
  .rsvp .field__box input,
  .rsvp .field__box textarea {
    min-height: 52px !important;
    padding: 16px 20px !important;
    line-height: 1.4 !important;
    font-size: 14px !important;
    letter-spacing: 0.05em !important;
    white-space: pre-wrap !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
  }
  .rsvp .field__box--area textarea {
    min-height: 96px !important;
    padding: 16px 20px !important;
  }
  .rsvp .radio-group { gap: 12px !important; margin-top: 0 !important; }
  .rsvp .radio {
    min-height: 28px !important;
    gap: 12px !important;
    padding-left: 40px !important;
    line-height: 1.35 !important;
    font-size: 15px !important;
  }
  .rsvp .radio__control { width: 24px !important; height: 24px !important; }
  .rsvp .field:nth-of-type(6) .field__box { margin-top: 0 !important; }
  .rsvp .form-actions { margin-top: 28px !important; display: flex !important; flex-direction: column; align-items: center; justify-content: center; width: 100%; gap: 12px; }
  .rsvp .button--submit {
    display: block !important;
    width: min(280px, 100%) !important;
    min-width: 0 !important;
    min-height: 48px !important;
    font-size: 13px !important;
    margin: 0 auto !important;
    align-self: center !important;
  }
  .rsvp .form-status,
  .rsvp .form-note { position: static; transform: none; white-space: normal; text-align: center; margin-top: 12px; }

  .final {
    position: relative;
    min-height: calc(100svh + var(--safe-bottom, 0px));
    min-height: calc(var(--app-height, 100svh) + var(--safe-bottom, 0px));
    height: calc(100svh + var(--safe-bottom, 0px));
    height: calc(var(--app-height, 100svh) + var(--safe-bottom, 0px));
    padding: 20px 0 calc(20px + var(--safe-bottom, 0px));
    overflow: clip;
    display: flex;
    align-items: stretch;
    background: #84AFFB;
    box-shadow: 0 160px 0 0 #84AFFB;
  }
  .final__inner {
    width: 100%;
    height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
  }
  .final__photo { width: calc(100% + 160px); margin: 0 -80px -8px; flex: 1 1 auto; min-height: 0; display: flex; align-items: flex-end; justify-content: center; position: relative; z-index: 1; overflow: hidden; }
  .final__photo img { width: 100%; height: auto; max-height: 100%; object-fit: contain; object-position: center bottom; transform: none; }
  .cover__pattern--final { inset: 0 0 auto 0; height: min(calc(var(--app-height, 100svh) * 0.66), 560px); overflow: hidden; }
  .cover__pattern--final .love__bg-grid {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    transform: none;
    opacity: 0.55;
  }
  .cover__pattern--final .love__bg-row {
    position: absolute;
    left: 50%;
    display: flex;
    gap: 18px;
    white-space: nowrap;
    transform: translateX(-50%) rotate(13.84deg);
  }
  .cover__pattern--final .love__bg-row:nth-child(1) { top: 23%; transform: translateX(-48%) rotate(7.12deg); }
  .cover__pattern--final .love__bg-row:nth-child(2) { top: 53%; transform: translateX(-25%) rotate(7.12deg); }
  .cover__pattern--final .love__bg-row:nth-child(3) { top: 66%; transform: translateX(-50%) rotate(7.12deg); }
  .cover__pattern--final .love__bg-row:nth-child(n+4) { display: none; }
  .cover__pattern--final .love__bg-row .love__word { display: block; }
  .cover__pattern--final .love__word {
    font-size: clamp(72px, 22vw, 128px);
    line-height: 1;
    -webkit-text-stroke: 1.4px #fff;
  }
  .final__title, .final__last { font-size: clamp(20px, 5.8vw, 28px); }
  .final__bottom { margin-top: 4px; position: relative; z-index: 2; }
  .final__title { margin-bottom: 20px; }
  .countdown { gap: 8px; margin-bottom: 20px; max-width: 100%; padding: 0 20px; box-sizing: border-box; }
  .countdown__item { min-height: 58px; padding: 8px 6px; }
  .countdown__value { font-size: clamp(28px, 8vw, 38px); }
  .countdown__label { font-size: 11px; }
  .final__last { margin: 0 0 30px; }
}

@media (max-width: 680px) and (max-height: 700px) {
  .love__headline {
    top: calc(50px + var(--safe-top, 0px));
  }
  .love__headline-we { font-size: 92px; }
  .love__headline-wed { font-size: 41px; }
  .love__photo {
    top: calc(20% + var(--love-photo-shift, 20px));
    height: calc(100% - 160px - var(--love-photo-shift, 20px) - var(--safe-bottom, 0px));
    width: min(132%, 420px);
  }
  .ua-ios .love__photo {
    top: var(--love-photo-top, 20%);
    height: var(--love-photo-height, calc(100svh - 160px - var(--safe-bottom, 0px)));
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Заголовки на всех устройствах — без трекинга. */
h1, h2, h3, h4, h5, h6,
.title,
.cover__headline,
.cover__names,
.love__headline,
.love__headline-we,
.love__headline-wed,
.calendar__head,
.final__title,
.final__last {
  letter-spacing: 0 !important;
}
