* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Playfair Display", serif;
  background: #f6f1e8;
  color: #5c4a3c;
}

.hidden {
  display: none;
}

/* INTRO */
.intro-screen {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: #f6f1e8 url("envelope-00.00.00.000.png") center center / cover no-repeat;
  z-index: 5;
}

.envelope-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
  transform: scale(1);
  transition: transform 1.8s ease;
  background: transparent;
}

.envelope-video.zoom {
  transform: scale(1.2);
}

.intro-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  justify-content: center;
  padding-top: 32px;
  pointer-events: none;
}


.intro-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.10),
    rgba(0, 0, 0, 0.02),
    rgba(0, 0, 0, 0.12)
  );
  z-index: 1;
  pointer-events: none;
}
/* PEREJIMAS */
.transition-fade {
  position: fixed;
  inset: 0;
  background: #f6f1e8;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 999;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.transition-fade.show {
  opacity: 1;
  visibility: visible;
}

/* MAIN */
#contentScreen {
  position: relative;
  z-index: 1;
}

/* HERO */
.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero-overlay-main {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: rgba(40, 25, 10, 0.35);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  padding: 24px;
}

.hero-names {
  margin: 0;
  font-family: "Great Vibes", cursive;
  font-size: clamp(54px, 11vw, 110px);
  font-weight: 400;
  line-height: 1.05;
}


.hero-quote {
  margin-top: 14px;
  margin-bottom: 14px;
  font-family: "Playfair Display", serif;
  font-size: 1.1rem;
  font-style: italic;
  font-weight: 400;
  line-height: 1.5;
  text-align: center;
  color: rgba(255, 255, 255, 0.92);
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}


/* Vestuviu info */

.wedding-info {
  margin: 34px auto 0;
  max-width: 760px;
  text-align: center;
  color: #5c4a3c;
}

.wedding-info-date {
  display: inline-block;
  margin-bottom: 24px;
  padding-bottom: 8px;
  font-family: "Playfair Display", serif;
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: #9f7c3f;
  border-bottom: 1px solid rgba(159, 124, 63, 0.35);
}

.wedding-info-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
  gap: 34px;
}

.wedding-info-item {
  padding: 4px 10px;
}

.wedding-info-time {
  margin-bottom: 8px;
  font-size: 1.65rem;
  font-weight: 600;
  color: #5c4a3c;
}

.wedding-info-title {
  margin-bottom: 8px;
  font-size: 1.05rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #5c4a3c;
}

.wedding-info-place {
  font-size: 1.05rem;
  line-height: 1.45;
  color: #6b5848;
}

.wedding-info-divider {
  width: 1px;
  background: rgba(159, 124, 63, 0.45);
}

/* BENDROS SEKCIJOS */
.section {
  position: relative;
  z-index: 1;
  padding: 84px 20px;
  text-align: center;
}
.heart {
  color: #5c4a3c;
}
.section-light {
  background: #f6f1e8;
}

.section-gold {
  background: #bda16c;
  color: white;
}

.section-script {
  margin: 0 0 18px;
  font-family: "Great Vibes", cursive;
  font-size: clamp(42px, 7vw, 72px);
  font-weight: 400;
  color: #9f7d45;
}

.section-script-white {
  color: white;
}

.section-subtitle {
  margin: 0 0 24px;
  font-size: 15px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.75;
}

.section-subtitle-white {
  color: rgba(255, 255, 255, 0.9);
}

.text-block {
  max-width: 760px;
  margin: 0 auto;
  font-size: 20px;
  line-height: 1.85;
}

