/* ============================================================
   Свадебный сайт-приглашение Петра и Марии
   Стиль: крем + пыльно-синий лайн-арт + тёплые жёлтые акценты
   ============================================================ */

/* акцентный (рукописный) шрифт сайта */
@font-face {
  font-family: "Felidae";
  src: url("/static/fonts/Felidae.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  /* палитра снята пипеткой с example1.jpg */
  --cream:      #faece8;   /* фон страницы (светлый тёплый розовый) */
  --cream-2:    #f4ddd4;   /* лёгкая заливка секций */
  --blue:       #4e6c7d;   /* лайн-арт дудлы */
  --blue-deep:  #2d5c76;   /* заголовки, скрипт, ink */
  --ink:        #506e7c;   /* основной текст */
  --yellow:     #eabfb4;   /* пыльная роза — овалы, пилюли, арка */
  --yellow-soft:#f2d5cd;   /* светлее розы — заливки */
  --yellow-pale:#f7e6e1;   /* самый бледный розовый */
  --yellow-deep:#dda69a;   /* насыщеннее — тени/hover */
  --shadow:     0 14px 34px rgba(45, 92, 118, .13);
  --title:      "Fredoka", system-ui, sans-serif;
  --script:     "Felidae", "Marck Script", cursive;
  --body:       "Cormorant Garamond", Georgia, serif;
  --round:      "Fredoka", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
/* блокировка скролла до открытия приглашения */
html.scroll-locked, html.scroll-locked body { overflow: hidden; }

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--body);
  font-size: 21px;
  line-height: 1.5;
  overflow-x: hidden;
  background-color: var(--cream);
  background-image:
    radial-gradient(circle at 12% 6%, rgba(238, 178, 165, .34), transparent 45%),
    radial-gradient(circle at 90% 12%, rgba(246, 208, 168, .28), transparent 45%),
    radial-gradient(circle at 85% 90%, rgba(197, 190, 224, .26), transparent 48%),
    radial-gradient(circle at 8% 92%, rgba(233, 170, 175, .28), transparent 46%);
  background-attachment: fixed;
}

/* тело — изящный курсив, как в референсе */
p { font-style: italic; }

.doodle { color: var(--blue); fill: none; }

/* заголовки-скрипт */
.script-title {
  font-family: var(--script);
  font-weight: 400;
  font-size: clamp(2.1rem, 7vw, 3.1rem);
  line-height: 1.05;
  color: var(--blue-deep);
  margin: 0 0 22px;
}

/* жёлтая «таблеточная» кнопка */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--script);
  font-size: 1.4rem;
  color: var(--blue-deep);
  text-decoration: none;
  background: var(--yellow);
  border: none;
  padding: 10px 26px;
  border-radius: 40px;
  box-shadow: 0 6px 16px rgba(221, 166, 154, .5);
  transition: transform .18s ease, background .18s ease;
}
.pill:hover { transform: translateY(-2px); background: var(--yellow-deep); }
.pill__icon { width: 20px; height: 20px; color: var(--blue-deep); }
.pill--tg { background: var(--yellow); }

