@font-face {
  font-family: "Leotaro";
  src: url("assets/fonts/leotaro.otf") format("opentype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Tavrida";
  src: url("assets/fonts/Tavrida-Regular.otf") format("opentype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Tavrida";
  src: url("assets/fonts/Tavrida-Medium.otf") format("opentype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Xplor";
  src: url("assets/fonts/XPLOR_Bold-Regular.otf") format("opentype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  --bg: #f6efeb;
  --bg-2: #f1e4dd;
  --text: #2f2022;
  --muted: #77595f;
  --accent: #8d3f50;
  --accent-dark: #6e2632;
  --white: #ffffff;
  --shadow-soft: 0 14px 36px rgba(75, 32, 42, 0.08);
  --shadow-lg: 0 28px 80px rgba(75, 32, 42, 0.14);
  --container: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Tavrida", Arial, sans-serif;
  background:
    radial-gradient(circle at 10% 15%, rgba(183, 125, 134, 0.16), transparent 22%),
    radial-gradient(circle at 90% 25%, rgba(127, 49, 63, 0.10), transparent 18%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  border: 0;
  background: none;
  cursor: pointer;
}

.container {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
}

.section {
  position: relative;
  padding: 120px 0;
}

.section--tight {
  padding-top: 84px;
}

.section-center {
  max-width: 980px;
  margin: 0 auto 58px;
  text-align: center;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 12px;
}

.section-title {
  margin: 0;
  font-family: "Leotaro", serif;
  font-weight: 400;
  font-size: clamp(42px, 5vw, 78px);
  line-height: 0.92;
  letter-spacing: 0.01em;
}

.grain {
  position: fixed;
  inset: 0;
  background-image: url("assets/images/texture.png");
  background-repeat: repeat;
  background-size: 260px;
  opacity: 0.06;
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 999;
}

.bg-blur {
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: -1;
}

.bg-blur--1 {
  top: 8%;
  left: -100px;
  width: 340px;
  height: 340px;
  background: rgba(183, 125, 134, 0.20);
}

.bg-blur--2 {
  right: -120px;
  bottom: 10%;
  width: 400px;
  height: 400px;
  background: rgba(127, 49, 63, 0.12);
}

.header {
  position: fixed;
  top: 18px;
  left: 0;
  width: 100%;
  z-index: 120;
  padding: 0;
}

.header .container {
  width: min(100% - 32px, 1100px);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 24px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(69, 33, 42, 0.08);
  box-shadow: 0 14px 40px rgba(75, 32, 42, 0.10);
  transition: transform .3s ease, box-shadow .3s ease;
}

.logo {
  font-family: "Leotaro", serif;
  font-size: 32px;
  line-height: 1;
  flex-shrink: 0;
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav a,
.mobile-menu a {
  position: relative;
  color: rgba(47, 32, 34, 0.78);
  font-size: 19px;
  font-family: "Leotaro", serif;
  line-height: 1;
  letter-spacing: 0.01em;
}

.nav a::after,
.mobile-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width .28s ease;
}

.nav a:hover::after,
.mobile-menu a:hover::after {
  width: 100%;
}

.burger {
  display: none;
  width: 44px;
  height: 44px;
  position: relative;
}

.burger span {
  position: absolute;
  left: 10px;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: .3s ease;
}

.burger span:first-child { top: 16px; }
.burger span:last-child { top: 24px; }

.mobile-menu {
  position: fixed;
  top: 82px;
  left: 16px;
  right: 16px;
  display: none;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  border: 1px solid rgba(69, 33, 42, 0.06);
  background: rgba(255,255,255,0.78);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  z-index: 115;
}

.mobile-menu.active {
  display: flex;
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 58px;
  padding: 0 30px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: var(--white);
  box-shadow: 0 18px 38px rgba(127, 49, 63, 0.22);
  transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 44px rgba(127, 49, 63, 0.28);
  filter: brightness(1.03);
}

.btn--full {
  width: 100%;
}

.btn--small {
  min-height: 50px;
  padding: 0 24px;
  margin-top: 18px;
}

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 160px 0 90px;
  overflow: visible;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 25%, rgba(183, 125, 134, 0.14), transparent 26%),
    radial-gradient(circle at 78% 30%, rgba(127, 49, 63, 0.10), transparent 22%),
    linear-gradient(180deg, rgba(255,255,255,0.18), rgba(255,255,255,0));
  pointer-events: none;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: 64px;
  align-items: center;
}

.hero__content {
  position: relative;
  z-index: 2;
}

.hero__title {
  margin: 0 0 24px;
  font-family: "Leotaro", serif;
  font-size: clamp(64px, 8vw, 138px);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: 0.01em;
  max-width: 780px;
}

.hero__title span {
  color: var(--accent);
}

.hero__subtitle {
  max-width: 530px;
  margin: 0 0 30px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.hero__visual {
  position: relative;
  z-index: 1;
  overflow: visible;
}

.hero__image-wrap {
  position: relative;
  width: 100%;
  max-width: 520px;
  height: 640px;
  margin-left: auto;
  overflow: hidden;
  border-radius: 44px;
  box-shadow: 0 28px 90px rgba(75, 32, 42, 0.18);
  transform: rotate(-2deg);
}

.hero__image-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.10), rgba(0,0,0,0.10)),
    linear-gradient(120deg, rgba(255,255,255,0.16), transparent 36%);
  pointer-events: none;
}

.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transform: none;
}

