@font-face {
  font-family: Invitation;
  src: url("assets/fonts/great-vibes.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Cormorant;
  src: url("assets/fonts/cormorant.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Cormorant;
  src: url("assets/fonts/cormorant-italic.ttf") format("truetype");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}
:root {
  --ink: #2c2523;
  --rose: #2c2523;
  --muted: #2c2523;
  --line: #ded3ce;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: Cormorant, Georgia, serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
}
.hero {
  position: relative;
  isolation: isolate;
  min-height: 720px;
  height: 100svh;
  max-height: 1250px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #e8e3d9 url("assets/silk.png") center 48% / cover no-repeat;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    180deg,
    rgba(255, 252, 247, 0.16),
    rgba(255, 252, 247, 0.3) 60%,
    #fff 100%
  );
}
.eyebrow {
  font-family: Arial, sans-serif;
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  line-height: 1.8;
}
.hero__eyebrow {
  position: absolute;
  top: 52px;
  left: 24px;
  right: 24px;
}
h1 {
  font-weight: 400;
  margin: 0 0 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: Invitation, "Times New Roman", cursive;
  color: #2c2523;
  text-shadow: 0 1px 16px #fff9;
}
.hero__age {
  font-size: clamp(100px, 11vw, 160px);
  line-height: 1.2;
}
.hero__title {
  font-size: clamp(66px, 9.4vw, 142px);
  line-height: 1.4;
}

.details {
  max-width: 1260px;
  margin: 0 auto;
  padding: 110px 64px 100px;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 90px;
  align-items: center;
  scroll-margin-top: 30px;
}
.details__text > .eyebrow {
  margin: 0 0 28px;
  color: var(--muted);
}
h2 {
  font-weight: 400;
  font-size: clamp(60px, 6vw, 86px);
  line-height: 0.94;
  letter-spacing: -0.035em;
  margin: 0 0 32px;
  text-transform: none;
  color: var(--rose);
  font-family: Invitation, cursive;
  letter-spacing: 0;
  line-height: 1.25;
}

.intro {
  font-size: 25px;
  line-height: 1.35;
  margin: 0 0 20px;
}
.placeholder {
  font-size: 19px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 370px;
  margin: 0;
}
.event-info {
  margin: 34px 0 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.event-info dt {
  font-family: Arial, sans-serif;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 9px;
  color: var(--muted);
}
.event-info dd {
  margin: 0;
  font-size: 17px;
}

.details__photo {
  margin: 0;
  position: relative;
  padding-top: 20px;
}
.details__photo::before {
  content: "";
  position: absolute;
  inset: 0 18px 55px -18px;
  border: 1px solid var(--line);
  z-index: -1;
}
.details__photo img {
  display: block;
  width: 100%;
  height: 610px;
  object-fit: cover;
  object-position: 48% center;
}
figcaption {
  font-style: italic;
  font-size: 18px;
  text-align: center;
  padding: 22px 0;
  color: var(--muted);
}

@media (min-width: 1600px) {
  .hero {
    background-position: center 44%;
  }
}
@media (max-width: 800px) {
  .hero {
    min-height: 620px;
    max-height: 1000px;
    background-position: 51% center;
  }
  .hero__eyebrow {
    top: 32px;
    font-size: 8px;
    letter-spacing: 0.2em;
  }
  .hero__age {
    font-size: 116px;
  }
  .hero__title {
    font-size: clamp(61px, 12.2vw, 96px);
  }
  .details {
    grid-template-columns: 1fr;
    gap: 42px;
    padding: 65px 28px 35px;
    max-width: 580px;
  }
  .details__text {
    text-align: center;
  }
  .details__text > .eyebrow {
    font-size: 9px;
    margin-bottom: 24px;
  }
  h2 {
    font-size: 67px;
    margin-bottom: 22px;
  }
  .intro {
    font-size: 24px;
  }
  .placeholder {
    margin: auto;
    font-size: 19px;
    max-width: 350px;
  }
  .event-info {
    margin-top: 28px;
  }
  .details__photo {
    margin: 0 8px;
    padding-top: 14px;
  }
  .details__photo img {
    height: auto;
    aspect-ratio: 4/5;
    object-position: 46% center;
  }
  .details__photo::before {
    inset: 0 14px 55px -14px;
  }
  figcaption {
    font-size: 17px;
  }
}
@media (max-width: 360px) {
  .details {
    padding-left: 20px;
    padding-right: 20px;
  }
  .hero__title {
    font-size: 58px;
  }
  .event-info {
    gap: 8px;
  }
  .event-info dd {
    font-size: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* Дата, время и место */
.event-info {
  grid-template-columns: 1fr 0.7fr 1.5fr;
  gap: 24px;
  margin-top: 36px;
  padding: 26px 0;
  text-align: left;
  border-color: rgba(44, 37, 35, 0.2);
}
.event-info dt {
  margin-bottom: 12px;
  line-height: 1.5;
  letter-spacing: 0.2em;
}
.event-info dd {
  font-size: 25px;
  line-height: 1.2;
  text-wrap: balance;
}
.event-note {
  display: block;
  margin-top: 7px;
  font-size: 17px;
  line-height: 1.4;
}

/* Третий экран: белый блок постепенно растворяется в чёрном шелке. */
.evening {
  --evening-text: #f3e8d8;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(230px, 24vw, 350px) 36px 100px;
  color: var(--evening-text);
  background: #080809 url("assets/black-silk.png") center top/cover no-repeat;
}
.evening::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(
      to bottom,
      #fff 0,
      rgba(255, 255, 255, 0.97) 30px,
      rgba(255, 255, 255, 0.72) 90px,
      rgba(255, 255, 255, 0.32) 150px,
      rgba(255, 255, 255, 0.08) 210px,
      transparent 280px
    ),
    linear-gradient(rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.32));
}
.evening__content {
  max-width: 1000px;
  margin: 0 auto;
}
.evening__text {
  max-width: 850px;
  margin: 0 auto 78px;
  padding: 0 12px;
  text-align: center;
  font-family: Invitation, Georgia, cursive;
  font-weight: 400;
  font-size: clamp(34px, 4.2vw, 56px);
  line-height: 1.55;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.6);
}
.evening__text p {
  margin: 0;
}
.evening__text p + p {
  margin-top: 44px;
}
.evening__photo {
  max-width: 720px;
  margin: 0 auto;
}
.evening__photo img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(243, 232, 216, 0.2);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.3);
}
@media (max-width: 800px) {
  .evening {
    padding: 240px 26px 56px;
    background-size: auto 100%;
    background-position: center top;
  }
  .evening::before {
    background:
      linear-gradient(
        to bottom,
        #fff 0,
        rgba(255, 255, 255, 0.96) 25px,
        rgba(255, 255, 255, 0.65) 75px,
        rgba(255, 255, 255, 0.25) 130px,
        rgba(255, 255, 255, 0.06) 180px,
        transparent 230px
      ),
      linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.35));
  }
  .evening__text {
    max-width: 560px;
    padding: 0;
    margin-bottom: 45px;
    font-size: clamp(32px, 6vw, 44px);
    line-height: 1.55;
  }
  .evening__text p + p {
    margin-top: 32px;
  }
  .evening__photo {
    max-width: 540px;
  }
}
@media (max-width: 600px) {
  .event-info {
    grid-template-columns: 1fr 1fr;
    gap: 28px 20px;
    text-align: center;
  }
  .event-info > div:last-child {
    grid-column: 1/-1;
  }
  .event-info dd {
    font-size: 26px;
  }
}

