/* ---------- Base ---------- */
html, body {
  overflow-x: hidden;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Cormorant Garamond', serif;
  color: #2F4B26;
  background: #E8DBC4;
  scroll-snap-type: y mandatory;
  overflow-y: scroll;
  overflow-x: hidden; /* в†ђ Р’РћРў Р­РўРћ РЈР‘РР РђР•Рў Р“РћР РР—РћРќРўРђР›Р¬РќР«Р™ РЎРљР РћР›Р› */
}

.section {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 180px 20px;
  scroll-snap-align: start;
  position: relative;
}

.content {
  max-width: 800px;
  text-align: center;
}

/* ---------- Typography ---------- */
h1, h2 {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  letter-spacing: 1px;
}

.section h2 {
  margin-bottom: 30px;
}

time {
  display: block;
  margin-top: 10px;
  letter-spacing: 3px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  color: white;
  overflow: hidden;
}


/* Р¤РѕРЅ hero */
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("images/hero.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  filter:
          saturate(0.75)
          contrast(0.9)
          brightness(0.75);
  transform: scale(1.05); /* Р·Р°РїР°СЃ РїРѕРґ РїР°СЂР°Р»Р»Р°РєСЃ */
  will-change: transform;
  z-index: 1;
}

/* Grain */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("images/grain.jpg") repeat;
  opacity: 0.1;
  pointer-events: none;
  z-index: 3;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
          to bottom,
          rgba(0,0,0,0.15) 0%,
          rgba(0,0,0,0.35) 100%
  );
  z-index: 2;
}

.section::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("images/grain.jpg") repeat;
  opacity: 0.035;
  pointer-events: none;
  z-index: 2;
}

/* РљРѕРЅС‚РµРЅС‚ hero */
.hero-content {
  animation: fadeHero 2s ease forwards;
  position: relative;
  z-index: 4;
  text-align: center;
  padding-top: 220px; /* было 120px */
}

@keyframes fadeHero {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}


/* Save the date вЂ” СЂСѓРєРѕРїРёСЃРЅР°СЏ РїРѕРґРїРёСЃСЊ */
.save-date.big {
  font-family: 'Great Vibes', cursive;
  font-size: 10rem; /* больше */
  font-weight: 500;
  letter-spacing: 1px;
  transform: rotate(-6deg);
  margin-bottom: 120px; /* сильнее разнесли */
  display: inline-block;
  color: #F6F2EC;
  text-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

/* РђРЅРёРјР°С†РёСЏ РїРѕРґРїРёСЃРё */
@keyframes handwritten {
  from {
    opacity: 0;
    transform: rotate(-14deg) translateY(10px);
  }
  to {
    opacity: 1;
    transform: rotate(-12deg) translateY(0);
  }
}

.hero h1 {
  font-size: 8rem;
  margin-bottom: 40px;
  font-weight: 300;
  letter-spacing: 4px;
}

.hero time {
  font-size: 2.2rem;
  margin-top: 20px;
  letter-spacing: 4px;
  text-transform: uppercase;
  opacity: 0.85;
}

.about p {
  color: #1B1F1B;
}

/* ---------- Paper background ---------- */
.paper {
  background-color: #EDE4D6;
  position: relative;
  overflow: hidden; /* Р”РћР‘РђР’РРўР¬ */
}

.paper::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("images/paper.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.15;
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 0;
  filter: contrast(0.95) brightness(0.98);
}

.paper > * {
  position: relative;
  z-index: 2;
}

/* ---------- About ---------- */
.about-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  margin-bottom: 30px;
  line-height: 1.4; /* С‡СѓС‚СЊ РїР»РѕС‚РЅРµРµ РїРѕ РІРµСЂС‚РёРєР°Р»Рё */
  letter-spacing: 0.02em; /* Немного разряжаем текст для читабельности */
}

.about-text .script {
  font-family: 'Great Vibes', cursive;
  font-size: 2.4rem;
  display: inline-block;
  transform: rotate(-2deg); /* РјРµРЅСЊС€Рµ РЅР°РєР»РѕРЅР° */
  margin-bottom: 0.1px;
  color: #2F4B26;
  text-shadow: 0.5px 0.5px 0 rgba(0,0,0,0.12);
}

.about {
  position: relative;
  min-height: auto;
  padding-top: 100px;
  padding-bottom: 60px;
  background: #EDE4D6;
  overflow: hidden;
}

