/* =========================================================
   RESET
======================  =================================== */
  
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #f7f4ee;
  color: #17120e;
  font-family: Inter, Arial, sans-serif;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* =========================================================
   HEADER OVER HERO
========================================================= */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;

  height: 82px;
  padding: 0 6vw;

  z-index: 1000;

  display: flex;
  align-items: center;

  background: transparent;
  backdrop-filter: none;
}

.brand {
  display: none;
}



.nav {
  display: flex;
  align-items: center;
  gap: 34px;
  position: relative;

  padding: 14px 32px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);

  box-shadow:
    0 8px 30px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.nav::after {
  content: "";
  position: absolute;
  bottom: -18px;
  left: 10%;
  width: 80%;
  height: 4px;

  background: linear-gradient(
    to right,
    transparent,
    rgba(255,255,255,.9),
    transparent
  );

  border-radius: 999px;
  filter: blur(2px);
}

.nav a {
  color: #fff;
  font-size: 22px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;

  text-shadow:
    0 2px 4px rgba(0,0,0,.8),
    0 4px 12px rgba(0,0,0,.6);

  transition: all .25s ease;
}

.nav a:hover {
  transform: translateY(-1px);
  text-shadow:
    0 2px 6px rgba(0,0,0,.9),
    0 6px 18px rgba(0,0,0,.7);
}


.menu-toggle {
  display: none;
}

/* =========================================================
   GLOBAL
========================================================= */

.section {
  position: relative;
  padding: 120px 6vw;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 14px 24px;

  border: 1px solid #17120e;
  background: #17120e;
  color: white;

  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 11px;

  box-shadow: 7px 7px 0 rgba(23, 18, 14, .16);
  transition: .2s;
}

.btn:hover {
  transform: translate(2px, 2px);
}

h1 {
  margin: 0;

  font-family: "Cormorant Garamond", serif;
  font-size: clamp(58px, 8vw, 120px);
  font-style: italic;
  font-weight: 600;
  text-align: center;
  line-height: 1;
}

/* =========================================================
   HERO
========================================================= */

