/* ==========================================================================
   💍 СВАДЕБНЫЙ ДИЗАЙН & ТИПОГРАФИКА
   Свадьба: Тима & Яна | Венчание & Пир
   Палитра: #6b8258 (шалфей), #8a9e78 (олива), #c0d0bd (мята), #e2dacc (песок), #c8baa6 (тауп), #4a3f35 (мокко)
   ========================================================================== */

:root {
  /* Основная цветовая гамма с богатыми природными зелеными и бежевыми тонами */
  --color-sage-deep: #506642;
  --color-sage-dark: #627452;
  --color-sage: #6b8258;
  --color-sage-mid: #8a9e78;
  --color-sage-light: #c0d0bd;
  --color-sage-subtle: #edf2ea;

  --color-sand: #e2dacc;
  --color-taupe: #c8baa6;
  --color-taupe-dark: #8c7b69;
  --color-caramel: #a68b70;
  --color-espresso: #4a3f35;
  --color-espresso-light: #6a5e52;

  /* Фоновые и акцентные оттенки */
  --bg-primary: #FAF7F2;
  /* Теплая текстура хлопковой бумаги */
  --bg-card: #FFFFFF;
  /* Чистая карточка с тиснением */
  --bg-secondary: #F4F1EB;
  /* Мягкий бежево-шалфейный фон секций */
  --border-delicate: rgba(138, 158, 120, 0.3);
  --border-sage: rgba(107, 130, 88, 0.4);

  /* Шрифты */
  --font-serif: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --font-script: 'Marck Script', 'Great Vibes', cursive;
  --font-sans: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Тени и скругления */
  --shadow-subtle: 0 10px 30px -5px rgba(74, 63, 53, 0.06), 0 4px 12px rgba(107, 130, 88, 0.04);
  --shadow-card: 0 20px 45px -10px rgba(74, 63, 53, 0.1), 0 0 20px rgba(138, 158, 120, 0.1);
  --shadow-floating: 0 25px 60px -12px rgba(74, 63, 53, 0.18);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  --transition-smooth: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Сброс стилей и базовые настройки */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--color-espresso);
  line-height: 1.7;
  position: relative;
  overflow-x: hidden;
  min-height: 100vh;
  width: 100%;
}

/* Фон с эффектом текстурной бумаги */
.paper-texture-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
  opacity: 0.035;
  background-image: radial-gradient(#4a3f35 0.75px, transparent 0.75px);
  background-size: 24px 24px;
}

/* Канвас для плавающих лепестков */
#petals-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

/* Типографика */
.font-serif {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.font-script {
  font-family: var(--font-script);
  font-weight: 400;
}

.font-sans {
  font-family: var(--font-sans);
}

h1,
h2,
h3,
h4,
h5 {
  color: var(--color-espresso);
  line-height: 1.25;
  word-break: break-word;
}

p {
  color: var(--color-espresso-light);
  font-size: 0.98rem;
  font-weight: 400;
  word-break: break-word;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-smooth);
}

img,
svg {
  max-width: 100%;
  height: auto;
}

/* Контейнеры */
.container {
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  padding: 0 1.25rem;
  position: relative;
  z-index: 3;
}

.container-narrow {
  max-width: 680px;
}

.container-hero {
  max-width: 960px;
  width: 100%;
  padding: 0 1.25rem;
}

/* ==========================================================================
   ФИКСИРОВАННАЯ ПАНЕЛЬ НАВИГАЦИИ & SCROLLSPY
   ========================================================================== */
.fixed-nav-bar {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translate(-50%, -24px);
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0.5rem;
  background: rgba(250, 247, 242, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-sage);
  border-radius: var(--radius-full);
  box-shadow: 0 8px 24px rgba(74, 63, 53, 0.1);
  max-width: calc(100vw - 1.5rem);
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s;
}

.fixed-nav-bar.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.fixed-nav-bar::-webkit-scrollbar {
  display: none;
}

.nav-link {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.45rem 0.75rem;
  color: var(--color-espresso);
  font-weight: 500;
  border-radius: var(--radius-full);
  white-space: nowrap;
  transition: var(--transition-smooth);
}

.nav-link:hover {
  background: rgba(107, 130, 88, 0.15);
  color: var(--color-sage-dark);
}

/* Активная секция при скролле (Scrollspy Highlight) */
.nav-link.active {
  background-color: var(--color-sage);
  color: #ffffff !important;
  font-weight: 600;
  box-shadow: 0 3px 10px rgba(107, 130, 88, 0.4);
}

.nav-link.active:hover {
  background-color: var(--color-sage-dark);
  color: #ffffff !important;
}

/* Плавающая кнопка музыки */
.floating-audio-btn {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 99;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.9rem;
  background: var(--bg-card);
  border: 1.5px solid var(--color-sage-light);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-card);
  cursor: pointer;
  color: var(--color-espresso);
  transition: var(--transition-smooth);
}

