@keyframes slideInLeft {
  0% {
    transform: translateX(-100px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}
@keyframes slideInRight {
  0% {
    transform: translateX(100px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}
@keyframes fadeInBottom {
  0% {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes slideTop {
  0% {
    transform: translateY(100px);
  }
  to {
    transform: translateY(0);
  }
}
@keyframes fadeText {
  0% {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes kenBurns {
  0% {
    transform: scale(1.2);
  }
  to {
    transform: scale(1);
  }
}
:root {
  color-scheme: only light;
  --anim_speed: 0.5s;
}
* {
}
input,
label {
  -webkit-tap-highlight-color: transparent;
  -moz-tap-highlight-color: transparent;
  -o-tap-highlight-color: transparent;
  tap-highlight-color: transparent;
}
@media (min-width: 391px) {
  html.animating [data-jsscroll] {
    opacity: 0;
    transition: opacity var(--anim_speed);
  }

  html.animating [data-jsscroll].jsScroll__scrolled {
    opacity: 1;
  }
  html.animating [data-jsscroll-fade-in].jsScroll__scrolled {
    animation: fadeIn var(--anim_speed) ease-in-out both;
  }
  html.animating [data-jsscroll-slide-left].jsScroll__scrolled {
    animation: slideInLeft var(--anim_speed) ease-in-out both;
  }
  html.animating [data-jsscroll-slide-right].jsScroll__scrolled {
    animation: slideInRight var(--anim_speed) ease-in-out both;
  }
  html.animating [data-jsscroll-slide-top].jsScroll__scrolled {
    animation: slideTop var(--anim_speed) cubic-bezier(0.25, 0.46, 0.45, 0.94)
      both;
  }
  html.animating [data-jsscroll-slide-bottom].jsScroll__scrolled {
    animation: fadeInBottom var(--anim_speed) ease-in-out both;
  }
}
@media (max-width: 450px) {
  html.animating [data-jsscroll]:not([data-jsscroll_nomob]) {
    opacity: 0;
    transition: opacity var(--anim_speed);
  }

  html.animating [data-jsscroll].jsScroll__scrolled {
    opacity: 1;
  }
  html.animating
    [data-jsscroll-fade-in].jsScroll__scrolled:not([data-jsscroll_nomob]) {
    animation: fadeIn var(--anim_speed) ease-in-out both;
  }
  html.animating
    [data-jsscroll-slide-left].jsScroll__scrolled:not([data-jsscroll_nomob]) {
    animation: slideInLeft var(--anim_speed) ease-in-out both;
  }
  html.animating
    [data-jsscroll-slide-right].jsScroll__scrolled:not([data-jsscroll_nomob]) {
    animation: slideInRight var(--anim_speed) ease-in-out both;
  }
  html.animating
    [data-jsscroll-slide-top].jsScroll__scrolled:not([data-jsscroll_nomob]) {
    animation: slideTop var(--anim_speed) cubic-bezier(0.25, 0.46, 0.45, 0.94)
      both;
  }
  html.animating
    [data-jsscroll-slide-bottom].jsScroll__scrolled:not([data-jsscroll_nomob]) {
    animation: fadeInBottom var(--anim_speed) ease-in-out both;
  }
}

img[src=""] {
  display: none;
}
.ct-alcotpl {
  display: none !important;
}

i[data-sm-alcoitem],
i[data-sm-text] {
  font-style: inherit;
}
[data-sm-src] {
  object-fit: cover;
  -o-object-fit: cover;
  object-position: center;
}
[data-sm-text="BRIDE_TEL"],
[data-sm-text="GROOM_TEL"] {
  white-space: nowrap;
}
::-webkit-scrollbar {
  -webkit-appearance: none;
}
::-webkit-scrollbar:horizontal {
  height: 0;
}
::-webkit-scrollbar:vertical {
  width: 0;
}
::-webkit-scrollbar-thumb {
  background-color: var(--ct-pink-color);
  border-radius: 2px;
  border: 0;
}
::-webkit-scrollbar-track {
  border-radius: 2px;
  background-color: transparent;
}

a[data-sm-tel] {
  color: inherit !important;
}
:after,
:before {
  pointer-events: none !important;
}
i[data-sm-fyear],
i[data-sm-tmonth] {
  font-style: normal;
}

.sm-modal .sm-form__input::placeholder {
  border: 0 !important;
}
@media (max-width: 900px) {
  .sm-form_checkbox {
    min-height: 32px;
    display: flex;
    align-items: center;
  }
}
.sm-form__input::placeholder {
  border-bottom: initial !important;
}
.sm-form__drinks[data-sm-anketa-toggle] {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.sm-form__drinks .sm-form__drinks-check {
  margin-top: 20px;
}
.sm-form__block .sm-form_checkbox {
  height: initial;
  min-height: 30px;
}
[data-sm-alcoitem] {
  white-space: initial !important;
  text-align: left;
}

.sm-form__item {
  align-items: start;
}

.sm-location__img,
.sm-wishes__img {
  overflow: hidden;
}

/* Первую главную фотографию оставляем с прежней анимацией */
.sm-edit.jsScroll__scrolled .sm-main__img img {
  animation: kenBurns 5s ease-in-out both;
}

/*
  На десктопе увеличиваем весь контейнер вместе с картинкой.
  Поэтому картинка больше не обрезается внутри собственного блока.
*/
@media (min-width: 901px) {
  .sm-edit.jsScroll__scrolled .sm-location__img,
  .sm-edit.jsScroll__scrolled .sm-wishes__img {
    animation: kenBurns 5s ease-in-out both;
    transform-origin: center center;
    will-change: transform;
  }
}

/* Мобильную анимацию пока оставляем прежней */
@media (max-width: 900px) {
  .sm-edit.jsScroll__scrolled .sm-location__img img,
  .sm-edit.jsScroll__scrolled .sm-wishes__img img {
    animation: kenBurns 5s ease-in-out both;
  }
}
.sm-edit.jsScroll__scrolled [data-sm-text]:not(h2) {
  animation-delay: 3s;
  animation: fadeText 1s ease-in-out both;
  transform-origin: 50% 50%;
}
.sm-edit.jsScroll__scrolled h2 {
  animation-delay: 2s;
  animation: fadeText 1s ease-in-out both;
  transform-origin: 50% 50%;
}
[data-sm-text="NEW_OWN_TEXT"],
[data-sm-text="OWN_TEXT"] {
  font-family: "SMTextsFont", sans-serif;
  text-align: center;
  margin-top: 10px;
  font-size: 20px;
  line-height: 20px;
  grid-area: own-text;
}
[data-sm-text="NEW_OWN_TITLE"],
[data-sm-text="OWN_TITLE"] {
  font-size: 80px;
  line-height: 88px;
  font-family: "SMHeadersFont", sans-serif;
  font-weight: 400;
  text-align: center;
  grid-area: own-title;
}
@media (max-width: 900px) {
  [data-sm-text="NEW_OWN_TITLE"],
  [data-sm-text="OWN_TITLE"] {
    font-size: 30px;
    line-height: 40px;
    order: 0;
  }
  [data-sm-text="NEW_OWN_TEXT"],
  [data-sm-text="OWN_TEXT"] {
    font-size: 18px;
    line-height: 22px;
    order: 2;
  }
}
.sm-demo_view {
  pointer-events: none;
}
[data-sm-text] a {
  color: inherit;
  word-wrap: break-word;
  text-decoration: underline;
}
[data-sm-href="OWN_BUTTON_LINK"]:after {
  display: none !important;
}
[data-project-id="91044"] [data-sm-href="OWN_BUTTON_LINK"] {
  color: #fff;
  border: 1px solid #fff;
}
.sm-template92 [data-sm-text="NEW_OWN_TEXT"],
.sm-template92 [data-sm-text="OWN_TEXT"] {
  font-weight: 300;
  font-size: 24px;
  line-height: 29.26px;
  text-align: center;
}
@media (max-width: 900px) {
  .sm-template92 [data-sm-text="NEW_OWN_TEXT"],
  .sm-template92 [data-sm-text="OWN_TEXT"] {
    font-weight: 400;
    font-size: 22px;
  }
}
[data-order="0"] {
  order: 0 !important;
}
[data-order="1"] {
  order: 1 !important;
}
[data-order="2"] {
  order: 2 !important;
}
[data-order="3"] {
  order: 3 !important;
}
[data-order="4"] {
  order: 4 !important;
}
[data-sm-text="OWN_TITLE"] {
  margin-bottom: 0;
}
:root {
  --f-spinner-width: 36px;
  --f-spinner-height: 36px;
  --f-spinner-color-1: rgba(0, 0, 0, 0.1);
  --f-spinner-color-2: rgba(17, 24, 28, 0.8);
  --f-spinner-stroke: 2.75;
}
:root {
  --f-button-width: 40px;
  --f-button-height: 40px;
  --f-button-border: 0;
  --f-button-border-radius: 0;
  --f-button-color: #374151;
  --f-button-bg: #f8f8f8;
  --f-button-hover-bg: #e0e0e0;
  --f-button-active-bg: #d0d0d0;
  --f-button-shadow: none;
  --f-button-transition: all 0.15s ease;
  --f-button-transform: none;
  --f-button-svg-width: 20px;
  --f-button-svg-height: 20px;
  --f-button-svg-stroke-width: 1.5;
  --f-button-svg-fill: none;
  --f-button-svg-filter: none;
  --f-button-svg-disabled-opacity: 0.65;
}
[data-fancybox-toggle-slideshow] {
  position: relative;
}
[data-fancybox-toggle-slideshow] svg g:first-child {
  display: flex;
}
[data-fancybox-toggle-slideshow] svg g:last-child {
  display: none;
}
[data-fancybox-toggle-fullscreen] svg g:first-child {
  display: flex;
}
[data-fancybox-toggle-fullscreen] svg g:last-child {
  display: none;
}
:fullscreen [data-fancybox-toggle-fullscreen] svg g:first-child {
  display: none;
}
:fullscreen [data-fancybox-toggle-fullscreen] svg g:last-child {
  display: flex;
}

@font-face {
  font-family: "SMHeadersFont";
  src: url("");
  src:
    url("") format("embedded-opentype"),
    url("./fonts/beermoney.woff2") format("woff2"),
    url("./fonts/beermoney.woff") format("woff"),
    url("./fonts/beermoney.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "SMTextsFont";
  src: url("");
  src:
    local("Cormorant SC Regular"),
    local("CormorantSC-Regular"),
    url("") format("embedded-opentype"),
    url("./fonts/CormorantSC-Regular.woff") format("woff"),
    url("./fonts/CormorantSC-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: "SMTextsFont";
  src: url("");
  src:
    local("Cormorant SC Light"),
    local("CormorantSC-Light"),
    url("") format("embedded-opentype"),
    url("./fonts/CormorantSC-Light.woff") format("woff"),
    url("./fonts/CormorantSC-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
}
@font-face {
  font-family: "SMTextsFont";
  src: url("");
  src:
    local("Cormorant SC SemiBold"),
    local("CormorantSC-SemiBold"),
    url("") format("embedded-opentype"),
    url("./fonts/CormorantSC-SemiBold.woff") format("woff"),
    url("./fonts/CormorantSC-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
}
@font-face {
  font-family: "SMTextsFont";
  src: url("");
  src:
    local("Cormorant SC Medium"),
    local("CormorantSC-Medium"),
    url("") format("embedded-opentype"),
    url("./fonts/CormorantSC-Medium.woff") format("woff"),
    url("./fonts/CormorantSC-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
}
@font-face {
  font-family: "SMTextsFont";
  src: url("");
  src:
    local("Cormorant SC Bold"),
    local("CormorantSC-Bold"),
    url("") format("embedded-opentype"),
    url("./fonts/CormorantSC-Bold.woff") format("woff"),
    url("./fonts/CormorantSC-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
}
section[data-type="1001"] [data-sm-href="OWN_BUTTON_LINK"] {
  border-width: 1.5px !important;
  border-style: solid !important;
  border-color: transparent !important;
}
section[data-type="1001"] [data-sm-href="OWN_BUTTON_LINK"]:hover {
  border-width: 1.5px !important;
  border-style: solid !important;
  border-color: transparent !important;
}

audio {
  display: block !important;
  position: absolute;
  opacity: 0;
  pointer-events: none;
  height: 0;
  width: 0;
}

.sm-sound_toggle {
  padding: 10px;
  position: absolute;
  top: 20px;
  right: 20px;
  width: 60px;
  border-radius: 50%;
  height: 60px;
  z-index: 20;
  overflow: hidden;
}

.sm-sound_toggle:before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  border-radius: 50%;
  overflow: hidden;
  height: 100%;
  background-color: rgba(46, 46, 46, 0.2);
  backdrop-filter: blur(15px);
}

.sm-sound_toggle.active {
  position: fixed;
}
@keyframes moveArrow {
  0%,
  to {
    transform: translateX(0);
  }
  50% {
    transform: translate(10px, 10px);
  }
}
.sm-color1 {
  --text-color: #3a531b;
  --text-hover: #2d4410;
  --text-opacity: #b3c2a2;
}
body {
  background: url("../img/back.webp") 0 0 repeat-y;
  color: var(--text-color);
  font-family: "SMHeadersFont", sans-serif;
}
* {
  margin: 0;
  padding: 0;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}
.sm-page {
  overflow: hidden;
}
a {
  text-decoration: none;
}
.container {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
}
.sm-title {
  font-family: "SMHeadersFont", sans-serif;
  font-weight: 400;
  font-size: 64px;
  line-height: 64px;
  text-align: center;
  margin-bottom: 30px;
}
@media (max-width: 900px) {
  .sm-title {
    font-weight: 400;
    font-size: 48px;
    line-height: 100%;
  }
}
.sm-text {
  font-weight: 300;
  font-size: 24px;
  line-height: 29.26px;
  text-align: center;
}
@media (max-width: 900px) {
  .sm-text {
    font-weight: 400;
    font-size: 22px;
  }
}
.sm-main {
  position: relative;
}

.sm-main__content-date {
  font-family: "SMHeadersFont", sans-serif;
  font-weight: 400;
  line-height: 54px;
  text-align: center;
  margin-top: 30px;
}
.sm-main__decor {
  width: 88px;
  height: 55px;
  overflow: hidden;
  position: relative;
  margin: 30px auto;
}
.sm-main__decor img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.sm-main__img {
  width: min(982px, 100%);
  aspect-ratio: 1182 / 962;
  height: auto;
  margin: auto;
  overflow: hidden;
  position: relative;
}
.sm-main__img img {
  position: relative;
  z-index: 1;
}

/* Первое фото на десктопе — показываем целиком без обрезки */
@media (min-width: 901px) {
  .sm-main > .container > .photos_kids__img {
    width: min(982px, 100%);
    max-width: 100%;
    height: auto;
    aspect-ratio: auto;
    margin: 0 auto;
    overflow: hidden;
  }

  .sm-main > .container > .photos_kids__img img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center;
    animation: none !important;
  }
}

@media (max-width: 900px) {
  .sm-main__decor {
    width: 64px;
    height: 40px;
  }
  .sm-main__content-date {
    font-weight: 400;
    font-size: 32px;
    line-height: 32px;
  }
  /* photos_kids-8.webp на мобильных — примерно на 20% меньше */
  .sm-main > .container > .photos_kids__img {
    width: 112%;
    margin-left: -6%;
    margin-right: -6%;
    aspect-ratio: 1 / 1;
  }
  .sm-main .container {
    position: static;
    height: 100%;
  }
  .sm-main {
    padding: 50px 16px 60px;
  }
}

.sm-datetime__img img,
.sm-main__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sm-datetime {
  position: relative;
  padding: 60px 20px 100px;
  z-index: 1;
}
.sm-datetime .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 150px;
}
.sm-calendar .container > div,
.sm-datetime .container > div,
.sm-location .container > div {
  flex: 1 1 auto;
  width: 50%;
}
@media (max-width: 900px) {
  .sm-datetime .container {
    display: block;
  }
}
.sm-datetime .sm-text {
  margin: 30px auto 0;
  max-width: 492px;
}
.sm-datetime_decor {
  position: absolute;
}
.sm-datetime_image-wrapper {
  position: relative;
}
.sm-datetime__img {
  width: 480px;
  aspect-ratio: 4096 / 2288;
  height: auto;
  position: relative;
  overflow: hidden;
  margin: auto;
}
.sm-datetime__img.jsScroll__scrolled {
  animation: kenBurnsMobileFit 5s ease-in-out both;
  transform-origin: center center;
  will-change: transform;
}
.sm-datetime_decor:first-of-type {
  left: -100px;
  bottom: 20px;
  transform: scaleX(-1);
}
.sm-datetime_decor:last-of-type {
  right: -70px;
  top: 100px;
}
.sm-date__calendar {
  padding: 30px 20px 10px;
  position: relative;
  width: fit-content;
  height: fit-content;
  margin: auto;
}
.sm-date__calendar > svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.sm-date__calendar-top {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: center;
  -webkit-box-align: end;
  -ms-flex-align: end;
  align-items: flex-end;
  padding-bottom: 10px;
  position: relative;
}
.sm-date__calendar__month {
  font-family: "SMHeadersFont", sans-serif;
  font-size: 40px;
  font-weight: 400;
  line-height: 100%;
  letter-spacing: 0.01em;
  text-align: center;
  text-transform: uppercase;
}
@media (max-width: 900px) {
  .sm-datetime__img {
    width: min(480px, calc(100vw - 32px));
    aspect-ratio: 4096 / 2288;
    height: auto;
    max-width: 100%;
    margin: 50px auto 0;
  }
  .sm-datetime_decor {
    width: 50px;
    height: 50px;
  }
  .sm-datetime_decor img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
  .sm-datetime_decor:last-of-type {
    right: 0;
    top: 20px;
  }
  .sm-datetime_decor:first-of-type {
    left: 0;
    bottom: 20px;
  }
  .sm-datetime .sm-text {
    max-width: 318px;
  }
}
.sm-date__calendar-bottom {
  display: grid;
  grid-template-areas: "days days days days days days days" "days days days days days days days" "days days days days days days days" "days days days days days days days" "days days days days days days days" "days days days days days days days";
  grid-template-columns: auto auto auto auto auto auto auto;
  grid-template-rows: auto auto auto auto auto auto auto;
  place-items: center;
  -webkit-column-gap: 20px;
  -moz-column-gap: 20px;
  column-gap: 20px;
  row-gap: 10px;
}
.sm-number-active {
  position: relative;
  color: #fff;
  z-index: 3;
}
@media (max-width: 900px) {
  .sm-date__calendar {
    margin-top: 40px;
  }
}
.sm-number-active::after {
  content: "";
  position: absolute;
  width: 30px;
  height: 34px;
  top: 50%;
  left: 50%;
  margin-top: 3px;
  -webkit-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  background: var(--text-color);
  -webkit-mask-image: url("../img/dfa6b986a445b3e79a2979d598eac9cafaa129fc.svg");
  mask-image: url("../img/dfa6b986a445b3e79a2979d598eac9cafaa129fc.svg");
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: 100%, 100%;
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  background-repeat: no-repeat;
  background-size: cover;
  z-index: -1;
}
@media (max-width: 900px) {
  .sm-number-active::after {
    width: 40px;
    height: 40px;
  }
  .sm-datetime {
    padding: 70px 16px 50px;
  }
  .sm-date__calendar-top {
    padding-bottom: 24px;
  }
  .sm-calendar {
    padding: 50px;
  }
  .sm-calendar .container {
    gap: 0;
  }
  .sm-calendar__img {
    margin-top: 50px;
  }
}
.sm-timing {
  padding: 120px 20px;
  position: relative;
  overflow: hidden;
}
.sm-timing__items {
  margin: 40px auto 0;
  display: flex;
  gap: 46px;
  justify-content: space-between;
}
.sm-timing__item {
  flex: 1 1 0;
  text-align: left;
}
.sm-timing-wrap {
  position: relative;
  margin: 20px auto 0;
}
.sm-timing-decor {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
}
.sm-timing__item__time {
  font-family: "SMHeadersFont", sans-serif;
  font-weight: 400;
  font-size: 78px;
  text-align: left;
}
.sm-timing__item__title {
  margin-top: 30px;
  font-size: 28px;
  font-weight: 300;
  line-height: 29.26px;
  text-align: left;
  min-height: 60px;
}
@media (max-width: 900px) {
  .sm-timing-wrap {
    display: flex;
    justify-content: space-between;
  }
  .sm-timing-decor {
    height: 100%;
    width: 100%;
    position: absolute;
    left: 0;
    top: 0;
  }
  .sm-timing-decor svg {
    transform: rotate(90deg) translateX(50%);
    transform-origin: center;
  }
  .sm-timing-text {
    flex: 1;
    display: flex;
    gap: 50px;
    align-items: center;
    justify-content: space-between;
  }
  .sm-timing {
    padding: 60px 20px;
  }
  .sm-timing__items {
    display: block;
    margin: 0;
    width: 100%;
  }
  .sm-timing__item:not(:nth-child(2)) {
    margin-top: 30px;
  }
  .sm-timing__item__title {
    margin-top: 0;
    font-weight: 400;
    font-size: 25px;
    line-height: 19.5px;
    text-align: right;
    flex: 1 1 0;
  }
  .sm-timing__item__time {
    font-weight: 400;
    font-size: 48px;
    line-height: 60px;
    text-align: left;
    order: 2;
    flex: 1 1 0;
    white-space: nowrap;
  }
}

/* men_kopilka-7.webp — меньше и с такой же анимацией */
@media (min-width: 901px) {
  .men_kopilka__img {
    width: 480px;
    max-width: 100%;
    margin: 60px auto 0;
    transform-origin: center center;
  }

  .men_kopilka__img img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  .sm-edit.jsScroll__scrolled .men_kopilka__img {
    animation: kenBurns 5s ease-in-out both;
    will-change: transform;
  }
}
.sm-wishes {
  padding: 0 20px 90px;
  position: relative;
  overflow: hidden;
}
.sm-wishes .container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.sm-wishes-slider {
  width: 100%;
}

.sm-wishes__content-wrap {
  width: 100%;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sm-wishes__content-slide {
  display: none;
  width: 100%;
  text-align: center;
  font-weight: 400;
  font-size: 24px;
  line-height: 29.26px;
  max-width: 440px;
  margin: 0 auto;
}

.sm-wishes__content-slide.is-active {
  display: block;
  animation: wishesSlideFade 0.35s ease;
}

.sm-wishes-slider__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin-top: 25px;
}

.sm-wishes-slider__arrow {
  width: 120px;
  height: 60px;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text-color);
  font-family: Arial, sans-serif;
  font-size: 64px;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

.sm-wishes-slider__arrow:hover {
  transform: scale(1.1);
}

.sm-wishes-slider__arrow:active {
  transform: scale(0.95);
}

.sm-wishes-slider__counter {
  min-width: 80px;
  text-align: center;
  font-family: "SMHeadersFont", sans-serif;
  font-size: 46px;
  line-height: 1;
  white-space: nowrap;
}

@keyframes wishesSlideFade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .sm-wishes__content-wrap {
    min-height: 130px;
  }

  .sm-wishes-slider__controls {
    gap: 8px;
    margin-top: 15px;
  }

  .sm-wishes-slider__arrow {
    width: 90px;
    height: 50px;
    font-size: 54px;
  }

  .sm-wishes-slider__counter {
    min-width: 65px;
    font-size: 38px;
  }
}

@media (max-width: 900px) {
  .sm-wishes {
    padding: 50px 20px 40px;
  }
  .sm-wishes__content-slide {
    font-size: 16px;
    font-weight: 300;
    line-height: 19.5px;
  }
  .sm-wishes .sm-btn {
    width: 100%;
  }
}
.sm-questionnaire {
  padding: 0 20px;
  position: relative;
}
.sm-questionnaire .dop-text {
  font-size: 42px;
}
.sm-questionnaire .container {
  max-width: 680px;
}
.sm-questionnaire__head {
  max-width: 498px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 30px;
}
@media (max-width: 900px) {
  .sm-questionnaire__head {
    gap: 20px;
  }
  .sm-questionnaire .dop-text {
    font-weight: 400;
    font-size: 32px;
    line-height: 32px;
  }
}
.sm-questionnaire__form {
  margin-top: 60px;
}
@media (max-width: 900px) {
  .sm-questionnaire {
    padding: 30px 20px;
  }
}
.sm-btn {
  font-family: "SMHeadersFont", sans-serif;
  font-weight: 500;
}
.sm-btn {
  min-height: 59px;
  padding: 0 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--text-color);
  color: #fff;
  width: fit-content;
  margin: 0 auto;
  border: 0;
  transition: 0.3s;
  font-size: 24px;
  line-height: 29.26px;
  cursor: pointer;
  border-radius: 1000px;
}
.sm-btn:hover {
  background-color: var(--text-hover);
}
@media (max-width: 900px) {
  .sm-btn {
    font-weight: 500;
    min-height: 50px;
  }
}
.sm-form__block__title {
  font-family: "SMHeadersFont", sans-serif;
  font-weight: 400;
  font-size: 32px;
  line-height: 38.4px;
}
input::-webkit-input-placeholder {
  all: unset;
  font-size: 24px;
  font-weight: 300;
  line-height: 29.26px;
  text-align: left;
  color: var(--text-opacity);
  cursor: pointer;
}
input::-moz-placeholder {
  all: unset;
  font-size: 24px;
  font-weight: 300;
  line-height: 29.26px;
  text-align: left;
  color: var(--text-opacity);
  cursor: pointer;
}
input::-ms-input-placeholder {
  all: unset;
  font-size: 24px;
  font-weight: 300;
  line-height: 29.26px;
  text-align: left;
  color: var(--text-opacity);
  cursor: pointer;
}
input::placeholder {
  all: unset;
  font-size: 24px;
  font-weight: 300;
  line-height: 29.26px;
  text-align: left;
  cursor: pointer;
  color: var(--text-opacity);
}
.sm-form__input {
  font-family: "SMHeadersFont", sans-serif;
  border: 1px solid var(--text-color);
  border-radius: 5px;
  background: 0 0;
  padding: 0 15px;
  width: 100%;
  height: 59px;
  margin-top: 10px;
  font-size: 24px;
  font-weight: 300;
  line-height: 29.26px;
  text-align: left;
  color: var(--text-opacity);
}
.sm-form__block:not(:first-child) {
  margin-top: 20px;
}
.sm-form__item {
  margin-top: 20px;
}
.sm-form__block .sm-form_checkbox:not(:first-child) {
  margin-top: 10px;
}
.sm-form_checkbox_input {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  position: absolute;
}
.sm-form__block .sm-form_checkbox {
  display: flex;
  align-items: center;
  margin-left: 30px;
  font-size: 24px;
  font-weight: 300;
  line-height: 29.26px;
  text-align: left;
  cursor: pointer;
}
.sm-form_checkbox_box {
  position: absolute;
  width: 20px;
  height: 20px;
  background-repeat: no-repeat;
  margin-left: -30px;
  border: 1px solid var(--text-color);
  cursor: pointer;
  border-radius: 5px;
  overflow: hidden;
}
.sm-form_checkbox_input:checked + .sm-form_checkbox_box {
  background-color: var(--text-color);
}
.sm-form .sm-btn {
  margin: 40px auto 0;
}
.sm-questionnaire__form > .sm-btn {
  display: none;
}
.sm-form__drinks-check {
  margin-top: 20px;
}
.sm-form__block__title {
  margin-top: 40px;
}
.sm-form .sm-btn {
  width: 100%;
}
@media (max-width: 900px) {
  .sm-form_checkbox_box {
    width: 16px;
    height: 16px;
    margin-left: -25px;
  }

  .sm-form__block .sm-form_checkbox {
    font-weight: 400;
    font-size: 16px;
    line-height: 19.5px;
    margin-top: 0 !important;
  }

  /* Показываем содержимое формы после нажатия на кнопку */
  .sm-questionnaire__form.sm-open .sm-form {
    display: block;
  }
}
.sm-time {
  margin-top: -2px;
  padding: 60px 0 75px;
  position: relative;
  overflow: hidden;
}
.sm-time .container {
  position: relative;
  z-index: 1;
}
.sm-time .sm-title {
  max-width: 730px;
  margin: 0 auto;
}
.sm-time__box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  margin-top: 52px;
}
.sm-time__item {
  width: 100px;
}
.sm-wishes .container > svg {
  position: absolute;
  bottom: 500px;
  left: 50%;
  transform: translate(200px, 50px);
}

.sm-wishes__img {
  width: 427px;
  margin: 0 auto 0;
  position: relative;
  overflow: hidden;
  height: 434px;
}

/* Увеличенная картинка le_FROGS-6.webp только на десктопе */
@media (min-width: 901px) {
  .sm-wishes__img--frogs {
    width: 620px;
    height: 630px;
    max-width: 100%;
    margin-top: 0;
  }
}
/* Увеличенная картинка gosti-11.webp только на десктопе */
@media (min-width: 901px) {
  .sm-wishes__img--guests {
    width: 620px;
    height: 630px;
    max-width: 100%;
  }
}
/* angels-2.webp немного меньше только на десктопе */
@media (min-width: 901px) {
  .sm-angels__img {
    display: block;
    width: 85%;
    height: auto;
    margin: 60px auto 0;
  }
}
/* Увеличенная Andr_Hardy.webp с большим отступом сверху */
@media (min-width: 901px) {
  .sm-wishes__img--hardy {
    width: 600px;
    height: 610px;
    max-width: 100%;
    margin-top: 140px;
  }
}
.sm-time__item__title {
  font-size: 24px;
  font-weight: 300;
  line-height: 29.26px;
  text-align: center;
  margin-top: 30px;
}
.sm-time__item_number {
  display: flex;
  align-items: center;
  justify-content: center;
}
.sm-timer-time_number-span {
  font-family: "SMHeadersFont", sans-serif;
  font-weight: 400;
  font-size: 90px;
  line-height: 60px;
  text-align: center;
}
@media (max-width: 900px) {
  .men_kopilka__img {
    width: 380px;
    max-width: 100%;
    margin: 60px auto 0;
  }

  .sm-wishes__img {
    width: 324px;
    height: 329px;
  }

  /* le_FROGS-6.webp — квадратное фото, показываем целиком без обрезки */
  .sm-wishes__img--frogs {
    width: 100%;
    max-width: 380px;
    height: auto;
    aspect-ratio: 1 / 1;
    margin-left: auto;
    margin-right: auto;
  }

  /* gosti-11.webp — квадратное фото, показываем целиком без обрезки */
  .sm-wishes__img--guests {
    width: 100%;
    max-width: 480px;
    height: auto;
    aspect-ratio: 1 / 1;
    margin-left: auto;
    margin-right: auto;
  }

  /* angels-2.webp меньше на мобильных */
  .sm-angels__img {
    display: block;
    width: 70%;
    height: auto;
    margin-left: auto;
    margin-right: auto;
    margin-top: 40px;
  }

  .sm-time {
    padding: 0 0 75px;
  }
}
.sm-location {
  padding: 100px 0;
}
.sm-location .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 80px;
}
.sm-location__img {
  width: 470px;
  height: 303px;
  position: relative;
  overflow: hidden;
  margin: auto;
}
.sm-calendar {
  padding: 50px 24px 30px;
}
.sm-calendar__img {
  width: 405px;
  height: 295px;
  position: relative;
  overflow: hidden;
  margin: auto;
}
.sm-calendar__img img,
.sm-location__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 0;
}
.sm-location__content-description {
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.sm-location__content-description_left {
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.sm-location__content-description > svg {
  position: absolute;
  bottom: -50px;
  right: 50px;
}
.sm-location__content-description_left > svg {
  position: absolute;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%) scale(-1);
  margin-left: -470px;
}

.dop-text {
  font-family: "SMHeadersFont", sans-serif;
  font-weight: 400;
  font-size: 54px;
  line-height: 60px;
  text-align: center;
  text-transform: uppercase;
}
.dop-text > p {
  display: inline-block;
}
@media (max-width: 900px) {
  /* Вся секция адресов */
  .sm-location {
    padding: 60px 24px 50px;
  }

  /* Убираем восемь <br> между двумя адресами */
  .sm-location > br {
    display: none;
  }

  /* Каждый адрес строим вертикально и центрируем */
  .sm-location .container {
    width: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 25px;
  }

  .sm-location .container > div {
    width: 100%;
    text-align: center;
  }

  /*
    Первый блок:
    в HTML сначала картинка, потом текст.
    На мобильном ставим текст выше картинки.
  */
  .sm-location > .container:first-of-type > div:first-of-type {
    order: 2;
  }

  .sm-location > .container:first-of-type > div:last-of-type {
    order: 1;
  }

  /*
    Второй блок:
    в HTML сначала текст, потом картинка.
    Оставляем правильный порядок.
  */
  .sm-location > .container:last-of-type > div:first-of-type {
    order: 1;
  }

  .sm-location > .container:last-of-type > div:last-of-type {
    order: 2;
  }

  /* Нормальный отступ между адресом церемонии и адресом банкета */
  .sm-location > .container:last-of-type {
    margin-top: 90px;
  }

  /* Текст, кнопка и стрелка */
  .sm-location__content-description,
  .sm-location__content-description_left {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  /* Стрелки немного правее и ниже кнопок */
  .sm-location__content-description > svg,
  .sm-location__content-description_left > svg {
    position: absolute;
    left: 50%;
    right: auto;
    bottom: -28px;
    margin-left: 90px;
    width: 75px;
    height: auto;
    transform: translateY(10%) scale(0.6);
  }

  /* Кнопка строго по центру */
  .sm-location__content-description .sm-btn,
  .sm-location__content-description_left .sm-btn {
    margin-left: auto;
    margin-right: auto;
  }

  .sm-calendar__img {
    width: 314px;
    height: 228px;
    margin-top: 50px;
  }

  .dop-text {
    font-weight: 400;
    font-size: 32px;
    line-height: 36px;
    text-align: center;
  }
}
.sm-dresscode__img {
  position: absolute;
  right: 0;
  top: 0;
  pointer-events: none;
}
.sm-dress-code .container > svg {
  position: absolute;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%) scale(-1);
  margin-left: -200px;
}
.sm-dress-code .sm-btn {
  margin-top: 60px;
}
.sm-dress-code {
  padding: 0 20px;
}
.sm-dress-code .container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.sm-dress-code .sm-text {
  max-width: 652px;
  margin: 0 auto;
}

.sm-dresscode__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (max-width: 900px) {
  /* Скрываем hands.webp на мобильных */
  .sm-dresscode__img {
    display: none;
  }
  .sm-dress-code {
    padding: 20px 24px 0;
  }
  .sm-dress-code .container > svg {
    position: absolute;
    bottom: 50px;
    right: 0;
    left: initial;
    margin: 0;
    transform: scale(0.7) scaleY(-1);
  }
}
.sm-contact {
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}
.sm-contact .container,
.sm-contact-info {
  text-align: center;
}
.sm-contact-info {
  font-family: "SMHeadersFont", sans-serif;
  font-weight: 400;
  font-size: 48px;
  line-height: 60px;
}
.sm-contact .sm-text {
  max-width: 454px;
  margin: 20px auto;
}
@media (max-width: 900px) {
  .sm-title {
    margin-bottom: 10px;
  }
  .sm-contact {
    padding: 40px 20px 100px;
  }
  .sm-contact-info {
    font-weight: 400;
    font-size: 32px;
    line-height: 38.4px;
  }
}
.sm-footer__title {
  font-family: "SMHeadersFont", sans-serif;
  font-weight: 400;
  font-size: 32px;
  line-height: 32px;
  letter-spacing: 10px;
  margin-bottom: 40px;
}
@media (max-width: 900px) {
  .sm-footer__title {
    font-size: 22px;
    letter-spacing: 8px;
  }
}
@media (max-width: 900px) {
  .sm-form__block__title {
    font-weight: 400;
    font-size: 18px;
    line-height: 21.6px;
    margin-top: 20px;
  }
  input::-webkit-input-placeholder {
    font-size: 13px;
    font-weight: 300;
    line-height: 15.85px;
  }
  input::-moz-placeholder {
    font-size: 13px;
    font-weight: 300;
    line-height: 15.85px;
  }
  input::-ms-input-placeholder {
    font-size: 13px;
    font-weight: 300;
    line-height: 15.85px;
  }
  input::placeholder {
    all: unset;
    font-size: 13px;
    font-weight: 300;
    line-height: 15.85px;
    text-align: left;
    cursor: pointer;
  }
  .sm-form__input {
    height: 39px;
    font-size: 13px;
    font-weight: 300;
    line-height: 15.85px;
    border-radius: 0;
  }
  .sm-form__item {
    margin-top: 10px;
  }
  .sm-questionnaire__form {
    margin-top: 20px;
  }
}
.sm-thanks {
  display: none;
}
.sm-contact__img {
  position: absolute;
  right: 150px;
  top: 100px;
}
.sm-contact__img:first-of-type {
  left: 50px;
  right: initial;
}
.sm-contact .container .sm-contacts_wrapper > svg {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-220px) scaleX(-1) translateY(30px);
}
.sm-thanks.sm-open {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: fixed;
  background: #fff;
  z-index: 101;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}
.sm-thanks .sm-main__img {
  margin: 120px auto 0;
}
.sm-thanks__title {
  font-family: "SMHeadersFont", sans-serif;
  font-weight: 400;
  font-size: 96px;
  line-height: 105.6px;
  text-align: center;
  text-transform: uppercase;
}
@media (max-width: 900px) {
  .sm-contact .container .sm-contacts_wrapper > svg {
    left: 0;
    transform: scale(0.7) scaleX(-1) translateY(40px);
  }
  .sm-contact__img {
    top: initial;
    right: initial;
    left: 0;
    bottom: -100px;
  }
  .sm-contact__img:first-of-type {
    right: 0;
    margin-right: -50px;
    left: initial;
  }
  .sm-thanks .sm-main__img {
    margin: 90px auto 0;
  }
  .sm-thanks__title {
    font-size: 48px;
    line-height: 52.8px;
  }
  .sm-form .sm-btn {
    margin: 20px auto 0;
  }
  .sm-thanks .container {
    height: 100%;
  }
}
.sm-modal-close {
  cursor: pointer;
  position: absolute;
  right: 20px;
  top: 20px;
  z-index: 10;
  font-size: 28px;
  line-height: 62%;
  font-family: "SMHeadersFont", sans-serif;
}
@media (min-width: 500px) {
  .mobile {
    display: none;
  }
}
@media (max-width: 900px) {
  .desktop {
    display: none;
  }
}
.sm-footer__names {
  font-size: 96px;
  line-height: 90%;
}
.sm-calendar .container {
  display: flex;
  gap: 130px;
}
.sm-main h1.sm-title {
  font-size: 140px;
  line-height: 90%;
}
.sm-main__content-date {
  font-size: 32px;
  text-transform: uppercase;
}

.sm-datetime div[data-sm-text="MAIN_TIME"] {
  font-family: "SMHeadersFont", sans-serif;
  font-size: 60px;
  line-height: 60px;
  text-align: center;
}
.sm-date__calendar-bottom > span {
  width: 24px;
  text-align: center;
  font-size: 28px;
}
.sm-date__calendar-bottom > span.sm-calendar-day-week-title {
  font-size: 16px;
  opacity: 0.5;
  text-transform: uppercase;
}
.sm-contacts_wrapper {
  align-self: end;
  padding-bottom: 30px;
}
.sm-contact-info {
  margin-bottom: 30px;
}
.sm-main {
  padding: 30px 24px 40px;
}
.sm-main__content {
  display: flex;
  align-items: center;
  flex-direction: column;
  z-index: 3;
  gap: 30px;
}
@media (max-width: 900px) {
  .sm-footer__names,
  .sm-main h1.sm-title {
    font-size: 80px;
    line-height: 70px;
  }
  .sm-timer-time_number-span {
    font-size: 48px;
  }
  .sm-date__calendar-bottom > span {
    width: 20px;
  }
  .sm-calendar-day {
    font-size: 28px;
  }
  .sm-calendar-day-week-title {
    font-size: 14px;
  }
  .sm-text {
    font-weight: 300;
  }
  .sm-calendar .container {
    flex-direction: column;
    gap: 0;
  }
  .sm-main .container {
    flex-direction: column;
  }

  .sm-datetime div[data-sm-text="MAIN_TIME"] {
    font-size: 32px;
    line-height: 100%;
    gap: 0;
  }
  .sm-datetime div[data-sm-text="MAIN_TIME"] {
    margin-top: 10px;
  }
}
[data-sm-text="DRESSCODE_COLORS"] > div {
  width: initial;
  height: initial;
  position: relative;
  flex: 1 1 0;
  aspect-ratio: 1/1;
  max-width: 100px;
}
[data-sm-text="DRESSCODE_COLORS"] > div > div {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  -webkit-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  mask-image: url("../img/3c7adb4e07fefb261ad01c9e037a31b3f75e666e.svg");
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: 100% 100%;
}
[data-sm-text="DRESSCODE_COLORS"] {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 10px;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  overflow-x: auto;
  width: 100%;
}
@media (max-width: 900px) {
  .sm-calendar .container > div,
  .sm-datetime .container > div,
  .sm-location .container > div {
    width: 100%;
  }
  [data-sm-text="DRESSCODE_COLORS"] {
    gap: 0;
    overflow-x: auto;
  }
  [data-sm-text="DRESSCODE_COLORS"] > div:not(:first-child) {
    margin-left: -40px;
  }
  [data-sm-text="DRESSCODE_COLORS"] > div {
    flex: 1 1 0;
    max-width: 70px;
    width: initial;
    height: initial;
    aspect-ratio: 1/1;
  }
}
img {
  mix-blend-mode: darken;
  transform: translateZ(0);
}
section {
  mix-blend-mode: multiply;
}
.animated-arrow {
  animation: moveArrow 1s infinite;
  transform-origin: center;
}
.sm-questionnaire__form > svg {
  position: absolute;
  left: -120px;
  bottom: 50px;
  transform: scale(-1);
}
@media (max-width: 900px) {
  .sm-questionnaire__form > svg {
    left: initial;
    right: 0;
    bottom: 330px;
    transform: scale(0.7) scaleY(-1);
  }
}
[data-sm-text="NEW_OWN_TEXT"],
[data-sm-text="OWN_TEXT"] {
  font-family: "SMHeadersFont", sans-serif;
  font-size: 24px;
}
@font-face {
  font-family: "intro_font1";
  src: url("");
  src:
    local("Tenor Sans"),
    local("TenorSans"),
    url("") format("embedded-opentype"),
    url("./fonts/TenorSans.woff") format("woff"),
    url("./fonts/TenorSans.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: "intro_font2";
  src:
    local("Caravan Regular"),
    local("Caravan-Regular"),
    url("./fonts/Caravan_big.woff2") format("woff2"),
    url("./fonts/Caravan_big.woff") format("woff"),
    url("./fonts/Caravan_big.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Убираем затемнение и размытие при открытии двери */
.sm-curtains {
  display: none !important;
}
/* .sm-curtains {
  position: fixed;
  z-index: 100;
  pointer-events: none;
  background: #0b410033;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: 1.5s;
  transition-delay: 0.5s;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
} */
body.curtains-opened .sm-curtains {
  display: none;
}

body.curtains .sm-curtains {
  opacity: 0;
}
body.opener-active {
  overflow: hidden;
}

html,
body,
.sm-page {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  background: url("../img/back.webp") top center / 100% auto repeat-y;
}

.container {
  width: 100%;
  max-width: 1180px;
  padding-left: 20px;
  padding-right: 20px;
}

img,
svg,
video,
iframe {
  max-width: 100%;
}

/* =========================================================
   ПРОГРАММА ДНЯ — ВЕРТИКАЛЬНЫЙ ТАЙМЛАЙН
   ========================================================= */

.sm-timing--vertical {
  padding: 100px 20px 0;
}

.sm-timing--vertical > .container {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
}

.sm-timing--vertical .sm-title {
  margin: 0;
  text-align: center;
}

/* Основная область таймлайна */
.sm-timing--vertical .sm-timing-wrap {
  --time-column: 135px;
  --content-gap: 76px;
  --line-position: 171px;

  display: block;
  position: relative;
  width: 650px;
  max-width: 100%;
  margin: 70px auto 0;
}

/* Контейнер всех событий */
.sm-timing--vertical .sm-timing__items {
  display: flex;
  flex-direction: column;
  justify-content: initial;
  gap: 54px;
  width: 100%;
  margin: 0;
}

/* Отдельное событие */
.sm-timing--vertical .sm-timing__item,
.sm-timing--vertical .sm-timing__item:not(:nth-child(2)) {
  flex: none;
  width: 100%;
  margin: 0 !important;
  text-align: initial;
}

/* Время слева, текст справа */
.sm-timing--vertical .sm-timing-text {
  display: grid;
  grid-template-columns: var(--time-column) minmax(0, 1fr);
  column-gap: var(--content-gap);
  align-items: start;
  width: 100%;
}

/* Вертикальная рисованная линия */
.sm-timing--vertical .sm-timing-decor {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--line-position);
  right: auto;
  width: 8px;
  height: auto;
  color: inherit;
  transform: translateX(-50%);
  z-index: 0;
}

.sm-timing--vertical .sm-timing-decor svg {
  display: block;
  width: 100%;
  height: 100%;
  transform: none;
  transform-origin: initial;
  overflow: visible;
}

/* Время */
.sm-timing--vertical .sm-timing__item__time {
  position: relative;
  z-index: 1;
  flex: none;
  order: initial;
  margin: 0;
  font-size: 58px;
  line-height: 0.9;
  text-align: right;
  white-space: nowrap;
}

/* Правая текстовая часть */
.sm-timing--vertical .sm-timing__item__content {
  position: relative;
  z-index: 1;
  min-width: 0;
  padding-top: 2px;
}

/* Название события */
.sm-timing--vertical .sm-timing__item__title {
  flex: none;
  min-height: 0;
  margin: 0;
  font-size: 27px;
  font-weight: 300;
  line-height: 1.08;
  text-align: left;
  text-transform: uppercase;
}

/* Мелкое описание */
.sm-timing--vertical .sm-timing__item__description {
  margin-top: 16px;
  font-size: 18px;
  font-weight: 300;
  line-height: 1.3;
  text-align: left;
}

.sm-timing--vertical .sm-timing__item__description:empty {
  display: none;
}

/* Планшеты и телефоны */
@media (max-width: 600px) {
  .sm-timing--vertical {
    padding: 60px 16px 75px;
  }

  .sm-timing--vertical > .container {
    padding-left: 0;
    padding-right: 0;
  }

  .sm-timing--vertical .sm-timing-wrap {
    --time-column: 82px;
    --content-gap: 42px;
    --line-position: 103px;

    width: 100%;
    margin-top: 45px;
  }

  .sm-timing--vertical .sm-timing__items {
    display: flex;
    flex-direction: column;
    gap: 38px;
    width: 100%;
    margin: 0;
  }

  .sm-timing--vertical .sm-timing-text {
    display: grid;
    grid-template-columns: var(--time-column) minmax(0, 1fr);
    column-gap: var(--content-gap);
    align-items: start;
  }

  .sm-timing--vertical .sm-timing__item__time {
    flex: none;
    order: initial;
    font-size: 40px;
    line-height: 0.95;
    text-align: right;
  }

  .sm-timing--vertical .sm-timing__item__title {
    flex: none;
    margin: 0;
    font-size: 20px;
    line-height: 1.08;
    text-align: left;
  }

  .sm-timing--vertical .sm-timing__item__description {
    margin-top: 11px;
    font-size: 15px;
    line-height: 1.3;
    text-align: left;
  }

  .sm-timing--vertical .sm-timing-decor {
    top: 0;
    bottom: 0;
    left: var(--line-position);
    width: 7px;
    height: auto;
  }

  .sm-timing--vertical .sm-timing-decor svg {
    width: 100%;
    height: 100%;
    transform: none;
  }
}

/* ===== TIMING vertical ===== */

.sm-timing--vertical .sm-timing-wrap {
  max-width: 760px;
  margin: 0 auto;
}

.sm-timing--vertical .sm-timing__items {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 42px;
  width: 100%;
}

/* убираем старую горизонтальную логику */
.sm-timing--vertical .sm-timing__item,
.sm-timing--vertical .sm-timing__item:not(:nth-child(2)) {
  width: 100% !important;
  flex: none !important;
  margin: 0 !important;
  text-align: left !important;
}

.sm-timing--vertical .sm-timing-text {
  display: grid;
  grid-template-columns: 120px 1fr;
  column-gap: 68px;
  align-items: start;
  position: relative;
  z-index: 2;
}

.sm-timing--vertical .sm-timing__item__time {
  margin: 0 !important;
  text-align: right;
  white-space: nowrap;
}

.sm-timing--vertical .sm-timing__item__title {
  margin: 0 !important;
  min-height: 0 !important;
  text-align: left !important;
}

/* та самая линия, только вертикально */
.sm-timing--vertical .sm-timing-decor {
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 154px;
  width: 7px;
  z-index: 1;
}

.sm-timing--vertical .sm-timing-decor svg {
  display: block;
  width: 7px;
  height: 100%;
}

/* мобилка */
@media (max-width: 767px) {
  .sm-timing--vertical .sm-timing__items {
    gap: 28px;
  }

  .sm-timing--vertical .sm-timing-text {
    grid-template-columns: 78px 1fr;
    column-gap: 34px;
  }

  .sm-timing--vertical .sm-timing-decor {
    left: 95px;
    width: 6px;
  }

  .sm-timing--vertical .sm-timing-decor svg {
    width: 6px;
  }

  .sm-timing--vertical .sm-timing__item__time {
    text-align: right;
  }
}

/* Доработка кнопки звука: живая иконка вместо картинки — hover, анимация волн, перечёркивание при выключении */
.sm-sound_toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  cursor: pointer;
  transition: transform 0.2s ease;
}
.sm-sound_toggle:hover,
.sm-sound_toggle:focus-visible {
  transform: scale(1.08);
}
.sm-sound_toggle__icon {
  position: relative;
  z-index: 1;
  color: #fff;
  overflow: visible;
}
.sm-sound_toggle__wave {
  opacity: 0;
  transform-origin: 9px center;
  transition: opacity 0.2s ease;
}
.sm-sound_toggle__mute-line {
  opacity: 1;
  transition: opacity 0.2s ease;
}
.sm-sound_toggle.active .sm-sound_toggle__wave {
  opacity: 1;
  animation: sm-sound-wave 1.4s ease-in-out infinite;
}
.sm-sound_toggle.active .sm-sound_toggle__wave--2 {
  animation-delay: 0.2s;
}
.sm-sound_toggle.active .sm-sound_toggle__mute-line {
  opacity: 0;
}
@keyframes sm-sound-wave {
  0%,
  100% {
    opacity: 0.35;
    transform: scale(0.85);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}
@media (prefers-reduced-motion: reduce) {
  .sm-sound_toggle.active .sm-sound_toggle__wave {
    animation: none;
    opacity: 1;
  }
}

/* Заставка "дверь" (1_desk/1_mob, 2_desk/2_mob) */
.sm-door-intro {
  position: fixed;
  inset: 0;
  height: 100dvh;
  z-index: 101;
  background: #ddd5ca;
  cursor: pointer;
  transition: opacity 0.6s ease;
}
.sm-door-intro.sm-door-intro--closing {
  opacity: 0;
  pointer-events: none;
}
.sm-door-intro__img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  transition: opacity 0.6s ease;
}
.sm-door-intro__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
html.sm-door-intro-lock,
body.sm-door-intro-lock {
  overflow: hidden;
  height: 100%;
}
.sm-door-intro__img--2 {
  opacity: 0;
}
.sm-door-intro--open .sm-door-intro__img--1 {
  opacity: 0;
}
.sm-door-intro--open .sm-door-intro__img--2 {
  opacity: 1;
}
@media (max-width: 600px) {
  .sm-footer__names,
  .sm-main h1.sm-title {
    font-size: 60px;
    line-height: 50px;
  }

  .sm-main__content {
    gap: 0 !important;
  }

  .sm-main {
    padding-top: 0;
  }
}

.padding_footer {
  padding-bottom: 140px !important;
}

/* =========================================================
   МОБИЛЬНЫЕ КАРТИНКИ — ПОКАЗЫВАЕМ ЦЕЛИКОМ БЕЗ ОБРЕЗКИ
   ========================================================= */

@keyframes kenBurnsMobileFit {
  0% {
    transform: scale(0.92);
  }

  to {
    transform: scale(1);
  }
}

@media (max-width: 900px) {
  /* Andr_Hardy.webp */
  .sm-wishes__img--hardy {
    width: min(520px, calc(100vw - 48px));
    height: auto;
    max-width: none;
    aspect-ratio: auto;
    overflow: visible;
    margin-left: auto;
    margin-right: auto;
  }

  .sm-wishes__img--hardy img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  /* zags-10.webp и restourant-9.webp */
  .sm-location__img {
    width: 100%;
    max-width: 470px;
    height: auto;
    aspect-ratio: auto;
    overflow: visible;
    margin: 20px auto 0;
  }

  .sm-location__img img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  /*
    Отключаем старое увеличение картинки до 120%,
    которое обрезало края.
  */
  .sm-edit.jsScroll__scrolled .sm-wishes__img--hardy img,
  .sm-location__img.jsScroll__scrolled img {
    animation: none !important;
  }

  /*
    Анимацию сохраняем, но теперь плавно увеличивается
    весь контейнер с 92% до 100%.
    .sm-location__img анимируется по своей собственной видимости
    (у неё свой data-jsscroll), а не по видимости всей секции —
    иначе вторая картинка в секции (адрес банкета) успевала
    доиграть анимацию до того, как попадала на экран.
  */
  .sm-edit.jsScroll__scrolled .sm-wishes__img--hardy,
  .sm-location__img.jsScroll__scrolled {
    animation: kenBurnsMobileFit 5s ease-in-out both;
    transform-origin: center center;
    will-change: transform;
  }
}
@media (max-width: 599px) {
  .sm-timing--vertical {
    padding: 60px 16px 0;
  }

  /* angels-2.webp — делаем заметно больше */
  .sm-angels__img {
    display: block;
    width: min(540px, calc(100vw - 40px));
    max-width: none;
    height: auto;
    margin: 50px auto 0;
  }

  .sm-location {
    padding: 0 24px 50px;
  }

  /* hands-5.webp — во всю ширину экрана */
  .hands__img {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
  }

  .hands__img img {
    display: block;
    width: 100%;
    height: auto;
    margin-top: 50px;
  }
}

/* Ограничиваем ширину заставки с дверью на очень широких экранах */
@media (min-width: 1901px) {
  .sm-door-intro__img {
    left: 50%;
    right: auto;
    width: 100%;
    max-width: 1900px;
    transform: translateX(-50%);
    overflow: hidden;
  }

  .sm-door-intro__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }
}
/* Картинки стартовой двери без глобального затемнения и размытия */
.sm-door-intro__img img {
  mix-blend-mode: normal !important;
  transform: none !important;
  filter: none !important;
  opacity: 1;
}

/* =========================================================
   ПОДСКАЗКА НА СТАРТОВОЙ ДВЕРИ
   ========================================================= */

@keyframes doorArrowPulse {
  0%,
  100% {
    transform: translateY(0) rotate(-135deg) scale(1);
  }

  50% {
    transform: translateY(12px) rotate(-135deg) scale(1.12);
  }
}

.sm-door-intro__hint {
  position: absolute;
  top: clamp(18px, 4vh, 55px);
  bottom: auto;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;

  width: auto;
  max-width: calc(100% - 32px);

  color: #fff;
  text-align: center;
  white-space: nowrap;

  transition: opacity 0.3s ease;
}

/* Затемнённый фон только под надписью */
.sm-door-intro__hint-text {
  display: block;

  padding: 8px 24px 10px;
  border-radius: 45px;

  background: rgba(78, 75, 75, 0.78);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.38);

  font-family: "SMHeadersFont", sans-serif;
  font-size: 36px;
  line-height: 1.05;
  letter-spacing: 0.01em;

  text-shadow:
    0 2px 5px rgba(0, 0, 0, 0.9),
    0 0 2px rgba(0, 0, 0, 0.8);
}

/* Стрелка находится под текстом и указывает вниз на дверь */
.sm-door-intro__hint-arrow {
  position: static;
  display: block;

  width: 66px;
  height: auto;

  top: auto;
  right: auto;

  mix-blend-mode: normal !important;
  filter: drop-shadow(0 3px 7px rgba(87, 85, 85, 0.7));

  transform-origin: center;
  animation: doorArrowPulse 1.1s ease-in-out infinite;
}

/* После открытия двери подсказка исчезает */
.sm-door-intro--open .sm-door-intro__hint {
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 767px) {
  .sm-door-intro__hint {
    top: max(14px, calc(env(safe-area-inset-top, 0px) + 10px));
    gap: 5px;
    max-width: calc(100% - 20px);
  }

  .sm-door-intro__hint-text {
    padding: 7px 18px 9px;
    font-size: 29px;
    border-radius: 45px;
  }

  .sm-door-intro__hint-arrow {
    width: 56px;
  }
}

@media (max-width: 360px) {
  .sm-door-intro__hint-text {
    padding-left: 14px;
    padding-right: 14px;
    font-size: 25px;
  }

  .sm-door-intro__hint-arrow {
    width: 50px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sm-door-intro__hint-arrow {
    animation: none;
    transform: rotate(-135deg);
  }
}

/* На экранах меньше 600px опускаем надпись и стрелку ниже */
@media (max-width: 599px) {
  .sm-door-intro__hint {
    top: max(70px, calc(env(safe-area-inset-top, 0px) + 55px));
  }
}