/* Собственный слой правок нового сайта (поверх стилей темы/сниппетов). */
/* ============================================================
   Глобальный шрифт Open Sans для всего сайта
   ============================================================ */
html,
body,
button,
input,
optgroup,
select,
textarea,
h1, h2, h3, h4, h5, h6,
p, span, a, li, label, table, td, th,
.site,
#page,
#primary,
#colophon,
#masthead {
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important;
}

/* Плашка контактов в баннере (сниппет 1313 ставил opacity:1 через JS —
   в новом коде плашка сразу в HTML, поэтому показываем без JS). */
.header-l3-c{opacity:1 !important;}

/* Кнопка «Наверх» (сниппет 1316) */
.scroll-to-top{
  position:fixed;bottom:20px;right:20px;width:50px;height:50px;border-radius:50%;
  background:#333;color:#fff;display:flex;align-items:center;justify-content:center;
  cursor:pointer;opacity:0;visibility:hidden;transition:all .3s;z-index:9998;border:none;
}
.scroll-to-top.show{opacity:1;visibility:visible;}
.scroll-to-top:hover{background:#555;color:#037FFF;transform:translateY(-2px);}
@media(max-width:768px){.scroll-to-top{width:45px;height:45px;bottom:15px;right:15px;}}

/* Боковое меню; адаптивные правила кнопки заданы одним блоком ниже. */
.mobile-hamburger-btn{display:none;}

.mobile-menu-overlay{position:fixed;inset:0;background:rgba(0,0,0,.5);z-index:10000;
  opacity:0;visibility:hidden;transition:opacity .3s ease, visibility .3s ease;}
.mobile-menu-overlay.active{opacity:1;visibility:visible;}
.mobile-side-menu{position:absolute;top:0;left:0 !important;width:300px;height:100%;background:#fff;
  padding:20px;overflow-y:auto;transform:translateX(-100%);transition:transform .3s ease !important;box-shadow:2px 0 12px rgba(0,0,0,.2);}
.mobile-menu-overlay.active .mobile-side-menu{transform:translateX(0) !important;}
.mobile-menu-close{position:absolute;top:10px;right:14px;font-size:28px;background:none;border:none;cursor:pointer;line-height:1;}
.mobile-menu-heading{font-weight:600;margin:18px 0 8px;color:#037FFF;}
.mobile-side-menu ul,
.mobile-menu-section ul,
#mobile-primary-menu-items,
#mobile-top-menu-items {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
.mobile-side-menu li,
#mobile-primary-menu-items li,
#mobile-top-menu-items li {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  position: relative !important;
}
.mobile-side-menu li a,
#mobile-top-menu-items a,
#mobile-primary-menu-items a {
  display: block;
  padding: 8px 0 !important;
  padding-right: 35px !important;
  padding-left: 0 !important;
  color: #333;
  text-decoration: none;
  border-bottom: 1px solid #eee;
  font-size: 15px !important;
  font-weight: 500;
  line-height: 1.4;
}
#mobile-top-menu-items .sub-menu a,
#mobile-primary-menu-items .sub-menu a {
  padding-left: 15px !important;
  padding-right: 35px !important;
  font-size: 14px !important;
  font-weight: 400;
}
.mobile-side-menu .sub-menu {
  display: block !important;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.3s ease, opacity 0.3s ease;
  padding-left: 15px !important;
  position: static !important;
  box-shadow: none !important;
  border: none !important;
  background: transparent !important;
  border-radius: 0 !important;
  width: auto !important;
  margin: 0 !important;
}
.mobile-side-menu .sub-menu.active {
  max-height: 500px;
  opacity: 1;
}

.mobile-side-menu .sub-menu li {
  position: relative !important;
  display: block !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
}
.mobile-side-menu .sub-menu li a {
  display: block !important;
  padding: 8px 0 !important;
  border-bottom: 1px solid #f5f5f5 !important;
  color: #555 !important;
  font-size: 14px !important;
  background: transparent !important;
  transition: color 0.2s !important;
}
.mobile-side-menu .sub-menu li a:hover {
  color: #037FFF !important;
  background: transparent !important;
  padding-left: 0 !important;
}
.mobile-submenu-toggle{position:absolute;right:0;top:6px;width:32px;height:32px;background:none;border:none;cursor:pointer;display:flex;align-items:center;justify-content:center;color:#666;transition:transform .3s;padding:0;z-index:100005 !important;}
.mobile-submenu-toggle.active{transform:rotate(180deg);}
.mobile-side-menu li.menu-item-has-children > a::after {display:none !important;}
body.mobile-menu-open{overflow:hidden;}

/* Справочник туриста */
.yst-page-layout {
  display: flex;
  gap: 30px;
}
.yst-main-content {
  flex: 1;
  min-width: 0;
}
.yst-category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.yst-category-card:last-child:nth-child(2n - 1) {
  grid-column: 1 / -1;
  justify-self: center;
  max-width: calc(50% - 12px);
}
.yst-category-card {
  background: #EFF0F1;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  border: 1px solid #f0f0f0;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  text-decoration: none;
  color: inherit;
}
.yst-category-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}
.yst-category-card__image {
  position: relative;
  height: 260px;
  padding: 16px;
  box-sizing: border-box;
}
.yst-category-card__image-container {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #e9ecef;
}
.yst-category-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.yst-category-card__no-image {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6c757d;
  font-size: 14px;
}
.yst-category-card__content {
  flex: 1;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 70px;
}
.yst-category-card__title {
  font-family: 'Open Sans', sans-serif;
  font-weight: 600;
  font-size: 20px;
  line-height: 1.2;
  color: #1D1D1F;
  margin: 0;
}
.yst-category-card__description {
  font-family: 'Open Sans', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.4;
  color: #6c757d;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
.yst-category-card__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  background: #dc3545;
  color: white;
  font-family: 'Open Sans', sans-serif;
  font-weight: 500;
  font-size: 14px;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.2s ease;
  white-space: nowrap;
  position: absolute;
  bottom: 16px;
  right: 16px;
}
.yst-category-card:hover .yst-category-card__button {
  background: #c82333;
}

@media (max-width: 992px) {
  .yst-page-layout {
      flex-direction: column;
      gap: 30px;
  }
  .yst-category-grid {
      grid-template-columns: repeat(2, 1fr);
  }
  .yst-category-card:last-child:nth-child(2n-1) {
      grid-column: 1 / -1;
      justify-self: center;
      max-width: calc(50% - 12px);
  }
}
@media (max-width: 767px) {
  .yst-category-grid {
      grid-template-columns: 1fr !important;
      gap: 16px !important;
  }
  .yst-category-card:last-child:nth-child(2n-1) {
      grid-column: auto !important;
      justify-self: auto !important;
      max-width: 100% !important;
  }
}


/* Развлечения и отдых */
.yro-page-layout {
  display: flex;
  gap: 30px;
}
.yro-main-content {
  flex: 1;
  min-width: 0;
}
.yro-category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.yro-category-card {
  background: #EFF0F1;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  text-decoration: none !important;
  color: #1D1D1F;
}
.yro-category-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}
.yro-category-card__image {
  position: relative;
  height: 260px;
  padding: 16px;
  box-sizing: border-box;
}
.yro-category-card__image-container {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #e9ecef;
}
.yro-category-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.yro-category-card__no-image {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6c757d;
  font-size: 14px;
}
.yro-category-card__content {
  flex: 1;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 70px;
}
.yro-category-card__title {
  font-family: 'Open Sans', sans-serif;
  font-weight: 600;
  font-size: 20px;
  line-height: 1.2;
  color: #1D1D1F;
  margin: 0;
}
.yro-category-card__description {
  font-family: 'Open Sans', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.4;
  color: #6c757d;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
.yro-category-card__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 16px;
  background: #D90429;
  color: white;
  font-family: 'Open Sans', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 130%;
  border-radius: 4px;
  transition: background-color 0.2s ease;
  white-space: nowrap;
  position: absolute;
  bottom: 16px;
  left: 16px;
}
.yro-category-card:hover .yro-category-card__button {
  background: #b80322;
}

@media (max-width: 992px) {
  .yro-page-layout {
      flex-direction: column;
      gap: 30px;
  }
  .yro-category-grid {
      grid-template-columns: repeat(2, 1fr);
  }
  .yro-category-card:last-child:nth-child(2n-1) {
      grid-column: 1 / -1;
      justify-self: center;
      max-width: calc(50% - 12px);
  }
}
@media (max-width: 767px) {
  .yro-category-grid {
      grid-template-columns: 1fr !important;
      gap: 16px !important;
  }
  .yro-category-card:last-child:nth-child(2n-1) {
      grid-column: auto !important;
      justify-self: auto !important;
      max-width: 100% !important;
  }
}


/* Фотоальбомы */
.yfa-main-wrapper {
  display: flex;
  gap: 30px;
  align-items: flex-start;
  margin-top: 15px;
}
.yfa-container {
  max-width: 730px;
  margin: 0px;
  padding: 0px;
  width: 730px;
  flex: 0 0 730px;
}
.yfa-breadcrumbs {
  padding: 0px !important;
  display: block !important;
  height: auto !important;
  line-height: normal !important;
  position: relative !important;
}
.yfa-breadcrumbs a {
  color: rgb(29, 29, 31);
  font-family: "Open Sans", sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 130%;
  text-decoration: none;
}
.yfa-breadcrumbs a:hover {
  color: rgb(3, 127, 255);
}
.yfa-breadcrumbs span {
  color: rgba(29, 29, 31, 0.76);
  font-family: "Open Sans", sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 130%;
}
.yfa-title {
  font-family: "Open Sans", sans-serif;
  font-weight: 600;
  font-size: 40px;
  line-height: 130%;
  color: #1D1D1F;
  margin-bottom: 0.5rem;
}
.yfa-filter-buttons {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.yfa-filter-btn {
  font-family: "Open Sans", sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 100%;
  color: rgba(29, 29, 31, 0.6);
  background-color: rgb(239, 240, 241);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: 0.3s;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.yfa-filter-icon {
  flex-shrink: 0;
}
.yfa-filter-btn[data-filter="all"] { width: 83px; height: 37px; }
.yfa-filter-btn[data-filter="holidays"] { width: 119px; height: 37px; }
.yfa-filter-btn[data-filter="sea"] { width: 75px; height: 37px; }
.yfa-filter-btn[data-filter="architecture"] { width: 130px; height: 37px; }
.yfa-filter-btn[data-filter="nature"] { width: 102px; height: 37px; }
.yfa-filter-btn[data-filter="yeisk"] { width: 141px; height: 37px; }

.yfa-filter-btn--active, .yfa-filter-btn:hover {
  background-color: rgb(189, 190, 191);
  color: rgb(29, 29, 31);
}
.yfa-content {
  width: 100%;
  max-width: 730px;
  margin: 0px;
}
.yfa-section {
  display: block;
  margin-bottom: 32px;
  width: 100%;
}
.yfa-section.yfa-hidden {
  display: none !important;
}
.yfa-section-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  width: 100%;
}
.yfa-section-title {
  font-family: "Open Sans", sans-serif;
  font-weight: 600;
  font-size: 20px;
  line-height: 100%;
  color: rgb(29, 29, 31);
  margin: 0px;
}
.yfa-photo-count {
  font-family: "Open Sans", sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 100%;
  color: rgb(148, 148, 148);
}
.yfa-sections-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  width: 100%;
  max-width: 730px;
}
.yfa-section-card {
  background: rgb(231, 231, 231);
  overflow: hidden;
  transition: 0.3s;
  text-decoration: none;
  color: rgb(0, 0, 0);
  display: block;
  padding: 4px;
  position: relative;
  border-radius: 0.25rem;
}
.yfa-section-card:hover {
  background: rgb(3, 127, 255);
  color: rgb(255, 255, 255);
  transform: translateY(-2px);
  box-shadow: rgba(0, 0, 0, 0.15) 0px 4px 12px;
  text-decoration: none;
}
.yfa-card-photo {
  width: 100% !important;
  aspect-ratio: 1.1 / 1 !important;
  height: auto !important;
  overflow: hidden;
  background: rgb(245, 245, 245);
  display: block;
  border-radius: calc(-2px + 0.25rem);
  position: relative;
}
.yfa-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.yfa-section-card:hover .yfa-card-photo img {
  transform: scale(1.05);
}
.yfa-card-content {
  padding: 14px 10px;
  position: relative;
}
.yfa-card-title {
  font-size: 16px;
  font-weight: 500;
  text-align: center;
  line-height: 1.3;
  color: inherit;
  margin: 0px;
}
.yfa-card-count {
  position: absolute;
  top: -8px;
  right: 8px;
  background: rgba(3, 127, 255, 0.9);
  color: white;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 12px;
  min-width: 20px;
  text-align: center;
}
.yfa-section-card:hover .yfa-card-count {
  background: rgba(255, 255, 255, 0.9);
  color: rgb(3, 127, 255);
}
.yfa-card-bookmark {
  position: absolute;
  top: 8px;
  left: -80px;
  background: rgb(3, 127, 255);
  color: white;
  padding: 6px 12px 6px 8px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  border-radius: 0px 4px 4px 0px;
  z-index: 10;
  transition: left 0.3s, opacity 0.3s;
  white-space: nowrap;
  opacity: 0;
}
.yfa-card-bookmark::after {
  content: "";
  position: absolute;
  right: -8px;
  top: 50%;
  transform: translateY(-50%);
  width: 0px;
  height: 0px;
  border-left: 8px solid rgb(3, 127, 255);
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
}
.yfa-section-card:hover .yfa-card-bookmark {
  left: 0px;
  background: rgb(255, 255, 255);
  color: rgb(3, 127, 255);
  opacity: 1;
}
.yfa-section-card:hover .yfa-card-bookmark::after {
  border-left-color: rgb(255, 255, 255);
}

/* Слайдер на странице одного альбома */
.photoalbum-main-slider {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  background: #000;
  position: relative;
}
.photoalbum-main-slider .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 500px;
}
.photoalbum-main-slider .swiper-slide img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  cursor: zoom-in;
}
.photoalbum-slide-counter {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  padding: 5px 12px;
  border-radius: 15px;
  font-size: 12px;
  z-index: 10;
}

/* Стрелки Swiper для фотоальбома, соответствующие дизайну сайта */
.photoalbum-main-slider .swiper-button-prev,
.photoalbum-main-slider .swiper-button-next {
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 44px !important;
  height: 44px !important;
  border-radius: 50% !important;
  background-color: rgba(29, 29, 31, 0.4) !important;
  transition: background-color 0.3s ease !important;
  z-index: 10 !important;
  margin-top: 0 !important;
}
.photoalbum-main-slider .swiper-button-prev::after,
.photoalbum-main-slider .swiper-button-next::after {
  display: none !important;
}
.photoalbum-main-slider .swiper-button-prev {
  left: 1rem !important;
  background: rgba(29, 29, 31, 0.4) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='20' viewBox='0 0 12 20' fill='none'%3E%3Cpath d='M10.5 1.5L2 10L10.5 18.5' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / 10px 18px !important;
}
.photoalbum-main-slider .swiper-button-next {
  right: 1rem !important;
  background: rgba(29, 29, 31, 0.4) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='20' viewBox='0 0 12 20' fill='none'%3E%3Cpath d='M1.5 1.5L10 10L1.5 18.5' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / 10px 18px !important;
}
.photoalbum-main-slider .swiper-button-prev:hover,
.photoalbum-main-slider .swiper-button-next:hover {
  background-color: rgba(29, 29, 31, 0.7) !important;
}