.floating-audio-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-floating);
  border-color: var(--color-sage);
}

.audio-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-sage-dark);
}

.audio-equalizer {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 14px;
}

.audio-equalizer span {
  width: 2.5px;
  background-color: var(--color-sage);
  border-radius: 2px;
  height: 3px;
  transition: height 0.2s ease;
}

.floating-audio-btn.is-playing .audio-equalizer span:nth-child(1) {
  animation: eqBounce 0.8s infinite ease-in-out;
}

.floating-audio-btn.is-playing .audio-equalizer span:nth-child(2) {
  animation: eqBounce 0.8s infinite ease-in-out 0.2s;
}

.floating-audio-btn.is-playing .audio-equalizer span:nth-child(3) {
  animation: eqBounce 0.8s infinite ease-in-out 0.4s;
}

.audio-label {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--color-sage-dark);
}

@keyframes eqBounce {

  0%,
  100% {
    height: 3px;
  }

  50% {
    height: 14px;
  }
}

/* ==========================================================================
   HERO / ГЛАВНАЯ КАРТОЧКА ПРИГЛАШЕНИЯ
   Зеленые эвкалиптовые и оливковые акценты, христианский стих
   ========================================================================== */
.hero-section {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(1.5rem, 3vh, 3rem) 1.25rem clamp(4rem, 7.5vh, 5.5rem);
  position: relative;
  background: radial-gradient(circle at 50% 50%, rgba(192, 208, 189, 0.22) 0%, transparent 70%);
  box-sizing: border-box;
}

.invitation-card {
  position: relative;
  background: var(--bg-card);
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: clamp(2.8rem, 5vh, 4.2rem) clamp(2.6rem, 5vw, 4.5rem);
  border-radius: 8px;
  box-shadow: 0 24px 70px -12px rgba(74, 63, 53, 0.14), 0 0 40px rgba(107, 130, 88, 0.16);
  border: 1px solid rgba(107, 130, 88, 0.35);
  text-align: center;
  overflow: hidden;
  transition: var(--transition-smooth);
  box-sizing: border-box;
}

/* Эффект тисненого края бумаги в оливково-зеленом оттенке */
.invitation-card::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  bottom: 12px;
  border: 1px solid rgba(107, 130, 88, 0.45);
  pointer-events: none;
}

/* Ботанические веточки по углам в зеленом оттенке */
.botanical-art {
  position: absolute;
  pointer-events: none;
  z-index: 1;
  filter: hue-rotate(65deg) saturate(1.3) brightness(0.85);
  opacity: 0.85;
}

.botanical-art.top-left {
  top: -12px;
  left: -12px;
  width: clamp(150px, 18vh, 200px);
  height: clamp(150px, 18vh, 200px);
}

.botanical-art.bottom-right {
  bottom: -12px;
  right: -12px;
  width: clamp(150px, 18vh, 200px);
  height: clamp(150px, 18vh, 200px);
  transform: rotate(180deg);
}

/* Золотисто-оливковые крапинки */
.gold-splatters {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 18% 22%, rgba(107, 130, 88, 0.2) 0, rgba(107, 130, 88, 0.2) 4px, transparent 5px),
    radial-gradient(circle at 82% 78%, rgba(107, 130, 88, 0.22) 0, rgba(107, 130, 88, 0.22) 5px, transparent 6px),
    radial-gradient(circle at 88% 30%, rgba(197, 160, 89, 0.18) 0, rgba(197, 160, 89, 0.18) 3px, transparent 4px),
    radial-gradient(circle at 12% 75%, rgba(107, 130, 88, 0.18) 0, rgba(107, 130, 88, 0.18) 3.5px, transparent 4.5px);
}

/* Типографика на карточке приглашения */
.card-content {
  position: relative;
  z-index: 2;
}

.card-intro-script {
  font-size: clamp(1.45rem, 2.8vh, 1.85rem);
  color: var(--color-sage-dark);
  margin-bottom: clamp(0.25rem, 0.5vh, 0.45rem);
  letter-spacing: 0.05em;
  font-weight: 500;
}

.couple-names-wrap {
  margin: clamp(0.2rem, 0.5vh, 0.4rem) 0 clamp(0.35rem, 0.7vh, 0.65rem);
}

.couple-name {
  font-size: clamp(3.8rem, 8.5vh, 5.4rem);
  line-height: 0.88;
  color: var(--color-espresso);
  letter-spacing: 0.01em;
  display: block;
}

.names-connector {
  display: block;
  font-size: clamp(1rem, 1.8vh, 1.25rem);
  font-weight: 600;
  letter-spacing: 0.3em;
  color: var(--color-sage-dark);
  margin: 0;
  line-height: 1;
  text-transform: uppercase;
}

