:root {
  --cream-white: #faf7f2;
  --blush-pink: #f3e5e0;
  --dusty-rose: #a87f77;
  --warm-beige: #d4c4b0;
  --champagne: #e8d5c4;
  --soft-mauve: #8f6c4e;
  --deep-taupe: #604b35;
  --ivory: #fffef9;
  --error: #c45b5b;
  --display: "Cormorant Garamond", Georgia, serif;
  --body: "Montserrat", Arial, sans-serif;
  --script: "Great Vibes", cursive;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--cream-white);
  color: var(--deep-taupe);
  font-family: var(--body);
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.section {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  padding: 80px 0;
}

.hero,
.closing,
.split {
  display: flex;
  align-items: center;
  justify-content: center;
}

.gradient-hero {
  background: linear-gradient(135deg, #faf7f2 0%, #f3e5e0 42%, #e8d5c4 100%);
}

.gradient-section {
  background: linear-gradient(180deg, #faf7f2 0%, #f3e5e0 100%);
}

#locations {
  min-height: auto;
  padding-bottom: 0;
}

.cream {
  background: var(--cream-white);
}

.container {
  position: relative;
  z-index: 2;
  width: min(100% - 32px, 1120px);
  margin: 0 auto;
}

.narrow {
  width: min(100% - 32px, 900px);
}

.center {
  text-align: center;
}

.bg-image {
  position: absolute;
  inset: 0;
  background: center / cover no-repeat;
  opacity: 0.28;
}

.hero-bg {
  background-image: url("public/hero-bg.jpg");
}

.soft {
  opacity: 0.18;
}

.closing {
  background: #fbf3ee;
}

.closing .bg-image {
  background-size: cover;
  background-position: center;
  opacity: 0.82;
}

.closing::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(circle at 50% 43%, rgba(255, 254, 249, 0.72) 0%, rgba(255, 254, 249, 0.42) 35%, rgba(255, 254, 249, 0.1) 72%);
  content: "";
}

.closing .hero-content {
  width: min(100% - 48px, 1060px);
  padding-top: 14px;
  transform: translateY(-90px);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(100% - 48px, 620px);
  text-align: center;
}

.glass-icon {
  display: block;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

.flower-icon {
  width: 54px;
  height: 54px;
  margin: 0 auto 22px;
}

.script {
  margin: 0;
  color: var(--soft-mauve);
  font-family: var(--script);
  font-size: clamp(2rem, 7vw, 3rem);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  color: var(--deep-taupe);
}

h1 {
  margin-top: 12px;
  font-size: clamp(3.1rem, 11vw, 5.2rem);
  font-weight: 300;
  letter-spacing: 0.12em;
}

.names-title {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.18em;
  white-space: nowrap;
  font-size: clamp(2.35rem, 9vw, 5.2rem);
  letter-spacing: 0;
}

.names-title .name {
  font-family: var(--display);
  letter-spacing: 0.03em;
}

.names-title .amp {
  font-family: var(--script);
  font-size: 0.72em;
  letter-spacing: 0;
}

h1 span,
section.closing h2 span {
  font-family: var(--script);
  letter-spacing: 0;
}

h2 {
  font-size: clamp(2.5rem, 8vw, 4rem);
  line-height: 1.05;
}

h3 {
  font-size: 1.6rem;
}

.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 28px auto;
}

.divider span {
  width: 48px;
  height: 1px;
  background: var(--warm-beige);
}

.divider i {
  width: 9px;
  height: 9px;
  border: 1px solid var(--warm-beige);
  border-radius: 50%;
}

.date {
  margin: 0 0 28px;
  color: var(--dusty-rose);
  font-size: 0.9rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.lead,
.text-block p,
.section-header p,
.center > p,
.card-body p,
.timeline-card p,
.success p {
  color: var(--soft-mauve);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.8;
}

.lead {
  max-width: 420px;
  margin: 0 auto;
  color: var(--deep-taupe);
}

.scroll-indicator {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 34px;
  display: grid;
  justify-items: center;
  gap: 8px;
  transform: translateX(-50%);
  color: var(--dusty-rose);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: pulseSoft 2s ease-in-out infinite;
}

.scroll-indicator svg {
  animation: bounce 1.6s ease-in-out infinite;
}

.petals {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}


.petal {
  position: absolute;
  top: -24px;
  border-radius: 50%;
  animation: floatDown var(--duration) ease-in-out infinite;
  animation-delay: var(--delay);
}

.two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 72px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--dusty-rose);
  font-size: 0.76rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.text-block p {
  max-width: 470px;
}