/* общие секции */
.section {
  position: relative;
  max-width: 680px;
  margin: 0 auto;
  padding: 58px 24px;
  text-align: center;
  overflow: hidden;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  max-width: 760px;
  margin: 0 auto;
  padding: 46px 20px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.hero__greet {
  font-family: var(--script);
  font-style: normal;
  font-size: clamp(1.3rem, 5vw, 1.8rem);
  color: var(--blue);
  margin: 0 0 6px;
}
.hero__names {
  font-family: var(--script);
  font-weight: 400;
  font-size: clamp(2.2rem, 8vw, 3.6rem);
  line-height: 1.12;
  color: var(--blue-deep);
  margin: 0 0 10px;
}

/* картинка пары — вписана в фон, без рамки */
.hero__couple {
  display: block;
  width: clamp(270px, 74vw, 460px);
  height: auto;
  margin: 0 auto;
}
.hero__placeholder {
  width: clamp(300px, 82vw, 520px);
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  color: var(--blue);
  font-family: var(--script);
  font-size: 1.6rem;
  line-height: 1.2;
  border: 2px dashed rgba(78, 108, 125, .35);
  border-radius: 12px;
}

/* подсказка «листайте дальше» / встроенная кнопка музыки */
.scroll-hint {
  position: absolute;
  bottom: 22px; left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  background: none; border: none; padding: 0; cursor: pointer;
  font-family: var(--script);
  font-size: 1.3rem;
  color: var(--blue);
}
.scroll-hint__row { display: inline-flex; align-items: center; gap: 8px; }
.scroll-hint__play { width: 20px; height: 20px; color: var(--blue); flex: none; }
.scroll-hint__text { line-height: 1; }
.scroll-hint__chev { width: 24px; height: 24px; color: var(--blue); animation: bob 1.8s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* музыка «слушай ▶ сердцем» */
.music {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--script);
  font-size: 1.5rem;
  color: var(--blue);
  margin: 14px 0 6px;
}
.music__btn {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--yellow-soft);
  display: grid; place-items: center;
  transition: transform .18s, background .18s;
}
.music:hover .music__btn { transform: scale(1.08); background: var(--yellow); }
.music__icon { width: 18px; height: 18px; color: var(--blue-deep); }
.music.is-playing .music__btn { background: var(--yellow); }

.hero__doodles {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin: 22px 0 6px;
}
.hero__doodles .doodle { width: 62px; height: 62px; }

.hero__invite {
  font-family: var(--script);
  font-style: normal;
  font-size: clamp(1.7rem, 6vw, 2.3rem);
  color: var(--blue-deep);
  line-height: 1.15;
  margin: 8px 0 0;
}
.footer-names, .venue-name { font-style: normal; }

/* парящие искорки — везде */
.doodle.d-spark { position: absolute; color: var(--yellow-deep); fill: var(--yellow-deep); pointer-events: none; }
/* hero */
.d-spark.s1 { width: 24px; top: 30%; right: 16%; }
.d-spark.s2 { width: 18px; bottom: 26%; left: 12%; }
.d-spark.s3 { width: 20px; top: 18%; left: 9%; }
.d-spark.s4 { width: 16px; top: 15%; right: 10%; }
.d-spark.s5 { width: 22px; bottom: 32%; right: 8%; }
.d-spark.s6 { width: 14px; top: 44%; left: 5%; }
/* переиспользуемые позиции для секций */
.sp-tl { top:  8%; left:  6%; }
.sp-tr { top:  8%; right: 6%; }
.sp-bl { bottom: 8%; left:  6%; }
.sp-br { bottom: 8%; right: 6%; }
.sp-ml { top: 45%; left: 4%; }
.sp-mr { top: 45%; right: 4%; }
.sp-sm { width: 14px; }
.sp-md { width: 20px; }
.sp-lg { width: 26px; }

/* ============================================================
   КАЛЕНДАРЬ
   ============================================================ */
.calendar {
  border-collapse: collapse;
  margin: 0 auto;
  font-family: var(--body);
}
.calendar th {
  font-weight: 600;
  font-size: .95rem;
  color: var(--blue);
  padding: 6px 10px;
  opacity: .85;
}
.calendar td {
  width: 44px; height: 44px;
  text-align: center;
  font-size: 1.15rem;
  color: var(--ink);
}
.calendar td.is-day span {
  display: inline-grid;
  place-items: center;
  width: 46px; height: 42px;
  padding-bottom: 6px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 29'%3E%3Cpath fill='%23eabfb4' d='M16 28C16 28 2 18 2 9C2 4.5 5.5 2 9 2C12 2 15 4 16 7C17 4 20 2 23 2C26.5 2 30 4.5 30 9C30 18 16 28 16 28Z'/%3E%3C/svg%3E") no-repeat center / contain;
  color: var(--blue-deep);
  font-weight: 600;
  filter: drop-shadow(0 4px 8px rgba(221,166,154,.55));
}

/* ============================================================
   МЕСТО
   ============================================================ */