/* Блок цитаты из Библии (христианский акцент) */
.card-scripture-wrap {
  margin: 0.5rem auto 1rem;
  padding: 0.5rem 1rem;
  background: rgba(107, 130, 88, 0.08);
  border-left: 2px solid var(--color-sage);
  border-right: 2px solid var(--color-sage);
  border-radius: 4px;
  max-width: 520px;
}

.card-scripture-text {
  font-size: 0.95rem;
  font-style: italic;
  font-family: var(--font-serif);
  color: var(--color-sage-deep);
  line-height: 1.55;
}

.card-invitation-phrase {
  font-size: clamp(1.2rem, 2.4vh, 1.45rem);
  font-style: italic;
  font-family: var(--font-serif);
  color: var(--color-espresso);
  line-height: 1.62;
  max-width: 650px;
  margin: 0 auto clamp(0.75rem, 1.5vh, 1.25rem);
}

/* Блок даты с зеленым акцентом */
.card-date-badge {
  margin: clamp(0.6rem, 1.3vh, 1.1rem) 0;
  padding: 0.2rem 0;
}

.date-month-title {
  font-size: clamp(0.95rem, 1.8vh, 1.12rem);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--color-sage-deep);
  font-weight: 700;
  margin-bottom: clamp(0.2rem, 0.45vh, 0.35rem);
}

.date-main-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  border-top: 1.5px solid var(--color-sage);
  border-bottom: 1.5px solid var(--color-sage);
  padding: clamp(0.4rem, 0.8vh, 0.65rem) 1rem;
  max-width: 460px;
  width: 100%;
  margin: 0 auto;
}

.date-side-text {
  font-size: clamp(0.88rem, 1.6vh, 1.02rem);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-sage-deep);
  font-weight: 600;
  flex: 1;
  white-space: nowrap;
}

.date-day-number {
  font-size: clamp(2.8rem, 5.8vh, 3.8rem);
  line-height: 1;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 600;
  color: var(--color-espresso);
  padding: 0 0.5rem;
  margin: -5px 0 6px 0;
}

.date-year-title {
  font-size: clamp(0.95rem, 1.8vh, 1.12rem);
  letter-spacing: 0.34em;
  color: var(--color-sage-deep);
  font-weight: 600;
  margin-top: clamp(0.2rem, 0.45vh, 0.35rem);
}

.card-location-brief {
  font-size: clamp(0.92rem, 1.7vh, 1.08rem) !important;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--color-espresso);
  font-weight: 600;
  margin-top: clamp(0.6rem, 1.3vh, 1.1rem);
  line-height: 1.45;
}

.card-sub-script {
  font-size: clamp(1.7rem, 3.4vh, 2.25rem);
  color: var(--color-sage-dark);
  margin-top: clamp(0.25rem, 0.5vh, 0.5rem);
  letter-spacing: 0.05em;
  font-weight: 500;
}

/* Кнопка скролла вниз (Заметный интерактивный бейдж внизу вьюпорта) */
.scroll-indicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.hero-scroll-indicator {
  position: absolute;
  bottom: clamp(0.8rem, 2.2vh, 1.8rem);
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  margin-top: 0;
}

.scroll-indicator-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.42rem 1.05rem;
  background: rgba(250, 247, 242, 0.9);
  backdrop-filter: blur(8px);
  border: 1.5px solid rgba(107, 130, 88, 0.45);
  border-radius: var(--radius-full);
  color: var(--color-sage-deep);
  font-size: clamp(0.72rem, 1.2vh, 0.8rem);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: 0 4px 15px rgba(74, 63, 53, 0.08), 0 2px 8px rgba(107, 130, 88, 0.12);
  transition: var(--transition-smooth);
  animation: floatDown 2.2s infinite ease-in-out;
}

.scroll-indicator-pill:hover {
  background: var(--color-sage);
  color: #ffffff;
  border-color: var(--color-sage);
  box-shadow: 0 6px 20px rgba(107, 130, 88, 0.35);
  transform: translateY(-3px);
}

.scroll-indicator-icon {
  display: inline-block;
  color: inherit;
  transition: transform 0.25s ease;
  animation: bounceArrow 1.5s infinite ease-in-out;
}

@keyframes bounceArrow {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(3px);
  }
}

@keyframes floatDown {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(4px);
  }
}

/* ==========================================================================
   СЕКЦИИ И ДЕЛИТЕЛИ
   ========================================================================== */
.section {
  padding: 5rem 0;
  position: relative;
}

.section-bg-secondary {
  background-color: var(--bg-secondary);
}

.section-header {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 3rem;
}

.section-subtitle {
  font-size: 1.35rem;
  color: var(--color-sage-dark);
  display: block;
  margin-bottom: 0.25rem;
}

.section-title {
  font-size: clamp(2rem, 5vw, 2.5rem);
  font-family: var(--font-serif);
  color: var(--color-espresso);
  margin-bottom: 0.8rem;
}

.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0.6rem auto 1rem;
  color: var(--color-sage);
  filter: hue-rotate(65deg) saturate(1.2);
  max-width: 220px;
}

