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

body {
  font-family: 'Montserrat', sans-serif;
  background: #fff;
  overflow: hidden;
}

body.scroll-enabled {
  overflow: auto;
}

/* === КОНВЕРТ (БЕЗ ИЗМЕНЕНИЙ) === */

.envelope-container {
  /*position: fixed;*/
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: linear-gradient(145deg, #f5f0e8, #e8d5b7);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.envelope-container.opened {
  transform: translateY(-100%);
  pointer-events: none;
}

.envelope {
  position: absolute;
  bottom: 40px;
  width: 340px;
  height: 230px;
  background: #fff5e6;
  border-radius: 10px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.envelope-flap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0;
  background: linear-gradient(145deg, #e8d5b7, #d4b896);
  border-radius: 10px 10px 0 0;
  transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  transform-origin: top;
  z-index: 3;
}

.envelope-container.opened .envelope-flap {
  height: 115px;
  transform: rotateX(180deg);
}

.envelope-body {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  z-index: 1;
  background-size: cover;
  background-position: center;
}

.invitation-card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300px;
  background: white;
  border-radius: 10px;
  padding: 30px 25px;
  text-align: center;
  transform: translate(-50%, -50%) scale(0);
  transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  z-index: 4;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
  opacity: 0;
  pointer-events: none;
}

.envelope-container.opened .invitation-card {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.invitation-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 14px;
  color: #b20000;
  letter-spacing: 4px;
  font-weight: 500;
}

.invitation-card h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 32px;
  font-weight: 700;
  margin: 15px 0;
  letter-spacing: 2px;
}

.invitation-card .open-btn {
  background: #b20000;
  color: white;
  border: none;
  padding: 12px 35px;
  margin-top: 25px;
  border-radius: 30px;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.open-hint {
  position: absolute;
  bottom: 47px;
  width: inherit;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: #ffffff;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  z-index: 10000;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 0.6;
    transform: translateX(-50%) scale(1);
  }
  50% {
    opacity: 1;
    transform: translateX(-50%) scale(1.1);
  }
}

/* === МУЗЫКА === */

.music-controls {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 9999;
  display: none;
}

.music-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(178, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: white;
  font-size: 22px;
  transition: all 0.3s;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* === ОСНОВНОЙ КОНТЕНТ - НОВЫЙ СТИЛЬ === */

#main-content {
  /*opacity: 0;*/
  transition: opacity 0.5s ease;
}

#main-content.visible {
  opacity: 1;
}

/* Вертикальные заголовки */

.section-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

.section-heading-left {
  flex: 0 0 180px;
  position: relative;
}

.section-heading-left .vertical-title {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: 'Playfair Display', serif;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: 4px;
  color: #1a1a1a;
  /*text-transform: uppercase;*/
  line-height: 1.2;
  border-left: 4px solid #b20000;
  padding-left: 15px;
  margin-top: 20px;
}

.section-content-right {
  flex: 1;
  min-width: 260px;
}

@media (max-width: 768px) {
  .section-wrapper {
    flex-direction: column;
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .section-heading-left {
    flex: auto;
  }
}

@media (max-width: 768px) {
  .section-heading-left .vertical-title {
    writing-mode: horizontal-tb;
    transform: none;
    border-left: none;
    border-bottom: 4px solid #b20000;
    padding-left: 0;
    padding-bottom: 10px;
    display: inline-block;
    font-size: 28px;
  }
}

/* Hero секция (сплит-экран) */

.hero-split {
  min-height: 100vh;
  display: flex;
  flex-wrap: wrap;
}

.hero-image {
  flex: 1.2;
  background: url('../../assets/img/andreyandirina.png') top/contain no-repeat;
  min-height: 400px;
}

.hero-content {
  flex: 1;
  /*background: #fff;*/
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 30px;
}

.hero-inner {
  max-width: 550px;
}

.couple-names {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(42px, 7vw, 72px);
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: 2px;
}

.divider {
  width: 70px;
  height: 2px;
  background: #b20000;
  margin: 20px auto;
}

@media (max-width: 992px) {
  .hero-split {
    flex-direction: column;
  }
}

@media (max-width: 992px) {
  .hero-image {
    flex: auto;
    height: 50vh;
  }
}

/* Общие стили */

.section-title {
  font-family: 'Circe Rounded', serif;
  font-size: 36px;
  font-weight: 700;
  letter-spacing: 2px;
}

/* Карточки тайминга */

.timing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 25px;
  margin-top: 20px;
}

.timing-card {
  background: #fefaf5;
  border-radius: 24px;
  padding: 30px 20px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  border: 1px solid rgba(178, 0, 0, 0.1);
}

.timing-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border-color: #b20000;
}

.timing-time {
  font-family: 'Cormorant Garamond', serif;
  font-size: 38px;
  font-weight: 700;
  color: #b20000;
}

.timing-card h5 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  margin: 15px 0 8px;
  font-size: 18px;
}

.timing-card p {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  color: #888;
  margin: 0;
}

/* Кнопки */

