/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Montserrat', sans-serif;
  background: #f0ebe3;
  color: #3c3c3c;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }

/* ============================================================
   DESKTOP / TABLET NOTICE
   ============================================================ */
.desktop-notice { display: none; }

/* ============================================================
   MOBILE SITE
   ============================================================ */
.site {
  position: relative;
  max-width: 430px;
  margin: 0 auto;
  overflow: hidden;
  /* paper texture as real background */
  background-image: url('../assets/images/bg.png');
  background-size: 430px auto;
  background-repeat: repeat-y;
  background-color: #f0ebe3;
}

/* ============================================================
   SHARED
   ============================================================ */
.section-title {
  font-family: 'Bodoni Moda', Georgia, serif;
  font-size: 40px;
  font-weight: 400;
  color: #3c3c3c;
  letter-spacing: -0.8px;
  text-align: center;
  line-height: 1.1;
  margin-bottom: 20px;
}

.amp { font-family: 'Alex Brush', cursive; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  line-height: 0;
}

.hero__full {
  width: 100%;
  height: auto;
  display: block;
}

/* Names overlay: 40px below arch bottom (y=536) in a 778px SVG = 74.04% from top */
.hero__names {
  position: absolute;
  top: 74.04%;
  left: 0;
  right: 0;
  padding: 0 20px;
  text-align: center;
  z-index: 2;
}

.hero__name {
  font-family: 'Bodoni Moda', Georgia, serif;
  font-size: 60px;
  font-weight: 400;
  color: #3c3c3c;
  letter-spacing: -1.2px;
  line-height: 1;
  display: block;
}

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

.hero__amp {
  font-family: 'Alex Brush', cursive;
  font-size: 100px;
  color: #b1b1b1;
  letter-spacing: -2px;
  line-height: 1;
  flex-shrink: 0;
}

/* ============================================================
   INVITATION
   ============================================================ */
.invitation {
  padding: 20px 0 28px;
  text-align: center;
}
.invitation__frame-top,
.invitation__frame-bot { width: 100%; line-height: 0; }
.invitation__frame-top img,
.invitation__frame-bot img { width: 100%; opacity: 0.7; }

.invitation__text {
  font-size: 18px;
  font-weight: 400;
  color: #000;
  line-height: 1.5;
  padding: 0 40px;
  margin-top: 6px;
}

.invitation__script {
  font-family: 'Great Vibes', cursive;
  font-size: 56px;
  color: #b1b1b1;
  letter-spacing: 2.8px;
  line-height: 1.1;
  margin: 4px 0 8px;
}

/* ============================================================
   DATE  —  SVG grouped asset (18 июля 26)
   ============================================================ */
.date-section {
  display: flex;
  justify-content: center;
  padding: 20px 20px 28px;
}

.date-section__wrap {
  position: relative;
  width: 179px;
}

.date-section__svg {
  width: 179px;
  height: auto;
  display: block;
}

.date-section__month {
  position: absolute;
  top: 45.4%;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Great Vibes', cursive;
  font-size: 42px;
  color: #3c3c3c;
  white-space: nowrap;
  pointer-events: none;
}

/* ============================================================
   HAPPY
   ============================================================ */
.happy-section {
  text-align: center;
  padding: 28px 20px 36px;
}

.happy-section__title {
  font-family: 'Bodoni Moda', Georgia, serif;
  font-size: 32px;
  font-weight: 400;
  color: #b1b1b1;
  letter-spacing: -0.64px;
  margin-bottom: 14px;
}