.section-description {
  font-size: 0.96rem;
  color: var(--color-espresso-light);
  line-height: 1.7;
}

/* ==========================================================================
   ТАЙМЕР ОБРАТНОГО ОТСЧЕТА & КАЛЕНДАРЬ
   ========================================================================== */
.countdown-box {
  background: var(--bg-card);
  padding: 2.2rem 1.6rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-sage);
  box-shadow: var(--shadow-subtle);
  text-align: center;
  max-width: 620px;
  margin: 0 auto;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  margin-bottom: 1.6rem;
}

.countdown-card {
  background: var(--bg-primary);
  border: 1px solid rgba(107, 130, 88, 0.3);
  padding: 1.1rem 0.4rem;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: var(--transition-smooth);
}

.countdown-card:hover {
  transform: translateY(-2px);
  border-color: var(--color-sage);
  box-shadow: 0 4px 12px rgba(107, 130, 88, 0.15);
}

.countdown-value {
  font-size: clamp(1.6rem, 5vw, 2.3rem);
  line-height: 1;
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--color-sage-deep);
  margin-bottom: 0.25rem;
}

.countdown-label {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-taupe-dark);
}

.cd-status-text {
  font-size: 0.92rem;
  margin-bottom: 1.4rem;
  color: var(--color-espresso-light);
}

.calendar-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.btn-calendar {
  min-width: 180px;
}

/* ==========================================================================
   КНОПКИ
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.8rem 1.5rem;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition-smooth);
  text-align: center;
  user-select: none;
}

.btn-primary {
  background-color: var(--color-sage);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(107, 130, 88, 0.35);
}

.btn-primary:hover {
  background-color: var(--color-sage-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(107, 130, 88, 0.45);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--border-sage);
  color: var(--color-espresso);
}

.btn-outline:hover {
  border-color: var(--color-sage);
  color: var(--color-sage-deep);
  background-color: rgba(107, 130, 88, 0.1);
}

.btn-sm {
  padding: 0.55rem 1.1rem;
  font-size: 0.76rem;
}

.btn-copied {
  background-color: var(--color-sage) !important;
  color: #ffffff !important;
  border-color: var(--color-sage) !important;
}

/* ==========================================================================
   ПРОГРАММА ДНЯ (ТАЙМИНГ)
   Время на отдельной строке над названием этапа
   ========================================================================== */
.timeline-wrap {
  position: relative;
  max-width: 680px;
  margin: 0 auto;
}

.timeline-wrap::before {
  content: "";
  position: absolute;
  top: 1.5rem;
  bottom: 1.5rem;
  left: 24px;
  width: 2px;
  background: linear-gradient(to bottom, var(--color-sage), var(--color-sage-light), var(--color-sand));
}

@media (min-width: 680px) {
  .timeline-wrap::before {
    left: 50%;
    transform: translateX(-50%);
  }
}

.timeline-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 2.2rem;
  position: relative;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

@media (min-width: 680px) {
  .timeline-item {
    width: 50%;
  }

  .timeline-item:nth-child(odd) {
    margin-left: 0;
    margin-right: auto;
    padding-right: 2.5rem;
    text-align: right;
    flex-direction: row-reverse;
  }

  .timeline-item:nth-child(even) {
    margin-left: auto;
    margin-right: 0;
    padding-left: 2.5rem;
    text-align: left;
  }

  .timeline-item:nth-child(odd) .timeline-badge {
    right: -24px;
    left: auto;
  }

  .timeline-item:nth-child(even) .timeline-badge {
    left: -24px;
    right: auto;
  }

  .timeline-item:nth-child(odd) .timeline-header-block {
    align-items: flex-end;
  }
}

.timeline-badge {
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.badge-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1.8px solid var(--color-sage);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-sage-deep);
  box-shadow: 0 4px 12px rgba(107, 130, 88, 0.15);
  transition: var(--transition-smooth);
}

.timeline-item:hover .badge-icon-wrap {
  transform: scale(1.08);
  background-color: var(--color-sage);
  color: #ffffff;
}

.timeline-card {
  background: var(--bg-card);
  padding: 1.5rem 1.6rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-delicate);
  box-shadow: var(--shadow-subtle);
  margin-left: 64px;
  width: calc(100% - 64px);
  transition: var(--transition-smooth);
}

@media (min-width: 680px) {
  .timeline-card {
    margin-left: 0;
    width: 100%;
  }
}

.timeline-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
  border-color: var(--color-sage);
}

/* Блок заголовка таймлайна: время СВЕРХУ на отдельной строке */
.timeline-header-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 0.5rem;
}

/* Крупное акцентное время */
.timeline-time {
  display: inline-block;
  font-family: var(--font-serif);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--color-sage-deep);
  line-height: 1.1;
  margin-bottom: 0.2rem;
  letter-spacing: 0.02em;
}