.btn-custom {
  border: 2px solid #b20000;
  background: transparent;
  padding: 12px 32px;
  border-radius: 40px;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 1px;
  display: inline-block;
  color: #000;
  transition: all 0.3s;
  text-decoration: none;
  cursor: pointer;
}

.btn-custom:hover {
  background: #b20000;
  color: white;
  border-color: #b20000;
}

/* Календарь */

.wedding-calendar {
  background: #fff;
  border-radius: 28px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  padding: 25px;
  max-width: 400px;
  margin: 0 auto;
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  font-weight: 600;
}

.calendar-month {
  font-size: 22px;
  color: #b20000;
  font-family: 'Circe Rounded', serif;
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-weight: 600;
  color: #999;
  margin-bottom: 10px;
  font-size: 13px;
}

.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.calendar-day {
  text-align: center;
  padding: 10px 0;
  font-weight: 500;
  border-radius: 50%;
  transition: 0.2s;
  cursor: default;
  font-size: 14px;
}

.calendar-day.wedding-day {
  background: url("../../assets/img/circles.png")white center / contain no-repeat;
  padding: 10px;
  /*color: white;*/
  /*box-shadow: 0 0 0 3px rgba(178, 0, 0, 0.2);*/
  font-weight: bold;
  transform: scale(1.05);
}

.calendar-day.other-month {
  color: #ddd;
}

/* Карта */

.yandex-map-rounded {
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  height: 350px;
  width: 100%;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border-color: #b20000;
}

.yandex-map-rounded iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Dress code карточки */

.dress-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 25px;
}

.dress-card {
  background: #fefaf5;
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.3s;
  text-align: center;
  padding: 30px 20px;
}

.dress-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

.dress-icon {
  font-size: 48px;
  color: #b20000;
  margin-bottom: 15px;
}

.dress-card span {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 14px;
  color: #333;
}

/* Таймер */

.countdown-wrapper {
  background: #1a1a1a;
  border-radius: 30px;
  padding: 40px 30px;
  text-align: center;
}

.countdown-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 30px;
}

.countdown-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 52px;
  font-weight: 700;
  background: rgba(0,0,0,0.1);
  color: #b20000;
  padding: 15px 25px;
  border-radius: 20px;
  min-width: 100px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.countdown-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  letter-spacing: 2px;
  margin-top: 10px;
  color: #b20000;
}

/* Форма */

.rsvp-form {
  background: #fefaf5;
  padding: 40px;
  border-radius: 28px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
}

.form-control-modern {
  border: 1px solid #e8e0d5;
  border-radius: 50px;
  padding: 14px 24px;
  transition: all 0.2s;
  font-family: 'Montserrat', sans-serif;
}

.form-control-modern:focus {
  border-color: #b20000;
  box-shadow: 0 0 0 3px rgba(178, 0, 0, 0.1);
  outline: none;
}

.btn-submit {
  background: #b20000;
  border: none;
  padding: 14px 30px;
  border-radius: 50px;
  font-weight: 600;
  letter-spacing: 1px;
  color: white;
  transition: 0.3s;
  width: 100%;
  font-family: 'Montserrat', sans-serif;
}

.btn-submit:hover {
  background: #8a0000;
  transform: translateY(-2px);
}

/* Анимации */

.animate-on-scroll, .zoom-in {
  opacity: 1;
  transform: translateY(35px);
  transition: all 0.7s ease;
}

.animate-on-scroll.visible, .zoom-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.zoom-in {
  transform: scale(0.95);
}

.zoom-in.visible {
  transform: scale(1);
}

.bg-light-custom {
  background: #faf8f4;
}

/* Адаптивность */

@media (max-width: 576px) {
  .container {
    padding-left: 20px;
    padding-right: 20px;
  }
}

@media (max-width: 576px) {
  .countdown-number {
    font-size: 32px;
    color: #b20000;
    min-width: 70px;
    padding: 10px 15px;
  }
}

@media (max-width: 576px) {
  .timing-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
}

@media (max-width: 576px) {
  .rsvp-form {
    padding: 25px;
  }
}

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

.bounce {
  animation: bounce 1.5s infinite;
}

@media (max-width: 576px) {
  #envelopeContainer {
    background: url(../../assets/img/hero.png) top / cover no-repeat;
  }
}

@media (min-width: 577px) {
  #envelopeContainer {
    background: url(../../assets/img/herobig.jpg) top / cover no-repeat;
  }
}

.nav-pills {
  --bs-nav-pills-border-radius: 30px;
  --bs-nav-pills-link-active-color: #fff;
  --bs-nav-pills-link-active-bg: #b20000;
}

.nav {
  --bs-nav-link-padding-x: 1rem;
  --bs-nav-link-padding-y: 0.5rem;
  --bs-nav-link-color: var(--bs-nav-pills-link-active-bg);
  --bs-nav-link-hover-color: var(--bs-nav-pills-link-active-bg);
  --bs-nav-link-disabled-color: var(--bs-secondary-color);
  display: flex;
  flex-wrap: wrap;
  padding-left: 0;
  margin-bottom: 0;
  list-style: none;
}

.dress-image {
  border-radius: 16px;
  border: solid 2px #b20000;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