/* Lightbox для фотоальбома */
#photoalbum-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  z-index: 99999;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  opacity: 0;
  transition: opacity 0.3s;
}
#photoalbum-lightbox.show {
  opacity: 1;
}
.lb-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 40px;
  cursor: pointer;
  z-index: 10;
}
.lb-content {
  width: 90%;
  max-width: 1000px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.lb-main-image {
  position: relative;
  width: 100%;
  height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lb-main-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-size: 40px;
  padding: 10px;
  cursor: pointer;
  user-select: none;
  transition: color 0.2s;
}
.lb-nav:hover {
  color: #037fff;
}
.lb-prev { left: 10px; }
.lb-next { right: 10px; }
.lb-slide-counter {
  position: absolute;
  top: 10px;
  left: 10px;
  color: #fff;
  font-size: 14px;
  background: rgba(0,0,0,0.5);
  padding: 4px 10px;
  border-radius: 10px;
}
.lb-thumbs {
  display: flex;
  gap: 10px;
  width: 100%;
  overflow-x: auto;
  padding-bottom: 10px;
}
.lb-thumb {
  width: 80px;
  height: 60px;
  flex-shrink: 0;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.2s, border-color 0.2s;
  border: 2px solid transparent;
}
.lb-thumb.active, .lb-thumb:hover {
  opacity: 1;
  border-color: #037fff;
}
.lb-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Общая карта Ейска */
.combined-page-layout {
  display: flex;
  gap: 30px;
}
.combined-main-content {
  flex: 1;
  min-width: 0;
}
.combined-expand-button {
  background: linear-gradient(135deg, #037fff, #0366d6);
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(3,127,255,0.3);
  color: #fff;
}
.combined-expand-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(3,127,255,0.4);
}
body.modal-open {
  overflow: hidden !important;
  overscroll-behavior: none !important;
}
.combined-modal {
  display: none;
  position: fixed;
  z-index: 10000;
  inset: 0;
  background-color: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  overscroll-behavior: contain;
}
.combined-modal.fullscreen-active {
  overflow: hidden;
}
.combined-modal-content {
  position: relative;
  background-color: #fff;
  margin: 2vh auto;
  padding: 0;
  border-radius: 12px;
  width: 95%;
  max-width: 1200px;
  height: 92vh;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  display: flex;
  flex-direction: column;
}
.combined-modal-content.fullscreen {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  border-radius: 0 !important;
}
.combined-modal-content h3 {
  margin: 0;
  padding: 20px 25px;
  background: linear-gradient(135deg, #037fff, #0366d6);
  color: white;
  font-size: 20px;
  font-weight: 600;
  border-radius: 12px 12px 0 0;
  flex-shrink: 0;
}
.combined-close {
  position: absolute;
  right: 20px;
  top: 15px;
  color: white;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1;
}
.combined-control-btn {
  position: absolute;
  top: 10px;
  background: white;
  border: none;
  border-radius: 6px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}
#combined-expand-btn { right: 10px; }
#combined-filter-btn { right: 60px; }

.combined-filter-panel {
  position: absolute;
  top: 60px;
  right: 10px;
  background: white;
  border-radius: 8px;
  padding: 15px;
  width: 280px;
  z-index: 1001;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  max-height: calc(100% - 70px) !important;
  overflow-y: auto !important;
}
.filter-section {
  margin-bottom: 15px;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}
.filter-section label {
  display: block;
  font-size: 13px;
  margin: 4px 0;
  cursor: pointer;
}
.select-all-label {
  font-size: 11px !important;
  color: #037fff;
}
.combined-reset-btn {
  width: 100%;
  padding: 9px 12px;
  background: #f5f5f7 !important;
  color: #1d1d1f !important;
  border: 1px solid #d2d2d7 !important;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.combined-reset-btn:hover {
  background: #dc3545 !important;
  color: #ffffff !important;
  border-color: #dc3545 !important;
}
.combined-map-legend {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-radius: 20px;
  padding: 12px 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  font-size: 11px;
  color: #333;
  font-weight: 500;
  border: 1px solid rgba(255,255,255,0.8);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.combined-map-legend.hidden {
  opacity: 0;
  transform: translateX(-10px);
  pointer-events: none;
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}
.legend-marker {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid;
  flex-shrink: 0;
}
.legend-marker.housing-featured { background: #ffffff; border-color: #ff6b35; border-radius: 50%; }
.legend-marker.housing-standard { background: #ffffff; border-color: #037fff; border-radius: 50%; }
.legend-marker.venue-featured { background: #ffffff; border-color: #ffd700; border-radius: 3px; }
.legend-marker.venue-standard { background: #ffffff; border-color: #dc3545; border-radius: 3px; }
.legend-marker.delivery-featured { background: #ffffff; border-color: #616161; border-radius: 3px; }
.legend-marker.delivery-standard { background: #ffffff; border-color: #616161; border-radius: 3px; }

.combined-legend-close {
  background: none;
  border: none;
  padding: 2px;
  cursor: pointer;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}
.combined-legend-close:hover {
  background-color: rgba(0,0,0,0.1);
}
.combined-legend-close svg {
  width: 14px !important;
  height: 14px !important;
}

/* Маркеры на карте Leaflet — 1-в-1 из оригинала 1579 */
.combined-housing-marker {
  width: 24px !important;
  height: 24px !important;
  border-radius: 50% !important;
  background: #ffffff !important;
  border: 3px solid !important;
  font-weight: 700 !important;
  font-size: 11px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3) !important;
  cursor: pointer !important;
}
.combined-housing-marker.featured {
  border-color: #ff6b35 !important;
  color: #ff6b35 !important;
  box-shadow: 0 3px 12px rgba(255, 107, 53, 0.4) !important;
}
.combined-housing-marker.standard {
  border-color: #037fff !important;
  color: #037fff !important;
}
.combined-housing-marker.featured::after {
  content: '★' !important;
  position: absolute !important;
  top: -8px !important;
  right: -8px !important;
  width: 16px !important;
  height: 16px !important;
  background: #ff6b35 !important;
  color: #fff !important;
  border-radius: 50% !important;
  font-size: 10px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-weight: bold !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3) !important;
  animation: combined-star-pulse 1.5s ease-in-out infinite !important;
  z-index: 1000 !important;
}

.combined-venue-marker {
  width: 24px !important;
  height: 24px !important;
  border-radius: 3px !important;
  background: #ffffff !important;
  border: 3px solid #dc3545 !important;
  color: #dc3545 !important;
  font-weight: 700 !important;
  font-size: 10px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3) !important;
  cursor: pointer !important;
}
.combined-venue-marker.featured {
  border-color: #ffd700 !important;
  color: #e6ac00 !important;
  box-shadow: 0 3px 12px rgba(255, 215, 0, 0.4) !important;
}
.combined-venue-marker.standard {
  border-color: #dc3545 !important;
  color: #dc3545 !important;
}
.combined-venue-marker.featured::after {
  content: '★' !important;
  position: absolute !important;
  top: -8px !important;
  right: -8px !important;
  width: 16px !important;
  height: 16px !important;
  background: #ffd700 !important;
  color: #fff !important;
  border-radius: 50% !important;
  font-size: 10px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-weight: bold !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3) !important;
  animation: combined-star-pulse 1.5s ease-in-out infinite !important;
  z-index: 1000 !important;
}

.combined-delivery-marker {
  width: 24px !important;
  height: 24px !important;
  border-radius: 3px !important;
  background: #ffffff !important;
  border: 3px solid #616161 !important;
  color: #616161 !important;
  font-weight: 700 !important;
  font-size: 10px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3) !important;
  cursor: pointer !important;
}
.combined-delivery-marker.featured {
  border-color: #616161 !important;
  color: #616161 !important;
  box-shadow: 0 3px 12px rgba(97, 97, 97, 0.4) !important;
}
.combined-delivery-marker.standard {
  border-color: #616161 !important;
  color: #616161 !important;
}
.combined-delivery-marker.featured::after {
  content: '★' !important;
  position: absolute !important;
  top: -8px !important;
  right: -8px !important;
  width: 16px !important;
  height: 16px !important;
  background: #616161 !important;
  color: #fff !important;
  border-radius: 50% !important;
  font-size: 10px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-weight: bold !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3) !important;
  animation: combined-star-pulse 1.5s ease-in-out infinite !important;
  z-index: 1000 !important;
}

@keyframes combined-star-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

.marker-bg-star {
  position: absolute !important;
  top: 45% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  width: 14px !important;
  height: 14px !important;
  opacity: 0.15 !important;
  z-index: 1 !important;
  pointer-events: none !important;
}
.combined-venue-marker.featured .marker-bg-star path {
  fill: rgba(255, 235, 150, 0.7) !important;
  stroke: rgba(255, 215, 100, 0.8) !important;
}
.combined-venue-marker.standard .marker-bg-star path {
  fill: rgba(255, 210, 180, 0.7) !important;
  stroke: rgba(255, 160, 120, 0.8) !important;
}
.combined-delivery-marker .marker-bg-star path {
  fill: rgba(150, 150, 150, 0.6) !important;
  stroke: rgba(120, 120, 120, 0.8) !important;
}

.marker-text {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  color: inherit !important;
  z-index: 2 !important;
  pointer-events: none !important;
}

@media (max-width: 769px) {
  .yst-category-grid, .yro-category-grid {
    grid-template-columns: 1fr;
  }
  .msix-in.grid-container.col-4 {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  .msix-i {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    aspect-ratio: 427 / 248 !important;
    overflow: hidden !important;
  }
  .msix-i img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }
  .msix-i__title {
    position: absolute !important;
    left: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    text-align: center !important;
    z-index: 2 !important;
  }
  .yfa-container {
    padding: 0px;
    flex: 0 0 auto;
  }
  .yfa-sections-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  .yfa-section-title {
    font-size: 18px;
  }
  .yfa-photo-count {
    font-size: 16px;
  }
  .yfa-filter-buttons {
    gap: 12px;
  }
  .yfa-filter-btn {
    font-size: 14px;
    padding: 6px 12px;
  }
  .yfa-filter-btn[data-filter="all"] { width: auto; min-width: 60px; height: 32px; }
  .yfa-filter-btn[data-filter="holidays"] { width: auto; min-width: 80px; height: 32px; }
  .yfa-filter-btn[data-filter="sea"] { width: auto; min-width: 55px; height: 32px; }
  .yfa-filter-btn[data-filter="architecture"] { width: auto; min-width: 95px; height: 32px; }
  .yfa-filter-btn[data-filter="nature"] { width: auto; min-width: 75px; height: 32px; }
  .yfa-filter-btn[data-filter="yeisk"] { width: auto; min-width: 100px; height: 32px; }
  .photoalbum-main-slider .swiper-slide {
    height: 350px !important;
  }
}
@media (max-width: 480px) {
  .yfa-sections-cards {
    grid-template-columns: 1fr;
  }
  .photoalbum-main-slider .swiper-slide {
    height: 280px !important;
  }
  .yfa-card-content {
    padding: 10px 8px;
  }
  .yfa-card-title {
    font-size: 14px;
  }
}

/* Стилизация боковой панели сайдбара для соответствия оригиналу */
.yfa-main-wrapper .singlst-r,
.yst-page-layout .singlst-r,
.yro-page-layout .singlst-r,
.combined-page-layout .singlst-r {
  width: 401px;
  min-width: 401px;
  padding-left: 20px;
  border-left: 1px solid rgb(199, 199, 199);
  box-sizing: border-box;
}

@media (max-width: 1024px) {
  .yfa-main-wrapper .singlst-r,
  .yst-page-layout .singlst-r,
  .yro-page-layout .singlst-r,
  .combined-page-layout .singlst-r {
    width: 100% !important;
    min-width: 100% !important;
    padding-left: 0 !important;
    border-left: none !important;
  }
  .photoalbum-main-slider {
    background: transparent !important;
    box-shadow: none !important;
  }
}

/* Планшеты: схлопываем макеты страниц в колонку и растягиваем модальное окно карты */
@media (max-width: 1024px) {
  .combined-page-layout,
  .yst-page-layout,
  .yro-page-layout,
  .yfa-main-wrapper {
    flex-direction: column !important;
    gap: 20px !important;
  }
  .yfa-main-wrapper {
    padding-left: 14px !important;
    padding-right: 14px !important;
    box-sizing: border-box !important;
  }
  .combined-page-layout .combined-main-content,
  .yst-page-layout .yst-main-content,
  .yro-page-layout .yro-main-content,
  .yfa-main-wrapper .yfa-container,
  .yfa-content,
  .yfa-sections-cards {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 auto !important;
  }
  .combined-modal-content {
    width: 100% !important;
    height: 100vh !important;
    max-width: 100% !important;
    margin: 0 !important;
    border-radius: 0 !important;
  }
  .combined-modal-content h3 {
    border-radius: 0 !important;
  }
  .combined-filter-panel {
    width: calc(100% - 20px);
    right: 10px;
    left: 10px;
  }
}

/* Стилизация строки метаданных новости (дата, комментарии, просмотры) */
.anoter-content-date {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  margin-top: 6px !important;
  margin-bottom: 8px !important;
  font-family: 'Open Sans', sans-serif !important;
  font-size: 13px !important;
  color: #888888 !important;
  line-height: 1 !important;
}

.anoter-content-date .art-st_date {
  display: inline-flex !important;
  align-items: center !important;
  line-height: 1 !important;
}

.art-st_com, .art-st_view {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  margin: 0 !important;
  line-height: 1 !important;
  font-size: 13px !important;
  color: #888888 !important;
}

.art-st_com svg, .art-st_view svg {
  width: 15px !important;
  height: 15px !important;
  min-width: 15px !important;
  min-height: 15px !important;
  fill: currentColor !important;
  color: #888888 !important;
  display: inline-block !important;
  vertical-align: middle !important;
  flex-shrink: 0 !important;
  margin: 0 !important;
}

.art-st_com span, .art-st_view span {
  display: inline-block !important;
  line-height: 1 !important;
}

/* Исправление верстки новостей в сайдбаре */
.singlst-r .art-post3 {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start !important;
  gap: 12px !important;
  text-decoration: none !important;
  margin-bottom: 16px !important;
  height: auto !important;
}

.singlst-r .art-st3-l {
  width: 110px !important;
  min-width: 110px !important;
  max-width: 110px !important;
  height: 74px !important;
  flex: 0 0 110px !important;
  display: block !important;
  border-radius: 0 !important;
  overflow: hidden !important;
}

.singlst-r .art-st3-l img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

.singlst-r .art-st3-r {
  flex: 1 !important;
  min-width: 0 !important;
  display: block !important;
}

.singlst-r .art-down {
  padding-top: 0 !important;
}

.singlst-r .art-down__title3 {
  font-size: 14px !important;
  line-height: 1.3 !important;
  margin-top: 0 !important;
  margin-bottom: 4px !important;
}

.singlst-r .anoter-content-date {
  font-size: 11px !important;
  gap: 8px !important;
}

/* Исправление сплюснутой кнопки "Забронировать" в шапке */
.header-l3-c__book-btn.btn-v4 {
  padding: 0 !important;
  line-height: 41px !important;
  height: 41px !important;
  box-sizing: border-box !important;
}
.header-l3-c__book-btn.btn-v4:hover {
  color: #fff !important;
  background: #d10b0b !important;
}

/* Кнопка "Онлайн заявка" в сайдбаре / контактах */
.r_btn.btn-v4 {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 40px;
    border: 1px solid #E02B2B;
    border-radius: 4px;
    background-color: #FFFFFF;
    color: #1D1D1F;
    font-family: 'Open Sans', sans-serif;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.r_btn.btn-v4:hover {
    background-color: #E02B2B;
    color: #FFFFFF;
}

.header-l3-c {
  height: auto !important;
  opacity: 1 !important;
  padding: 10px 20px !important;
}

.header-l3-c__phone-btn,
.header-l3-c__whatsapp-btn,
.header-l3-c__telegram-btn {
  color: #fff !important;
}

/* --- Стили модальных окон и форм (Этап 9) --- */
.place-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 999999 !important;
  align-items: center;
  justify-content: center;
  padding: 15px;
  box-sizing: border-box;
  overflow-y: auto;
}

.place-modal.is-active,
.place-modal.active {
  display: flex !important;
}

.place-modal-inner {
  position: relative;
  background: #fff;
  border-radius: 12px;
  padding: 25px 30px;
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  animation: modalFadeIn 0.25s ease-out;
}

.place-modal-inner.modal-lg {
  max-width: 720px;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: translateY(-15px); }
  to { opacity: 1; transform: translateY(0); }
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 18px;
  background: none;
  border: none;
  font-size: 28px;
  line-height: 1;
  color: #888;
  cursor: pointer;
  transition: color 0.2s;
}

.modal-close:hover {
  color: #333;
}

.place-modal-title {
  font-size: 22px;
  font-weight: 700;
  color: #1d1d1f;
  margin-bottom: 20px;
  text-align: center;
}

.yeisk-order-form, .place-suggest-form, .review-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-row {
  display: flex;
  gap: 12px;
}

.form-row > * {
  flex: 1;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-section-title {
  font-size: 14px;
  font-weight: 600;
  color: #444;
  margin: 0;
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
}

.checkbox-grid label, .radio-group label {
  font-size: 13px;
  color: #333;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.radio-group {
  display: flex;
  gap: 15px;
  margin-bottom: 6px;
}

.counter-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
/* Спиннер загрузки для кнопки "Загрузить еще" */
@keyframes almSpinner {
  to { transform: rotate(360deg); }
}
.alm-spinner {
  display: inline-block !important;
  width: 14px !important;
  height: 14px !important;
  border: 2px solid rgba(0, 0, 0, 0.2) !important;
  border-top-color: currentColor !important;
  border-radius: 50% !important;
  animation: almSpinner 0.6s linear infinite !important;
  margin-right: 8px !important;
  vertical-align: middle !important;
  flex-shrink: 0 !important;
}

/* Анимация плавного появления подгруженных новостей */
@keyframes postFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.ajax-wpr .art-st3.new-loaded {
  animation: postFadeIn 0.35s cubic-bezier(0.4, 0, 0.2, 1) forwards !important;
}

.counter {
  display: inline-flex;
  align-items: center;
  border: 1px solid #ccc;
  border-radius: 6px;
  overflow: hidden;
  width: fit-content;
}

.counter-btn {
  background: #f0f0f0;
  border: none;
  width: 32px;
  height: 32px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
}

.counter-btn:hover {
  background: #e0e0e0;
}

.counter-value {
  padding: 0 12px;
  font-weight: 600;
  min-width: 30px;
  text-align: center;
}

.price-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.price-input-wrap input {
  padding-right: 24px;
}

.currency-symbol {
  position: absolute;
  right: 10px;
  color: #888;
  font-weight: bold;
}

.consent-text {
  font-size: 11px;
  color: #888;
  text-align: center;
  margin-top: 4px;
}

/* Оповещения об успешной отправке / ошибке */
.form-alert-msg {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.4;
  margin-bottom: 10px;
}

.form-alert-msg.success {
  background: #e6f4ea;
  color: #137333;
  border: 1px solid #ceebe0;
}

.form-alert-msg.error {
  background: #fce8e6;
  color: #c5221f;
  border: 1px solid #fad2cf;
}

/* =====================================================
   PRO-FORM — страницы /dobavit-zhile/ и /zabronirovat-zhile/
   ===================================================== */

/* --- Общий контейнер формы --- */
.pro-form-wrapper {
  margin-top: 30px;
}

.pro-form {
  max-width: 580px;
  margin: 0;
  font-family: 'Open Sans', sans-serif;
  color: #212529;
}

/* --- Отступы между полями --- */
.pro-form .form-group {
  margin-bottom: 15px;
}

/* --- Заголовки секций --- */
.pro-form .form-section-title {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 12px;
  margin-top: 0;
  color: #6c757d;
}

/* --- Поля ввода --- */
.pro-form input[type="text"],
.pro-form input[type="tel"],
.pro-form input[type="date"],
.pro-form input[type="email"],
.pro-form input[type="password"],
.pro-form select,
.pro-form textarea,
.pro-form .form-group input,
.pro-form .form-group textarea,
.pro-form .form-group select {
  display: block;
  width: 100%;
  padding: 12px 16px;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: #212529;
  background-color: #EFF0F1;
  background-clip: padding-box;
  border: 1px solid transparent !important;
  border-radius: 6px;
  transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
  box-sizing: border-box;
}

.pro-form input:focus,
.pro-form select:focus,
.pro-form textarea:focus {
  border-color: transparent !important;
  outline: 0 !important;
  box-shadow: 0 0 0 3px rgba(13, 110, 253, .25) !important;
}

/* --- Select --- */
.pro-form select {
  -webkit-appearance: none;
  appearance: none;
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path fill="none" stroke="%23212529" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="m4 6 4 4 4-4"/></svg>');
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 14px;
}

.pro-form select:invalid,
.pro-form select.placeholder-shown {
  color: #6c757d;
}

.pro-form select option {
  color: #212529;
}

/* --- Placeholder цвет --- */
.pro-form ::-webkit-input-placeholder { color: #6c757d; opacity: 1; }
.pro-form ::-moz-placeholder { color: #6c757d; opacity: 1; }
.pro-form :-ms-input-placeholder { color: #6c757d; opacity: 1; }
.pro-form ::placeholder { color: #6c757d; opacity: 1; }

/* --- Textarea --- */
.pro-form textarea {
  min-height: 120px;
  resize: vertical;
}

/* --- Двухколоночный ряд --- */
.pro-form .form-row {
  display: flex;
  gap: 20px;
  margin-bottom: 15px;
}

.pro-form .form-row > * {
  flex: 1;
}

/* --- Чекбоксы в сетке --- */
.pro-form .checkbox-grid {
  display: grid;
  grid-template-columns: repeat(3, max-content);
  gap: 10px 24px;
  margin-bottom: 4px;
}

.pro-form .checkbox-grid label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1.2;
  color: #212529;
}

.pro-form .checkbox-grid input[type="checkbox"] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  padding: 0;
  margin: 0;
  width: 16px !important;
  height: 16px !important;
  min-width: 16px !important;
  min-height: 16px !important;
  max-width: 16px !important;
  max-height: 16px !important;
  background-color: #EFF0F1;
  border: none;
  border-radius: 3px;
  flex-shrink: 0;
  flex-grow: 0;
  display: block;
  cursor: pointer;
}

.pro-form .checkbox-grid input[type="checkbox"]:checked {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath stroke='%23000' stroke-width='2.2' fill='none' d='M3 9l3 3 7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 10px 10px;
}

.pro-form .checkbox-grid input[type="checkbox"]:focus {
  outline: none !important;
  box-shadow: none !important;
}

.pro-form input.wpcf7-date:not([type="date"]) {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231D1D1F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'%3E%3C/rect%3E%3Cline x1='16' y1='2' x2='16' y2='6'%3E%3C/line%3E%3Cline x1='8' y1='2' x2='8' y2='6'%3E%3C/line%3E%3Cline x1='3' y1='10' x2='21' y2='10'%3E%3C/line%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 12px center !important;
  background-size: 16px 16px !important;
  padding-right: 36px !important;
}

/* --- Плейсхолдеры для <input type="date"> --- */
.zilye-form-container .yeisk-order-form input.wpcf7-date[type="date"],
.yeisk-order-form input.wpcf7-date[type="date"],
.pro-form input[type="date"] {
  position: relative !important;
}
.pro-form .date-wrap {
  position: relative;
}


/* --- Счётчики +/- (переопределяем старые модальные стили) --- */
.pro-form .counter-wrap {
  flex: 1;
}

.pro-form .counter {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  background: none;
  border: none;
  padding: 0;
}

.pro-form .counter-btn {
  flex: 0 0 26px;
  height: 26px;
  width: 26px;
  border: none;
  background-color: #EFF0F1;
  border-radius: 3px;
  font-size: 0;
  color: transparent;
  cursor: pointer;
  background-repeat: no-repeat;
  background-position: center;
}

.pro-form .counter-btn.minus {
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path d="M4 8h8" stroke="%23212529" stroke-width="1.5" stroke-linecap="round"/></svg>');
  background-size: 15px;
}

.pro-form .counter-btn.plus {
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path d="M8 4v8M4 8h8" stroke="%23212529" stroke-width="1.5" stroke-linecap="round"/></svg>');
  background-size: 15px;
}

.pro-form .counter-value {
  flex: 1 1 auto;
  min-width: 80px;
  height: 26px;
  text-align: center;
  font-size: 18px;
  font-weight: normal;
  color: #212529;
  background-color: #EFF0F1;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

/* --- Поля цены с символом валюты --- */
.pro-form .price-input-wrap {
  position: relative;
  display: block;
}

.pro-form .price-input-wrap .currency-symbol {
  position: absolute;
  right: 16px;
  top: 13px;
  font-size: 16px;
  color: #6c757d;
  font-weight: normal;
}

.pro-form .price-input-wrap input {
  padding-right: 35px;
}

/* --- Кнопка отправки --- */
.pro-form button[type="submit"] {
  width: 100%;
  padding: 14px;
  background-color: #0d6efd;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color .2s;
  margin-top: 8px;
}

.pro-form button[type="submit"]:hover {
  background-color: #0b5ed7;
  color: #fff;
}

/* --- Текст согласия --- */
.pro-form .consent-text {
  font-size: 13px;
  color: #6c757d;
  text-align: center;
  margin-top: 16px;
}

/* --- Загрузчик файлов (.dobavit-zhile) --- */
.custom-file-upload {
  background: transparent;
  border: none;
  padding: 0 0 20px 0;
  position: relative;
}

.upload-button-wrapper {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 10px;
  height: 45px;
}

.upload-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #eff0f1;
  border: none;
  border-radius: 8px;
  padding: 10px 18px;
  font-size: 18px;
  line-height: 1;
  color: #111827;
  cursor: pointer;
  transition: background-color .2s, transform .1s;
}

.upload-button:hover {
  background-color: #e1e2e3;
}

.upload-button:active,
.upload-button.clicking {
  opacity: 0.7;
  transform: translateY(1px);
}

.upload-button svg {
  flex-shrink: 0;
  width: 28px !important;
  height: 28px !important;
  display: block;
  transform: translateY(-2px);
}

.file-previews {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  width: 100%;
}

.file-preview {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  background: transparent;
  border: none;
  aspect-ratio: 1 / 1;
}

.file-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.file-remove {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.file-preview:hover .file-remove {
  opacity: 1;
}

.file-remove svg {
  width: 28px !important;
  height: 28px !important;
  display: block;
}

/* --- Мобильная адаптация pro-form --- */
@media (max-width: 480px) {
  .pro-form .form-row {
    gap: 8px;
  }

  .pro-form .counter-value {
    min-width: 60px;
  }

  .pro-form .counter {
    gap: 4px;
  }

  .pro-form .counter-btn {
    flex: 0 0 22px;
    height: 22px;
    width: 22px;
  }

  .pro-form .form-section-title {
    font-size: 14px;
    margin-bottom: 8px;
  }

  .pro-form .checkbox-grid {
    grid-template-columns: repeat(2, max-content);
  }

  .file-previews {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) and (min-width: 481px) {
  .pro-form .counter-value {
    min-width: 80px;
  }

  .pro-form .form-row {
    gap: 12px;
  }

  .pro-form .counter {
    gap: 6px;
  }
}

/* =====================================================
   FAQ ACCORDION — /voprosy-i-otvety/
   ===================================================== */

.faq-accordion {
  margin-top: 24px;
}

.faq-item {
  border: 1px solid #e2e2e2;
  border-radius: 6px;
  margin-bottom: 10px;
  background: #eee;
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}

.faq-item--open {
  background: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-size: 16px;
  font-weight: 500;
  color: #444;
  line-height: 1.4;
  transition: color 0.2s;
}

.faq-question:hover {
  color: #037fff;
}

.faq-item--open .faq-question {
  color: #222;
}

.faq-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: #444;
  transition: transform 0.3s ease;
}

.faq-item--open .faq-icon {
  transform: rotate(180deg);
  color: #037fff;
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}

.faq-item--open .faq-answer {
  grid-template-rows: 1fr;
}

.faq-answer__inner {
  overflow: hidden;
  background: #fff;
}

.faq-answer__inner p {
  padding: 4px 20px 20px 20px;
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: #444;
}

@media (max-width: 480px) {
  .faq-question {
    font-size: 14px;
    padding: 14px 16px;
  }

  .faq-answer__inner p {
    padding: 4px 16px 16px 16px;
    font-size: 14px;
  }
}

/* Показываем дату публикации и счетчики в мега-меню "Жилье" (переопределяем скрытие темы) */
.menu-dop3 .menu-lv3__wr1 .anoter-content-date,
.menu-dop3 .menu-lv3__wr2 .anoter-content-date {
  display: flex !important;
}

/* Слайдер рекомендуемого в мега-меню на чистом CSS/JS */
.menu-lv3-l {
  position: relative !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

.menu-lv3-r {
  position: relative !important;
  overflow: hidden !important;
  z-index: 2 !important;
  box-sizing: border-box !important;
}

.menu-lv3__wr1 {
  position: relative !important;
  overflow: hidden !important;
  width: 100% !important;
  max-width: 427px !important;
  box-sizing: border-box !important;
}

.menu-lv3__wr1in {
  display: flex !important;
  position: relative !important;
  width: 100% !important;
  gap: 0 !important;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

.menu-lv3__wr1 .art-st {
  display: block !important;
  width: 100% !important;
  min-width: 100% !important;
  max-width: 427px !important;
  flex: 0 0 100% !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* Мегаменю определяется настройкой пункта, а не ID из старой базы. */
@media (min-width: 577px) {
  #primary-menu > .menu-item-has-mega { position: static; }
  #primary-menu > .menu-item-has-mega > .sub-menu { width: 100%; }
  #primary-menu > .menu-item-has-mega:hover > .sub-menu,
  #primary-menu > .menu-item-has-mega:focus-within > .sub-menu {
    left: 0;
    display: flex;
    flex-direction: row;
  }
  #primary-menu > .menu-item-has-children:focus-within > .sub-menu { left: 0; }
  #primary-menu > .menu-item-has-mega > .sub-menu {
    box-shadow: 0 8px 25px rgba(0,0,0,0.1) !important;
    border-top: 1px solid rgba(0,0,0,0.06) !important;
    background: #fff !important;
    margin-top: 0 !important;
    padding-top: 8px !important;
    border-radius: 8px !important;
    overflow: hidden !important;
  }
  #primary-menu > .menu-item-mega-only > .sub-menu > .menu-lv3 { width: 100%; }
}

/* Кнопки-стрелочки для слайдера */
.menu-slider-prev, .menu-slider-next {
  position: absolute;
  top: 124px; /* По центру превью-картинки (высота 248px) */
  transform: translateY(-50%);
  z-index: 1000;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.6) !important;
  color: white !important;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  outline: none;
  padding: 0;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
.menu-slider-prev:hover, .menu-slider-next:hover {
  background-color: rgba(0, 0, 0, 0.85) !important;
  transform: translateY(-50%) scale(1.05);
}

/* Симметричные отступы стрелок слайдера от краёв фотографии */
.menu-slider-prev {
  left: 20px !important;
}
.menu-slider-next {
  right: 27px !important;
}

/* Иконки стрелок */
.menu-slider-prev::before {
  content: "";
  display: block;
  width: 10px;
  height: 10px;
  border-left: 2px solid white;
  border-bottom: 2px solid white;
  transform: rotate(45deg);
  margin-left: 4px;
}
.menu-slider-next::before {
  content: "";
  display: block;
  width: 10px;
  height: 10px;
  border-right: 2px solid white;
  border-top: 2px solid white;
  transform: rotate(45deg);
  margin-right: 4px;
}

/* --- Нейтрализация конфликтов стилей places.css для модалки онлайн-заявки (#modal-order-zilye) --- */
#modal-order-zilye .place-modal-inner {
  background: #fff !important;
  padding: 24px 28px !important;
  border-radius: 12px !important;
  max-width: 540px !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25) !important;
}

#modal-order-zilye .yeisk-order-form {
  gap: 0 !important;
}

#modal-order-zilye .form-group {
  margin-bottom: 10px !important;
}

#modal-order-zilye .wpcf7-form-control-wrap {
  margin-bottom: 0 !important;
}

#modal-order-zilye .yeisk-order-form input[type="text"],
#modal-order-zilye .yeisk-order-form input[type="tel"],
#modal-order-zilye .yeisk-order-form input[type="date"],
#modal-order-zilye .yeisk-order-form input[type="email"] {
  background-color: #EFF0F1 !important;
  border: 1px solid transparent !important;
  border-radius: 6px !important;
  color: #212529 !important;
  padding: 12px 16px !important;
  font-size: 16px !important;
  height: auto !important;
  line-height: 1.5 !important;
  box-sizing: border-box !important;
}

#modal-order-zilye input[type="hidden"] {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
}

