:root {
  --accent: #c9b89a;
  --text: #2a2a2a;
  --muted: #888888;
  --bg1: #ffffff;
  --bg2: #f5f0eb;
  --bg3: #eeebe6;
  --cream: #f0ece4;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.08);

  --serif: 'Segoe UI', Arial, sans-serif;
  --script: "Great Vibes", cursive;

  --radius: 10px;

  --splash-image: none;
  --hero-image: none;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 20px;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg1);
  font-family: var(--serif);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button,
input {
  font: inherit;
}

.container {
  width: min(1240px, calc(100% - 56px));
  margin: 0 auto;
}

.center {
  text-align: center;
}

.muted {
  color: var(--muted);
}

.caps {
  font-family: var(--serif);
  text-transform: uppercase;
  letter-spacing: 4px;
}

.caps--wide {
  letter-spacing: 6px;
}

.script {
  font-family: var(--script);
  font-style: italic;
}

.h2 {
  margin: 0 0 16px;
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 600;
  line-height: 1.05;
}

.section {
  width: 100%;
  position: relative;
  overflow: clip;
  padding: 10px 0;
}

.section--photo {
  min-height: 100vh;
  padding: 0;
  display: grid;
  place-items: stretch;
}

.section--light {
  background: var(--bg1);
}

.section--paper {
  background:
    radial-gradient(1200px 600px at 18% 20%, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0) 65%),
    radial-gradient(900px 520px at 80% 70%, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0) 70%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.02)),
    var(--bg3);
}

.section--cream {
  background: var(--cream);
}

.section__bg,
.section__overlay {
  position: absolute;
  inset: 0;
}

.divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  color: var(--accent);
  margin: 14px 0 18px;
}

.divider--tight {
  margin: 12px 0;
}

.divider__line {
  height: 1px;
  background: currentColor;
  opacity: 0.85;
}

.divider__diamond {
  font-size: 16px;
  transform: translateY(-0.5px);
}

.splash {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  color: #fff;
  overflow: hidden;
}

.splash__bg {
  position: absolute;
  inset: 0;
  background: url('/assets/Main_nik/images/shapka.jpg') center/cover no-repeat;
  filter: blur(2px);
}

.splash__content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 18px 20px;
}

.splash__title {
  font-size: clamp(42px, 5vw, 56px);
  margin-bottom: 10px;
}

.splash__subtitle {
  font-size: 18px;
  opacity: 0.95;
  margin-bottom: 26px;
}

.pill {
  border: 0;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.82);
  color: #1f1f1f;
  border-radius: 50px;
  padding: 10px 18px 10px 12px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  transition: transform 180ms ease, background 180ms ease;
}

.pill:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.9);
}

.pill:active {
  transform: translateY(0);
}

.pill__icon {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.06);
  font-size: 18px;
}

.pill__text {
  font-size: 15px;
  letter-spacing: 0.4px;
}

.slider-track {
  position: relative;
  width: min(320px, 85%);
  height: 52px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  overflow: hidden;
  margin: 0 auto;
}

.slider-thumb {
  position: absolute;
  left: 3px;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  background: linear-gradient(135deg, #fff, #f0ece4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  z-index: 2;
  user-select: none;
  touch-action: none;
}

.slider-thumb::after {
  content: '';
  display: block;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 6px 0 6px 10px;
  border-color: transparent transparent transparent var(--accent);
  margin-left: 2px;
}

.slider-thumb:active {
  cursor: grabbing;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.25);
}

.slider-label {
  color: rgba(255, 255, 255, 0.75);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  pointer-events: none;
  z-index: 1;
}

.slider-thumb {
  position: absolute;
  left: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
  transition: left 0.1s ease;
  z-index: 2;
  user-select: none;
  touch-action: none;
}

.slider-thumb:active {
  cursor: grabbing;
}

.slider-thumb span {
  font-size: 22px;
  color: var(--accent);
  font-weight: 700;
}

.slider-label {
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  pointer-events: none;
  z-index: 1;
  position: absolute;
}