.hero__date {
  position: absolute;
  left: 24px;
  bottom: 24px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  padding: 16px 22px 14px;
  border-radius: 24px;
  background: rgba(120, 103, 94, 0.26);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 18px 42px rgba(75, 32, 42, 0.14);
}

.hero__date span {
  font-family: "Xplor", serif;
  font-size: 30px;
  line-height: 1;
  color: #ffffff;
  letter-spacing: 0.12em;
  text-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
}

.float-card {
  position: absolute;
  z-index: 10;
  padding: 14px 22px;
  border-radius: 999px;
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(69, 33, 42, 0.06);
  box-shadow: 0 18px 42px rgba(75, 32, 42, 0.10);
  color: var(--accent);
  letter-spacing: 0.16em;
  font-size: 11px;
  text-transform: uppercase;
  white-space: nowrap;
}

.float-card--left {
  top: 12%;
  left: -46px;
}

.scroll-indicator {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  width: 38px;
  height: 62px;
  border-radius: 999px;
  border: 1px solid rgba(69, 33, 42, 0.16);
  display: flex;
  justify-content: center;
  padding-top: 10px;
}

.scroll-indicator span {
  width: 6px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent);
  animation: scrollDot 1.8s infinite;
}

@keyframes scrollDot {
  0% { transform: translateY(0); opacity: .2; }
  50% { transform: translateY(16px); opacity: 1; }
  100% { transform: translateY(26px); opacity: 0; }
}

.intro {
  position: relative;
  overflow: visible;
}

.intro__inner {
  display: grid;
  grid-template-columns: 260px minmax(320px, 620px) 260px;
  align-items: center;
  justify-content: center;
  gap: 40px;
  min-height: 620px;
}

.intro__side {
  display: flex;
  align-items: center;
  justify-content: center;
}

.intro__center {
  text-align: center;
  max-width: 620px;
  margin: 0 auto;
}

.intro__text {
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.9;
}

.intro__photo {
  width: 260px;
  object-fit: cover;
  box-shadow: 0 24px 60px rgba(75, 32, 42, 0.15);
  will-change: transform;
}

.intro__photo--left {
  height: 360px;
  border-radius: 180px 180px 30px 30px;
  transform: rotate(-8deg) scale(0.94);
}

.intro__photo--right {
  height: 420px;
  border-radius: 30px 30px 180px 180px;
  transform: rotate(8deg) scale(0.94);
}

.map-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 32px;
  padding: 16px 28px;
  border-radius: 999px;
  background: linear-gradient(135deg, #8d3f50, #6e2632);
  color: #fff;
  font-family: "Leotaro", serif;
  font-size: 18px;
  letter-spacing: 0.02em;
  box-shadow: 0 14px 36px rgba(75, 32, 42, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.map-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 44px rgba(75, 32, 42, 0.25);
}

.date__grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 42px;
  align-items: center;
}

.date__lead {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.calendar {
  padding: 32px;
  background: rgba(255,255,255,0.54);
  border: 1px solid rgba(69, 33, 42, 0.06);
  border-radius: 34px;
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-lg);
}

