@font-face {
  font-family: "CorinthiaLocal";
  src: url("fonts/corinthia.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "BodegaScriptLocal";
  src: url("fonts/BodegaScript.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg-deep: #263820;
  --text: #24301f;
  --muted: rgba(36, 48, 31, 0.88);
  --accent: #8d6b3f;
  --green: #536f45;
  --green-dark: #3d5a33;
  --white: #fffaf0;
  --radius-xl: 32px;
  --page-pad: clamp(18px, 5vw, 34px);
  --body-line: 1.62;
  --heading-line: 1.14;
  --title-gap: clamp(18px, 4.5vw, 20px);
  --text-gap: clamp(14px, 3.5vw, 22px);
  --shadow: 0 24px 80px rgba(14, 24, 10, 0.16);
}

/* Base */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 56px;
  scrollbar-width: thin;
  scrollbar-color: var(--green) transparent;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  background: var(--bg-deep);
  font-family: "Forum", Georgia, serif;
  line-height: var(--body-line);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -6;
  background: linear-gradient(
    180deg,
    rgba(26, 43, 21, 0.12),
    rgba(18, 31, 15, 0.78)
  );
}

p,
li {
  line-height: var(--body-line);
}

h1,
h2,
h3 {
  line-height: var(--heading-line);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  min-height: 54px;
  border: 2px solid rgba(255, 250, 240, 0.7);
  border-radius: 999px;
  background:
    linear-gradient(
      180deg,
      rgba(112, 137, 90, 0.95),
      rgba(58, 82, 47, 0.98)
    );
  background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
  background:
    linear-gradient(
      180deg,
      rgba(130, 153, 106, 1),
      rgba(43, 65, 35, 1)
    );
  background-clip: padding-box;
}

::-webkit-scrollbar-corner {
  background: transparent;
}

/* Background */
.parallax-bg {
  position: fixed;
  inset: 0;
  z-index: -5;
  overflow: hidden;
  pointer-events: none;
  background: var(--bg-deep);
}

.parallax-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 10;
  background: rgba(0, 0, 0, 0);
  pointer-events: none;
  transition: background 0.45s ease;
}

body.secret-dark .parallax-bg::after {
  background: rgba(0, 0, 0, 0.68);
}

.bg-layer {
  position: absolute;
  inset: -18vh 0;
  background-repeat: no-repeat;
  background-size: cover;
  will-change: background-position;
}

.bg-back {
  z-index: 1;
  background-image:
    linear-gradient(180deg, rgba(24, 42, 20, 0.05), rgba(18, 31, 15, 0.42)),
    url("images/bg-mb-1.png");
  background-position: center calc(50% + var(--bg-back-y, 0px));
}

.bg-branches {
  z-index: 2;
  background-image: url("images/bg-mb-2.png");
  background-position: center calc(50% + var(--bg-branches-y, 0px));
}

@media (min-width: 760px) {
  .bg-layer {
    inset: -16vh 0;
    background-position-x: center;
  }

  .bg-back {
    background-image:
      linear-gradient(180deg, rgba(24, 42, 20, 0.04), rgba(18, 31, 15, 0.34)),
      url("images/bg-pk-1.png");
  }

  .bg-branches {
    background-image: url("images/bg-pk-2.png");
  }
}

/* Layout */
.page {
  position: relative;
  width: min(100%, 780px);
  margin: 0 auto;
  padding: 10px var(--page-pad) 70px;
}

/* Navigation */
.top-nav {
  position: sticky;
  top: 10px;
  z-index: 20;
  display: flex;
  justify-content: flex-start;
  gap: 8px;
  width: max-content;
  max-width: 100%;
  margin: 0 auto 26px;
  padding: 8px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  border: 1px solid rgba(255, 250, 240, 0.24);
  border-radius: 999px;
  background: rgba(30, 45, 24, 0.54);
  box-shadow: 0 16px 48px rgba(10, 20, 8, 0.18);
  backdrop-filter: blur(18px);
  scrollbar-width: none;
}