#modal-order-zilye .form-row {
  display: flex !important;
  flex-direction: row !important;
  gap: 12px !important;
}

#modal-order-zilye .form-row > * {
  flex: 1 !important;
}

#modal-order-zilye .counter-wrap {
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
}

#modal-order-zilye .counter {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 8px !important;
  width: 100% !important;
}

#modal-order-zilye .counter-btn {
  width: 26px !important;
  height: 26px !important;
  background-color: #EFF0F1 !important;
  border-radius: 3px !important;
  color: transparent !important;
  font-size: 0 !important;
  border: none !important;
  padding: 0 !important;
  cursor: pointer !important;
}
#modal-order-zilye .counter-btn.minus {
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path d="M4 8h8" stroke="%23212529" stroke-width="1.5" stroke-linecap="round"/></svg>') !important;
  background-size: 15px !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
}
#modal-order-zilye .counter-btn.plus {
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path d="M8 4v8M4 8h8" stroke="%23212529" stroke-width="1.5" stroke-linecap="round"/></svg>') !important;
  background-size: 15px !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
}
#modal-order-zilye .counter-value {
  background-color: #EFF0F1 !important;
  color: #212529 !important;
  font-size: 18px !important;
  width: auto !important;
  min-width: 120px !important;
  height: 26px !important;
  border-radius: 3px !important;
}

#modal-order-zilye .checkbox-grid input[type="checkbox"] {
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  background-color: #EFF0F1 !important;
  border: none !important;
  border-radius: 3px !important;
  width: 16px !important;
  height: 16px !important;
  min-width: 16px !important;
  min-height: 16px !important;
  max-width: 16px !important;
  max-height: 16px !important;
  display: block !important;
  cursor: pointer !important;
  padding: 0 !important;
  margin: 0 !important;
}
#modal-order-zilye .checkbox-grid input[type="checkbox"]:checked {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath stroke='%23000' stroke-width='2.2' fill='none' d='M3 9l3 3 7-7'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: 10px 10px !important;
}

#modal-order-zilye .order-checkbox input[type="checkbox"] {
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  background-color: #F8F9FA !important;
  border: 1px solid #ccc !important;
  border-radius: 3px !important;
  width: 16px !important;
  height: 16px !important;
  min-width: 16px !important;
  min-height: 16px !important;
  display: block !important;
  padding: 0 !important;
  margin: 0 !important;
}
#modal-order-zilye .order-checkbox input[type="checkbox"]:checked {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath stroke='%23000' stroke-width='2.2' fill='none' d='M3 9l3 3 7-7'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: 10px 10px !important;
}

.pro-form .radio-group input[type="radio"] {
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  background-color: #EFF0F1 !important;
  border: none !important;
  border-radius: 50% !important;
  width: 16px !important;
  height: 16px !important;
  min-width: 16px !important;
  min-height: 16px !important;
  display: inline-block !important;
  padding: 0 !important;
  margin: 0 !important;
  vertical-align: middle !important;
  cursor: pointer !important;
}
.pro-form .radio-group input[type="radio"]:checked {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='4' fill='%23007aff'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
}

