/* ===== Local Gothic Font ===== */
@font-face {
  font-family: 'GothicCyrillic';
  src: url('../fonts/Cattedrale[RUSbyPenka220]-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'NicolettaScript';
  src: url('../fonts/BeRn TYGRA Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ===== CSS Variables ===== */
:root {
  --bg-paper: #f0ece6;
  --bg-paper-dark: #e8e4de;
  --text-dark: #1a1a1a;
  --text-muted: #555;
  --accent: #770909;
  --accent-hover: #5a0707;
  --dc-beige: #d5baa1;
  --white: #ffffff;
  --font-gothic: 'GothicCyrillic', 'Old Standard TT', 'Georgia', serif;
  --font-sans: 'NicolettaScript', 'Helvetica Neue', -apple-system, Arial, sans-serif;
  --font-serif: 'Old Standard TT', 'Georgia', 'Times New Roman', serif;
  --container-width: 1200px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: 2.5rem;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: #f0ece6;
  background-image: url('../img/paper-bg.png');
  background-repeat: repeat;
  background-size: 100vw auto;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

/* ===== Animations ===== */
.sm-animate {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.sm-animate.visible {
  opacity: 1;
  transform: translateY(0);
}

.sm-animate-delay-1 { transition-delay: 0.1s; }
.sm-animate-delay-2 { transition-delay: 0.2s; }
.sm-animate-delay-3 { transition-delay: 0.3s; }
.sm-animate-delay-4 { transition-delay: 0.4s; }

/* ===== Layout ===== */
.sm-page {
  width: 100%;
  min-height: 100vh;
}

.sm-section {
  width: 100%;
  position: relative;
}

.sm-section-type-1 {
  background-color: transparent;
}

.sm-section-type-2 {
  background-color: rgba(0, 0, 0, 0.08);
}

.sm-container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.sm-container-flex {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 2rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 4rem;
}

.sm-shadow {
  padding: 0;
}

.sm-dark-shadow {
  padding: 0;
}

.sm-shadow-no-pad {
  padding: 0;
}

/* ===== Typography ===== */
.sm-title {
  font-family: var(--font-gothic);
  font-size: 2.8rem;
  font-weight: 400;
  text-align: center;
  margin-bottom: 1.5rem;
  color: var(--text-dark);
}

.sm-text {
  font-family: var(--font-sans);
  font-size: 1.8rem;
  line-height: 1.8;
  text-align: center;
  max-width: 500px;
  margin: 0 auto 1.5rem;
  color: var(--text-muted);
}

/* ===== Decorative Lines ===== */
.sm-strong-line {
  width: 100%;
  height: 2px;
  background-color: var(--text-dark);
  margin: 1rem auto;
}

.sm-thin-line {
  width: 100%;
  height: 1px;
  background-color: #ccc;
  margin: 0.8rem auto;
}

/* ===== Buttons ===== */
.sm-btn {
  display: inline-block;
  padding: 0.9rem 2.5rem;
  background-color: var(--accent);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
  text-align: center;
}

.sm-btn:hover {
  background-color: var(--accent-hover);
  transform: translateY(-1px);
}

/* ===== Images ===== */
.sm-img {
  width: 100%;
  overflow: hidden;
}

.sm-img img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* ===== Mobile Button ===== */
.sm-mob-btn {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  display: none;
}

/* ===== Hero Section ===== */
.sm-main {
  text-align: center;
  padding-top: 2rem;
}

.sm-main .sm-shared__title {
  font-family: var(--font-gothic);
  font-size: 3.5rem;
  font-weight: 400;
  margin-bottom: 1rem;
}

.sm-shared-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 500px;
  margin: 0 auto;
  padding: 0.5rem 0;
}

.sm-shared__text {
  font-family: var(--font-sans);
  font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-muted);
}

.sm-shared__date {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
}

.sm-shared__date span {
  margin: 0 0.2rem;
}

.sm-main__names {
  font-family: var(--font-sans);
  font-size: 1.6rem;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 1.5rem 0;
}

.sm-main__names span {
  margin: 0 0.3rem;
}

.sm-shared__subtitle {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  text-align: center;
}

.on-mob { display: none; }

/* ===== Calendar ===== */
.sm-section__text {
  flex: 1;
}

.sm-section__text .sm-title {
  text-align: left;
  font-size: 2.4rem;
}

.sm-section__text .sm-text {
  text-align: left;
  margin: 0 0 1.5rem;
  border-left: 2px solid #ddd;
  padding-left: 1rem;
  max-width: 400px;
}

.sm-calendar__wrapper {
  flex: 0 0 280px;
}

.sm-calendar__box {
  text-align: center;
}

.sm-calendar__month {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 1rem;
  color: var(--text-muted);
}

.sm-calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  font-family: var(--font-sans);
  font-size: 0.85rem;
}

.sm-calendar-day-week-title {
  font-weight: 600;
  padding: 0.4rem;
  text-transform: uppercase;
  font-size: 0.7rem;
  color: var(--text-muted);
  text-align: center;
}

.sm-calendar-day-week-title.sm-weekend {
  color: var(--accent);
}

.sm-calendar-day {
  padding: 0.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin: 0 auto;
  border-radius: 50%;
  font-size: 0.85rem;
}

.sm-calendar-day.sm-number-active {
  border: 2px solid var(--text-dark);
  font-weight: 700;
}

.sm-calendar__date {
  margin-top: 1.5rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  line-height: 2;
  text-align: center;
}

.sm-calendar__date span {
  margin: 0 0.2rem;
}

/* ===== Location ===== */
.sm-location .sm-container-flex {
  align-items: center;
}

.sm-location .sm-location__image {
  flex: 0 0 40%;
}

.sm-location .sm-section__text {
  flex: 1;
  text-align: center;
}

.sm-location .sm-section__text .sm-title {
  text-align: center;
  font-size: 2.4rem;
}

.sm-location .sm-section__text .sm-text {
  text-align: center;
  border: none;
  padding-left: 0;
  max-width: 100%;
}

.sm-location .sm-btn {
  display: block;
  margin: 1.5rem auto 0;
  max-width: 220px;
}

/* ===== Timing ===== */
.sm-timing {
  background-color: rgba(0, 0, 0, 0.13);
}

.sm-timing__items {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  padding-top: 1rem;
}

.sm-timing__items::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: #ccc;
}

.sm-timing__item {
  flex: 1;
  text-align: center;
}

.sm-timing__item::before {
  display: none;
}

.sm-timing-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
}

