:root {
  --paper: #efe7dc;
  --paper-2: #e7dccd;
  --ink: #302b28;
  --muted: #81756c;
  --terracotta: #a55f4d;
  --sage: #697565;
  --line: rgba(48, 43, 40, .22);
  --white: #f7f3ed;
  --accent: #a55f4d;

  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Manrope", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  overflow-x: hidden;
}

body.locked {
  overflow: hidden;
}


/* =========================
   IMAGES
========================= */

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* =========================
   LINKS / BUTTONS
========================= */

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

button {
  font: inherit;
}


/* =========================
   COMMON SECTION
========================= */

.section {
  width: min(1180px, calc(100% - 64px));
  margin: 0 auto;
}


/* =========================
   OPENING / DRAG TO OPEN
========================= */

.opening {
  position: fixed;
  inset: 0;
  z-index: 100;

  overflow: hidden;

  display: flex;
  flex-direction: column;
  justify-content: space-between;

  padding: 30px 42px;

  color: var(--white);

  background:
    linear-gradient(
      135deg,
      rgb(34 44 35 / 49%),
      rgb(81 67 57 / 38%)
    ),
    url(img/7.webp) center / cover;

  transition:
    transform 1.05s cubic-bezier(.77,0,.18,1),
    opacity .7s ease;

  touch-action: none;
}

.opening.is-opening {
  transform: translateY(-105%);
}

.opening__grain {
  position: absolute;
  inset: 0;

  pointer-events: none;

  opacity: .15;

  background-image: url("");

  mix-blend-mode: soft-light;
}

.opening__top,
.opening__bottom {
  position: relative;
  z-index: 2;

  display: flex;
  justify-content: space-between;

  font-size: 9px;
  letter-spacing: .22em;
}

.opening__center {
  position: relative;
  z-index: 2;

  text-align: center;

  transform: translateY(-2vh);
}

.opening__eyebrow {
  margin: 0 0 24px;

  font-size: 10px;
  letter-spacing: .24em;
  text-transform: uppercase;

  opacity: .72;
}

.opening__names {
  display: flex;
  align-items: center;
  justify-content: center;

  gap: clamp(12px, 3vw, 34px);

  font-family: var(--serif);
  font-size: clamp(60px, 9vw, 132px);
  line-height: .78;
  font-weight: 400;
}

.opening__names i {
  font-size: .42em;
  font-style: italic;
  opacity: .7;
}

.opening__hint {
  margin: 36px 0 0;

  font-size: 9px;
  letter-spacing: .16em;
  text-transform: uppercase;

  opacity: .68;
}

.pull-area {
  position: absolute;
  z-index: 5;

  left: 50%;
  bottom: 13vh;

  width: 86px;
  height: 155px;

  transform: translateX(-50%);

  cursor: grab;
}

.pull-line {
  position: absolute;

  left: 50%;
  top: 0;

  width: 1px;
  height: 80px;

  background: rgba(247,243,237,.6);

  transform-origin: top;

  animation: linePulse 2s ease-in-out infinite;
}

.pull-handle {
  position: absolute;

  left: 50%;
  top: 67px;

  width: 68px;
  height: 68px;

  display: grid;
  place-items: center;

  border: 1px solid rgba(247,243,237,.65);
  border-radius: 50%;

  background: rgba(239,231,220,.1);

  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  transform: translateX(-50%);

  transition:
    transform .2s ease,
    background .2s ease;

  animation: handleFloat 2.2s ease-in-out infinite;
}

.pull-handle:hover {
  background: rgba(247,243,237,.2);
}

.pull-handle__text {
  position: absolute;

  font-size: 8px;
  letter-spacing: .15em;

  transform: translateY(17px);
}

.pull-handle__arrow {
  font-size: 22px;
  line-height: 1;
}

@keyframes linePulse {
  0%,100% {
    transform: scaleY(.72);
    opacity: .45;
  }

  50% {
    transform: scaleY(1);
    opacity: 1;
  }
}

@keyframes handleFloat {
  0%,100% {
    transform: translate(-50%, 0);
  }

  50% {
    transform: translate(-50%, -7px);
  }
}


/* =========================
   HEADER
========================= */

.invitation {
  position: relative;
}

.site-header {
  position: absolute;
  z-index: 20;

  top: 0;
  left: 0;

  width: 100%;
  height: 84px;

  padding: 0 5vw;

  display: flex;
  align-items: center;
  justify-content: space-between;

  color: var(--white);
}

