/* TildaSans — шрифт оригинального сайта */
@font-face {
  font-family: 'TildaSans';
  font-style: normal;
  font-weight: 250 1000;
  src: url('https://static.tildacdn.com/fonts/tildasans/TildaSans-VF.woff2') format('woff2-variations'),
       url('https://static.tildacdn.com/fonts/tildasans/TildaSans-VF.woff') format('woff-variations');
}
@font-face {
  font-family: 'TildaSans';
  font-style: normal;
  font-weight: 300;
  src: url('https://static.tildacdn.com/fonts/tildasans/TildaSans-Light.woff2') format('woff2'),
       url('https://static.tildacdn.com/fonts/tildasans/TildaSans-Light.woff') format('woff');
}
@font-face {
  font-family: 'TildaSans';
  font-style: normal;
  font-weight: 400;
  src: url('https://static.tildacdn.com/fonts/tildasans/TildaSans-Regular.woff2') format('woff2'),
       url('https://static.tildacdn.com/fonts/tildasans/TildaSans-Regular.woff') format('woff');
}
@font-face {
  font-family: 'TildaSans';
  font-style: normal;
  font-weight: 700;
  src: url('https://static.tildacdn.com/fonts/tildasans/TildaSans-Bold.woff2') format('woff2'),
       url('https://static.tildacdn.com/fonts/tildasans/TildaSans-Bold.woff') format('woff');
}

/* ===========================
   BASE
=========================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --blue:    #3373d3;
  --dark:    #333333;
  --mid:     #777777;
  --bg-beige:#f7f5f2;
  --bg-blue: #b7cbea;
  --black:   #000000;
  --white:   #ffffff;
  --font-h:  'Literata', Georgia, serif;
  --font-b:  'TildaSans', Arial, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-b);
  color: var(--dark);
  background: var(--white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

/* ===========================
   UTILITY
=========================== */
.text-blue   { color: var(--blue); }
.t-align_center { text-align: center; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.container--md { max-width: 960px; }

/* ===========================
   FADE-IN
=========================== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: none;
}

/* ===========================
   SECTION TITLE
=========================== */
.section-title {
  font-family: var(--font-h);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 400;
  line-height: 1.23;
  color: var(--blue);
  margin-bottom: 40px;
  text-align: center;
}

/* ===========================
   1. HERO
=========================== */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 500px;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.hero__filter {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(255,255,255,0), rgba(255,255,255,0));
}

.hero__arrow {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  animation: arrow-bounce 1.7s ease infinite;
  cursor: pointer;
  opacity: .85;
}

.hero__arrow:hover { opacity: .6; }

@keyframes arrow-bounce {
  0%, 100%  { transform: translateX(-50%) translateY(0); }
  50%, 55%  { transform: translateX(-50%) translateY(-7px); }
}

/* ===========================
   2. GREETING
=========================== */
.greeting {
  padding: 60px 0;
  background: var(--bg-beige);
  text-align: center;
}

.greeting__text {
  font-size: 20px;
  color: var(--dark);
  line-height: 1.7;
  max-width: 700px;
  margin: 0 auto;
}

.greeting__text strong {
  font-family: var(--font-b);
  font-size: 30px;
  display: block;
  margin-bottom: .3em;
}

@media (max-width: 640px) {
  .greeting__text strong { font-size: 22px; }
}

@media (max-width: 480px) {
  .greeting { padding: 15px 0; }
}

/* ===========================
   3. DATE SECTION
=========================== */
.date-section {
  padding: 0 0 15px;
  background: var(--bg-beige);
  text-align: center;
}

.date-section__title {
  line-height: 1.3;
}

.date-section__label {
  font-family: var(--font-h);
  font-size: 64px;
  font-weight: 300;
  background: linear-gradient(0turn, #333333 0%, #777777 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.date-section__value {
  font-family: var(--font-b);
  font-size: 64px;
  font-weight: 700;
  display: block;
}

.date-section__time {
  font-family: var(--font-h);
  font-size: 18px;
  font-weight: 300;
  color: var(--black);
  display: block;
  margin-top: .2em;
}

.countdown-section {
  background: var(--bg-blue);
  padding: 10px 20px 60px;
}

.countdown__heading {
  font-family: var(--font-h);
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  font-weight: 300;
  color: var(--black);
  margin-top: 20px;
  margin-bottom: 10px;
}

.date-section__countdown {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 4px;
  margin-top: 24px;
}

.countdown__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 60px;
}

.countdown__num {
  font-family: var(--font-b);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700;
  color: var(--blue);
  line-height: 1;
}

