@font-face {
  font-family: "Adamathuz";
  src: url("./fonts/Adamathuz Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Aida";
  src:
    url("./fonts/SHK_Aida_It.woff2") format("woff2"),
    url("./fonts/SHK_Aida_It.woff") format("woff"),
    url("./fonts/SHK_Aida_It.ttf") format("truetype"),
    url("./fonts/SHK_Aida_It.otf") format("opentype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

body,
.couple-names,
.date,
.intro-text,
.blue-copy,
.location-subtitle,
.location-address,
.schedule-item p,
.rsvp p.lead,
.form-group label,
.form-control,
.radio-card,
.submit-btn,
.submit-note,
.details-copy {
  font-family: "Aida", Georgia, "Times New Roman", serif;
}

:root {
  --bg: #ececed;
  --blue: #3f4e7d;
  --blue-dark: #44598c;
  --text: #f8f5ef;
  --muted: #7d7f92;
  --white: #ffffff;
  --shadow: 0 14px 36px rgba(34, 42, 70, 0.12);
}

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

html {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  position: relative;
  overflow-x: hidden;
  overflow-x: clip;
  touch-action: pan-y;
  font-family: "Aida", Georgia, "Times New Roman", serif;
  background: var(--bg);
  color: rgb(43, 43, 50);
}

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

a {
  text-decoration: none;
}

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

.page {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  position: relative;
  min-height: 100vh;
  box-shadow: var(--shadow);
  overflow-x: hidden;
  overflow-x: clip;
}

.top-controls {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 14px 0;
  pointer-events: none;
}

.control-group {
  display: flex;
  gap: 10px;
  pointer-events: auto;
}

.icon-btn,
.lang-btn {
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(8px);
  box-shadow: rgba(0, 0, 0, 0.08) 0 4px 18px;
  cursor: pointer;
  transition:
    transform 0.2s,
    opacity 0.2s;
}

.icon-btn:hover,
.lang-btn:hover {
  transform: translateY(-1px);
}

.icon-btn {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-dark);
}

.lang-switcher {
  position: relative;
}

.lang-btn {
  height: 42px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blue-dark);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.lang-menu {
  position: absolute;
  top: 48px;
  right: 0;
  background: rgb(255, 255, 255);
  border-radius: 16px;
  box-shadow: rgba(0, 0, 0, 0.12) 0 10px 28px;
  overflow: hidden;
  min-width: 132px;
  display: none;
}

.lang-menu.open {
  display: block;
}

.lang-menu button {
  width: 100%;
  border: none;
  background: rgb(255, 255, 255);
  padding: 12px 14px;
  text-align: left;
  cursor: pointer;
  font-size: 14px;
  color: rgb(51, 51, 68);
}

.lang-menu button:hover {
  background: rgb(244, 246, 251);
}

.section {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

.hero {
  text-align: center;
  overflow: hidden;
}

.couple-names,
.date,
.intro-text,
.blue-copy,
.location-subtitle,
.location-address,
.schedule-item p,
.rsvp p.lead,
.form-group label,
.form-control,
.radio-card,
.submit-btn,
.submit-note,
.details-copy {
  font-family: "Aida", Georgia, "Times New Roman", serif;
}

.couple-names {
  color: rgb(127, 129, 146);
  font-size: 20px;
  letter-spacing: 0.04em;
  margin-bottom: 26px;
  text-transform: uppercase;
  position: relative;
  z-index: 3;
}

.hero-top-block {
  position: relative;
  min-height: 540px;
  top: 0;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.script-bg {
  position: absolute;
  left: 40%;
  max-width: calc(100% - 24px);
  width: max-content;
  transform: translateX(-50%);
  font-style: italic;
  color: rgba(133, 136, 154, 0.24);
  pointer-events: none;
  white-space: nowrap;
  font-weight: 400;
  font-family: "Aida", Georgia, "Times New Roman", serif;
  line-height: 0.86;
  z-index: 1;
  opacity: 0;
  text-align: center;
  animation: scriptFade 1.4s ease forwards;
}

.script-bg.top {
  top: 10px;
  font-size: clamp(42px, 11vw, 68px);
  letter-spacing: -0.02em;
  animation-delay: 0.2s;
}

.script-bg.bottom {
  top: 338px;
  left: 60%;
  right: auto;
  font-size: clamp(40px, 10vw, 62px);
  letter-spacing: -0.02em;
  z-index: 3;
  animation-delay: 0.9s;
}

@keyframes scriptFade {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(24px) scale(0.96);
    filter: blur(6px);
  }

  100% {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
    filter: blur(0);
  }
}

.hero-photo-wrap {
  width: min(76vw, 330px);
  margin: 0 auto;
  position: relative;
  z-index: 2;
  top: 92px;
}

.hero-photo {
  width: 100%;
  aspect-ratio: 1 / 1.18;
  object-fit: cover;
  filter: grayscale(100%);
}

.date {
  margin-top: 34px;
  color: rgb(122, 123, 137);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  position: relative;
  z-index: 3;
}

.intro-text {
  margin: 42px auto 0;
  max-width: 300px;
  text-align: center;
  color: rgb(128, 130, 147);
  font-size: 18px;
  line-height: 1.22;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  position: relative;
  z-index: 3;
}

.blue-arch {
  background: var(--blue);
  color: var(--text);
  border-top-left-radius: 350px;
  border-top-right-radius: 350px;
  padding: 150px 24px 38px;
  margin-top: 100px;
  position: relative;
  overflow-x: clip;
}

.flower {
  position: absolute;
  width: 200px;
  top: -88px;
  right: 0;
  z-index: 5;
  filter: drop-shadow(rgba(0, 0, 0, 0.08) 0 8px 16px);
}

.flower.left {
  width: 120px;
  left: 0;
  top: 1700px;
  bottom: 320px;
  opacity: 0.95;
}

.title-script {
  position: relative;
  text-align: center;
  margin-bottom: 24px;
}

.title-script .bg-word {
  position: absolute;
  inset: 0;
  font-size: 66px;
  font-style: italic;
  color: rgba(255, 255, 255, 0.12);
  line-height: 0.8;
  pointer-events: none;
  font-family: "Aida", "Times New Roman", serif;
}

.title-script h2,
.section-heading h3,
.rsvp h3,
.schedule-item h4 {
  font-family: "Adamathuz", Georgia, serif;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.title-script h2 {
  position: relative;
  z-index: 2;
  font-size: 28px;
  line-height: 1.12;
  text-transform: uppercase;
}

.title-script h2 .dropcap {
  display: inline-block;
  font-style: italic;
  font-size: 88px;
  line-height: 0.8;
  margin-right: 2px;
  text-transform: none;
  font-family: "Aida", "Times New Roman", serif;
  vertical-align: middle;
}

.blue-copy {
  font-size: 16px;
  line-height: 1.5;
  max-width: 318px;
  margin: 0 auto;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.calendar {
  margin-top: 54px;
  text-align: center;
}

.month {
  font-family: "Adamathuz", Georgia, serif;
  font-size: 30px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 28px;
}

.weekdays,
.days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  place-items: center;
  max-width: 330px;
  margin: 0 auto;
}

.weekdays div {
  font-family: "Aida", Georgia, serif;
  font-size: 15px;
  text-transform: uppercase;
  opacity: 0.95;
}

.days {
  margin-top: 16px;
  font-size: 19px;
}

.heart-day {
  position: relative;
  width: 70px;
  height: 70px;
}

.heart-day img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 1;
}

.heart-day span {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  font-size: 16px;
  font-weight: 700;
  color: white;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.info-section {
  background: var(--blue);
  color: var(--text);
  margin: 0;
  padding: 44px 24px 46px;
  text-align: center;
  position: relative;
  overflow-x: clip;
}

.section-heading {
  position: relative;
  margin-bottom: 24px;
}

.section-heading .ghost {
  position: absolute;
  inset: 0;
  font-size: 60px;
  line-height: 0.9;
  font-style: italic;
  color: rgba(255, 255, 255, 0.1);
  pointer-events: none;
  font-family: "Aida", "Times New Roman", serif;
}

.section-heading h3 {
  position: relative;
  z-index: 2;
  font-size: 34px;
  line-height: 1;
  text-transform: uppercase;
}

.section-heading h3 .big-script {
  display: inline-block;
  font-style: italic;
  font-size: 86px;
  line-height: 0.7;
  text-transform: none;
  vertical-align: middle;
  margin-right: 2px;
  font-family: "Aida", "Times New Roman", serif;
}

.venue-card + .venue-card {
  margin-top: 44px;
  padding-top: 38px;
}

.location-subtitle,
.location-address {
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.location-subtitle {
  font-size: 16px;
  line-height: 1.45;
  margin-bottom: 10px;
}

.location-address {
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 22px;
  opacity: 0.92;
}

.venue-image {
  width: 190px;
  height: 250px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 20px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.08);
}

.venue-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.map-btn {
  display: inline-block;
  min-width: 220px;
  padding: 16px 20px;
  background: rgb(244, 241, 235);
  color: rgb(124, 122, 126);
  font-family: "Aida", Georgia, serif;
  font-size: 14px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: rgba(0, 0, 0, 0.08) 0 8px 20px;
}

.timeline {
  margin-top: 80px;
}

.schedule-item + .schedule-item {
  margin-top: 36px;
}

.schedule-item h4 {
  font-size: 18px;
  margin-bottom: 8px;
  text-transform: uppercase;
  line-height: 1.2;
}

.schedule-item .time {
  font-family: "Adamathuz", Georgia, serif;
  font-size: 44px;
  line-height: 1;
  margin-bottom: 8px;
}

.schedule-item p {
  font-size: 13px;
  line-height: 1.5;
  text-transform: uppercase;
  max-width: 260px;
  margin: 0 auto;
}

.details-block {
  margin-top: 84px;
}

.details-copy {
  max-width: 300px;
  margin: 0 auto 18px;
  font-size: 14px;
  line-height: 1.65;
  text-transform: uppercase;
}

.rsvp {
  background: rgb(247, 246, 243);
  color: rgb(56, 64, 90);
  overflow-x: clip;
}

.couple-before-form {
  margin: 0;
  overflow: hidden;
}

.couple-before-form img {
  width: 100%;
}

.rsvp-card {
  background: rgb(255, 255, 255);
  padding: 50px 28px 42px;
}

.rsvp h3 {
  text-align: center;
  font-size: 32px;
  color: var(--blue-dark);
  margin-bottom: 28px;
  text-transform: uppercase;
}

#wedding-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

#wedding-form > label {
  font-family: "Aida", Georgia, "Times New Roman", serif;
  font-size: 18px;
  color: #6b7391;
  line-height: 1.45;
  margin-top: 8px;
}

.guest-input {
  width: 100%;
  border: none;
  border-bottom: 1.5px solid #cdd3e2;
  background: transparent;
  padding: 10px 2px 12px;
  outline: none;
  font-family: "Aida", Georgia, "Times New Roman", serif;
  font-size: 18px;
  color: #38405a;
}

.guest-input::placeholder {
  color: #a0a6ba;
}

.radio-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 6px;
}

.radio {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-family: "Aida", Georgia, "Times New Roman", serif;
  font-size: 18px;
  color: #38405a;
  line-height: 1.4;
}

.radio input {
  display: none;
}

.radio span {
  width: 22px;
  height: 22px;
  border: 1.5px solid #bfc7da;
  border-radius: 50%;
  display: inline-block;
  position: relative;
  flex-shrink: 0;
}

.radio span::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--blue-dark);
  transform: scale(0);
  transition: transform 0.2s ease;
}