.calendar__head {
  margin-bottom: 24px;
  font-family: "Leotaro", serif;
  font-size: 42px;
  line-height: .95;
}

.calendar__weekdays,
.calendar__days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
}

.calendar__weekdays {
  margin-bottom: 14px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

.calendar__days span {
  display: grid;
  place-items: center;
  height: 54px;
  border-radius: 16px;
  background: rgba(127, 49, 63, 0.04);
}

.calendar__days .active {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: var(--white);
  box-shadow: 0 12px 28px rgba(127, 49, 63, 0.22);
}

.countdown__grid{
display:flex;
justify-content:center;
gap:40px;
margin-top:40px;
flex-wrap:wrap;
}

.countdown__item{
text-align:center;
padding:24px 32px;
border-radius:24px;
background:rgba(255,255,255,0.6);
backdrop-filter:blur(12px);
box-shadow:0 18px 40px rgba(75,32,42,0.12);
}

.countdown__item span{
display:block;
font-family:"Leotaro";
font-size:64px;
color:#8d3f50;
}

.countdown__item p{
margin-top:8px;
color:#77595f;
font-size:14px;
letter-spacing:0.2em;
text-transform:uppercase;
}

.timeline__list {
  display: grid;
  gap: 26px;
  max-width: 980px;
  margin: 0 auto;
}

.timeline-card {
  display: grid;
  grid-template-columns: 120px 20px 1fr;
  gap: 24px;
  align-items: start;
  padding: 30px;
  border-radius: 34px;
  background: rgba(255,255,255,0.48);
  border: 1px solid rgba(69, 33, 42, 0.06);
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 44px rgba(75, 32, 42, 0.08);
  transition: transform .35s ease, box-shadow .35s ease;
}

.timeline-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 56px rgba(75, 32, 42, 0.12);
}

.timeline-card__time {
  font-family: "Leotaro", serif;
  font-size: 48px;
  line-height: 1;
  color: var(--accent);
}

.timeline-card__dot {
  position: relative;
  width: 2px;
  min-height: 88px;
  background: rgba(127, 49, 63, 0.18);
  justify-self: center;
}

.timeline-card__dot::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  transform: translate(-50%, 0);
  box-shadow: 0 0 0 7px rgba(127, 49, 63, 0.08);
}

.timeline-card__body h3 {
  margin: 0 0 12px;
  font-family: "Leotaro", serif;
  font-size: 36px;
  font-weight: 400;
  line-height: .95;
}

.timeline-card__body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

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

.palette__item {
  width: 122px;
  height: 122px;
  border-radius: 50%;
  border: 7px solid rgba(255,255,255,0.64);
  box-shadow: var(--shadow-lg);
  position: relative;
  will-change: transform;
}

.palette__item::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,0.22), rgba(255,255,255,0.02));
}