/* Общий шелковый фон без стыка между третьим и четвертым экранами. */
.dark-chapters {
  color: #f3e8d8;
  background:
    linear-gradient(rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.25)),
    url("assets/black-silk.png") center/cover no-repeat;
  background-color: #080809;
}
.evening,
.afterparty {
  height: 100vh;
  height: 100svh;
  min-height: 600px;
  background: none;
  padding: 100px 24px 24px;
}
.evening::before {
  background: linear-gradient(
    to bottom,
    #fff 0,
    rgba(255, 255, 255, 0.75) 25px,
    rgba(255, 255, 255, 0.25) 60px,
    transparent 95px
  );
}
.evening__content,
.afterparty__content {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 24px;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-width: 1000px;
  margin: 0 auto;
}
.evening__text,
.afterparty__text {
  max-width: 850px;
  margin: 0 auto;
  padding: 0;
  color: #f3e8d8;
  font-family: Invitation, Georgia, cursive;
  font-size: clamp(24px, 3.8svh, 42px);
  line-height: 1.3;
  font-weight: 400;
  text-align: center;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.6);
}
.evening__text p + p,
.afterparty__text p + p {
  margin-top: 16px;
}
.evening__photo,
.afterparty__photo {
  width: min(100%, 850px);
  max-width: none;
  height: 85%;
  min-height: 0;
  margin: 0;
  align-self: center;
  justify-self: center;
}
.evening__photo img,
.afterparty__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border: none;
  box-shadow: none;
}
.afterparty {
  padding-top: 28px;
  padding-bottom: 36px;
}
.afterparty__content {
  grid-template-rows: minmax(0, 1fr) auto;
}
.afterparty__text p {
  margin: 0;
}
.afterparty__heading {
  font-size: 1.15em;
}
.afterparty__photo img {
  object-position: center 55%;
}
@media (max-width: 600px) {
  .evening {
    padding: 100px 20px 20px;
  }
  .afterparty {
    padding: 20px;
  }
  .evening__content,
  .afterparty__content {
    gap: 18px;
  }
  .evening__text,
  .afterparty__text {
    font-size: clamp(22px, 3.5svh, 30px);
    line-height: 1.25;
  }
  .afterparty__text {
    font-size: clamp(22px, 3.2svh, 28px);
  }
  .evening__text p + p,
  .afterparty__text p + p {
    margin-top: 14px;
  }
}
@media (max-height: 600px) {
  .evening__text,
  .afterparty__text {
    font-size: 20px;
    line-height: 1.2;
  }
  .evening__content,
  .afterparty__content {
    gap: 12px;
  }
}