.logo {
  font-family: var(--serif);
  font-size: 26px;
  letter-spacing: .04em;
}

.logo span {
  font-style: italic;
}

.site-header nav {
  display: flex;

  gap: clamp(18px, 3vw, 46px);

  font-size: 10px;
  letter-spacing: .08em;
}

.site-header nav a {
  opacity: .88;
  transition: opacity .2s;
}

.site-header nav a:hover {
  opacity: 1;
}

.menu-toggle,
.mobile-menu {
  display: none;
}


/* =========================
   HERO
   68882.png = 2752x1536
========================= */

.hero {
  position: relative;

  min-height: 100svh;
  height: 900px;

  display: grid;
  place-items: center;

  overflow: hidden;

  color: var(--white);
}

.hero__photo,
.hero__overlay {
  position: absolute;
  inset: 0;
}

.hero__photo img,
.hero__photo video {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center center;

  filter: saturate(.72);
}

.hero__overlay {
  background:
    linear-gradient(
      180deg,
      rgba(15,20,16,.4),
      transparent 35%,
      rgba(15,20,16,.58)
    ),
    linear-gradient(
      90deg,
      rgba(15,20,16,.35),
      transparent 60%
    );
}

.hero__content {
  position: relative;
  z-index: 2;

  width: min(900px, 90%);

  text-align: center;
}

.overline,
.section-label {
  font-size: 9px;
  letter-spacing: .23em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 25px 0;

  font-family: var(--serif);
  font-size: clamp(68px, 9.5vw, 150px);
  line-height: .72;
  font-weight: 400;
  letter-spacing: -.045em;
}

.hero h1 em,
h2 em {
  font-style: italic;
  font-weight: 400;
}

.hero__date {
  margin: 38px 0 28px;

  font-size: 9px;
  letter-spacing: .2em;
}

.text-link {
  display: inline-flex;
  align-items: center;

  gap: 12px;

  width: fit-content;

  padding-bottom: 6px;

  border-bottom: 1px solid var(--line);

  font-size: 10px;
  letter-spacing: .08em;
}

.text-link span {
  font-size: 15px;
  transition: transform .25s;
}

.text-link:hover span {
  transform: translate(4px, 4px);
}

.text-link.light {
  border-color: rgba(255,255,255,.6);
}

.hero__vertical {
  position: absolute;

  right: 28px;
  bottom: 44px;

  font-size: 8px;
  letter-spacing: .2em;

  writing-mode: vertical-rl;

  opacity: .7;
}


/* =========================
   INTRO
   e068...jpg = 736x981
========================= */

.intro {
  min-height: 780px;

  display: grid;

  grid-template-columns:
    100px
    minmax(280px, 1fr)
    390px;

  align-items: center;

  gap: 60px;

  padding: 130px 0;
}

.intro__mark {
  width: 58px;
  height: 58px;

  display: grid;
  place-content: center;

  border: 1px solid var(--ink);
  border-radius: 50%;

  text-align: center;

  font-family: var(--serif);
  font-size: 18px;
  line-height: .7;
}

.intro__mark small {
  font-size: 10px;
}

.intro__text h2,
.details h2,
.schedule h2,
.location h2,
.rsvp h2 {
  margin: 24px 0 32px;

  font-family: var(--serif);
  font-size: clamp(52px, 6vw, 86px);
  line-height: .82;
  font-weight: 400;
  letter-spacing: -.035em;
}

.body-copy {
  max-width: 430px;

  color: var(--muted);

  font-size: 12px;
  line-height: 1.8;
}


/* Фото сохраняет реальные пропорции 736x981 */
.intro__photo {
  width: 100%;

  height: auto;

  aspect-ratio: 736 / 981;

  margin-top: 50px;

  overflow: hidden;
}

.photo-frame {
  overflow: hidden;
}

.intro__photo img {
  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center;

  transition: transform .8s ease;
}

.photo-frame:hover img {
  transform: scale(1.04);
}


/* =========================
   STATEMENT
   8d...jpg = 614x920
========================= */

.statement {
  position: relative;

  min-height: 920px;

  padding: 130px 5vw 100px;

  overflow: hidden;

  text-align: center;

  background: #40342ced;

  color: var(--white);
}

.statement h2 {
  position: relative;
  z-index: 2;

  margin: 55px auto 0;

  font-family: var(--serif);
  font-size: clamp(75px, 12vw, 180px);
  line-height: .7;
  font-weight: 400;
  letter-spacing: -.055em;
}