.top-nav::-webkit-scrollbar {
  display: none;
}

.top-nav a {
  flex: 0 0 auto;
  padding: 10px 12px;
  border-radius: 999px;
  color: rgba(255, 250, 240, 0.92);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.25s ease, transform 0.25s ease;
}

.top-nav a:active {
  transform: scale(0.97);
}

.top-nav a:hover,
.top-nav a.is-active {
  background: rgba(255, 250, 240, 0.18);
}

/* Sections */
.section {
  position: relative;
  margin: 18px 0;
  padding: clamp(10px, 7vw, 24px) clamp(10px, 6vw, 40px);
  overflow: hidden;
  scroll-margin-top: 56px;
  border: none;
  border-radius: var(--radius-xl);
  color: var(--white);
  background:
    linear-gradient(
      180deg,
      rgba(255, 250, 240, 0.22) 0%,
      rgba(238, 243, 232, 0.18) 34%,
      rgba(83, 111, 69, 0.30) 66%,
      rgba(35, 55, 29, 0.56) 100%
    );
  box-shadow:
    var(--shadow),
    inset 0 0 0 1px rgba(255, 250, 240, 0.26);
  backdrop-filter: blur(18px);
}

.section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 250, 240, 0.42), transparent 32%),
    linear-gradient(180deg, rgba(255, 250, 240, 0.08), rgba(0, 0, 0, 0.18));
  opacity: 1;
}

.section > * {
  position: relative;
  z-index: 1;
}

.section > .subtitle,
.section > p,
.section > .title {
  color: rgba(255, 250, 240, 0.9);
}

.section > .title {
  color: rgba(255, 250, 240, 0.96);
}

/* Hero */
.hero {
  display: flex;
  min-height: auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-align: center;
}

.eyebrow {
  display: inline-grid;
  grid-template-columns: 42px auto 42px;
  align-items: center;
  gap: 14px;
  width: fit-content;
  margin: 0 auto 70px;
  padding: 0;
  color: rgba(255, 250, 240, 0.9);
  background: transparent;
  border-radius: 0;
  font-family: "Forum", Georgia, serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.eyebrow::before,
.eyebrow::after {
  content: "";
  display: block;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 250, 240, 0.72)
  );
}

.eyebrow::after {
  transform: scaleX(-1);
}

.names {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  margin: 0;
  font-family: "CorinthiaLocal", "Great Vibes", cursive;
  font-size: clamp(58px, 18vw, 122px);
  font-weight: 400;
  line-height: 0.78;
  letter-spacing: 0.01em;
  text-shadow: 0 12px 46px rgba(0, 0, 0, 0.42);
}

.names .name-line {
  display: block;
  line-height: 0.78;
}

.names .name-line:last-child {
  transform: translateY(0.08em);
}

.name-initial {
  font-family: "BodegaScriptLocal", "CorinthiaLocal", "Great Vibes", cursive;
  font-size: 1.05em;
  line-height: 0;
}

.names .amp {
  display: inline-block;
  margin: 0.02em 0 0.01em;
  font-family: "CorinthiaLocal", "Great Vibes", cursive;
  font-size: 0.42em;
  font-weight: 500;
  line-height: 0.5;
  opacity: 0.9;
  transform: translateY(0.15em);
}

.hero-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  width: min(240px, 70%);
  margin: 40px auto 16px;
  color: rgba(255, 250, 240, 0.82);
}

.hero-divider span {
  height: 1px;
  background: rgba(255, 250, 240, 0.52);
}

.hero-divider strong {
  font-size: 13px;
  line-height: 1;
}

.hero-text {
  max-width: 520px;
  margin: 0 auto;
  color: rgba(255, 250, 240, 0.94);
  font-family: "Forum", Georgia, serif;
  font-size: clamp(17px, 4.8vw, 22px);
  line-height: 1.34;
  text-wrap: balance;
}

