@font-face {
  font-family: "Courier Prime";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/courier-prime-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Courier Prime";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/courier-prime-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Courier Prime";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/courier-prime-700-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Courier Prime";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/courier-prime-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Forum";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/forum-400-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Forum";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/forum-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Marck Script";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/marck-script-400-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Marck Script";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/marck-script-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #eaf1f4;
  --text: #39424b;
  --muted: #6f7b86;
  --line: #94b8d3;
  --accent: #b49ca5;
  --accent-deep: #4e73a8;
  --paper: #f7f7f4;
  --paper-shadow: 0 24px 60px rgba(68, 86, 108, 0.12);
  --venue-block-width: clamp(250px, 19vw, 320px);
  --photo-filter-film: saturate(0.88) contrast(0.95) brightness(0.97) sepia(0.08);
  --font-display: "Forum", "Times New Roman", serif;
  --font-script: "Marck Script", cursive;
  --font-body: "Courier Prime", "Courier New", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: var(--font-body);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.95), transparent 28%),
    radial-gradient(circle at 82% 12%, rgba(245, 230, 220, 0.42), transparent 18%),
    radial-gradient(circle at bottom, rgba(159, 191, 215, 0.28), transparent 30%),
    linear-gradient(180deg, #f8fbfc, var(--bg));
  overflow-x: hidden;
}

a {
  color: inherit;
}

.page {
  position: relative;
  overflow: clip;
}

.scene {
  position: relative;
  min-height: 100vh;
  padding: 112px 24px 96px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  isolation: isolate;
}

.scene > :not(.scene-line) {
  position: relative;
  z-index: 1;
  animation: rise 0.8s ease both;
}

.scene-line {
  position: absolute;
  left: 0;
  width: 100vw;
  max-width: none;
  transform: none;
  z-index: 0;
  pointer-events: none;
  overflow: visible;
}

.scene-line path {
  stroke: var(--line);
  stroke-width: 2;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.scene-line--hero {
  top: 138px;
}

.scene-line--invite {
  top: 148px;
}

.scene-line--venue {
  top: 18px;
}

.scene-line--timeline {
  top: 138px;
  display: none;
}

.scene-line--dresscode {
  top: -252px;
}

.scene-line--countdown {
  top: 126px;
}

.hero {
  min-height: 100svh;
  gap: 0;
  padding-top: 40px;
  padding-bottom: 40px;
  justify-content: flex-start;
}

.scene-date {
  margin: 0 0 24px;
  font-family: var(--font-display);
  font-size: clamp(30px, 3vw, 56px);
  letter-spacing: 0.04em;
  line-height: 1;
}

.hero-title,
.scene-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  line-height: 0.86;
}

.hero-title {
  font-size: clamp(62px, 7.8vw, 136px);
}

.scene-title {
  font-size: clamp(64px, 7vw, 126px);
  max-width: 980px;
}

.amp {
  display: inline-block;
  transform: translateY(-0.03em);
}

.scene-script {
  margin: 8px 0 28px;
  color: var(--accent);
  font-family: var(--font-script);
  font-size: clamp(42px, 4vw, 76px);
  line-height: 0.82;
}

.scene-note {
  margin: 16px 0 0;
  max-width: 680px;
  color: var(--text);
  font-size: clamp(18px, 1.2vw, 24px);
  line-height: 1.34;
}

.scene-note--wide {
  max-width: 720px;
}

.hero-photo {
  position: relative;
  width: clamp(320px, 26vw, 430px);
  aspect-ratio: 0.72 / 1;
  margin-top: 12px;
  box-shadow: 0 30px 72px rgba(76, 96, 116, 0.18);
  overflow: hidden;
  background: #c8d7e4;
}

.hero-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 48%;
  filter: var(--photo-filter-film);
}

.scroll-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding-bottom: 2px;
  border-bottom: 1px solid currentColor;
  color: var(--line);
  font-family: var(--font-display);
  font-size: clamp(22px, 1.7vw, 30px);
  letter-spacing: 0.03em;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 0.25s ease, color 0.25s ease;
}

.scroll-link::after {
  content: none;
}

.scroll-link:hover,
.scroll-link:focus-visible {
  color: var(--accent);
  transform: translateY(2px);
}