.statement h2 em {
  color: #d7c7b8;
}


/* Фото 614x920.
   Чуть уменьшаем максимальную ширину,
   чтобы исходник не растягивался. */
.statement__photo {
  position: absolute;
  z-index: 3;

  left: 50%;
  bottom: 35px;

  width: min(270px, 34vw);

  height: auto;

  aspect-ratio: 614 / 920;

  transform: translateX(-50%) rotate(-2deg);

  box-shadow: 0 18px 45px rgba(0,0,0,.18);

  overflow: hidden;
}

.statement__photo img {
  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center;

  filter: grayscale(.25);
}


/* =========================
   DETAILS
========================= */

.details {
  padding: 150px 0;
}

.details__heading {
  margin-bottom: 90px;
}

.details__grid {
  display: grid;

  grid-template-columns: repeat(3, 1fr);

  border-top: 1px solid var(--line);
}

.detail-card {
  min-height: 280px;

  padding: 28px 35px;

  border-right: 1px solid var(--line);
}

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

.detail-card__number {
  color: var(--muted);

  font-size: 9px;
  letter-spacing: .15em;
}

.detail-card h3 {
  margin: 55px 0 18px;

  font-family: var(--serif);
  font-size: 32px;
  font-weight: 500;
}

.detail-card p {
  margin: 0 0 25px;

  color: var(--muted);

  font-size: 11px;
  line-height: 1.8;
}

.detail-card strong {
  color: var(--ink);
  font-weight: 500;
}

.swatches {
  display: flex;

  gap: 7px;

  margin-top: 26px;
}

.swatches i {
  width: 24px;
  height: 24px;

  border-radius: 50%;

  border: 1px solid rgba(48,43,40,.15);
}

.swatches i:nth-child(1) {
  background: #d9cfc1;
}

.swatches i:nth-child(2) {
  background: #a55f4d;
}

.swatches i:nth-child(3) {
  background: #697565;
}

.swatches i:nth-child(4) {
  background: #403b36;
}


/* =========================
   GALLERY
   2717.jpg = 735x1103
   379.jpg = 735x985
========================= */

.gallery {
  position: relative;

  min-height: 900px;

  padding: 90px 8vw;

  background: #d9cfc1;
}


/* Большое фото.
   Ограничиваем ширину до 560px,
   чтобы 735px исходника не растягивать слишком сильно. */
.gallery__image--large {
  width: min(58%, 560px);

  height: auto;

  aspect-ratio: 735 / 1103;

  overflow: hidden;
}

.gallery__image--large img {
  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center;
}


/* Маленькое фото 735x985 */
/* .gallery__image--small {
  position: absolute;

  right: 10%;
  bottom: 110px;

  width: min(26%, 360px);

  height: auto;

  aspect-ratio: 735 / 985;

  transform: rotate(3deg);

  border: 13px solid var(--paper);

  overflow: hidden;
}

.gallery__image--small img {
  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center;
} */

.gallery__caption {
  position: absolute;

  left: 67%;
  top: 150px;

  font-family: var(--serif);
  font-size: 30px;
  line-height: .9;
}

.gallery__caption span {
  display: block;

  margin-bottom: 30px;

  font: 9px var(--sans);
  letter-spacing: .2em;
}


/* =========================
   SCHEDULE
========================= */

.schedule {
  padding: 150px 0;

  display: grid;

  grid-template-columns: 1fr 1.2fr;

  gap: 120px;
}

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

.timeline__item {
  display: grid;

  grid-template-columns: 100px 1fr;

  gap: 35px;

  padding: 32px 0;

  border-bottom: 1px solid var(--line);
}

.timeline time {
  font-family: var(--serif);
  font-size: 24px;
}

.timeline h3 {
  margin: 0 0 9px;

  font-family: var(--serif);
  font-size: 27px;
  font-weight: 500;
}

.timeline p {
  margin: 0;

  max-width: 360px;

  color: var(--muted);

  font-size: 11px;
  line-height: 1.7;
}


/* =========================
   LOCATION
   719a.jpg = 736x920
========================= */

.location {
  min-height: 700px;

  display: grid;

  grid-template-columns: 1fr .9fr;

  background: #c9b9a8;
}


/* Ограничиваем ширину фотографии,
   потому что исходник всего 736px */
