@font-face {
  font-family: "Inter Wedding";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("assets/fonts/inter-cyrillic-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Inter Wedding";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("assets/fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
  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 {
  --paper: #f4ede2;
  --paper-deep: #e9ddcc;
  --cream: #fffaf2;
  --ink: #392f29;
  --muted: #75675e;
  --wine: #761f35;
  --wine-dark: #431721;
  --rust: #b84b2b;
  --marigold: #e7a521;
  --eucalyptus: #7d927b;
  --moss: #4f603c;
  --line: rgba(74, 52, 43, .2);
  --display: "Inter Wedding", "Segoe UI", Arial, sans-serif;
  --sans: "Inter Wedding", "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); line-height: 1.6; overflow-x: hidden; }
button, input, textarea, select { font: inherit; }
a { color: inherit; }
.noise { position: fixed; inset: 0; z-index: 20; pointer-events: none; opacity: .045; 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='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E"); }

.hero { min-height: 100svh; position: relative; color: var(--ink); overflow: hidden; background: var(--paper); }
.hero__image { position: absolute; inset: 0; background: url("assets/botanical-hero.webp") center/cover no-repeat; }
.hero__shade { position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(255,250,242,.8) 0%, rgba(255,250,242,.55) 38%, rgba(255,250,242,.08) 72%); }
.nav { position: absolute; z-index: 3; top: 0; left: 0; width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 28px 4vw; color: var(--ink); background: linear-gradient(to bottom, rgba(244,237,226,.68), rgba(244,237,226,.28)); border-bottom: 1px solid rgba(57,47,41,.1); text-shadow: 0 1px 8px rgba(255,250,242,.75); }
.monogram { font-family: var(--display); font-size: 22px; font-weight: 300; text-decoration: none; letter-spacing: .08em; }
.monogram span { color: var(--rust); font-style: italic; padding: 0 3px; }
.nav__links { display: flex; gap: 30px; }
.nav__links a { color: var(--ink); text-decoration: none; font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; position: relative; text-shadow: 0 1px 0 rgba(255,255,255,.45); }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -7px; height: 1px; background: currentColor; transition: right .35s ease; }
.nav__links a:hover::after, .nav__links a:focus-visible::after { right: 0; }
.hero__content { position: relative; z-index: 2; min-height: 100svh; padding: 135px 5vw 75px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.eyebrow, .section-label { margin: 0 0 24px; font-size: 13px; line-height: 1.5; letter-spacing: .2em; text-transform: uppercase; font-weight: 500; }
.hero__title { margin: 0; display: flex; flex-direction: column; align-items: center; font: 300 clamp(54px, 8.8vw, 128px)/.84 var(--display); letter-spacing: -.055em; }
.hero__title i { color: var(--rust); font-size: .42em; line-height: .9; font-weight: 400; }
.hero__date { display: grid; grid-template-columns: 1fr 72px 1fr; align-items: center; margin-top: 52px; border-block: 1px solid rgba(57,47,41,.45); }
.hero__date span { padding: 9px 20px; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; }
.hero__date strong { padding: 4px 20px; border-inline: 1px solid rgba(57,47,41,.45); font: 300 24px var(--display); }
.scroll-cue { position: absolute; bottom: 28px; width: 26px; height: 42px; border: 1px solid rgba(57,47,41,.5); border-radius: 20px; }
.scroll-cue span { position: absolute; top: 9px; left: 11px; width: 2px; height: 8px; background: var(--wine); border-radius: 2px; }

.section { padding: 118px max(6vw, 24px); }
.welcome, .wishes, .finale { max-width: 980px; margin: auto; text-align: center; }
.leaf-line, .wishes__ornament { color: var(--wine); font-size: 38px; margin-bottom: 30px; }
h2 { margin: 0; font: 300 clamp(40px, 5.6vw, 74px)/1.08 var(--display); letter-spacing: -.045em; }
.lead { max-width: 740px; margin: 36px auto 0; color: var(--muted); font: 300 clamp(17px, 2vw, 20px)/1.8 var(--display); }
.welcome__photos { max-width: 610px; margin: 52px auto 64px; display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(16px, 3vw, 30px); align-items: start; text-align: left; }
.welcome__photo { margin: 0; overflow: hidden; background: var(--paper-deep); box-shadow: 0 18px 40px rgba(76,48,35,.14); }
.welcome__photo img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.section-label { color: var(--wine); }
.details { background: #eadfce; }
.section-heading { display: flex; justify-content: space-between; align-items: end; margin: 0 auto 68px; max-width: 1280px; }
.section-heading .section-label { align-self: start; margin-top: 18px; }
.detail-grid { max-width: 1280px; margin: auto; display: grid; grid-template-columns: 1fr 1.06fr 1fr; min-height: 520px; }
.detail-card { position: relative; padding: 56px 46px; border: 1px solid var(--line); display: flex; flex-direction: column; justify-content: flex-end; }
.detail-card + .detail-card { border-left: 0; }
.detail-card--image { background: linear-gradient(rgba(255,250,242,.04), rgba(72,25,35,.04)), url("assets/hall_view.webp") center/cover no-repeat; }
.detail-card__number { position: absolute; top: 26px; right: 30px; color: rgba(72,25,35,.3); font: 300 27px var(--display); }
.detail-card__kicker { color: var(--wine); margin: 0 0 16px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; }
.detail-card h3 { margin: 0 0 18px; font: 400 30px/1.2 var(--display); letter-spacing: -.025em; }
.detail-card p { color: var(--muted); font-size: 16px; }
.text-link { align-self: flex-start; margin-top: 18px; color: var(--wine); font-size: 14px; letter-spacing: .05em; border-bottom: 1px solid currentColor; }
.text-link--disabled { opacity: .68; }

.countdown { text-align: center; background: var(--paper); }
.countdown__grid { max-width: 820px; margin: 50px auto 0; display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--line); }
.countdown__grid > div { padding: 34px 12px; border-right: 1px solid var(--line); }
.countdown__grid > div:last-child { border-right: 0; }
.countdown__grid strong { display: block; color: var(--wine); font: 300 clamp(40px, 6vw, 68px)/1 var(--display); }
.countdown__grid span { display: block; margin-top: 10px; color: var(--muted); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.countdown__note, .template-note { margin: 26px auto 0; color: var(--muted); font: 350 16px var(--display); text-align: center; }
.countdown__today { grid-column: 1/-1; font: 300 34px var(--display); color: var(--wine); }

.quote-photo { height: min(84vh, 900px); position: relative; overflow: hidden; display: grid; place-items: center; color: white; text-align: center; }
.quote-photo__image { position: absolute; inset: -9% 0; background: linear-gradient(rgba(47,21,17,.38), rgba(47,21,17,.52)), url("assets/table-autumn.png") center/cover no-repeat; will-change: transform; }
.quote-photo blockquote { position: relative; margin: 0; z-index: 1; font: 300 clamp(32px, 5.2vw, 68px)/1.25 var(--display); letter-spacing: -.035em; text-shadow: 0 2px 20px rgba(0,0,0,.25); }

.program { max-width: 1100px; margin: auto; }
.timeline { border-top: 1px solid var(--line); }
.timeline__item { display: grid; grid-template-columns: 100px 60px 1fr; min-height: 126px; align-items: center; border-bottom: 1px solid var(--line); }
.timeline__item time { color: var(--wine); font: 400 21px var(--display); }
.timeline__item > span { width: 7px; height: 7px; justify-self: center; background: var(--rust); border-radius: 50%; box-shadow: 0 0 0 7px var(--paper), 0 0 0 8px var(--line); }
.timeline__item h3 { margin: 0; font: 400 25px var(--display); letter-spacing: -.02em; }
.timeline__item p { margin: 6px 0 0; color: var(--muted); font-size: 15px; }

.gallery { background: #eadfce; }
.gallery__grid { max-width: 1280px; margin: auto; display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 230px; gap: 16px; }
.gallery__item { grid-column: span 4; margin: 0; position: relative; overflow: hidden; background: #c8b69f; }
.gallery__item.is-placeholder { background: radial-gradient(circle at 22% 18%, rgba(184,75,43,.16), transparent 26%), radial-gradient(circle at 82% 76%, rgba(79,96,60,.15), transparent 30%), #f5ede1; border: 1px solid rgba(118,31,53,.12); }
.gallery__item.is-placeholder::before { content: "Фотография будет добавлена"; position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; color: var(--muted); font-size: 13px; letter-spacing: .08em; text-align: center; text-transform: uppercase; }
.gallery__item--wide { grid-column: span 8; }
.gallery__item--portrait { grid-row: span 2; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(.2,.7,.2,1), filter .5s; }
.gallery__item:nth-child(2) img { object-position: 26% center; }
.gallery__item:nth-child(3) img { object-position: 72% center; }
.gallery__item:nth-child(4) img { object-position: center 30%; }
.gallery__item:nth-child(5) img { object-position: center 70%; }
.gallery__item:hover img { transform: scale(1.035); filter: saturate(1.05); }
.gallery__item figcaption { position: absolute; left: 14px; bottom: 12px; padding: 6px 10px; color: white; background: rgba(43,29,25,.64); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }

.dress { padding: 0; display: grid; grid-template-columns: 1fr 1fr; background: var(--wine-dark); color: #f8eee1; }
.dress__photo { min-height: 760px; overflow: hidden; }
.dress__photo img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.dress__photo:hover img { transform: scale(1.035); }
.dress__content { padding: 11vw 8vw; align-self: center; }
.dress .section-label { color: #e7b37d; }
.dress__content > p:not(.section-label) { max-width: 600px; color: #dbc9bd; margin: 32px 0; font: 300 17px/1.75 var(--display); }
.swatches { display: flex; gap: 15px; margin: 44px 0 72px; }
.swatches span { position: relative; width: 52px; height: 52px; border-radius: 50%; flex: 0 0 auto; background: var(--swatch); border: 1px solid rgba(255,255,255,.22); transition: transform .25s; }
.swatches span:hover { transform: translateY(-6px); }
.swatches b { position: absolute; top: 64px; left: 50%; transform: translateX(-50%); color: #eaded4; font-size: 10px; letter-spacing: .02em; font-weight: 400; white-space: nowrap; }
.dress__note { font-size: 14px !important; font-family: var(--sans) !important; letter-spacing: .02em; }

.wishes { position: relative; }
.wishes::before, .wishes::after { content: ""; position: absolute; top: 50%; width: 90px; height: 1px; background: var(--line); }
.wishes::before { left: -65px; }
.wishes::after { right: -65px; }

.rsvp { background: var(--paper-deep); }
.rsvp__intro { max-width: 760px; margin: 0 auto 54px; text-align: center; }
.rsvp__intro > p:last-child { color: var(--muted); margin-top: 24px; font-family: var(--display); font-size: 18px; font-weight: 300; }
.guest-form { max-width: 900px; margin: auto; padding: clamp(26px, 5vw, 58px); display: grid; grid-template-columns: 1fr 1fr; gap: 34px 30px; background: rgba(255,250,242,.72); border: 1px solid rgba(118,31,53,.16); box-shadow: 0 24px 70px rgba(76,48,35,.09); }
.form-field { min-width: 0; }
.form-field--full { grid-column: 1/-1; }
.form-field label:not(.choice), .form-field legend { display: block; margin-bottom: 11px; color: var(--ink); font: 400 17px var(--display); }
.form-field label span { color: var(--wine); }
.form-field fieldset, fieldset.form-field { border: 0; padding: 0; margin: 0; }
input[type="text"], textarea, select { width: 100%; border: 1px solid rgba(118,31,53,.16); border-radius: 8px; padding: 15px 16px; color: var(--ink); background: rgba(255,255,255,.9); box-shadow: 0 8px 24px rgba(76,48,35,.045); outline: none; transition: border-color .2s, box-shadow .2s, background .2s; }
textarea { min-height: 112px; resize: vertical; }
select { cursor: pointer; }
input[type="text"]:focus, textarea:focus, select:focus { border-color: var(--wine); background: #fff; box-shadow: 0 0 0 3px rgba(118,31,53,.09), 0 10px 26px rgba(76,48,35,.06); }
input[aria-invalid="true"], select[aria-invalid="true"] { border-color: #a82020; }
.field-error { display: block; min-height: 20px; margin-top: 5px; color: #8f1f1f; font-size: 12px; }
.choice-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.choice-grid--two { display: grid; grid-template-columns: 1fr 1fr; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span { display: block; padding: 12px 16px; border: 1px solid rgba(118,31,53,.14); border-radius: 8px; cursor: pointer; color: var(--muted); background: rgba(255,255,255,.88); box-shadow: 0 6px 18px rgba(76,48,35,.035); font-size: 15px; transition: .2s ease; }
.choice input:checked + span { border-color: var(--wine); color: white; background: var(--wine); }
.choice input:focus-visible + span { outline: 2px solid var(--rust); outline-offset: 3px; }
.transfer-point { margin-top: 24px; }
.transfer-point label { display: block; margin-bottom: 10px; color: var(--ink); font-size: 15px; }
.transfer-point[hidden] { display: none; }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { text-align: center; }
.button { display: inline-block; padding: 17px 34px; border: 1px solid var(--wine); color: white; background: var(--wine); cursor: pointer; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; transition: background .3s, color .3s, transform .3s; }
.button:hover:not(:disabled), .button:focus-visible:not(:disabled) { background: transparent; color: var(--wine); transform: translateY(-3px); }
.button:disabled { cursor: wait; opacity: .65; }
.form-status { min-height: 24px; margin: 18px 0 0; color: var(--muted); font-size: 15px; }
.form-status.is-success { color: var(--moss); }
.form-status.is-error { color: #8f1f1f; }
.form-status.is-warning { color: #8a5720; }

.finale { min-height: 72vh; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.finale__names { margin: 46px 0 0; color: var(--wine); font: 300 clamp(24px, 4vw, 40px) var(--display); }
.finale__names i { color: var(--rust); margin: 0 10px; }
footer { background: var(--wine-dark); color: #f8eee1; padding: 46px 6vw; display: flex; align-items: center; justify-content: space-between; }
footer p { font-size: 12px; letter-spacing: .17em; text-transform: uppercase; }

.reveal { opacity: 0; transform: translateY(34px); transition: opacity .82s ease, transform .82s cubic-bezier(.2,.7,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (max-width: 820px) {
  .nav { padding: 18px 18px 16px; flex-direction: column; gap: 12px; background: linear-gradient(to bottom, rgba(244,237,226,.66), rgba(244,237,226,.24)); }
  .nav__links { width: 100%; max-width: 480px; gap: 10px; justify-content: space-between; }
  .nav__links a { flex: 0 1 auto; font-size: 10px; letter-spacing: .08em; white-space: nowrap; }
  .hero__image { background-position: 52% center; }
  .hero__content { padding-top: 170px; }
  .hero__title { line-height: .87; }
  .hero__date { grid-template-columns: 1fr 62px 1fr; }
  .hero__date span { padding: 8px 10px; font-size: 10px; }
  .section { padding: 82px 22px; }
  .welcome__photos { max-width: 440px; margin: 42px auto 56px; grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .section-heading { display: block; margin-bottom: 44px; }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-card { min-height: 300px; padding: 38px 30px; }
  .detail-card + .detail-card { border-left: 1px solid var(--line); border-top: 0; }
  .detail-card--image { min-height: 450px; background-size: cover; }
  .countdown__grid { grid-template-columns: repeat(2, 1fr); }
  .countdown__grid > div:nth-child(2) { border-right: 0; }
  .countdown__grid > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .quote-photo { height: 70vh; }
  .timeline__item { grid-template-columns: 72px 34px 1fr; }
  .gallery__grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 210px; gap: 9px; }
  .gallery__item, .gallery__item--wide { grid-column: span 1; }
  .gallery__item:first-child { grid-column: 1/-1; }
  .dress { grid-template-columns: 1fr; }
  .dress__photo { min-height: 540px; }
  .dress__content { padding: 82px 28px; }
  .swatches { display: grid; grid-template-columns: repeat(6, 1fr); column-gap: 12px; row-gap: 68px; margin: 44px 0 42px; }
  .swatches span { width: 60px; height: 60px; justify-self: center; }
  .swatches span:nth-child(-n+3) { grid-column: span 2; }
  .swatches span:nth-child(4) { grid-column: 2 / span 2; }
  .swatches span:nth-child(5) { grid-column: 4 / span 2; }
  .swatches b { top: 70px; font-size: 11px; }
  .wishes::before, .wishes::after { display: none; }
  .guest-form { grid-template-columns: 1fr; gap: 28px; }
  .form-field--full { grid-column: auto; }
}

@media (max-width: 460px) {
  .hero__title { font-size: clamp(50px, 18vw, 74px); }
  .hero__date { margin-top: 40px; }
  .nav { padding-inline: 12px; }
  .nav__links { gap: 7px; }
  .nav__links a { font-size: 9px; letter-spacing: .035em; }
  .countdown__grid strong { font-size: 44px; }
  .gallery__grid { display: block; }
  .gallery__item { height: 300px; margin-bottom: 10px; }
  .gallery__item--portrait { height: 410px; }
  .swatches { column-gap: 8px; }
  .swatches span { justify-self: center; }
  .swatches b { top: 68px; font-size: 11px; white-space: nowrap; }
  .choice-grid { display: grid; grid-template-columns: 1fr; }
  .choice-grid--two { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