#modal-order-zilye .price-input-wrap input {
  background-color: #F8F9FA !important;
  border: 1px solid #ccc !important;
  border-radius: 6px !important;
  padding: 12px 16px !important;
  padding-right: 35px !important;
}

/* --- Предотвращение растягивания и искажения контентных изображений на мобильных устройствах --- */
.art-st-img2 img,
.menu-lv3__img-wr img,
.menu-dop-slider img,
.anoter-content-img img,
img[width="427"][height="248"] {
  object-fit: cover !important;
  object-position: center !important;
}
/* --- Верхняя синяя плашка (header-l4 и top_menu) --- */
.header-l4 {
  background: var(--color1, #0077ff);
  min-height: 38px;
}
.header-l4 .header-l4-in {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: nowrap !important;
  min-height: 38px;
}
.header-l4 #top_menu {
  flex: 1 1 auto !important;
  min-width: 0 !important;
}
.header-l4 .top_menu ul {
  display: flex !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  gap: 8px !important;
}
.header-l4 .top_menu ul > li {
  display: inline-flex !important;
  align-items: center !important;
  margin: 0 !important;
  padding: 0 !important;
  flex-shrink: 0 !important;
}
.header-l4 .top_menu a {
  font-family: 'Open Sans', sans-serif !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
  white-space: nowrap !important;
  color: #ffffff !important;
  padding: 7px 12px !important;
  display: inline-flex !important;
  align-items: center !important;
  text-decoration: none !important;
  transition: opacity 0.2s ease, color 0.2s ease !important;
}
.header-l4 .top_menu a:hover {
  opacity: 0.85 !important;
}
.header-l4 .header-mes {
  display: inline-flex !important;
  align-items: center !important;
  padding: 7px 10px !important;
  margin: 0 0 0 6px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #fff !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  vertical-align: middle !important;
}
.header-l4 .header-mes a {
  font-family: 'Open Sans', sans-serif !important;
  color: #fff !important;
  text-decoration: none !important;
  white-space: nowrap !important;
}
.header-l4 .header-mes a:hover {
  text-decoration: underline !important;
}

/* --- Адаптация главной страницы и шапки под планшеты (768px - 1024px) --- */
@media (min-width: 768px) and (max-width: 1024px) {
  /* Перестроение контейнера контента и сайдбара */
  .singlst {
    flex-direction: column !important;
    gap: 0 !important;
  }
  .singlst-l {
    width: 100% !important;
    border-right: none !important;
    padding-right: 0 !important;
    margin-bottom: 40px !important;
  }
  .singlst-r {
    width: 100% !important;
    min-width: auto !important;
    border-top: 2px solid #eee !important;
    padding-top: 30px !important;
  }

  /* Перестроение плиток на главной */
  .mtwo-in {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    grid-template-rows: auto !important;
    gap: 12px !important;
  }
  .mtwo-in.plitki-ready {
    margin-top: 40px !important;
  }
  .mtwo-in .art-st2 {
    grid-row: auto !important;
    width: 100% !important;
    max-height: none !important;
  }
  .mtwo-in .art-st2:first-child {
    grid-column: 1 / -1 !important;
    grid-row: auto !important;
  }
  .mtwo-in .art-st2 > a {
    height: auto !important;
  }
  .mtwo-in .art-st-img2 {
    aspect-ratio: 427 / 248 !important;
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    overflow: hidden !important;
  }
  .mtwo-in .art-st2:first-child .art-st-img2 {
    aspect-ratio: auto !important;
    height: auto !important;
  }
  .mtwo-in .art-st-img2 img {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    object-fit: cover !important;
  }
  .mtwo-in .art-st2:first-child .art-st-img2 img {
    height: auto !important;
    max-height: none !important;
  }

  /* Шрифты заголовков плиток на планшетах */
  .mtwo-in .art-st2:first-child .art-down__title2 {
    font-size: 24px !important;
    line-height: 1.25 !important;
    font-weight: 500 !important;
    bottom: 30px !important;
  }
  .mtwo-in .art-st2:not(:first-child) .art-down__title2 {
    font-size: 15px !important;
    line-height: 1.3 !important;
    bottom: 24px !important;
  }

  /* Перестроение сеток (новости, статьи, экскурсии) */
  .sbk1 .mthree-in.grid-container.col-2,
  .sbk3 .mthree-in.grid-container.col-2,
  .sbk3 .mfive-in.grid-container.col-2 {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px !important;
    display: grid !important;
  }
  .sbk1 .mthree-inr.grid-container.col-1,
  .sbk3 .mthree-inr.grid-container.col-1,
  .sbk5 .ajax-wpr.grid-container.col-1,
  .singlst-l .ajax-wpr.grid-container.col-1 {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px !important;
    display: grid !important;
  }

  /* Карточки в mthree-inr (sbk1/sbk3) — вертикальный вид на планшете */
  .sbk1 .mthree-inr .art-post3,
  .sbk3 .mthree-inr .art-post3 {
    flex-direction: column !important;
    gap: 0 !important;
    height: 100% !important;
  }
  .sbk1 .mthree-inr .art-st3-l,
  .sbk3 .mthree-inr .art-st3-l {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: 160px !important;
    max-height: 160px !important;
    overflow: hidden !important;
    flex: none !important;
    border-radius: 0 !important;
  }
  .sbk1 .mthree-inr .art-st3-l img,
  .sbk3 .mthree-inr .art-st3-l img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }
  .sbk1 .mthree-inr .art-st3-r,
  .sbk3 .mthree-inr .art-st3-r {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding: 8px 0 0 0 !important;
  }
  /* Фикс строки просмотров/комментариев — не уезжает за пределы */
  .sbk1 .mthree-inr .anoter-content-date,
  .sbk3 .mthree-inr .anoter-content-date {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 8px !important;
    margin-top: auto !important;
    margin-bottom: 0 !important;
    height: auto !important;
    line-height: 1.4 !important;
  }
  .sbk1 .mthree-inr .art-st_com,
  .sbk1 .mthree-inr .art-st_view,
  .sbk3 .mthree-inr .art-st_com,
  .sbk3 .mthree-inr .art-st_view {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    height: auto !important;
    margin: 0 !important;
  }

  /* Карточки заведений (Клубы и кафе) - 4 колонки на планшетах */
  .msix-in.grid-container.col-4 {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 15px !important;
    display: grid !important;
  }
  .msix-i {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    aspect-ratio: 427 / 248 !important;
    overflow: hidden !important;
  }
  .msix-i img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }
  .msix-i__title {
    position: absolute !important;
    left: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    text-align: center !important;
    z-index: 2 !important;
  }

  /* Меню категорий на планшетах */
  .header-l5-in {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    justify-content: center !important;
  }
  .header-l5-in > * {
    flex: 0 0 calc(25% - 6px) !important;
    min-width: 100px !important;
  }

  /* Шапка сайта на планшетах */
  .header-l3-in {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 16px !important;
    padding-top: 15px !important;
    padding-bottom: 15px !important;
  }
  .header-l3__img {
    display: none !important;
  }
  .header-text2,
  .header-text3 {
    display: none !important;
  }
  .site-branding {
    margin: 0 auto !important;
    text-align: center !important;
  }
  .header-l3-c {
    margin: 0 auto !important;
    width: 346px !important;
    opacity: 1 !important;
    position: relative !important;
  }







  /* --- Карточки статей/новостей .art-st3 на планшетах --- */

  /* Блок 1: .ajax-wpr — вертикальные карточки (фото сверху, текст снизу) */
  .sbk5 .ajax-wpr.grid-container.col-1 .art-post3,
  .singlst-l .ajax-wpr.grid-container.col-1 .art-post3 {
    flex-direction: column !important;
    gap: 0 !important;
  }
  .sbk5 .ajax-wpr.grid-container.col-1 .art-st3-l,
  .singlst-l .ajax-wpr.grid-container.col-1 .art-st3-l {
    width: 100% !important;
    max-width: 100% !important;
    height: 200px !important;
    max-height: 200px !important;
    overflow: hidden !important;
  }
  .sbk5 .ajax-wpr.grid-container.col-1 .art-st3-l img,
  .singlst-l .ajax-wpr.grid-container.col-1 .art-st3-l img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }
  .sbk5 .ajax-wpr.grid-container.col-1 .art-st3-r,
  .singlst-l .ajax-wpr.grid-container.col-1 .art-st3-r {
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Блок 2: .singlst-r__bk3 .mthree-in — родитель в колонку, главная карточка на всю ширину */
  .singlst-r__bk3 .mthree-in {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
    width: 100% !important;
  }
  /* Главная большая карточка .art-st — на всю ширину */
  .singlst-r__bk3 .mthree-in > article.art-st {
    width: 100% !important;
  }
  .singlst-r__bk3 .mthree-in > article.art-st .art-st-img {
    height: 240px !important;
    max-height: 240px !important;
    width: 100% !important;
    overflow: hidden !important;
  }
  .singlst-r__bk3 .mthree-in > article.art-st .art-st-img img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }
  /* .mthree-inr на всю ширину под главной карточкой */
  .singlst-r__bk3 .mthree-inr {
    width: 100% !important;
  }

  /* Блок 2: .singlst-r__bk3 .mthree-inr — сетка 2 колонки, вертикальные карточки */
  .singlst-r__bk3 .mthree-inr.grid-container.col-1 {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px !important;
  }
  .singlst-r__bk3 .mthree-inr .art-post3 {
    flex-direction: column !important;
    gap: 0 !important;
    margin-bottom: 0 !important;
  }
  .singlst-r__bk3 .mthree-inr .art-st3-l {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: 150px !important;
    max-height: 150px !important;
    overflow: hidden !important;
    flex: none !important;
  }
  .singlst-r__bk3 .mthree-inr .art-st3-l img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }
  .singlst-r__bk3 .mthree-inr .art-st3-r {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  /* --- Футер на планшетах --- */

  /* Сброс сломанного margin:-110px из скомпилированного ассета */
  .custom-footer-container {
    margin: 0 auto !important;
    padding: 48px 32px 64px 32px !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Общая сетка: лого-колонка и колонки меню — вертикально */
  .custom-footer-grid {
    flex-direction: column !important;
    gap: 32px !important;
  }

  /* Лого-колонка на всю ширину */
  .footer-logo-column {
    width: 100% !important;
  }
  .footer-logo {
    width: auto !important;
    max-width: 240px !important;
    height: auto !important;
  }
  .footer-tagline {
    max-width: 100% !important;
  }

  /* Контактные карточки — вертикально */
  .footer-contact-cards {
    flex-direction: column !important;
    gap: 12px !important;
  }
  .footer-contact-card {
    width: 100% !important;
    min-height: 56px !important;
    padding: 12px 16px !important;
    justify-content: flex-start !important;
    box-sizing: border-box !important;
  }
  .footer-contact-card.address,
  .footer-contact-card.email,
  .footer-contact-card.phone {
    width: 100% !important;
  }
  .footer-contact-card span {
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* Колонки меню — 2x2 на планшете */
  .footer-menu-columns {
    margin-left: 0 !important;
    width: 100% !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 24px 16px !important;
  }
  .footer-menu-column {
    flex: 1 1 calc(50% - 16px) !important;
    margin-left: 0 !important;
  }

  /* Нижняя полоса */
  .footer-divider,
  .footer-bottom-divider {
    width: 100% !important;
    max-width: 100% !important;
  }
  .footer-bottom {
    max-width: 100% !important;
    width: 100% !important;
  }
}

/* Standalone login/registration occupy the viewport and scroll on short screens. */
body.auth-fullscreen main#primary.auth-page {
  width: 100%;
  max-width: none;
  height: auto;
  min-height: 100vh;
  min-height: 100svh;
  box-sizing: border-box;
  padding: 32px 20px !important;
  margin: 0;
  align-items: center;
}

body.auth-page-body .profile-page {
  padding-top: 24px !important;
}

/* ============================================================
   Страницы авторизации: /register/ /login/
   ============================================================ */
.auth-page {
  min-height: 70vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 60px 20px;
  background: #fff;
}
.auth-container {
  width: 100%;
  max-width: 460px;
}
.auth-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 32px rgba(0,0,0,.09);
  padding: 40px 40px 48px;
}
.auth-card__logo {
  text-align: center;
  margin-bottom: 20px;
}
.auth-card__logo img {
  max-width: 160px;
  height: auto;
}
.auth-card__title {
  font-size: 24px;
  font-weight: 700;
  color: #1d1d1f;
  text-align: center;
  margin: 0 0 6px;
}
.auth-card__sub {
  font-size: 14px;
  color: #888;
  text-align: center;
  margin: 0 0 28px;
}
.auth-card__sub a {
  color: #037fff;
  text-decoration: none;
}
.auth-card__sub a:hover {
  text-decoration: underline;
}

/* Ошибки / успех */
.auth-errors {
  background: #fff3f3;
  border: 1px solid #fcc;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 20px;
}
.auth-error {
  color: #c0392b;
  font-size: 14px;
  margin: 0 0 4px;
}
.auth-error:last-child { margin-bottom: 0; }
.auth-success {
  background: #eaffea;
  border: 1px solid #b2dfb2;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 20px;
  color: #2d7a2d;
  font-size: 14px;
}