.location__photo {
  width: 100%;

  max-width: 590px;

  min-height: 0;

  height: auto;

  aspect-ratio: 736 / 920;

  overflow: hidden;
}

.location__photo img {
  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center;
}

.location__content {
  display: flex;

  flex-direction: column;
  justify-content: center;

  padding: 70px;
}

.location__content h2 {
  margin-bottom: 25px;
}

.button {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  width: fit-content;

  min-height: 48px;

  margin-top: 20px;

  padding: 0 25px;

  border: 1px solid var(--ink);

  font-size: 9px;
  letter-spacing: .12em;
  text-transform: uppercase;

  transition: .25s;
}

.button:hover {
  background: var(--ink);
  color: var(--paper);
}

.button--dark {
  background: var(--ink);
  color: var(--paper);
}

.button--dark:hover {
  background: transparent;
  color: var(--ink);
}


/* =========================
   RSVP / FOOTER
========================= */

.rsvp {
  padding: 170px 0;

  text-align: center;
}

.rsvp__inner {
  max-width: 800px;

  margin: auto;
}

.rsvp h2 {
  font-size: clamp(64px, 9vw, 120px);
}

.rsvp p {
  color: var(--muted);

  font-size: 12px;
  line-height: 1.8;
}

.rsvp .button {
  margin-top: 30px;
}

.footer {
  padding: 75px 5vw 45px;

  text-align: center;

  border-top: 1px solid var(--line);
}

.footer__names {
  font-family: var(--serif);

  font-size: clamp(48px, 7vw, 85px);
}

.footer__names em {
  color: var(--terracotta);
}

.footer p {
  margin: 20px 0 45px;

  color: var(--muted);

  font-size: 10px;
  letter-spacing: .2em;
}

.footer span {
  font-size: 8px;
  letter-spacing: .24em;
}


/* =========================
   REVEAL ANIMATIONS
========================= */

.reveal {
  opacity: 0;

  transform: translateY(35px);

  transition:
    opacity .9s ease,
    transform .9s ease;
}

.reveal.visible {
  opacity: 1;

  transform: translateY(0);
}


/* =========================
   TABLET
========================= */

@media (max-width: 900px) {

  .section {
    width: min(100% - 40px, 680px);
  }

  .site-header nav {
    display: none;
  }

  .menu-toggle {
    display: flex;

    width: 42px;
    height: 42px;

    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 7px;

    padding: 0;

    border: 0;

    background: transparent;

    color: inherit;

    cursor: pointer;
  }

  .menu-toggle span {
    width: 21px;
    height: 1px;

    background: currentColor;

    transition: transform .25s;
  }

  .mobile-menu {
    position: fixed;
    z-index: 19;

    top: 0;
    right: 0;

    width: min(320px, 82vw);

    min-height: 100svh;

    display: flex;

    flex-direction: column;
    justify-content: center;

    gap: 28px;

    padding: 50px;

    background: var(--paper);
    color: var(--ink);

    transform: translateX(100%);

    transition:
      transform .45s cubic-bezier(.77,0,.18,1);
  }

  .mobile-menu.is-open {
    transform: translateX(0);
  }

  .mobile-menu a {
    font-family: var(--serif);
    font-size: 31px;
  }


  /* INTRO */

  .intro {
    grid-template-columns: 60px 1fr;

    gap: 30px;
  }

  .intro__photo {
    grid-column: 2;

    width: min(100%, 390px);

    height: auto;

    aspect-ratio: 736 / 981;

    justify-self: end;

    margin-top: 30px;
  }


  /* STATEMENT */

  .statement {
    min-height: 760px;
  }


  /* DETAILS */

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

  .detail-card {
    min-height: auto;

    border-right: 0;

    border-bottom: 1px solid var(--line);

    padding: 30px 0;
  }

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

  .detail-card h3 {
    margin-top: 30px;
  }


  /* GALLERY */

  .gallery {
    min-height: 760px;

    padding: 70px 6vw;
  }

  .gallery__image--large {
    width: min(70%, 520px);

    height: auto;

    aspect-ratio: 735 / 1103;
  }

  .gallery__caption {
    left: auto;
    right: 7vw;
    top: 110px;
  }

  .gallery__image--small {
    right: 8%;
    bottom: 70px;

    width: min(31%, 300px);

    height: auto;

    aspect-ratio: 735 / 985;
  }


  /* SCHEDULE */

  .schedule {
    grid-template-columns: 1fr;

    gap: 60px;
  }


  /* LOCATION */

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

  .location__photo {
    width: 100%;
    max-width: 100%;

    min-height: 0;

    height: auto;

    aspect-ratio: 736 / 920;
  }

  .location__content {
    padding: 70px 40px;
  }
}