.radio input:checked + span::after {
  transform: scale(1);
}

.radio em {
  font-style: normal;
}

.rsvp-btn {
  width: 100%;
  border: none;
  border-radius: 999px;
  padding: 16px 18px;
  background: linear-gradient(180deg, var(--blue), var(--blue-dark));
  color: #fff;
  font-family: "Adamathuz", Georgia, serif;
  font-size: 18px;
  letter-spacing: 0.04em;
  cursor: pointer;
  margin-top: 18px;
}

@media (min-width: 768px) {
  .rsvp-card {
    padding: 56px 60px 46px;
  }

  #wedding-form > label,
  .guest-input,
  .radio {
    font-size: 20px;
  }
}

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

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  color: rgb(93, 101, 126);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.form-control {
  width: 100%;
  border: 1px solid rgb(220, 225, 238);
  border-radius: 16px;
  padding: 14px;
  outline: none;
  font-size: 15px;
  color: rgb(44, 51, 72);
  background: rgb(251, 252, 255);
}

textarea.form-control {
  min-height: 110px;
  resize: vertical;
}

.radio-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.radio-card {
  border: 1px solid rgb(220, 225, 238);
  border-radius: 18px;
  padding: 14px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgb(251, 252, 255);
  color: rgb(70, 80, 109);
}

