:root {
  --ink: #1f241c;
  --paper: #f5efe4;
  --ivory: #ffffff;
  --wine: #7b2538;
  --wine-soft: #c9a0a9;
  --forest: #20382e;
  --forest-soft: #d7dfd2;
  --ember: #b98a5a;
  --steel: #9fb0a5;
  --gold: #9a7446;
  --acid: #7b2538;
  --lavender: #d7d1cc;
  --sage: #c9d2bd;
  --sand: #ddcbb2;
  --shadow: rgba(38, 43, 32, 0.22);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

[hidden] {
  display: none !important;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(circle at 12% 12%, rgba(123, 37, 56, 0.16), transparent 24rem),
    radial-gradient(circle at 82% 18%, rgba(32, 56, 46, 0.18), transparent 28rem),
    radial-gradient(circle at 52% 70%, rgba(154, 116, 70, 0.16), transparent 30rem),
    linear-gradient(140deg, #f5efe4, #e8dccb 58%, #d8c7ad);
}

a {
  color: inherit;
  text-decoration: none;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 40;
  opacity: 0.13;
  mix-blend-mode: multiply;
  background-image:
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 5px 5px;
}

.cursor-light {
  position: fixed;
  width: 28rem;
  height: 28rem;
  left: var(--mouse-x, 50vw);
  top: var(--mouse-y, 50vh);
  transform: translate(-50%, -50%);
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(circle, rgba(123, 37, 56, 0.18), transparent 62%);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  color: var(--ivory);
  color: var(--ink);
  background: linear-gradient(rgba(245, 239, 228, 0.94), rgba(245, 239, 228, 0.62));
  border-bottom: 1px solid rgba(32, 56, 46, 0.13);
  backdrop-filter: blur(18px);
}

.brand {
  width: 2.45rem;
  height: 2.45rem;
  display: grid;
  place-items: center;
  border: 1px solid rgba(37, 32, 29, 0.22);
  border-radius: 50%;
  font-family: "Playfair Display", serif;
  font-size: 0.95rem;
  font-weight: 800;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.66);
  backdrop-filter: blur(14px);
}

nav {
  display: flex;
  align-items: center;
  gap: clamp(0.65rem, 2vw, 1.6rem);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

nav a {
  opacity: 0.78;
  transition: opacity 180ms ease, color 180ms ease;
}

nav a:hover {
  color: var(--wine);
  opacity: 1;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  padding: 8rem clamp(1.1rem, 5vw, 4rem) 5rem;
  isolation: isolate;
  overflow: hidden;
}

.hero-media,
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media img {
  width: 100%;
  height: 112%;
  object-fit: cover;
  transform: translateY(calc(var(--scroll, 0) * 0.08px)) scale(1.04);
  filter: saturate(0.86) contrast(1.08) sepia(0.12);
}

.hero-shade {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(245,239,228,.98), rgba(245,239,228,.74) 42%, rgba(245,239,228,.08)),
    linear-gradient(0deg, var(--paper) 0%, rgba(245,239,228, 0) 38%),
    radial-gradient(circle at 24% 50%, rgba(123,37,56,.14) 0 20rem, rgba(255, 255, 255, 0.04) 55rem);
}

.hero-content {
  width: min(760px, 100%);
  transform: translateY(calc(var(--scroll, 0) * -0.035px));
}

.edition-route {
  width: max-content;
  max-width: 100%;
  margin-bottom: 1rem;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.62rem;
  color: rgba(37, 32, 29, 0.72);
  font: 900 0.68rem/1.45 Inter, sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}

.edition-route s {
  display: inline;
  opacity: 0.64;
  text-decoration-color: var(--wine);
  text-decoration-thickness: 0.14em;
}

.edition-route span {
  display: inline;
}

.edition-route span + s::before,
.edition-route s + span::before {
  content: "·";
  display: inline-block;
  margin-right: 0.62rem;
  color: rgba(37, 32, 29, 0.42);
  text-decoration: none;
}

.eyebrow,
.section-kicker,
.poster-copy span,
.details span {
  margin: 0 0 1rem;
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 1.3rem;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(5rem, 15vw, 12rem);
  line-height: 0.78;
  letter-spacing: 0;
}

h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2.35rem, 5vw, 5.8rem);
  line-height: 0.93;
  letter-spacing: 0;
}

h3 {
  font-size: clamp(1.15rem, 2vw, 1.65rem);
  line-height: 1.05;
}

.hero-copy {
  max-width: 660px;
  color: rgba(37, 32, 29, 0.78);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.55;
}