/* COUNTDOWN */
.countdown {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.countdown-box {
  min-width: 95px;
  background: rgba(255, 255, 255, 0.75);
  padding: 16px 14px;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.countdown-number {
  display: block;
  font-size: 30px;
  font-weight: 600;
  color: #9f7d45;
}

.countdown-label {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* CARD */
.card {
  max-width: 760px;
  margin: 28px auto 0;
  background: rgba(255, 255, 255, 0.92);
  color: #5c4a3c;
  border-radius: 22px;
  padding: 34px 24px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.08);
}


.card-text {
  margin: 10px 0;
  font-size: 19px;
  line-height: 1.7;
}


/* FORMA */
.form-card {
  max-width: 560px;
  text-align: left;
}

.form-card label {
  display: block;
  margin: 16px 0 8px;
  font-size: 16px;
  font-weight: 500;
}

.form-card input,
.form-card select,
.form-card textarea {
  width: 100%;
  border: 1px solid #dbcdb8;
  border-radius: 14px;
  padding: 14px 16px;
  font: inherit;
  background: #fffdf9;
  color: #5c4a3c;
}

.form-card textarea {
  min-height: 120px;
  resize: vertical;
}

.choice-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 10px 0 18px;
}

.choice-btn {
  flex: 1;
  min-width: 140px;
  border: 1px solid #d8c6a8;
  border-radius: 999px;
  padding: 13px 18px;
  background: #fffdf9;
  color: #7d673f;
  font: inherit;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.choice-btn:hover {
  transform: translateY(-1px);
  border-color: #bda16c;
}

.choice-btn.active {
  background: #9f7d45;
  color: white;
  border-color: #9f7d45;
}

.small-choice {
  flex: 0 0 70px;
  min-width: 70px;
}

#guestsBlock.disabled {
  opacity: 0.45;
  pointer-events: none;
}

.btn {
  display: inline-block;
  margin-top: 22px;
  border: none;
  border-radius: 999px;
  padding: 14px 24px;
  background: #7c2626;
  color: white;
  font: inherit;
  font-size: 16px;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  opacity: 0.96;
}

/* SLIDERIS */
.slider {
  width: 100%;
  overflow: hidden;
  margin-top: 28px;
  position: relative;
  cursor: grab;
  user-select: none;
  touch-action: pan-y;
}

.slider.is-dragging {
  cursor: grabbing;
}

.slider-track {
  display: flex;
  width: max-content;
  will-change: transform;
}

.slider-group {
  display: flex;
  flex: 0 0 auto;
  gap: 18px;
  padding-right: 18px;
}

.slide {
  flex: 0 0 360px;
  width: 360px;
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  background: #fff;
}

.slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

/* FOTO SEKCIJOS TARPAI */
.countdown-section {
  padding-bottom: 48px;
}

.photo-section {
  padding-top: 0;
  padding-bottom: 48px;
}

.photo-section .slider {
  margin-top: 0;
}
 /* VIETOS SEKCIJA */
.venue-section {
  position: relative;
}

.venue-card-premium {
  max-width: 720px;
  margin: 28px auto 0;
  background: #f3f1ec;
  color: #7d673f;
  border-radius: 24px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.10);
  overflow: hidden;
}

.venue-card-inner {
  padding: 34px 24px 30px;
}

.venue-illustration-wrap {
  max-width: 560px;
  margin: 0 auto 10px;
  background: #f3f1ec;
}

.venue-illustration {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: none;
}

.venue-name {
  margin: 0;
  font-family: "Great Vibes", cursive;
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 400;
  color: #9f7d45;
  line-height: 1.05;
}

.venue-hotel {
  margin: 8px 0 0;
  font-size: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(125, 103, 63, 0.8);
}

.venue-divider {
  width: 70px;
  height: 1px;
  background: rgba(159, 125, 69, 0.35);
  margin: 20px auto;
}

.venue-meta {
  margin: 0;
  font-size: 15px;
  letter-spacing: 0.06em;
  color: rgba(125, 103, 63, 0.85);
}

.venue-address {
  margin: 18px 0 6px;
  font-size: 22px;
  line-height: 1.5;
  color: #7d673f;
}

.venue-floor {
  margin: 0 0 20px;
  font-size: 17px;
  color: rgba(125, 103, 63, 0.82);
}

.premium-map {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 14px;
  box-shadow: 0 10px 26px rgba(159, 125, 69, 0.16);
  border: 1px solid rgba(159, 125, 69, 0.18);
  background: #efe8da;
}

#venueMap {
  width: 100%;
  height: 220px;
  display: block;
}

.premium-map::after {
  display: none;
}