.splash.is-hiding {
  pointer-events: none;
  animation: splashOut 800ms ease forwards;
}

@keyframes splashOut {
  to {
    opacity: 0;
    filter: blur(20px);
    visibility: hidden;
  }
}

.hero__bg {
  background:
    url('/assets/Main_nik/images/shapka.jpg') center center / cover no-repeat,
    radial-gradient(900px 600px at 65% 35%, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0) 60%),
    linear-gradient(135deg, #2a2a2a, #3a332d, #2a2a2a);
  filter: saturate(1.03);
}

.hero__overlay {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.58));
}

.hero__header {
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  padding: 0;
  z-index: 1;
}

.hero__headerImg {
  max-width: none;
  height: auto;
}

.hero {
  color: #fff;
  position: relative;
}

.hero__top {
  position: absolute;
  top: 36px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 13px;
  opacity: 0.95;
  z-index: 2;
}

.hero__bottom {
  position: absolute;
  left: 36px;
  right: 36px;
  bottom: 48px;
  z-index: 2;
}

.hero__names {
  display: grid;
  gap: 6px;
}

.hero__name {
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 0.95;
}

.hero__name--first {
  font-size: clamp(54px, 8.8vw, 120px);
}

.hero__pair {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.hero__amp {
  color: rgba(255, 255, 255, 0.55);
  font-weight: 600;
  font-size: clamp(38px, 5.5vw, 86px);
  line-height: 1;
}

.hero__name--second {
  font-size: clamp(46px, 7.8vw, 108px);
}

.hero__date {
  margin-top: 12px;
  font-size: 18px;
  letter-spacing: 2px;
  opacity: 0.95;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: center;
}

.two-col--wide {
  grid-template-columns: 1.05fr 0.95fr;
  gap: 30px;
}

.family__text {
  padding: 8px 0;
}

.family__text p {
  margin: 0;
  font-size: 18px;
  line-height: 1.75;
}

.lineart {
  width: min(520px, 100%);
  color: #333;
}

.date__big {
  font-size: clamp(40px, 5.6vw, 66px);
  line-height: 1.05;
  font-weight: 600;
  text-align: center;
}

.calendar {
  background: rgba(255, 255, 255, 0.55);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.06);
  width: min(500px, 100%);
  margin: 0 auto;
  backdrop-filter: blur(1px);
}

.calendar__script {
  text-align: center;
  font-family: var(--script);
  font-size: clamp(36px, 3.5vw, 50px);
  color: rgba(42, 42, 42, 0.7);
  line-height: 1;
  margin-bottom: 12px;
}

.calendar__monthRow {
  display: grid;
  justify-items: center;
  gap: 6px;
  margin-bottom: 14px;
}

.calendar__month {
  font-size: 18px;
  letter-spacing: 4px;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(42, 42, 42, 0.76);
}

.calendar__caret {
  font-size: 12px;
  color: rgba(42, 42, 42, 0.6);
  line-height: 1;
}

.calendar__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0px;
  font-size: 18px;
  color: #333;
}

.calendar__dow {
  font-size: 16px;
  letter-spacing: 5px;
  font-weight: 500;
  color: rgba(20, 20, 20, 0.75);
  text-align: center;
  padding: 10px 0 6px;
}

.calendar__dow--weekend {
  color: #d24b4b;
}

.calendar__cell {
  text-align: center;
  padding: 12px 0;
  vertical-align: middle;
  box-sizing: border-box;
}

.calendar__cell--muted {
  color: #b3b3b3;
}

.calendar__cell--active {
  position: relative;
  color: #d24b4b;
}

.calendar__cell--active::before,
.calendar__cell--active::after {
  display: none;
}

.calendar__marker {
  position: absolute;
  left: 50%;
  top: calc(50% - 10px);
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  pointer-events: none;
}

.calendar__markerImg {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transform-origin: 50% 50%;
  transform: rotate(0deg) translateY(-3px) translateX(3px);
}