/* Плавное затемнение шелка перед блоком дресс-кода. */
.dark-chapters::after {
  content: "";
  display: block;
  height: 100px;
  background: linear-gradient(to bottom, transparent, #181819);
}
.dresscode {
  --dress-accent: #e7c6a7;
  --dress-text: #fff6ea;
  min-height: 100svh;
  padding: 125px 64px 110px;
  color: var(--dress-text);
  background:
    linear-gradient(to bottom, #181819, transparent 200px),
    linear-gradient(rgba(0, 0, 0, 0.53), rgba(0, 0, 0, 0.53)),
    url("assets/grey-silk.png") center/cover no-repeat;
  background-color: #252526;
}
.dresscode__content {
  width: 100%;
  max-width: 850px;
  margin: 0 auto;
  text-align: left;
}
.dresscode__header {
  margin-bottom: 80px;
}
.dresscode h2 {
  margin: 0;
  color: var(--dress-accent);
  font-family: Cormorant, Georgia, serif;
  font-size: clamp(48px, 6.5vw, 86px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}
.dresscode__english {
  margin: 6px 0 0;
  font-size: clamp(40px, 5.5vw, 72px);
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.dresscode__script {
  position: relative;
  margin: -2px 0 0;
  font-family: Invitation, Georgia, cursive;
  font-size: clamp(66px, 8vw, 112px);
  line-height: 1.25;
  color: var(--dress-accent);
}
.dresscode__group + .dresscode__group {
  margin-top: 48px;
}
.dresscode__group h3 {
  margin: 0 0 18px;
  color: var(--dress-accent);
  font-family: Cormorant, Georgia, serif;
  font-style: italic;
  font-size: clamp(25px, 2.8vw, 34px);
  font-weight: 400;
  line-height: 1.2;
}
.dresscode__group p {
  max-width: 780px;
  margin: 0;
  font-size: clamp(27px, 3.2vw, 42px);
  line-height: 1.25;
  text-wrap: pretty;
}
@media (max-width: 600px) {
  .dark-chapters::after {
    height: 65px;
  }
  .dresscode {
    padding: 85px 30px 80px;
    background-position:
      center,
      center,
      55% center;
  }
  .dresscode__header {
    margin-bottom: 52px;
  }
  .dresscode h2 {
    font-size: clamp(40px, 10.5vw, 60px);
  }
  .dresscode__english {
    font-size: clamp(35px, 9.4vw, 54px);
  }
  .dresscode__script {
    font-size: clamp(57px, 15vw, 84px);
    margin-top: 4px;
  }
  .dresscode__group h3 {
    font-size: 25px;
    margin-bottom: 14px;
  }
  .dresscode__group p {
    font-size: 27px;
    line-height: 1.3;
  }
  .dresscode__group + .dresscode__group {
    margin-top: 36px;
  }
}

/* Каллиграфический заголовок по последней правке. */
.dresscode h2 {
  font-family: Invitation, cursive;
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.25;
}

/* Переход от серого шелка к светлой палитре. */
.dresscode {
  position: relative;
  padding-bottom: 220px;
}
.dresscode::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 150px;
  background: linear-gradient(to bottom, rgba(207, 196, 178, 0), #cfc4b2);
  pointer-events: none;
}
.palette {
  padding: 80px 24px 90px;
  color: #2c2523;
  background:
    linear-gradient(to bottom, #cfc4b2, rgba(207, 196, 178, 0) 200px),
    url("assets/palette-silk.png") center/cover no-repeat;
  background-color: #e8e0d3;
}
.palette__card {
  position: relative;
  width: 100%;
  max-width: 650px;
  margin: 0 auto;
  padding: 150px 68px;
  filter: drop-shadow(0 14px 25px rgba(44, 37, 35, 0.14));
}
.palette__frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.palette__body {
  position: relative;
  text-align: center;
}
.palette__intro {
  margin: 0 auto;
  max-width: 460px;
  font-family: Cormorant, Georgia, serif;
  font-size: 36px;
  line-height: 1.25;
  text-wrap: balance;
}
.palette__swatches {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 430px;
  margin: 46px auto;
  padding: 0;
  list-style: none;
}
.palette__swatches li {
  aspect-ratio: 1;
  min-width: 0;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 2px 7px #2c252326;
  outline: 1px solid #2c252326;
  outline-offset: 4px;
}
.palette__swatches img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.palette__note {
  margin: 0 auto;
  max-width: 460px;
  color: #775037;
  font-size: 29px;
  font-style: italic;
  line-height: 1.3;
  text-wrap: balance;
}
@media (max-width: 600px) {
  .dresscode {
    padding-bottom: 180px;
  }
  .palette {
    padding: 55px 12px 65px;
  }
  .palette__card {
    padding: 105px 34px;
  }
  .palette__intro {
    font-size: clamp(24px, 6.2vw, 32px);
  }
  .palette__swatches {
    gap: 13px;
    margin: 34px auto;
    max-width: 360px;
  }
  .palette__note {
    font-size: clamp(22px, 5.5vw, 27px);
  }
}

/* Завершение приглашения: светлый шелк плавно уходит в черный. */
.palette {
  position: relative;
  padding-bottom: 230px;
}
.palette::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 180px;
  background: linear-gradient(to bottom, rgba(8, 8, 9, 0), #080809);
  pointer-events: none;
}
.closing {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 60px;
  padding: 140px 28px 70px;
  color: #fff;
  text-align: center;
  background:
    linear-gradient(to bottom, #080809, rgba(8, 8, 9, 0.22) 200px),
    url("assets/final-silk.png") center/cover no-repeat;
  background-color: #080809;
}
.closing__content {
  width: 100%;
  max-width: 850px;
  font-family: Invitation, Georgia, cursive;
  font-size: clamp(32px, 4.1vw, 51px);
  font-weight: 400;
  line-height: 1.5;
  text-wrap: balance;
  text-shadow: 0 2px 15px #000;
}
.closing__content p {
  margin: 0;
}
.closing__content p + p {
  margin-top: 36px;
}
.closing__lead {
  font-size: 1.15em;
}
.closing__telegram {
  color: #fff;
}
.telegram-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 14px 34px;
  border: 1px solid #ffffffa6;
  border-radius: 40px;
  background: #ffffff0d;
  color: #fff;
  font-family: Cormorant, Georgia, serif;
  font-size: 25px;
  font-style: italic;
  line-height: 1.2;
  text-decoration: none;
  transition:
    background 0.2s,
    border-color 0.2s;
}
a.telegram-link:hover {
  background: #ffffff24;
  border-color: #fff;
}
a.telegram-link:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 5px;
}
.telegram-link:disabled {
  cursor: default;
  opacity: 1;
}
.closing__telegram p {
  margin: 12px 0 0;
  font-family: Cormorant, Georgia, serif;
  font-size: 18px;
  color: #dedbd7;
}
@media (max-width: 600px) {
  .palette {
    padding-bottom: 165px;
  }
  .palette::after {
    height: 130px;
  }
  .closing {
    padding: 95px 27px 55px;
    gap: 42px;
  }
  .closing__content {
    font-size: clamp(29px, 7.5vw, 38px);
    line-height: 1.45;
  }
  .closing__content p + p {
    margin-top: 30px;
  }
}