#venueMap .leaflet-tile-pane {
  filter: none;
}

.leaflet-control-attribution {
  background: rgba(255, 253, 249, 0.82) !important;
  color: #8a744a !important;
  font-size: 10px !important;
  padding: 0 6px !important;
}

.venue-seal-marker {
  background: none !important;
  border: none !important;
  cursor: pointer !important;
}

.venue-seal-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  transform-origin: center center;
  animation: sealPulse 2.2s ease-in-out infinite;
  cursor: pointer;
}

.venue-seal-img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.22));
  pointer-events: none;
}

@keyframes sealPulse {
  0% {
    transform: scale(.5);
  }
  50% {
    transform: scale(0.6);
  }
  100% {
    transform: scale(.5);
  }
}

.venue-link {
  display: inline-block;
  margin-top: 8px;
  text-decoration: none;
  color: #9f7d45;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(159, 125, 69, 0.28);
  padding-bottom: 5px;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.venue-link:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

.venue-link:visited,
.venue-link:active {
  color: #9f7d45;
}

/* MUZIKOS MYGTUKAS */
.music-toggle {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(159, 125, 69, 0.4);
  background: rgba(246, 241, 232, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #9f7d45;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  transition: background 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
  line-height: 1;
}

.music-toggle:hover {
  background: rgba(246, 241, 232, 1);
  transform: scale(1.08);
}

.music-toggle.muted {
  opacity: 0.55;
  color: #bbb;
}

/* ŠVENTĖS DETALĖS SU IKONOMIS */
.details-list-icons {
  max-width: 920px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 38px;
}

.detail-icon-card {
  min-height: 220px;
  padding: 34px 42px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.detail-icon-card .card-text {
  max-width: 760px;
  margin: 0 auto;
}

.detail-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
  border: 1px solid rgba(159, 124, 63, 0.45);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9f7c3f;
  font-family: "Playfair Display", serif;
  font-size: 2rem;
  line-height: 1;
  background: rgba(255, 255, 255, 0.42);
}

/* APRANGOS KODAS */

.dress-code-grid {
  max-width: 920px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px;
  align-items: stretch;
}

.dress-card {
  width: 100%;
  min-height: 380px;
  padding: 44px 34px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.dress-visual-icon {
  position: relative;
  width: 116px;
  height: 116px;
  flex: 0 0 116px;
  margin: 0 auto 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dress-visual-icon::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(159, 124, 63, 0.18);
  background: rgba(255, 255, 255, 0.32);
  z-index: 0;
}

.dress-svg,
.suit-svg {
  position: relative;
  z-index: 1;
  width: 82px;
  height: 82px;
  display: block;
  filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.06));
}

.dress-title {
  margin: 0 0 14px;
  font-family: "Playfair Display", serif;
  font-size: 1.45rem;
  color: #5c4a3c;
  position: relative;
  z-index: 2;
}

.dress-card .card-text {
  max-width: 300px;
  margin: 0 auto;
  font-size: 1.15rem;
  line-height: 1.45;
  position: relative;
  z-index: 2;
}

/* DIENOS PROGRAMA – Kairė / Dešinė */

.program-timeline {
  position: relative;
  max-width: 900px;
  margin: 38px auto 0;
  padding: 10px 0;
}

.program-timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: rgba(92, 74, 60, 0.28);
  transform: translateX(-50%);
}

.program-item {
  position: relative;
  width: 50%;
  padding: 0 48px 42px;
}

.program-item::before {
  content: "";
  position: absolute;
  top: 14px;
  width: 18px;
  height: 18px;
  background: #5c4a3c;
  border: 5px solid #f6f1e8;
  border-radius: 50%;
  z-index: 2;
}

.program-item.left {
  left: 0;
  text-align: right;
}

.program-item.right {
  left: 50%;
  text-align: left;
}

.program-item.left::before {
  right: -14px;
}

.program-item.right::before {
  left: -14px;
}

.program-content {
  display: inline-block;
  max-width: 330px;
  margin-top: 6px;
}

.program-icon {
  width: 96px;
  height: 96px;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a07c39;
  flex-shrink: 0;
}
.program-icon,
.detail-icon {
  color: #9f7d45;
}