.calendar__markerNum {
  position: absolute;
  left: 48%;
  top: calc(45% - -3px);
  transform: translate(-50%, -50%);
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  color: #d24b4b;
  letter-spacing: 0.5px;
  z-index: 2;
}

.calendar__dayNum {
  position: relative;
  z-index: 1;
  background: transparent;
  color: inherit;
  display: inline-block;
  min-width: 40px;
  height: 40px;
  line-height: 40px;
  border-radius: 0;
  padding: 0 2px;
  font-weight: 500;
}

.calendar__cell--active .calendar__dayNum {
  opacity: 0;
}

.calendar__bottomLine {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 16px;
}

.calendar__bottomRule {
  height: 1px;
  background: rgba(42, 42, 42, 0.55);
  flex: 1;
  max-width: 120px;
}

.calendar__bottomDate {
  font-size: 30px;
  letter-spacing: 4px;
  font-weight: 500;
  color: rgba(42, 42, 42, 0.85);
  white-space: nowrap;
}

.ceremony__wrap {
  display: grid;
  gap: 16px;
  justify-items: center;
}

.ceremony__gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  width: min(860px, 100%);
  margin: 0 auto;
}

@media (max-width: 520px) {
  .ceremony__gallery {
    grid-template-columns: 1fr;
  }
}

.ceremony__img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.ceremony__venue {
  margin-top: -10px;
  font-size: 20px;
  letter-spacing: 1.2px;
  color: rgba(42, 42, 42, 0.82);
}

.scrollShowcase {
  width: min(860px, 100%);
  position: relative;
}

.scrollShowcase__media {
  position: sticky;
  top: 16px;
  height: min(72vh, 560px);
  border-radius: 12px;
  overflow: hidden;
  background: #f7f4ef;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.12);
}

.scrollShowcase__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transform: translateY(18px) scale(1.01);
  filter: blur(2px);
  transition:
    opacity 600ms ease,
    transform 800ms cubic-bezier(0.2, 0.8, 0.2, 1),
    filter 800ms cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: opacity, transform, filter;
}

.scrollShowcase__img.is-active {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

.scrollShowcase__steps {
  height: calc(2 * 34vh);
}

.scrollShowcase__step {
  height: 34vh;
}

.ceremony__meta {
  width: min(760px, 100%);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 18px;
}

.ceremony__placeTitle {
  font-size: 22px;
  font-weight: 600;
}

.ceremony__placeDesc {
  margin-top: 6px;
  font-size: 16px;
  line-height: 1.6;
}

.chipLink {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 4px;
  text-decoration: none;
  color: #2f2f2f;
  background: #d4cfc6;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: transform 180ms ease, filter 180ms ease;
}

.chipLink:hover {
  transform: translateY(-1px);
  filter: brightness(1.02);
}

.ceremony__time {
  width: min(760px, 100%);
  font-size: 16px;
}

.dress__text {
  margin: 0 auto 16px;
  width: min(760px, 100%);
  font-size: 18px;
  line-height: 1.75;
  color: #555;
}

.dressTabs {
  width: min(760px, 100%);
  margin: 0 auto 10px;
  display: flex;
  justify-content: center;
  gap: 14px;
}

.dressTab {
  appearance: none;
  border: 1px solid rgba(201, 184, 154, 0.75);
  background: rgba(255, 255, 255, 0.5);
  color: #2a2a2a;
  border-radius: 999px;
  padding: 12px 18px;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.dressTab:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.65);
}

.dressTab.is-active {
  border-color: rgba(201, 184, 154, 1);
  background: rgba(201, 184, 154, 0.22);
}

.dressPanel {
  width: min(1200px, 100%);
  margin: 0 auto;
}

.dressPanel[hidden] {
  display: none;
}

#dress-men .dress__imgRow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin: 18px 0 14px;
}

#dress-women .dress__imgRow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin: 18px 0 14px;
}