.quote {
  color: var(--soft-mauve) !important;
  font-family: var(--script);
  font-size: clamp(1.8rem, 5vw, 2.4rem) !important;
  line-height: 1.25 !important;
}

.photo-wrap {
  position: relative;
  justify-self: center;
  max-width: 430px;
}

.photo-wrap::after {
  position: absolute;
  z-index: -1;
  right: -18px;
  bottom: -18px;
  width: 100%;
  height: 100%;
  border-radius: 28px;
  background: linear-gradient(145deg, #f3e5e0 0%, #e8d5c4 100%);
  content: "";
}

.photo-wrap img,
.dress-photo {
  display: block;
  width: 100%;
  border-radius: 24px;
  box-shadow: 0 4px 24px rgba(139, 115, 85, 0.08);
}

.photo-wrap img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.decor {
  position: absolute;
  z-index: 1;
  width: min(38vw, 380px);
  opacity: 0.42;
  pointer-events: none;
}

.decor-left {
  left: -90px;
  bottom: -30px;
  transform: rotate(-15deg);
}

.decor-right {
  top: 35px;
  right: -40px;
}

.section-header {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
}

.timeline {
  position: relative;
  display: grid;
  gap: 42px;
}

.timeline::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background: var(--warm-beige);
  content: "";
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
}

.timeline-item::before {
  position: absolute;
  top: 50%;
  width: 48px;
  height: 1px;
  background: rgba(212, 196, 176, 0.45);
  content: "";
}

.timeline-item:nth-child(even) .timeline-card {
  grid-column: 2;
  margin-left: 48px;
}

.timeline-item:nth-child(even)::before {
  left: 50%;
}

.timeline-item:nth-child(odd) .timeline-card {
  margin-right: 48px;
  text-align: right;
}

.timeline-item:nth-child(odd)::before {
  right: 50%;
}

.timeline-dot {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 14px;
  transform: translate(-50%, -50%);
  border: 2px solid var(--deep-taupe);
  border-radius: 50%;
  background: var(--cream-white);
}

.timeline-card,
fieldset,
.location-card {
  border-radius: 24px;
  background: linear-gradient(145deg, #fffef9 0%, #f3e5e0 100%);
  box-shadow: 0 4px 24px rgba(139, 115, 85, 0.08);
}

.timeline-card {
  padding: 28px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.timeline-card:hover,
.location-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(139, 115, 85, 0.15);
}

.time-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.timeline-item:nth-child(odd) .time-row {
  justify-content: flex-end;
}

.time-row strong {
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 400;
}

.icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(201, 169, 160, 0.42);
  border-radius: 50%;
  background: rgba(255, 254, 249, 0.82);
  box-shadow: inset 0 1px 10px rgba(255, 255, 255, 0.72), 0 8px 18px rgba(168, 127, 119, 0.1);
}

.icon .glass-icon {
  width: 38px;
  height: 38px;
}

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

.location-card {
  overflow: hidden;
  background: var(--ivory);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.route-widget {
  margin-top: 42px;
  margin-left: calc(50% - 50vw);
  width: 100vw;
  border-radius: 24px;
  overflow: hidden;
  background: rgba(255, 254, 249, 0.72);
  box-shadow: 0 4px 24px rgba(139, 115, 85, 0.08);
}

.route-widget-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(100% - 32px, 1120px);
  margin: 0 auto;
  padding: 24px 28px;
}

.route-widget h3 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.route-widget iframe {
  display: block;
  width: 100%;
  height: 560px;
  border: 0;
}

.card-image {
  position: relative;
  height: 240px;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 0.5s ease;
}

.location-card:hover img {
  transform: scale(1.07);
}

.card-image span {
  position: absolute;
  top: 16px;
  right: 16px;
  border-radius: 14px;
  background: var(--blush-pink);
  padding: 9px 16px;
  color: var(--deep-taupe);
  font-weight: 500;
}

.card-body {
  padding: 28px;
}

.outline-button,
.name-row button,
.success button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid var(--dusty-rose);
  border-radius: 999px;
  background: transparent;
  padding: 12px 24px;
  color: var(--deep-taupe);
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.outline-button:hover,
.success button:hover {
  transform: translateY(-2px);
  background: var(--blush-pink);
}

.dresscode::before {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(201, 169, 160, 0.15) 0%, transparent 70%);
  content: "";
}

.palette {
  display: grid;
  grid-template-columns: repeat(4, 112px);
  justify-content: center;
  justify-items: center;
  gap: 20px;
  margin: 36px auto 42px;
}