.countdown__label {
  font-family: var(--font-h);
  font-size: clamp(0.6rem, 1.5vw, 0.75rem);
  font-weight: 300;
  color: var(--black);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 4px;
}

.countdown__sep {
  font-family: var(--font-b);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700;
  color: var(--blue);
  line-height: 1;
  align-self: flex-start;
}

@media (max-width: 640px) {
  .date-section__label,
  .date-section__value { font-size: 30px; }
}

/* ===========================
   4. PHOTO BLOCK (IMG_2025)
=========================== */
.photo-block {
  padding: 75px 0;
  background: var(--bg-beige);
}

.photo-block__img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 480px) {
  .photo-block { padding: 0 0 15px; }
}

/* ===========================
   5. VENUE
=========================== */
.venue {
  background: var(--bg-beige);
  padding-bottom: 0;
}

.venue .section-title { margin-bottom: 40px; }

.venue__desc {
  max-width: 700px;
  margin: 0 auto 90px;
  text-align: center;
  font-size: 20px;
  color: var(--dark);
  line-height: 1.6;
}

.venue__desc p { margin-bottom: .5em; }
.venue__desc a { color: var(--dark); }
.venue__desc a:hover { text-decoration: underline; }

.venue__fullimg {
  width: 100%;
  height: 100vh;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

@media (max-width: 960px) {
  .venue__fullimg { height: 60vw; }
  .venue__desc { margin-bottom: 45px; }
}

/* ===========================
   6. TIMELINE
=========================== */
.timeline {
  position: relative;
  background: var(--bg-blue);
  display: flex;
  align-items: center;
  justify-content: center;
}

.timeline__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: right top;
  background-repeat: no-repeat;
}

.timeline__filter {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .3);
}

.timeline__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
}

.timeline__box {
  background: rgba(255, 255, 255, 1);
  max-width: 620px;
  width: 100%;
  padding: 60px;
}

.timeline__title {
  font-family: var(--font-h);
  font-size: clamp(1.9rem, 4vw, 4rem);
  font-weight: 400;
  color: var(--blue);
  text-align: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
}

.timeline__content {
  font-size: 22px;
  color: var(--black);
  line-height: 1.7;
  text-align: center;
}

.timeline__content strong { color: var(--black); }

@media (max-width: 640px) {
  .timeline__box { padding: 30px 20px; }
  .timeline__content { font-size: 18px; }
}

/* ===========================
   7. DETAILS
=========================== */
.details {
  padding: 150px 0 60px;
  background: var(--bg-beige);
}

.details__header {
  color: var(--dark);
  margin-bottom: 105px;
}

.details__list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 0 -10px;
}

.details__item {
  width: calc(33.333% - 20px);
  margin: 0 10px 40px;
  text-align: center;
}

/* 4th item: center it on its own row */
.details__item:nth-child(4) {
  margin-left: auto !important;
  margin-right: auto !important;
}

.details__title {
  font-family: var(--font-b);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 6px;
}

.details__line {
  border: none;
  border-top: 1px solid rgba(0,0,0,.2);
  margin: 14px 0;
}

.details__item p {
  font-size: 20px;
  color: var(--dark);
  line-height: 1.6;
}

@media (max-width: 960px) {
  .details { padding: 80px 0 0; }
  .details__header { margin-bottom: 45px; }
  .details__item { width: 100%; margin: 0 0 40px; }
}

@media (max-width: 480px) {
  .details { padding: 30px 0 0; }
  .details__item { width: 100%; margin: 0 0 30px; }
  .details__item p { font-size: 16px; }
}

/* ===========================
   8. COUPLE PHOTO
=========================== */
.couple-photo {
  background: var(--bg-beige);
  line-height: 0;
}

.couple-photo__block {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 480px) {
  .couple-photo__block { max-width: 100%; }
}

/* ===========================
   9. RSVP FORM
=========================== */
.rsvp {
  padding: 150px 0 75px;
  background: var(--bg-blue);
}

.rsvp__header {
  text-align: center;
  margin-bottom: 74px;
}

.rsvp__title {
  font-family: var(--font-h);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 400;
  color: var(--dark);
  margin-bottom: 16px;
}