.dress__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.dress__imgPlaceholder {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 10px;
  background:
    radial-gradient(520px 220px at 50% 12%, rgba(201, 184, 154, 0.2), rgba(255, 255, 255, 0) 60%),
    linear-gradient(135deg, rgba(0, 0, 0, 0.03), rgba(0, 0, 0, 0.07));
  border: 1px dashed rgba(201, 184, 154, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px;
  color: rgba(42, 42, 42, 0.55);
  font-family: var(--serif);
  letter-spacing: 0.3px;
}

.dress__img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  display: block;
  border-radius: 10px;
}

.dress__img--contain {
  object-fit: contain;
  background: #f5f0eb;
}

.swatch {
  width: 80px;
  height: 80px;
  border-radius: 999px;
  border: 1px solid rgba(201, 184, 154, 0.85);
  background: var(--swatch);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.dress__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  scroll-snap-align: center;
  flex: 0 0 auto;
}

.dress__card .swatch {
  width: 50px;
  height: 50px;
}

.dress__card .dress__imgPlaceholder {
  width: 100%;
  flex: none;
}

.swatches {
  display: none;
}

@media (max-width: 520px) {
  .swatches {
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
    margin-top: 10px;
  }
}

.swatch {
  width: 80px;
  height: 80px;
  border-radius: 999px;
  border: 1px solid rgba(201, 184, 154, 0.85);
  background: var(--swatch);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.program .h2 {
  font-size: 24px;
  text-align: left;
  margin-left: 0;
}

.program__items {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 20px;
  margin-top: 20px;
  flex-wrap: wrap;
  margin-left: 0;
}

.program__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 150px;
}

.program__icon {
  width: 120px;
  height: 120px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.program__img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.program__text {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
  text-align: center;
}

.program__time {
  font-size: 14px;
  color: rgba(42, 42, 42, 0.85);
  letter-spacing: 1px;
}

.rsvp__deadline {
  margin: 10px 0 16px;
  font-size: 36px;
  letter-spacing: 3px;
}

.cardForm {
  width: min(760px, 100%);
  margin: 0 auto;
  background: #e8e4de;
  border-radius: 8px;
  padding: 40px;
}

.cardForm__label {
  text-align: left;
  font-size: 14px;
  color: #555;
  margin: 14px 0 10px;
  letter-spacing: 0.3px;
}

.input {
  width: 100%;
  padding: 12px 12px;
  border: 1px solid rgba(0, 0, 0, 0.16);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.78);
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.input:focus {
  border-color: rgba(201, 184, 154, 0.9);
  box-shadow: 0 0 0 4px rgba(201, 184, 154, 0.18);
}

.fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

.radio {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: #333;
  padding: 6px 0;
  text-align: left;
}

.radio input {
  accent-color: #111;
}

.submitBtn {
  display: block;
  width: 100%;
  padding: 18px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 1px;
  cursor: pointer;
  transition: background 200ms ease;
  margin-top: 20px;
}

.submitBtn:hover {
  background: #b8a88a;
}

.submitBtn:disabled,
.submitBtn.is-disabled {
  background: #c0c0c0;
  cursor: not-allowed;
  opacity: 0.7;
}

.submitBtn:disabled:hover,
.submitBtn.is-disabled:hover {
  background: #c0c0c0;
}

.submit-hint {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  margin-top: 10px;
  min-height: 20px;
}

.input.is-error {
  border-color: #d32f2f;
  background: rgba(211, 47, 47, 0.05);
}

.input.is-error:focus {
  box-shadow: 0 0 0 4px rgba(211, 47, 47, 0.18);
}

.fieldset.is-error {
  outline: none;
  border-radius: 4px;
  padding: 4px 8px;
  margin: -4px -8px;
  background: rgba(211, 47, 47, 0.06);
  border-left: 3px solid #d32f2f;
}

.captcha-box.is-error {
  border-color: #d32f2f;
  background: rgba(211, 47, 47, 0.05);
}

.captcha-success-msg {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px;
  background: rgba(76, 175, 80, 0.08);
  border: 1px solid #4caf50;
  border-radius: 8px;
  color: #2e7d32;
  font-size: 15px;
  margin-top: 20px;
}

.captcha-success-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #4caf50;
  color: #fff;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.field-error {
  color: #d32f2f;
  font-size: 12px;
  margin-top: 4px;
  margin-bottom: 8px;
  display: block;
}