/* =========================
   MOBILE
========================= */

@media (max-width: 600px) {

  .opening {
    padding: 22px 20px;
  }

  .opening__top,
  .opening__bottom {
    font-size: 7px;
  }

  .opening__top span:last-child,
  .opening__bottom span:last-child {
    display: none;
  }

  .opening__center {
    transform: translateY(-5vh);
  }

  .opening__names {
    flex-direction: column;

    gap: 10px;

    font-size: clamp(62px, 19vw, 100px);

    line-height: .7;
  }

  .opening__names i {
    font-size: 30px;
  }

  .opening__hint {
    max-width: 230px;

    margin: 28px auto 0;

    line-height: 1.6;
  }

  .pull-area {
    bottom: 9vh;

    height: 145px;
  }


  /* HEADER */

  .site-header {
    height: 70px;

    padding: 0 20px;
  }

  .logo {
    font-size: 22px;
  }


  /* HERO */

  .hero {
    height: 100svh;

    min-height: 680px;
  }

  .hero h1 {
    font-size: clamp(58px, 17vw, 90px);

    line-height: .76;
  }

  .hero__date {
    margin: 28px 0 24px;

    font-size: 8px;
  }

  .hero__vertical {
    display: none;
  }


  /* SECTION */

  .section {
    width: calc(100% - 40px);
  }


  /* INTRO */

  .intro {
    min-height: auto;

    grid-template-columns: 1fr;

    gap: 28px;

    padding: 95px 0;
  }

  .intro__mark {
    width: 48px;
    height: 48px;
  }

  .intro__text h2,
  .details h2,
  .schedule h2,
  .location h2 {
    font-size: clamp(51px, 15vw, 72px);

    margin: 20px 0 25px;
  }

  .body-copy {
    font-size: 11px;
  }

  .intro__photo {
    grid-column: auto;

    width: 84%;

    height: auto;

    aspect-ratio: 736 / 981;

    margin-top: 15px;

    justify-self: auto;
  }


  /* STATEMENT */

  .statement {
    min-height: 660px;

    padding: 95px 20px 60px;
  }

  .statement h2 {
    margin-top: 55px;

    font-size: clamp(63px, 20vw, 110px);
  }

  .statement__photo {
    width: 45vw;

    height: auto;

    aspect-ratio: 614 / 920;

    max-height: 300px;

    bottom: 25px;
  }


  /* DETAILS */

  .details {
    padding: 100px 0;
  }

  .details__heading {
    margin-bottom: 55px;
  }

  .detail-card {
    padding: 27px 0;
  }


  /* GALLERY */

  .gallery {
    min-height: 650px;

    padding: 45px 20px;
  }

  .gallery__image--large {
    width: 80%;

    height: auto;

    aspect-ratio: 735 / 1103;
  }

  .gallery__caption {
    top: 65px;

    right: 5%;

    font-size: 22px;
  }

  .gallery__image--small {
    right: 7%;

    bottom: 40px;

    width: 43%;

    height: auto;

    aspect-ratio: 735 / 985;

    border-width: 9px;
  }


  /* SCHEDULE */

  .schedule {
    padding: 100px 0;

    gap: 45px;
  }

  .timeline__item {
    grid-template-columns: 62px 1fr;

    gap: 15px;

    padding: 26px 0;
  }

  .timeline time {
    font-size: 19px;
  }

  .timeline h3 {
    font-size: 25px;
  }

  .timeline p {
    font-size: 10px;
  }


  /* LOCATION */

  .location__photo {
    width: 100%;

    max-width: none;

    min-height: 0;

    height: auto;

    aspect-ratio: 736 / 920;
  }

  .location__content {
    padding: 65px 20px;
  }


  /* RSVP */

  .rsvp {
    padding: 110px 0;
  }

  .rsvp h2 {
    font-size: clamp(58px, 17vw, 90px);
  }


  /* FOOTER */

  .footer {
    padding: 60px 20px 35px;
  }

  .footer__names {
    font-size: 52px;
  }
}


/* =========================
   REDUCED MOTION
========================= */

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;

    animation-duration: .01ms !important;

    transition-duration: .01ms !important;
  }
}