.blob {
  position: relative;
  background: var(--yellow);
  border-radius: 46% 54% 52% 48% / 58% 46% 54% 42%;
  padding: 46px 34px 40px;
  max-width: 480px;
  margin: 0 auto 26px;
}
.venue-name { font-family: var(--body); font-weight: 600; font-size: 1.5rem; margin: 4px 0 0; }
.venue-hall { margin: 2px 0; color: var(--blue); font-style: italic; }
.venue-addr { margin: 4px 0 0; color: var(--ink); font-size: 1.05rem; }
.venue-sprig   { position: absolute; width: 54px; top: 8px; left: 14px; }
.venue-building{ width: 130px; height: auto; margin: 16px auto 0; display: block; }

.map-frame {
  max-width: 560px;
  margin: 0 auto 18px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 6px solid #fff;
  line-height: 0;
}

/* ============================================================
   НАШ ДЕНЬ — змейка-таймлайн
   ============================================================ */
.snake {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 480px;
  position: relative;
}
.snake::before {
  content: "";
  position: absolute;
  left: 50%; top: 8px; bottom: 8px;
  border-left: 3px dashed var(--blue);
  opacity: .45;
  transform: translateX(-50%);
}
.snake__item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 44px 1fr;
  align-items: center;
  column-gap: 14px;
  min-height: 120px;
}
.snake__num {
  grid-column: 2; grid-row: 1;
  justify-self: center;
  z-index: 2;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--blue-deep);
  font-family: var(--body);
  font-weight: 600;
  display: grid; place-items: center;
  box-shadow: 0 4px 12px rgba(221,166,154,.55);
}
.snake__icon { width: 66px; height: 54px; grid-row: 1; }
.snake__card { grid-row: 1; }
.snake__time {
  display: block;
  font-family: var(--script);
  font-size: 1.7rem;
  color: var(--blue-deep);
  line-height: 1;
}
.snake__name { display: block; font-size: 1.05rem; color: var(--ink); }

.left  .snake__card { grid-column: 1; text-align: right; }
.left  .snake__icon { grid-column: 3; justify-self: start; }
.right .snake__card { grid-column: 3; text-align: left; }
.right .snake__icon { grid-column: 1; justify-self: end; }

/* ============================================================
   ДРЕСС-КОД
   ============================================================ */
.dress-sub { color: var(--ink); max-width: 460px; margin: 0 auto 18px; }
.dress-icons { display: flex; gap: 26px; justify-content: center; align-items: flex-end; margin: 6px auto 24px; }
.dress-icon { width: 92px; height: auto; }
.dress-doodles .doodle { width: 76px; height: 76px; }
.dancers { width: min(320px, 88%); height: auto; margin: 6px auto 20px; display: block; }
.dress-swatch-note { color: var(--blue); font-style: italic; margin: 0 0 10px; }
.swatches { display: flex; gap: 10px; justify-content: center; margin-bottom: 26px; }
.sw { width: 30px; height: 27px; }

.dress-list {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 400px;
  text-align: left;
  display: inline-block;
}
.dress-list li {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 0;
  font-size: 1.15rem;
  border-bottom: 1px dashed rgba(77,107,154,.25);
}
.dress-list li:last-child { border-bottom: none; }
.dress-list .dot { width: 24px; height: 22px; color: var(--yellow); flex: none; }

/* ============================================================
   ЧАТ — жёлтая арка
   ============================================================ */
.arch {
  position: relative;
  background: var(--yellow);
  border-radius: 200px 200px 26px 26px;
  padding: 54px 34px 44px;
  max-width: 460px;
  margin: 0 auto;
}
.arch-bow { position: absolute; width: 56px; top: 16px; left: 50%; transform: translateX(-50%); }
.arch .script-title { margin-top: 8px; }
.chat-text { color: var(--ink); margin: 0 auto 24px; max-width: 360px; }

/* ============================================================
   АНКЕТА
   ============================================================ */
.rsvp-env { width: 70px; height: 56px; margin-bottom: 6px; }
.rsvp-intro { color: var(--ink); max-width: 520px; margin: 0 auto 26px; }