.palette span {
  display: grid;
  justify-items: center;
  gap: 9px;
  width: 112px;
  color: var(--dusty-rose);
  font-size: 0.76rem;
  line-height: 1.35;
  text-align: center;
}

.palette span::before {
  width: 58px;
  height: 58px;
  border: 3px solid var(--ivory);
  border-radius: 50%;
  background: var(--swatch);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  content: "";
}

.dress-photo {
  max-width: 640px;
  max-height: 330px;
  margin: 0 auto;
  object-fit: cover;
}

.note {
  margin-top: 24px;
  color: var(--dusty-rose) !important;
  font-style: italic;
}

.dress-warning {
  margin: 12px auto 0;
  color: var(--deep-taupe);
  font-size: clamp(1.05rem, 3vw, 1.35rem);
  font-weight: 500;
  letter-spacing: 0.12em;
  line-height: 1.45;
  text-transform: uppercase;
}

.rsvp-section {
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 254, 249, 0.95) 0%, rgba(255, 254, 249, 0.5) 35%, transparent 66%),
    linear-gradient(180deg, #faf7f2 0%, #f3e5e0 100%);
}

.rsvp-section::before,
.rsvp-section::after {
  position: absolute;
  z-index: 1;
  width: min(42vw, 460px);
  height: min(42vw, 460px);
  background: center / contain no-repeat;
  opacity: 0.09;
  pointer-events: none;
  content: "";
}

.rsvp-section::before {
  left: -120px;
  bottom: -80px;
  background-image: url("public/flowers-1.png");
  transform: rotate(-12deg);
}

.rsvp-section::after {
  right: -105px;
  top: 105px;
  background-image: url("public/flowers-2.png");
  transform: rotate(10deg);
}

.rsvp-section .narrow {
  width: min(100% - 32px, 1080px);
}

.rsvp-section .section-header {
  margin-bottom: 42px;
}

.rsvp-mark {
  width: 42px;
  height: 42px;
  margin: 0 auto 14px;
}

.rsvp-section .eyebrow {
  display: none;
}

.rsvp-section .section-header h2 {
  max-width: 660px;
  margin: 0 auto 16px;
  font-size: clamp(2.9rem, 6vw, 4.6rem);
  line-height: 1.08;
}

.rsvp-section .section-header p {
  margin: 0;
  color: var(--soft-mauve);
  font-size: 1rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
}

fieldset {
  position: relative;
  margin: 0;
  border: 0;
  overflow: hidden;
  padding: 48px 56px 42px;
  min-inline-size: 0;
  background: rgba(255, 254, 249, 0.68);
  backdrop-filter: blur(3px);
}

fieldset::before {
  display: block;
  width: 22px;
  height: 22px;
  margin: 0 auto 20px;
  background:
    radial-gradient(circle at 50% 50%, rgba(139, 115, 85, 0.6) 0 16%, transparent 17%),
    radial-gradient(circle at 50% 8%, rgba(201, 169, 160, 0.7) 0 16%, transparent 17%),
    radial-gradient(circle at 88% 50%, rgba(201, 169, 160, 0.55) 0 16%, transparent 17%),
    radial-gradient(circle at 50% 92%, rgba(201, 169, 160, 0.55) 0 16%, transparent 17%),
    radial-gradient(circle at 12% 50%, rgba(201, 169, 160, 0.55) 0 16%, transparent 17%);
  content: "";
}

legend {
  display: block;
  float: left;
  width: 100%;
  margin: 0;
  padding: 0;
  font-family: var(--display);
  color: var(--deep-taupe);
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
}

legend::after {
  display: block;
  width: 72px;
  height: 1px;
  margin: 18px auto 26px;
  background: linear-gradient(90deg, transparent, rgba(212, 196, 176, 0.9), transparent);
  content: "";
}

.hint {
  clear: both;
  margin: -10px 0 18px;
  color: var(--dusty-rose);
  font-size: 0.78rem;
  text-align: center;
}

fieldset label:first-of-type {
  clear: both;
}

label {
  display: flex;
  align-items: center;
  gap: 16px;
  border-radius: 14px;
  padding: 10px 12px;
  color: var(--deep-taupe);
  font-size: 0.95rem;
  line-height: 1.45;
  cursor: pointer;
  transition: background 0.2s ease;
}

label:hover {
  background: rgba(243, 229, 224, 0.55);
}

