:root {
  --text-color: #2d2621;
}
.carlito-regular {
  font-family: "Carlito", sans-serif;
  font-weight: 400;
  font-style: normal;
}
.carlito-bold {
  font-family: "Carlito", sans-serif;
  font-weight: 700;
  font-style: normal;
}
.carlito-regular-italic {
  font-family: "Carlito", sans-serif;
  font-weight: 400;
  font-style: italic;
}
.carlito-bold-italic {
  font-family: "Carlito", sans-serif;
  font-weight: 700;
  font-style: italic;
}
html {
  font-family: "Carlito", sans-serif;
  font-size: 14px;
}
html .text-center {
  text-align: center;
}
body {
  color: var(--text-color);
  background-color: #f1eeeb;
  display: grid;
}
body .slick-next {
  right: 25px;
}
body .slick-prev {
  left: 25px;
  z-index: 10;
}
body .block-m3 {
  margin: 0 5.5rem;
}
body header img {
  margin: 0 auto;
}
body section img {
  margin: 0 auto;
}
body h1 {
  font-size: 1.6rem;
  font-weight: bold;
  color: var(--text-color);
}

body p {
  font-size: 1rem;
}
body .ruler {
  background-color: #dbb47c;
  min-height: 2px;
}
body .form-caption {
  color: #827d77;
}
body form input[type=tel],
body form input[type=tel]:focus,
body form input[type=tel]:active {
  background-color: #f1eeeb;
  outline: none;
  box-shadow: none;
}
body form button.form-control.submit-button,
body form button.form-control.submit-button:focus,
body form button.form-control.submit-button:active {
  background-color: #a49a90;
  color: #fff;
  padding-top: 2rem;
  padding-bottom: 2rem;
  outline: none;
  box-shadow: none;
  border-color: #f1eeeb;
}
body form .submit-button__caption {
  font-size: 1.2857rem;
}
body form button.form-control.submit-button:focus,
body form button.form-control.submit-button:active {
  background-color: #706963;
}

h2 {
  font-size: 1.5rem;
}

.hero {
  position: relative;
  background-image: url('/assets/i/header.jpg');
  background-image: image-set(
          url('/assets/i/header-1x.webp') type('image/webp') 1x,
          url('/assets/i/header-2x.webp') type('image/webp') 2x,
          url('/assets/i/header-1x.png') type('image/png') 1x,
          url('/assets/i/header-2x.png') type('image/png') 2x
  );
  min-height: 540px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}



.package-caption {
  font-weight: bold;
}


.phone_floater__wrapper {
  display: inline-block;
/*  margin-left: 26px; */
  margin-left: 26%;
}
.phone_floater__wrapper a {
  text-decoration: none;
}
.phone_floater__wrapper a span {
  font-size: 30px;
  color: #fff;
  line-height: 0.682;
  text-align: left;
}
.name_floater__wrapper {
  display: inline-block;
  margin-left: 26px;
}
.name_floater__wrapper a {
  text-decoration: none;
}

.name_floater__wrapper-name {
  text-shadow: 1px 1px 20px rgba(0,0,0,0.75);
  background-color: rgba(0,0,0,0.35);
  box-shadow: 0px 0 12px rgba(0,0,0,0.75);
  padding: 0px 6px;
  border-radius: 5px;
  margin-left: -6px;
  font-size: 30px;
  color: #fff;
  line-height: 0.682;
  text-align: left;
}

.vk_floater__wrapper {
/*  position: absolute; */
  left: 35rem;
  top: 265px;
  width: 40px;
  height: 40px;
}
.vk_floater__wrapper div {
  width: 100%;
  height: 100%;
  background-image: url('/assets/i/icon-vk.png');
}
.ig_floater__wrapper {
/*  position: absolute; */
  z-index: 22;
  left: 38.9rem;
  top: 265px;
  width: 40px;
  height: 40px;
}
.ig_floater__wrapper div {
  width: 100%;
  height: 100%;
  background-image: url('/assets/i/icon-ig.png');
}
.em_floater__wrapper {
/*  position: absolute; */
  z-index: 22;
  left: 42.7rem;
  top: 265px;
  width: 40px;
  height: 40px;
}
.em_floater__wrapper div {
  width: 100%;
  height: 100%;
  background-image: url('/assets/i/icon-em.png');
}
.form-floating .form-control.tel-field {
  padding: 1.25rem 0.75rem 1.25rem 4rem;
  line-height: 1.7;
  height: calc(4.5rem + calc(var(--bs-border-width) * 2));
}
.form-floating > .form-control-plaintext ~ label,
.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label,
.form-floating > .form-select ~ label {
  transform: scale(0.85) translateX(0.15rem) !important;
}
.slider-caption {
  font-weight: bold;
  color: var(--text-color);
}
.package-caption__item {
  font-weight: bold;
  color: var(--text-color);
}
footer div .row div {
  background-color: #2f2a24;
  color: #f1eeeb;
}

.phone-div {
  transition: all 0.2s ;
}

[data-type=package-1400] p {
  text-align: justify;
}
[data-type=package-2300] p {
  text-align: justify;
}

[data-type=about] span {
  text-align: justify !important;
}


.swiper-button-next, .swiper-button-prev {
  color: #f1eeeb !important;
}

footer a {
  color: #f1eeeb !important;
}