/* Форма */
.auth-form { display: flex; flex-direction: column; gap: 18px; }
.auth-field { display: flex; flex-direction: column; gap: 6px; }
.auth-field label {
  font-size: 13px;
  font-weight: 600;
  color: #555;
}
.auth-field input {
  height: 44px;
  border: 1.5px solid #dde1e7;
  border-radius: 8px;
  padding: 0 14px;
  font-size: 15px;
  color: #1d1d1f;
  background: #fafbfc;
  transition: border-color .2s;
  outline: none;
  width: 100%;
  box-sizing: border-box;
}
.auth-field input:focus {
  border-color: #037fff;
  background: #fff;
}
.auth-field input:disabled {
  background: #f2f2f2;
  color: #999;
  cursor: not-allowed;
}
.auth-field__hint {
  font-size: 12px;
  color: #aaa;
}
.auth-field__pass {
  position: relative;
  display: flex;
  align-items: center;
}
.auth-field__pass input {
  padding-right: 44px;
}
.auth-pass-toggle {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  cursor: pointer;
  color: #aaa;
  padding: 0;
  display: flex;
  align-items: center;
}
.auth-pass-toggle:hover { color: #037fff; }

.auth-submit {
  height: 48px;
  background: #037fff;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, transform .1s;
  margin-top: 4px;
}
.auth-submit:hover { background: #0263cc; }
.auth-submit:active { transform: scale(.98); }
.auth-submit--sm {
  height: 40px;
  font-size: 14px;
  margin-top: 8px;
}

/* ============================================================
   Страница профиля /profile/
   ============================================================ */
.profile-page {
  background: #fff;
  min-height: 70vh;
  padding: 24px 20px 60px;
}
.profile-container {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* Шапка профиля */
.profile-header {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #fff;
  border-radius: 12px;
  padding: 24px 28px;
  box-shadow: 0 2px 16px rgba(0,0,0,.07);
}
.profile-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #037fff;
  color: #fff;
  font-size: 28px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.profile-header__info { flex: 1; min-width: 0; }
.profile-header__name {
  font-size: 20px;
  font-weight: 700;
  color: #1d1d1f;
  margin: 0 0 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.profile-header__email {
  font-size: 14px;
  color: #888;
  margin: 0;
}
.profile-logout-btn {
  flex-shrink: 0;
  padding: 8px 18px;
  border: 1.5px solid #dde1e7;
  border-radius: 8px;
  font-size: 14px;
  color: #555;
  text-decoration: none;
  transition: border-color .2s, color .2s;
}
.profile-logout-btn:hover {
  border-color: #c0392b;
  color: #c0392b;
}

/* Сетка карточек */
.profile-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.profile-card {
  background: #fff;
  border-radius: 12px;
  padding: 28px;
  box-shadow: 0 2px 16px rgba(0,0,0,.07);
}
.profile-card__title {
  font-size: 17px;
  font-weight: 700;
  color: #1d1d1f;
  margin: 0 0 20px;
}

/* История заявок */
.profile-orders {
  background: #fff;
  border-radius: 12px;
  padding: 28px;
  box-shadow: 0 2px 16px rgba(0,0,0,.07);
}
.profile-orders__list { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.profile-order-item {
  display: grid;
  grid-template-columns: 130px 1fr auto auto;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid #eee;
  border-radius: 8px;
  font-size: 14px;
}
.profile-order-item__date { color: #888; white-space: nowrap; }
.profile-order-item__name { font-weight: 600; color: #1d1d1f; }
.profile-order-item__dates { color: #888; white-space: nowrap; }
.profile-order-item__status {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.profile-order-item__status--new      { background: #e8f0ff; color: #037fff; }
.profile-order-item__status--processed { background: #fff8e1; color: #f57c00; }
.profile-order-item__status--done     { background: #e8f5e9; color: #2e7d32; }

/* Планшет */
@media (max-width: 1024px) {
  .profile-grid { grid-template-columns: 1fr; }
  .profile-order-item { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .auth-card { padding: 28px 20px 36px; }
  .profile-header { flex-direction: column; align-items: flex-start; gap: 12px; }
  .profile-logout-btn { align-self: flex-start; }
  .profile-order-item { grid-template-columns: 1fr; gap: 6px; }
}

/* ============================================================
   Блок авторизации в боковой панели гамбургера
   ============================================================ */
.mobile-auth-block {
  margin-top: auto;
  padding: 20px 0 28px;
  border-top: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mobile-auth-block__name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 4px;
}
.mobile-auth-btn {
  display: block;
  text-align: center;
  padding: 11px 16px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all .2s;
}
.mobile-auth-btn:hover { opacity: .85; }
.mobile-auth-btn--login {
  background: #037fff;
  color: #fff;
}
.mobile-auth-btn--register {
  background: transparent;
  color: #037fff;
  border: none;
  text-decoration: underline;
  padding: 8px 16px;
}
.mobile-auth-btn--register:hover {
  background: none;
  color: #0056b3;
  opacity: 1;
}
.mobile-auth-btn--profile {
  background: #f1f5f9;
  color: #1e293b;
  border: 1px solid #cbd5e1;
}
.mobile-auth-btn--profile:hover {
  background: #e2e8f0;
}
.mobile-auth-btn--logout {
  background: none;
  color: #ef4444;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 0;
  text-align: left;
}
.mobile-auth-btn--logout:hover { color: #dc2626; }

/* --- Адаптация шапки и быстрого меню под мобильные устройства (< 768px) --- */
/* Единые правила кнопки и панели меню для экранов до 1024 px. */
@media (max-width: 1024px) {
  .header-l2 {
    display: none !important;
  }
  .mobile-hamburger-btn {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    gap: 5px !important;
    width: 40px !important;
    height: 40px !important;
    background: none !important;
    border: none !important;
    cursor: pointer !important;
    padding: 8px !important;
    flex-shrink: 0 !important;
    order: -1 !important;
    margin-right: 10px !important;
  }
  .mobile-hamburger-btn .hamburger-line {
    display: block !important;
    height: 2px !important;
    width: 100% !important;
    background: #fff !important;
    transition: .3s !important;
    border-radius: 2px !important;
  }
  .mobile-hamburger-btn.active .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg) !important;
  }
  .mobile-hamburger-btn.active .hamburger-line:nth-child(2) {
    opacity: 0 !important;
  }
  .mobile-hamburger-btn.active .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg) !important;
  }
  .mobile-menu-overlay {
    display: block !important;
  }
  .header-l4 .header-mes {
    display: none !important;
  }
}

@media (max-width: 767px) {






  /* Скрываем второстепенные пункты меню, оставляя только 4 приоритетных */
  .header-l4 .top_menu ul > li {
    display: none !important;
  }
  .header-l4 .top_menu #menu-item-40,
  .header-l4 .top_menu #menu-item-342,
  .header-l4 .top_menu #menu-item-73,
  .header-l4 .top_menu #menu-item-72 {
    display: flex !important;
  }

  /* Правильно позиционируем элементы в плашке */
  .header-l4 .header-l4-in {
    display: flex !important;
    justify-content: flex-start !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
  }
  .header-l4 #top_menu {
    flex: 1 !important;
    min-width: 0 !important;
  }
  .header-l4 .top_menu ul {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 4px !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
  }
  .header-l4 .top_menu ul > li {
    flex: 1 1 auto !important;
    max-width: 25% !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }
  .header-l4 .top_menu ul > li a {
    font-size: 11px !important;
    font-weight: 600 !important;
    padding: 4px 2px !important;
    line-height: 1.2 !important;
    color: #fff !important;
    text-align: center !important;
    white-space: normal !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    min-height: 32px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}

/* ============================================================
   Личный кабинет: Дизайн из сниппета 2441
   ============================================================ */
/* ============================================================
   Личный кабинет: Дизайн из сниппета 2441
   ============================================================ */
.yersk-cabinet-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 30px;
  align-items: flex-start;
  margin-top: 10px;
  width: 100%;
}
.cabinet-sidebar {
  background: #ffffff;
  border-radius: 6px;
  border: 1px solid #eef2f6;
  padding: 30px 20px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}
.cabinet-user-card {
  text-align: center;
  margin-bottom: 25px;
}
.user-avatar-wrap {
  width: 100px;
  height: 100px;
  margin: 0 auto 16px auto;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #007bff;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.user-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cabinet-user-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: #1D1D1F;
  margin: 0 0 6px 0;
}
.user-role {
  font-size: 12px;
  font-weight: 600;
  background-color: #e0f2fe;
  color: #0369a1;
  padding: 4px 10px;
  border-radius: 12px;
  display: inline-block;
}
.cabinet-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}
.cabinet-menu li {
  margin-bottom: 8px;
}
.cabinet-menu li a {
  display: block;
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 600;
  color: #475569;
  text-decoration: none;
  border-radius: 6px;
  transition: background-color 0.2s, color 0.2s;
}
.cabinet-menu li a:hover {
  background-color: #f1f5f9;
  color: #007bff;
}
.cabinet-menu li a .yersk-menu-icon {
  transition: transform 0.2s ease-in-out;
}
.cabinet-menu li a:hover .yersk-menu-icon {
  transform: scale(1.1);
}
.cabinet-menu li a.active {
  background-color: #007bff;
  color: #ffffff;
}
.cabinet-menu .menu-divider {
  height: 1px;
  background-color: #e2e8f0;
  margin: 16px 0;
}
.cabinet-menu li a.admin-panel-link {
  color: #059669;
  background-color: #ecfdf5;
  border: 1px solid #d1fae5;
}
.cabinet-menu li a.admin-panel-link:hover {
  background-color: #d1fae5;
}
.cabinet-menu li a.logout-link {
  color: #dc2626;
}
.cabinet-menu li a.logout-link:hover {
  background-color: #fef2f2;
}

.js-cabinet-fav-badge,
.cabinet-menu li a .js-cabinet-fav-badge,
.cabinet-menu li a:hover .js-cabinet-fav-badge,
.cabinet-menu li a.active .js-cabinet-fav-badge {
  background-color: #E63946 !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 11px !important;
  line-height: 1 !important;
  padding: 3px 7px !important;
  border-radius: 9999px !important;
  border: none !important;
  display: inline-block;
}

.cabinet-content {
  background: #ffffff;
  border-radius: 6px;
  border: 1px solid #eef2f6;
  padding: 40px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.02);
  min-height: 480px;
  box-sizing: border-box;
}
.cabinet-content h2 {
  font-size: 24px;
  font-weight: 600;
  color: #1D1D1F;
  margin-top: 0;
  margin-bottom: 30px;
  padding-bottom: 12px;
  border-bottom: 2px solid #f1f5f9;
}
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #1D1D1F;
  margin-bottom: 8px;
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"] {
  width: 100%;
  padding: 12px 16px;
  font-size: 15px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
  font-family: inherit;
}
.form-group input:focus {
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.15);
}
.form-row-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.btn {
  display: block;
  width: 100%;
  padding: 13px;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  border-radius: 6px;
  cursor: pointer;
  border: none;
  transition: background-color 0.2s, transform 0.1s;
  box-sizing: border-box;
  text-decoration: none;
}
.btn-primary {
  background-color: #007bff;
  color: #ffffff;
}
.btn-primary:hover {
  background-color: #0069d9;
}
.btn-primary:active {
  transform: scale(0.98);
}
.btn-logout-action {
  background-color: #f3f4f6;
  color: #dc2626;
  border: 1px solid #e5e7eb;
}
.btn-logout-action:hover {
  background-color: #fee2e2;
}

.yersk-profile-only-layout {
  max-width: 600px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 6px;
  border: 1px solid #eef2f6;
  box-shadow: 0 4px 15px rgba(0,0,0,0.02);
  overflow: hidden;
}

/* Карточка истории заявок */
.profile-orders-card {
  margin-top: 32px;
  max-width: 100% !important;
}

/* Стили истории заявок */
.profile-orders__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.profile-order-item {
  display: grid;
  grid-template-columns: 140px 1fr 180px 100px;
  gap: 16px;
  align-items: center;
  padding: 16px 20px;
  border: 1px solid #f1f5f9;
  border-radius: 6px;
  background: #ffffff;
}
.profile-order-item__date {
  font-size: 13px;
  color: #94a3b8;
  font-weight: 500;
}
.profile-order-item__name {
  font-size: 15px;
  font-weight: 600;
  color: #1e293b;
}
.profile-order-item__dates {
  font-size: 14px;
  color: #64748b;
}
.profile-order-item__status {
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  display: inline-block;
}
.profile-order-item__status--new {
  background-color: #fef3c7;
  color: #d97706;
}
.profile-order-item__status--processed {
  background-color: #e0f2fe;
  color: #0369a1;
}
.profile-order-item__status--done {
  background-color: #d1fae5;
  color: #065f46;
}

/* Адаптивность под планшеты и мобильные */
@media (max-width: 991px) {
  .yersk-cabinet-layout {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
  .form-row-grid {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
  }
  .cabinet-sidebar {
    padding: 24px !important;
  }
  .cabinet-content {
    padding: 30px !important;
    min-height: auto !important;
  }
}

@media (max-width: 767px) {
  .profile-page {
    padding: 24px 12px 60px !important;
  }
  .profile-card-content,
  .cabinet-content {
    padding: 20px !important;
  }
  .profile-order-item {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    padding: 16px !important;
  }
  .profile-order-item__status {
    align-self: flex-start;
  }
}

/* --- Планшеты (768-1024px): фиксированный стабильный отступ без прыжков --- */

/* ==========================================================================
   ПОБЛОЧНАЯ НАСТРОЙКА ДАТЫ (.anoter-content-date.text-color) И ЗАГОЛОВКОВ
   Специфичные селекторы (html body ...), исключающие каскадные конфликты
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. БЛОК .mthree-inr (карточки "Статьи о Ейске", подменю и мелкие списки)
   ГАРАНТИЯ: Заголовок вверху, дата (.anoter-content-date) прижата строго к НИЗУ картинки
   -------------------------------------------------------------------------- */
html body .mthree-inr .art-post3,
html body .mthree-inr.grid-container.col-1 .art-post3,
html body .sbk1 .mthree-inr .art-post3,
html body .sbk3 .mthree-inr .art-post3 {
  display: flex !important;
  align-items: stretch !important;
  width: 100% !important;
  min-height: 74px !important;
}

html body .mthree-inr .art-st3-l,
html body .mthree-inr.grid-container.col-1 .art-st3-l,
html body .sbk1 .mthree-inr .art-st3-l,
html body .sbk3 .mthree-inr .art-st3-l {
  height: 74px !important;
  min-height: 74px !important;
}

html body .mthree-inr .art-st3-r,
html body .mthree-inr .art-down,
html body .mthree-inr.grid-container.col-1 .art-st3-r,
html body .mthree-inr.grid-container.col-1 .art-down,
html body .sbk1 .mthree-inr .art-st3-r,
html body .sbk1 .mthree-inr .art-down,
html body .sbk3 .mthree-inr .art-st3-r,
html body .sbk3 .mthree-inr .art-down {
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  height: 74px !important;
  min-height: 74px !important;
  flex: 1 1 auto !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

html body .mthree-inr .art-down__title,
html body .mthree-inr .art-down__title3,
html body .mthree-inr .art-down__title3.text-color,
html body .mthree-inr.grid-container.col-1 .art-down__title,
html body .mthree-inr.grid-container.col-1 .art-down__title3,
html body .mthree-inr.grid-container.col-1 .art-down__title3.text-color,
html body .sbk1 .mthree-inr .art-down__title3.text-color,
html body .sbk3 .mthree-inr .art-down__title3.text-color {
  margin-top: 0 !important;
  padding-top: 0 !important;
  margin-bottom: 4px !important;
  transform: none !important;
}

html body .mthree-inr .anoter-content-date,
html body .mthree-inr .anoter-content-date.text-color,
html body .mthree-inr.grid-container.col-1 .anoter-content-date,
html body .mthree-inr.grid-container.col-1 .anoter-content-date.text-color,
html body .sbk1 .mthree-inr .anoter-content-date,
html body .sbk1 .mthree-inr .anoter-content-date.text-color,
html body .sbk3 .mthree-inr .anoter-content-date,
html body .sbk3 .mthree-inr .anoter-content-date.text-color {
  margin-top: auto !important;
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
  top: auto !important;
  bottom: 0 !important;
  position: relative !important;
  transform: none !important;
}

/* --------------------------------------------------------------------------
   2. БЛОК .singlst-r (Правый сайдбар на внутренних страницах)
   ГАРАНТИЯ: Заголовок вверху, дата (.anoter-content-date) прижата к НИЗУ картинки (74px)
   -------------------------------------------------------------------------- */
html body .singlst-r .art-post3 {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start !important;
  gap: 12px !important;
  text-decoration: none !important;
  margin-bottom: 20px !important;
  height: auto !important;
  min-height: 0 !important;
  width: 100% !important;
}

html body .singlst-r .art-st3-l {
  width: 100px !important;
  min-width: 100px !important;
  max-width: 100px !important;
  height: 68px !important;
  flex: 0 0 100px !important;
  display: block !important;
  border-radius: 0 !important;
  overflow: hidden !important;
}

html body .singlst-r .art-st3-r {
  flex: 1 !important;
  min-width: 0 !important;
  display: block !important;
  height: auto !important;
  min-height: 0 !important;
}

html body .singlst-r .art-down {
  display: block !important;
  height: auto !important;
  min-height: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin: 0 !important;
}

html body .singlst-r .art-down__title3,
html body .singlst-r .art-down__title3.text-color {
  font-size: 14px !important;
  line-height: 1.35 !important;
  margin-top: 0 !important;
  margin-bottom: 4px !important;
  padding-top: 0 !important;
  font-weight: 600 !important;
  color: #1e293b !important;
  transform: none !important;
}

html body .singlst-r .anoter-content-date,
html body .singlst-r .anoter-content-date.text-color {
  margin-top: 0 !important;
  margin-bottom: 6px !important;
  padding-bottom: 0 !important;
  font-size: 11px !important;
  color: #64748b !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  position: relative !important;
  transform: none !important;
  top: auto !important;
  bottom: auto !important;
}

/* Исправление отступа в .singlst-r__bk3 .mthree-in (.art-down): дата идет сразу под заголовком, текст сразу за датой */
html body .singlst-r__bk3 .art-down,
html body .singlst-r__bk3 .mthree-in .art-down {
  display: block !important;
  height: auto !important;
  min-height: 0 !important;
  flex: none !important;
}

/* Динамическая высота заголовка под размер текста (без фиксированных 44px) + отступ сверху */
html body .art-down__title,
html body .art-down__title.text-color,
html body .art-down__title2,
html body .art-down__title3,
html body .singlst-r .art-down__title,
html body .singlst-r .art-down__title.text-color,
html body .singlst-r__bk3 .art-down__title,
html body .singlst-r__bk3 .mthree-in .art-down__title {
  height: auto !important;
  min-height: 0 !important;
  margin-top: 10px !important;
  margin-bottom: 6px !important;
}

html body .singlst-r__bk3 .anoter-content-date,
html body .singlst-r__bk3 .anoter-content-date.text-color,
html body .singlst-r__bk3 .mthree-in .anoter-content-date,
html body .singlst-r__bk3 .mthree-in .anoter-content-date.text-color {
  margin-top: 4px !important;
  margin-bottom: 6px !important;
  top: 0 !important;
  bottom: auto !important;
  position: relative !important;
}

/* Гармоничный отступ заголовка и даты в выпадающем мега-меню шапки (блок "Рекомендуем") */
html body .menu-lv3bk .art-down,
html body .menu-lv3-1 .art-down,
html body .menu-lv3__wr1 .art-down,
html body .menu-lv3__wr1in .art-down {
  padding-top: 6px !important;
  margin-top: 0 !important;
}

html body .menu-lv3bk .art-down__title,
html body .menu-lv3bk .art-down__title.text-color,
html body .menu-lv3-1 .art-down__title,
html body .menu-lv3__wr1 .art-down__title,
html body .menu-lv3__wr1in .art-down__title,
html body .sub-menu .art-down__title {
  margin-top: 2px !important;
  margin-bottom: 4px !important;
  padding-top: 0 !important;
}

html body .menu-lv3bk .anoter-content-date,
html body .menu-lv3bk .anoter-content-date.text-color,
html body .menu-lv3-1 .anoter-content-date,
html body .menu-lv3-1 .anoter-content-date.text-color,
html body .menu-lv3__wr1 .anoter-content-date,
html body .menu-lv3__wr1 .anoter-content-date.text-color,
html body .menu-lv3__wr1in .anoter-content-date,
html body .menu-lv3__wr1in .anoter-content-date.text-color {
  top: 0 !important;
  margin-top: 4px !important;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
  position: relative !important;
}

html body .singlst-r__bk3 .anoter-content-text,
html body .singlst-r__bk3 .mthree-in .anoter-content-text,
html body .sbk1 .art-st .anoter-content-text,
html body .singlst-bk.sbk1 .art-st .anoter-content-text {
  margin-top: 4px !important;
  padding-top: 0 !important;
}

html body .singlst-r__bk3 .anoter-content-text p,
html body .singlst-r__bk3 .mthree-in .anoter-content-text p,
html body .sbk1 .art-st .anoter-content-text p,
html body .singlst-bk.sbk1 .art-st .anoter-content-text p {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

html body .sbk1 .art-st .anoter-content-date,
html body .singlst-bk.sbk1 .art-st .anoter-content-date {
  margin-bottom: 4px !important;
  transform: none !important;
}

/* --------------------------------------------------------------------------
   3. БЛОК .sbk5 / .ajax-wpr (Список публикаций Блога) — ИСКЛЮЧАЕТ .mthree-inr
   ГАРАНТИЯ: Картинка полноразмерная, дата ИДЁТ СТРОГО СЛЕДОМ за заголовком
   -------------------------------------------------------------------------- */
html body .sbk5:not(.mthree-inr) .art-down,
html body .ajax-wpr:not(.mthree-inr) .art-down {
  display: block !important;
  height: auto !important;
  min-height: 0 !important;
}

html body .sbk5:not(.mthree-inr) .art-down__title,
html body .sbk5:not(.mthree-inr) .art-down__title3,
html body .ajax-wpr:not(.mthree-inr) .art-down__title,
html body .ajax-wpr:not(.mthree-inr) .art-down__title3 {
  height: auto !important;
  min-height: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 4px !important;
}

html body .sbk5:not(.mthree-inr) .anoter-content-date,
html body .sbk5:not(.mthree-inr) .anoter-content-date.text-color,
html body .ajax-wpr:not(.mthree-inr) .anoter-content-date,
html body .ajax-wpr:not(.mthree-inr) .anoter-content-date.text-color {
  position: relative !important;
  top: 0 !important;
  bottom: auto !important;
  transform: none !important;
  margin-top: 6px !important;
  margin-bottom: 6px !important;
}

/* --------------------------------------------------------------------------
   4. БЛОК .sbk1 / .sbk3 (Вертикальные карточки новостей на главной)
   Поведение: Высота заголовка динамическая, дата идет сразу под заголовком
   -------------------------------------------------------------------------- */
.sbk1 .art-st .art-down__title,
.sbk3 .art-st .art-down__title,
.sbk1 .art-st .art-down__title.text-color,
.sbk3 .art-st .art-down__title.text-color {
  height: auto !important;
  min-height: 0 !important;
  margin-bottom: 4px !important;
}

.sbk1 .art-st .anoter-content-date,
.sbk3 .art-st .anoter-content-date,
.sbk1 .art-st .anoter-content-date.text-color,
.sbk3 .art-st .anoter-content-date.text-color {
  position: relative !important;
  top: 0 !important;
  transform: none !important;
  margin-top: 6px !important;
  margin-bottom: 6px !important;
}


/* ===== Серые карточки "Клубы и кафе" без объектов (сниппет 1470) ===== */
.msix-i.disabled {
    pointer-events: none;
    cursor: not-allowed;
    position: relative;
}
.msix-i.disabled img {
    filter: grayscale(100%) brightness(0.8);
    opacity: 0.7;
    transition: filter .3s, opacity .3s;
}
.msix-i.disabled .msix-i__title {
    color: #999;
}
/* Активные карточки — без ограничений */
/* ===== Убираем эффект обводки полей исключительно в блоке "Онлайн заявка" карточки жилья ===== */
.zilye-form-container .yeisk-order-form input[type="text"],
.zilye-form-container .yeisk-order-form input[type="tel"],
.zilye-form-container .yeisk-order-form input[type="date"],
.zilye-form-container .yeisk-order-form input[type="email"] {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background-color: #FFFFFF !important;
}

.zilye-form-container .yeisk-order-form input[type="text"]:focus,
.zilye-form-container .yeisk-order-form input[type="tel"]:focus,
.zilye-form-container .yeisk-order-form input[type="date"]:focus,
.zilye-form-container .yeisk-order-form input[type="email"]:focus {
    border: none !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(3, 127, 255, 0.25) !important;
}

.zilye-form-container .yeisk-order-form .order-checkbox input[type="checkbox"],
.zilye-form-container .yeisk-order-form .checkbox-grid input[type="checkbox"],
.zilye-form-container .yeisk-order-form .radio-group input[type="radio"] {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Пропорциональные изображения карточек на мобильных (<768px) */
@media (max-width: 767px) {
    .mfive-i__img {
        max-width: 100% !important;
        width: 100% !important;
        aspect-ratio: 427 / 248 !important;
        height: auto !important;
        max-height: none !important;
        overflow: hidden !important;
        position: relative !important;
    }
    .mfive-i__img img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }

    /* Главная карточка новости/статьи на мобильных */
    .sbk1 .mthree-in > .art-st .art-st-img,
    .singlst-bk .mthree-in > .art-st .art-st-img {
        width: 100% !important;
        max-width: 100% !important;
        aspect-ratio: 427 / 248 !important;
        height: auto !important;
        max-height: none !important;
        overflow: hidden !important;
    }
    .sbk1 .mthree-in > .art-st .art-st-img img,
    .singlst-bk .mthree-in > .art-st .art-st-img img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }

    /* Карточки категорий (Развлечения и отдых, Справочник туриста, Экскурсии) */
    .yst-category-grid,
    .yro-category-grid,
    .ypec-category-grid {
        gap: 14px !important;
    }
    .yst-category-card__image,
    .yro-category-card__image,
    .ypec-category-card__image,
    .yvos-tour-card__image {
        position: relative !important;
        height: auto !important;
        aspect-ratio: 16 / 9 !important;
        padding: 8px !important;
        box-sizing: border-box !important;
    }
    .yst-category-card__image img,
    .yro-category-card__image img,
    .ypec-category-card__image img,
    .yvos-tour-card__image img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        border-radius: 6px !important;
    }
    .yst-category-card__content,
    .yro-category-card__content,
    .ypec-category-card__content {
        padding: 10px 12px 52px 12px !important;
        gap: 6px !important;
    }
    .yst-category-card__title,
    .yro-category-card__title,
    .ypec-category-card__title {
        font-size: 18px !important;
        line-height: 1.3 !important;
        margin: 0 !important;
    }
    .yst-category-card__description,
    .yro-category-card__description,
    .ypec-category-card__description {
        font-size: 13.5px !important;
        line-height: 1.4 !important;
        -webkit-line-clamp: 3 !important;
        line-clamp: 3 !important;
    }
    .yst-category-card__button,
    .yro-category-card__button,
    .ypec-category-card__button {
        bottom: 12px !important;
        left: 12px !important;
        padding: 6px 14px !important;
        font-size: 13px !important;
    }
    .yvos-tour-card {
        min-height: auto !important;
    }

    /* Адаптивное пропорциональное масштабирование плиток на главной */
    .mtwo-in {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        grid-template-rows: auto !important;
        gap: 8px !important;
        margin-top: 28px !important; /* Убираем гигантский margin-top */
    }
    .mtwo-in .art-st2 {
        grid-row: auto !important;
        width: 100% !important;
        height: auto !important;
        max-height: none !important;
    }
    .mtwo-in .art-st2:first-child {
        grid-column: 1 / -1 !important;
        grid-row: auto !important;
    }
    .mtwo-in .art-post2 {
        height: auto !important;
        display: block !important;
    }
    .mtwo-in .art-st-img2 {
        aspect-ratio: 427 / 248 !important;
        width: 100% !important;
        height: auto !important;
        max-height: none !important;
        overflow: hidden !important;
    }
    .mtwo-in .art-st2:first-child .art-st-img2 {
        aspect-ratio: auto !important;
        height: auto !important;
    }
    .mtwo-in .art-st-img2 img {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        object-fit: cover !important; /* Переопределяет object-fit: fill */
    }
    .mtwo-in .art-st2:first-child .art-st-img2 img {
        height: auto !important;
        max-height: none !important;
    }

    /* Шрифты заголовков плиток на мобильных */
    .mtwo-in .art-st2:first-child .art-down__title2 {
        font-size: 21px !important;
        line-height: 1.25 !important;
        font-weight: 500 !important;
        bottom: 28px !important;
    }
    .mtwo-in .art-st2:not(:first-child) .art-down__title2 {
        font-size: 14px !important;
        line-height: 1.3 !important;
        bottom: 22px !important;
    }
}

/* Размеры шрифтов заголовков плиток на главной (десктоп) */
@media (min-width: 768px) {
    .mtwo-in .art-st2:first-child .art-down__title2 {
        font-size: 28px !important;
        line-height: 1.2 !important;
        font-weight: 500 !important;
        bottom: 34px !important;
    }
    .mtwo-in .art-st2:not(:first-child) .art-down__title2 {
        font-size: 15px !important;
        line-height: 1.25 !important;
        bottom: 24px !important;
    }
}

/* Стили заголовка модальной карты и переопределение закрытия (как в combined-modal) */
.yctp-map-modal-inner {
    display: flex !important;
    flex-direction: column !important;
    border-radius: 12px !important;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3) !important;
}

.yctp-map-modal-title {
    margin: 0 !important;
    padding: 20px 25px !important;
    background: linear-gradient(135deg, #037fff, #0366d6) !important;
    color: white !important;
    font-size: 20px !important;
    font-weight: 600 !important;
    border-radius: 12px 12px 0 0 !important;
    flex-shrink: 0 !important;
    font-family: 'Open Sans', sans-serif !important;
    line-height: 1.2 !important;
}

.yctp-map-modal-inner > #yctp-map-wrapper,
.yctp-map-modal-inner > .yctp-map-canvas {
    flex: 1 !important;
    height: auto !important;
}

.yctp-map-modal-inner #yctp-map-wrapper .yctp-map-canvas {
    height: 100% !important;
    width: 100% !important;
}

.yctp-map-modal-title.yctp-map-modal-title--red {
    background: #dc3545 !important;
}

.yctp-map-modal-inner .yctp-map-close {
    position: absolute !important;
    right: 20px !important;
    top: 15px !important;
    color: white !important;
    background: transparent !important;
    border: none !important;
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    font-size: 28px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: none !important;
    border-radius: 50% !important;
    transition: all 0.2s ease !important;
    line-height: 1 !important;
    padding: 0 !important;
    z-index: 10000 !important;
}

.yctp-map-modal-inner .yctp-map-close:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    color: white !important;
    transform: scale(1.1) !important;
}

/* Анимация мигания для веерных маркеров и полупрозрачность проекции */
@keyframes fanMarkerBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.45; }
}

.fan-marker-blink {
    animation: fanMarkerBlink 1.6s ease-in-out infinite !important;
}

.projection-yellow {
    opacity: 0.65 !important;
}

/* Позиционирование и скрытие модального окна карты по умолчанию */
.yctp-map-modal {
    position: fixed !important;
    inset: 0 !important;
    background: rgba(0,0,0,0.6) !important;
    z-index: 100000 !important;
    display: none;
}

.yctp-map-modal.active {
    display: block !important;
}

.yctp-map-modal-inner {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 90vw !important;
    max-width: 1200px !important;
    height: 85vh !important;
    max-height: 800px !important;
    margin: 0 !important;
    background: #fff !important;
    border-radius: 12px !important;
    overflow: hidden !important;
}

@media (max-width: 767px) {
    .yctp-map-modal-inner {
        width: 96vw !important;
        height: 92vh !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
    }
}

/* Fix z-index: .header-l5 (categories strip) is after .header-l2 (nav+dropdown) in DOM
   so it paints on top by default. We must give nav a higher z-index than .header-l5.
   CRITICAL: .header-wr must NOT have position+z-index (would create stacking context
   and trap the sub-menu inside it, making z-index relative comparisons useless). */

/* Nav wrapper — must stack above .header-l5 */
.header-l2 {
    position: relative;
    z-index: 200 !important;
}

/* Main navigation and its dropdowns */
.main-navigation {
    position: relative;
    z-index: 200 !important;
}

.main-navigation .sub-menu,
.main-navigation .menu-lv3,
.main-navigation .menu-dop3 {
    z-index: 99999 !important;
}

/* Categories strip — must be BELOW the dropdown */
.header-l5 {
    position: relative;
    z-index: 10 !important;
}

/* Inline maps must NOT override header stacking */
#property-map-section, #yctp-property-map, #combined-embedded-map, .yctp-inline-map {
    position: relative;
    z-index: 1 !important;
}

