#contacts-form {
  position: relative;
  transition: opacity 0.3s ease;
}

/* контейнер для результата */
.resultsContainer {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  opacity: 0;
  background: rgba(255, 255, 255, 0.85);
  z-index: 5;
  pointer-events: none;
  transition: opacity 0.4s ease;
  border-radius: 16px;
}

.resultsContainer.visible {
  opacity: 1;
  pointer-events: all;
}

/* loader */
.loader {
  width: 48px;
  height: 48px;
  border: 5px solid #fff;
  border-bottom-color: var(--sec);
  border-radius: 50%;
  display: inline-block;
  box-sizing: border-box;
  animation: rotation 1s linear infinite;
}

@keyframes rotation {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loader__parent {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* сообщения */
.thanks,
.error {
  display: inline-block;
  padding: 16px 26px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

/* успех */
.thanks {
  background: var(--blue);
  border: 1px solid var(--sec);
  color: var(--black);
}

/* ошибка */
.error {
  background: rgba(255, 76, 216, 0.08);
  border: 1px solid var(--prime);
  color: var(--prime);
}

/* подсветка ошибочного поля */
.form__input--error {
  border-color: var(--prime) !important;
  background-color: rgba(255, 76, 216, 0.05);
  transition: border-color 0.3s, background-color 0.3s;
}

.agree {
    text-align: center;
}

.catalog .item .new {
        position: absolute;
    left: 24px;
    top: 22px;
}

div#search-results {
    overflow: scroll;
    max-height: 60vh;
}

.catalog .col-6 .item img.attachment-medium_large {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  width: 100%;
  height: auto;
  display: block;
}

/* Верхняя панель: скрыть группу "Категории", кроме term-new */
body.tax-catalog:not(.term-new) .catalog-term-page .filter .item[data-group="categories"] {
  display: none !important;
}

/* Попап-оверлей: скрыть блок "Категории", кроме term-new */
body.tax-catalog:not(.term-new) .catalog-term-page ~ .allfilters.options
  .filter-block:has(input[name="categories[]"]) {
  display: none !important;
}

.page-id-1508 .cats {
  padding-bottom: 0px !important;
}

.page-id-1508 .catalog {
  padding-top: 40px;
}

/* курсор-указатель для кликабельных блоков */
[data-ref-to]{ cursor:pointer; }


@media (max-width: 767.98px) {
  /* сам слайдер-оверлей: полноэкранный, скроллится внутри */
  .allfilters {
    position: fixed;
    inset: 0;                 /* top:0; right:0; bottom:0; left:0 */
    width: 100%;
    min-width: 0;             /* перебиваем твоё min-width:532px на десктопе */
    height: 100vh;
    transform: translateX(100%);         /* вместо 5000px — корректная ширина */
    transition: transform .35s ease;
    background: #fff;
    box-shadow: 0 0 20px rgba(0,0,0,.1);
    z-index: 999;
    overflow-y: auto;                     /* скролл контента внутри */
    -webkit-overflow-scrolling: touch;    /* плавный скролл на iOS */
    padding-bottom: 80px; /* запас под нижнюю панель кнопок, см. блок .total ниже */
  }
  .allfilters.active { transform: translateX(0); }



  /* sticky-шапка внутри оверлея */
  .allfilters .fl.jsb.ac.bb {
    position: sticky;
    top: 0;
    z-index: 5;
    background: #fff;
    padding-top: calc(12px + env(safe-area-inset-top));
    box-shadow: 0 2px 10px rgba(0,0,0,.06);
  }
  .allfilters .fl.jsb.ac.bb { /* твой .fl.jsb.ac.bb */
    padding: 12px 16px;
  }

  /* заголовки и блоки внутри — без лишних больших размеров на мобиле */
  .allfilters .title { font-size: 24px; }
  .allfilters .subtitle { font-size: 18px; margin-bottom: 12px; }
  .allfilters .filter-block { padding: 16px; border-top: 1px solid #eee; }
}

.GalleryBig  .swiper-wrapper
{
  align-items: center;
}
.GalleryBig .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
}


.GalleryThumbs  .swiper-wrapper {
    justify-content: center;
    align-items: center;
}

.addfav {
    z-index: 999;
}
.gallery .main-image {
    padding: 16px;
}

/* даём место под кнопки, чтобы они были внутри */
.GalleryThumbs .swiper { padding: 0 24px; /* ширина ≈ половина кнопки + отступ */ }

/* держим кнопки внутри краёв */
.GalleryThumbs .swiper-button-next,
.GalleryThumbs .swiper-button-prev {
  top: 50%;
  transform: translateY(-50%);
}

.GalleryThumbs .swiper-button-next { right: 4px; } /* небольшой внутренний отступ */
.GalleryThumbs .swiper-button-prev { left: 4px;  }

.catalog .item .img
{
  padding: 16px;
min-height: 222px;
}


.new
{
  z-index: 99;
}
/* 0) тянем все слайды по высоте */
.mySwiperYooSee .swiper-wrapper{ align-items: stretch; }
.mySwiperYooSee .swiper-slide{ height: auto; }
.mySwiperYooSee .swiper-slide > .item{ display:flex; flex-direction:column; height:100%; }

/* 1) фиксируем окно под изображение (квадрат на десктопе, 3:4 на мобиле) */
.mySwiperYooSee .swiper-slide .item .img{
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #fff;
  border-radius: 12px;
}
.mySwiperYooSee .swiper-slide .item .img::before{
  content:""; display:block; padding-top:100%; /* 1:1 */
}
@media (max-width: 767.98px){
  .mySwiperYooSee .swiper-slide .item .img::before{ padding-top:133.333%; } /* 3:4 */
}

/* 2) заставляем <a> и <img> занять всё окно */
.mySwiperYooSee .swiper-slide .item .img > a{
  position:absolute; inset:0; display:block;
}
.mySwiperYooSee .swiper-slide .item .img img{
  width:100% !important;
  height:100% !important;
  max-width:none !important;
  object-fit:cover;           /* заполнить и обрезать лишнее */
  object-position:center;
  display:block;
}



.search-results .item .img img {
    width: 100% !important;
}
@media (max-width: 900px)
{
  .search {
    padding-right: 14px;
}
.search-results .item .img {
    width: 100% !important;
}

html, body {
  max-width: 100%;
  overflow-x: hidden;   /* фолбэк для старых браузеров */
  /* где поддерживается лучше: */
  overflow-x: clip;     /* обрезает без появления скролла */
  position: relative;
}

}


.promo .ag5 {
    right: -205px;
}

.promo .ag4 {
    left: -60px;
}

.promo .ag3 {left: -60px;}


.asreviews .item
{
  background: #ffffff;
        border-radius: 20px;
}

    .asreviews .rev-header {
        display: flex;
        align-items: center;
    }

        .asreviews .rev-text {
        margin-top: 30px;
        font-size: 18px;
        line-height: 120%;
        text-align: justify;
    }

            .asreviews .rev-text p + p {
        margin-top: 12px;

    }

    .asreviews .dol {
    color: rgba(32, 32, 32, 0.5);
    font-size: 16px;
}

.reviews .item {
  height: 100%;
}
.asreviews .name {
    font-size: 30px;
    line-height: 100%;
    font-weight: 500;
}


.asreviews .rev-header .text {
    margin-left: 16px;
}

.vac .item
{
  height: 100%;
}

.reviews .rev-header {
    min-height: 100px;
}

.custom-order .img img {
  margin: 0 auto;
  max-width: 100%;
  max-height: 500px;
  height: auto;
  border-radius: 12px;
  margin-bottom: 24px;
}

.custom-order h2 {
  font-size: 24px;
  font-weight: 600;
  margin: 24px 0 12px;
}

.custom-order ul {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 20px;
}

.custom-order blockquote {
  background: #f9f9f9;
  border-left: 4px solid #FF4CD8;
  padding: 16px 20px;
  border-radius: 8px;
  margin: 20px 0;
  font-style: italic;
}

.custom-order .but {
  margin-top: 24px;
}

.custom-order .btn {
  width: 200px;
  white-space: nowrap;
}


.news .item img {
    max-height: 200px;
}

.mapiapi {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
}

.mapiapi * {
    flex-grow: 1;
}

header .header-bottom nav li {
    padding: 0 12px;
    white-space: nowrap;
}

.mySwiperYooSee .swiper-wrapper
{
  flex-wrap: nowrap !important;
}

.swiper-slide .item .img
{
  aspect-ratio: 1;
}

footer ul {
    margin: 20px 0px;
}
/* Desktop */
footer .fl.jsb {
  display: grid;
  grid-template-columns: 1fr 1.2fr; /* правая чуть шире (под форму) */
  gap: 24px 40px;
  align-items: start;
}

footer .footer-left {
  display: flex;
  flex-direction: column;
  gap: 16px;           /* расстояние между col1 и col3 */
  min-width: 0;
}
footer .col2 {
  min-width: 0;
  background: rgba(255,255,255,0.04); /* визуальный блок для формы */
  border-radius: 16px;
  padding: 20px;
}

/* Mobile */
@media (max-width: 900px) {
  footer .fl.jsb {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "col1 col2"
      "col3 col2";
    gap: 16px 20px;
  }
  footer .footer-left { display: contents; } /* разложим col1 и col3 в области */
  footer .col1 { grid-area: col1; }
  footer .col3 { grid-area: col3; }
  footer .col2 { grid-area: col2; padding: 16px; }
}



@media (max-width: 500px)
{
  footer .fl.jsb {
    display: grid;
    grid-template-areas:
      "col1 col3"
      "col2 col2";
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 46px 20px;
    align-items: start;
  }}
  

/* Показ только на мобилках */
@media (max-width: 900px) {


  .mbottom-nav {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    height: 64px;
    padding-bottom: env(safe-area-inset-bottom);
    background: #fff;
    border-top: 1px solid #eee;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    align-items: center;
    z-index: 9999;
    box-shadow: 0 -6px 20px rgba(0,0,0,0.06);
  }

  .mbottom-nav .mbi {
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #262626;
    font-size: 11px;
    line-height: 1;
  }
  .mbottom-nav .mbi .ico { position: relative; display: inline-flex; }

  .mbottom-nav .mbi .badge {
    position: absolute;
    top: -4px; right: -8px;
    min-width: 18px; height: 18px;
    padding: 0 5px;
    background: #ff3b30;
    color: #fff;
    border-radius: 999px;
    font-size: 11px;
    line-height: 18px;
    text-align: center;
  }

  /* активный пункт */
  .mbottom-nav .mbi.is-active {
    color: #0066ff;
  }
  .mbottom-nav .mbi.is-active .ico svg {
    color: #0066ff;
  }
}

/* На десктопе — скрыть */
@media (min-width: 901px) {
  .mbottom-nav { display: none; }
}

/* Контейнер попапа */
.cookie-popup {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  max-width: 905px;
  width: 100%;
  background: #ffffff;
  padding: 1.25rem 1rem;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.1);
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 10000;
  animation: slideUp 0.3s ease-out;
}

.cookie-popup {
  display: none; 
}

/* Анимация появления */
@keyframes slideUp {
  from { transform: translate(-50%, 100%); opacity: 0; }
  to   { transform: translate(-50%, 0);      opacity: 1; }
}

/* Заголовок */
.cookie-popup__header {
  font-size: 1rem;
  font-weight: 600;
color: #000;
  line-height: 1.4;
  text-align: center;
}
@media(min-width: 500px) {
h1.--usersogl
{
  margin-top: 40px !important;
}
}

.cookie-popup__header strong {
color: #000;
  font-size: 1.5rem;
}

/* Текст и чекбокс */
.cookie-popup__label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.cookie-popup__label input[type="checkbox"] {
  width: 1.2em;
  height: 1.2em;
  margin-top: 0.2em;
  accent-color: var(--prime);
  cursor: pointer;
}

.cookie-popup__text {
  color: #333333;
  text-align: justify;
  font-size: 0.9rem;
  line-height: 1.5;
}

.cookie-popup__text a {
  color: var(--prime);
  text-decoration: none;
  border-bottom: 1px dashed var(--prime);
  transition: border-color 0.2s;
}

.cookie-popup__text a:hover {
  border-bottom-color: transparent;
}

/* Кнопка */
.cookie-popup__button {
  align-self: flex-end;
  background-color: var(--prime);
  color: #ffffff;
  border: none;
  padding: 0.5rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  border-radius: 4px;
  cursor: pointer;
  opacity: 0.5;
  transition: background-color 0.2s, opacity 0.2s, transform 0.1s;
}

.cookie-popup__button:enabled {
  opacity: 1;
}

.cookie-popup__button:hover:enabled {
  background-color: var(--prime);
}

.cookie-popup__button:active:enabled {
  transform: scale(0.98);
}

.cookie-popup__button:disabled {
  cursor: not-allowed;
}

/* Адаптивность */
@media (min-width: 600px) {
  .cookie-popup {
    padding: 1.5rem 2rem;
  }
  .cookie-popup__header {
    font-size: 1.1rem;
  }
  .cookie-popup__text {
    font-size: 1rem;
  }
  .cookie-popup__button {
    padding: 0.6rem 1.5rem;
    font-size: 1rem;
  }
}

/* Заголовок */
.cookie-popup__header {
  font-size: 1.2rem;        /* было 1rem → стало чуть больше */
  font-weight: 600;
  letter-spacing: 0.5px;    /* небольшое межбуквенное расстояние */
  line-height: 1.4;
  text-align: center;
}

/* Текст и чекбокс */
.cookie-popup__text {
  color: #333333;
  font-size: 1rem;          /* было 0.9rem → чуть больше */
  letter-spacing: 0.3px;    /* чуть шире */
  line-height: 1.6;         /* чуть больше высоты строки */
}

/* Кнопка */
.cookie-popup__button {
  align-self: center;
  background-color: var(--prime);
  color: #ffffff;
  border: none;
  padding: 0.6rem 1.5rem;
  font-size: 1.1rem;        /* было 0.9rem → увеличили */
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;    /* шире, для читаемости */
  border-radius: 4px;
  cursor: pointer;
  opacity: 0.5;
  transition: background-color 0.2s, opacity 0.2s, transform 0.1s;
}

@media (min-width: 600px) {
  .cookie-popup__header {
    font-size: 1.3rem;      /* адаптивно чуть больше */
  }
  .cookie-popup__text {
    font-size: 1.05rem;
  }
  .cookie-popup__button {
    font-size: 1.15rem;
  }
}

.promo .ag1
{
  top: 76px;
}


.about .pre .fl .item img {
    height: 83px;
}

@media (max-width: 900px) {
    footer .col3 {
        margin-top: 60px;
    }
}

.reviews .item {
    padding: 19px;
}

.swiper-slide .item .img {
    aspect-ratio: 1;
    width: 60px;
    height: 60px;
}

 .swiper-slide .item .img img  
{border-radius: 70px;}

@media (max-width: 900px) {
    .promo .title::after {
        top: 80px;
        right: 2px;
    }
}


@media (max-width: 900px) {
/* Панель фильтров — колонка на всю высоту */
.allfilters .fl.fl-column.jsb {
  justify-content: flex-start !important;
  min-height: 100dvh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
}

/* Прокрутка только внутри области со списками фильтров */
.allfilters .filter-top {
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  position: relative; /* контекст для sticky внутри */
}

/* Липкая шапка «Фильтры + крестик» внутри .filter-top */
.allfilters .filter-top > .fl.jsb.ac.bb {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #fff;
}

/* Нижняя панель с итогом и кнопками — всегда на виду */
.allfilters .total {
  flex: 0 0 auto;       /* не растягивать */
  position: sticky;     /* можно зафиксировать у низа viewport панели */
  bottom: 0;
  z-index: 10;
  background: #fff;
  border-top: 1px solid #eee;
  padding: 12px 16px;
}

/* На всякий случай: у контейнеров-родителей не должно быть overflow скрывающего sticky */
.allfilters,
.allfilters .options {
  overflow: visible !important;
}



  .allfilters { position: relative; }
  .allfilters.active { top: -63px; }            /* вариант 1 */
  /* или: .allfilters.active { margin-top: -63px; }  вариант 2 */

    .options .total p {

        border-top: none;
    }
  /* Делаем место под нижнюю панель */
  .allfilters .filter-top {
    padding-bottom: var(--filters-foot-h, 166px); /* запас = 96px, подправь при желании */
  }

  /* (необязательно) более адекватная тень у футера */
  .allfilters .total {
    box-shadow: 0 -14px 20px rgba(0,0,0,.06);
  }

    .options .item ul {
bottom: 64px;
max-height: 50vh;
overflow-y: scroll;
    }
}

@media (max-width: 900px) {
  /* дефолтные значения, пока JS не посчитает */
  .allfilters {
    --sab: 0px;                  /* safe-area bottom */
    --filters-foot-h: 120px;     /* высота .total */
    --foot-bottom-pad: 89px;     /* нижний паддинг для .total */
  }

  /* список — место под футер + safe area */
  .allfilters .filter-top {
    padding-bottom: calc(var(--filters-foot-h, 120px) + var(--sab, 0px));
  }

  /* футер — нужные тебе отступы: 12 16 (dyn + sab) 7 */
  .allfilters .total {
    padding: 12px 16px calc(var(--foot-bottom-pad, 89px) + var(--sab, 0px)) 7px;
  }
}

@media (max-width: 900px) {
  .allfilters.options {
    position: fixed !important;
    left: 0; right: 0;
    bottom: -100svh;
    height: 100vh;      max-height: 100vh;
    height: 100svh;     max-height: 100svh;
    height: 100dvh;     max-height: 100dvh;
    background: #fff;
    z-index: 10000;
    transition: bottom .28s ease;
    overflow: hidden !important; /* скролл только внутри .filter-top */
  }
  .allfilters.options.active { bottom: 0 !important; }

  .allfilters .fl.fl-column.jsb {
    display: flex; flex-direction: column; justify-content: flex-start !important;
    height: 100%; min-height: 100%; flex-wrap: nowrap;
  }

  .allfilters .filter-top {
    flex: 1 1 auto;
    overflow-y: auto; -webkit-overflow-scrolling: touch;
    position: relative;
    padding-bottom: calc(var(--filters-foot-h, 120px) + var(--sab, 0px));
  }

  .allfilters .filter-top > .fl.jsb.ac.bb {
    position: sticky; top: 0; z-index: 2; background: #fff;
  }

  .allfilters .total {
    position: relative;
    flex: 0 0 auto;
    z-index: 2;
    background: #fff;
    border-top: 1px solid #eee;
    padding: 12px 16px 0px 7px;
    box-shadow: 0 -14px 20px rgba(0,0,0,.06);
  }

  /* подстраховка от скрывающих overflow у родителей */
  .allfilters { overflow: visible !important; }
}

/* когда панель открыта, сносим любые transform у предков */
html.filters-open,
body.filters-open,
.wrapper.filters-open,
.page.filters-open,
.inner.filters-open {
  transform: none !important;
  filter: none !important;
  perspective: none !important;
}




/* показывать: либо по .is-open, либо по :hover, НО :hover только когда hover включён */
.options .item.is-open ul,
.options.is-hover-enabled .item:hover ul {
  opacity: 1; visibility: visible; pointer-events: auto;
}

/* стрелка */
.options .item > img { transition: transform .2s; }
.options .item.is-open > img { transform: rotate(180deg); }