.timeline-title {
  font-size: 1.25rem;
  color: var(--color-espresso);
  font-weight: 600;
  line-height: 1.3;
}

.timeline-desc {
  font-size: 0.88rem;
  color: var(--color-espresso-light);
  line-height: 1.55;
}

/* ==========================================================================
   ЛОКАЦИЯ И КАРТА (ЦЕРКОВЬ ЕХБ)
   ========================================================================== */
.venue-card-wrapper {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-delicate);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.venue-img-wrap {
  width: 100%;
  max-height: 300px;
  overflow: hidden;
  background: #e2dacc;
}

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

.venue-info-header {
  padding: 2.2rem 2rem 1.5rem;
  text-align: center;
}

.venue-info-header .venue-name {
  font-size: clamp(1.4rem, 4.5vw, 1.9rem);
  color: var(--color-espresso);
  margin-bottom: 0.5rem;
}

.venue-address {
  font-size: 1rem;
  color: var(--color-sage-deep);
  font-weight: 600;
  margin-bottom: 1rem;
  display: inline-block;
}

.venue-description {
  max-width: 600px;
  margin: 0 auto 1.4rem;
  font-size: 0.92rem;
}

.venue-nav-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.map-container {
  height: 340px;
  width: 100%;
  border-top: 1px solid var(--border-delicate);
  border-bottom: 1px solid var(--border-delicate);
  background-color: var(--bg-secondary);
}

.custom-map-pin {
  display: flex;
  align-items: center;
  justify-content: center;
}

.pin-marker-body {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pin-pulse {
  position: absolute;
  width: 40px;
  height: 40px;
  background: rgba(107, 130, 88, 0.4);
  border-radius: 50%;
  animation: pulsePin 2s infinite ease-out;
  pointer-events: none;
  z-index: -1;
}

@keyframes pulsePin {
  0% {
    transform: scale(0.6);
    opacity: 1;
  }

  100% {
    transform: scale(1.8);
    opacity: 0;
  }
}

.map-popup-card {
  text-align: center;
  font-family: var(--font-sans);
  padding: 0.2rem;
}

.venue-transfer-box {
  padding: 1.5rem 2rem;
  background: var(--bg-primary);
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
}

.transfer-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(107, 130, 88, 0.15);
  color: var(--color-sage-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.transfer-content h5 {
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
  color: var(--color-espresso);
}

.transfer-content p {
  font-size: 0.88rem;
}

/* ==========================================================================
   ДРЕСС-КОД & ПАЛИТРА
   ========================================================================== */
.palette-container {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  gap: 1.5rem;
  margin: 1.5rem 0 0.5rem;
}

.palette-swatch-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.45rem;
}

.swatch-circle {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  box-shadow: 0 6px 16px rgba(74, 63, 53, 0.12);
  border: 3px solid #ffffff;
  transition: var(--transition-smooth);
  cursor: pointer;
}

.swatch-circle:hover {
  transform: scale(1.12) translateY(-3px);
  box-shadow: 0 10px 22px rgba(107, 130, 88, 0.25);
}

.swatch-label {
  text-align: center;
  font-size: 0.76rem;
  font-weight: 500;
  line-height: 1.25;
  color: var(--color-espresso);
}

.swatch-hex {
  font-size: 0.68rem;
  color: var(--color-taupe-dark);
  letter-spacing: 0.05em;
  font-family: monospace;
}

/* ==========================================================================
   ПОЖЕЛАНИЯ & ДЕТАЛИ (FAQ)
   ========================================================================== */
.wishes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.4rem;
  max-width: 760px;
  margin: 0 auto;
}

.wish-card {
  background: var(--bg-card);
  padding: 2rem 1.6rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-delicate);
  box-shadow: var(--shadow-subtle);
  text-align: center;
  transition: var(--transition-smooth);
}

.wish-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
  border-color: var(--color-sage);
}

.wish-icon-wrap {
  width: 54px;
  height: 54px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-sage);
}

.wish-title {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.wish-text {
  font-size: 0.88rem;
  line-height: 1.6;
}

/* ==========================================================================
   RSVP ФОРМА (АНКЕТА ГОСТЯ)
   ========================================================================== */
.rsvp-card-wrapper {
  background: var(--bg-card);
  padding: 2.8rem 2.2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-delicate);
  box-shadow: var(--shadow-card);
  max-width: 580px;
  margin: 0 auto;
  position: relative;
}

.rsvp-card-wrapper::after {
  content: "";
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  bottom: 10px;
  border: 1px solid rgba(107, 130, 88, 0.25);
  border-radius: calc(var(--radius-lg) - 6px);
  pointer-events: none;
}

.form-group {
  margin-bottom: 1.6rem;
  position: relative;
  z-index: 2;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-espresso);
  margin-bottom: 0.6rem;
  letter-spacing: 0.02em;
}