.leaflet-container:not(.yctp-map-modal .leaflet-container):not(.combined-modal .leaflet-container) {
    z-index: 1 !important;
}

/* Плавная, быстрая и изящная анимация категорий header-l5 при скролле (только ДЕСКТОП > 1024px) */
@media (min-width: 1025px) {
    .mcategory-i {
        transition: background-color 0.2s cubic-bezier(0.25, 1, 0.5, 1), color 0.2s cubic-bezier(0.25, 1, 0.5, 1), transform 0.2s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.2s cubic-bezier(0.25, 1, 0.5, 1) !important;
        border-radius: 0 !important;
    }

    .mcategory-i:hover {
        background: #d90429 !important;
        color: #ffffff !important;
        transform: translateY(-3px) scale(1.015);
        box-shadow: 0 4px 12px rgba(217, 4, 41, 0.25) !important;
    }

    .mcategory-i__img {
        display: block;
        width: 100%;
        height: 92px;
        max-height: 92px;
        opacity: 1;
        overflow: hidden;
        transform-origin: top center;
        transition: max-height 0.2s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.18s cubic-bezier(0.4, 0, 0.2, 1), transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), margin 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    }

    .mcategory-i__img img {
        transition: transform 0.25s cubic-bezier(0.25, 1, 0.5, 1);
    }

    .mcategory-i:hover .mcategory-i__img img {
        transform: scale(1.05);
    }

    #masthead.topmen .header-l5 .mcategory-i__img {
        display: block !important;
        max-height: 0 !important;
        opacity: 0 !important;
        transform: scaleY(0.6) !important;
        margin: 0 !important;
        overflow: hidden !important;
    }
}

/* ПЛАНШЕТЫ И МОБИЛЬНЫЕ (<= 1024px): шапка стационарна, header-l5 и картинки категорий НЕ скрываются ни при каком скролле */
@media (max-width: 1024px) {
    #primary,
    .site-main,
    main#primary,
    main#primary.site-main,
    main#primary.site-main:not(.auth-page):not(.profile-page):not(.auth-page-body) {
        transform: none !important;
        transition: none !important;
        padding-top: var(--page-top-gap, 10px) !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-top: 0 !important;
    }

    #masthead,
    #masthead.topmen {
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
    }

    #masthead,
    #masthead.topmen,
    .header-wr,
    #masthead.topmen .header-wr,
    .header-l5,
    #masthead .header-l5,
    #masthead.topmen .header-l5 {
        position: relative !important;
        top: auto !important;
        bottom: auto !important;
        left: auto !important;
        right: auto !important;
        z-index: 10 !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
        box-shadow: none !important;
    }

    /* Контейнер и шапка на планшетах (<= 1024px) */
    .container {
        max-width: 100% !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        box-sizing: border-box !important;
    }

    .header-l2,
    #masthead .header-l2,
    #masthead.topmen .header-l2,
    #primary-menu {
        display: none !important;
    }

    .header-l5,
    #masthead .header-l5,
    #masthead.topmen .header-l5,
    .header-l5-in,
    #masthead .header-l5-in,
    #masthead.topmen .header-l5-in {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
        justify-content: center !important;
        position: relative !important;
        transform: none !important;
        transition: none !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .mcategory-i,
    #masthead.topmen .header-l5 .mcategory-i {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        visibility: visible !important;
        opacity: 1 !important;
        height: auto !important;
        transform: none !important;
        transition: none !important;
    }

    .mcategory-title {
        text-align: center !important;
        width: 100% !important;
        margin-top: 4px !important;
    }

    .mcategory-i__img,
    #masthead.topmen .header-l5 .mcategory-i__img {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 100% !important;
        height: 85px !important;
        min-height: 85px !important;
        max-height: 85px !important;
        transform: none !important;
        transition: none !important;
        margin: 0 !important;
        overflow: hidden !important;
    }

    .mcategory-i__img img {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }
}

@media (max-width: 575px) {
    .mcategory-i__img,
    #masthead.topmen .header-l5 .mcategory-i__img {
        height: 60px !important;
        min-height: 60px !important;
        max-height: 60px !important;
    }
}

/* ISOLATION: video player and map sections must create their own stacking context
   so that absolutely-positioned children (.center-controls z-index:15, .video-title z-index:10 etc.)
   are trapped inside and cannot appear above the nav dropdown (z-index:99999 in page context).
   isolation:isolate is the clean modern way — no z-index change, just new SC. */
.video-section,
.video-container,
.uvideo-container,
.map-section,
#property-map-section {
    isolation: isolate;
}

/* ==========================================================================
   Единый стандарт хлебных крошек (Breadcrumbs) для ВСЕХ страниц сайта
   Гарантия одинаковых отступов, расстояний, высоты и размеров шрифта
   ========================================================================== */
#breadcrumbs,
.breadcrumbs,
.yst-breadcrumbs,
.yro-breadcrumbs,
.combined-breadcrumbs,
.yfa-breadcrumbs,
.dosug-single-breadcrumbs,
.yds-single-breadcrumbs,
.yctp-breadcrumbs {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 4px 6px !important;
  padding: 0 !important;
  font-family: inherit !important;
  font-size: 14.5px !important;
  line-height: 1.35 !important;
  font-weight: 400 !important;
  color: #888888 !important;
}