/* Typography */
.title {
  margin: 0 0 var(--title-gap);
  color: rgba(255, 250, 240, 0.94);
  font-family: "Pinyon Script", "Great Vibes", cursive;
  font-size: clamp(44px, 13vw, 62px);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: 0.01em;
  text-shadow: 0 10px 32px rgba(0, 0, 0, 0.22);
}

.subtitle {
  color: rgba(255, 250, 240, 0.88);
  font-size: 15px;
  line-height: var(--body-line);
}

/* Photos */
.photo-frame {
  margin: 0;
  padding: 5px;
  border-radius: 28px;
  background: rgba(255, 250, 240, 0.64);
  box-shadow: 0 22px 54px rgba(33, 49, 25, 0.18);
  transform: rotate(2.2deg);
}

.photo-frame img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 22px;
  background: linear-gradient(135deg, #d8e3ce, #f8efe0);
}

@media (min-width: 720px) {
  .split {
    display: grid;
    grid-template-columns: 1fr 0.82fr;
    gap: 26px;
    align-items: center;
  }
}

#story .subtitle {
  line-height: 1.45;
}

/* Buttons */
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: var(--text-gap);
}

.btn {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
  color: var(--text);
  border: 1px solid rgba(83, 111, 69, 0.22);
  background: #f3e6cf;
  opacity: 65%;
  box-shadow: none;
}

.btn.secondary {
  color: var(--text);
  border: 1px solid rgba(83, 111, 69, 0.22);
  background: #f3e6cf;
  opacity: 65%;
  box-shadow: none;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(38, 56, 32, 0.3);
}

/* Calendar */
.wedding-calendar {
  max-width: 620px;
  margin: 0 auto;
  padding: 20px;
  border-radius: 28px;
  background: #f3e6cf;
  box-shadow: 0 20px 50px rgba(38, 56, 32, 0.14);
  opacity: 65%;
}

.calendar-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--green);
  font-family: "Forum", Georgia, serif;
  font-size: clamp(22px, 5.8vw, 34px);
  font-weight: 400;
  letter-spacing: 0.05em;
  text-align: center;
}

.calendar-title-decor {
  display: block;
  width: clamp(42px, 10vw, 72px);
  max-height: 280px;
  height: auto;
  object-fit: contain;
  opacity: 0.85;
}

.calendar-title-decor.left {
  transform: scaleX(-1);
}

.calendar-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  width: min(220px, 66%);
  margin: 6px auto 20px;
  color: rgba(83, 111, 69, 0.7);
}

.calendar-divider span {
  height: 1px;
  background: rgba(169, 145, 105, 0.32);
}

.calendar-divider strong {
  font-size: 14px;
  line-height: 1;
}

.calendar-weekdays,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  width: min(100%, 500px);
  margin-left: auto;
  margin-right: auto;
  column-gap: 2px;
  text-align: center;
}

.calendar-weekdays {
  margin-bottom: 8px;
  color: rgba(83, 111, 69, 0.78);
  font-family: "Forum", Georgia, serif;
  font-size: clamp(11px, 3vw, 14px);
  font-weight: 600;
  letter-spacing: 0.08em;
}

.calendar-grid {
  row-gap: 4px;
  color: rgba(36, 48, 31, 0.78);
  font-family: "Forum", Georgia, serif;
  font-size: clamp(20px, 5.5vw, 30px);
  font-weight: 400;
}

.calendar-day {
  position: relative;
  display: grid;
  min-height: clamp(26px, 6vw, 38px);
  place-items: center;
}

.wedding-day {
  color: #2f4828;
  font-weight: 700;
}

.wedding-day span {
  position: relative;
  z-index: 2;
  font-weight: 700;
}

.wedding-day::before {
  content: "";
  position: absolute;
  left: 51%;
  top: 45%;
  z-index: 1;
  width: clamp(150px, 15vw, 400px);
  height: clamp(150px, 15vw, 400px);
  background: url("images/calendar-heart.png") center / contain no-repeat;
  opacity: 0.95;
  transform: translate(-50%, -50%);
}

/* Countdown */
.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  border-radius: 28px;
  box-shadow: 0 20px 50px rgba(38, 56, 32, 0.14);
}