.happy-section__text {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
  color: #3c3c3c;
}
.happy-section__text--gray { color: #b1b1b1; }

.happy-section__script {
  font-family: 'Great Vibes', cursive;
  font-size: 56px;
  color: #3c3c3c;
  letter-spacing: 2.8px;
  margin-top: 6px;
}

/* ============================================================
   SECOND PHOTO  —  SVG with embedded photo + frames
   ============================================================ */
.second-photo {
  overflow: hidden;
  width: 100%;
}

.second-photo__svg {
  display: block;
  width: 120%;
  max-width: none;
  height: auto;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}

/* ============================================================
   DIVIDER
   ============================================================ */
.divider { width: 100%; line-height: 0; }
.divider img { width: 100%; }

/* ============================================================
   COUNTDOWN
   ============================================================ */
.countdown-section {
  text-align: center;
  padding: 44px 20px 52px;
}

.countdown-section__sub {
  font-size: 18px;
  color: #3c3c3c;
  margin-bottom: 2px;
}

.countdown-section__script {
  font-family: 'Great Vibes', cursive;
  font-size: 56px;
  color: #b1b1b1;
  letter-spacing: 2.8px;
  line-height: 1.1;
  margin-bottom: 24px;
}

.countdown {
  display: flex;
  justify-content: center;
  gap: 52px;
}
@media (max-width: 360px) { .countdown { gap: 32px; } }

.countdown__item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.countdown__num {
  font-family: 'Great Vibes', cursive;
  font-size: 72px;
  font-weight: 400;
  color: #3c3c3c;
  letter-spacing: 0;
  line-height: 1;
  display: block;
}

.countdown__label {
  font-size: 18px;
  color: #b1b1b1;
  margin-top: 4px;
}

/* ============================================================
   VENUE
   ============================================================ */
.venue-section {
  text-align: center;
  padding: 44px 20px 52px;
}

.venue-section__name,
.venue-section__hall {
  font-size: 16px;
  color: #3c3c3c;
  line-height: 1.5;
}

.venue-section__time-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 20px 0 28px;
}

.venue-section__cups {
  position: absolute;
  left: 0;
  width: 88px;
  height: auto;
  opacity: 0.75;
}

.venue-section__time {
  font-family: 'Great Vibes', cursive;
  font-size: 56px;
  color: #3c3c3c;
  letter-spacing: 2.8px;
  line-height: 1;
}

.venue-section__photo-wrap {
  position: relative;
  width: calc(100% + 40px);
  margin-left: -20px;
  margin-bottom: 32px;
  line-height: 0;
}

.venue-section__photo {
  width: 100%;
  line-height: 0;
}
.venue-section__photo img {
  width: 100%;
  height: auto;
  display: block;
}

.venue-section__bottle {
  position: absolute;
  bottom: 0px;
  right: 0px;
  width: 92px;
  height: auto;
  opacity: 0.85;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-block;
  min-width: 202px;
  padding: 10px 28px;
  border-radius: 20px;
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 400;
  text-align: center;
  cursor: pointer;
  transition: opacity 0.2s;
}
.btn:active { opacity: 0.75; }
.btn--dark   { background: #3d3d3d; color: #fff;    border: 1px solid #3d3d3d; }
.btn--outline { background: transparent; color: #3d3d3d; border: 1px solid #3d3d3d; }

/* ============================================================
   WISHES
   ============================================================ */
.wishes-section {
  text-align: center;
  padding: 44px 20px 0;
}
.wishes-section__body {
  max-width: 353px;
  margin: 0 auto;
}
.wishes-section__body p {
  font-size: 16px;
  color: #3c3c3c;
  line-height: 1.65;
  margin-bottom: 16px;
}
.wishes-section__sketch {
  width: calc(100% + 40px);
  margin: 20px -20px 0;
}
.wishes-section__sketch img {
  width: 100%;
  mix-blend-mode: multiply;
  will-change: clip-path, opacity;
}

/* ============================================================
   DRESS CODE
   ============================================================ */
.dress-section {
  text-align: center;
  padding: 44px 20px 16px;
}
.dress-section__text {
  font-size: 16px;
  color: #3c3c3c;
  line-height: 1.65;
  max-width: 353px;
  margin: 0 auto 24px;
}
.dress-section__sketch {
  max-width: 360px;
  margin: 0 auto;
}
.dress-section__sketch img {
  width: 100%;
  mix-blend-mode: multiply;
  will-change: clip-path, opacity;
}

/* ============================================================
   PHOTOS
   ============================================================ */
.photos-section {
  text-align: center;
  padding: 44px 20px 44px;
}
.photos-section__text {
  font-size: 16px;
  color: #3c3c3c;
  line-height: 1.65;
  max-width: 353px;
  margin: 0 auto;
}
.photos-section__sketch {
  width: calc(100% + 40px);
  margin: 20px -20px 28px;
}
.photos-section__sketch img {
  width: 100%;
  mix-blend-mode: multiply;
  will-change: clip-path, opacity;
}

/* ============================================================
   QUESTIONNAIRE
   ============================================================ */
.questionnaire-section {
  text-align: center;
  padding: 44px 20px 60px;
}
.questionnaire-section__text {
  max-width: 353px;
  margin: 0 auto 20px;
}
.questionnaire-section__text p {
  font-size: 16px;
  color: #3c3c3c;
  line-height: 1.65;
  margin-bottom: 14px;
}

.organizer {
  margin-top: 44px;
  padding: 0 10px;
}
.organizer__intro {
  font-size: 16px;
  color: #3c3c3c;
  line-height: 1.65;
  margin-bottom: 20px;
}
.organizer__name {
  font-size: 16px;
  color: #3c3c3c;
  margin-bottom: 8px;
}
.organizer__contact { margin-bottom: 6px; }
.organizer__contact a {
  font-size: 16px;
  font-weight: 700;
  color: #3c3c3c;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: #3c3c3c;
  color: #fff;
  text-align: center;
  padding: 36px 20px;
}
.site-footer__names {
  font-family: 'Bodoni Moda', Georgia, serif;
  font-size: 24px;
  font-weight: 400;
  letter-spacing: -0.3px;
  margin-bottom: 6px;
}
.site-footer__names .amp {
  font-size: 32px;
  color: rgba(255,255,255,0.6);
}
.site-footer__date {
  font-family: 'Great Vibes', cursive;
  font-size: 28px;
  color: rgba(255,255,255,0.7);
  letter-spacing: 1px;
}

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */

/* Fade up */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: translateY(0);    }
}
.fade-up { opacity: 0; transform: translateY(26px); }
.fade-up.is-visible {
  animation: fadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Scale in */
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.78); }
  to   { opacity: 1; transform: scale(1);    }
}
.scale-in { opacity: 0; transform: scale(0.78); }
.scale-in.is-visible {
  animation: scaleIn 0.65s cubic-bezier(0.34, 1.42, 0.64, 1) both;
}