.form-control {
  width: 100%;
  padding: 0.85rem 1.1rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--color-espresso);
  background: var(--bg-primary);
  border: 1.5px solid var(--color-sand);
  border-radius: var(--radius-sm);
  outline: none;
  transition: var(--transition-smooth);
}

.form-control:focus {
  border-color: var(--color-sage);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(107, 130, 88, 0.2);
}

/* Радио-кнопки выбора (Буду / Не смогу) */
.radio-cards-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.radio-card-label {
  cursor: pointer;
}

.radio-card-label input {
  display: none;
}

.radio-custom-card {
  padding: 0.9rem 1rem;
  border: 1.5px solid var(--color-sand);
  background: var(--bg-primary);
  border-radius: var(--radius-sm);
  text-align: center;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-espresso);
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.radio-icon {
  font-weight: 700;
}

.radio-card-label input:checked+.radio-custom-card {
  border-color: var(--color-sage);
  background: rgba(107, 130, 88, 0.12);
  color: var(--color-sage-deep);
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(107, 130, 88, 0.18);
}

.btn-rsvp-submit {
  width: 100%;
  padding: 1.05rem;
  font-size: 0.88rem;
  margin-top: 0.6rem;
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-rsvp-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Блок выбора спутника (+1) */
.plus-one-toggle-wrap {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  background: rgba(107, 130, 88, 0.06);
  border: 1px dashed var(--color-sand);
  border-radius: var(--radius-sm);
  transition: var(--transition-smooth);
}

.checkbox-custom-label {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-espresso);
  user-select: none;
}

.checkbox-custom-label input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--color-sand);
  border-radius: 4px;
  background: var(--bg-primary);
  display: grid;
  place-content: center;
  transition: var(--transition-smooth);
  cursor: pointer;
}

.checkbox-custom-label input[type="checkbox"]:checked {
  background: var(--color-sage);
  border-color: var(--color-sage);
}

.checkbox-custom-label input[type="checkbox"]:checked::before {
  content: "✓";
  font-size: 12px;
  color: #ffffff;
  font-weight: 700;
}

.plus-one-name-container {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: all 0.35s ease-in-out;
  margin-top: 0;
}

.plus-one-name-container.is-active {
  max-height: 120px;
  opacity: 1;
  margin-top: 0.9rem;
}

.spinner-icon {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ==========================================================================
   ОКНО ПОДТВЕРЖДЕНИЯ RSVP & ПРИГЛАШЕНИЕ В TELEGRAM
   ========================================================================== */
.rsvp-form-fade-out {
  opacity: 0 !important;
  transform: translateY(-12px) scale(0.97) !important;
  transition: opacity 0.25s ease-out, transform 0.25s ease-out !important;
}

.rsvp-registered-box {
  animation: rsvpSuccessIn 0.65s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  position: relative;
  z-index: 2;
}

@keyframes rsvpSuccessIn {
  0% {
    opacity: 0;
    transform: translateY(22px) scale(0.96);
  }
  60% {
    opacity: 1;
    transform: translateY(-3px) scale(1.01);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.registered-success-card,
.registered-declined-card {
  text-align: center;
}

.reg-icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(107, 130, 88, 0.14);
  color: var(--color-sage-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.8rem;
  box-shadow: 0 4px 16px rgba(107, 130, 88, 0.2);
}

.reg-icon-wrap.declined {
  background: rgba(166, 139, 112, 0.14);
  color: var(--color-caramel);
  box-shadow: 0 4px 16px rgba(166, 139, 112, 0.18);
}

.reg-status-badge {
  font-size: 1.25rem;
  color: var(--color-sage-deep);
  display: block;
  margin-bottom: 0.35rem;
}

.reg-names {
  font-size: 1.75rem;
  color: var(--color-espresso);
  margin-bottom: 0.6rem;
  line-height: 1.3;
}

.reg-intro-text {
  font-size: 0.92rem;
  color: var(--color-espresso-light);
  line-height: 1.6;
  max-width: 440px;
  margin: 0 auto 1.4rem;
}

/* Telegram Invite Box */
.telegram-invite-box {
  background: linear-gradient(135deg, rgba(237, 242, 234, 0.85), rgba(250, 247, 242, 0.95));
  border: 1.5px solid rgba(107, 130, 88, 0.3);
  border-radius: var(--radius-md);
  padding: 1.4rem 1.3rem;
  margin: 1.5rem 0 1.2rem;
  text-align: left;
  position: relative;
  box-shadow: 0 8px 24px rgba(74, 63, 53, 0.05);
}

.tg-badge-tag {
  position: absolute;
  top: -11px;
  right: 18px;
  background: var(--color-sage);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  box-shadow: 0 2px 8px rgba(107, 130, 88, 0.3);
}

.tg-content-row {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.1rem;
}

.tg-icon-circle {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  background: #2AABEE;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(42, 171, 238, 0.35);
}

.tg-text-block {
  flex: 1;
}

.tg-title {
  font-size: 1.12rem;
  color: var(--color-espresso);
  margin-bottom: 0.2rem;
}

.tg-desc {
  font-size: 0.82rem;
  color: var(--color-espresso-light);
  line-height: 1.45;
  margin: 0;
}

.btn-telegram {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  padding: 0.85rem 1.2rem;
  background: #2AABEE;
  color: #ffffff !important;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 15px rgba(42, 171, 238, 0.3);
  transition: var(--transition-smooth);
  text-decoration: none;
}

.btn-telegram:hover {
  background: #229ED9;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(42, 171, 238, 0.42);
}

.btn-telegram svg {
  flex-shrink: 0;
}

/* Действия после регистрации (Отмена) */
.reg-footer-actions {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

.btn-cancel-rsvp {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.1rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--color-espresso-light);
  border: 1px solid var(--border-delicate);
  border-radius: var(--radius-full);
  background: transparent;
  transition: var(--transition-smooth);
  cursor: pointer;
}

.btn-cancel-rsvp:hover {
  background: rgba(166, 139, 112, 0.12);
  border-color: var(--color-caramel);
  color: var(--color-espresso);
  transform: translateY(-1px);
}

/* Деликатная ссылка на админку в футере */
.footer-admin-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  color: rgba(74, 63, 53, 0.4);
  text-decoration: none;
  margin-top: 1.5rem;
  transition: color 0.2s ease;
}

.footer-admin-link:hover {
  color: var(--color-sage-deep);
}


/* ==========================================================================
   КООРДИНАТОР & КОНТАКТЫ
   ========================================================================== */
.coordinator-card {
  background: var(--bg-card);
  padding: 2rem 1.6rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-delicate);
  box-shadow: var(--shadow-subtle);
  max-width: 580px;
  margin: 2.5rem auto 0;
  text-align: center;
}

.coordinator-name {
  font-size: 1.25rem;
  margin-bottom: 0.3rem;
}

.coordinator-contacts-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  margin: 1rem 0 0.4rem;
  flex-wrap: wrap;
}