.hero {
  position: relative;

  min-height: 100vh;
  width: 100%;

  overflow: hidden;

  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-bg {
  position: absolute;
  inset: 0;

  object-fit: cover;
  object-position: center;

  z-index: 1;
  width:100%;
}

.hero-overlay {
  position: absolute;
  inset: 0;

  background: rgba(0, 0, 0, .08);

  z-index: 2;
}

.hero-film {
  position: absolute;
  top:0;
  z-index: 4;

  width: min(210px, 9.5vw);

  transform: rotate(4deg);

  filter: drop-shadow(0 20px 34px rgba(0, 0, 0, .28));
}

.hero-logo {
  position: absolute;

  bottom: 10%;
  left: 3%;

  width: min(320px, 70vw);

  filter: brightness(0) invert(1);

  z-index: 5;
}

.hero-date {
  position: absolute;

  top: 10%;
  right: 8%;

  width: min(240px, 38vw);

  z-index: 5;
}

.hero-btn {
  position: absolute;

  bottom: 10%;
  right: 8%;

  z-index: 5;
}

/* =========================================================
   INTRO
========================================================= */

.intro {
  min-height: 100vh;

  display: grid;
  grid-template-columns: 1fr 1fr;

  align-items: center;

  gap: 4vw;
  padding-bottom:0px;
}

.intro-left {
  position: relative;
  height: 720px;
}

.intro-photo {
  position: absolute;
  object-fit: cover;
  box-shadow: 0 18px 34px rgba(0, 0, 0, .18);
}

.photo-1 {
  width: 340px;

  left: 5%;
  top: 90px;

  transform: rotate(-10deg);
}

.photo-2 {
  width: 360px;

  left: 50%;
  top: 0;

  transform: rotate(2deg);
}

.intro-right {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom:40%;
}

.phrase-welcome {
  width: min(900px, 90%);
}

/* =========================================================
   O DIA
========================================================= */

.day-section {
  min-height: 100vh;
  padding: 90px 5vw 120px;
  background: #f7f4ee;
}

.day-section h1 {
  margin-bottom: 40px;
}

.day-layout {
  position: relative;
  max-width: 1320px;
  height: 940px;
  margin: 0 auto;
}

.day-text,
.day-date,
.day-photo {
  position: absolute;
  display: block;
}

.ceremony-text {
  left: 2%;
  top: 10px;
  width: 550px;
  transform: rotate(-2deg);
  z-index: 2;
}

.day-date {
  top: -40px;
  right: 14%;
  width: 400px;
  z-index: 5;
}

.day-photo {
  object-fit: cover;
}

.day-photo-1 {
  top: 105px;
  right: 18%;
  width: 500px;
  height: 335px;
  z-index: 2;
}

.day-photo-2 {
  top: 310px;
  right: 2%;
  width: 390px;
  height: 280px;
  transform: rotate(-8deg);
  z-index: 4;
}

.day-photo-3 {
  left: 2%;
  bottom: 65px;
  width: 300px;
  height: 360px;
  transform: rotate(-8deg);
  z-index: 2;
}

.day-photo-4 {
  left: 27%;
  bottom: 250px;
  width: 300px;
  height: 400px;
  transform: rotate(2deg);
  z-index: 3;
}

.day-photo-5 {
  left: 20%;
  bottom: 0;
  width: 430px;
  height: 280px;
  transform: rotate(3deg);
  z-index: 4;
}

.party-text {
  right: 5%;
  bottom: 1px;
  width: 550px;
  transform: rotate(-2deg);
  z-index: 5;
}

/* =========================================================
   RSVP
========================================================= */

.rsvp-section {
  padding-top: 110px;
  padding-bottom: 140px;
}

.rsvp-section h1 {
  margin-bottom: 50px;
}

.rsvp-wrapper {
  position: relative;

  max-width: 1380px;
  margin: 0 auto;

  padding-bottom: 80px;
}

.rsvp-form {
  width: 100%;
  min-height: 620px;

  background: transparent;

  border: 1px solid rgba(23, 18, 14, .45);

  padding: 90px 80px;

  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;

  align-content: center;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-row.full {
  grid-column: 1 / -1;
}

label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-weight: 600;
}

input,
select,
textarea {
  width: 100%;

  border: 1px solid #17120e;
  background: rgba(255, 255, 255, .7);

  padding: 15px 16px;

  font: inherit;
  color: #17120e;
}

textarea {
  resize: vertical;
}

.rsvp-note {
  position: absolute;

  right: 100px;
  bottom: 0;

  width: 700px;

  transform: rotate(-2deg);
}

/* =========================================================
   DRESS CODE
========================================================= */

.dress-section {
  position: relative;
  min-height: 1250px;
  padding: 70px 4vw 80px;
  background: #f7f4ee;
  overflow: hidden;
}

.dress-section h1 {
  margin-bottom: 20px;
}

.dress-text {
  position: absolute;
  top: 210px;
  left: 9%;
  width: min(1000px, 85vw);
  z-index: 5;
}

.dress-collage {
  position: relative;
  max-width: 1320px;
  height:auto;
  margin: 0 auto;
}

.dress-photo {
  position: absolute;
  object-fit: cover;
}

.dress-photo-1 {
  left: 0;
  top: 230px;
  width: 360px;
  height: 470px;
  transform: rotate(-8deg);
}

.dress-photo-2 {
  left: 380px;
  top: 320px;
  width: 350px;
}

.dress-photo-3 {
  left: 70px;
  top: 680px;
  width: 270px;
  height: 350px;
  transform: rotate(-4deg);
}

.dress-photo-4 {
  right: 0;
  top: 40px;
  width: 310px;
  height: 370px;
  transform: rotate(6deg);
}

.dress-photo-5 {
  right: 40px;
  top: 380px;
  width: 300px;
  height: 360px;
}

.dress-photo-6 {
  right: 210px;
  top: 570px;
  width: 260px;
  transform: rotate(-13deg);
}

.presentes-title {
  position: absolute;
  left: 50%;
  bottom: 35px;
  transform: translateX(-50%);
}

/* =========================================================
   PRESENTES / FINAL
========================================================= */
.contacts-section {
  position: relative;
  padding: 70px 4vw 220px;
  background: #f7f4ee;
  overflow: hidden;
}

.gifts-section {
  position: relative;
  min-height: 1650px;
  padding: 70px 4vw 220px;
  background: #f7f4ee;
  overflow: hidden;
}

.gift-text {
  position: absolute;
  top: 240px;
  left: 55%;
  width: min(700px, 90vw);
  transform: translateX(-50%) rotate(-1deg);
  z-index: 5;
}

.gifts-collage {
  position: relative;
  max-width: 1100px;
  height: 1180px;
  margin: 0 auto;
}

.gift-photo {
  position: absolute;
  object-fit: cover;
}

.g1 {
  left: 0;
  top: 120px;
  width: 230px;
  height: 300px;
  transform: rotate(-6deg);
}

.g2 {
  left: 180px;
  top: 330px;
  width: 190px;
  height: 210px;
}

.g3 {
  left: 340px;
  top: 430px;
  width: 280px;
  height: 190px;
  transform: rotate(8deg);
}

.g4 {
  right: 0;
  top: 330px;
  width: 450px;
  height: 310px;
}

.g5 {
  left: 10px;
  top: 640px;
  width: 330px;
  height: 230px;
  transform: rotate(-3deg);
}

.g6 {
  right: 150px;
  top: 650px;
  width: 430px;
  height: 285px;
}

.g7 {
  left: 220px;
  top: 840px;
  width: 430px;
  height: 250px;
  transform: rotate(-5deg);
  z-index: 3;
}

.g8 {
  right: 0;
  top: 820px;
  width: 330px;
  height: 220px;
  transform: rotate(6deg);
  z-index: 4;
}

.phrase-bye {
  position: absolute;
  left: 50%;
  bottom: 190px;
  width: min(600px, 100vw);
  transform: translateX(-50%) rotate(-2deg);
  z-index: 20;
}

.contacts {
  position: absolute;
  left: 50%;
  bottom: 40px;
  transform: translateX(-50%);
  text-align: center;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.2;
  z-index: 20;
}

.contacts p {
  margin: 0 0 4px;
}

.contacts a {
  display: block;
  color: #000;
  text-decoration: none;
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 980px) {
  .site-header {
    height: 70px;
    padding: 0 24px;
    justify-content: center;
  }

  .menu-toggle {
    display: none;
  }

  .nav {
    display: flex;
    gap: 18px;
  }

  .nav a {
    font-size: 12px;
    letter-spacing: 0.04em;
  }

  .hero {
    min-height: 100svh;
  }

  .hero-logo {
    width: 82vw;
    bottom: 12%;
  }

  .hero-film {
    width: 68vw;
  }

  .hero-date {
    top: 8%;
    right: 50%;
    transform: translateX(50%);
    width: 42vw;
  }

  .hero-btn {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }

  .intro {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .intro-left {
    height: 520px;
  }

  .photo-1 {
    width: 48vw;
  }

  .photo-2 {
    width: 52vw;
    left: 42%;
  }

  .day-layout {
    height: 1160px;
  }

  .ceremony-text {
    left: 50%;
    top: 40px;
    width: 82vw;
    transform: translateX(-50%) rotate(-2deg);
  }

  .day-date {
    top: 250px;
    right: auto;
    left: 50%;
    width: 58vw;
    transform: translateX(-50%);
  }

  .day-photo-1 {
    top: 340px;
    left: 18%;
    width: 72vw;
    height: 300px;
  }

  .day-photo-2 {
    top: 560px;
    left: 40%;
    width: 52vw;
    height: 240px;
  }

  .day-photo-3 {
    left: 4%;
    bottom: 125px;
    width: 42vw;
    height: 300px;
  }

  .day-photo-4 {
    left: 42%;
    bottom: 340px;
    width: 42vw;
    height: 190px;
  }

  .day-photo-5 {
    left: 22%;
    bottom: 20px;
    width: 66vw;
    height: 230px;
  }

  .party-text {
    left: 50%;
    bottom: 300px;
    width: 70vw;
    transform: translateX(-50%) rotate(-2deg);
  }

  .rsvp-wrapper {
    padding-bottom: 110px;
  }

  .rsvp-form {
    min-height: auto;
    padding: 40px 28px;
    grid-template-columns: 1fr;
  }

  .rsvp-note {
    right: 50%;
    bottom: 10px;
    width: 62vw;
    transform: translateX(50%) rotate(-2deg);
  }

  .dress-section {
    min-height: 1180px;
  }

  .dress-text {
    top: 155px;
    left: 50%;
    width: 88vw;
    transform: translateX(-50%);
  }

  .dress-collage {
    height: 950px;
  }

  .dress-photo-1 {
    left: 2%;
    top: 280px;
    width: 42vw;
    height: 360px;
  }

  .dress-photo-2 {
    left: 42%;
    top: 360px;
    width: 48vw;
    height: 210px;
  }

  .dress-photo-3 {
    left: 7%;
    top: 675px;
    width: 36vw;
    height: 300px;
  }

  .dress-photo-4 {
    right: 4%;
    top: 600px;
    width: 38vw;
    height: 310px;
  }

  .dress-photo-5 {
    right: 6%;
    top: 820px;
    width: 36vw;
    height: 270px;
  }

  .dress-photo-6 {
    right: 36%;
    top: 820px;
    width: 34vw;
    height: 210px;
  }

  .gifts-section {
    min-height: 1250px;
  }

  .gift-text {
    top: 155px;
    width: 82vw;
  }

  .gifts-collage {
    height: 920px;
  }

  .g1 {
    left: 2%;
    top: 210px;
    width: 34vw;
    height: 240px;
  }

  .g2 {
    left: 32%;
    top: 330px;
    width: 30vw;
    height: 190px;
  }

  .g3 {
    left: 45%;
    top: 455px;
    width: 42vw;
    height: 180px;
  }

  .g4 {
    right: 3%;
    top: 610px;
    width: 58vw;
    height: 250px;
  }

  .g5 {
    left: 4%;
    top: 610px;
    width: 43vw;
    height: 230px;
  }

  .g6 {
    right: 4%;
    top: 840px;
    width: 58vw;
    height: 230px;
  }

  .g7 {
    left: 5%;
    top: 910px;
    width: 50vw;
    height: 210px;
  }

  .g8 {
    right: 4%;
    top: 1030px;
    width: 42vw;
    height: 180px;
  }

  .phrase-bye {
    bottom: 115px;
  }
}

@media (max-width: 540px) {
  .site-header {
    height: 58px;
    padding: 0 12px;
  }
  
  .contact-section
  {
      margin-top:20%;
  }

  .nav {
    gap: 11px;
  }

  .nav a {
    font-size: 9px;
    letter-spacing: 0.03em;
  }

  .section {
    padding-left: 24px;
    padding-right: 24px;
  }

  .hero-logo {
    width: 88vw;
  }

  .hero-film {
    width: 74vw;
  }

  .hero-date {
    width: 52vw;
  }

  .photo-1 {
    width: 44vw;
  }

  .photo-2 {
    width: 48vw;
  }

  .day-layout {
    height: 1040px;
  }

  .day-photo-1 {
    height: 230px;
  }

  .day-photo-2 {
    top: 500px;
    height: 190px;
  }

  .day-photo-3 {
    height: 240px;
  }

  .day-photo-4 {
    height: 150px;
  }

  .day-photo-5 {
    height: 190px;
  }

  .dress-section {
    min-height: 1000px;
  }

  .dress-text {
    top: 135px;
  }

  .dress-photo-1 {
    top: 250px;
    height: 280px;
  }

  .dress-photo-2 {
    top: 330px;
    height: 160px;
  }

  .dress-photo-3 {
    top: 565px;
    height: 230px;
  }

  .dress-photo-4 {
    top: 520px;
    height: 240px;
  }

  .dress-photo-5 {
    top: 710px;
    height: 210px;
  }

  .dress-photo-6 {
    top: 730px;
    height: 160px;
  }

  .gifts-section {
    min-height: 1120px;
  }

  .gift-text {
    top: 135px;
  }

  .gifts-collage {
    height: 850px;
  }

  .phrase-bye {
    bottom: 105px;
  }

  .contacts {
    width: 90%;
    font-size: 11px;
  }
}

.success-popup {
  position: fixed;
  inset: 0;

  display: none;
  align-items: center;
  justify-content: center;

  background: rgba(0, 0, 0, 0.45);

  z-index: 999999;
}

.success-popup.active {
  display: flex;
}

.success-popup-box {
  background: #f7f4ee;

  width: min(420px, 90vw);

  padding: 40px 32px;

  text-align: center;

  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.success-popup-box h2 {
  margin-top: 0;

  font-family: "Cormorant Garamond", serif;
  font-size: 52px;
  font-style: italic;
}

.success-popup-box button {
  margin-top: 20px;

  padding: 12px 22px;

  border: none;

  background: #17120e;
  color: white;

  cursor: pointer;
}

.maps-section {
  background: #f7f4ee;

  padding: 120px 6vw;

  display: flex;
  flex-direction: column;
  align-items: center;
}

.maps-section h1 {
  margin-bottom: 70px;
}

.maps-grid {
  width: 100%;
  max-width: 1400px;

  display: grid;
  grid-template-columns: 1fr 1fr;

  gap: 50px;
}

.map-card {
  width: 100%;
}

.map-card h2 {
  font-family: "Inter", sans-serif;
  font-size: 28px;
  font-weight: 500;

  margin-bottom: 20px;

  text-align: center;
}

.map-card iframe {
  width: 100%;
  height: 520px;

  border: 0;

  box-shadow: 0 15px 40px rgba(0,0,0,.08);
}

@media (max-width: 900px) {

  .maps-grid {
    grid-template-columns: 1fr;
  }

  .map-card iframe {
    height: 420px;
  }

}

@media (max-width: 780px)
{
    .contacts-section {
  position: relative;
  z-index: 5;

  padding-top: 180px !important;
}

.final-line {
  position: relative;

  margin-top: 120px !important;

  z-index: 10;
}

.contacts {
  position: relative;

  margin-top: 60px;

  z-index: 10;
}

.gifts-section {
  padding-bottom: 220px !important;
}

}

@media (max-width: 768px) {
  .intro {
    grid-template-columns: 1fr;
  }

  .intro-left {
    grid-row: 2;
  }

  .intro-right {
    grid-row: 1;
    margin-bottom: 2rem;
  }
}