.about-image {
  width: 100%;
  max-width: 900px;
  margin-top: 10px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* ЕДИНЫЙ СТИЛЬ ДЛЯ ВСЕХ КНОПОК */
.btn, .map-btn {
  display: inline-block;
  padding: 18px 50px;
  background: #2F4B26;
  color: #fff;
  border-radius: 2px;       /* Строгий, дорогой угол */

  font-family: 'Cormorant Garamond', serif;
  font-style: italic;       /* Курсив для элегантности */
  font-size: 1.2rem;
  letter-spacing: 0.1em;    /* Воздух */
  text-decoration: none;    /* Убираем подчеркивание ссылки */
  border: 0.5px solid transparent;

  box-shadow: 0 10px 30px rgba(47, 75, 38, 0.15);
  transition: all 0.4s ease;
  cursor: pointer;
}

.btn:hover, .map-btn:hover {
  transform: translateY(-2px);
  background: #1f351a;
  box-shadow: 0 15px 40px rgba(47, 75, 38, 0.25);
  color: white;
}

/* ---------- Location ---------- */

.location .btn-outline {
  margin-top: 30px;
}

.location h2 {
  font-family: 'Playfair Display', serif;
  font-size: 3.2rem; /* +3вЂ“4 РїСѓРЅРєС‚Р° */
  margin-bottom: 30px;
}

.section.location {
  align-items: flex-start;
}


/* ---------- Details ---------- */
.details {
  position: relative;
  color: white; /* Р’Р•РЎР¬ РўР•РљРЎРў Р‘Р•Р›Р«Р™ */
  overflow: hidden;
}

/* Р¤РѕРЅРѕРІРѕРµ РёР·РѕР±СЂР°Р¶РµРЅРёРµ Р±Р»РѕРєР° 4 */
.details-bg {
  position: absolute;
  inset: 0;
  background-image: url("images/background_4.jpg");
  background-size: cover;
  background-position: center;

  /* рџ”§ РќРђРЎРўР РћР™РљР РР—РћР‘Р РђР–Р•РќРРЇ (РєР°Рє РІ hero) */
  filter:
          saturate(0.6)    /* РЅР°СЃС‹С‰РµРЅРЅРѕСЃС‚СЊ */
          contrast(0.5)    /* РєРѕРЅС‚СЂР°СЃС‚ */
          brightness(0.5);  /* СЏСЂРєРѕСЃС‚СЊ */

  z-index: 1;
}

/* РљРѕРЅС‚РµРЅС‚ РїРѕРІРµСЂС… С„РѕРЅР° */
.details .content {
  position: relative;
  z-index: 3;
}

/* ---------- Р—Р°РіРѕР»РѕРІРєРё ---------- */
.details h2 {
  font-family: 'Playfair Display', serif;
  font-size: 3.4rem; /* в†ђ СЂР°Р·РјРµСЂ Р·Р°РіРѕР»РѕРІРєРѕРІ */
  margin-bottom: 50px;
  color: white;
}

/* ---------- РўР°Р№РјРёРЅРі ---------- */
.timeline-vertical {
  position: relative;
  max-width: 560px;
  margin: 80px auto;
  padding: 0 40px;
}

/* Р’Р•Р РўРРљРђР›Р¬РќРђРЇ Р›РРќРРЇ-РљРђР РўРРќРљРђ */
.timeline-line {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 100%;
  opacity: 0.9;
  z-index: 1;
  pointer-events: none;
}

/* РЎРѕР±С‹С‚РёРµ */
.event {
  display: grid;
  grid-template-columns: 1fr 40px 1fr;
  align-items: center;
  margin-bottom: 60px;
  position: relative;
  z-index: 2;
}

/* Р’Р Р•РњРЇ вЂ” Р РЈРљРћРџРРЎРќРћР•, Р‘РћР›Р¬РЁРћР• */
.time {
  text-align: right;
  padding-right: 140px;
  font-family: 'Great Vibes', cursive;
  font-size: 3.2rem;
  color: white;
}
/* РџРѕРґРїРёСЃСЊ */
.desc {
  padding-left: 0px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  color: white;
  white-space: nowrap; /* в†ђ Р’ РћР”РќРЈ РЎРўР РћРљРЈ */
  transform: translateX(-15px);
}

/* ---------- РџР°Р»РёС‚СЂР° ---------- */
.palette {
  display: flex;
  justify-content: center;
  gap: 25px;
  margin: 30px 0;
}

.palette span {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  /* Более мягкая, рассеянная тень (дорогой эффект) */
  box-shadow: 0 10px 25px rgba(47, 75, 38, 0.15), inset 0 0 0 1px rgba(255,255,255,0.2);
  transition: transform 0.4s ease;
}

.palette span:hover {
  transform: scale(1.15);
}

/* ---------- РўРµРєСЃС‚ ---------- */
.dress-text {
  max-width: 520px;
  margin: 70px auto;
  text-align: center;
  color: white;
}

.pinterest {
  font-family: 'Great Vibes', cursive;
  font-size: 2rem;
  color: white;
  text-decoration: none;
}

/* ---------- Countdown ---------- */

.countdown {
  position: relative;   /* Р”РћР‘РђР’РРўР¬ */
  gap: 60px;
}
/*.timer div {
  text-align: center;
}*/

.paper-part {
  position: absolute;
  top: 0;
  right: 0;
  width: 38%;
  height: 100%;
  background: url("images/paper_part.png") right center / contain no-repeat;
  pointer-events: none;
  z-index: 1 !important;
}

.countdown .content {
  position: relative;
  z-index: 2;
}


/* РўР°Р№РјРµСЂ РІСЃРµРіРґР° РІРёРґРёРј, JS СЂР°Р±РѕС‚Р°РµС‚ РєРѕСЂСЂРµРєС‚РЅРѕ */
.timer {
  display: flex;
  justify-content: center;
  gap: 60px;
  margin: 100px 0;
}

.time-block {
  min-width: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.time-block span {
  font-family: 'Playfair Display', serif;
  font-size: 5rem;
  color: #2F4B26;
  line-height: 1;
  font-weight: 500;
}

.time-block small {
  font-family: 'Cormorant Garamond', serif; /* Возвращаем благородный шрифт */
  font-weight: 600;         /* Делаем чуть жирнее для читабельности */
  font-size: 0.85rem;       /* Чуть крупнее */
  margin-top: 8px;
  color: #2F4B26;
  letter-spacing: 0.25em;   /* Широкая разрядка - стиль */
  text-transform: uppercase;
  opacity: 0.8;
}


.countdown h2 {
  font-family: 'Playfair Display', serif;
  font-size: 3.2rem; /* С‚РѕС‚ Р¶Рµ СЂР°Р·РјРµСЂ */
  margin-bottom: 40px;
}

.details-text {
  max-width: 520px;    /* в†ђ РЈР–Р• */
  margin: 0 auto;
}

.details-text p {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;     /* Чуть крупнее для легкого чтения */
  line-height: 1.8;       /* Большой межстрочный интервал - признак люкса */
  text-align: center;
  color: white;           /* Убеждаемся, что белый */
  opacity: 0.9;           /* Слегка приглушаем, чтобы не спорил с заголовками */
  font-weight: 300;       /* Тонкое начертание */
}

.dot {
  display: block;
  /* Магия CSS фигур: делаем ромб */
  width: 6px;
  height: 6px;
  background: white;       /* Белый */
  transform: rotate(45deg);/* Поворачиваем квадрат -> ромб */
  margin: 40px auto;       /* Больше отступов сверху и снизу */
  opacity: 0.6;
}

.telegram-link {
  color: #2F4B26;
  text-decoration: none;
  font-weight: 600;
}

.telegram-link:hover {
  text-decoration: underline;
}

/* ---------- RSVP ---------- */
form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* Дедлайн RSVP */
.rsvp-deadline {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  letter-spacing: 0.15em;   /* Добавляем воздух */
  text-transform: uppercase;
  margin-bottom: 50px;      /* Больше воздуха снизу */
  opacity: 0.8;
}


.form-question {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.rsvp-form input {
  width: 100%;
  padding: 12px 0;
  border: none;
  /* Тончайшая линия (0.5px работает на современных экранах, для старых будет 1px) */
  border-bottom: 0.5px solid rgba(47, 75, 38, 0.4);
  border-radius: 0;
  background: transparent;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  text-align: center;
  transition: all 0.3s ease;
}

.rsvp-form input:focus {
  outline: none;
  border-bottom: 1px solid #2F4B26; /* Чуть толще при фокусе */
  background: rgba(255,255,255,0.1);
}

.heart-option {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem; /* Р±С‹Р»Рѕ ~1.2 */
  cursor: pointer;
}

.heart {
  width: 25px;
  height: 25px;
  background: #2F4B26;
  border: 2px solid #2F4B26; /* 100% РѕР±РІРѕРґРєР° */
  clip-path: path("M10 18s-6-4.3-8-7.5C.5 7 2.5 4 5.5 4c1.7 0 3 1 4.5 2.5C11.5 5 12.8 4 14.5 4c3 0 5 3 3.5 6.5C16 13.7 10 18 10 18z");
  opacity: 0.25;
  transition: all 0.3s ease;
}

.heart-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.heart-option input:checked + .heart {
  opacity: 1;
}

.form-note {
  font-size: 0.9rem;
  opacity: 0.7;
  margin-top: 8px;
  font-family: 'Cormorant Garamond', serif;
}

.form-block {
  margin-bottom: 22px;
}

.rsvp-form button {
  margin-top: 40px;
  padding: 14px 40px;
  background: #2F4B26;
  color: white;
  border: none;
  border-radius: 4px;
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  cursor: pointer;
}

.hint {
  font-size: 0.85rem;
  color: #555;
}

.rsvp-note {
  font-family: 'Great Vibes', cursive;
  font-size: 1.4rem;
  opacity: 0.8;
  text-align: center;
  margin-bottom: 24px; /* Р±С‹Р»Рѕ ~40 */
  line-height: 1.1;    /* РєРѕРјРїР°РєС‚РЅРµРµ */
}


.rsvp-form-wrapper {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
}

.rsvp-paper {
  position: absolute;
  inset: -20px; /* в†ђ Р’РђР–РќРћ: РґР°С‘Рј В«РІС‹С…РѕРґ Р·Р° РєСЂР°СЏВ» */
  background: url("images/paper_part_2.png") center / 90% no-repeat;
  z-index: 1;
  pointer-events: none;
}
.rsvp-form {
  position: relative;
  z-index: 2;
  padding: 80px 60px;
  text-align: center;
}

.rsvp h2.title {
  font-family: 'Playfair Display', serif;
  font-size: 3.2rem;
  text-align: center;
  margin-bottom: 12px; /* в†“ СЂР°СЃСЃС‚РѕСЏРЅРёРµ РґРѕ С‚РµРєСЃС‚Р° */
}

.rsvp-deadline {
  text-align: center;
}

.details-text p {
  line-height: 1.45;
}

/* ---------- Farewell ---------- */

/* ---------- Animations on scroll ---------- */
.animate {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.9s ease;
}

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

.animate.title {
  transition-delay: 0.1s;
}

.animate.content {
  transition-delay: 0.35s;
}

/* ---------- Responsive ---------- */
@media (min-width: 768px) {
  h1 { font-size: 4rem; }
}

  .hero {
    height: 100vh;      /* Fallback */
    height: 100svh;     /* Современный стандарт для мобилок (учитывает адресную строку) */
    min-height: auto;   /* Убираем min-height, чтобы не растягивало */
    margin-bottom: 0;
    padding-bottom: 0;
    overflow: hidden;   /* Обрезаем все лишнее */
  }

    /* Картинка фона тоже строго по размеру */
    .hero-bg {
      height: 100%;
      transform: scale(1.1); /* Чуть зумим, чтобы не было белых полос при скролле */
    }

.timeline-line {
  display: block;
  height: 100%;
  opacity: 0.6;
}

.section:not(.hero) p,
.section:not(.hero) li,
.section:not(.hero) .address {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;   /* Р±С‹Р»Рѕ ~1.15вЂ“1.25 в†’ СѓРІРµР»РёС‡РёР»Рё */
  line-height: 1.75;
}

.save-date.big {
  font-size: 3rem;
  margin-bottom: 60px;
}

.hero h1 {
  font-size: 3.2rem;
}

.hero time {
  font-size: 1.3rem;
}

.animate.image:nth-child(1) {
  transition-delay: 0.1s;
}

.animate.image:nth-child(2) {
  transition-delay: 0.3s;
}

.animate.image:nth-child(3) {
  transition-delay: 0.5s;
}

.location h2.animate.title {
  transition-delay: 0.5s;
}

.location .address,
.location .btn {
  transition-delay: 0.7s;
}

.location .btn-outline.animate {
  transform: none;
}

.location .btn-outline.animate {
  opacity: 0;
  transition: opacity 0.8s ease;
}

.location .btn-outline.animate.visible {
  opacity: 1;
}

/* ---------- Location gallery simple ---------- */

.location-gallery {
   display: block;
   margin-bottom: 60px; /* добавили отступ */
}

.location-gallery .location-img {
  width: 100%;
  height: 600px;
  object-fit: cover;
  display: block;
}

.location-img {
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.location-img {
  transition: transform 0.6s ease, opacity 0.6s ease;
}

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

.location-text {
  color: #1B1F1B;
}

.section-paper {
  background-size: 600px;
}

.details-text p {
  color: #1B1F1B;
}

.final-section {
  position: relative;
  background-color: #EDE4D6;
}

.final-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("images/paper.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.15;
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 0;
}


.final-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 3.8rem;
}


.paporotnik {
  position: absolute;
  top: 0;
  right: 0;
  width: 260px;
  transform: rotate(180deg); /* Р’Р’Р•Р РҐ РќРћР“РђРњР */
  pointer-events: none;
}

.location p {
  color: #1B1F1B;
}

.couple-wrapper {
  position: relative;
  display: inline-block;
}

.couple-img {
  width: 850px;
  max-width: 95%;
  margin-top: 25px; /* С‡СѓС‚СЊ РїРѕРґРЅСЏР»Рё */
}

.heart-overlay {
  position: absolute;
  bottom: 10px;   /* в†ђ СЂРµРіСѓР»РёСЂСѓРµС€СЊ Р’Р«РЎРћРўРЈ */
  right: 0px;    /* в†ђ СЂРµРіСѓР»РёСЂСѓРµС€СЊ РЎРњР•Р©Р•РќРР• РІРїСЂР°РІРѕ */
  width: 250px;    /* в†ђ СЂРµРіСѓР»РёСЂСѓРµС€СЊ Р РђР—РњР•Р  heart */
  pointer-events: none;
}

.final-section h2 {
  font-size: 3.8rem;
}

.paporotnik {
  opacity: 0.4;
}

/* =========================
   РњРћР‘РР›Р¬РќРђРЇ Р’Р•Р РЎРРЇ
========================= */

@media (max-width: 768px) {

  .section {
    padding: 70px 20px;
  }

  .content {
    width: 100%;
  }

  /* HERO */

   /* Контент центрируем жестко */
   .hero-content {
     display: flex;
     flex-direction: column;
     justify-content: center;
     align-items: center;
     height: 100%;

     /* ИСПРАВЛЕНО: добавлено px и увеличено значение */
     /* Это опустит имена Алина & Михаил чуть ниже центра */
     padding-top: 120px;

     padding-bottom: 0px;
   }

  .hero h1 {
    font-size: 2.2rem;
    line-height: 1.2;
  }

    .hero::before {
      /* Градиент от прозрачного к черному с усилением в самом низу */
      background: linear-gradient(
              to bottom,
              rgba(0,0,0,0) 50%,      /* Верхняя половина прозрачная */
              rgba(0,0,0,0.4) 75%,    /* Плавный переход */
              rgba(0,0,0,0.9) 100%    /* Глубокий черный в самом низу */
      );
      z-index: 2;
    }

   /* Поднимаем Save the date выше */
   .save-date.big {
     margin-top: -200px;   /* Тянем СИЛЬНО вверх от центра */
     margin-bottom: 200px;  /* Отступ снизу, чтобы имена визуально остались в центре экрана */
     display: block;
   }

/* Уменьшаем отступ снизу у блока About */
.about {
  padding-bottom: 20px;
}

  .about-image {
    width: 110%;          /* Увеличиваем ширину более чем на 100% */
    margin-left: -5%;     /* Центрируем после увеличения */
    margin-top: -40px;    /* Поднимаем вверх */
    margin-bottom: -40px; /* Оставляем наезд на следующий блок, как делали раньше */
    position: relative;
    z-index: 2;
    animation: floatImage 6s ease-in-out infinite; /* Бесконечное парение */
  }

/* Анимация парения */
@keyframes floatImage {
  0% { transform: translateY(0); }
  50% { transform: translateY(-10px); } /* Мягко всплывает */
  100% { transform: translateY(0); }
}

/* Уменьшаем отступ сверху у Location и подтягиваем заголовок */
/* Контейнер секции */
.location {
  padding-top: 40px;
}

  /* Р“РђР›Р•Р Р•РЇ РњР•РЎРўРђ */

/* Галерея-обертка */
.location-gallery {
  display: block;        /* Убираем flex, он здесь усложняет */
  margin-top: -40px;     /* Тянем блок вверх к тексту */
  margin-bottom: 40px;   /* ГАРАНТИРОВАННЫЙ ОТСТУП СНИЗУ до кнопки */
  padding-bottom: 20px;  /* Дополнительный буфер */
}

/* Сама картинка */
.location-img {
  width: 100%;
  height: auto !important; /* Принудительно сбрасываем высоту десктопа */
  display: block;
  object-fit: contain;     /* Картинка покажется целиком */
}

/* Кнопка */
.map-btn {
  width: 100%;
  text-align: center;
  position: relative;
  z-index: 10;
  display: block;
  margin-top: 0; /* Отступ уже создан галереей выше */
}


  .timeline-vertical {
    padding-left: 0;
  }

  /* Линия сдвигается влево */
  .timeline-line {
    left: 15px; /* Сдвигаем влево, но не к самому краю */
    transform: translateX(0); /* Убираем центрирование */
  }


/* Настройки события для мобилки */
.event {
  display: flex;
  flex-direction: row; /* Ставим время над текстом или наоборот, если хочешь в строку - оставь row */
  align-items: flex-start; /* Выравниваем по левому краю */
  padding-left: 40px; /* Отступ слева, чтобы текст не налез на линию */
  text-align: left;
  margin-bottom: 40px;
}

/* Время - крупнее */
.event .time {
  font-size: 3rem; /* Увеличили (было около 1.2-2.2) */
  text-align: left;
  padding-right: 0px;
  line-height: 1;
  margin-bottom: 5px;
  margin-left: -40px;
}

/* Описание - мельче */
.event .desc {
  font-size: 1.1rem; /* Уменьшили для контраста */
  text-align: left;
  white-space: normal; /* Разрешаем перенос текста, если он длинный */
  transform: none; /* Убираем смещение десктопа */
  padding-left: 110px;
}

  /* .event .desc {
    text-align: right;
  }
*/
  /* РџРђР›РРўР Рђ */

  .palette {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  /* РўРђР™РњР•Р  */

  .timer {
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
  }

  .time-block {
    width: 40%;
    text-align: center;
  }

  .time-block span {
    font-size: 3rem;
  }

  /* Р”Р•РўРђР›Р РўР•РљРЎРў */

  .details-text p {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  /* RSVP */

  .rsvp-form {
    padding: 0;
  }

  .form-question {
    font-size: 1rem;
  }

  /* Явно указываем селектор посильнее */
    .rsvp-form-wrapper h2.title,
    .rsvp h2.title {
      font-family: 'Playfair Display', serif; /* На всякий случай дублируем шрифт */
      font-size: 3.2rem;       /* Размер как у "Детали и пожелания" */
      text-align: center;
      width: 100%;
      margin-left: auto;
      margin-right: auto;
      display: block;
      margin-bottom: 20px;
      line-height: 1.2;
    }



  input[type="text"] {
    width: 100%;
    font-size: 1rem;
  }

  .heart-option {
    font-size: 0.95rem;
  }

  .btn {
    width: 100%;
  }

  /* Р¤РРќРђР› */

  .couple-wrapper {
    margin-top: 40px;
  }

  .couple-img {
    width: 100%;
    max-width: 420px;
  }

  .heart-overlay {
    width: 70px;
    right: 5%;
    bottom: 5%;
  }

  /* Р”Р•РљРћР  */

  .paporotnik {
    width: 120px;
    opacity: 0.5;
  }

   /* 1. Разрешаем блоку выпускать картинку за свои границы */
   .section.countdown {
     overflow: visible !important;
     position: relative;
     z-index: 10; /* Слой выше, чем у блока RSVP, чтобы бумага легла ПОВЕРХ */
   }

   /* 2. Настраиваем саму бумагу */
   .paper-part {
     display: block;
     width: 60%;           /* Ширина */
     opacity: 0.5;         /* Прозрачность */
     position: absolute;

     /* НАСТРОЙКИ ПОЛОЖЕНИЯ */
     height: 180%;         /* Делаем её очень длинной, чтобы свисала */
     top: -90px;           /* Опускаем начало картинки ниже заголовка */
     right: -10px;         /* Прижимаем к правому краю */

     pointer-events: none; /* ВАЖНО: чтобы через бумагу можно было нажать на форму */
     z-index: 20;
   }


h1, h2 {
  text-shadow: 0 10px 30px rgba(0,0,0,0.08);
}
}