:root {
  --bg: #f6f1eb;
  --bg-strong: #ece2d8;
  --paper: rgba(255, 253, 249, 0.78);
  --ink: #2f3330;
  --muted: #6d716c;
  --accent: #8c615f;
  --accent-dark: #6e4746;
  --sage: #7f8977;
  --line: rgba(47, 51, 48, 0.14);
  --shadow: 0 24px 70px rgba(75, 62, 52, 0.12);
  --radius-xl: 36px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-sans: "Manrope", Arial, sans-serif;
  --container: min(1160px, calc(100% - 40px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  width: 100%;
  max-width: 100%;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 0 0, rgba(215, 195, 180, 0.35), transparent 31rem),
    radial-gradient(circle at 100% 20%, rgba(168, 170, 148, 0.26), transparent 28rem),
    var(--bg);
  font-family: var(--font-sans);
  line-height: 1.65;
  overflow-x: hidden;
}

body.menu-open,
body.lightbox-open {
  overflow: hidden;
}

img {
  display: block;
  width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

::selection {
  color: #fff;
  background: var(--accent);
}

.page-noise {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.12;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.18'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

.section {
  width: var(--container);
  margin: 0 auto;
  padding: 120px 0;
  position: relative;
}

.section--compact {
  padding: 90px 0;
}

.site-header {
  position: fixed;
  z-index: 90;
  top: 18px;
  left: 50%;
  width: min(1180px, calc(100% - 28px));
  min-height: 64px;
  padding: 10px 14px 10px 20px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 999px;
  background: rgba(249, 245, 239, 0.78);
  box-shadow: 0 12px 35px rgba(66, 59, 52, 0.08);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.04em;
}

.navigation {
  display: flex;
  align-items: center;
  gap: 8px;
}

.navigation a {
  padding: 10px 15px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.87rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 180ms ease, background 180ms ease;
}

.navigation a:hover,
.navigation a:focus-visible {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.65);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 18px;
  height: 1.5px;
  margin: 5px auto;
  background: var(--ink);
  transition: transform 180ms ease;
}

.hero {
  min-height: 100svh;
  padding-top: 150px;
  padding-bottom: 70px;
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  align-items: center;
  gap: clamp(42px, 7vw, 100px);
}

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

.eyebrow {
  margin: 0 0 20px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(4.8rem, 10vw, 9rem);
  font-weight: 500;
  line-height: 0.72;
  letter-spacing: -0.055em;
}

.hero h1 span {
  display: block;
}

.hero h1 span:last-child {
  margin-left: clamp(48px, 8vw, 110px);
}

.hero h1 em {
  display: block;
  margin: 12px 0 8px clamp(120px, 18vw, 250px);
  color: var(--accent);
  font-size: 0.45em;
  font-weight: 500;
}

.hero-date {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 42px 0 18px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.date-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.hero-intro {
  max-width: 580px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.14rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease,
    color 180ms ease;
}

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

.button--primary {
  color: #fff;
  background: var(--accent);
  box-shadow: 0 12px 30px rgba(140, 97, 95, 0.25);
}

.button--primary:hover {
  background: var(--accent-dark);
  box-shadow: 0 16px 34px rgba(140, 97, 95, 0.32);
}

.button--ghost {
  color: var(--ink);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.42);
}

.button--ghost span {
  color: var(--accent);
  font-size: 1.2rem;
}

.button--full {
  width: 100%;
}

.hero-photo {
  position: relative;
  margin: 0;
  min-height: 650px;
  border-radius: 260px 260px 42px 42px;
  overflow: hidden;
  background: var(--bg-strong);
  box-shadow: var(--shadow);
}

.hero-photo::after {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: inherit;
  pointer-events: none;
}

.hero-photo img {
  height: 100%;
  min-height: 650px;
  object-fit: cover;
}

.hero-photo figcaption {
  position: absolute;
  z-index: 2;
  left: 24px;
  right: 24px;
  bottom: 24px;
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 999px;
  color: #fff;
  background: rgba(39, 42, 39, 0.35);
  backdrop-filter: blur(10px);
  font-size: 0.78rem;
  text-align: center;
}

.hero-orbit {
  position: absolute;
  border: 1px solid rgba(140, 97, 95, 0.2);
  border-radius: 50%;
  pointer-events: none;
}

.hero-orbit--one {
  width: 280px;
  height: 280px;
  left: -210px;
  top: 34%;
}

.hero-orbit--two {
  width: 500px;
  height: 500px;
  right: -350px;
  bottom: -160px;
}

.scroll-hint {
  position: absolute;
  left: 0;
  bottom: 34px;
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-decoration: none;
  text-transform: uppercase;
}

.scroll-hint i {
  display: inline-block;
  width: 42px;
  height: 1px;
  margin: 0 0 3px 12px;
  background: currentColor;
  transform-origin: left;
  animation: scrollLine 1.8s ease-in-out infinite;
}

@keyframes scrollLine {
  0%, 100% { transform: scaleX(0.35); opacity: 0.45; }
  50% { transform: scaleX(1); opacity: 1; }
}

.section-heading {
  max-width: 720px;
  margin: 0 auto 54px;
  text-align: center;
}

.section-heading--left {
  margin-left: 0;
  text-align: left;
}

.section-heading h2,
.story-copy h2,
.dress-code-copy h2,
.rsvp-copy h2,
.contacts-card h2 {
  margin: 0 0 18px;
  font-family: var(--font-serif);
  font-size: clamp(3rem, 6vw, 5.4rem);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.section-heading > p:last-child,
.story-copy > p,
.dress-code-copy > p,
.rsvp-copy > p,
.contacts-card > p {
  color: var(--muted);
}

.countdown {
  text-align: center;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.countdown-card {
  min-height: 190px;
  padding: 30px 18px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: 0 14px 35px rgba(66, 59, 52, 0.06);
  backdrop-filter: blur(14px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.countdown-card strong {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 6vw, 5.2rem);
  font-weight: 500;
  line-height: 1;
}

.countdown-card span {
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.countdown-note {
  max-width: 560px;
  margin: 30px auto 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.story {
  display: grid;
  grid-template-columns: 0.8fr 1.15fr 0.8fr;
  align-items: center;
  gap: clamp(24px, 5vw, 70px);
}

.story-photo {
  overflow: hidden;
  background: var(--bg-strong);
  box-shadow: var(--shadow);
}

.story-photo img {
  height: 100%;
  object-fit: cover;
}

.story-photo--left {
  height: 480px;
  border-radius: 180px 180px 28px 28px;
  transform: rotate(-3deg);
}

.story-photo--right {
  height: 390px;
  border-radius: 30px 160px 30px 160px;
  transform: translateY(80px) rotate(2deg);
}

.story-copy {
  text-align: center;
}

.story-copy blockquote {
  margin: 34px 0 0;
  color: var(--accent-dark);
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  font-style: italic;
  line-height: 1.15;
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.detail-card {
  min-height: 330px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.34);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: transform 220ms ease, background 220ms ease, box-shadow 220ms ease;
}

.detail-card:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 20px 44px rgba(66, 59, 52, 0.08);
}

.detail-number {
  margin-bottom: auto;
  color: var(--accent);
  font-family: var(--font-serif);
  font-size: 1.4rem;
}

.detail-label {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.detail-card h3 {
  margin: 0 0 10px;
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 500;
  line-height: 1;
}

.detail-card p:not(.detail-label) {
  margin: 0;
  color: var(--muted);
}

.text-link {
  margin-top: 18px;
  color: var(--accent-dark);
  font-weight: 600;
  text-underline-offset: 5px;
}

.important-note {
  max-width: 770px;
  margin: 26px auto 0;
  padding: 18px 22px;
  border-radius: 999px;
  background: rgba(168, 170, 148, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--muted);
  text-align: center;
}

.important-note span {
  color: var(--accent);
}

.important-note p {
  margin: 0;
  font-size: 0.86rem;
}

.timeline {
  position: relative;
  max-width: 900px;
  margin-left: auto;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 18px;
  bottom: 18px;
  left: 112px;
  width: 1px;
  background: var(--line);
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 54px;
  padding: 0 0 52px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-time {
  padding-top: 2px;
  color: var(--accent);
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 600;
  text-align: right;
}

.timeline-content {
  position: relative;
  padding: 0 0 0 30px;
}

.timeline-content::before {
  content: "";
  position: absolute;
  top: 8px;
  left: -29px;
  width: 12px;
  height: 12px;
  border: 5px solid var(--bg);
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.timeline-content h3 {
  margin: 0 0 8px;
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 500;
  line-height: 1;
}

.timeline-content p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
}

.dress-code {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: clamp(36px, 8vw, 120px);
}

.palette {
  display: flex;
  gap: 12px;
  margin-top: 34px;
}

.palette span {
  width: 54px;
  height: 54px;
  border: 5px solid rgba(255, 255, 255, 0.48);
  border-radius: 50%;
  background: var(--swatch);
  box-shadow: 0 8px 20px rgba(66, 59, 52, 0.12);
}

.dress-code-card {
  min-height: 430px;
  padding: 42px;
  border-radius: 220px 220px 32px 32px;
  color: #f8f3ed;
  background:
    linear-gradient(rgba(51, 58, 52, 0.86), rgba(51, 58, 52, 0.86)),
    url("assets/photo-6.svg") center / cover;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  text-align: center;
}

.dress-code-card p {
  margin: 0 0 8px;
  font-size: 0.72rem;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.dress-code-card strong {
  margin-bottom: 14px;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 500;
  line-height: 1;
}

.dress-code-card span {
  opacity: 0.78;
  font-size: 0.86rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  grid-template-rows: 340px 340px;
  gap: 16px;
}

.gallery-item,
.gallery-quote {
  overflow: hidden;
  border: 0;
  border-radius: var(--radius-lg);
}

.gallery-item {
  position: relative;
  padding: 0;
  background: var(--bg-strong);
  cursor: zoom-in;
}

.gallery-item::after {
  content: "Открыть";
  position: absolute;
  right: 18px;
  bottom: 18px;
  padding: 9px 13px;
  border-radius: 999px;
  color: #fff;
  background: rgba(39, 42, 39, 0.38);
  backdrop-filter: blur(8px);
  font-size: 0.72rem;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.gallery-item:hover::after,
.gallery-item:focus-visible::after {
  opacity: 1;
  transform: none;
}

.gallery-item img {
  height: 100%;
  object-fit: cover;
  transition: transform 500ms cubic-bezier(.2,.8,.2,1);
}

.gallery-item:hover img {
  transform: scale(1.035);
}

.gallery-item--wide {
  grid-row: 1 / 3;
}

.gallery-quote {
  padding: 36px;
  color: #f9f5ef;
  background: var(--accent);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.gallery-quote span {
  font-size: 0.74rem;
  letter-spacing: 0.2em;
}

.gallery-quote p {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1;
}

.accordion {
  max-width: 900px;
  margin-left: auto;
}

.accordion details {
  border-top: 1px solid var(--line);
}

.accordion details:last-child {
  border-bottom: 1px solid var(--line);
}

.accordion summary {
  padding: 26px 48px 26px 0;
  position: relative;
  list-style: none;
  font-family: var(--font-serif);
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  cursor: pointer;
}

.accordion summary::-webkit-details-marker {
  display: none;
}

.accordion summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 4px;
  color: var(--accent);
  font-family: var(--font-sans);
  font-size: 1.5rem;
  font-weight: 300;
  transform: translateY(-50%);
  transition: transform 180ms ease;
}

.accordion details[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}

.accordion details p {
  max-width: 700px;
  margin: -8px 0 26px;
  color: var(--muted);
}

.rsvp {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  align-items: start;
  gap: clamp(42px, 8vw, 110px);
}

.rsvp-copy {
  position: sticky;
  top: 120px;
}

.rsvp-form {
  padding: clamp(26px, 5vw, 54px);
  border: 1px solid rgba(255, 255, 255, 0.66);
  border-radius: var(--radius-xl);
  background: var(--paper);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.rsvp-form > label,
.rsvp-form fieldset {
  display: block;
  margin: 0 0 24px;
}

.rsvp-form label > span,
.rsvp-form legend {
  display: block;
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rsvp-form input[type="text"],
.rsvp-form select,
.rsvp-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: none;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.64);
  transition: border 180ms ease, box-shadow 180ms ease;
}

.rsvp-form input[type="text"],
.rsvp-form select {
  min-height: 52px;
  padding: 0 16px;
}

.rsvp-form textarea {
  padding: 14px 16px;
  resize: vertical;
}

.rsvp-form input:focus,
.rsvp-form select:focus,
.rsvp-form textarea:focus {
  border-color: rgba(140, 97, 95, 0.68);
  box-shadow: 0 0 0 4px rgba(140, 97, 95, 0.09);
}

.rsvp-form fieldset {
  padding: 0;
  border: 0;
}

.radio-card {
  position: relative;
  margin-bottom: 10px;
}

.radio-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.radio-card span {
  min-height: 52px;
  margin: 0 !important;
  padding: 0 16px 0 48px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.48);
  display: flex !important;
  align-items: center;
  color: var(--ink) !important;
  font-size: 0.88rem !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  cursor: pointer;
}

.radio-card span::before {
  content: "";
  position: absolute;
  left: 17px;
  width: 17px;
  height: 17px;
  border: 1px solid var(--muted);
  border-radius: 50%;
}

.radio-card input:checked + span {
  border-color: rgba(140, 97, 95, 0.5);
  background: rgba(140, 97, 95, 0.08);
}

.radio-card input:checked + span::before {
  border: 5px solid var(--accent);
}

.form-status {
  min-height: 24px;
  margin: 16px 0 0;
  color: var(--accent-dark);
  font-size: 0.85rem;
  text-align: center;
}

.contacts-card {
  padding: clamp(38px, 7vw, 80px);
  border-radius: var(--radius-xl);
  color: #f7f1ea;
  background: #465047;
  text-align: center;
}

.contacts-card > p {
  max-width: 590px;
  margin-left: auto;
  margin-right: auto;
  color: rgba(255, 255, 255, 0.68);
}

.contacts-card .eyebrow {
  color: #d7c3b4;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}

.contact-links a {
  padding: 12px 18px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  text-decoration: none;
  transition: background 180ms ease;
}

.contact-links a:hover {
  background: rgba(255, 255, 255, 0.1);
}

.site-footer {
  width: var(--container);
  margin: 0 auto;
  padding: 28px 0 48px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 0.84rem;
}

.site-footer p {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 1.25rem;
}

.lightbox {
  width: min(920px, calc(100% - 28px));
  padding: 0;
  border: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #171917;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.42);
}

.lightbox::backdrop {
  background: rgba(25, 27, 25, 0.75);
  backdrop-filter: blur(8px);
}

.lightbox img {
  max-height: 86vh;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  z-index: 2;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(0, 0, 0, 0.35);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

.toast {
  position: fixed;
  z-index: 150;
  left: 50%;
  bottom: 28px;
  max-width: min(520px, calc(100% - 28px));
  padding: 13px 18px;
  border-radius: 999px;
  color: #fff;
  background: rgba(47, 51, 48, 0.92);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 20px);
  transition: opacity 220ms ease, transform 220ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.floating-petals {
  position: fixed;
  inset: 0;
  z-index: 140;
  pointer-events: none;
  overflow: hidden;
}

.petal {
  position: absolute;
  top: -30px;
  width: 12px;
  height: 18px;
  border-radius: 70% 30% 70% 30%;
  background: rgba(140, 97, 95, 0.78);
  animation: petalFall linear forwards;
}

@keyframes petalFall {
  to {
    transform: translate3d(var(--drift), 110vh, 0) rotate(var(--rotate));
    opacity: 0;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 700ms cubic-bezier(.2,.7,.2,1),
    transform 700ms cubic-bezier(.2,.7,.2,1);
}

.reveal--delay {
  transition-delay: 100ms;
}

.reveal--delay-2 {
  transition-delay: 180ms;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 138px;
  }

  .hero-copy {
    max-width: 760px;
  }

  .hero-photo {
    min-height: 640px;
    border-radius: 280px 280px 42px 42px;
  }

  .hero-photo img {
    min-height: 640px;
  }

  .scroll-hint {
    display: none;
  }

  .story {
    grid-template-columns: 0.8fr 1.2fr;
  }

  .story-photo--right {
    display: none;
  }

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

  .detail-card {
    min-height: 250px;
  }

  .dress-code,
  .rsvp {
    grid-template-columns: 1fr;
  }

  .rsvp-copy {
    position: static;
  }
}

@media (max-width: 760px) {
  :root {
    --container: calc(100vw - 28px);
  }

  .section {
    padding: 84px 0;
  }

  .section--compact {
    padding: 66px 0;
  }

  .site-header {
    top: 10px;
    width: calc(100vw - 28px);
  }

  .menu-button {
    display: block;
  }

  .navigation {
    position: fixed;
    top: 82px;
    left: 14px;
    right: 14px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.62);
    border-radius: 24px;
    background: rgba(249, 245, 239, 0.96);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
    display: grid;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .navigation.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .navigation a {
    padding: 13px 14px;
  }

  .menu-open .menu-button span:first-child {
    transform: translateY(3.25px) rotate(45deg);
  }

  .menu-open .menu-button span:last-child {
    transform: translateY(-3.25px) rotate(-45deg);
  }

  .hero {
    width: var(--container);
    max-width: var(--container);
    min-height: auto;
    padding-top: 118px;
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-copy,
  .hero-photo,
  .story-copy,
  .dress-code-copy,
  .contacts-card {
    min-width: 0;
  }

  .hero h1 {
    font-size: clamp(4.2rem, 24vw, 7rem);
  }

  .hero h1 em {
    margin-left: 42%;
  }

  .hero h1 span:last-child {
    margin-left: 18%;
  }

  .hero-date {
    flex-wrap: wrap;
  }

  .hero-photo {
    width: 100%;
    max-width: 100%;
    min-height: 0;
    aspect-ratio: 3 / 4;
  }

  .hero-photo img {
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
  }

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

  .countdown-card {
    min-height: 150px;
  }

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

  .story-photo--left {
    height: 480px;
    width: min(390px, 100%);
    margin: 0 auto;
  }

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

  .timeline::before {
    left: 76px;
  }

  .timeline-item {
    grid-template-columns: 56px 1fr;
    gap: 38px;
  }

  .timeline-time {
    font-size: 1.3rem;
  }

  .timeline-content {
    padding-left: 22px;
  }

  .timeline-content::before {
    left: -24px;
  }

  .dress-code-card {
    min-height: 390px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-template-rows: 480px 320px 320px 270px;
  }

  .gallery-item--wide {
    grid-row: auto;
  }

  .important-note {
    border-radius: 20px;
    align-items: flex-start;
    text-align: left;
  }

  .site-footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

@media (max-width: 460px) {
  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-photo {
    aspect-ratio: 3 / 4;
  }

  .hero-photo img {
    min-height: 0;
  }

  .palette {
    gap: 8px;
  }

  .palette span {
    width: 46px;
    height: 46px;
  }

  .gallery-grid {
    grid-template-rows: 400px 280px 280px 250px;
  }

  .rsvp-form {
    border-radius: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}