/* =========================================================
   GALLERY — одинаковая композиция на ПК и телефоне
   ========================================================= */

.gallery {
  position: relative;
  min-height: auto;
  padding: 70px 6vw 90px;
  background: #d9cfc1;

  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Большая фотография */
.gallery__image--large {
  position: relative;

  width: min(735px, 78vw);
  height: auto;
  aspect-ratio: 735 / 1103;
  border: 11px solid var(--paper);

  overflow: hidden;
  z-index: 1;
}

.gallery__image--large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}


/* Надпись */
.gallery__caption {
  position: absolute;

  top: 85px;
  right: 7vw;
  left: auto;

  z-index: 3;

  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 38px);
  line-height: .9;

  text-align: left;
}

.gallery__caption span {
  display: block;
  margin-bottom: 22px;

  font: 9px var(--sans);
  letter-spacing: .2em;
}


/* Маленькая фотография */
.gallery__image--small {
  position: relative;

  width: min(300px, 42vw);
  height: auto;
  aspect-ratio: 735 / 985;

  margin-top: -210px;
  margin-left: 520px;
  
  transform: rotate(3deg);

  border: 11px solid var(--paper);

  overflow: hidden;
  z-index: 2;
}

.gallery__image--small img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}


/* =========================================================
   ПК
   ========================================================= */

@media (min-width: 901px) {

  .gallery {
    padding-top: 80px;
    padding-bottom: 100px;
  }

  .gallery__image--large {
    width: min(560px, 58vw);
  }

  .gallery__image--small {
    width: min(300px, 25vw);

    /* главное — фотография физически накладывается
       на нижнюю часть большой */
    margin-top: -210px;
    margin-left: 520px;
  }

  .gallery__caption {
    top: 100px;
    right: 8vw;
  }
}


/* =========================================================
   ПЛАНШЕТ
   ========================================================= */

@media (max-width: 900px) {

  .gallery {
    padding: 60px 6vw 80px;
  }

  .gallery__image--large {
    width: min(500px, 72vw);
  }

  .gallery__caption {
    top: 75px;
    right: 5vw;
  }

  .gallery__image--small {
    width: min(280px, 38vw);

    margin-top: -160px;
    margin-left: 38%;
  }
}


/* =========================================================
   ТЕЛЕФОН
   ========================================================= */

@media (max-width: 600px) {

  .gallery {
    padding: 45px 20px 65px;
  }

  .gallery__image--large {
    width: 80%;
    aspect-ratio: 735 / 1103;
  }

  .gallery__caption {
    top: 65px;
    right: 5%;
    font-size: 22px;
  }

  .gallery__caption span {
    margin-bottom: 16px;
    font-size: 8px;
  }

  .gallery__image--small {
    width: 43%;
    aspect-ratio: 735 / 985;

    margin-top: -125px;
    margin-left: 38%;

    border-width: 9px;
  }
}


/* =====================================================
   RSVP
===================================================== */

.rsvp-section {
  position: relative;
  padding: 110px 0 120px;
  background: var(--paper);
  color: var(--ink);
  overflow: hidden;
}


/* =====================================================
   CONTAINER
===================================================== */

.rsvp-section .container {
  width: min(100% - 40px, 720px);
  margin: 0 auto;
}


/* =====================================================
   SECTION LABEL
===================================================== */

.rsvp-section .section-label {
  margin-bottom: 22px;

  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;

  letter-spacing: .25em;
  text-transform: uppercase;

  color: var(--muted);
}


/* =====================================================
   TITLE
===================================================== */

.rsvp-section .section-title {
  margin: 0;

  font-family: var(--serif);
  font-size: clamp(46px, 6vw, 76px);
  font-weight: 400;

  line-height: .92;
  letter-spacing: -.035em;

  color: var(--ink);
}


/* =====================================================
   DECOR LINE
===================================================== */

.rsvp-section .decor-line {
  width: 100%;
  height: 1px;

  margin: 34px 0 30px;

  background: rgba(48, 43, 40, .16);
}

.rsvp-section .decor-line span {
  display: block;

  width: 55px;
  height: 1px;

  background: var(--accent);
}


/* =====================================================
   INTRO TEXT
===================================================== */

.rsvp-section .section-lead {
  max-width: 520px;

  margin: 0 0 12px;

  font-family: var(--sans);
  font-size: 13px;
  font-weight: 400;

  line-height: 1.75;

  color: var(--muted);
}