.submit-btn {
  width: 100%;
  border: none;
  border-radius: 999px;
  padding: 15px 18px;
  background: linear-gradient(180deg, var(--blue), var(--blue-dark));
  color: rgb(255, 255, 255);
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  margin-top: 8px;
}

.submit-note {
  text-align: center;
  color: rgb(126, 132, 151);
  font-size: 12px;
  margin-top: 12px;
  line-height: 1.5;
}

@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(28px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatSoft {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

@keyframes sway {
  0%,
  100% {
    transform: rotate(0deg);
  }

  50% {
    transform: rotate(2deg);
  }
}

@media (min-width: 768px) {
  body {
    padding: 36px 20px;
    background: linear-gradient(rgb(234, 235, 240) 0%, rgb(246, 247, 251) 100%);
  }

  .page {
    max-width: 520px;
  }

  .top-controls {
    padding: 18px 18px 0;
  }

  .hero {
    padding-top: 40px;
  }

  .couple-names {
    font-size: 16px;
    margin-bottom: 28px;
  }

  .hero-top-block {
    min-height: 500px;
  }

  .script-bg.top {
    top: 18px;
    font-size: 70px;
  }

  .script-bg.bottom {
    top: 400px;
    font-size: 70px;
  }

  .hero-photo-wrap {
    width: 240px;
    top: 100px;
  }

  .date {
    font-size: 18px;
    margin-top: 44px;
  }

  .intro-text {
    max-width: 260px;
    font-size: 15px;
    margin-top: 48px;
  }

  .blue-arch {
    margin-top: 84px;
  }
}

@media (max-width: 767px) {
  body {
    padding: 0;
  }

  .page {
    box-shadow: none;
  }

  .top-controls {
    padding: 12px 12px 0;
  }

  .hero-top-block {
    min-height: 500px;
  }

  .hero-photo-wrap {
    width: min(72vw, 290px);
    top: 86px;
  }

  .script-bg {
    max-width: calc(100% - 32px);
  }

  .script-bg.top {
    top: 8px;
    font-size: clamp(38px, 10.5vw, 58px);
  }

  .script-bg.bottom {
    top: 320px;
    font-size: clamp(36px, 9.5vw, 54px);
  }

  .intro-text {
    max-width: 260px;
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .hero-top-block {
    /* min-height: 470px; */
  }

  .hero-photo-wrap {
    width: min(70vw, 250px);
    top: 100px;
  }

  .script-bg.top {
    top: 30px;
    font-size: clamp(34px, 49.6vw, 50px);
  }

  .script-bg.bottom {
    top: 430px;
    font-size: clamp(32px, 39.8vw, 46px);
  }

  .date {
    font-size: 17px;
    letter-spacing: 0.14em;
  }

  .intro-text {
    max-width: 220px;
    font-size: 13px;
    margin-top: 34px;
  }
}

@media (max-width: 380px) {
  .blue-arch {
    padding-left: 18px;
    padding-right: 18px;
  }

  .title-script h2,
  .section-heading h3,
  .rsvp h3 {
    font-size: 24px;
  }

  .title-script h2 .dropcap,
  .section-heading h3 .big-script {
    font-size: 72px;
  }

  .weekdays,
  .days {
    gap: 4px;
  }

  .hero-top-block {
    min-height: 440px;
  }

  .hero-photo-wrap {
    width: min(68vw, 215px);
    top: 76px;
  }

  .script-bg.top {
    font-size: 30px;
    top: 10px;
  }

  .script-bg.bottom {
    font-size: 30px;
    top: 270px;
  }

  .intro-text {
    max-width: 210px;
    font-size: 12px;
  }

  .details-copy {
    font-size: 13px;
  }
}