@media (min-width: 761px) {
  .hero {
    height: 100svh;
    min-height: 100svh;
    padding-top: 20px;
    padding-bottom: 120px;
    overflow: hidden;
  }

  .hero .scene-date {
    margin-bottom: 14px;
    font-size: clamp(24px, 2.2vw, 38px);
  }

  .hero .hero-title {
    font-size: clamp(52px, 6vw, 96px);
  }

  .hero .scene-script {
    margin: 6px 0 16px;
    font-size: clamp(30px, 2.8vw, 48px);
  }

  .hero-photo {
    width: clamp(340px, 30vw, 470px);
    margin-top: 10px;
  }

  .hero .scroll-link {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 24px;
    width: fit-content;
    margin: 0 auto;
    transform: none;
  }

  .hero .scroll-link:hover,
  .hero .scroll-link:focus-visible {
    transform: translateY(2px);
  }
}

.invite {
  min-height: 88vh;
}

.invite-layout {
  width: min(560px, calc(100vw - 36px));
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.paper {
  position: relative;
  width: 100%;
  min-height: clamp(220px, 19vw, 280px);
  padding: clamp(28px, 2.4vw, 40px) clamp(20px, 2.3vw, 34px);
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(244, 246, 245, 0.98)),
    radial-gradient(circle at top, rgba(255, 255, 255, 0.9), transparent 52%),
    repeating-linear-gradient(180deg, rgba(109, 126, 142, 0.035) 0, rgba(109, 126, 142, 0.035) 2px, transparent 2px, transparent 6px),
    var(--paper);
  border: 1px solid rgba(133, 154, 172, 0.22);
  box-shadow: var(--paper-shadow);
  text-align: center;
}

.paper::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(180, 160, 168, 0.14);
  pointer-events: none;
}

.paper p {
  margin: 0;
  max-width: 32ch;
  font-size: clamp(17px, 1.1vw, 22px);
  line-height: 1.16;
  font-weight: 700;
  color: #48515a;
  text-wrap: balance;
}

.invite-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 22px;
  padding: 15px 28px;
  background: var(--accent-deep);
  color: #f8fbfc;
  font-family: var(--font-display);
  font-size: clamp(20px, 1.4vw, 26px);
  letter-spacing: 0.01em;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 0.25s ease, background-color 0.25s ease;
}

.invite-action:hover,
.invite-action:focus-visible {
  background: #365d8f;
  transform: translateY(-2px);
}

.invite-action-note {
  margin: 12px 0 0;
  max-width: 30ch;
  color: var(--muted);
  font-size: clamp(14px, 0.95vw, 17px);
  line-height: 1.35;
  text-align: center;
}

.story-photos {
  min-height: auto;
  padding-top: 64px;
  padding-bottom: 82px;
}

.story-photos .scene-title {
  max-width: none;
}

.story-photos .scene-script {
  margin-bottom: 20px;
}

.story-marquee {
  width: min(1280px, calc(100vw - 24px));
  padding: 10px clamp(20px, 4vw, 40px) 18px;
  overflow-x: auto;
  overflow-y: hidden;
  cursor: grab;
  scrollbar-width: none;
  touch-action: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

.story-track {
  --story-gap: clamp(18px, 2vw, 28px);
  display: flex;
  width: max-content;
  gap: var(--story-gap);
}

.story-group {
  display: flex;
  flex: 0 0 auto;
  gap: var(--story-gap);
}

.story-marquee::-webkit-scrollbar {
  display: none;
}

.story-card {
  flex: 0 0 auto;
  margin: 0;
}

.story-card img {
  display: block;
  width: auto;
  height: clamp(220px, 24vw, 320px);
  filter: var(--photo-filter-film);
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.story-marquee.is-dragging {
  cursor: grabbing;
}

.story-marquee:focus-visible {
  outline: 2px solid rgba(78, 115, 168, 0.45);
  outline-offset: 6px;
}

.story-hint {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: clamp(14px, 0.95vw, 17px);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.venue {
  min-height: 96vh;
}

.venue .scene-title {
  margin-top: clamp(110px, 12vw, 170px);
}

.transfer-route {
  width: min(720px, calc(100vw - 36px));
  margin-top: 28px;
  padding: 22px 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(247, 247, 244, 0.92)),
    var(--paper);
  border: 1px solid rgba(133, 154, 172, 0.24);
  box-shadow: 0 18px 42px rgba(76, 96, 116, 0.1);
}

.transfer-route__point {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 108px;
  justify-content: flex-start;
}

.transfer-route__point strong {
  font-family: var(--font-display);
  font-size: clamp(26px, 2.3vw, 36px);
  font-weight: 400;
  line-height: 0.94;
  text-transform: uppercase;
}

.transfer-route__address {
  color: var(--text);
  font-size: clamp(14px, 1vw, 18px);
  line-height: 1.28;
  text-decoration: none;
  transition: color 0.25s ease;
}

.transfer-route__address:hover,
.transfer-route__address:focus-visible {
  color: var(--accent-deep);
}

.transfer-route__label {
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.transfer-route__arrow {
  color: var(--accent-deep);
  font-family: var(--font-display);
  font-size: clamp(30px, 3vw, 44px);
  line-height: 1;
}

.transfer-route__note {
  grid-column: 1 / -1;
  margin: 4px 0 0;
  color: var(--text);
  font-size: clamp(15px, 1vw, 19px);
  line-height: 1.25;
}

.action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(720px, calc(100vw - 36px));
  margin-top: 26px;
  padding: 16px 20px;
  background: var(--accent-deep);
  color: #f8fbfc;
  font-family: var(--font-display);
  font-size: clamp(20px, 1.35vw, 25px);
  letter-spacing: 0.01em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  transition: transform 0.25s ease, background-color 0.25s ease;
}

.action-button:hover,
.action-button:focus-visible {
  background: #365d8f;
  transform: translateY(-2px);
}

.timeline {
  min-height: 76vh;
  padding-top: 156px;
  justify-content: flex-start;
}

.timeline-grid {
  width: min(1120px, 100%);
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 44px);
}

.timeline-item h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(52px, 3.7vw, 76px);
  font-weight: 400;
  line-height: 0.9;
}