/* =====================================================
   DEADLINE
===================================================== */

.rsvp-deadline {
  margin: 0 0 55px;

  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;

  letter-spacing: .08em;

  color: var(--accent);
}


/* =====================================================
   FORM
===================================================== */

.rsvp-form {
  width: 100%;
}


/* =====================================================
   FORM GROUP
===================================================== */

.rsvp-form .form-group {
  margin-bottom: 42px;
}


/* =====================================================
   FORM LABEL
===================================================== */

.rsvp-form .form-group > label {
  display: block;

  margin-bottom: 18px;

  font-family: var(--serif);
  font-size: 25px;
  font-weight: 400;

  line-height: 1.15;

  color: var(--ink);
}


/* =====================================================
   RADIO / CHECKBOX LIST
===================================================== */

.radio-list,
.checkbox-list {
  display: flex;

  flex-direction: column;

  gap: 10px;
}


/* =====================================================
   CHOICE
===================================================== */

.rsvp-form .choice {
  position: relative;

  display: flex;
  align-items: center;

  width: 100%;
  min-height: 54px;

  padding: 0 18px;

  border: 1px solid rgba(48, 43, 40, .13);

  background: rgba(255, 255, 255, .28);

  cursor: pointer;

  transition:
    background .25s ease,
    border-color .25s ease,
    transform .25s ease;
}


/* =====================================================
   CHOICE HOVER
===================================================== */

.rsvp-form .choice:hover {
  background: rgba(255, 255, 255, .55);

  border-color: rgba(48, 43, 40, .28);

  transform: translateX(3px);
}


/* =====================================================
   HIDDEN RADIO / CHECKBOX
===================================================== */

.rsvp-form .choice input {
  position: absolute;

  width: 1px;
  height: 1px;

  opacity: 0;

  pointer-events: none;
}


/* =====================================================
   CHOICE TEXT
===================================================== */

.rsvp-form .choice span {
  position: relative;

  display: flex;
  align-items: center;

  width: 100%;

  padding-left: 34px;

  font-family: var(--sans);
  font-size: 12px;

  line-height: 1.4;

  color: var(--ink);
}


/* =====================================================
   RADIO / CHECKBOX ICON
===================================================== */

.rsvp-form .choice span::before {
  content: "";

  position: absolute;

  left: 0;
  top: 50%;

  width: 17px;
  height: 17px;

  transform: translateY(-50%);

  border: 1px solid rgba(48, 43, 40, .35);

  background: transparent;

  transition:
    background .2s ease,
    border-color .2s ease,
    box-shadow .2s ease;
}


/* =====================================================
   RADIO
===================================================== */

.radio-list .choice span::before {
  border-radius: 50%;
}


/* =====================================================
   CHECKBOX
===================================================== */

.checkbox-list .choice span::before {
  border-radius: 2px;
}


/* =====================================================
   SELECTED RADIO / CHECKBOX
===================================================== */

.rsvp-form .choice input:checked + span::before {
  border-color: var(--accent);

  background: var(--accent);

  box-shadow:
    inset 0 0 0 4px var(--paper);
}


/* =====================================================
   SELECTED CHECKBOX
===================================================== */

.checkbox-list .choice input:checked + span::before {
  box-shadow: none;
}


/* =====================================================
   CHECKMARK
===================================================== */

.checkbox-list .choice input:checked + span::after {
  content: "";

  position: absolute;

  left: 5px;
  top: 50%;

  width: 6px;
  height: 10px;

  border-right: 1.5px solid var(--paper);
  border-bottom: 1.5px solid var(--paper);

  transform:
    translateY(-65%)
    rotate(45deg);
}


/* =====================================================
   KEYBOARD FOCUS
===================================================== */

.rsvp-form .choice input:focus-visible + span::before {
  outline: 2px solid rgba(165, 95, 77, .35);

  outline-offset: 3px;
}


/* =====================================================
   TEXT / NUMBER INPUT
===================================================== */

.rsvp-form input[type="text"],
.rsvp-form input[type="number"] {
  display: block;

  width: 100%;
  height: 56px;

  padding: 0 18px;

  border: 0;

  border-bottom: 1px solid rgba(48, 43, 40, .28);

  border-radius: 0;

  background: transparent;

  font-family: var(--sans);
  font-size: 13px;

  color: var(--ink);

  outline: none;

  transition:
    border-color .25s ease,
    background .25s ease;
}