.rsvp__desc {
  font-size: 20px;
  color: var(--dark);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Form horizontal layout (desktop) */
.form-row {
  display: flex;
  align-items: flex-end;
  gap: 0;
}

.form-col {
  flex: 1;
  padding-right: 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.form-col--submit {
  flex: 0 0 auto;
  padding-right: 0;
}

.form-label {
  font-size: 16px;
  color: var(--dark);
  display: block;
  margin-bottom: 8px;
  line-height: 1.4;
}

.form-label__hint {
  font-size: 12px;
  color: var(--mid);
  font-weight: 400;
}

.form-input,
.form-select {
  width: 100%;
  height: 58px;
  padding: 0 20px;
  border: 1px solid var(--black);
  background: transparent;
  font-family: var(--font-b);
  font-size: 16px;
  color: var(--black);
  outline: none;
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color .2s;
}

.form-input::placeholder { color: var(--black); opacity: .5; }
.form-select:focus,
.form-input:focus { border-color: var(--blue); }

.form-select-wrap { position: relative; }

.form-select-wrap::after {
  content: '';
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-3px);
  border-color: var(--black) transparent transparent;
  border-style: solid;
  border-width: 6px 5px 0;
  pointer-events: none;
}

/* Multiselect */
.multiselect { position: relative; user-select: none; }

.multiselect__trigger {
  width: 100%;
  height: 58px;
  padding: 0 40px 0 20px;
  border: 1px solid var(--black);
  background: transparent;
  font-family: var(--font-b);
  font-size: 16px;
  color: var(--black);
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: border-color .2s;
  position: relative;
}

.multiselect__trigger::after {
  content: '';
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-3px);
  border-color: var(--black) transparent transparent;
  border-style: solid;
  border-width: 6px 5px 0;
  pointer-events: none;
  transition: transform .2s;
}

.multiselect.open .multiselect__trigger { border-color: var(--blue); }
.multiselect.open .multiselect__trigger::after { transform: translateY(-6px) rotate(180deg); }

.multiselect__label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; opacity: .5; }
.multiselect__label.has-value { opacity: 1; }

.multiselect__dropdown {
  display: none;
  position: absolute;
  top: calc(100% - 1px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--blue);
  z-index: 200;
  list-style: none;
  max-height: 280px;
  overflow-y: auto;
}

.multiselect.open .multiselect__dropdown { display: block; }

.multiselect__option label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  cursor: pointer;
  font-size: 16px;
  color: var(--dark);
  transition: background .15s;
}

.multiselect__option label:hover { background: var(--bg-beige); }

.multiselect__option input[type="checkbox"] {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  accent-color: var(--blue);
  cursor: pointer;
}

.form-error {
  font-size: 12px;
  color: #f95d51;
  min-height: 16px;
  display: block;
  margin-top: 4px;
}

.btn-submit {
  height: 58px;
  padding: 0 24px;
  background: var(--black);
  color: var(--white);
  border: none;
  font-family: var(--font-b);
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 0;
  transition: background .2s;
}

.btn-submit:hover   { background: var(--blue); }
.btn-submit:disabled { opacity: .6; cursor: not-allowed; }

.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.form-errorbox {
  margin-top: 16px;
  padding: 10px 16px;
  background: #f95d51;
  color: #fff;
  font-size: 14px;
  text-align: center;
}

.rsvp__success {
  margin-top: 24px;
  padding: 20px;
  background: #62c584;
  color: #fff;
  text-align: center;
  font-size: 18px;
}

/* Mobile form — stacked */
@media (max-width: 960px) {
  .rsvp { padding: 80px 0 40px; }

  .form-row {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }

  .form-col { padding-right: 0; }

  .btn-submit { width: 100%; justify-content: center; }
}

@media (max-width: 480px) {
  .rsvp { padding: 30px 0 15px; }
  .rsvp__header { margin-bottom: 30px; }
}

/* ===========================
   10. CLOSING
=========================== */
.closing {
  padding: 60px 0 20px;
  background: var(--bg-blue);
}

.closing__line {
  max-width: 140px;
  height: 1px;
  background: var(--black);
  margin: 0 auto;
}

.closing__text {
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  color: var(--dark);
  line-height: 1.6;
  margin: 44px 0 54px;
}

.closing__text strong em {
  font-size: 18px;
  color: var(--dark);
}

@media (max-width: 480px) {
  .closing { padding: 0; }
}

/* ===========================
   11. CONTACTS
=========================== */
.contacts {
  padding: 15px 0 60px;
  background: var(--bg-blue);
}

.contacts__intro { margin-bottom: 16px; }

.contacts p {
  font-size: 16px;
  color: var(--dark);
  line-height: 2;
}

.contacts a {
  color: var(--dark);
  text-decoration: none;
}

.contacts a:hover { text-decoration: underline; }

@media (max-width: 480px) {
  .contacts { padding: 0 0 30px; }
}