.sm-timing__item__time {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--text-dark);
}

.sm-timing__item__title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sm-timing__item__title_icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.sm-timing__item__title_icon svg {
  width: 100%;
  height: 100%;
  fill: var(--text-dark);
}

.sm-timing__item__title_text {
  font-size: 1.4rem;
  color: var(--text-muted);
  text-align: left;
}

/* ===== Dress Code ===== */
.sm-dress-code__text-wrapper {
  text-align: center;
  margin-bottom: 2rem;
}

.sm-dress-code__colors {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  margin-top: 1.5rem;
}

.sm_colors div {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: 1px solid #ddd;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.sm-dress-code__box-gallery {
  display: flex;
  gap: 3rem;
  margin-top: 3rem;
}

.sm-dress-code__box-gallery__item {
  flex: 1;
  text-align: center;
}

.sm-dress-code__box-gallery__title {
  font-family: var(--font-gothic);
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  font-weight: 400;
}

.sm-dress-code__slider__item {
  display: block;
}

.sm-dress-code__slider__item img {
  width: 100%;
  max-width: 340px;
  height: auto;
  margin: 0 auto;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.sm-dress-code__arrows {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

/* ===== Slick Arrows ===== */
.sm-arrow {
  width: 36px;
  height: 36px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s;
  opacity: 0.5;
}

.sm-arrow:hover {
  opacity: 1;
}

.sm-arrow-prev::after {
  content: '←';
  font-size: 1.2rem;
  color: var(--text-dark);
}

.sm-arrow-next::after {
  content: '→';
  font-size: 1.2rem;
  color: var(--text-dark);
}

/* ===== Timer ===== */
.sm-time {
  position: relative;
  overflow: hidden;
}

.sm-time .sm-picture-fon {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.sm-time .sm-picture-fon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sm-time::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1;
}

.sm-time .sm-container {
  position: relative;
  z-index: 2;
  padding: 3rem 2rem;
}

.sm-time .sm-title {
  color: var(--white);
  font-size: 2.5rem;
}

.sm-time__box {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 2rem;
}

.sm-time__item {
  text-align: center;
}

.sm-time__item_number {
  display: flex;
  gap: 2px;
  justify-content: center;
}

.sm-timer-time_number {
  font-family: var(--font-serif);
  font-size: 2.8rem;
  font-weight: 400;
  color: var(--white);
}

.sm-time__item__title {
  margin-top: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  text-transform: capitalize;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.8);
}

/* ===== Wishes ===== */
.sm-wishes .sm-container {
  text-align: center;
}

.sm-wishes__content-slide {
  font-family: var(--font-sans);
  font-size: 1.6rem;
  line-height: 1.8;
  padding: 1rem 0;
  max-width: 500px;
  margin: 0 auto;
  color: var(--text-muted);
  text-align: center;
}

.sm-wishes__pagination-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.sm-wishes__pagination {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--text-muted);
}

.sm-wishes .sm-btn {
  margin-top: 1rem;
}

/* ===== Contacts ===== */
.sm-contact {
  background-color: rgba(0, 0, 0, 0.09);
}

.sm-contact__box {
  text-align: center;
  margin-bottom: 1.5rem;
}

.sm-contact__info {
  text-align: center;
  font-size: 1.6rem;
  line-height: 2.2;
}

.sm-contact__info a {
  color: var(--text-dark);
  transition: color 0.3s;
}