.captcha-box {
  margin-top: 20px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 8px;
  border: 1px solid rgba(201, 184, 154, 0.3);
}

.captcha-step {
  display: none;
}

.captcha-step.is-active {
  display: block;
}

.captcha-checkbox {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
  font-size: 16px;
  color: #333;
}

.captcha-checkbox input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.captcha-checkmark {
  width: 24px;
  height: 24px;
  border: 2px solid #aaa;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.captcha-checkmark::after {
  content: '✓';
  font-size: 16px;
  color: #fff;
  opacity: 0;
  transform: scale(0);
  transition: all 0.2s ease;
}

.captcha-checkbox input[type="checkbox"]:checked+.captcha-checkmark {
  background: var(--accent);
  border-color: var(--accent);
}

.captcha-checkbox input[type="checkbox"]:checked+.captcha-checkmark::after {
  opacity: 1;
  transform: scale(1);
}

.captcha-checkbox:hover .captcha-checkmark {
  border-color: var(--accent);
}

.captcha-label {
  font-family: var(--serif);
  font-size: 15px;
}

.captcha-slider-text {
  text-align: center;
  font-size: 14px;
  color: #666;
  margin-bottom: 12px;
}

.captcha-slider-wrap {
  position: relative;
  height: 50px;
  user-select: none;
}

.captcha-slider-track {
  position: relative;
  height: 48px;
  background: transparent;
  border-radius: 24px;
  padding: 2px;
  overflow: visible;
}

.captcha-slider-track::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 22px;
  border: 2px solid #ccc;
  pointer-events: none;
  z-index: 0;
}