/* ==========================================================================
   ФОТОГАЛЕРЕЯ LOVE STORY (ПОД АНКЕТОЙ)
   ========================================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}

.gallery-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-subtle);
  cursor: pointer;
  aspect-ratio: 4 / 5;
  background-color: var(--color-sand);
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-card:hover img {
  transform: scale(1.06);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(74, 63, 53, 0.3);
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  transition: var(--transition-smooth);
}

.gallery-card:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay-caption {
  position: absolute;
  bottom: 0.8rem;
  left: 0.8rem;
  right: 0.8rem;
  font-family: var(--font-serif);
  font-size: 0.92rem;
  text-align: center;
  color: #ffffff;
  background: rgba(44, 37, 30, 0.68);
  backdrop-filter: blur(4px);
  padding: 0.35rem 0.6rem;
  border-radius: var(--radius-sm);
  letter-spacing: 0.02em;
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.wedding-footer {
  padding: 3.5rem 1rem 3rem;
  text-align: center;
  position: relative;
  background: var(--bg-primary);
  border-top: 1px solid var(--border-delicate);
}

.footer-names {
  font-size: 2.4rem;
  margin-bottom: 0.3rem;
  color: var(--color-espresso);
}

.footer-date {
  font-size: 0.82rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-sage-dark);
  font-weight: 600;
}

.footer-note {
  font-size: 0.84rem;
  color: var(--color-taupe-dark);
  margin-top: 1.5rem;
}

/* ==========================================================================
   МОДАЛЬНЫЕ ОКНА (RSVP УСПЕХ & ЛАЙТБОКС)
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(74, 63, 53, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: var(--bg-card);
  padding: 2.5rem 2rem;
  border-radius: var(--radius-lg);
  max-width: 480px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-floating);
  transform: scale(0.92);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.modal-backdrop.is-open .modal-card {
  transform: scale(1);
}

.modal-success-icon {
  margin-bottom: 1rem;
}

.modal-title {
  font-size: 1.7rem;
  margin-bottom: 0.7rem;
}

.modal-text {
  font-size: 0.94rem;
  line-height: 1.6;
}

/* Лайтбокс фото */
.lightbox-modal {
  position: fixed;
  inset: 0;
  background: rgba(20, 18, 16, 0.92);
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-modal img {
  max-width: 92vw;
  max-height: 85vh;
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  color: #ffffff;
  font-size: 2.5rem;
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
}

/* Тост уведомления */
.wedding-toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(40px);
  background: var(--color-espresso);
  color: #ffffff;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  box-shadow: var(--shadow-floating);
  z-index: 1200;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-smooth);
  white-space: nowrap;
}

.wedding-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.wedding-toast.toast-error {
  background-color: #c93b4a;
}

/* Канвас конфетти */
.confetti-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1100;
}

/* ==========================================================================
   SCROLL REVEAL АНИМАЦИИ
   ========================================================================== */