.count-box {
  min-height: 82px;
  padding: 14px 8px;
  border-radius: 22px;
  text-align: center;
  background: #f3e6cf;
  opacity: 65%;
}
.count-box strong {
  display: block;
  color: var(--green-dark);
  font-family: "Forum", Georgia, serif;
  font-size: clamp(14px, 9vw, 30px);
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: 1px;
}

.count-box span {
  display: block;
  margin-top: 8px;
  color: rgba(61, 90, 51, 0.72);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Place */
.place-title {
  width: 100%;
  white-space: nowrap;
}

.place-layout {
  display: grid;
  gap: clamp(24px, 6vw, 34px);
  align-items: center;
}

.place-copy {
  min-width: 0;
}

.place-info {
  margin-top: var(--text-gap);
  padding: 16px 18px;
  border: 1px solid rgba(83, 111, 69, 0.14);
  border-radius: 24px;
  background: #f3e6cf;
  opacity: 65%;
  font-weight: bold;  
}

.place-info h3 {
  margin: 0 0 10px;
  color: var(--text);
  font-family: "Forum", Georgia, serif;
  font-size: 28px;
  font-weight: 400;
  line-height: 1.12;
}

.place-info p {
  margin: 0;
  color: rgba(36, 48, 31, 0.82);
  font-size: 15px;
  line-height: var(--body-line);
}

.place-info strong {
  color: var(--text);
  font-weight: 700;
}

.place-photo img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.place-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  width: 100%;
}

.place-buttons .btn {
  width: 100%;
  justify-content: center;
  margin-left: 0;
  white-space: nowrap;
}

@media (min-width: 720px) {
  .place-layout {
    grid-template-columns: 1fr 0.82fr;
  }
}

/* Schedule */
.schedule {
  display: grid;
  gap: 12px;
  margin-top: clamp(22px, 5vw, 32px);
  padding-inline: 5%;
}

.schedule-item {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 14px;
  align-items: start;
  border-bottom: 1px solid rgba(255, 250, 240, 0.22);
}

.schedule-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.time {
  color: rgba(255, 250, 240, 0.92);
  font-size: 19px;
  font-weight: 900;
  line-height: var(--heading-line);
}

.schedule-item h3,
.dress-card h3 {
  margin: 0 0 10px;
  font-size: 16px;
  line-height: var(--heading-line);
  color: rgba(255, 250, 240, 0.94);
}

.schedule-item p {
  color: rgba(255, 250, 240, 0.82);
}

/* Wishes */
.wish-list {
  display: grid;
  gap: 12px;
  margin: var(--text-gap) 0 0;
  padding: 0;
  list-style: none;
}

.wish-list li {
  position: relative;
  padding: 16px 16px 16px 54px;
  border-radius: 22px;
  background: #f3e6cf;
  opacity: 65%;
  color: rgba(36, 48, 31, 0.9);
  font-weight: bold;
  line-height: 1.55;
}

.wish-list li::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 18px;
  width: 45px;
  height: 45px;
  background: url("images/calendar-branch.png") center / contain no-repeat;
  transform: translateX(-20%) translateY(-25%) rotate(-120deg);
  opacity: 0.9;
  pointer-events: none;
}

/* Dress code */
.dress-tape {
  display: flex;
  gap: 12px;
  margin: 14px calc(var(--page-pad) * -1) 0;
  padding: 0 var(--page-pad) 10px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-behavior: auto;
  scrollbar-width: none;
}

.dress-tape::-webkit-scrollbar {
  display: none;
}

.dress-card {
  flex: 0 0 168px;
  min-height: 232px;
  padding: 14px;
  border-radius: 28px;
  background: #f3e6cf;
  opacity: 65%;
}

.swatch {
  height: 126px;
  border-radius: 22px;
  border: 1px solid rgba(0, 0, 0, 0.72);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.18),
    0 14px 28px rgba(38, 56, 32, 0.08);
}

.dress-card h3 {
  margin: 18px 0 4px;
  text-align: center;
}