/* =====================================================
   PLACEHOLDER
===================================================== */

.rsvp-form input[type="text"]::placeholder,
.rsvp-form input[type="number"]::placeholder {
  color: rgba(48, 43, 40, .42);
}


/* =====================================================
   INPUT FOCUS
===================================================== */

.rsvp-form input[type="text"]:focus,
.rsvp-form input[type="number"]:focus {
  border-bottom-color: var(--accent);

  background: rgba(255, 255, 255, .22);
}


/* =====================================================
   NUMBER INPUT
   Убираем стрелки браузера
===================================================== */

.rsvp-form input[type="number"]::-webkit-inner-spin-button,
.rsvp-form input[type="number"]::-webkit-outer-spin-button {
  margin: 0;

  -webkit-appearance: none;
}


.rsvp-form input[type="number"] {
  -moz-appearance: textfield;
}


/* =====================================================
   SMALL TEXT
===================================================== */

.rsvp-form .form-group small {
  display: block;

  max-width: 480px;

  margin-top: 11px;

  font-family: var(--sans);
  font-size: 10px;

  line-height: 1.6;

  color: var(--muted);
}


/* =====================================================
   HONEYPOT
===================================================== */

.honeypot {
  position: absolute !important;

  left: -9999px !important;

  width: 1px !important;
  height: 1px !important;

  opacity: 0 !important;

  pointer-events: none !important;
}


/* =====================================================
   BUTTON
===================================================== */

.rsvp-form .button--dark {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  min-width: 190px;
  min-height: 54px;

  padding: 0 30px;

  border: 1px solid var(--ink);

  background: var(--ink);

  color: var(--paper);

  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;

  letter-spacing: .16em;

  text-transform: uppercase;

  cursor: pointer;

  transition:
    background .25s ease,
    color .25s ease,
    transform .25s ease,
    opacity .25s ease;
}


/* =====================================================
   BUTTON HOVER
===================================================== */

.rsvp-form .button--dark:hover {
  background: transparent;

  color: var(--ink);

  transform: translateY(-2px);
}


/* =====================================================
   BUTTON ACTIVE
===================================================== */

.rsvp-form .button--dark:active {
  transform: translateY(0);
}


/* =====================================================
   BUTTON DISABLED
===================================================== */

.rsvp-form .button--dark:disabled {
  opacity: .55;

  cursor: wait;

  transform: none;
}


/* =====================================================
   FORM MESSAGE
===================================================== */

.rsvp-form .form-message {
  min-height: 24px;

  margin-top: 20px;

  font-family: var(--sans);
  font-size: 11px;

  line-height: 1.6;

  color: var(--accent);
}


/* =====================================================
   TABLET
===================================================== */

@media (max-width: 900px) {

  .rsvp-section {
    padding: 90px 0 100px;
  }


  .rsvp-section .container {
    width: min(100% - 48px, 650px);
  }


  .rsvp-section .section-title {
    font-size: clamp(44px, 8vw, 64px);
  }


  .rsvp-form .form-group {
    margin-bottom: 36px;
  }

}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 600px) {

  .rsvp-section {
    padding: 70px 0 80px;
  }


  .rsvp-section .container {
    width: calc(100% - 40px);
  }


  .rsvp-section .section-label {
    margin-bottom: 18px;

    font-size: 9px;
  }


  .rsvp-section .section-title {
    font-size: clamp(42px, 12vw, 58px);

    line-height: .9;
  }


  .rsvp-section .decor-line {
    margin: 27px 0 25px;
  }


  .rsvp-section .section-lead {
    font-size: 12px;

    line-height: 1.7;
  }


  .rsvp-deadline {
    margin-bottom: 42px;

    font-size: 9px;
  }


  .rsvp-form .form-group {
    margin-bottom: 34px;
  }


  .rsvp-form .form-group > label {
    margin-bottom: 14px;

    font-size: 22px;
  }


  .rsvp-form .choice {
    min-height: 51px;

    padding: 0 14px;
  }


  .rsvp-form .choice span {
    padding-left: 31px;

    font-size: 11px;
  }


  .rsvp-form input[type="text"],
  .rsvp-form input[type="number"] {
    height: 52px;

    padding: 0 12px;

    font-size: 12px;
  }


  .rsvp-form .button--dark {
    width: 100%;

    min-height: 54px;
  }

}


@media (max-width: 600px) {
  .hero__photo video {
    object-fit: cover;
    object-position: 54% center;
  }
}