.sm-contact__info a:hover {
  color: var(--accent);
}

.sm-contact__info .sm-btn {
  margin-top: 1rem;
}

/* ===== RSVP / Questionnaire ===== */
.sm-questionnaire .sm-container {
  max-width: 650px;
}

.sm-questionnaire__head {
  text-align: center;
  margin-bottom: 2rem;
}

.sm-questionnaire__date {
  font-family: var(--font-sans);
  font-size: 1.2rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.5rem;
}

.sm-questionnaire__date span {
  margin: 0 0.2rem;
}

/* ===== Form ===== */
.sm-form__block {
  margin-bottom: 2rem;
  text-align: left;
}

.sm-form__block__title {
  font-family: var(--font-sans);
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
}

.sm-form__input {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid #ccc;
  border-radius: 0;
  font-family: var(--font-sans);
  font-size: 1.3rem;
  background: transparent;
  transition: border-color 0.3s;
}

.sm-form__input:focus {
  outline: none;
  border-color: var(--text-dark);
}

.sm-form__item {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.sm-form_checkbox {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 1.3rem;
}

.sm-form_checkbox_input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.sm-form__drinks {
  margin-top: 0.5rem;
}

.sm-form__drinks-check {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.sm-form .sm-btn {
  width: 100%;
  margin-top: 1.5rem;
  padding: 1rem;
  font-size: 0.9rem;
}

.sm-form__error {
  color: var(--accent);
  font-size: 0.8rem;
  margin-top: 0.3rem;
  display: none;
}

.sm-form__error.visible {
  display: block;
}

/* ===== Thank You ===== */
#thankYouMessage {
  text-align: center;
  padding: 2rem;
}

/* ===== Footer ===== */
.sm-footer .sm-container {
  text-align: center;
}

.sm-footer__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.sm-footer__text {
  text-align: center;
}

.sm-footer__names {
  font-family: var(--font-sans);
  font-size: 1.2rem;
  letter-spacing: 0.05em;
}

.sm-footer__names span {
  margin: 0 0.3rem;
}

.sm-footer__images {
  max-width: 434px;
}

/* ===== Modal ===== */
.sm-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.sm-modal.active {
  display: flex;
}

.sm-modal__content {
  background: var(--bg-paper);
  color: var(--text-dark);
  border-radius: 0;
  padding: 2.5rem;
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

.sm-modal-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 1.5rem;
  cursor: pointer;
  color: #999;
  transition: color 0.3s;
}

.sm-modal-close:hover {
  color: var(--text-dark);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .sm-container {
    padding: 2rem 1.2rem;
  }

  .sm-container-flex {
    flex-direction: column;
    gap: 2rem;
    padding: 2rem 1.2rem;
  }

  .sm-calendar__wrapper {
    flex: 1;
    width: 100%;
  }

  .sm-location .sm-location__image {
    flex: 1;
    width: 100%;
  }

  .sm-timing__items {
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
  }

  .sm-timing__items::before {
    display: none;
  }

  .sm-timing-text {
    align-items: center;
  }

  .sm-timing__item__title {
    justify-content: center;
  }

  .sm-timing__item__title_text {
    text-align: center;
  }

  .sm-dress-code__box-gallery {
    flex-direction: column;
    gap: 2rem;
  }

  .sm-time__box {
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .sm-timer-time_number {
    font-size: 2rem;
  }

  .sm-mob-btn {
    display: block;
  }

  .sm-shared-row {
    flex-direction: column;
    gap: 0.3rem;
  }

  .sm-main .sm-shared__title {
    font-size: 2rem;
  }

  .sm-main__names {
    font-size: 1.1rem;
  }

  .sm-title {
    font-size: 1.8rem;
  }

  .on-mob { display: inline; }

  .sm-section__text .sm-title {
    text-align: center;
  }

  .sm-section__text .sm-text {
    text-align: center;
    border: none;
    padding-left: 0;
  }

  .sm-wishes__content-slide {
    padding: 0.5rem;
    font-size: 0.9rem;
  }

  .sm-contact__info {
    font-size: 0.95rem;
  }

  .sm-dress-code__box-gallery__title {
    font-size: 1.4rem;
  }

  .sm-footer__images {
    max-width: 300px;
  }

  .sm-time .sm-container {
    padding: 2rem 1.2rem;
  }
}

/* ===== Slick overrides ===== */
.slick-slide { outline: none; }
.slick-track { display: flex; align-items: center; }
.ct-alcotpl { display: none; }


/* ===== Slider fallback (before Slick init) ===== */
.sm-dress-code__slider1,
.sm-dress-code__slider2 {
  text-align: center;
  min-height: 300px;
}

.sm-dress-code__slider__item {
  display: block;
}

.sm-dress-code__slider__item img {
  max-height: 400px;
  width: auto;
  max-width: 100%;
  min-height: 300px;
  margin: 0 auto;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  background: #f0ece6;
}

.sm-wishes__content-slider .sm-wishes__content-item {
  display: block;
}