/* Simple fade */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.fade-in { opacity: 0; }
.fade-in.is-visible {
  animation: fadeIn 0.9s ease-out both;
}

/* Stagger delays */
.is-visible[data-delay="1"] { animation-delay: 0.1s;  }
.is-visible[data-delay="2"] { animation-delay: 0.22s; }
.is-visible[data-delay="3"] { animation-delay: 0.34s; }
.is-visible[data-delay="4"] { animation-delay: 0.46s; }

/* Handwriting reveal — script/cursive text */
@keyframes scriptWrite {
  from { clip-path: inset(0 100% 0 0); opacity: 1; }
  to   { clip-path: inset(0 0%   0 0); opacity: 1; }
}
.script-reveal {
  opacity: 0;
}
.script-reveal.is-visible {
  opacity: 1;
  animation: scriptWrite 1.1s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

/* Pencil-drawing reveal — sketch images */
@keyframes sketchDraw {
  0%   { clip-path: polygon(0 0, 2%  0, 2%  100%, 0 100%); opacity: 0.4; }
  8%   { opacity: 1; }
  100% { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); opacity: 1; }
}
.sketch-reveal {
  opacity: 0;
}
.sketch-reveal.is-visible {
  animation: sketchDraw 1.8s cubic-bezier(0.4, 0, 0.2, 1) both;
}

/* ============================================================
   LANG SWITCHER
   ============================================================ */
.lang-switcher {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  position: absolute;
  top: 10px;
  left: 0;
  right: 0;
  z-index: 100;
}

.lang-btn {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.6);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 20px;
  transition: color 0.2s, background 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.lang-btn.active {
  color: #fff;
  background: rgba(255,255,255,0.18);
}

.lang-sep {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  color: rgba(255,255,255,0.35);
  user-select: none;
}

/* ============================================================
   ANKETA POPUP
   ============================================================ */
.anketa-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 1000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  padding: 24px 16px 40px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
  -webkit-overflow-scrolling: touch;
}
.anketa-overlay.is-open {
  opacity: 1;
  pointer-events: all;
}

.anketa-modal {
  position: relative;
  background-image: url('../assets/images/bg.png');
  background-size: 430px auto;
  background-color: #f0ebe3;
  border-radius: 20px;
  width: 100%;
  max-width: 398px;
  padding: 44px 24px 36px;
  transform: translateY(16px);
  transition: transform 0.25s;
  flex-shrink: 0;
}
.anketa-overlay.is-open .anketa-modal {
  transform: translateY(0);
}

.anketa-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: none;
  font-size: 24px;
  color: #9a9a9a;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
}