.timeline-item p {
  margin: 0;
  font-size: clamp(16px, 1.05vw, 22px);
  line-height: 1.18;
}

.dresscode {
  min-height: 82vh;
}

.palette {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  margin-top: 32px;
}

.palette-swatch {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  box-shadow:
    inset 0 0 0 1px rgba(68, 82, 96, 0.08),
    0 10px 24px rgba(103, 122, 144, 0.12);
}

.palette-swatch--sand {
  background: #d3c8b9;
}

.palette-swatch--taupe {
  background: #ad9e97;
}

.palette-swatch--mist {
  background: #bebec7;
}

.palette-swatch--sky {
  background: #a2c2d8;
}

.palette-swatch--beige {
  background: #729fcb;
}

.dress-grid {
  width: min(1040px, 100%);
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 56px;
}

.dress-card h3 {
  margin: 0 0 18px;
  color: var(--accent);
  font-family: var(--font-script);
  font-size: clamp(44px, 3vw, 68px);
  line-height: 0.9;
}

.dress-card p {
  max-width: 360px;
  margin: 0 auto;
  font-size: clamp(16px, 1.05vw, 22px);
  line-height: 1.24;
}

.dress-card p {
  font-size: 0;
  line-height: 0;
}

.dress-card p::after {
  display: block;
  font-size: clamp(16px, 1.05vw, 22px);
  line-height: 1.24;
}

.dress-card:first-child p::after {
  content: "Легкие платья, костюмы и комплекты в светлых песочных, тауповых, серо-дымчатых и нежно-голубых оттенках.";
}

.dress-card:last-child p::after {
  content: "Льняные или легкие костюмы, рубашки и брюки в спокойных дневных оттенках из палитры праздника.";
}

.gifts-scene {
  min-height: 64vh;
  padding-top: 88px;
  padding-bottom: 88px;
}

.gifts-card {
  width: min(920px, calc(100vw - 36px));
  padding: clamp(34px, 4vw, 54px) clamp(22px, 4vw, 56px);
}

.gifts-note {
  margin: 26px auto 0;
  max-width: 30ch;
  color: var(--text);
  font-size: clamp(20px, 1.5vw, 30px);
  line-height: 1.3;
  text-wrap: balance;
}

.countdown-scene {
  min-height: 92vh;
}

.countdown-card {
  width: min(1130px, calc(100vw - 32px));
  padding: clamp(42px, 5vw, 76px) 28px;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.82), transparent 50%),
    radial-gradient(circle at bottom, rgba(159, 191, 215, 0.24), transparent 42%),
    repeating-linear-gradient(0deg, rgba(109, 126, 142, 0.03) 0, rgba(109, 126, 142, 0.03) 3px, transparent 3px, transparent 10px),
    var(--paper);
  border: 1.5px solid rgba(148, 184, 211, 0.82);
  box-shadow: var(--paper-shadow);
}

.countdown-card .scene-script {
  margin-bottom: 18px;
}