/* Сброс дублирующих верхних отступов контейнеров и заголовков под крошками */
.singlst {
  padding-top: 16px !important;
}
.singlst-l {
  padding-top: 0 !important;
}

/* Убираем правую полоску у singlst-l когда нет singlst-r (напр. страница новостей) */
.singlst-l:last-child,
.singlst:not(:has(.singlst-r)) .singlst-l {
  border-right: none !important;
  padding-right: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
}

/* Растягиваем карточки новостей во весь экран когда нет сайдбара */
.singlst:not(:has(.singlst-r)) .art-post3 {
  gap: 32px !important;
}
.singlst:not(:has(.singlst-r)) .art-st3-l {
  width: 420px !important;
  min-width: 420px !important;
  flex-shrink: 0 !important;
}
.singlst:not(:has(.singlst-r)) .art-st3 .art-st-img {
  max-width: 420px !important;
  max-height: 270px !important;
  height: 270px !important;
}
.singlst:not(:has(.singlst-r)) .art-st3-r {
  flex: 1 !important;
  width: auto !important;
}
.singlst:not(:has(.singlst-r)) .art-down__title3 {
  font-size: 24px !important;
}
.singlst:not(:has(.singlst-r)) .anoter-content-text {
  font-size: 15px !important;
  line-height: 1.6 !important;
}


.breadcrumbs + h1,
.breadcrumbs + .yctp-title,
#breadcrumbs + h1,
#breadcrumbs + .yctp-title,
.yctp-title,
.yfa-title,
.yst-category-header h1,
.yro-main-content h1,
.combined-page-header h1 {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

#breadcrumbs *,
.breadcrumbs *,
.yst-breadcrumbs *,
.yro-breadcrumbs *,
.combined-breadcrumbs *,
.yfa-breadcrumbs *,
.dosug-single-breadcrumbs *,
.yds-single-breadcrumbs *,
.yctp-breadcrumbs * {
  font-size: 14.5px !important;
  line-height: 1.35 !important;
  font-weight: 400 !important;
}

#breadcrumbs a,
.breadcrumbs a,
.yst-breadcrumbs a,
.yro-breadcrumbs a,
.combined-breadcrumbs a,
.yfa-breadcrumbs a,
.dosug-single-breadcrumbs a,
.yds-single-breadcrumbs a,
.yctp-breadcrumbs a {
  color: #1d1d1f !important;
  text-decoration: none !important;
  transition: color 0.2s ease !important;
}

#breadcrumbs a:hover,
.breadcrumbs a:hover,
.yst-breadcrumbs a:hover,
.yro-breadcrumbs a:hover,
.combined-breadcrumbs a:hover,
.yfa-breadcrumbs a:hover,
.dosug-single-breadcrumbs a:hover,
.yds-single-breadcrumbs a:hover,
.yctp-breadcrumbs a:hover {
  color: #037fff !important;
  text-decoration: underline !important;
}

#breadcrumbs span,
.breadcrumbs span,
.yst-breadcrumbs span,
.yro-breadcrumbs span,
.combined-breadcrumbs span,
.yfa-breadcrumbs span,
.dosug-single-breadcrumbs span,
.yds-single-breadcrumbs span,
.yctp-breadcrumbs span {
  color: #888888 !important;
}

@media (max-width: 767px) {
  #breadcrumbs,
  .breadcrumbs,
  .yst-breadcrumbs,
  .yro-breadcrumbs,
  .combined-breadcrumbs,
  .yfa-breadcrumbs,
  .dosug-single-breadcrumbs,
  .yds-single-breadcrumbs,
  .yctp-breadcrumbs {
    font-size: 13.5px !important;
    line-height: 1.35 !important;
  }

  .singlst {
    padding-top: 10px !important;
  }

  #breadcrumbs *,
  .breadcrumbs *,
  .yst-breadcrumbs *,
  .yro-breadcrumbs *,
  .combined-breadcrumbs *,
  .yfa-breadcrumbs *,
  .dosug-single-breadcrumbs *,
  .yds-single-breadcrumbs *,
  .yctp-breadcrumbs * {
    font-size: 13.5px !important;
    line-height: 1.35 !important;
  }
}

/* ==========================================================================
   Кнопка копирования телефона в шапке (Зелёный цвет + галочка)
   ========================================================================== */
.header-l3-c__phone-btn {
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease !important;
}
.header-l3-c__phone-btn.copied {
  background-color: #28a745 !important;
  color: #ffffff !important;
  transform: scale(1.03);
}
.header-l3-c__phone-btn.copied svg {
  stroke: #ffffff;
}

/* ==========================================================================
   Стильная кастомизация input[type="file"] (1-в-1 как в админке / медиатеке)
   ========================================================================== */
.profile-page input[type="file"],
.auth-page-body input[type="file"],
.admin-style-file-input {
  display: block !important;
  width: 100% !important;
  padding: 10px 14px !important;
  height: auto !important;
  background-color: #f8fafc !important;
  border: 2px dashed #cbd5e1 !important;
  border-radius: 10px !important;
  cursor: pointer !important;
  color: #475569 !important;
  font-size: 13px !important;
  transition: all 0.25s ease !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
  outline: none !important;
  margin-top: 6px !important;
}

.profile-page input[type="file"]:hover,
.auth-page-body input[type="file"]:hover,
.admin-style-file-input:hover {
  border-color: #037fff !important;
  background-color: #f0f7ff !important;
  box-shadow: 0 4px 12px rgba(3, 127, 255, 0.08) !important;
}

/* Стилизация кнопки "Выбрать файл" / "Обзор..." */
.profile-page input[type="file"]::file-selector-button,
.auth-page-body input[type="file"]::file-selector-button,
.admin-style-file-input::file-selector-button {
  background: linear-gradient(135deg, #037fff, #0266cc) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 6px !important;
  padding: 7px 16px !important;
  margin-right: 14px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  box-shadow: 0 2px 5px rgba(3, 127, 255, 0.2) !important;
}

.profile-page input[type="file"]::file-selector-button:hover,
.auth-page-body input[type="file"]::file-selector-button:hover,
.admin-style-file-input::file-selector-button:hover {
  background: linear-gradient(135deg, #0266cc, #0255b3) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 10px rgba(3, 127, 255, 0.3) !important;
}

/* Webkit префикс (Chrome, Safari, Edge, Opera) */
.profile-page input[type="file"]::-webkit-file-upload-button,
.auth-page-body input[type="file"]::-webkit-file-upload-button,
.admin-style-file-input::-webkit-file-upload-button {
  background: linear-gradient(135deg, #037fff, #0266cc) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 6px !important;
  padding: 7px 16px !important;
  margin-right: 14px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  box-shadow: 0 2px 5px rgba(3, 127, 255, 0.2) !important;
}

.profile-page input[type="file"]::-webkit-file-upload-button:hover,
.auth-page-body input[type="file"]::-webkit-file-upload-button:hover,
.admin-style-file-input::-webkit-file-upload-button:hover {
  background: linear-gradient(135deg, #0266cc, #0255b3) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 10px rgba(3, 127, 255, 0.3) !important;
}

/* Превью загружаемого аватара */
.avatar-preview-box {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.05);
}
.avatar-preview-box img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #037fff;
  box-shadow: 0 2px 8px rgba(3, 127, 255, 0.2);
}
.avatar-preview-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.avatar-preview-title {
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
}
.avatar-preview-size {
  font-size: 12px;
  color: #64748b;
}

/* ==========================================================================
   Адаптация страниц "Справочник туриста" и статических статей под мобильные
   ========================================================================== */

/* Чёрный цвет для всего текста и заголовков */
.singlst-l,
.entry-title,
.page-title,
h1.entry-title,
.entry-content,
.page-content,
.entry-content p,
.page-content p,
.entry-content li,
.page-content li,
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6,
.page-content h1,
.page-content h2,
.page-content h3,
.page-content h4,
.page-content h5,
.page-content h6 {
  color: #111111 !important;
}

@media (max-width: 991px) {
  .singlst {
    display: flex !important;
    flex-direction: column !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
    box-sizing: border-box !important;
  }
  .container > .singlst,
  .yctp-container > .singlst,
  .yctp-container .singlst,
  .home .singlst {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .singlst-l {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    margin-right: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;
    color: #111111 !important;
  }
  .singlst-r,
  .sidebar,
  aside.sidebar {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    margin-top: 32px !important;
    padding-left: 0 !important;
    box-sizing: border-box !important;
  }
}

@media (max-width: 768px) {
  .singlst {
    padding-left: 14px !important;
    padding-right: 14px !important;
    padding-top: 10px !important;
  }
  .container > .singlst,
  .yctp-container > .singlst,
  .yctp-container .singlst,
  .home .singlst {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .pro-form-wrapper,
  .pro-form,
  .place-suggest-form,
  .yeisk-order-form {
    padding: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .entry-title.page-title,
  h1.entry-title {
    font-size: 22px !important;
    line-height: 1.3 !important;
    color: #111111 !important;
    margin-top: 8px !important;
    margin-bottom: 16px !important;
    word-break: break-word !important;
  }

  .entry-content,
  .page-content {
    font-size: 15px !important;
    line-height: 1.6 !important;
    color: #111111 !important;
    overflow-x: hidden !important;
  }

  .entry-content p,
  .page-content p {
    font-size: 15px !important;
    line-height: 1.65 !important;
    color: #111111 !important;
    margin-bottom: 16px !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
  }

  .entry-content h2,
  .page-content h2 {
    font-size: 19px !important;
    line-height: 1.35 !important;
    color: #111111 !important;
    margin-top: 24px !important;
    margin-bottom: 12px !important;
    word-break: break-word !important;
  }

  .entry-content h3,
  .page-content h3 {
    font-size: 17px !important;
    line-height: 1.35 !important;
    color: #111111 !important;
    margin-top: 20px !important;
    margin-bottom: 10px !important;
    word-break: break-word !important;
  }

  /* Картинки внутри контента: квадратные без закруглений, обнуление float, центрирование */
  .entry-content img,
  .page-content img,
  .entry-content img[style*="float"],
  .page-content img[style*="float"],
  .entry-content img.alignleft,
  .entry-content img.alignright,
  .entry-content img.aligncenter,
  .entry-content img.alignnone,
  .page-content img.alignleft,
  .page-content img.alignright,
  .page-content img.aligncenter,
  .page-content img.alignnone,
  .entry-content .wp-caption,
  .page-content .wp-caption {
    float: none !important;
    display: block !important;
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
    margin: 16px auto !important;
    box-sizing: border-box !important;
    border-radius: 0 !important;
    clear: both !important;
  }

  /* Подписи к картинкам WP */
  .entry-content .wp-caption,
  .page-content .wp-caption {
    width: 100% !important;
  }
  .wp-caption-text {
    text-align: center !important;
    font-size: 13px !important;
    color: #555555 !important;
    margin-top: 6px !important;
  }

  /* Адаптивные таблицы внутри контента */
  .entry-content table,
  .page-content table {
    display: block !important;
    width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    margin: 16px 0 !important;
    border-collapse: collapse !important;
    color: #111111 !important;
  }

  /* Адаптация списков */
  .entry-content ul,
  .entry-content ol,
  .page-content ul,
  .page-content ol {
    padding-left: 20px !important;
    margin-bottom: 16px !important;
  }

  .entry-content li,
  .page-content li {
    font-size: 15px !important;
    line-height: 1.6 !important;
    color: #111111 !important;
    margin-bottom: 8px !important;
  }

  /* Дочерние карточки страниц */
  .page-children.grid-container {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
  }
  .page-child-card {
    width: 100% !important;
    box-sizing: border-box !important;
  }
}

@media (max-width: 480px) {
  .yfa-main-wrapper {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
  .singlst {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
  .container > .singlst,
  .yctp-container > .singlst,
  .yctp-container .singlst,
  .home .singlst {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .entry-title.page-title,
  h1.entry-title {
    font-size: 20px !important;
    color: #111111 !important;
  }
  .entry-content h2,
  .page-content h2 {
    font-size: 18px !important;
    color: #111111 !important;
  }
  .entry-content h3,
  .page-content h3 {
    font-size: 16px !important;
    color: #111111 !important;
  }
}

/* ==========================================================================
   Адаптация страницы "Новости" (/novosti/) под мобильные устройства
   ========================================================================== */

/* Убираем скругления фото в новостях */
#posts-list .art-st-img,
#posts-list .art-st-img img,
#posts-list .art-st3-l,
#posts-list .art-st3-l img,
.art-st3 .art-st-img,
.art-st3 .art-st-img img {
  border-radius: 0 !important;
}

/* Единственная горизонтальная разделительная линия между карточками */
#posts-list .art-post3 {
  border-bottom: none !important;
}
#posts-list .art-st3 {
  border-bottom: 1px solid #e2e8f0 !important;
  padding-bottom: 20px !important;
  margin-bottom: 0 !important;
}
#posts-list .art-st3:last-child {
  border-bottom: none !important;
  padding-bottom: 0 !important;
}

@media (max-width: 768px) {
  .singlst:not(:has(.singlst-r)) .art-post3,
  .singlst .art-post3,
  #posts-list .art-post3 {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    border-bottom: none !important;
  }

  #posts-list .art-st3-l {
    width: 100% !important;
    min-width: 100% !important;
    height: 200px !important;
    max-height: 220px !important;
    flex-shrink: 0 !important;
  }

  #posts-list .art-st3 .art-st-img {
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    max-height: 220px !important;
    object-fit: cover !important;
    border-radius: 0 !important;
  }

  .singlst:not(:has(.singlst-r)) .art-st3-r,
  .singlst .art-st3-r,
  #posts-list .art-st3-r {
    width: 100% !important;
  }

  .singlst:not(:has(.singlst-r)) .art-down__title3,
  .singlst .art-down__title3,
  #posts-list .art-down__title3 {
    font-size: 18px !important;
    line-height: 1.35 !important;
    margin-bottom: 8px !important;
    color: #111111 !important;
    word-break: break-word !important;
  }

  .singlst:not(:has(.singlst-r)) .anoter-content-text,
  .singlst .anoter-content-text,
  #posts-list .anoter-content-text {
    font-size: 14px !important;
    line-height: 1.5 !important;
    color: #334155 !important;
  }

  .alm-btn-wrap {
    margin-top: 20px !important;
    margin-bottom: 30px !important;
    text-align: center !important;
  }

  .alm-load-more-btn {
    width: 100% !important;
    padding: 14px !important;
    font-size: 15px !important;
    box-sizing: border-box !important;
  }
}

@media (max-width: 480px) {
  #posts-list .art-st3-l {
    height: 180px !important;
    max-height: 180px !important;
  }

  #posts-list .art-st3 .art-st-img {
    height: 180px !important;
    max-height: 180px !important;
    border-radius: 0 !important;
  }

  .singlst:not(:has(.singlst-r)) .art-down__title3,
  .singlst .art-down__title3,
  #posts-list .art-down__title3 {
    font-size: 17px !important;
  }
}

/* --- Адаптация под планшеты (769px - 1024px) --- */
@media (min-width: 769px) and (max-width: 1024px) {
  .singlst:not(:has(.singlst-r)) {
    padding-left: 20px !important;
    padding-right: 20px !important;
    box-sizing: border-box !important;
  }

  .singlst:not(:has(.singlst-r)) .art-post3 {
    display: flex !important;
    flex-direction: row !important;
    gap: 20px !important;
    align-items: flex-start !important;
  }

  .singlst:not(:has(.singlst-r)) .art-st3-l {
    width: 300px !important;
    min-width: 300px !important;
    height: 190px !important;
    max-height: 190px !important;
    flex-shrink: 0 !important;
  }

  .singlst:not(:has(.singlst-r)) .art-st3 .art-st-img {
    width: 100% !important;
    max-width: 300px !important;
    height: 190px !important;
    max-height: 190px !important;
    object-fit: cover !important;
    border-radius: 0 !important;
  }

  .singlst:not(:has(.singlst-r)) .art-st3-r {
    flex: 1 !important;
    width: auto !important;
  }

  .singlst:not(:has(.singlst-r)) .art-down__title3 {
    font-size: 20px !important;
    line-height: 1.35 !important;
    margin-bottom: 10px !important;
    color: #111111 !important;
  }

  .singlst:not(:has(.singlst-r)) .anoter-content-text {
    font-size: 14px !important;
    line-height: 1.55 !important;
    color: #334155 !important;
  }

  .alm-load-more-btn {
    width: 100% !important;
    max-width: 400px !important;
    margin: 0 auto !important;
    display: block !important;
    padding: 13px !important;
  }
}

/* Липкий правый сайдбар (.singlst-r) */
@media (min-width: 1025px) {
  .singlst {
    align-items: flex-start !important;
  }
  .singlst-r {
    position: sticky !important;
    align-self: flex-start !important;
  }
}

/* ==========================================================================
   ФИКС МОБИЛЬНОЙ ВЕРСИИ .mthree-inr В .sbk1 / .sbk3 ("Курортные новости Ейска", "Статьи о Ейске")
   Гарантирует пропорциональный вид карточек (превью 115x76px слева + текст справа),
   убирает плющение и резкую обрезку картинок до полос на мобильных экранах.
   ========================================================================== */