.captcha-slider-progress {
  position: absolute;
  top: 2px;
  left: 2px;
  bottom: 2px;
  background: linear-gradient(90deg, var(--accent), #d4c4a8);
  width: 0;
  border-radius: 20px 0 0 20px;
  z-index: 1;
}

.captcha-slider-thumb {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: #fff;
  border: 3px solid var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  z-index: 2;
}

.captcha-slider-thumb span {
  font-size: 18px;
  color: var(--accent);
  pointer-events: none;
}

.captcha-slider-thumb:hover {
  border-color: #b8a88a;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.captcha-slider-thumb:active {
  cursor: grabbing;
}

.captcha-slider-success {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 40px;
  height: 40px;
  background: #4caf50;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 1;
}

.captcha-slider-success.is-visible {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

.captcha-box.is-verified {
  border-color: #4caf50;
  background: rgba(76, 175, 80, 0.05);
}

.captcha-box.is-verified .captcha-slider-track::before {
  border-color: #4caf50;
}

.captcha-box.is-verified .captcha-slider-progress {
  background: linear-gradient(90deg, #4caf50, #66bb6a);
}

.captcha-box.is-verified .captcha-slider-thumb {
  border-color: #4caf50;
  cursor: default;
}

.captcha-box.is-verified .captcha-slider-thumb span {
  color: #4caf50;
}


.footerTimer {
  width: 100%;
  background: var(--bg2);
  color: var(--text);
  padding: 40px 0 44px;
  position: sticky;
  bottom: 0;
  z-index: -5;
}

.footerTimer__inner {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  text-align: center;
}

.footerTimer__title {
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--muted);
}

.footerTimer__value {
  margin-top: 10px;
  font-size: clamp(28px, 4.5vw, 52px);
  font-weight: 600;
  letter-spacing: 5px;
  color: var(--text);
}

.footerTimer__hint {
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 1px;
}


[data-reveal] {
  opacity: 0;
  transform: translateY(20px) scale(0.97);
  transition: opacity 800ms cubic-bezier(0.2, 0.8, 0.2, 1), transform 800ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.is-visible[data-reveal] {
  opacity: 1;
  transform: translateY(0);
}


@media (max-width: 900px) {

  .two-col,
  .two-col--wide {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .hero__bottom {
    left: 22px;
    right: 22px;
    bottom: 44px;
  }

  .ceremony__meta {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .chipLink {
    justify-self: start;
  }

  .program__items {
    gap: 20px;
    flex-direction: column;
    align-items: center;
  }

  .program__icon {
    width: 70px;
    height: 70px;
  }
}

@media (max-width: 520px) {
  .section {
    padding: 8px 0;
  }

  .container {
    width: calc(100% - 32px);
  }

  .splash__subtitle {
    font-size: 15px;
    letter-spacing: 3px;
  }

  .pill__text {
    font-size: 14px;
  }

  .hero__bottom {
    text-align: center;
  }

  .hero__names {
    justify-items: center;
  }

  .hero__pair {
    justify-content: center;
  }



  .calendar {
    padding: 20px;
  }

  .calendar__script {
    margin-bottom: 12px;
  }

  .calendar__dow {
    letter-spacing: 4px;
    padding-top: 12px;
  }

  .calendar__bottomDate {
    font-size: 24px;
  }

  .dressTabs {
    gap: 10px;
    flex-wrap: wrap;
  }

  .dressTab {
    padding: 10px 14px;
    letter-spacing: 1.6px;
  }

  #dress-men .dress__imgRow,
  #dress-women .dress__imgRow {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 0;
    padding: 0;
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scroll-padding: 0;
    flex-wrap: nowrap;
  }

  .dress__card {
    flex: 0 0 100%;
    max-width: 100%;
    scroll-snap-align: start;
  }

  .dress__card .dress__imgPlaceholder {
    width: 100%;
    min-height: 300px;
    flex: none;
  }

  .dress__card .dress__img {
    width: 100%;
    min-height: 300px;
    flex: none;
  }

  .dress__card .swatch {
    width: 50px;
    height: 50px;
  }



  .scrollShowcase__media {
    top: 10px;
    height: min(62vh, 460px);
  }

  .scrollShowcase__steps {
    height: calc(2 * 42vh);
  }

  .scrollShowcase__step {
    height: 42vh;
  }

  .program__items {
    gap: 20px;
    flex-direction: column;
    align-items: center;
  }

  .program__icon {
    width: 90px;
    height: 90px;
  }



  .hero__header {
    padding: 10px;
  }

  .hero__bg {
    background-position: center 10%;
  }

  .footerTimer__value {
    letter-spacing: 4px;
  }
}

.dress__imgRow::-webkit-scrollbar {
  height: 6px;
}

.dress__imgRow::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 10px;
}

.dress__imgRow::-webkit-scrollbar-thumb {
  background: rgba(201, 184, 154, 0.5);
  border-radius: 10px;
}

.dress__imgRow {
  scrollbar-width: thin;
  scrollbar-color: rgba(201, 184, 154, 0.5) rgba(0, 0, 0, 0.05);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 300ms ease, visibility 300ms ease;
}

.modal.is-visible {
  opacity: 1;
  visibility: visible;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.modal__content {
  position: relative;
  background: #fff;
  border-radius: 16px;
  padding: 40px 32px;
  text-align: center;
  max-width: 340px;
  width: calc(100% - 32px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
  transform: scale(0.9);
  transition: transform 300ms ease;
}

.modal.is-visible .modal__content {
  transform: scale(1);
}

.modal__icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.modal__title {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 12px;
}

.modal__text {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 24px;
}

.modal__btn {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 14px 32px;
  font-size: 16px;
  border-radius: 30px;
  cursor: pointer;
  font-family: var(--serif);
  transition: background 200ms ease;
}

.modal__btn:hover {
  background: #b8a389;
}

@media (max-width: 520px) {
  .modal__content {
    padding: 32px 24px;
  }

  .modal__title {
    font-size: 24px;
  }

  .modal__text {
    font-size: 15px;
  }
}

@media (max-width: 520px) {
  .hero__header {
    top: -10px;
  }
}