.scroll-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--delay, 0s);
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   АДАПТИВНОСТЬ ДЛЯ СМАРТФОНОВ И ПЛАНШЕТОВ
   ========================================================================== */
@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
  }

  .palette-container {
    gap: 1.2rem 0.8rem;
  }
}

@media (max-width: 600px) {
  .hero-section {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 0.6rem 4.2rem;
    box-sizing: border-box;
  }

  .invitation-card {
    padding: 2.6rem 1.4rem 2.2rem;
    border-radius: 6px;
  }

  .botanical-art.top-left {
    top: -12px;
    left: -12px;
    width: 105px;
    height: 105px;
    opacity: 0.65;
  }

  .botanical-art.bottom-right {
    bottom: -12px;
    right: -12px;
    width: 105px;
    height: 105px;
    opacity: 0.65;
  }

  .card-intro-script {
    font-size: 1.35rem;
    margin-bottom: 0.35rem;
  }

  .couple-names-wrap {
    margin: 0.15rem 0 0.45rem;
  }

  .couple-name {
    font-size: 3.2rem;
    line-height: 0.9;
  }

  .names-connector {
    font-size: 0.95rem;
    margin: 0;
    line-height: 1;
  }

  .card-scripture-wrap {
    margin: 0.6rem auto 1.1rem;
    padding: 0.45rem 0.9rem;
  }

  .card-scripture-text {
    font-size: 0.88rem;
  }

  .card-invitation-phrase {
    font-size: 1.14rem;
    line-height: 1.58;
    margin: 0 auto 1rem;
    max-width: 340px;
  }

  .date-month-title,
  .date-year-title {
    font-size: 0.88rem;
  }

  .date-side-text {
    letter-spacing: 0.14em;
  }

  .date-day-number {
    font-size: 2.6rem;
  }

  .date-main-row {
    gap: 0.6rem;
    padding: 0.45rem 0.4rem;
    max-width: 330px;
  }

  .card-location-brief {
    font-size: 0.85rem !important;
    letter-spacing: 0.2em;
    margin-top: 0.85rem;
  }

  .card-sub-script {
    font-size: 1.65rem;
    margin-top: 0.3rem;
  }

  .section {
    padding: 3.8rem 0;
  }

  .section-header {
    margin-bottom: 2.2rem;
  }

  .section-title {
    font-size: 1.85rem;
  }

  .countdown-box {
    padding: 1.6rem 1rem;
  }

  .countdown-grid {
    gap: 0.4rem;
  }

  .countdown-card {
    padding: 0.8rem 0.2rem;
  }

  .countdown-value {
    font-size: 1.6rem;
  }

  .countdown-label {
    font-size: 0.62rem;
  }

  .btn-calendar {
    width: 100%;
    min-width: unset;
  }

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

  .timeline-badge {
    left: 0;
  }

  .badge-icon-wrap {
    width: 38px;
    height: 38px;
  }

  .badge-icon-wrap svg {
    width: 18px;
    height: 18px;
  }

  .timeline-card {
    margin-left: 50px;
    width: calc(100% - 50px);
    padding: 1.2rem 1rem;
  }

  .timeline-time {
    font-size: 1.45rem;
  }

  .timeline-title {
    font-size: 1.15rem;
  }

  .venue-info-header {
    padding: 1.6rem 1rem 1.2rem;
  }

  .venue-transfer-box {
    padding: 1.2rem 1rem;
  }

  .map-container {
    height: 260px;
  }

  .palette-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: start;
    gap: 1.1rem 0.5rem;
  }

  .swatch-circle {
    width: 48px;
    height: 48px;
  }

  .rsvp-card-wrapper {
    padding: 2rem 1.1rem;
  }

  .radio-cards-row {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }

  .fixed-nav-bar {
    top: 0.5rem;
    padding: 0.25rem 0.35rem;
    gap: 0.15rem;
  }

  .nav-link {
    font-size: 0.66rem;
    padding: 0.35rem 0.55rem;
    letter-spacing: 0.04em;
  }

  .floating-audio-btn {
    bottom: 1rem;
    right: 1rem;
    padding: 0.45rem 0.75rem;
  }

  .audio-label {
    display: none;
  }
}

@media (max-width: 380px) {
  .hero-section {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.2rem 0.35rem 3.8rem;
    box-sizing: border-box;
  }

  .invitation-card {
    padding: 2.1rem 1rem 1.8rem;
  }

  .couple-name {
    font-size: 2.8rem;
    line-height: 0.9;
  }

  .card-invitation-phrase {
    font-size: 1.05rem;
    line-height: 1.5;
    margin: 0 auto 0.85rem;
  }

  .date-side-text {
    letter-spacing: 0.1em;
  }

  .date-day-number {
    font-size: 2.3rem;
  }

  .card-sub-script {
    font-size: 1.45rem;
  }

  .container {
    padding: 0 0.75rem;
  }
}