/* нативная анкета в стиле сайта */
.rsvp-form {
  max-width: 460px;
  margin: 0 auto;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.field { display: flex; flex-direction: column; gap: 7px; border: none; margin: 0; padding: 0; }
.field__label {
  font-family: var(--script);
  font-size: 1.25rem;
  color: var(--blue-deep);
}
.rsvp-form input[type="text"],
.rsvp-form input[type="tel"],
.rsvp-form input[type="email"],
.rsvp-form select,
.rsvp-form textarea {
  font-family: var(--body);
  font-size: 1.05rem;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid rgba(78, 108, 125, .35);
  border-radius: 14px;
  padding: 12px 16px;
  outline: none;
  transition: border-color .18s, box-shadow .18s;
  width: 100%;
}
.rsvp-form input::placeholder,
.rsvp-form textarea::placeholder { color: rgba(80, 110, 124, .5); font-style: italic; }
.rsvp-form input:focus,
.rsvp-form select:focus,
.rsvp-form textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(234, 191, 180, .6);
}
.rsvp-form textarea { resize: vertical; }

.field--radio { display: flex; flex-direction: column; gap: 8px; }
.radio {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  color: var(--ink);
  cursor: pointer;
  padding: 6px 0;
}
.radio input { accent-color: var(--blue); width: 18px; height: 18px; }

.rsvp-submit {
  align-self: center;
  margin-top: 6px;
  cursor: pointer;
  font-size: 1.4rem;
}
.rsvp-status {
  text-align: center;
  min-height: 1.4em;
  margin: 6px 0 0;
  font-style: normal;
  color: var(--blue-deep);
}
.rsvp-status.is-error { color: #c0533f; }

.rsvp-deadline { margin-top: 18px; color: var(--blue); font-style: italic; }
.rsvp-deadline b { color: var(--blue-deep); font-style: normal; }

/* ============================================================
   ОТСЧЁТ + КОНТАКТЫ + ФУТЕР
   ============================================================ */
.end-sec { background: var(--cream-2); max-width: none; }
.end-glass { width: 60px; height: 48px; margin-bottom: 4px; }
.countdown {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}
.cd-cell { display: flex; flex-direction: column; align-items: center; min-width: 68px; }
.cd-num {
  font-family: var(--body);
  font-weight: 600;
  font-size: clamp(2.2rem, 9.5vw, 3.4rem);
  line-height: 1;
  color: var(--blue-deep);
}
.cd-word { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); margin-top: 8px; }
.cd-sep { font-family: var(--body); font-weight: 600; font-size: clamp(1.8rem, 7vw, 2.8rem); color: var(--yellow-deep); }

.contacts { margin-bottom: 24px; }
.contacts-lead { color: var(--ink); margin: 0 0 8px; }
.contact-line { margin: 4px 0; font-size: 1.1rem; }
.contact-line b { color: var(--blue-deep); }
.contact-line a { color: var(--blue); text-decoration: none; border-bottom: 1px solid rgba(77,107,154,.3); }
.contact-line a:hover { color: var(--blue-deep); }

.end-angel { width: 74px; height: 60px; margin: 6px 0 2px; }
.footer-sign { font-family: var(--body); color: var(--ink); font-size: 1.2rem; margin: 0; }
.footer-names {
  font-family: var(--script);
  font-size: clamp(2rem, 8vw, 2.8rem);
  color: var(--blue-deep);
  margin: 2px 0 0;
}

/* ============================================================
   Мобильные уточнения
   ============================================================ */
@media (max-width: 560px) {
  body { font-size: 18px; }
  .section { padding: 46px 16px; }
  .cd-sep { display: none; }
  .cd-cell { min-width: 60px; }
  .countdown { gap: 14px; }
  .calendar td { width: 38px; height: 40px; font-size: 1.05rem; }
  .name-tag--l { left: -30px; font-size: 1.25rem; }
  .name-tag--r { right: -34px; font-size: 1.25rem; }
  .name-arrow { width: 34px; }
  .snake__icon { width: 52px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; animation: none !important; }
}