.dress-card p {
  margin: 0;
  color: rgba(36, 48, 31, 0.76);
  font-size: 13px;
  line-height: 1.25;
  text-align: center;
}

.swatch.dusty-rose { background: linear-gradient(135deg, #d8aaa5, #a87572); }
.swatch.blush { background: linear-gradient(135deg, #f0c9c1, #d6a29b); }
.swatch.rose-beige { background: linear-gradient(135deg, #dfbeb1, #b99588); }
.swatch.mauve { background: linear-gradient(135deg, #c5a0aa, #8e707a); }
.swatch.powder-pink { background: linear-gradient(135deg, #f2d7d3, #dcb9b4); }
.swatch.sage { background: linear-gradient(135deg, #aebc9b, #657b5c); }
.swatch.eucalyptus { background: linear-gradient(135deg, #b7c3ad, #7e8f75); }
.swatch.olive { background: linear-gradient(135deg, #8d985e, #4f5e38); }
.swatch.moss { background: linear-gradient(135deg, #6f7c52, #394630); }
.swatch.forest { background: linear-gradient(135deg, #526747, #263a24); }
.swatch.cream { background: linear-gradient(135deg, #fff6de, #dbc69a); }
.swatch.ivory { background: linear-gradient(135deg, #fff9ea, #e8dcc0); }
.swatch.champagne { background: linear-gradient(135deg, #ead7ad, #c8aa70); }
.swatch.sand { background: linear-gradient(135deg, #e6d8b8, #b99a68); }
.swatch.linen { background: linear-gradient(135deg, #e9dfcb, #c8b99e); }
.swatch.taupe { background: linear-gradient(135deg, #b9aa9b, #86786b); }
.swatch.cocoa { background: linear-gradient(135deg, #a98268, #6f4f3f); }
.swatch.choco { background: linear-gradient(135deg, #8b6a4d, #4c3327); }
.swatch.terracotta { background: linear-gradient(135deg, #c78361, #8b4f3a); }
.swatch.clay { background: linear-gradient(135deg, #bf8f75, #8a5f4d); }

/* Organizer */
#organizer .subtitle {
  margin: 0 0 var(--text-gap);
}

#organizer .organizer-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 0;
  align-items: center;
}

#organizer .organizer-buttons .btn {
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  column-gap: 10px;
  min-height: 52px;
  padding: 7px 16px 7px 8px;
  opacity: 1;
  background: rgba(243, 230, 207, 0.65);
  line-height: 1;
  transform: none;
}

#organizer .organizer-buttons .btn:hover {
  transform: none;
  box-shadow: 0 14px 28px rgba(38, 56, 32, 0.22);
}

#organizer .organizer-buttons .btn:hover .organizer-link-text {
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
}

#organizer .organizer-link {
  width: 154px;
  min-width: 154px;
}

#organizer .contact-person {
  width: 258px;
  min-width: 258px;
  margin: 0;
  color: var(--text) !important;
  border-bottom: 0;
  font-family: "Forum", Georgia, serif;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.organizer-link-text {
  display: block;
  justify-self: center;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}

.contact-icon {
  display: inline-flex;
  justify-self: start;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 50%;
  background: rgba(255, 250, 240, 0.56);
  box-shadow:
    inset 0 0 0 1px rgba(83, 111, 69, 0.16),
    0 8px 18px rgba(38, 56, 32, 0.1);
}

.contact-icon img {
  display: block;
  width: 36px;
  height: 36px;
  object-fit: contain;
  transform: scale(1.35);
}

/* Form */
.form {
  display: grid;
  gap: 14px;
}

.rsvp-form {
  gap: 18px;
}

#submitBtn {
  justify-self: center;
  width: fit-content;
  padding-left: 20%;
  padding-right: 20%;
  font-size: 16px;
}

.field {
  display: grid;
  gap: 8px;
}

/* Названия полей — белые, как в остальных блоках */
.field label,
.field-title {
  font-family: "Forum", Georgia, serif;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: 0.02em;
}

.required-star {
  color: rgba(255, 250, 240, 0.9);
  font-weight: 900;
}

/* Подсказки — тоже белые */
.field-hint {
  margin: -2px 0 0;
  font-size: 14px;
  line-height: 1.35;
  color: rgba(255, 250, 240, 0.9)
}

/* Текстовые поля */
.field input:not([type="radio"]):not([type="checkbox"]),
.field textarea,
.field select {
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  border: 1px solid rgba(83, 111, 69, 0.22);
  border-radius: 18px;
  outline: none;
  color: var(--text);
  background: rgba(243, 230, 207, 0.65);
  font: inherit;
  font-size: 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.field input:not([type="radio"]):not([type="checkbox"])::placeholder,
.field textarea::placeholder {
  color: rgba(36, 48, 31, 0.58);
}

.field input:not([type="radio"]):not([type="checkbox"]):focus,
.field textarea:focus,
.field select:focus {
  border-color: rgba(255, 250, 240, 0.62);
  background: rgba(243, 230, 207, 0.82);
  box-shadow: 0 0 0 4px rgba(255, 250, 240, 0.14);
}

#allergies,
#comment {
  min-height: 52px;
  height: 52px;
  max-height: none;
  padding-top: 14px;
  padding-bottom: 14px;
  overflow: hidden;
  resize: none;
  line-height: 1.35;
}

#comment {
  margin-bottom: 3%;
}

/* Радио и чекбоксы */
.choice-group,
.choice-grid {
  display: grid;
  gap: 10px;
  align-items: stretch;
}

.choice-grid {
  grid-template-columns: repeat(2, 1fr);
}

.choice-card {
  position: relative;
  display: flex;
  height: 58px;
  min-height: 58px;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(83, 111, 69, 0.22);
  border-radius: 18px;
  color: var(--text);
  background: rgba(243, 230, 207, 0.65);
  font-family: "Forum", Georgia, serif;
  font-size: 15px;
  line-height: 1.2;
  cursor: pointer;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.choice-card:hover {
  border-color: rgba(255, 250, 240, 0.55);
  background: rgba(243, 230, 207, 0.82);
  transform: translateY(-1px);
}

.choice-card input[type="radio"],
.choice-card input[type="checkbox"] {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  outline: none;
  background: transparent;
  box-shadow: none;
  accent-color: var(--green);
}

.choice-card span {
  line-height: 1.15;
}

.choice-card:has(input:checked) {
  color: var(--text);
  border-color: rgba(255, 250, 240, 0.64);
  background: rgba(243, 230, 207, 0.9);
  box-shadow: 0 10px 24px rgba(38, 56, 32, 0.12);
}

.choice-card:focus-within {
  border-color: rgba(255, 250, 240, 0.7);
  box-shadow: 0 0 0 3px rgba(255, 250, 240, 0.16);
}

.partner-field {
  animation: formFieldIn 0.28s ease both;
}

.partner-field[hidden] {
  display: none !important;
}

.guest-only-field.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

/* Статус формы */
.form-status {
  min-height: 24px;
  color: rgba(255, 250, 240, 0.86);
  font-size: 14px;
  line-height: 1.45;
}

.form-status.success {
  color: rgba(255, 250, 240, 0.94);
  font-weight: 800;
}

.form-status.error {
  color: #ffd5c8;
  font-weight: 800;
}

/* Footer */
.footer {
  padding: 36px 10px 12px;
  color: rgba(255, 250, 240, 0.82);
  text-align: center;
  font-family: "Pinyon Script", "Great Vibes", cursive;
  font-size: clamp(28px, 10vw, 38px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.01em;
  opacity: 0.7;
}

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(28px) scale(0.985);
  transition:
    opacity 0.7s ease,
    transform 0.7s cubic-bezier(.2, .7, .2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.stagger > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.stagger.visible > * {
  opacity: 1;
  transform: translateY(0);
}

.stagger.visible > *:nth-child(2) { transition-delay: 0.08s; }
.stagger.visible > *:nth-child(3) { transition-delay: 0.16s; }
.stagger.visible > *:nth-child(4) { transition-delay: 0.24s; }
.stagger.visible > *:nth-child(5) { transition-delay: 0.32s; }

@keyframes formFieldIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Adaptive */
@media (max-width: 520px) {
  .choice-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .schedule-item {
    grid-template-columns: 66px 1fr;
  }

  .calendar-title {
    gap: 8px;
    letter-spacing: 0.03em;
  }

  .calendar-title-decor {
    width: 34px;
    max-height: 22px;
  }

  .calendar-grid {
    row-gap: 10px;
  }

  .place-title {
    font-size: clamp(42px, 12vw, 54px);
    letter-spacing: 0;
  }

  .place-buttons {
    gap: 10px;
  }

  .place-buttons .btn {
    padding-left: 12px;
    padding-right: 12px;
  }

    #organizer .organizer-buttons {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  #organizer .organizer-link,
  #organizer .contact-person {
    width: 100%;
    min-width: 0;
  }

  #organizer .organizer-buttons .btn {
    display: grid;
    grid-template-columns: 46px 1fr;
    align-items: center;
    width: 100%;
    min-height: 56px;
    padding: 7px 18px 7px 8px;
    column-gap: 10px;
  }

  #organizer .organizer-buttons .contact-icon {
    justify-self: start;
    width: 46px;
    height: 46px;
  }

  #organizer .organizer-buttons .contact-icon img {
    width: 40px;
    height: 40px;
    transform: scale(1.35);
  }

  #organizer .organizer-buttons .organizer-link-text {
    justify-self: center;
    width: 100%;
    text-align: center;
    white-space: nowrap;
  }

  #organizer .contact-person {
    font-size: 15px;
    letter-spacing: 0.035em;
  }

  .eyebrow{
    margin-bottom: 40px;
  }

  .wish-list li {
    padding: 15px 14px 15px 50px;
    line-height: 1.48;
  }

  .wish-list li::before {
    left: 15px;
    top: 18px;
    width: 40px;
    height: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}

#story .title {
  color: rgba(255, 250, 240, 0.96);
}

#story .subtitle {
  color: rgba(255, 250, 240, 0.88);
  line-height: 1.45;
}

.wedding-calendar,
.count-box,
.place-info,
.wish-list li,
.dress-card,
.choice-card,
.field input:not([type="radio"]):not([type="checkbox"]),
.field textarea,
.field select {
  color: var(--text);
}

.place-info p,
.wish-list li,
.dress-card p,
.form-status {
  color: rgba(36, 48, 31, 0.84);
}

.dress-card h3,
.place-info h3 {
  color: var(--text);
}

/* Story */
.story-title {
  width: 100%;
}

.story-layout {
  display: grid;
  gap: clamp(24px, 6vw, 34px);
  align-items: center;
}

.story-copy {
  min-width: 0;
}

.story-copy .subtitle {
  margin: 0 0 16px;
  color: rgba(255, 250, 240, 0.88);
}

.story-copy .subtitle:last-child {
  margin-bottom: 0;
}

.story-photo {
  margin: 0;
}

.story-photo img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

@media (min-width: 720px) {
  .story-layout {
    grid-template-columns: 1fr 0.82fr;
    margin-top: -5%;
  }
}

.footer-name {
  white-space: nowrap;
}

.footer-initial {
  display: inline-block;
  font-family: "BodegaScriptLocal", "Pinyon Script", "Great Vibes", cursive;
  font-size: 1.08em;
  line-height: 0;
  transform: translateY(0.02em);
}

.countdown-title-short {
  display: none;
}

@media (max-width: 520px) {  
  .choice-grid {
    grid-template-columns: 1fr;
  }

  .countdown-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .title{
    font-size: 36px;
  }

  .section::after {
    width: 150px;
    height: 150px;
    opacity: 0.70;
  }
}

@media (min-width: 421px) {
  #organizer .organizer-link,
  #organizer .contact-person {
    width: 200px;
    min-width: 200px;
  }
}