@media screen and (max-width: 575px) {
  :root {
    --floater-wrapper-height: 26px;
    --floater-wrapper-width: 26px;
    --header-font-size: 12px;
  }

  [data-type=design-slider] {
    max-width: 100vw;
  }
  body .block-m3 {
    margin: 0 1.5rem;
  }
}


@media screen and (min-width: 576px) and  (max-width: 768px) {
  :root {
    --floater-wrapper-height: 26px;
    --floater-wrapper-width: 26px;
    --header-font-size: 16px;
  }
  body .block-m3 {
    margin: 0 3.5rem;
  }
}


@media screen and (min-width: 768px) and  (max-width: 992px) {
  :root {
    --floater-wrapper-height: 34px;
    --floater-wrapper-width: 34px;
    --header-font-size: 26px;
  }
}


@media screen and (min-width: 992px) and  (max-width: 1200px) {
  :root {
    --floater-wrapper-height: 38px;
    --floater-wrapper-width: 38px;
    --header-font-size: 28px;
  }

}

@media screen and (min-width: 1200px) and (max-width: 1399px) {

  .img-div {
    margin-left: 14px;
    margin-right: 14px;
  }
  .img-content {
    width: calc(100% - 28px);
  }
  .form-content {
    width: calc(100% - 28px);
  }
  .ruler {
    width: calc(100% - 28px);
  }
  [data-type=about] p {
    text-align: justify;
  }

  [data-type=package-1400] p {
    text-align: justify;
  }

  [data-type=package-2300] p {
    text-align: justify;
  }
}
@media screen and (min-width: 1400px) {

  .img-div {
    margin-left: 14px;
    margin-right: 14px;
  }
  .img-content {
    width: calc(100% - 28px);
  }
  .form-content {
    width: calc(100% - 28px);
  }
  .ruler {
    width: calc(100% - 28px);
  }
  [data-type=about] p {
    text-align: justify;
  }

  [data-type=package-1400] p {
    text-align: justify;
  }
  [data-type=package-2300] p {
    text-align: justify;
  }
}

.icon-banner, .phone_banner {
  position: relative;
  width: 100%;
  max-width: 1920px;      /* родная ширина картинки */
  margin: 0 auto;
}
.icon-banner img, .phone_banner img {
  display: block;
  width: 100%;            /*important: высота подстраивается сама → пропорции не ломаются */
  height: auto;
}
.hotspot{
  position: absolute;
  left:   var(--x);
  top:    var(--y, 10%);
  width:  var(--w);
  height: var(--h, 80%);
  display: block;
  border-radius: 50%;     /* чтобы зона клика была круглой, как иконка */
  /* background: rgba(255,0,0,.25);  ← включите, чтобы увидеть и отладить позиции */
}

.hotspot_phone{
  position: absolute;
  left:   var(--x);
  top:    var(--y, 10%);
  width:  var(--w);
  height: var(--h, 80%);
  display: block;
  border-radius: 0;     /* чтобы зона клика была круглой, как иконка */
  /* background: rgba(255,0,0,.25);   ← включите, чтобы увидеть и отладить позиции */
}

.yandex-smartcaptcha { min-height: 0; margin: 0; }
.yandex-smartcaptcha > iframe { position: absolute; left: -9999px; } /* на всякий случай */


.photos__thumbs { margin-top: 10px; overflow: hidden; }

/* slidesPerView:'auto' работает только при явной ширине слайда */
.photos__thumbs .swiper-slide {
  width: 110px;
  height: 74px;
  border-radius: 8px;
  overflow: hidden;
  opacity: .45;
  filter: saturate(.7);
  transition: opacity .25s, transform .25s, outline-color .25s;
  outline: 2px solid transparent;
  outline-offset: 2px;
  cursor: pointer;
}
.photos__thumbs .swiper-slide img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.photos__thumbs .swiper-slide:hover { opacity: .8; }

/* активный класс добавляет сам Swiper */
.photos__thumbs .swiper-slide-thumb-active {
  opacity: 1;
  filter: none;
  outline-color: #ff6b35;
  transform: translateY(-2px);
}

@media (max-width: 560px) {
  .photos__thumbs .swiper-slide { width: 84px; height: 56px; }
}

.gallery-thumbs {
  height: 20%;
  box-sizing: border-box;
  padding: 10px 0;
  overflow-x: hidden;
}
.gallery-thumbs .swiper-slide {
  height: 100%;
  opacity: 0.4;
}
.gallery-thumbs .swiper-slide-thumb-active {
  opacity: 1;
}

/* Обёртка для анимации: grid 0fr -> 1fr плавно разворачивает блок */
.more-wrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .4s ease;
}
.more-wrap.open {
  grid-template-rows: 1fr;
}
.more {
  overflow: hidden;
  min-height: 0;
}

.toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 8px 14px;
  border: none;
  border-radius: 20px;
  background-color: #a49a90;
  color: #fff;
  outline: none;
  box-shadow: none;
  border-color: #f1eeeb;
  font-size: 15px;
  cursor: pointer;
  transition: background .3s;
}
.toggle-btn:hover {
  background: #706963;
}

.toggle-arrow {
  width: 16px;
  height: 16px;
  transition: transform .4s ease;
}
.toggle-btn.open .toggle-arrow {
  transform: rotate(180deg); /* стрелка вниз -> вверх */
}