.countdown {
  width: min(640px, 100%);
  margin: 42px auto 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.count-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.count-item strong {
  font-family: var(--font-display);
  font-size: clamp(56px, 4.6vw, 82px);
  font-weight: 400;
  line-height: 0.86;
}

.count-item span {
  font-size: clamp(16px, 1vw, 20px);
  line-height: 1.1;
}

.contact-strip {
  width: min(720px, calc(100vw - 36px));
  margin: 6px auto 28px;
  padding: 0 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.contact-strip__text {
  margin: 0;
  max-width: 34ch;
  color: var(--muted);
  font-size: clamp(15px, 1vw, 18px);
  line-height: 1.35;
}

.contact-strip__phone {
  color: var(--accent-deep);
  font-family: var(--font-display);
  font-size: clamp(28px, 2.3vw, 40px);
  letter-spacing: 0.02em;
  text-decoration: none;
}

.contact-strip__phone:hover,
.contact-strip__phone:focus-visible {
  color: var(--accent);
}

.footer {
  padding: 10px 16px 68px;
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1040px) {
  .scene {
    min-height: auto;
    padding-top: 104px;
    padding-bottom: 88px;
  }

  .timeline-grid,
  .dress-grid {
    gap: 28px;
  }
}

@media (max-width: 760px) {
  .scene {
    padding: 92px 18px 72px;
  }

  .hero {
    padding-top: 28px;
    padding-bottom: calc(48px + env(safe-area-inset-bottom));
    min-height: 100dvh;
  }

  .scene-line {
    width: 100vw;
    opacity: 0.92;
  }

  .scene-line--hero {
    top: 236px;
  }

  .scene-line--invite {
    top: 180px;
  }

  .scene-line--venue {
    top: 28px;
  }

  .scene-line--timeline {
    top: 156px;
  }

  .scene-line--dresscode {
    top: -42px;
  }

  .scene-line--countdown {
    top: 166px;
  }

  .hero-title {
    font-size: clamp(62px, 16vw, 108px);
  }

  .scene-title {
    font-size: clamp(54px, 14vw, 90px);
  }

  .scene-script {
    margin-top: 10px;
    margin-bottom: 20px;
    font-size: clamp(38px, 10vw, 64px);
  }

  .hero-photo {
    width: min(82vw, 380px);
  }

  .story-photos {
    padding-top: 44px;
    padding-bottom: 72px;
  }

  .story-marquee {
    width: 100vw;
    padding-left: 18px;
    padding-right: 18px;
  }

  .story-track {
    --story-gap: 18px;
  }

  .story-card img {
    height: clamp(190px, 52vw, 240px);
  }

  .scroll-link {
    margin-top: 14px;
    margin-bottom: calc(6px + env(safe-area-inset-bottom));
  }

  .invite-layout {
    width: min(420px, calc(100vw - 24px));
  }

  .paper {
    width: 100%;
    min-height: 0;
    padding: 24px 16px;
  }

  .timeline {
    padding-top: 174px;
    justify-content: flex-start;
  }

  .venue .scene-title {
    margin-top: clamp(84px, 20vw, 128px);
  }

  .transfer-route {
    width: min(100%, 520px);
    padding: 18px 16px;
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .transfer-route__arrow {
    transform: rotate(90deg) translateX(-20px);
    justify-self: center;
    align-self: center;
    margin-top: 0;
    margin-bottom: 0;
  }

  .timeline-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 18px;
  }

  .dress-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .gifts-card {
    width: min(100%, 520px);
    padding: 28px 18px;
  }

  .countdown {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px 18px;
  }

  .action-button {
    width: min(720px, calc(100vw - 36px));
  }
}

@media (max-width: 520px) {
  .scene {
    padding-top: 84px;
    padding-bottom: 64px;
  }

  .hero {
    padding-top: 20px;
    padding-bottom: calc(40px + env(safe-area-inset-bottom));
    min-height: 100dvh;
  }

  .scene-date {
    font-size: 34px;
  }

  .scroll-link {
    font-size: 22px;
  }

  .hero-photo {
    width: min(84vw, 360px);
  }

  .invite-layout {
    width: calc(100vw - 28px);
  }

  .paper {
    width: 100%;
  }

  .timeline-grid {
    grid-template-columns: 1fr;
  }

  .countdown-card {
    width: calc(100vw - 20px);
    padding-left: 18px;
    padding-right: 18px;
  }

  .contact-strip {
    width: calc(100vw - 28px);
    padding: 0 6px;
  }
}