.anketa-title {
  font-family: 'Bodoni Moda', Georgia, serif;
  font-size: 30px;
  font-weight: 400;
  color: #3c3c3c;
  text-align: center;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}

.anketa-subtitle {
  font-size: 13px;
  color: #8a8a8a;
  text-align: center;
  line-height: 1.55;
  margin-bottom: 32px;
}

.anketa-form {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.anketa-field {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.anketa-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.8px;
  color: #3c3c3c;
}

.anketa-input {
  border: none;
  border-bottom: 1px solid #c4bfb9;
  background: transparent;
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  color: #3c3c3c;
  padding: 8px 0;
  outline: none;
  width: 100%;
}
.anketa-input::placeholder { color: #c0bbB5; }

.anketa-textarea {
  border: 1px solid #c4bfb9;
  border-radius: 10px;
  background: rgba(255,255,255,0.4);
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  color: #3c3c3c;
  padding: 12px;
  outline: none;
  width: 100%;
  resize: none;
  height: 80px;
}
.anketa-textarea::placeholder { color: #c0bbb5; }

.anketa-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.anketa-option {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  color: #3c3c3c;
}

.anketa-option input[type="radio"],
.anketa-option input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border: 1.5px solid #b1b1b1;
  border-radius: 3px;
  flex-shrink: 0;
  cursor: pointer;
  position: relative;
  transition: border-color 0.15s;
}
.anketa-option input[type="radio"] { border-radius: 50%; }

.anketa-option input:checked {
  border-color: #3c3c3c;
}
.anketa-option input[type="radio"]:checked::after {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  background: #3c3c3c;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.anketa-option input[type="checkbox"]:checked {
  background: #3c3c3c;
}
.anketa-option input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 2px;
  width: 6px;
  height: 10px;
  border: 2px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate(40deg);
}

.anketa-submit {
  width: 100%;
  margin-top: 4px;
  padding: 14px 28px;
  font-size: 14px;
  letter-spacing: 0.5px;
}

.anketa-error {
  text-align: center;
  font-size: 13px;
  color: #c0392b;
  min-height: 18px;
}

.anketa-success {
  text-align: center;
  padding: 24px 0 8px;
}
.anketa-success__icon { font-size: 52px; margin-bottom: 16px; }
.anketa-success__title {
  font-family: 'Bodoni Moda', Georgia, serif;
  font-size: 30px;
  font-weight: 400;
  color: #3c3c3c;
  margin-bottom: 12px;
}
.anketa-success__text {
  font-size: 15px;
  color: #7a7a7a;
  line-height: 1.6;
}

/* ============================================================
   DESKTOP / TABLET  (> 430px)
   ============================================================ */
@media (min-width: 431px) {
  .site { display: none; }

  .desktop-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: #f0ebe3;
    background-image: url('../assets/images/bg.png');
    background-size: 600px auto;
    background-repeat: repeat;
    padding: 40px;
  }

  .desktop-notice__inner {
    max-width: 400px;
    text-align: center;
    background: rgba(255,255,255,0.75);
    border-radius: 32px;
    padding: 56px 40px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.08);
    backdrop-filter: blur(8px);
  }

  .desktop-notice__deco {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
  }
  .desktop-notice__hand { width: 72px; opacity: 0.6; }

  .desktop-notice__names {
    margin-bottom: 6px;
  }
  .desktop-notice__name {
    font-family: 'Bodoni Moda', Georgia, serif;
    font-size: 38px;
    font-weight: 400;
    color: #3c3c3c;
    letter-spacing: -0.5px;
    line-height: 1.1;
  }
  .desktop-notice__name-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
  }
  .desktop-notice__amp {
    font-family: 'Alex Brush', cursive;
    font-size: 52px;
    color: #b1b1b1;
    line-height: 1;
  }

  .desktop-notice__date {
    font-family: 'Great Vibes', cursive;
    font-size: 36px;
    color: #b1b1b1;
    letter-spacing: 2px;
    margin-bottom: 28px;
  }

  .desktop-notice__divider {
    width: 60px;
    height: 1px;
    background: #d0ccc8;
    margin: 0 auto 28px;
  }

  .desktop-notice__text {
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    color: #555;
    line-height: 1.7;
    margin-bottom: 8px;
  }
  .desktop-notice__text--small { font-size: 13px; color: #999; }
  .desktop-notice__phone { font-size: 36px; margin-top: 20px; }
}