input[type="radio"],
input[type="checkbox"] {
  accent-color: var(--soft-mauve);
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.telegram-chat-link {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 18px;
  width: min(100%, 820px);
  margin: 34px auto 0;
  border: 1px solid rgba(168, 127, 119, 0.42);
  border-radius: 24px;
  background: transparent;
  padding: 22px 28px;
  color: var(--deep-taupe);
  font-size: 0.98rem;
  font-weight: 300;
  line-height: 1.65;
  text-align: left;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.telegram-chat-link:hover {
  transform: translateY(-2px);
  border-color: rgba(168, 127, 119, 0.72);
}

.telegram-chat-link strong {
  color: var(--dusty-rose);
  font-weight: 500;
}

.telegram-chat-icon {
  width: 22px;
  height: 22px;
  color: var(--dusty-rose);
}

.telegram-chat-icon path {
  fill: currentColor;
}

.name-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  column-gap: 34px;
  width: 100%;
  margin: 36px auto 0;
  text-align: center;
}

.field-wrap {
  display: grid;
  width: 100%;
}

.name-row input {
  width: 100%;
  min-height: 56px;
  border: 1px solid rgba(212, 196, 176, 0.75);
  border-radius: 999px;
  outline: none;
  background: rgba(255, 254, 249, 0.68);
  padding: 18px 26px;
  color: var(--deep-taupe);
  text-align: center;
}

.name-row input:focus {
  border-color: var(--deep-taupe);
  box-shadow: 0 0 0 3px rgba(139, 115, 85, 0.1);
}

.name-row input::placeholder {
  color: rgba(96, 75, 53, 0.68);
  opacity: 1;
}

.name-row button {
  grid-column: 1 / -1;
  justify-self: center;
  width: min(100%, 320px);
  min-height: 56px;
  min-width: 0;
  margin-top: 18px;
  border: 0;
  background: linear-gradient(135deg, #c9a977 0%, #8b7355 100%);
  color: var(--ivory);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  box-shadow: 0 10px 26px rgba(139, 115, 85, 0.22);
}

.name-row button:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #d1b381 0%, #9b8060 100%);
  box-shadow: 0 8px 24px rgba(139, 115, 85, 0.25);
}

.name-row button:disabled {
  cursor: wait;
  opacity: 0.68;
  transform: none;
}

.name-row button span {
  margin-left: 16px;
}

.submit-error {
  grid-column: 1 / -1;
  justify-self: center;
  max-width: 560px;
  text-align: center;
}

.error {
  min-height: 0;
  margin: 0;
  color: var(--error);
  font-size: 0.84rem;
}

.error:not(:empty) {
  margin-top: 8px;
}

.success {
  text-align: center;
  animation: fadeInScale 0.5s ease-out both;
}

.success-mark {
  display: grid;
  place-items: center;
  width: 80px;
  height: 80px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: var(--blush-pink);
  box-shadow: inset 0 2px 12px rgba(255, 255, 255, 0.62), 0 14px 30px rgba(168, 127, 119, 0.12);
}

.success-mark .glass-icon {
  width: 58px;
  height: 58px;
}

.closing-flower {
  width: 42px;
  height: 42px;
  margin: 0 auto 38px;
}

.heart {
  width: 58px;
  height: 58px;
  margin: 0 auto 46px;
}

.closing .script {
  color: var(--soft-mauve);
  font-size: clamp(2.65rem, 5.2vw, 4.1rem);
  line-height: 1;
}

.closing h2 {
  margin-top: 24px;
  font-size: clamp(4.1rem, 6.95vw, 6.55rem);
  font-weight: 300;
  letter-spacing: 0.16em;
  line-height: 1;
}

.closing .divider {
  margin: 42px auto 36px;
}

.closing-main {
  margin: 0 0 24px;
  color: var(--deep-taupe);
  font-size: 1.22rem;
  font-weight: 300;
}

.closing .date {
  margin-bottom: 34px;
  color: var(--dusty-rose);
  font-size: 1rem;
  letter-spacing: 0.16em;
}

.footer-note {
  margin: 0 0 56px;
  color: var(--soft-mauve);
  font-size: 1.02rem;
}

.contact-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.contact-button {
  display: inline-grid;
  grid-template-columns: auto auto;
  gap: 18px;
  min-width: 190px;
  min-height: 62px;
  border-color: rgba(168, 127, 119, 0.72);
  padding-right: 32px;
  padding-left: 32px;
  color: var(--deep-taupe);
  font-size: 1rem;
  white-space: nowrap;
}

.telegram-icon {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  color: var(--dusty-rose);
  opacity: 0.86;
}

.telegram-icon path {
  fill: currentColor;
}

.dot-nav {
  position: fixed;
  z-index: 10;
  top: 50%;
  right: 22px;
  display: grid;
  gap: 12px;
  transform: translateY(-50%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.dot-nav.visible {
  opacity: 1;
  pointer-events: auto;
}

.dot-nav button {
  position: relative;
  width: 18px;
  height: 18px;
  border: 0;
  background: transparent;
  padding: 0;
}

.dot-nav button::before {
  position: absolute;
  inset: 4px;
  border: 1.5px solid var(--warm-beige);
  border-radius: 50%;
  content: "";
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.dot-nav button.active::before,
.dot-nav button:hover::before {
  transform: scale(1.18);
  border-color: var(--deep-taupe);
  background: var(--deep-taupe);
}

.dot-nav button span {
  position: absolute;
  top: 50%;
  right: 100%;
  margin-right: 10px;
  transform: translateY(-50%);
  border-radius: 8px;
  background: var(--deep-taupe);
  padding: 7px 10px;
  color: var(--ivory);
  font-size: 0.75rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.dot-nav button:hover span {
  opacity: 1;
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

@keyframes pulseSoft {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(7px); }
}

@keyframes floatDown {
  0% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(55vh) rotate(80deg); }
  100% { transform: translateY(110vh) rotate(160deg); }
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 820px) {
  .section {
    min-height: auto;
    padding: 72px 0;
  }

  .hero,
  .closing {
    min-height: 100vh;
  }

  .two-columns,
  .cards,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .photo-wrap {
    order: -1;
    max-width: 360px;
  }

  .decor {
    width: 290px;
  }

  .timeline::before {
    left: 18px;
  }

  .timeline-item {
    display: block;
    padding-left: 48px;
  }

  .timeline-item::before,
  .timeline-item:nth-child(even)::before,
  .timeline-item:nth-child(odd)::before {
    left: 18px;
    right: auto;
    width: 30px;
  }

  .timeline-item:nth-child(even) .timeline-card,
  .timeline-item:nth-child(odd) .timeline-card {
    margin: 0;
    text-align: left;
  }

  .timeline-item:nth-child(odd) .time-row {
    justify-content: flex-start;
  }

  .timeline-dot {
    left: 18px;
  }

  .dot-nav {
    right: 10px;
  }

  .route-widget-header {
    align-items: center;
    flex-direction: row;
  }

  .route-widget iframe {
    height: 460px;
  }

  .rsvp-section .section-header h2 {
    font-size: clamp(2.45rem, 10vw, 3.4rem);
  }

  .rsvp-section::before,
  .rsvp-section::after {
    width: 320px;
    height: 320px;
  }
}

@media (max-width: 520px) {
  h1 {
    font-size: 3rem;
    letter-spacing: 0.08em;
  }

  .names-title {
    font-size: clamp(2rem, 10.5vw, 3rem);
    gap: 0.14em;
    letter-spacing: 0;
  }

  .names-title .name {
    letter-spacing: 0.02em;
  }

  .hero-content {
    width: min(100% - 30px, 620px);
  }

  .section-header {
    margin-bottom: 36px;
  }

  fieldset,
  .timeline-card,
  .card-body {
    padding: 22px;
  }

  #rsvp fieldset {
    padding: 34px 24px 28px;
  }

  #rsvp legend {
    font-size: 1.25rem;
  }

  .telegram-chat-link {
    grid-template-columns: auto 1fr;
    gap: 14px;
    margin-top: 24px;
    border-radius: 22px;
    padding: 18px 20px;
    font-size: 0.92rem;
    line-height: 1.55;
  }

  .telegram-chat-icon {
    width: 20px;
    height: 20px;
    align-self: start;
    margin-top: 2px;
  }

  .name-row {
    grid-template-columns: 1fr;
    row-gap: 18px;
    margin-top: 24px;
  }

  .name-row input,
  .name-row button {
    min-width: 0;
    width: 100%;
  }

  .name-row button {
    margin-top: 0;
  }

  .error {
    margin: 0;
  }

  .card-image {
    height: 210px;
  }

  .route-widget {
    border-radius: 0;
  }

  .route-widget-header {
    gap: 12px;
    padding: 20px 18px;
  }

  .route-widget h3 {
    font-size: 1.85rem;
  }

  .route-widget-header .outline-button {
    min-height: 42px;
    padding: 10px 18px;
    font-size: 0.84rem;
    white-space: nowrap;
  }

  .route-widget iframe {
    height: 400px;
  }

  .palette {
    grid-template-columns: repeat(2, 104px);
    gap: 16px;
  }

  .palette span {
    width: 104px;
  }

  .dot-nav {
    display: none;
  }
}