@media (max-width: 767px) {
  html body .sbk1 .mthree-inr .art-post3,
  html body .sbk3 .mthree-inr .art-post3,
  html body .mthree-inr .art-post3,
  html body .mthree-inr.grid-container.col-1 .art-post3 {
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch !important;
    gap: 12px !important;
    width: 100% !important;
    min-height: 76px !important;
    margin-bottom: 12px !important;
  }

  html body .sbk1 .mthree-inr .art-st3-l,
  html body .sbk3 .mthree-inr .art-st3-l,
  html body .mthree-inr .art-st3-l,
  html body .mthree-inr.grid-container.col-1 .art-st3-l {
    width: 115px !important;
    min-width: 115px !important;
    max-width: 115px !important;
    height: 76px !important;
    min-height: 76px !important;
    max-height: 76px !important;
    flex: 0 0 115px !important;
    border-radius: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
  }

  html body .sbk1 .mthree-inr .art-st3-l img,
  html body .sbk3 .mthree-inr .art-st3-l img,
  html body .mthree-inr .art-st3-l img,
  html body .mthree-inr .art-st-img img {
    width: 100% !important;
    height: 100% !important;
    max-height: 76px !important;
    object-fit: cover !important;
    object-position: center !important;
    border-radius: 0 !important;
    display: block !important;
  }

  html body .sbk1 .mthree-inr .art-st3-r,
  html body .sbk3 .mthree-inr .art-st3-r,
  html body .mthree-inr .art-st3-r,
  html body .mthree-inr.grid-container.col-1 .art-st3-r {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    width: auto !important;
    height: auto !important;
    min-height: 76px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  html body .sbk1 .mthree-inr .art-down__title3,
  html body .sbk3 .mthree-inr .art-down__title3,
  html body .mthree-inr .art-down__title3,
  html body .mthree-inr .art-down__title3.text-color {
    font-size: 14px !important;
    line-height: 1.35 !important;
    font-weight: 600 !important;
    color: #1d1d1f !important;
    margin: 0 0 4px 0 !important;
    padding: 0 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }

  html body .sbk1 .mthree-inr .anoter-content-date,
  html body .sbk3 .mthree-inr .anoter-content-date,
  html body .mthree-inr .anoter-content-date,
  html body .mthree-inr .anoter-content-date.text-color {
    font-size: 12px !important;
    color: #86868b !important;
    margin-top: auto !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 8px !important;
    line-height: 1.2 !important;
  }
}

/* ==========================================================================
   ОФОРМЛЕНИЕ КАРТОЧКИ СТАТЕЙ В САЙДБАРЕ (.singlst-r__bk3)
   ========================================================================== */
html body .singlst-r__bk3 .mthree-in > .art-st .art-st-img,
html body .singlst-r .mthree-in > .art-st .art-st-img {
  width: 100% !important;
  max-width: 100% !important;
  height: 180px !important;
  max-height: 180px !important;
  overflow: hidden !important;
  border-radius: 0 !important;
  background: #f5f5f7 !important;
  margin-bottom: 10px !important;
  display: block !important;
}

html body .singlst-r__bk3 .mthree-in > .art-st .art-st-img img,
html body .singlst-r .mthree-in > .art-st .art-st-img img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
  border-radius: 0 !important;
}

/* На телефоне крупное превью занимает ширину колонки без растягивания фото. */
@media (max-width: 767px) {
  html body .singlst-r__bk3 .mthree-in > .art-st .art-st-img,
  html body .singlst-r .mthree-in > .art-st .art-st-img {
    height: auto !important;
    max-height: none !important;
    aspect-ratio: 427 / 248;
  }
}

html body .singlst-r__bk3 .art-st.art-st--no-thumb .art-down,
html body .singlst-r .art-st.art-st--no-thumb .art-down {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

/* Более аккуратные и тонкие разделительные линии в сайдбаре популярных новостей */
html body .singlst-r .art-st3 {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
  padding-bottom: 16px !important;
  margin-bottom: 16px !important;
}
html body .singlst-r .art-st3:last-child {
  border-bottom: none !important;
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

/* Ограничение ширины заголовка статьи по горизонтали для улучшения читаемости */
html body .singlst-l .entry-title,
html body .singlst-l h1.entry-title {
  max-width: 720px !important;
  font-size: 26px !important;
  line-height: 1.3 !important;
  word-wrap: break-word !important;
  overflow-wrap: break-word !important;
}

html body .singlst-l .page-header,
html body .singlst-l header.page-header {
  margin-bottom: 14px !important;
}

html body .singlst-l .page-header:has(+ .page-featured-image) {
  margin-bottom: 20px !important;
}

html body .singlst-l .page-header .entry-title,
html body .singlst-l .page-header h1.entry-title {
  margin-bottom: 0 !important;
}

/* Сброс избыточных верхних отступов первого элемента в контенте страницы */
html body .singlst-l .entry-content > *:first-child,
html body .singlst-l .page-content > *:first-child,
html body .singlst-l .entry-content > p:first-child,
html body .singlst-l .page-content > p:first-child,
html body .entry-content > *:first-child,
html body .page-content > *:first-child,
.preview-content-body > *:first-child {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

html body .singlst-l .entry-header .entry-title,
html body .singlst-l .entry-header h1.entry-title {
  margin-bottom: 6px !important;
}

html body .singlst-l .ano-line,
html body .singlst-l .anoter-content-date {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

@media (max-width: 768px) {
  html body .singlst-l .entry-title,
  html body .singlst-l h1.entry-title {
    max-width: 100% !important;
    font-size: 20px !important;
  }

  html body .singlst-l .page-header,
  html body .singlst-l header.page-header {
    margin-bottom: 16px !important;
  }
}

/* Блок "Поделиться с друзьями" с SVG иконками */
html body .kartochka__item {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  margin-top: 24px !important;
  margin-bottom: 24px !important;
  border-top: 1px solid rgba(0, 0, 0, 0.08) !important;
  padding-top: 20px !important;
  width: 100% !important;
}

html body .kartochka__item span {
  font-size: 14px !important;
  font-weight: 600 !important;
  color: #475569 !important;
  margin-bottom: 4px !important;
  display: block !important;
}

html body .kartochka__social {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

html body .sharing-btn {
  display: block !important;
  width: 32px !important;
  height: 32px !important;
  border-radius: 50% !important;
  overflow: hidden !important;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08) !important;
  text-decoration: none !important;
}

html body .sharing-btn svg {
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  transform: none !important;
}

html body .sharing-btn:hover {
  transform: translateY(-2px) scale(1.05) !important;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.12) !important;
}

/* Иконки соцсетей в футере */
html body .footer-social-icons {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  margin-bottom: 25px !important;
}

html body .footer-social-icons a.footer-social-link {
  display: block !important;
  width: 32px !important;
  height: 32px !important;
  border-radius: 50% !important;
  overflow: hidden !important;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08) !important;
  text-decoration: none !important;
}

html body .footer-social-icons a.footer-social-link:hover {
  transform: translateY(-2px) scale(1.05) !important;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.12) !important;
}

html body .footer-social-icons a.footer-social-link svg {
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  transform: none !important;
}

/* Специальные стили для iPhone 5 (и других экранов шириной до 360px) */
@media screen and (max-width: 360px) {
  /* Точное центрирование плашки контактов в шапке */
  .header-l3-c {
    width: 100% !important;
    max-width: 290px !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
    padding: 10px !important;
  }

  .header-l3-c__title {
    font-size: 15px !important;
  }
  .header-l3-c__title-line {
    font-size: 14px !important;
  }

  /* Исправление заголовков разделов, чтобы текст не наползал друг на друга */
  .title-v1 {
    font-size: 16px !important;
  }
  .title-v1 span {
    padding: 6px 10px !important;
    font-size: 11px !important;
  }
  .title-v1__menu-i {
    margin-left: 8px !important;
    font-size: 11px !important;
  }
}

/* Единая ширина контейнеров для мест досуга и отдыха (ровно 1160px под размер header-l5-in) */
.ydms-container,
.dosug-single-container,
.yds-container,
.yds-single-container,
.yvos-container,
.otdyh-single,
.ypec-container,
.yro-container {
    width: 1160px !important;
    max-width: 1160px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;
}

@media (max-width: 1190px) {
    .ydms-container,
    .dosug-single-container,
    .yds-container,
    .yds-single-container,
    .yvos-container,
    .otdyh-single,
    .ypec-container,
    .yro-container {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}

/* Блок веб-камер в правом сайдбаре (.r_gallery) */
.r_gallery {
    display: flex;
    flex-direction: column;
}
.r_gallery-i-wr {
    display: block;
    text-decoration: none !important;
    color: #2c3e50 !important;
    padding-bottom: 12px;
    margin-bottom: 16px;
    border-bottom: 1px solid #e2e8f0;
}
.r_gallery-i-wr:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.r_gallery-i-wr .r_gallery-i {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 0 !important;
}
.r_gallery-i-wr .r_gallery-i__text {
    font-family: 'Open Sans', sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: #334155;
    text-align: center;
    margin-top: 8px;
    line-height: 1.35;
}
.r_gallery-i-wr:hover .r_gallery-i__text {
    color: #037fff;
}

/* ===== УЛУЧШЕННАЯ ТИПОГРАФИКА И РАЗДЕЛЕНИЕ АБЗАЦЕВ ===== */
.entry-content,
.page-content,
.property-full-description,
.page-text-content,
.single-post-content {
  font-size: 16px;
  line-height: 1.75 !important;
  color: #1e293b !important;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.entry-content::after,
.page-content::after,
.property-full-description::after,
.page-text-content::after,
.single-post-content::after {
  content: "";
  display: table;
  clear: both;
}

.entry-content p,
.page-content p,
.property-full-description p,
.page-text-content p,
.single-post-content p {
  margin-top: 0 !important;
  margin-bottom: 18px !important;
  line-height: 1.75 !important;
  color: #1e293b !important;
  background: transparent !important;
  background-color: transparent !important;
}

.entry-content ul,
.page-content ul,
.entry-content ol,
.page-content ol,
.entry-content li,
.page-content li {
  background: transparent !important;
  background-color: transparent !important;
}

.entry-content p:last-child,
.page-content p:last-child,
.property-full-description p:last-child,
.page-text-content p:last-child,
.single-post-content p:last-child {
  margin-bottom: 0 !important;
}

/* Схлопывание пустых параграфов без контента */
.entry-content p:empty,
.page-content p:empty {
  display: none !important;
}

.content-spacer {
  display: block !important;
  width: 100% !important;
  height: 20px !important;
  min-height: 20px !important;
  margin: 0 !important;
  padding: 0 !important;
}

.anoter-content-text {
  font-size: 14px;
  line-height: 1.6;
  color: #475569;
  margin-top: 8px;
}

.anoter-content-text p {
  margin-top: 0 !important;
  margin-bottom: 10px !important;
  line-height: 1.6 !important;
}

.anoter-content-text p:last-child {
  margin-bottom: 0 !important;
}

/* Заголовки контента */
.entry-content h2, .page-content h2,
.entry-content h3, .page-content h3,
.entry-content h4, .page-content h4 {
  margin-top: 28px !important;
  margin-bottom: 14px !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
  color: #0f172a !important;
}

.entry-content > div:not([class]),
.page-content > div:not([class]) {
  margin-top: 0 !important;
  margin-bottom: 18px !important;
  line-height: 1.75 !important;
  color: #1e293b !important;
}

/* Списки (маркированные и нумерованные) */
.entry-content ul,
.page-content ul,
.page-text-content ul,
.single-post-content ul {
  list-style-type: disc !important;
  padding-left: 26px !important;
  margin-top: 0 !important;
  margin-bottom: 18px !important;
}

.entry-content ol,
.page-content ol,
.page-text-content ol,
.single-post-content ol {
  list-style-type: decimal !important;
  padding-left: 26px !important;
  margin-top: 0 !important;
  margin-bottom: 18px !important;
}

.entry-content li,
.page-content li,
.page-text-content li,
.single-post-content li {
  display: list-item !important;
  margin-bottom: 6px !important;
  line-height: 1.65 !important;
  color: #1e293b !important;
  padding-left: 2px !important;
}

.entry-content li:last-child,
.page-content li:last-child {
  margin-bottom: 0 !important;
}

.entry-content ul ul,
.page-content ul ul,
.entry-content ol ul,
.page-content ol ul {
  list-style-type: circle !important;
  margin-top: 6px !important;
  margin-bottom: 0 !important;
}

/* Таблицы */
.entry-content table,
.page-content table,
.page-text-content table {
  width: 100% !important;
  border-collapse: collapse !important;
  margin: 20px 0 !important;
  font-size: 14.5px !important;
  line-height: 1.5 !important;
  border: 1px solid #cbd5e1 !important;
}

.entry-content table th,
.page-content table th {
  background: #f8fafc !important;
  font-weight: 600 !important;
  color: #0f172a !important;
  padding: 10px 14px !important;
  border: 1px solid #cbd5e1 !important;
  text-align: left !important;
}

.entry-content table td,
.page-content table td {
  padding: 9px 14px !important;
  border: 1px solid #cbd5e1 !important;
  color: #334155 !important;
}

.entry-content table tr:nth-child(even) td,
.page-content table tr:nth-child(even) td {
  background: #fcfcfd !important;
}

/* Цитаты */
.entry-content blockquote,
.page-content blockquote,
.page-text-content blockquote {
  border-left: 4px solid #3b82f6 !important;
  margin: 20px 0 !important;
  padding: 12px 18px !important;
  background: #eff6ff !important;
  color: #1e3a8a !important;
  font-style: italic !important;
  border-radius: 0 6px 6px 0 !important;
}

.entry-content blockquote p,
.page-content blockquote p {
  margin-bottom: 0 !important;
  color: #1e3a8a !important;
}

/* Картинки внутри контента */
.entry-content img,
.page-content img,
.page-text-content img {
  max-width: 100% !important;
  height: auto !important;
  border-radius: 6px !important;
}

.entry-content hr,
.page-content hr {
  border: 0 !important;
  height: 1px !important;
  background: #e2e8f0 !important;
  margin: 24px 0 !important;
}



/* Keep form fields inside their columns and preserve readable mobile rows. */
.yeisk-order-form .form-row > *, .place-suggest-form .form-row > *, .review-form .form-row > * { min-width: 0; }
.custom-file-upload .file-remove { border: 0; padding: 0; }
@media (max-width: 480px) {
  .pro-form .form-row, .review-form .form-row { flex-direction: column; }
  .pro-form .checkbox-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pro-form .checkbox-grid label { min-width: 0; overflow-wrap: anywhere; }
  .pro-form .checkbox-grid input[type="checkbox"] { flex-shrink: 0; }
}

.site-main .search-form { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.site-main .search-form input[type="search"] { box-sizing: border-box; min-width: 0; }
.file-remove:focus-visible { opacity: 1; }
.form-alert-msg { overflow-wrap: anywhere; }

/* Object cards in Leaflet popups. */
.yctp-map-popup-card { width: 240px; max-width: calc(100vw - 80px); text-align: left; font-family: 'Open Sans', sans-serif; }
.yctp-map-popup-card h4 { margin: 0 0 10px; color: #333; font-size: 16px; line-height: 1.4; text-align: left; overflow-wrap: anywhere; }
.yctp-map-popup-card .map-popup-row { display: flex; align-items: flex-start; gap: 8px; margin: 0 0 8px; color: #666; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.map-popup-icon { display: flex; align-items: center; justify-content: center; width: 20px; height: 20px; flex: 0 0 20px; }
.map-popup-icon svg { margin: 0 !important; flex-shrink: 0; }
.yctp-map-popup-card .map-popup-price { color: #ff6b35; font-weight: 600; }
.yctp-map-popup-card .map-popup-rating { color: #ff6b35; font-weight: 600; }
.yctp-map-popup-card .map-popup-details { display: inline-block; background: #037fff; color: #fff; padding: 8px 16px; text-decoration: none; border-radius: 4px; margin-top: 4px; font-size: 13px; }
.map-popup-venue .map-popup-details { background: #dc3545; }
.map-popup-delivery .map-popup-details { background: #616161; }
.map-popup-gallery { width: 100%; height: 150px; position: relative; overflow: hidden; border-radius: 6px; margin-bottom: 12px; background: #eee; touch-action: pan-y; }
.map-popup-gallery .map-popup-photo { display: block; width: 100%; height: 100%; object-fit: cover; }
.map-popup-gallery .map-popup-photo[hidden] { display: none; }
.map-popup-gallery button { position: absolute; top: 50%; transform: translateY(-50%); display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: rgba(29,29,31,.4); color: #fff; cursor: pointer; transition: background-color .3s ease; }
.map-popup-gallery button:hover { background: rgba(29,29,31,.7); }
.map-popup-gallery button:focus-visible, .map-popup-gallery:focus-visible { outline: 2px solid #037fff; outline-offset: 2px; }
.map-popup-prev { left: 1rem; }
.map-popup-next { right: 1rem; }
.map-popup-gallery button svg { width: 8px; height: 14px; }
.map-popup-prev svg { transform: rotate(180deg); }
.map-popup-counter { position: absolute; bottom: 6px; right: 6px; padding: 2px 7px; border-radius: 4px; color: white; background: #0009; font-size: 11px; line-height: 1.5; pointer-events: none; }