.program-icon svg,
.detail-icon svg {
  width: 100%;
  height: 100%;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  overflow: visible;
}

.program-icon .filled,
.detail-icon .filled {
  fill: currentColor;
  stroke: none;
}

.program-time {
  margin-bottom: 6px;
  font-size: 1.35rem;
  font-weight: 600;
  color: #5c4a3c;
}

.program-title {
  font-size: 1.08rem;
  line-height: 1.35;
  color: #5c4a3c;
}





/* MOBILE */
@media (max-width: 700px) {
  .intro-hint {
    font-size: 13px;
    padding: 0 16px;
    text-align: center;
  }
  .hero-quote {
    font-size: 0.95rem;
    max-width: 280px;
    margin-top: 10px;
    margin-bottom: 10px;
  }
  .intro-bottom-note {
    font-size: 12px;
    padding: 0 16px;
    text-align: center;
    white-space: normal;
  }

  .section {
    padding: 64px 18px;
  }
  .countdown-section {
    padding-bottom: 36px;
  }

  .photo-section {
    padding-top: 0;
    padding-bottom: 36px;
  }

  .photo-section .slider {
    margin-top: 0;
  }
  .text-block,
  .card-text {
    font-size: 17px;
  }

  /* Vestuvių informacija*/

  .wedding-info {
    margin-top: 28px;
    max-width: 330px;
  }

  .wedding-info-date {
    font-size: 1.1rem;
    margin-bottom: 22px;
  }

  .wedding-info-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .wedding-info-divider {
    width: 70px;
    height: 1px;
    margin: 0 auto;
  }

  .wedding-info-time {
    font-size: 1.45rem;
  }

  .wedding-info-title {
    font-size: 0.95rem;
  }

  .wedding-info-place {
    font-size: 1rem;
  }

  .details-list-icons {
    max-width: 330px;
  }

  .detail-icon-card {
    min-height: 220px;
    padding: 28px 24px;
  }

  .detail-icon {
    width: 58px;
    height: 58px;
    font-size: 1.75rem;
  }

  .dress-code-grid {
    grid-template-columns: 1fr;
    max-width: 330px;
    gap: 24px;
  }

  .dress-card {
    min-height: 340px;
    padding: 36px 24px;
  }

  .dress-visual-icon {
    width: 104px;
    height: 104px;
    flex-basis: 104px;
    margin-bottom: 24px;
  }

  .dress-svg,
  .suit-svg {
    width: 74px;
    height: 74px;
  }

  .dress-title {
    font-size: 1.3rem;
    margin-bottom: 12px;
  }

  .dress-card .card-text {
    max-width: 260px;
    font-size: 1.05rem;
    line-height: 1.45;
  }

  .program-timeline {
    max-width: 340px;
    margin-top: 26px;
    padding-left: 24px;
  }

  .program-timeline::before {
    left: 18px;
  }

  .program-item,
  .program-item.left,
  .program-item.right {
    width: 100%;
    left: 0;
    padding: 0 0 30px 36px;
    text-align: left;
  }

  .program-item.left::before,
  .program-item.right::before {
    left: -14px;
    right: auto;
  }
  .program-icon {
    width: 72px;
    height: 72px;
  }

  .program-content {
    max-width: 100%;
  }

  .program-time {
    font-size: 1.2rem;
  }

  .program-title {
    font-size: 1rem;
  }


  .countdown-box {
    min-width: 78px;
    padding: 14px 10px;
  }

  .countdown-number {
    font-size: 24px;
  }

  .slider-group {
    gap: 12px;
    padding-right: 12px;
  }

  .slide {
    flex: 0 0 220px;
    width: 220px;
  }

  .slide img {
    height: 100%;
  }

  .venue-card-inner {
    padding: 28px 18px 24px;
  }

  .venue-illustration-wrap {
    max-width: 100%;
    margin: 0 auto 12px;
  }

  .venue-address {
    font-size: 18px;
  }

  .venue-floor,
  .venue-meta {
    font-size: 15px;
  }

  #venueMap {
    height: 200px;
  }
}