@import url('reset.css');

/* Локальные шрифты из fonts/ (текстовые лицензии OFL не подключаются) */

@font-face {
  font-family: 'Lemon Tuesday';
  src: url('../fonts/Lemon Tuesday.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'LibraSerifModern';
  src: url('../fonts/LibraSerifModern-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'LibraSerifModern';
  src: url('../fonts/LibraSerifModern-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'LibraSerifModern';
  src: url('../fonts/LibraSerifModern-Italic.otf') format('opentype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'LibraSerifModern';
  src: url('../fonts/LibraSerifModern-BoldItalic.otf') format('opentype');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}



@font-face {
  font-family: 'AnastasiaScriptC';
  src: url('../fonts/anastasiascriptc.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Marta';
  src: url('../fonts/Marta_Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Marta';
  src: url('../fonts/Marta_Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Marta';
  src: url('../fonts/Marta_Italic.otf') format('opentype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'OPTIEngraversOldEnglish';
  src: url('../fonts/CAT Engravers.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --font-lemon: 'Lemon Tuesday', cursive;
  --font-libra: 'LibraSerifModern', serif;
  --font-marta: 'Marta', serif;
  --font-engravers: 'OPTIEngraversOldEnglish', serif;
  --font-open-sans: 'Open Sans', sans-serif;
  --font-source-serif: 'Source Serif 4', serif;
  --font-anastasia: 'AnastasiaScriptC', cursive;
}

body {
  font-family: var(--font-source-serif);
  background-image: url('../images/bg-new.webp');
  background-image: image-set(
    url('../images/bg-new.webp') type('image/webp')
  );
  background-repeat: repeat;
  background-position: center center;
  background-size: cover;
  background-blend-mode: lighten;
}


.lang-modal-open {
  overflow: hidden;
}

.lang-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 20px;
}

.lang-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.lang-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  background: #fff;
  padding: 24px 20px;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.lang-modal__title {
  margin: 0;
  font-family: var(--font-open-sans);
  font-size: 17px;
  line-height: 1.35;
  font-weight: 700;
}

.lang-modal__actions {
  margin-top: 18px;
  display: flex;
  gap: 10px;
  justify-content: center;
}

.lang-modal__btn {
  border: 1px solid #000;
  background: transparent;
  color: #000;
  border-radius: 999px;
  padding: 10px 18px;
  font-family: var(--font-open-sans);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.lang-modal__btn:hover {
  background-color: #000;
  color: #fff;
}

.lang-fab {
  position: fixed;
  right: 16px;
  bottom: 30px;
  z-index: 1100;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.2);
  color: #000;
  font-family: var(--font-open-sans);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.06em;
  cursor: pointer;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.lang-fab:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.38);
  border-color: rgba(255, 255, 255, 0.8);
}

.container {
  max-width: 500px;
  margin: 0 auto;
  padding: 0 15px;
}

@media (max-width: 500px) {
  .container {
    max-width: 100%;
    width: 100%;
  }
}

.hero__date {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2.5px solid #000;
  border-top: 4.5px solid #000;
  font-family: var(--font-open-sans);
  font-weight: 700;
  margin-top: 20px;
  text-transform: uppercase;
  padding: 5px 0;
  font-size: 14px;
}

.title-wrap {
  margin: 5px 0;
  padding: 5px 0;
  border-bottom: 2.5px solid #000;
  border-top: 2.5px solid #000;
}

.subtitle-wrap {
  margin: 5px 0;
  padding: 5px 0;
  border-bottom: 2.5px solid #000;
  border-top: 4.5px solid #000;
}

.hero_img_wrap {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  margin-top: 20px;
}

.hero_img_wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, #0000006d 20%, transparent 45%);
  pointer-events: none;
}

.title {
  font-family: var(--font-anastasia);
  position: absolute;
  bottom: 12%;
  font-size: 45px;
  font-weight: 400;
  color: #fff;
  z-index: 2;
}

.subtitle {
  font-family: var(--font-marta);
  position: absolute;
  bottom: 10%;
  right: 3%;
  font-size: 14px;
  font-weight: 400;
  color: #fff;
  z-index: 2;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.section__title {
  font-family: var(--font-libra);
  font-size: 30px;
  font-weight: 600;
  color: #000;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: center;
  line-height: 100%;
}

.section-wrap {
  margin-top: 30px;
}

.section_quote {
  font-family: var(--font-marta);
  font-size: 20px;
  color: #000;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-top: 4.5px solid #000;
  border-bottom: 1.5px solid #000;
  margin-top: 15px;
  font-weight: 600;
}

.section_text {
  margin-top: 14px;
  font-family: var(--font-source-serif);
  font-size: 14px;
  line-height: 1.45;
  color: #000;
  text-align: justify;
  hyphens: auto;
  column-count: 2;
  column-gap: 20px;
  orphans: 2;
  widows: 2;
}

.section_text p {
  margin: 0 0 0.65em;
  text-indent: 0.8em;
}

.section_text p:first-of-type {
  text-indent: 0;
}

.section_text p:last-child {
  margin-bottom: 0;
}

.section_text--aside-figure {
  column-count: unset;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65em 20px;
  align-items: start;
}

.section_text--aside-figure .section_text__body .section_quote_inner {
  margin: 0 0 0.55em;
}

.section_text__body,
.section_text__aside {
  min-width: 0;
}

.section_text--aside-figure .section_text__body > p:first-of-type {
  text-indent: 0;
}

.section_text--aside-figure .section_figure--aside {
  margin: 0 0 0.65em;
}

.section_text--aside-figure .section_text__aside > p {
  margin-bottom: 0;
  text-indent: 0.8em;
}

.section_figure {
  margin: 20px 0 0;
}

.section_img {
  display: block;
  width: 100%;
  height: auto;
}

.section_img__caption {
  margin-top: 5px;
  font-family: var(--font-libra);
  font-style: italic;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #333;
}

.section_quote_inner {
  font-size: 16px;
  border-top:none;
}

.section__title__single {
  font-size: 25px;
  border-bottom: 2.5px solid #000;
  border-top: 4.5px solid #000;
  margin-top: 30px;
  padding: 5px 0;
}

.section_quote_single {
  border-top: none;
}

.main__text {
  margin-top: 15px;
}

.main__text p:not(:last-child) {
  margin-bottom: 15px;
}

.qr-wrap {
  padding: 15px;
  border: 1.5px dashed #000;
  margin: 20px auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.qr-link {
  width: 50%;
  margin: 0 auto;
}

.wedding-day {
  margin:40px 0 45px;
}

.wedding-day,
.dress-code {
  content-visibility: auto;
  contain-intrinsic-size: 1px 1000px;
}

.section__title__wedding {
  font-family: var(--font-anastasia);
  margin-bottom: 0.5em;
  text-transform: none;
  font-size: 40px;
}

.timeline {
  margin-top: 28px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.timeline__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.timeline__item {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: clamp(1.5rem, 6vw, 3rem);
  padding-bottom: 1.75rem;
  align-items: start;
  opacity: 0;
  transform: translate(-12px, 12px);
  transition:
    opacity 0.55s ease,
    transform 0.55s ease;
}

.timeline__item:nth-child(even) {
  transform: translate(12px, 12px);
}

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

.timeline__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.timeline__item:nth-child(odd) .timeline__content {
  grid-column: 1;
  text-align: right;
  align-items: flex-end;
}

.timeline__item:nth-child(even) .timeline__content {
  grid-column: 2;
  text-align: left;
  align-items: flex-start;
}

/* вертикаль по центру блока, сегмент тянется вниз вместе с отступом до следующего пункта */
.timeline__item::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  margin-left: -1px;
  background: #000;
  transform: scaleY(0);
  transform-origin: top center;
  transition: transform 0.65s ease;
  z-index: 0;
  pointer-events: none;
}

.timeline__item.is-visible::before {
  transform: scaleY(1);
}

.timeline__item:last-child {
  padding-bottom: 0;
}

.timeline__time {
  display: block;
  font-family: var(--font-open-sans);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #000;
  margin-bottom: 0.35rem;
}

.timeline__title {
  font-family: var(--font-marta);
  font-size: 17px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #000;
  margin: 0 0 0.25rem;
  line-height: 1.25;
}

.timeline__desc {
  font-family: var(--font-source-serif);
  font-size: 14px;
  line-height: 1.45;
  color: #222;
  margin: 0;
  text-align: inherit;
}

@keyframes introFadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.intro-reveal {
  opacity: 0;
  transform: translateY(24px);
}

.intro-reveal.is-visible {
  animation: introFadeUp 0.8s ease forwards;
  animation-delay: var(--reveal-delay, 0ms);
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.65s ease,
    transform 0.65s ease;
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .timeline__item,
  .timeline__item:nth-child(even) {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .timeline__item::before {
    transform: scaleY(1);
    transition: none;
  }

  .reveal-on-scroll {
    opacity: 1;
    transform: none;
    transition: none;
  }

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

  .intro-reveal.is-visible {
    animation: none;
  }
}

.dress-code {
  margin-top: 40px;
}

.dress-code__img {
  margin: 0 auto;
}

.dress-code__text {
  margin: 20px 0;
}

.dress-code__colors {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  max-width: 220px;
  margin: 0 auto;
}

.colors_item {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.colors_item-1 {
  background-color: #D48583;
}

.colors_item-2 {
  background-color: #EBC2C1;
}

.colors_item-3 {
  background-color: #E8D1D1;
}

.colors_item-4 {
  background-color: #7A7878;
}

.colors_item-5 {
  background-color: #000000;
}

.dress-code__sex {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 32px;
  margin-top: 32px;
}

.dress-code__sex h3 {
  font-family: var(--font-marta);
  font-size: 17px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 5px;
}

.dress-code__sex p {
  font-size: 15px;
  line-height: 110%;
}

.dress-code__sex::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background-color: rgba(0, 0, 0, 0.8);
  transform: translateX(-50%);
}

.dress-code__sex__item {
  flex: 1;
}

.text_bottom {
  margin: 20px 0;
  border-top: 1.5px solid #000;
  border-bottom: 2.5px solid #000;
  padding: 10px 0;
  font-size: 14px;
  line-height: 110%;
  font-size: 16px;
  position: relative;
  margin-bottom: 30px;
}