.color-1 { background: #815560; }
.color-2 { background: #e5b9b4; }
.color-3 { background: #64652a; }
.color-4 { background: #a5ad70; }
.color-5 { background: #eee4d7; }
.color-6 { background: #9c7961; }

.details__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.detail-card {
  padding: 32px;
  border-radius: 30px;
  background: rgba(255,255,255,0.50);
  border: 1px solid rgba(69, 33, 42, 0.06);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(10px);
}

.detail-card h3 {
  margin: 0 0 16px;
  font-family: "Leotaro", serif;
  font-weight: 400;
  font-size: 36px;
  line-height: .95;
}

.detail-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.82;
}

.detail-card__button {
  margin-top: 24px;
}

.rsvp-form {
  max-width: 900px;
  margin: 0 auto;
  padding: 42px;
  border-radius: 36px;
  background: rgba(255,255,255,0.60);
  border: 1px solid rgba(69, 33, 42, 0.06);
  backdrop-filter: blur(16px);
  box-shadow: 0 26px 80px rgba(75, 32, 42, 0.14);
}

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

.form-group label {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 14px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 18px 20px;
  border-radius: 18px;
  border: 1px solid rgba(69, 33, 42, 0.10);
  background: rgba(255,255,255,0.90);
  color: var(--text);
  outline: none;
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease, background .25s ease;
}

.form-group input:hover,
.form-group textarea:hover,
.form-group select:hover {
  background: rgba(255,255,255,0.98);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: rgba(127,49,63,.38);
  box-shadow: 0 0 0 4px rgba(127,49,63,.08);
  transform: translateY(-1px);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

.form-status {
  margin: 16px 0 0;
  min-height: 24px;
  color: var(--accent);
}

.footer {
  padding: 30px 0 42px;
}

.footer__inner {
  padding-top: 24px;
  border-top: 1px solid rgba(69, 33, 42, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer__names {
  font-family: "Leotaro", serif;
  font-size: 32px;
}

.footer__date {
  color: var(--muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.reveal-up,
.reveal-left,
.reveal-right,
.reveal-scale,
.js-float-block,
.js-pop-item {
  will-change: transform, opacity;
}

@media (max-width: 1100px) {
  .hero__grid,
  .date__grid,
  .details__grid {
    grid-template-columns: 1fr;
  }

  .hero__visual {
    max-width: 760px;
    margin: 0 auto;
  }

  .intro__inner {
    grid-template-columns: 180px minmax(320px, 1fr) 180px;
    gap: 24px;
    min-height: 560px;
  }

  .intro__photo {
    width: 180px;
  }

  .intro__photo--left {
    height: 280px;
  }

  .intro__photo--right {
    height: 330px;
  }
}

@media (max-width: 900px) {
  .header {
    top: 12px;
  }

  .header__inner {
    padding: 14px 18px;
    border-radius: 22px;
  }

  .nav {
    display: none;
  }

  .burger {
    display: block;
  }

  .intro__inner {
    grid-template-columns: 1fr;
    gap: 28px;
    min-height: auto;
  }

  .intro__side {
    order: 2;
  }

  .intro__center {
    order: 1;
  }

  .intro__photo {
    width: 240px;
    height: 320px;
    transform: none;
    border-radius: 26px;
  }

  .details__grid {
    grid-template-columns: 1fr;
  }

  .timeline-card {
    grid-template-columns: 100px 18px 1fr;
    gap: 18px;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 88px 0;
  }

  .hero {
    padding-top: 136px;
  }

  .hero__subtitle,
  .date__lead {
    font-size: 16px;
  }

  .float-card--left {
    left: -16px;
  }

  .hero__date {
    left: 16px;
    bottom: 16px;
    padding: 12px 14px 10px;
    border-radius: 18px;
  }

  .hero__date span {
    font-size: 18px;
  }

  .calendar {
    padding: 20px;
  }

  .calendar__head {
    font-size: 32px;
  }

  .calendar__days span {
    height: 42px;
    border-radius: 12px;
    font-size: 14px;
  }

  .timeline-card {
    grid-template-columns: 1fr;
  }

  .timeline-card__dot {
    display: none;
  }

  .timeline-card__body h3 {
    font-size: 28px;
  }

  .rsvp-form {
    padding: 22px;
  }

  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer__names {
    font-size: 28px;
  }
}

.petals {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 40;
}

.petal {
  position: absolute;
  top: -60px;
  width: 18px;
  height: 26px;
  opacity: 0.75;
  border-radius: 70% 30% 70% 30%;
  background: linear-gradient(180deg, #f4d7db 0%, #d7a2ab 100%);
  box-shadow: 0 4px 10px rgba(141, 63, 80, 0.12);
  will-change: transform;
}

.petal--soft {
  background: linear-gradient(180deg, #f6e7e3 0%, #e7c8c8 100%);
}

.petal--dark {
  background: linear-gradient(180deg, #d9a3ad 0%, #b97985 100%);
}

.reveal-title {
  overflow: hidden;
}

.reveal-title .word {
  display: inline-block;
}

.section {
  position: relative;
}

.section::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 120px;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(246, 239, 235, 0) 0%,
    rgba(246, 239, 235, 0.55) 45%,
    rgba(241, 228, 221, 0.9) 100%
  );
  z-index: 1;
}

.hero::after,
.footer::after {
  display: none;
}

.intro__photo,
.hero__image {
  transition: transform 0.5s ease;
  transform-origin: center center;
}

.hero__image-wrap,
.intro__side {
  perspective: 1000px;
}