.hero-actions,
.contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.button {
  min-height: 3.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.25rem;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.primary {
  background: var(--forest);
  color: var(--ivory);
}

.ghost {
  border: 1px solid rgba(37, 32, 29, 0.22);
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(14px);
}

.date-plate {
  position: absolute;
  right: clamp(1rem, 4vw, 4rem);
  bottom: clamp(1.25rem, 5vw, 4rem);
  width: min(18rem, calc(100% - 2rem));
  padding: 1.25rem;
  border: 1px solid rgba(32, 56, 46, 0.22);
  background: rgba(245, 239, 228, 0.72);
  backdrop-filter: blur(18px);
}

.date-plate span {
  display: block;
  color: rgba(37, 32, 29, 0.62);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.date-plate strong {
  display: block;
  margin: 0.45rem 0;
  color: var(--ink);
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1;
}

.float-object {
  position: absolute;
  z-index: 3;
  pointer-events: none;
  will-change: transform;
}

.ring {
  width: clamp(4rem, 9vw, 8rem);
  height: clamp(4rem, 9vw, 8rem);
  display: grid;
  place-items: center;
  color: rgba(163, 101, 120, 0.66);
  font-size: clamp(6rem, 14vw, 12rem);
  font-family: Georgia, serif;
  line-height: 0.6;
  filter: drop-shadow(0 1.5rem 2.2rem rgba(0, 0, 0, 0.55));
}

.ring-a {
  top: 19%;
  right: 21%;
}

.ring-b {
  bottom: 18%;
  left: 42%;
  opacity: 0.5;
}

.wine-stamp {
  top: 16%;
  right: 18%;
  width: clamp(4.8rem, 9vw, 7.2rem);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 250, 243, 0.62);
  border-radius: 50%;
  color: var(--paper);
  background: rgba(111, 31, 52, 0.72);
  font: 900 clamp(0.62rem, 1vw, 0.86rem)/1.12 Inter, sans-serif;
  letter-spacing: 0.14em;
  text-align: center;
  text-transform: uppercase;
  box-shadow: 0 1.4rem 2.4rem rgba(43, 23, 26, 0.28);
}

.route-note {
  right: 8%;
  bottom: 18%;
  padding: 0.7rem 0.85rem;
  border: 1px solid rgba(255, 250, 243, 0.56);
  color: var(--paper);
  background: rgba(17, 34, 24, 0.72);
  font: 900 clamp(0.58rem, 1vw, 0.78rem)/1 Inter, sans-serif;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transform: rotate(-4deg);
  box-shadow: 0 1.2rem 2rem rgba(43, 23, 26, 0.24);
}

.cork-mark {
  top: 41%;
  right: 34%;
  width: 3.1rem;
  height: 5.2rem;
  display: grid;
  place-items: center;
  border-radius: 1.4rem 1.4rem 0.34rem 0.34rem;
  color: rgba(37, 32, 29, 0.72);
  background:
    linear-gradient(90deg, rgba(255,255,255,.18), transparent 34%),
    linear-gradient(135deg, #d9b673, #f0d79c 46%, #a87838);
  font: 900 0.55rem/1 Inter, sans-serif;
  letter-spacing: 0.12em;
  writing-mode: vertical-rl;
  text-transform: uppercase;
  box-shadow: 0 1.2rem 1.7rem rgba(43, 23, 26, 0.2);
}

.note {
  top: 24%;
  left: 54%;
  padding: 1rem 1.2rem;
  color: #1a1110;
  background: var(--ivory);
  font: 800 0.82rem/1.05 Inter, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  transform: rotate(-7deg);
  box-shadow: 0 1.4rem 2.4rem rgba(0, 0, 0, 0.36);
}

.blade {
  right: 12%;
  top: 42%;
  width: 10rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(37, 32, 29, 0.24), transparent);
}

.marquee {
  overflow: hidden;
  padding: 1.1rem 0;
  border-block: 1px solid rgba(37, 32, 29, 0.12);
  background: var(--forest);
  color: var(--paper);
}

.marquee div {
  display: flex;
  width: max-content;
  gap: 2rem;
  animation: marquee 24s linear infinite;
}

.marquee span {
  font-family: "Playfair Display", serif;
  font-size: clamp(1.5rem, 4vw, 3.25rem);
  white-space: nowrap;
}

.marquee span::after {
  content: " /";
  color: var(--wine-soft);
}

.bandit-toggle {
  position: absolute;
  right: clamp(1rem, 4vw, 4rem);
  top: 28%;
  z-index: 5;
  min-height: 2.85rem;
  padding: 0.8rem 1rem;
  border: 1px solid rgba(43, 23, 26, 0.2);
  border-radius: 999px;
  color: var(--paper);
  background: rgba(32, 56, 46, 0.88);
  box-shadow: 0 1rem 2.4rem rgba(112, 64, 78, 0.26);
  backdrop-filter: blur(14px);
  cursor: pointer;
  font: 800 0.72rem/1 Inter, sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

body.bandit-mode .bandit-toggle {
  color: var(--wine);
  background: rgba(245, 239, 228, 0.86);
}

body.bandit-mode .hero {
  cursor: crosshair;
}

section {
  position: relative;
}

.section-grid {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(5rem, 11vw, 10rem) 0;
  display: grid;
  grid-template-columns: 0.56fr 1.4fr 1fr;
  gap: clamp(1.5rem, 4vw, 4rem);
}

.copy-block {
  color: rgba(37, 32, 29, 0.66);
  font-size: 1.05rem;
  line-height: 1.75;
}

.archive {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(5rem, 10vw, 9rem) 0 0;
  display: grid;
  grid-template-columns: minmax(18rem, 0.82fr) minmax(28rem, 1.18fr);
  gap: clamp(2rem, 5vw, 5.5rem);
  align-items: start;
}

.archive-copy h2 {
  max-width: 13ch;
  font-size: clamp(2.45rem, 3.8vw, 4rem);
  line-height: 1;
}

.archive-copy p:not(.section-kicker) {
  max-width: 34rem;
}

.archive-copy p:not(.section-kicker) {
  color: rgba(43, 23, 26, 0.68);
  line-height: 1.75;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
}

.evidence-card {
  min-height: clamp(22rem, 30vw, 28rem);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 0.72rem;
  padding: 0.9rem;
  border: 1px solid rgba(32, 56, 46, 0.18);
  border-radius: 8px;
  color: var(--ink);
  text-align: left;
  box-shadow: 0 1.5rem 3rem var(--shadow);
  cursor: pointer;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.evidence-card:hover,
.evidence-card.is-active {
  transform: translateY(-6px) rotate(-1deg);
  border-color: rgba(163, 101, 120, 0.5);
  box-shadow: 0 2rem 4rem rgba(112, 64, 78, 0.25);
}

.yana-file {
  background:
    radial-gradient(circle at 20% 18%, rgba(240, 212, 146, 0.65) 0 4rem, transparent 4.2rem),
    radial-gradient(circle at 80% 16%, rgba(123, 37, 56, 0.24) 0 5rem, transparent 5.2rem),
    linear-gradient(145deg, #f8efe2, #d7dfd2);
}

.matvey-file {
  background:
    radial-gradient(circle at 78% 18%, rgba(43, 23, 26, 0.88) 0 2.5rem, transparent 2.7rem),
    radial-gradient(circle at 34% 34%, rgba(123, 37, 56, 0.34) 0 5rem, transparent 5.2rem),
    linear-gradient(145deg, #d7c6aa, #20382e);
}

.child-photo {
  position: relative;
  width: 100%;
  min-height: clamp(14rem, 17vw, 17rem);
  display: grid;
  place-items: end start;
  padding: 0.85rem;
  border: 0.7rem solid rgba(255, 255, 255, 0.92);
  border-bottom-width: 2.2rem;
  box-shadow: 0 1rem 2rem rgba(112, 64, 78, 0.22);
  transform: rotate(-2deg);
  overflow: hidden;
}

.child-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.yana-photo img {
  object-position: 50% 28%;
}

.matvey-photo img {
  object-position: 50% 44%;
}

.child-photo span {
  position: relative;
  z-index: 1;
  padding: 0.45rem 0.6rem;
  color: var(--paper);
  background: rgba(40, 22, 28, 0.72);
  font-size: 0.68rem;
}

.yana-photo {
  background:
    radial-gradient(circle at 18% 24%, #f2d879 0 2.8rem, transparent 3rem),
    radial-gradient(circle at 65% 18%, rgba(255,255,255,.82) 0 3rem, transparent 3.2rem),
    radial-gradient(circle at 52% 48%, rgba(123,37,56,.24) 0 4.4rem, transparent 4.6rem),
    linear-gradient(145deg, #f6e0b9, #b7c18f 52%, #20382e);
}

.matvey-photo {
  transform: rotate(2deg);
  background:
    radial-gradient(circle at 68% 18%, rgba(40,22,28,.88) 0 2rem, transparent 2.15rem),
    radial-gradient(circle at 48% 42%, rgba(40,22,28,.32) 0 3.4rem, transparent 3.6rem),
    linear-gradient(145deg, #d9b39e, #7b2538 58%, #20382e);
}

.evidence-card span,
.evidence-card small {
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.evidence-card strong {
  max-width: 100%;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.35rem, 2.05vw, 2rem);
  line-height: 1;
}

.evidence-output {
  min-height: 4rem;
  padding: 0.85rem;
  border: 1px dashed rgba(163, 101, 120, 0.42);
  border-radius: 8px;
  color: rgba(43, 23, 26, 0.72);
  background: rgba(255, 255, 255, 0.46);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.55;
  text-transform: none;
}

.cinema {
  min-height: 44vh;
  overflow: hidden;
  display: grid;
  place-items: center;
  background:
    linear-gradient(90deg, rgba(245,239,228,1), rgba(123,37,56,.22), rgba(245,239,228,1)),
    repeating-linear-gradient(90deg, rgba(37,32,29,.08) 0 1px, transparent 1px 4rem);
}

.reel {
  display: flex;
  gap: 1rem;
  /* transform: translateX(calc(var(--scroll, 0) * -0.02px)); */
  /* will-change: transform; */
}

.reel span {
  min-width: clamp(16rem, 33vw, 28rem);
  min-height: 12rem;
  display: flex;
  align-items: flex-end;
  padding: 1.1rem;
  color: var(--ink);
  background: var(--paper);
  font-family: "Playfair Display", serif;
  font-size: clamp(1.65rem, 4vw, 3.6rem);
  line-height: 0.95;
}

.mytext h2 {
  margin: 0 0 1rem;
}

.mytext p {
  max-width: 28rem;
  margin: 0;
  color: rgba(37, 32, 29, 0.64);
  line-height: 1.65;
}

.timeline {
  display: grid;
  gap: 1rem;
}

.time-card {
  padding: 1.25rem;
  border: 1px solid rgba(37, 32, 29, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 1.5rem 3rem var(--shadow);
  transform: translateY(24px);
  opacity: 0;
  transition: transform 650ms ease, opacity 650ms ease, border-color 250ms ease;
}

.time-card.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.time-card:hover {
  border-color: rgba(220, 168, 189, 0.72);
}

.time-card time {
  color: var(--gold);
  font-weight: 900;
  letter-spacing: 0.1em;
}

.time-card p,
.details p,
.rsvp p {
  color: rgba(37, 32, 29, 0.66);
  line-height: 1.65;
}

.poster-panel {
  min-height: auto;
  display: grid;
  grid-template-columns: minmax(20rem, 0.88fr) minmax(26rem, 1.12fr);
  align-items: center;
  gap: clamp(3rem, 7vw, 7.5rem);
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(5rem, 9vw, 8rem) 0;
  overflow: hidden;
}

.poster-copy h2 {
  max-width: 12ch;
  font-size: clamp(2.8rem, 4.2vw, 4.35rem);
  line-height: 0.98;
}

.poster-stack {
  position: relative;
  width: min(100%, 39rem);
  min-height: clamp(28rem, 42vw, 36rem);
  justify-self: end;
  perspective: 1200px;
  overflow: visible;
}

.poster-card {
  position: absolute;
  width: clamp(13rem, 24vw, 20rem);
  aspect-ratio: 3 / 4;
  display: grid;
  place-items: end start;
  padding: 1.3rem;
  border-radius: 8px;
  color: #15100f;
  font-family: "Playfair Display", serif;
  font-size: clamp(2.6rem, 6vw, 5.2rem);
  line-height: 0.82;
  box-shadow: 0 2rem 4rem rgba(0, 0, 0, 0.36);
  transform: translate3d(0, 0, 0) rotate(var(--rotate));
  will-change: transform;
}

.card-yana {
  left: 3%;
  top: 15%;
  --rotate: -9deg;
  background: linear-gradient(145deg, #fbf5eb, #c9d2bd);
}

.card-matvey {
  right: 1%;
  top: 25%;
  left: auto;
  --rotate: 8deg;
  background: linear-gradient(145deg, #20382e, #f5efe4);
}

.card-date {
  left: 25%;
  top: 3%;
  --rotate: -1deg;
  background-image: url("/assets/dress/2026-06-05\ 20.09.08.jpg");
  /* background: linear-gradient(145deg, #7b2538, #b98a5a); */
  color: var(--paper);
}

.dress {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(5rem, 10vw, 8rem) 0;
}

.dress-poster {
  position: relative;
  overflow: hidden;
  min-height: clamp(35rem, 55vw, 47rem);
  padding: clamp(1.25rem, 4vw, 3rem);
  border: 1px solid rgba(32, 56, 46, 0.14);
  border-radius: 8px;
  background: #f4eee4;
  box-shadow: 0 2rem 5rem rgba(38, 43, 32, 0.14);
}

.dress-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(247, 241, 232, 0.82), rgba(247, 241, 232, 0.08) 38%, rgba(247, 241, 232, 0.78) 100%),
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.68), transparent 18rem);
  pointer-events: none;
}

.dress-heading {
  position: relative;
  z-index: 3;
  display: grid;
  justify-items: center;
  gap: 0.55rem;
  text-align: center;
}

.dress-heading .section-kicker {
  margin-bottom: 0.2rem;
}

.dress-heading h2 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(3.3rem, 8vw, 7rem);
  line-height: 0.92;
  text-transform: uppercase;
}

.dress-heading p:not(.section-kicker) {
  margin: 0;
  color: rgba(31, 36, 28, 0.72);
  font-size: clamp(0.82rem, 1.6vw, 1.15rem);
  letter-spacing: 0.38em;
  text-transform: uppercase;
}

.dress-jump {
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.7rem;
  padding: 0.75rem 1.25rem;
  border: 1px solid rgba(31, 36, 28, 0.52);
  color: var(--ink);
  background: rgba(245, 239, 228, 0.52);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.dress-image {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 0;
  pointer-events: none;
}

.dress-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.03) contrast(1.02);
}

.palette {
  position: absolute;
  left: clamp(1rem, 4vw, 3rem);
  right: clamp(1rem, 4vw, 3rem);
  bottom: clamp(1rem, 4vw, 2.5rem);
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  padding: 0.75rem;
  border: 1px solid rgba(32, 56, 46, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.82), rgba(245,239,228,.88)),
    radial-gradient(circle at 12% 20%, rgba(240,169,196,.24), transparent 12rem);
  backdrop-filter: blur(14px);
}

.swatch {
  position: relative;
  min-height: 0;
  height: 5.25rem;
  display: grid;
  grid-template-rows: 3.8rem auto;
  justify-items: center;
  align-items: center;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  text-align: center;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.swatch::before {
  content: "";
  position: static;
  width: 3.75rem;
  aspect-ratio: 1;
  border: 0.32rem solid rgba(255, 255, 255, 0.74);
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0.8rem 1.6rem rgba(38, 43, 32, 0.12);
}

.swatch:hover,
.swatch.is-active {
  transform: translateY(-4px);
}

.swatch span {
  color: var(--ink);
  font-size: 0.6rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
  white-space: nowrap;
}

.blush { color: #f5dee7; }
.sky { color: #e4f1f8; }
.sage { color: #d5e1c7; }
.lavender { color: #e7e4ef; }
.peach { color: #f5e6e1; }
.butter { color: #f1e6b3; }
.sand { color: #ece6dd; }

/* Both the hint and the stylist note are <p> children of .palette. They must
   span the full row — otherwise auto-placement drops them into a single narrow
   swatch column and the text wraps one word per line. */
.palette p {
  grid-column: 1 / -1;
  margin: 0;
  color: rgba(37, 32, 29, 0.66);
  line-height: 1.45;
}

.dress-note {
  padding: 0.85rem 1rem;
  border-left: 4px solid var(--dress-accent, #f0a9c4);
  background: rgba(255, 255, 255, 0.58);
}

.forbidden-palette {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
}

.forbidden {
  min-height: 2.6rem;
  display: grid;
  place-items: center;
  border-radius: 8px;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
}

.forbidden::after {
  content: "";
  position: absolute;
  inset: auto -0.4rem 50%;
  height: 2px;
  background: #b51832;
  transform: rotate(-12deg);
}

.forbidden.black {
  color: #fff;
  background: #111;
}

.forbidden.white {
  color: #111;
  background: #fff;
  border: 1px solid rgba(37, 32, 29, 0.18);
}

.forbidden.bright {
  color: #111;
  background: linear-gradient(90deg, #ff2c6d, #ffe100, #00d9ff);
}

.forbidden.print {
  color: #111;
  background:
    repeating-linear-gradient(45deg, #fff 0 8px, #111 8px 11px),
    #fff;
}

.details {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  padding: 0 0 clamp(5rem, 10vw, 9rem);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.details article {
  min-height: 18rem;
  padding: 1.25rem;
  border-radius: 8px;
  background: rgba(245, 239, 228, 0.72);
  border: 1px solid rgba(32, 56, 46, 0.14);
}

.references {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  padding: 0 0 clamp(5rem, 10vw, 9rem);
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.25rem, 4vw, 2.5rem);
}

.references-copy {
  position: static;
  max-width: 54rem;
}

.references-copy p:not(.section-kicker) {
  color: rgba(37, 32, 29, 0.66);
  line-height: 1.7;
}

.reference-carousel {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.2rem);
}

.reference-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(15.5rem, 31vw, 26rem);
  gap: clamp(0.9rem, 2vw, 1.3rem);
  align-items: center;
  min-height: clamp(23rem, 42vw, 38rem);
  padding: clamp(1rem, 3vw, 2.2rem) max(2rem, calc((100% - clamp(15.5rem, 31vw, 26rem)) / 2));
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.reference-track::-webkit-scrollbar {
  display: none;
}

.reference-card {
  position: relative;
  overflow: hidden;
  min-height: clamp(20rem, 36vw, 32rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1rem;
  border: 1px solid rgba(32, 56, 46, 0.14);
  border-radius: 8px;
  scroll-snap-align: center;
  background:
    linear-gradient(145deg, rgba(245, 239, 228, 0.82), rgba(201, 210, 189, 0.32)),
    repeating-linear-gradient(135deg, transparent 0 18px, rgba(32, 56, 46, 0.05) 18px 19px);
  box-shadow: 0 1.5rem 3rem var(--shadow);
  transform: scale(0.88);
  opacity: 0.62;
  transition: transform 260ms ease, opacity 260ms ease, box-shadow 260ms ease;
}

.reference-card.is-active {
  transform: scale(1);
  opacity: 1;
  box-shadow: 0 2rem 4rem rgba(112, 64, 78, 0.22);
}

.reference-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(245, 239, 228, 0.04), rgba(31, 36, 28, 0.64));
}

.reference-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.96) contrast(1.02);
}

.reference-card span,
.reference-card strong {
  position: relative;
  z-index: 2;
  color: #fff;
  text-shadow: 0 0.7rem 1.5rem rgba(0, 0, 0, 0.42);
}

.reference-card.acid-card {
  background:
    linear-gradient(145deg, #7b2538, #b98a5a),
    repeating-linear-gradient(135deg, transparent 0 18px, rgba(255, 255, 255, 0.32) 18px 19px);
  color: var(--ink);
}

.reference-card span {
  width: 2.4rem;
  height: 2.4rem;
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: rgba(245, 239, 228, 0.18);
  backdrop-filter: blur(12px);
  font-size: 0.74rem;
  font-weight: 900;
}

.reference-card strong {
  max-width: 13rem;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.45rem, 3vw, 2.8rem);
  line-height: 0.95;
}

.carousel-button {
  width: 2.65rem;
  height: 2.65rem;
  display: grid;
  place-items: center;
  border: 1px solid rgba(32, 56, 46, 0.22);
  border-radius: 50%;
  color: var(--ink);
  background: rgba(245, 239, 228, 0.84);
  cursor: pointer;
  font: 900 1.1rem/1 Inter, sans-serif;
}

.carousel-note {
  max-width: 38rem;
  margin: 0 auto;
  color: rgba(37, 32, 29, 0.66);
  line-height: 1.7;
  text-align: center;
}

.rsvp {
  padding: clamp(5rem, 11vw, 10rem) 1rem;
  background:
    linear-gradient(rgba(245,239,228,.72), rgba(245,239,228,.94)),
    url("assets/legal-wedding-hero.png") center / cover fixed;
}

.rsvp-card {
  width: min(980px, 100%);
  margin: 0 auto;
  padding: clamp(1.25rem, 4vw, 3rem);
  border-radius: 8px;
  border: 1px solid rgba(32, 56, 46, 0.18);
  background: rgba(245, 239, 228, 0.9);
  box-shadow: 0 2rem 5rem rgba(112, 64, 78, 0.18);
  backdrop-filter: blur(22px);
}

.rsvp-card h2 {
  margin-bottom: 1rem;
}

.rsvp-switch {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  margin: 1.35rem 0 0.6rem;
  padding: 0.35rem;
  border: 1px solid rgba(32, 56, 46, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
}

.rsvp-switch button {
  min-height: 3rem;
  padding: 0.75rem;
  border: 0;
  border-radius: 999px;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  font-weight: 900;
}

.rsvp-switch button.is-active {
  color: var(--paper);
  background: var(--wine);
}

.rsvp-result {
  min-height: 1.6rem;
  font-weight: 700;
}

.party-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-items: start;
  margin: 1.75rem 0;
  padding: 1rem;
  border: 1px solid rgba(32, 56, 46, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.38);
}

.party-form label,
.form-field {
  display: grid;
  gap: 0.45rem;
  align-content: start;
}

.party-form label span,
.form-field > span:first-child {
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.party-form input {
  width: 100%;
  min-height: 3.2rem;
  padding: 0.85rem 0.95rem;
  border: 1px solid rgba(32, 56, 46, 0.18);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.82);
  font: inherit;
}

.party-form input:focus,
.multi-choice:focus-within {
  outline: 3px solid rgba(163, 101, 120, 0.2);
  border-color: var(--wine);
}

.multi-choice {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
  min-height: 3.2rem;
  padding: 0.65rem;
  border: 1px solid rgba(163, 101, 120, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
}

.multi-choice label {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.2rem;
  padding: 0.45rem 0.55rem;
  border: 1px solid rgba(163, 101, 120, 0.12);
  border-radius: 8px;
  background: rgba(255, 246, 247, 0.78);
  cursor: pointer;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.multi-choice input {
  width: 1rem;
  min-height: 1rem;
  padding: 0;
  accent-color: var(--wine);
}

.yandex-form-link {
  width: min(100%, 30rem);
  min-height: 4.4rem;
  justify-content: center;
  margin: clamp(1.4rem, 4vw, 2.4rem) auto clamp(1.6rem, 4vw, 2.6rem);
  padding: 1.15rem 1.5rem;
  font-size: 0.9rem;
  letter-spacing: 0.16em;
  box-shadow: 0 1.1rem 2.4rem rgba(23, 20, 17, 0.18);
}

.clicker-form {
  grid-template-columns: 1fr;
  margin-top: 0;
  padding-top: clamp(1.1rem, 3vw, 1.6rem);
  border-top: 1px solid rgba(32, 56, 46, 0.16);
}

.player-form {
  display: grid;
  grid-template-columns: minmax(12rem, 1fr) auto;
  gap: 1rem;
  align-items: end;
  max-width: 42rem;
  width: 100%;
  margin: 0 auto;
}

.player-form label {
  display: grid;
  gap: 0.45rem;
}

.player-submit {
  min-height: 3.2rem;
  border: 0;
  cursor: pointer;
}

.clicker-panel {
  margin-top: 1.2rem;
  display: grid;
  grid-template-columns: minmax(10rem, 0.75fr) minmax(15rem, 1fr);
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  border: 1px solid rgba(32, 56, 46, 0.16);
  border-radius: 8px;
  background:
    radial-gradient(circle at 18% 22%, rgba(240, 169, 196, 0.22), transparent 9rem),
    rgba(255, 255, 255, 0.7);
}

.clicker-panel > span {
  grid-column: 1 / -1;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.clicker-panel strong {
  grid-column: 1 / -1;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 0.9;
}

.clicker-status {
  grid-column: 1 / -1;
  grid-row: 4;
  margin: 0;
  padding: 0.85rem 1rem;
  border-left: 4px solid var(--wine);
  background: rgba(255, 255, 255, 0.62);
  font-weight: 800;
}

.clicker-panel small {
  color: rgba(37, 32, 29, 0.6);
  line-height: 1.45;
}

.clicker-panel > small {
  grid-column: 1 / -1;
}

.wine-bottle {
  position: relative;
  grid-column: 1;
  grid-row: 3;
  width: min(6.7rem, 100%);
  min-height: 17.8rem;
  justify-self: center;
  display: grid;
  justify-items: center;
  align-content: end;
  border: 0;
  background: transparent;
  cursor: pointer;
  filter: drop-shadow(0 1.5rem 1.8rem rgba(43, 23, 26, 0.26));
  transition: transform 150ms ease, filter 150ms ease, opacity 150ms ease;
}

.wine-bottle:hover:not(:disabled) {
  transform: translateY(-4px) rotate(-2deg);
}

.wine-bottle:active:not(:disabled) {
  transform: translateY(2px) scale(0.96);
  filter: drop-shadow(0 0.8rem 1rem rgba(43, 23, 26, 0.28));
}

.wine-bottle:disabled {
  cursor: not-allowed;
  opacity: 0.82;
}

.bottle-neck {
  position: relative;
  z-index: 2;
  width: 1.28rem;
  height: 4.6rem;
  border-radius: 0.24rem 0.24rem 0.1rem 0.1rem;
  background:
    linear-gradient(90deg, rgba(255,255,255,.22), transparent 28%),
    linear-gradient(180deg, #781e33 0 2.55rem, #101910 2.55rem),
    linear-gradient(90deg, #050806, #153019 52%, #020403);
  border: 1px solid rgba(232, 220, 203, 0.18);
  border-bottom: 0;
  box-shadow:
    inset -0.28rem 0 0.44rem rgba(0, 0, 0, 0.38),
    inset 0.16rem 0 0.28rem rgba(255, 255, 255, 0.08);
}

.bottle-neck::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -0.28rem;
  width: 1.46rem;
  height: 0.48rem;
  transform: translateX(-50%);
  border-radius: 0.28rem 0.28rem 0.08rem 0.08rem;
  background:
    linear-gradient(90deg, #5d1527, #b33b50 48%, #4d1221);
  box-shadow: 0 0.28rem 0.6rem rgba(43, 23, 26, 0.16);
}

.bottle-neck::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 0.28rem;
  width: 0.56rem;
  height: 1.55rem;
  transform: translateX(-50%);
  border-radius: 0.04rem;
  background:
    linear-gradient(90deg, rgba(255, 231, 178, 0.52), #c7a45d 48%, rgba(88, 51, 25, 0.18));
  opacity: 0.8;
}

.bottle-body {
  position: relative;
  width: min(6.35rem, 100%);
  min-height: 12.65rem;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.45rem;
  margin-top: -0.12rem;
  border-radius: 2.65rem 2.65rem 0.56rem 0.56rem / 2.05rem 2.05rem 0.56rem 0.56rem;
  overflow: hidden;
  color: var(--paper);
  background:
    radial-gradient(ellipse at 28% 19%, rgba(255,255,255,.24), transparent 1.85rem),
    radial-gradient(ellipse at 72% 88%, rgba(123,37,56,.36), transparent 3rem),
    linear-gradient(135deg, #061008, #102215 50%, #020503);
  border: 0.18rem solid rgba(232, 220, 203, 0.38);
  box-shadow:
    inset 0 0 0 0.55rem rgba(255,255,255,.03),
    inset -1.25rem 0 2rem rgba(0,0,0,.32);
}

.bottle-body::before {
  content: "";
  position: absolute;
  left: 0.82rem;
  top: 1.1rem;
  width: 1.42rem;
  height: 7.75rem;
  border-radius: 100%;
  background:
    linear-gradient(90deg, rgba(255,255,255,.16), rgba(255,255,255,.03) 52%, transparent);
  filter: blur(0.2rem);
  pointer-events: none;
}

.bottle-body::after {
  content: "";
  position: absolute;
  inset: auto 0.68rem 0.55rem;
  height: 3.55rem;
  border-radius: 0 0 0.42rem 0.42rem;
  background:
    linear-gradient(90deg, rgba(14, 52, 28, 0.34), rgba(11, 8, 7, 0.54) 62%, rgba(65, 20, 29, 0.3));
  pointer-events: none;
}

.wine-label {
  position: relative;
  z-index: 2;
  width: 4.75rem;
  min-height: 4.25rem;
  display: grid;
  gap: 0.16rem;
  place-items: center;
  padding: 0.34rem 0.32rem;
  border: 1px solid rgba(154, 116, 70, 0.52);
  border-radius: 8px;
  color: var(--ink);
  background:
    linear-gradient(90deg, transparent 0 0.45rem, rgba(154,116,70,.16) 0.45rem 0.52rem, transparent 0.52rem calc(100% - 0.52rem), rgba(154,116,70,.16) calc(100% - 0.52rem) calc(100% - 0.45rem), transparent calc(100% - 0.45rem)),
    linear-gradient(180deg, #fffaf0, #ead9b9);
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 900;
  box-shadow: inset 0 0 0 0.2rem rgba(255,255,255,.48);
}

.wine-label small,
.wine-label em,
.wine-label b {
  color: rgba(37, 32, 29, 0.68);
  font-family: Inter, sans-serif;
  font-size: 0.36rem;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0.13em;
  line-height: 1;
  text-transform: uppercase;
}

.wine-label strong {
  color: #6f1f34;
  font-size: 1.05rem;
  line-height: 0.92;
  letter-spacing: 0.04em;
}

.wine-label b {
  padding-top: 0.16rem;
  color: #9a7446;
}

.bonus-shop {
  grid-column: 2;
  grid-row: 3;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}

.bonus-shop button {
  min-height: 5.45rem;
  display: grid;
  gap: 0.28rem;
  padding: 0.75rem;
  border: 1px solid rgba(32, 56, 46, 0.16);
  border-radius: 8px;
  color: var(--ink);
  text-align: left;
  background: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  transition: transform 150ms ease, opacity 150ms ease, border-color 150ms ease;
}

.bonus-shop button:hover:not(:disabled) {
  transform: translateY(-2px);
  border-color: rgba(123, 37, 56, 0.34);
}

.bonus-shop button:disabled {
  cursor: not-allowed;
  opacity: 0.46;
}

.bonus-shop strong,
.bonus-shop span,
.bonus-shop small {
  display: block;
}

.bonus-shop strong {
  font-size: 0.84rem;
}

.bonus-shop span {
  color: var(--wine);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.bonus-shop small {
  font-size: 0.72rem;
}

.booze-board {
  margin-top: 1.5rem;
  padding: clamp(1rem, 3vw, 1.5rem);
  border: 1px solid rgba(32, 56, 46, 0.22);
  border-radius: 8px;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(245, 239, 228, 0.88)),
    linear-gradient(90deg, rgba(32, 56, 46, 0.1), rgba(123, 37, 56, 0.08));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.65), 0 1.6rem 3rem rgba(112, 64, 78, 0.16);
}

.booze-board-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
}

.booze-board h3 {
  max-width: 38rem;
  margin-bottom: 0.6rem;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.8rem, 4vw, 3.5rem);
  line-height: 0.92;
  text-shadow: none;
}

.leaderboard {
  display: grid;
  gap: 0.65rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: booze-rank;
}

.leaderboard li {
  counter-increment: booze-rank;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.8rem;
  align-items: center;
  padding: 0.75rem;
  border: 1px solid rgba(32, 56, 46, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  transform: none;
}

.leaderboard li::before {
  content: "#" counter(booze-rank);
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--forest);
  font-weight: 900;
  box-shadow: 0 0.7rem 1.4rem rgba(112, 64, 78, 0.2);
}

.leaderboard strong,
.leaderboard span,
.leaderboard small {
  display: block;
}

.leaderboard strong {
  font-size: 1.05rem;
}

.leaderboard span {
  color: rgba(40, 22, 28, 0.62);
  font-size: 0.9rem;
}

.leaderboard em {
  padding: 0.5rem 0.65rem;
  border-radius: 999px;
  color: #fff;
  background: var(--wine);
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.board-empty {
  margin: 1rem 0 0;
  color: rgba(29, 7, 16, 0.7);
  font-weight: 900;
}

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem clamp(1rem, 4vw, 3rem);
  color: rgba(37, 32, 29, 0.56);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
  }

  nav {
    justify-content: flex-end;
    flex-wrap: wrap;
    max-width: 18rem;
  }

  .hero {
    min-height: 96svh;
    padding-top: 7rem;
    padding-bottom: 13rem;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(255, 250, 243, 0.95), rgba(255, 250, 243, 0.42)),
      linear-gradient(0deg, var(--paper) 0%, rgba(255, 250, 243, 0.18) 50%);
  }

  .date-plate {
    left: 1rem;
    right: auto;
  }

  .note,
  .blade,
  .route-note,
  .cork-mark {
    display: none;
  }

  .section-grid,
  .archive,
  .poster-panel,
  .references,
  .details {
    grid-template-columns: 1fr;
  }

  .references-copy {
    position: static;
  }

  .poster-panel {
    min-height: auto;
  }

  .poster-stack {
    min-height: 31rem;
  }

  .card-matvey {
    left: 18%;
  }

  .details article {
    min-height: 13rem;
  }

  .dress-poster {
    min-height: 43rem;
  }

  .dress-image {
    inset: 0;
  }

  .palette {
    grid-template-columns: repeat(7, minmax(3.2rem, 1fr));
  }

  .palette p {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  nav {
    display: none;
  }

  h1 {
    font-size: clamp(4.1rem, 20vw, 5.9rem);
  }

  .hero-actions,
  .contact-row,
  .rsvp-switch,
  .party-form {
    flex-direction: column;
  }

  .button,
  .rsvp-switch button {
    width: 100%;
  }

  .rsvp-switch {
    grid-template-columns: 1fr;
    border-radius: 8px;
  }

  .party-form,
  .player-form,
  .clicker-form,
  .clicker-panel,
  .booze-board-head,
  .leaderboard li {
    grid-template-columns: 1fr;
  }

  .booze-board-head {
    display: grid;
  }

  .multi-choice {
    grid-template-columns: 1fr;
  }

  .wine-bottle {
    grid-column: 1;
    grid-row: auto;
    min-height: 16rem;
  }

  .bonus-shop {
    grid-column: 1;
    grid-row: auto;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .clicker-status {
    grid-row: auto;
  }

  .bottle-neck {
    height: 4.25rem;
  }

  .bottle-body {
    min-height: 11.5rem;
  }

  .cinema {
    display: none;
  }

  .ring-a {
    top: 16%;
    right: 8%;
  }

  .ring-b {
    left: 18%;
  }

  .wine-stamp {
    top: 13%;
    right: 5%;
    transform: scale(0.72);
    transform-origin: top right;
  }

  .palette {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 1rem;
  }

  .dress-poster {
    min-height: 0;
    padding-bottom: 1rem;
  }

  .dress-image {
    position: relative;
    inset: auto;
    min-height: 21rem;
    margin: 1rem -1rem 0;
  }

  .dress-image img {
    height: 100%;
  }

  .swatch {
    min-height: 5.2rem;
  }

  .dress-note {
    grid-column: 1 / -1;
  }

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

  .evidence-card {
    min-height: auto;
  }

  .child-photo {
    min-height: 18rem;
  }

  .bandit-toggle {
    left: 1rem;
    right: auto;
    top: auto;
    bottom: 8.3rem;
  }

  .forbidden-palette {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rsvp {
    background-attachment: scroll;
  }
}

/* Magazine edition merged */
/* Magazine edition */
:root {
  --ink: #171411;
  --paper: #f4efe7;
  --ivory: #fffdf8;
  --wine: #8f2940;
  --wine-soft: #d9aeb9;
  --forest: #171411;
  --forest-soft: #e7e0d7;
  --gold: #9b7a46;
  --shadow: rgba(23, 20, 17, 0.14);
  --max: 1240px;
}

body {
  background:
    linear-gradient(90deg, rgba(23,20,17,.055) 1px, transparent 1px) 50% 0 / min(15.5vw, 12rem) 100%,
    linear-gradient(180deg, #faf7f0 0%, #f1eadf 44%, #f8f4ed 100%);
}

body::before {
  background:
    radial-gradient(circle at 86% 8%, rgba(143, 41, 64, 0.12), transparent 24rem),
    radial-gradient(circle at 8% 52%, rgba(155, 122, 70, 0.1), transparent 25rem),
    linear-gradient(180deg, #fbf8f1, #eee6da);
}

.noise {
  opacity: 0.08;
  mix-blend-mode: multiply;
}

.cursor-light {
  background: radial-gradient(circle, rgba(143, 41, 64, 0.12), transparent 64%);
}

.site-header {
  padding: 0.7rem clamp(1rem, 4vw, 3rem);
  background: rgba(250, 247, 240, 0.88);
  border-bottom: 1px solid rgba(23, 20, 17, 0.18);
}

/* The centered italic caption used to overlap the right-aligned navigation on
   every viewport narrower than ~1500px, so it is dropped. The same "collector
   issue · september 2026" line already appears in the hero. */

.brand {
  width: 3.35rem;
  height: 2.15rem;
  border-radius: 0;
  background: transparent;
  border: 1px solid currentColor;
  font-size: 0.86rem;
  letter-spacing: 0.04em;
}

nav {
  gap: clamp(0.75rem, 2.2vw, 2rem);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
}

.hero {
  min-height: 100svh;
  align-items: center;
  padding: 5.8rem clamp(1rem, 4vw, 3rem) 2rem;
}

.hero::before {
  content: "collector issue · september 2026";
  position: absolute;
  top: 5.3rem;
  left: clamp(1rem, 4vw, 3rem);
  z-index: 2;
  color: rgba(23, 20, 17, 0.68);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.hero::after {
  content: "ISSUE 04/09";
  position: absolute;
  right: clamp(1rem, 4vw, 3rem);
  top: 4.2rem;
  z-index: 1;
  color: rgba(23, 20, 17, 0.055);
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(5rem, 13vw, 13rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 0.8;
  pointer-events: none;
}

.hero-media {
  inset: 5.2rem clamp(1rem, 4vw, 3rem) 2rem auto;
  width: min(43vw, 39rem);
  border: 1px solid rgba(23, 20, 17, 0.16);
  overflow: hidden;
}

.hero-media img {
  height: 100%;
  transform: translateY(calc(var(--scroll, 0) * 0.045px)) scale(1.02);
  filter: saturate(0.82) contrast(1.05) grayscale(0.08);
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(250,247,240,.96), rgba(250,247,240,.88) 44%, rgba(250,247,240,.2)),
    linear-gradient(180deg, transparent, rgba(250,247,240,.78));
}

.hero-content {
  width: min(49vw, 680px);
  align-self: center;
}

.hero-content::before {
  content: none;
}

.edition-route {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.62rem;
  width: max-content;
  max-width: 100%;
  margin-bottom: 0.8rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(23, 20, 17, 0.2);
  color: rgba(23, 20, 17, 0.74);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  line-height: 1.45;
  text-transform: uppercase;
  white-space: nowrap;
}

.edition-route s {
  color: rgba(23, 20, 17, 0.48);
  text-decoration-color: var(--wine);
  text-decoration-thickness: 0.12em;
}

.edition-route span {
  color: rgba(23, 20, 17, 0.74);
}

.edition-route span + s::before,
.edition-route s + span::before {
  content: "·";
  display: inline-block;
  margin-right: 0.62rem;
  color: rgba(23, 20, 17, 0.38);
  text-decoration: none;
}

.eyebrow,
.section-kicker,
.poster-copy span,
.details span {
  color: var(--wine);
  font-size: 0.68rem;
  letter-spacing: 0.24em;
}

h1 {
  max-width: 6.4ch;
  font-size: clamp(5.2rem, 11.5vw, 11.8rem);
  line-height: 0.75;
  font-weight: 800;
}

h2 {
  font-size: clamp(2.3rem, 4.7vw, 5.35rem);
  line-height: 0.98;
  font-weight: 800;
}

.section-grid h2 {
  max-width: 12.5ch;
  font-size: clamp(2.45rem, 4.05vw, 4.65rem);
  line-height: 0.98;
}

h3 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.25rem, 2.3vw, 2.1rem);
}

.hero-copy {
  max-width: 36rem;
  margin-top: 1.15rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(23, 20, 17, 0.18);
  color: rgba(23, 20, 17, 0.72);
  font-size: clamp(1rem, 1.25vw, 1.12rem);
  line-height: 1.58;
  columns: auto;
  column-gap: normal;
}

.hero-copy::first-letter {
  float: none;
  padding-right: 0;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
}

.button,
.rsvp-switch,
.rsvp-switch button,
.board-clear,
.clicker-actions button,
.bonus-shop button,
.party-form input {
  border-radius: 0;
}

.button {
  min-height: 3rem;
  padding: 0.82rem 1.1rem;
  border: 1px solid currentColor;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.primary {
  background: var(--ink);
}

.ghost {
  background: rgba(255, 253, 248, 0.66);
}

.date-plate {
  right: clamp(1rem, 4vw, 3rem);
  bottom: 2rem;
  width: min(16rem, calc(100% - 2rem));
  background: rgba(255, 253, 248, 0.78);
  border-color: rgba(23, 20, 17, 0.22);
  backdrop-filter: blur(10px);
}

.date-plate strong {
  font-family: "Playfair Display", Georgia, serif;
}

.wine-stamp,
.route-note,
.cork-mark {
  filter: none;
}

.route-note {
  background: #fffdf8;
  border: 1px solid rgba(23, 20, 17, 0.16);
  box-shadow: none;
}

.marquee {
  padding: 0.75rem 0;
  background: #171411;
}

.marquee span {
  font-size: clamp(1.15rem, 3vw, 2.4rem);
  font-style: italic;
}

.section-grid,
.archive,
.poster-panel,
.dress,
.references,
.details {
  width: min(var(--max), calc(100% - 2rem));
}

.section-grid,
.archive,
.poster-panel,
.references {
  border-top: 1px solid rgba(23, 20, 17, 0.18);
}

.schedule.section-grid {
  grid-template-columns: 6rem minmax(22rem, 0.8fr) minmax(38rem, 1.2fr);
  align-items: start;
  gap: clamp(2rem, 4vw, 4rem);
}

.schedule .mytext {
  padding-top: 0.2rem;
}

.schedule .mytext h2 {
  max-width: 14ch;
  font-size: clamp(2.45rem, 3.35vw, 3.9rem);
  line-height: 1.02;
}

.schedule .mytext p {
  max-width: 22rem;
  margin-top: 1.4rem;
}

.archive {
  grid-template-columns: minmax(20rem, 0.78fr) minmax(34rem, 1.22fr);
}

.archive::before,
.references::before,
.rsvp::before {
  position: absolute;
  top: 1.25rem;
  right: 0;
  color: rgba(23, 20, 17, 0.42);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.archive::before {
  content: "dossier privé";
}

.references::before {
  content: "style column";
}

.rsvp::before {
  content: "guest list / notes";
  right: clamp(1rem, 4vw, 3rem);
}

.archive-copy h2 {
  max-width: 12ch;
}

.case-grid {
  gap: 0;
  border: 1px solid rgba(23, 20, 17, 0.18);
  background: rgba(255, 253, 248, 0.58);
}

.evidence-card {
  min-height: auto;
  padding: 1rem;
  border: 0;
  border-right: 1px solid rgba(23, 20, 17, 0.16);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.evidence-card:last-child {
  border-right: 0;
}

.evidence-card:hover,
.evidence-card.is-active {
  transform: none;
  box-shadow: none;
  background: rgba(255, 253, 248, 0.62);
}

.child-photo {
  min-height: clamp(17rem, 28vw, 26rem);
  border: 0;
  box-shadow: none;
  transform: none;
  filter: saturate(0.9) contrast(1.04);
}

.child-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(23, 20, 17, 0.18);
  pointer-events: none;
}

.child-photo span {
  background: rgba(23, 20, 17, 0.74);
}

.evidence-card strong {
  font-size: clamp(2rem, 4vw, 4.2rem);
}

.evidence-output {
  border: 1px solid rgba(23, 20, 17, 0.14);
  border-radius: 0;
  background: rgba(255, 253, 248, 0.72);
}

.cinema {
  min-height: 34vh;
  background:
    linear-gradient(180deg, #171411, #2a2420);
}

.reel span {
  min-height: 10rem;
  border: 1px solid rgba(255, 253, 248, 0.18);
  color: #fffdf8;
  background: transparent;
  font-style: italic;
}

.time-card,
.details article,
.rsvp-card,
.booze-board,
.party-form,
.clicker-panel {
  border-radius: 0;
  box-shadow: none;
}

.time-card {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  align-items: start;
  column-gap: 1.2rem;
  row-gap: 0.5rem;
  padding: 1.35rem 0;
  background: transparent;
  border: 0;
  border-top: 1px solid rgba(23, 20, 17, 0.18);
}

.time-card time {
  grid-row: 1 / span 2;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 2rem;
  line-height: 1;
}

.time-card h3 {
  grid-column: 2;
  margin: 0;
  font-size: clamp(1.35rem, 2vw, 1.9rem);
  line-height: 0.98;
}

.time-card p {
  grid-column: 2;
  max-width: 30rem;
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.55;
}

.poster-panel {
  min-height: 78vh;
  grid-template-columns: 0.75fr 1.25fr;
}

.poster-stack {
  width: min(100%, 45rem);
  min-height: clamp(30rem, 46vw, 42rem);
}

.poster-card {
  border-radius: 0;
  box-shadow: none;
  border: 1px solid rgba(23, 20, 17, 0.18);
}

.card-yana,
.card-matvey,
.card-date {
  background: #fffdf8;
  color: var(--ink);
}

.card-date {
  /* background: #171411; */
  background-image: url("/assets/dress/2026-06-11\ 02.03.19.jpg");
  background-size: contain;
  color: #fffdf8;
}

.dress-poster {
  border-radius: 0;
  box-shadow: none;
  border-color: rgba(23, 20, 17, 0.18);
}

.dress-heading h2 {
  letter-spacing: 0.06em;
}

.dress-heading::after {
  content: "soft palette · no black · no white";
  color: rgba(23, 20, 17, 0.58);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.dress-jump,
.palette,
.swatch,
.dress-note,
.forbidden,
.reference-card,
.rsvp-switch,
.rsvp-card,
.party-form,
.clicker-panel,
.booze-board,
.leaderboard li {
  border-radius: 0;
}

.palette {
  background: rgba(255, 253, 248, 0.86);
  border-color: rgba(23, 20, 17, 0.16);
}

.swatch::before {
  border-width: 1px;
  border-color: rgba(23, 20, 17, 0.16);
  box-shadow: none;
}

.details {
  border-top: 1px solid rgba(23, 20, 17, 0.18);
}

.details article {
  background: transparent;
  border: 0;
  border-right: 1px solid rgba(23, 20, 17, 0.16);
}

.details article:last-child {
  border-right: 0;
}

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

.references-copy {
  max-width: min(58rem, 100%);
}

.reference-card {
  border: 0;
  box-shadow: none;
}

.reference-card::after {
  background: linear-gradient(180deg, rgba(23, 20, 17, 0.02), rgba(23, 20, 17, 0.58));
}

.reference-card.is-active {
  box-shadow: 0 1.8rem 3.5rem rgba(23, 20, 17, 0.16);
}

.carousel-button {
  border-radius: 0;
  background: #fffdf8;
  border-color: rgba(23, 20, 17, 0.2);
}

.carousel-note {
  border-top: 1px solid rgba(23, 20, 17, 0.18);
  padding-top: 1rem;
}

.rsvp {
  background:
    linear-gradient(rgba(250,247,240,.86), rgba(250,247,240,.94)),
    url("assets/legal-wedding-hero.png") center / cover fixed;
}

.rsvp-card {
  background: rgba(255, 253, 248, 0.84);
  border-color: rgba(23, 20, 17, 0.18);
}

.rsvp-card h2 {
  max-width: 10ch;
}

.yandex-form-link {
  width: min(100%, 30rem);
  min-height: 4.4rem;
  display: flex;
  justify-content: center;
  margin: clamp(1.4rem, 4vw, 2.4rem) auto clamp(1.6rem, 4vw, 2.6rem);
  padding: 1.15rem 1.5rem;
  border-color: #171411;
  background: #171411;
  color: #fffdf8;
  font-size: 0.9rem;
  letter-spacing: 0.16em;
  box-shadow: 0 1.1rem 2.4rem rgba(23, 20, 17, 0.18);
}

.rsvp-switch {
  background: transparent;
  border-color: rgba(23, 20, 17, 0.18);
}

.rsvp-switch button.is-active {
  background: #171411;
}

.party-form,
.clicker-panel,
.booze-board {
  background: rgba(255, 253, 248, 0.7);
  border-color: rgba(23, 20, 17, 0.16);
}

.wine-label {
  border-radius: 0;
}

.wine-bottle {
  filter:
    drop-shadow(0 1.2rem 1.2rem rgba(23, 20, 17, 0.18))
    drop-shadow(0 0.1rem 0 rgba(255, 253, 248, 0.5));
}

.bottle-body {
  background:
    radial-gradient(ellipse at 30% 14%, rgba(255,255,255,.24), transparent 2.2rem),
    radial-gradient(ellipse at 72% 92%, rgba(114, 28, 48, .32), transparent 3.5rem),
    linear-gradient(135deg, #0e1710, #1d3a29 52%, #07110b);
}

.wine-label {
  background:
    linear-gradient(90deg, transparent 0 0.38rem, rgba(155,122,70,.22) 0.38rem 0.45rem, transparent 0.45rem calc(100% - 0.45rem), rgba(155,122,70,.22) calc(100% - 0.45rem) calc(100% - 0.38rem), transparent calc(100% - 0.38rem)),
    linear-gradient(180deg, #fff9eb, #e8d2a5);
  border-color: rgba(155, 122, 70, 0.72);
}

.wine-label::before {
  content: "◆";
  color: #9b7a46;
  font-size: 0.85rem;
  line-height: 1;
}

.bonus-shop button {
  border-radius: 0;
  background: rgba(255, 253, 248, 0.78);
}

.leaderboard li {
  background: rgba(255, 253, 248, 0.78);
  border-color: rgba(23, 20, 17, 0.16);
}

.leaderboard li::before,
.leaderboard em {
  border-radius: 0;
  background: #171411;
}

footer {
  border-top: 1px solid rgba(23, 20, 17, 0.18);
}

.dress-intro {
  max-width: 48rem;
  margin: 0 auto 1.4rem;
  padding: 1rem 1.15rem;
  border-left: 4px solid var(--wine);
  background: rgba(255, 253, 248, 0.76);
  color: rgba(23, 20, 17, 0.68);
  line-height: 1.65;
}

.palette-hint {
  grid-column: 1 / -1;
  margin: 0 0 0.1rem;
  color: rgba(23, 20, 17, 0.54);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
}

.reference-carousel::after {
  content: "листайте";
  position: absolute;
  right: 50%;
  bottom: 0.45rem;
  z-index: 5;
  transform: translateX(50%);
  padding: 0.4rem 0.7rem;
  border: 1px solid rgba(23, 20, 17, 0.18);
  color: rgba(23, 20, 17, 0.62);
  background: rgba(255, 253, 248, 0.82);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  pointer-events: none;
}

.details {
  grid-template-columns: repeat(4, 1fr);
}

.details-heading {
  grid-column: 1 / -1;
  display: grid;
  gap: 0.25rem;
  margin-bottom: 0.4rem;
}

.details-heading h2 {
  margin: 0;
  font-size: clamp(2.7rem, 5vw, 5.2rem);
}

.game-copy {
  max-width: 44rem;
  margin: 0 auto 1.1rem;
  text-align: center;
}

.game-copy h3 {
  margin: 0 0 0.55rem;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.game-copy p:not(.eyebrow) {
  margin: 0;
  color: rgba(23, 20, 17, 0.64);
  line-height: 1.6;
}

@media (max-width: 900px) {
  .site-header::after {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-top: 5.6rem;
    align-items: start;
  }

  .hero::before {
    top: 4.7rem;
  }

  .hero-media {
    position: relative;
    inset: auto;
    width: 100%;
    height: 42svh;
    margin-top: 1.2rem;
    order: 2;
  }

  .hero-content {
    width: 100%;
    transform: none;
  }

  .edition-route {
    width: 100%;
    flex-wrap: wrap;
    white-space: normal;
    row-gap: 0.18rem;
  }

  .hero-copy {
    columns: auto;
  }

  .date-plate {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    margin-top: 1rem;
  }

  .archive,
  .poster-panel,
  .schedule.section-grid,
  .references {
    grid-template-columns: 1fr;
  }

  .reference-carousel {
    grid-template-columns: 1fr;
  }

  .carousel-button {
    display: none;
  }

  .reference-track {
    grid-auto-columns: min(78vw, 22rem);
    min-height: 28rem;
    padding-inline: 11vw;
  }

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

  .evidence-card {
    border-right: 0;
    border-bottom: 1px solid rgba(23, 20, 17, 0.16);
  }

  .evidence-card:last-child {
    border-bottom: 0;
  }

  .details article {
    border-right: 0;
    border-bottom: 1px solid rgba(23, 20, 17, 0.16);
  }
}

@media (max-width: 900px) {
  .hero {
    min-height: auto;
    display: grid;
    padding: 5.4rem 1rem 1.6rem;
    border-bottom: 1px solid rgba(23, 20, 17, 0.18);
  }

  .hero::before,
  .hero::after {
    display: none;
  }

  .hero-content {
    width: 100%;
    order: 1;
  }

  .hero-media {
    position: relative;
    inset: auto;
    order: 3;
    width: 100%;
    height: min(56svh, 31rem);
    margin-top: 1.6rem;
  }

  .hero-media img {
    height: 100%;
    object-position: 50% 48%;
    transform: none;
  }

  .hero-shade {
    background:
      linear-gradient(180deg, rgba(250,247,240,.92), rgba(250,247,240,.76) 45%, rgba(250,247,240,.94)),
      radial-gradient(circle at 86% 12%, rgba(143,41,64,.11), transparent 14rem);
  }

  .edition-route,
  .hero .eyebrow {
    font-size: 0.62rem;
  }

  .edition-route {
    width: 100%;
    gap: 0.35rem;
    overflow-x: auto;
    padding-bottom: 0.45rem;
    white-space: nowrap;
    scrollbar-width: none;
  }

  .edition-route::-webkit-scrollbar {
    display: none;
  }

  h1 {
    max-width: 100%;
    margin-bottom: 1rem;
    font-size: clamp(4.2rem, 22vw, 8rem);
    line-height: 0.82;
  }

  .hero-copy {
    max-width: 100%;
    padding-top: 0.85rem;
    font-size: clamp(1.05rem, 4.6vw, 1.35rem);
  }

  .date-plate {
    position: relative;
    order: 2;
    left: 50%;
    right: auto;
    bottom: auto;
    width: min(100%, 21rem);
    margin: 1.55rem 0 0;
    transform: translateX(-50%);
    text-align: center;
  }

  .date-plate strong {
    font-size: clamp(2.5rem, 12vw, 4.1rem);
  }

  .wine-stamp,
  .route-note,
  .cork-mark {
    display: none;
  }

  .cinema {
    display: grid;
    min-height: auto;
    padding: 1rem;
    place-items: stretch;
  }

  .reel {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .reel span {
    min-width: 0;
    min-height: 6.8rem;
    padding: 0.95rem;
    font-size: clamp(1.65rem, 8vw, 2.55rem);
  }

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

  .palette-hint {
    text-align: left;
  }

  .reference-carousel::after {
    bottom: 0.2rem;
  }
}

@media (max-width: 560px) {
  .site-header {
    padding-block: 0.55rem;
  }

  .hero {
    padding-inline: 1rem;
  }

  h1 {
    font-size: clamp(4.8rem, 22vw, 6.8rem);
  }

  .hero-media {
    height: 36svh;
  }

  .hero-actions,
  .contact-row {
    gap: 0.55rem;
  }

  .button {
    width: 100%;
  }

  .time-card {
    grid-template-columns: 1fr;
  }

  .palette {
    background: rgba(255, 253, 248, 0.9);
  }

  .clicker-panel,
  .party-form,
  .booze-board {
    padding: 0.85rem;
  }
}

@media (max-width: 560px) {
  .site-header {
    position: sticky;
  }

  .brand {
    width: 3.35rem;
    height: 2.15rem;
    font-size: 0.86rem;
  }

  .hero {
    padding-top: 1.05rem;
  }

  .hero-actions {
    margin-top: 1.35rem;
  }

  .hero-media {
    height: 43svh;
  }

  .dress-intro {
    margin-bottom: 1rem;
  }

  .palette {
    gap: 0.5rem;
  }

  .palette-hint,
  .dress-note {
    grid-column: 1 / -1;
  }

  .swatch {
    height: 4.6rem;
    grid-template-rows: 3.1rem auto;
  }

  .swatch::before {
    width: 3rem;
  }

  .reference-track {
    grid-auto-columns: min(78vw, 20rem);
    min-height: 24rem;
    padding-inline: 10vw;
  }

  .reference-card {
    min-height: 21rem;
  }

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

  .details article {
    min-height: auto;
  }

  .game-copy {
    text-align: left;
  }
}

@media (max-width: 900px) {
  .hero {
    min-height: 100svh;
    align-content: center;
    padding: clamp(4.8rem, 14vw, 6rem) 1rem 2rem;
  }

  .hero-media {
    position: absolute;
    inset: 0;
    z-index: -2;
    order: initial;
    width: 100%;
    height: 100%;
    margin: 0;
    border: 0;
  }

  .hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 58% 50%;
    transform: none;
    opacity: 0.58;
  }

  .hero-shade {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
      linear-gradient(180deg, rgba(250,247,240,.94) 0%, rgba(250,247,240,.82) 48%, rgba(250,247,240,.96) 100%),
      linear-gradient(90deg, rgba(250,247,240,.98), rgba(250,247,240,.62));
  }

  .hero-content {
    position: relative;
    z-index: 2;
  }

  .date-plate {
    z-index: 2;
    background: rgba(255, 253, 248, 0.74);
  }
}

@media (max-width: 560px) {
  .hero {
    padding-top: 1.25rem;
  }

  h1 {
    font-size: clamp(4rem, 20vw, 6.4rem);
  }

  .date-plate {
    margin-top: 1.2rem;
  }
}

/* ------------------------------------------------------------------ */
/* DYUBA bar mini-game — bottle fills with wine and reacts to clicks  */
/* ------------------------------------------------------------------ */

/* Wine that rises inside the bottle as litres are poured. The height is
   driven by --fill (0–100, the progress toward the next full bottle). */
.bottle-fill {
  position: absolute;
  left: 0.18rem;
  right: 0.18rem;
  bottom: 0.18rem;
  z-index: 1;
  height: calc(clamp(0, var(--fill, 0), 100) * 1%);
  max-height: calc(100% - 0.36rem);
  border-radius: 0 0 0.42rem 0.42rem;
  background: linear-gradient(180deg, rgba(143, 41, 64, 0.62), rgba(74, 16, 30, 0.95));
  box-shadow: inset 0 0.3rem 0.5rem rgba(255, 255, 255, 0.12);
  transition: height 320ms cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.bottle-fill::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 0.32rem;
  border-radius: 0.3rem;
  background: linear-gradient(180deg, rgba(255, 206, 222, 0.55), transparent);
}

/* Keep the label readable above the wine. */
.wine-label {
  z-index: 3;
}

/* A tiny springy nudge each time the bottle is poured. */
.wine-bottle.is-pouring {
  animation: bottle-pour 260ms ease;
}

@keyframes bottle-pour {
  0% { transform: translateY(0) rotate(0); }
  40% { transform: translateY(-3px) rotate(-3deg); }
  100% { transform: translateY(0) rotate(0); }
}

/* Floating "+0.1 л" feedback that drifts up and fades on every click. */
.pour-pop {
  position: absolute;
  left: 50%;
  top: 18%;
  z-index: 4;
  transform: translateX(-50%);
  color: var(--wine);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.15rem;
  font-weight: 800;
  white-space: nowrap;
  pointer-events: none;
  text-shadow: 0 1px 2px rgba(255, 253, 248, 0.85);
  animation: pour-pop 720ms ease-out forwards;
}

@keyframes pour-pop {
  0% { opacity: 0; transform: translate(-50%, 0.6rem) scale(0.8); }
  18% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -3.6rem) scale(1.12); }
}

@media (prefers-reduced-motion: reduce) {
  .pour-pop { animation: none; opacity: 0; }
  .wine-bottle.is-pouring { animation: none; }
}

/* On phones the palette used to fall into 3 columns (3 + 3 + 1 — a lonely
   third row). Keep all seven swatches on a single line instead. */
@media (max-width: 560px) {
  .palette {
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.35rem;
  }

  .swatch {
    height: auto;
    grid-template-rows: auto;
  }

  .swatch::before {
    width: clamp(1.9rem, 10vw, 3rem);
    border-width: 0.16rem;
  }
}
