/*
Theme Name: Kuhni ZOV
*/

@font-face {
    font-family: 'Stolzl';
    src: url('/wp-content/themes/kuhni/assets/fonts/stolzl_thin.otf') format('opentype');
    font-weight: 100;
    font-style: normal;
}
@font-face {
    font-family: 'Stolzl';
    src: url('/wp-content/themes/kuhni/assets/fonts/stolzl_light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
}
@font-face {
    font-family: 'Stolzl';
    src: url('/wp-content/themes/kuhni/assets/fonts/stolzl_book.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: 'Stolzl';
    src: url('/wp-content/themes/kuhni/assets/fonts/stolzl_regular.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
}
@font-face {
    font-family: 'Stolzl';
    src: url('/wp-content/themes/kuhni/assets/fonts/stolzl_medium.otf') format('opentype');
    font-weight: 600;
    font-style: normal;
}
@font-face {
    font-family: 'Stolzl';
    src: url('/wp-content/themes/kuhni/assets/fonts/stolzl_bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
}

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

.hero-complex {
  padding: 24px 0 60px;
  background-color: #fff;
}
.hero-complex__grid {
  display: grid;
  grid-template-columns: 2.6fr 0.75fr;
  gap: 20px;
  align-items: stretch;
}
.hero-complex__slider-wrapper {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background-color: #1a1b1c;
  color: white;
  min-height: 552px;
  min-width: 0;
}
.hero-complex__slider {
  height: 100%;
}
.hero-complex__slider:not(.slick-initialized) .hero-slide:not(:first-child) {
  display: none !important;
}
.hero-slide {
  position: relative;
  padding: 40px;
  display: flex !important;
  flex-direction: column;
  justify-content: space-between;
  height: 552px;
  box-sizing: border-box;
}
.hero-slide__link {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  text-indent: -9999px;
  overflow: hidden;
}
.hero-slide__title {
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
  font-family: 'Stolzl', sans-serif;
}
.hero-slide__title span {
  font-size: 140px;
  line-height: 0.8;
  letter-spacing: -5px;
}
.hero-slide__subtitle {
  font-size: 56px;
  font-weight: 800;
  color: #00ffaa;
  line-height: 1;
  text-transform: uppercase;
  margin-top: 15px;
  font-family: 'Stolzl', sans-serif;
}
.hero-slide__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}
.hero-slide__buttons {
  display: flex;
  gap: 15px;
}
.hero-slide__buttons .button-outline {
  border: 1px solid rgba(255,255,255,0.2);
  color: white;
  padding: 14px 24px;
  border-radius: 30px;
  text-decoration: none;
  font-size: 14px;
  transition: 0.3s;
  font-family: 'Stolzl', sans-serif;
}
.hero-slide__buttons .button-outline:hover {
  background: rgba(255,255,255,0.1);
}
.hero-slide__buttons .button-white {
  background: white;
  color: #1c1c1c;
  padding: 14px 24px;
  border-radius: 30px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: 0.3s;
  font-family: 'Stolzl', sans-serif;
}
.hero-slide__buttons .button-white:hover {
  background: #eee;
}
.hero-slide__nav {
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-slide__counter {
  background: rgba(255,255,255,0.1);
  padding: 10px 18px;
  border-radius: 20px;
  font-size: 14px;
  margin-right: 10px;
  font-family: 'Stolzl', sans-serif;
}
.hero-slide__arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: black;
  font-size: 16px;
  transition: 0.3s;
  padding: 0;
}
.hero-slide__arrow:hover {
  background: #eee;
}
.hero-slide__arrow.slick-disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.hero-slide__arrow svg {
  width: 8px;
  height: 14px;
}
.hero-slide__nav-wrapper {
  position: absolute;
  right: 40px;
  bottom: 40px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 5px;
}

.hero-complex__cards {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 20px;
  min-width: 0;
  min-height: 552px;
}
.hero-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  text-decoration: none;
  color: white;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 0;
  height: 100%;
  font-family: 'Stolzl', sans-serif;
}
.hero-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.1) 40%, rgba(0,0,0,0.7) 100%);
  z-index: 1;
  transition: 0.3s;
}
.hero-card:hover::before {
  background: linear-gradient(to bottom, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.2) 40%, rgba(0,0,0,0.8) 100%);
}
.hero-card > * {
  position: relative;
  z-index: 2;
}
.hero-card__title {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
}
.hero-card__bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.hero-card__subtitle {
  font-size: 12px;
  max-width: 70%;
  line-height: 1.4;
  opacity: 0.9;
}
.hero-card__icon {
  width: 36px;
  height: 36px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: black;
  font-size: 14px;
  transition: 0.3s;
}
.hero-card:hover .hero-card__icon {
  transform: scale(1.1);
}
.hero-card__icon svg {
  width: 6px;
  height: 10px;
}

@media (max-width: 1200px) {
  .hero-slide__title span {
    font-size: 100px;
  }
  .hero-slide__subtitle {
    font-size: 40px;
  }
}
@media (max-width: 992px) {
  section {
    padding: 40px 0 !important;
  }
  .hero-complex__grid {
    grid-template-columns: 1fr;
  }
  .hero-complex__cards {
    height: auto;
    min-height: 0;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr;
  }
  .hero-complex__slider-wrapper,
  .hero-slide {
    min-height: 420px;
    height: 420px;
  }
  .hero-card {
    min-height: 220px;
  }
}
@media (max-width: 992px) {
  html body main .container,
  html body .container,
  .page .container {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    box-sizing: border-box !important;
  }
  
  /* Принудительно отключаем отрицательные отступы, если они накладываются плагинами или старым CSS */
  .about-level__media,
  .about-level__wrapper,
  .services-complex__grid,
  .services-complex__card,
  .promos-block .promo-card,
  .stories-scroll {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 16px !important;
  }
}
@media (max-width: 576px) {
  section {
    padding: 30px 0 !important;
  }
  .listing {
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
  }
  .listing .mini-card, .listing .listing__element {
    grid-column: span 1 !important;
  }
  .hero-complex {
    padding: 20px 0 !important;
  }
  .hero-complex__cards {
    height: auto;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .hero-card {
    min-height: 160px;
    padding: 15px;
    border-radius: 12px;
  }
  .hero-card__title {
    font-size: 14px;
  }
  .hero-card__subtitle {
    font-size: 11px;
    max-width: 80%;
  }
  .hero-card__icon {
    width: 24px;
    height: 24px;
  }
  .hero-card__icon svg {
    width: 4px;
    height: 7px;
  }
  .hero-slide {
    height: auto;
    min-height: 552px;
    padding: 20px;
  }
  .hero-slide__title {
    font-size: 24px;
  }
  .hero-slide__title span {
    font-size: 45px;
    letter-spacing: -2px;
    line-height: 1;
  }
  .hero-slide__subtitle {
    font-size: 16px;
    margin-top: 10px;
  }
  .hero-slide__footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .hero-slide__buttons {
    flex-direction: column;
    width: 100%;
  }
  .hero-slide__buttons a {
    text-align: center;
  }
  .hero-slide__nav-wrapper {
    position: relative;
    right: 0;
    bottom: 0;
    margin-top: 20px;
    justify-content: space-between;
    width: 100%;
  }
  .hero-slide__nav {
    width: 100%;
    justify-content: space-between;
  }
}

.news-block {
  padding: 60px 0;
  background-color: #f3f1f1;
}
.news-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 30px;
}
.news-card {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: #1a1a1a;
  transition: box-shadow 0.3s;
  font-family: 'Stolzl', sans-serif;
}
.news-card:hover {
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.news-card__image {
  width: 100%;
  height: 220px;
  background-size: cover;
  background-position: center;
}
.news-card__body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.news-card__title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 20px;
}
.news-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}
.news-card__date {
  background: #f3f1f1;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  color: #555;
  font-weight: 500;
}
.news-card__arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1a1a1a;
  transition: 0.3s;
}
.news-card:hover .news-card__arrow {
  background: #1a1a1a;
  color: white;
  border-color: #1a1a1a;
}
.news-card__arrow svg {
  width: 12px;
  height: 12px;
}

@media (max-width: 1200px) {
  .news-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 992px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 576px) {
  .news-grid {
    grid-template-columns: 1fr;
  }
  .news-card__img {
    height: 180px;
    width: 100%;
  }
}
.news-card__img {
  width: 100%;
  height: 240px;
}

/* Filter top toggle button */
.filter__top .button-arrow {
  width: 32px !important;
  height: 32px !important;
  border-radius: 50%;
  background-color: #f4f5f5 !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s;
  color: #1a1a1a !important;
  padding: 0 !important;
}
.filter__top .button-arrow:hover {
  background-color: #e0e0e0 !important;
}
.filter__top .button-arrow svg {
  width: 14px !important;
  height: 14px !important;
  fill: currentColor !important;
  transition: transform 0.3s;
}
.se_filter_box:not(.is-open) .filter__top .button-arrow svg {
  transform: rotate(180deg);
}

.color-circle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-block;
  border: 1px solid #e0e0e0;
}

.mini-card__content-bottom {
  padding: 20px 0 !important;
  border-top: 1px solid #e6e6e6;
  align-items: center;
  display: flex;
  justify-content: space-between;
}
/* Black color for words in header and footer */
.header__top-left,
.header__top-nav a,
.header__top-nav span,
.header__top-right a,
.header__bottom-nav-list a,
.footer__column .title,
.footer__column-item .title,
.footer__column-item a,
.footer__column-item address,
.footer__column-item span,
.footer__column-item p,
.footer__list a,
.footer__social a,
.footer__bottom-item a,
.footer__bottom-item span,
.footer__copyright-wrapper span,
.footer__copyright-wrapper p {
    color: #000 !important;
}
.header__top-left,
.header__top-left span {
    font-size: 13px !important;
}
.mini-card__like,
.mini-card__like.button,
.card__like,
.card__like.button {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  background: none !important;
  border: none !important;
  padding: 0 !important;
  color: #9a9a9a !important;
  cursor: pointer;
  min-height: auto !important;
}
.mini-card__like svg,
.mini-card__like.button svg,
.card__like svg,
.card__like.button svg {
  color: #9a9a9a !important;
  fill: currentColor !important;
}
.mini-card__like:hover,
.mini-card__like.button:hover,
.mini-card__like:hover svg,
.mini-card__like.button:hover svg,
.card__like:hover,
.card__like.button:hover,
.card__like:hover svg,
.card__like.button:hover svg {
  color: #6e6e6e !important;
}
.mini-card__like.is-like,
.mini-card__like.is-like.button,
.mini-card__like.is-like svg,
.mini-card__like.is-like.button svg,
.card__like.is-like,
.card__like.is-like.button,
.card__like.is-like svg,
.card__like.is-like.button svg {
  color: #7a7a7a !important;
}
.mini-card__like::after,
.card__like::after {
  color: #6e6e6e !important;
  font-weight: 400 !important;
}
.mini-card__calc-link {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  color: #1a1a1a !important;
  text-decoration: none !important;
  font-weight: 500 !important;
}
.mini-card__calc-link:hover {
  color: #ff4d4d !important;
}

/* Fix float layout issues in product card */
.card__top-grid::after,
.card__top::after,
.card__wrapper::after,
.card::after,
.card__top-left::after,
.card__top-right::after {
    content: "";
    display: table;
    clear: both;
}

/* Fix mega menu — desktop heights; mobile stays auto */
.header__fixed-wrapper {
    height: auto !important;
}
.header__fixed {
    height: auto !important;
}
.header__bottom {
    height: auto !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}
.header__bottom-wrapper {
    transform: none;
}
@media (min-width: 1025px) {
    .header__fixed-wrapper {
        height: 80px !important;
    }
    .header__fixed {
        height: 80px !important;
    }
    .header__bottom {
        height: 80px !important;
    }
    .header__bottom-wrapper {
        transform: translateY(-8px);
    }
}
.header__fixed-wrapper, .header__fixed, .header__bottom, .header, .menu, .menu__wrapper {
    border: none !important;
    box-shadow: none !important;
}
.menu__bottom {
}

/* Fix submenu black line */
.header__sub-menu {
    border-top: none !important;
    padding-bottom: 20px !important;
}

/* Fix consultant widget (messengers) styling */
.messengers {
    border-top: none !important;
    padding-bottom: 40px !important;
    margin-bottom: 20px !important;
}
.fancybox-content {
    border-top: none !important;
}

:root {
    /* Callibri yellow accent https://callibri.ru/solutions/special-equipment */
    --color-orange-100: #fff4cc !important;
    --color-orange-200: #ffc800 !important;
    --color-orange-300: #e6b400 !important;
    --kuhni-gold-top: #ffc800;
    --kuhni-gold-mid: #ffc800;
    --kuhni-gold-bot: #ffc800;
    --kuhni-gold-gradient: #ffc800;
    --kuhni-gold-gradient-hover: #e6b400;
    /* Yandex Realty secondary button grey («Позвоните мне») */
    --color-grey-100: #f3f1f1 !important;
    --color-grey-200: #e8e8e8 !important;
    --kuhni-ui-grey: #f3f1f1;
    --kuhni-ui-grey-hover: #e8e8e8;
    --kuhni-header-bg: #ffffff;
}

.header__like-count {
    position: absolute;
    top: 16px;
    left: 38px;
    width: 17px;
    height: 17px;
    min-width: 17px;
    padding: 0;
    margin: 0;
    font-size: 10px;
    font-weight: 500;
    line-height: 1;
    border-radius: 50%;
    background-color: #ffc800;
    color: #000 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    z-index: 10;
}

.button-primary,
.header__stock-count {
    color: #000 !important;
}

.button,
.button-secondary {
    color: var(--color-orange-200) !important;
    font-weight: 500 !important; /* Not bold */
}
.button-primary {
    color: #000 !important;
    font-weight: 500 !important; /* Not bold */
}
.button-primary span {
    color: #000 !important;
}

/* Unified button styling */
.btn-unified {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.3s ease;
    background: transparent;
    cursor: pointer;
}
.btn-unified:hover {
    background: #f0f0f0;
}

/* Make products 4 in a row on home page */
@media (min-width: 993px) {
  .main-listing .listing .listing__element, 
  .main-listing .listing .mini-card {
    grid-column: span 3 !important;
  }
}

/* Make catalog and categories 3 in a row instead of 2 */
@media (min-width: 993px) {
  .catalog__main:has(.catalog__filter) .listing .mini-card,
  .catalog__main:has(.catalog__filter) .listing .listing__element,
  .catalog_all .mini-card,
  .catalog_all .listing__element {
    grid-column: span 4 !important;
  }
}

/* Make related products 4 in a row */
@media (min-width: 993px) {
  .related-products .listing .listing__element, 
  .related-products .listing .mini-card {
    grid-column: span 3 !important;
  }
}

/* Styling for 'Подробнее' button — beige, yellow on hover */
.mini-card {
  background-color: #fff !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08) !important;
  transition: box-shadow 0.25s ease !important;
}
.mini-card:hover {
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16) !important;
}
.mini-card__hover-btn {
  background: var(--kuhni-ui-grey, #f3f1f1) !important;
  border: none !important;
  color: #000 !important;
  border-radius: 30px !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  padding: 12px 30px !important;
  min-width: 140px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  transition: all 0.3s ease !important;
  text-decoration: none !important;
  box-shadow: none !important;
}
.mini-card__hover-btn span {
  color: #000 !important;
}
.mini-card:hover .mini-card__hover-btn,
.mini-card__hover-btn:hover {
  background: #ffc800 !important;
  border-color: #ffc800 !important;
  color: #000 !important;
  box-shadow: none !important;
}
.mini-card:hover .mini-card__hover-btn span,
.mini-card__hover-btn:hover span {
  color: #000 !important;
}

/* Custom Pagination Colors */
.woocommerce-pagination ul.page-numbers li span.current, 
.pagination span.current, 
.page-numbers.current,
.woocommerce nav.woocommerce-pagination ul li span.current {
    background-color: #2b2b2b !important;
    border-color: #2b2b2b !important;
    color: #fff !important;
}

.woocommerce-pagination ul.page-numbers li a:hover, 
.pagination a:hover, 
a.page-numbers:hover,
.woocommerce nav.woocommerce-pagination ul li a:hover {
    background-color: #444 !important;
    color: #fff !important;
}






/* Section Header Flex for Mobile Responsiveness */
.section-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}
@media (max-width: 768px) {
    .section-header-flex {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 10px;
    }
}

/* Footer Mobile Fixes */
@media (max-width: 992px) {
    .footer__top {
        flex-direction: column !important;
        gap: 40px !important;
    }
    .footer__bottom {
        flex-direction: column !important;
        gap: 20px !important;
        align-items: flex-start !important;
    }
    .footer__column {
        width: 100% !important;
    }
}

/* Force prevent horizontal scroll on mobile */


/* Responsive visibility helper classes */
.mobile-only,
.mobile-only-flex {
    display: none !important;
}

/* Reviews and designer stars — yellow */
.reviews-level__stars svg,
.reviews-card__stars svg,
.designer-card__stars svg,
.designer-card__stars svg g,
.designer-card__stars svg path {
    color: #FFC107 !important;
    fill: #FFC107 !important;
}

/* Fix thumbnail slider overlapping the main image and alignment on desktop */
@media (min-width: 992px) {
  .card__slider1 {
    margin-top: 12px !important; /* Brought closer to eliminate excess gap */
  }
}

/* Make active thumbnail outline border light grey instead of orange */
.card__slider1 .card__slide1.is-active::after {
    border: 2px solid #e0e0e0 !important;
    background-color: rgba(0, 0, 0, 0.03) !important;
}

/* Common Slider Controls Styling */
.awards-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 40px;
}
.awards-progress-bar {
  flex-grow: 1;
  height: 2px;
  background: #dcdcdc;
  position: relative;
  margin-right: 40px;
}
.awards-progress-bar-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 25%;
  background: #2f3b4d;
  transition: width 0.3s ease;
}
.awards-nav-btns {
  display: flex;
  align-items: center;
  gap: 15px;
}
.awards-pagination-text {
  font-size: 14px;
  color: #666;
  font-family: 'Stolzl', sans-serif;
  margin-right: 15px;
}
.awards-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  background: #f3f1f1 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #1a1a1a !important;
  transition: background 0.3s;
}
.awards-btn:hover,
.awards-btn:focus,
.awards-btn:active {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  background: #e8e8e8 !important;
  color: #1a1a1a !important;
}

/* Fix floating/overlapping filter and sorting on mobile/resize */
@media (max-width: 1024px) {
  .sidebar,
  .sidebar__inner,
  .catalog__filter {
    position: static !important;
    width: 100% !important;
    height: auto !important;
    transform: none !important;
    float: none !important;
  }
}

/* Set solid brand color background for sticker-orange badges */
.sticker-orange {
  background: #ffc800 !important;
  color: #1a1a1a !important;
}

/* Global Showrooms Map Section Styling */
.salons-map-section h2 {
  font-size: 32px;
  font-weight: 500;
  font-family: 'Stolzl', sans-serif;
  margin-bottom: 20px;
  color: #1a1a1a;
}
@media (max-width: 768px) {
  .salons-map-section h2 {
    font-size: 22px !important;
    margin-bottom: 15px !important;
  }
  .salons-map-section {
    margin-top: 10px !important;
    margin-bottom: 10px !important;
    padding: 10px 0 !important;
  }
  .salons-map-section .page__map {
    height: 300px !important;
  }
}

/* Reduce massive top spacing under header on mobile for all internal pages */
@media (max-width: 991px) {
  body:not(.home) .page,
  body:not(.home) .catalog,
  body:not(.home) .about,
  body:not(.home) .contacts,
  body:not(.home) .faq,
  body:not(.home) .garantiya,
  body:not(.home) .oplata,
  body:not(.home) .dostavka,
  body:not(.home) .promo,
  body:not(.home) .reviews,
  body:not(.home) .zamer,
  body:not(.home) .sborka {
    padding-top: 15px !important;
  }

  body:not(.home) .breadcrumbs {
    padding-top: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 10px !important;
  }
}

/* Fix animation twitching on gallery images */
.card__main-image-wrapper img {
  transform: none !important; /* Reset scale transform to prevent slick animation twitching */
  transition: none !important;
}

.card__slider1 img {
  transform: none !important; /* Reset scale transform */
  transition: none !important;
}

/* Footer: показать Сервис + картинки оплаты/партнёров на планшете/мобиле
   (в styles.min при max-width:1023px они display:none) */
@media (max-width: 1023px) {
  .footer__top .footer__column:nth-child(3) {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
  }

  .footer .footer__pay,
  .footer .footer__partners {
    display: block !important;
    margin-top: 16px !important;
    margin-bottom: 10px !important;
  }

  .footer__column:last-child picture {
    display: block !important;
    margin: 0 0 8px !important;
  }

  .footer__column:last-child picture img {
    display: block !important;
    width: auto !important;
    max-width: 100% !important;
    height: auto !important;
  }
}

/* Global Footer Centering on Mobile */
@media (max-width: 768px) {
  .footer__top {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 30px 20px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Категории скрываем */
  .footer__top .footer__column:nth-child(2) {
    display: none !important;
  }

  .footer__column {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    text-align: left !important;
    gap: 16px !important;
  }

  /*
    Порядок на мобиле:
    [Контакты] [Следите / оплата / партнёры]
    [Сервис]   [Информация]
  */
  .footer__top .footer__column:nth-child(1) { order: 1 !important; }
  .footer__top .footer__column:nth-child(5) {
    order: 2 !important;
    grid-column: auto !important;
    border-top: none !important;
    padding-top: 0 !important;
    margin-top: 0 !important;
  }
  .footer__top .footer__column:nth-child(3) {
    order: 3 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
  }
  .footer__top .footer__column:nth-child(4) {
    order: 4 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
  }

  /* Вернуть заголовки и картинки оплаты / партнёров (в styles.min они display:none) */
  .footer .footer__pay,
  .footer .footer__partners {
    display: block !important;
    margin-top: 16px !important;
    margin-bottom: 10px !important;
  }

  .footer__column:last-child picture {
    display: block !important;
    margin: 0 0 8px !important;
  }

  .footer__column:last-child picture img {
    display: block !important;
    width: auto !important;
    max-width: 100% !important;
    height: auto !important;
  }

  .footer__column-item {
    width: 100% !important;
    margin-bottom: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    text-align: left !important;
    gap: 8px !important;
  }

  .footer__column-item span[style*="font-size: 13px"] {
    font-size: 10px !important;
  }
  
  .footer__column-item a[style*="font-size: 18px"],
  .footer__column-item span[style*="font-size: 18px"] {
    font-size: 12px !important;
    font-weight: 500 !important;
  }

  .footer__column-item address {
    font-size: 12px !important;
    line-height: 1.4 !important;
    font-style: normal !important;
    font-weight: 500 !important;
    color: #1a1a1a !important;
    font-family: 'Stolzl', sans-serif !important;
  }

  span.phone_700_16.title-m {
    font-size: 10px !important;
    font-weight: 400 !important;
    color: #666 !important;
    display: block !important;
    margin-bottom: 4px !important;
    font-family: 'Stolzl', sans-serif !important;
    text-transform: none !important;
  }
  
  .footer__column-item p {
    font-size: 11px !important;
    margin: 2px 0 !important;
  }
  
  .footer__column-item span.main_700_14 {
    font-size: 12px !important;
    font-weight: 600 !important;
  }

  .footer__column-item .title,
  .footer__column .title {
    font-size: 15px !important;
    font-weight: 600 !important;
    margin-bottom: 4px !important;
    color: #1a1a1a !important;
    display: block !important;
  }

  .footer__list {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    text-align: left !important;
    gap: 10px !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .footer__pdf-btn {
    margin: 10px 0 0 0 !important;
    display: inline-flex !important;
    width: auto !important;
  }

  .footer__social {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    text-align: left !important;
    gap: 10px !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .footer__bottom {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 20px 16px !important;
    margin-top: 30px !important;
    width: 100% !important;
    border-top: 1px solid #f0f0f0 !important;
    padding-top: 20px !important;
  }

  .footer__bottom-item {
    width: 100% !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    text-align: left !important;
  }
}

/* MOBILE MENU SLIDE-OUT STYLES */
.mob-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #f7f7f8;
    z-index: 99999 !important; /* Overlay everything including the header */
    overflow-y: auto;
    overflow-x: hidden;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    display: block;
    padding: 15px 15px 15px 15px !important; /* Normal padding, no header gap */
}
.header { position: relative; z-index: 1000; background: #fff; }

.mob-menu.is-open {
    transform: translateX(0) !important;
}
@media (min-width: 1025px) {
    .mob-menu { display: none !important; }
}

.mob-menu__screen-first, .mob-menu__screen-second {
    position: absolute;
    top: 15px; left: 15px; right: 15px;
    transition: transform 0.3s ease;
}
.mob-menu__screen-first {
    transform: translateX(-110%);
    display: none;
}
.mob-menu__screen-first.is-active {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    transform: translateX(0);
    display: block;
}
.mob-menu__screen-second {
    transform: translateX(110%);
    display: none;
}
.mob-menu__screen-second.is-active {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    transform: translateX(0);
    display: block;
}

/* Grid & Cards */
.mob-menu__upper { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 15px; margin-right: 54px; }
.mob-menu__search { flex: 1; position: relative; }
.mob-menu__search input { width: 100%; padding: 12px 40px 12px 15px; border-radius: 12px; border: 1px solid #e0e0e0; background: #fff; }
.mob-menu__search svg { position: absolute; right: 12px; top: 12px; color: #999; }
.mob-menu__like { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; background: #fff; border-radius: 50% !important; border: 1px solid #e0e0e0; color: #1a1a1a; }

.mob-menu__top { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 10px; margin-bottom: 15px; }
.mob-menu__top-calc { background: #ffc800; color: #000; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-weight: 500; text-decoration: none; padding: 10px; text-align: center; line-height: 1.2; font-size: 14px; }
.mob-menu__item-constructor, .mob-menu__item[data-form] { background: #fff; border-radius: 12px; border: none; padding: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 10px; text-align: center; color: #1a1a1a; text-decoration: none; cursor: pointer; }
.mob-menu__item-constructor svg, .mob-menu__item[data-form] svg { margin-bottom: 5px; }

.mob-menu__middle { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mob-menu__catalog { grid-column: span 2; background: #fff; border-radius: 12px; padding: 15px; display: flex; flex-direction: column; cursor: pointer; position: relative; overflow: hidden; height: 110px; }
.mob-menu__catalog .flex-sb { display: flex; justify-content: space-between; align-items: center; position: relative; z-index: 2; width: 55%; flex-direction: column; align-items: flex-start; height: 100%; }
.mob-menu__catalog .h4 { font-size: 18px; font-weight: 500; display: flex; align-items: center; gap: 10px; }
.mob-menu__catalog .h4 span { width: 24px; height: 2px; background: #1a1a1a; position: relative; }
.mob-menu__catalog .h4 span::before, .mob-menu__catalog .h4 span::after { content: ''; position: absolute; width: 100%; height: 2px; background: #1a1a1a; left: 0; }
.mob-menu__catalog .h4 span::before { top: -6px; }
.mob-menu__catalog .h4 span::after { top: 6px; }
.mob-menu__catalog .mob-menu__catalog-arrow { width: 28px; height: 28px; background: rgba(255,255,255,0.5); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-top: auto; }
.mob-menu__catalog .mob-menu__item-img { position: absolute !important; right: 0 !important; bottom: 0 !important; top: 0 !important; width: 45% !important; z-index: 1; }
.mob-menu__catalog .mob-menu__item-img img { width: 100% !important; height: 100% !important; object-fit: cover !important; object-position: center !important; }

.mob-menu__item { background: #fff; border-radius: 12px; padding: 15px; text-decoration: none; color: #1a1a1a; position: relative; overflow: hidden; height: 120px; display: flex; flex-direction: column; justify-content: flex-start; box-sizing: border-box; }
.mob-menu__item > span { font-size: 15px; font-weight: 500; z-index: 2; position: relative; }
.mob-menu__item > p { font-size: 11px; color: #666; margin: 4px 0 0 0; z-index: 2; position: relative; line-height: 1.2; }
.mob-menu__item .mob-menu__item-img { position: absolute; right: 0; bottom: 0; width: 80px; z-index: 1; }
.mob-menu__item .mob-menu__item-img img { width: 100%; height: 100%; object-fit: contain; object-position: right center; }

.mob-menu__item.mob-menu__promos { background: #ffc800; color: #000; justify-content: center; align-items: center; }
.mob-menu__item.mob-menu__promos > span { font-size: 16px; text-align: center; }

.mob-menu__item.mob-menu__showroom { grid-column: span 2; display: flex !important; flex-direction: column !important; justify-content: center !important; align-items: flex-start !important; padding: 15px !important; position: relative; overflow: hidden; }
.mob-menu__item.mob-menu__showroom > span { font-size: 16px !important; margin-bottom: 5px !important; max-width: 50% !important; z-index: 2; position: relative; }
.mob-menu__item.mob-menu__showroom > p { position: static !important; font-size: 11px !important; color: #666 !important; margin: 0 !important; max-width: 50% !important; z-index: 2; line-height: 1.2; }
.mob-menu__item.mob-menu__showroom .mob-menu__item-img { position: absolute !important; right: 0 !important; top: 0 !important; bottom: 0 !important; width: 45% !important; height: 100% !important; z-index: 1; }
.mob-menu__item.mob-menu__showroom .mob-menu__item-img img { width: 100% !important; height: 100% !important; object-fit: cover !important; object-position: center !important; }

/* Catalog Screen */
.mob-menu__catalog-top { display: flex; align-items: center; margin-bottom: 20px; }
.mob-menu__back-button { background: #333; color: #fff; border: none; border-radius: 20px; padding: 8px 16px; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; cursor: pointer; }
.mob-menu__filters { display: flex; overflow-x: auto; gap: 15px; margin-bottom: 20px; padding-bottom: 10px; }
.mob-menu__filters span { font-size: 15px; font-weight: 500; color: #999; white-space: nowrap; cursor: pointer; }
.mob-menu__filters span.active { color: #ffc800; border-bottom: 2px solid #e6b400; padding-bottom: 5px; }
.mob-menu__cat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding-bottom: 100px;}
.mob-menu__cat-card { background: #fff; border-radius: 12px; overflow: hidden; text-decoration: none; color: #1a1a1a; display: flex; flex-direction: column; }
.mob-menu__cat-card.wide { grid-column: span 2; }
.mob-menu__cat-card-img { width: 100%; height: 100px; background: #eee; }
.mob-menu__cat-card.wide .mob-menu__cat-card-img { height: 140px; }
.mob-menu__cat-card-img img { width: 100%; height: 100%; object-fit: cover; }
.mob-menu__cat-card-content { padding: 12px; }
.mob-menu__cat-card-title { font-size: 14px; font-weight: 500; display: flex; align-items: center; gap: 5px; margin-bottom: 4px; }
.mob-menu__cat-card-count { font-size: 11px; color: #999; }

/* Hide desktop header elements on mobile */
@media (max-width: 1024px) {
    .header__top-right {
        display: none !important;
    }
    .header__button-calc {
        display: none !important;
    }
}

/* Hide 'Кухни' text link next to mobile burger */
@media (max-width: 1024px) {
    .header__bottom-nav-mob-link {
        display: none !important;
    }
}

/* Move burger to the right on mobile, style toggle, and disable transform */
@media (max-width: 1024px) {
    .header__bottom-wrapper {
        transform: none !important;
    }
    .header__mob-menu {
        display: flex !important;
        order: 99 !important;
        margin-left: 6px !important;
        width: 38px !important;
        min-width: 38px !important;
        height: 38px !important;
        overflow: visible !important;
        flex-shrink: 0 !important;
    }
    .header__buttons {
        margin-left: auto !important;
    }
    .header__mob-menu-toggle {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: relative !important;
        width: 38px !important;
        height: 38px !important;
        min-width: 38px !important;
        border-radius: 50% !important;
        border: none !important;
        background-color: #f5f5f7 !important;
        color: #1a1a1a !important;
        align-items: center !important;
        justify-content: center !important;
        cursor: pointer !important;
    }
}

/* Hide desktop top bar on mobile */
@media (max-width: 1024px) {
    .header__top {
        display: none !important;
    }
}

/* Force hide top elements on mobile/tablet */
@media (max-width: 1200px) {
    .header__top { display: none !important; }
    .header__mob-line { display: none !important; }
    .header__top-right { display: none !important; }
    .header__button-calc { display: none !important; }
    .header__bottom-nav-mob-link { display: none !important; }
    .header__mob-menu { order: 99 !important; }
    .header__buttons { margin-left: auto !important; }
}

/* Fix WP Admin bar white space on mobile */
html { margin-top: 0 !important; }
body { padding-top: 0 !important; }

/* Style for mobile close cross button inside the drawer */
.mob-menu__close-btn {
    position: absolute;
    top: 15px !important; /* Align with search bar and top row */
    right: 15px;
    width: 44px;
    height: 44px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 50% !important; /* Make it circular */
    cursor: pointer;
    display: flex !important;
    align-items: center;
    justify-content: center;
    z-index: 100000 !important;
}
.mob-menu__close-btn span {
    position: absolute;
    width: 16px;
    height: 2px;
    background-color: #333;
}
.mob-menu__close-btn span:first-child {
    transform: rotate(45deg);
}
.mob-menu__close-btn span:last-child {
    transform: rotate(-45deg);
}

/* Fix mobile menu tabs layout (prevent wrapping, keep in single line scrollable) */
@media (max-width: 1024px) {
    .mob-menu .menu__navigation {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 5px;
    }
    .mob-menu .menu__navigation li {
        flex-shrink: 0 !important;
        margin-right: 15px !important;
    }
}

/* Custom mobile cards redesign: remove burger, position dark arrow, make images narrower (35% width) and uncropped */
@media (max-width: 1024px) {
    .mob-menu__catalog {
        position: relative !important;
        overflow: hidden !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: flex-start !important;
        padding: 15px !important;
    }
    .mob-menu__catalog > span {
        font-size: 15px !important;
        font-weight: 500 !important;
        z-index: 2 !important;
        position: relative !important;
        max-width: 60% !important;
    }
    .mob-menu__catalog > p {
        font-size: 11px !important;
        color: #666 !important;
        margin: 4px 0 0 0 !important;
        z-index: 2 !important;
        position: relative !important;
        max-width: 60% !important;
        line-height: 1.2 !important;
    }
    .mob-menu__catalog .mob-menu__item-img {
        position: absolute !important;
        right: 0 !important;
        left: auto !important; /* Force to the right side of the card! */
        bottom: 0 !important;
        top: 0 !important;
        width: 35% !important; /* Narrower width */
        z-index: 1 !important;
    }
    .mob-menu__catalog .mob-menu__item-img img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: left center !important; /* Shift placeholder left to show kitchen photo */
    }

    /* Sales Salons Card split layout */
    .mob-menu__item.mob-menu__showroom {
        position: relative !important;
        overflow: hidden !important;
    }
    .mob-menu__item.mob-menu__showroom > span {
        font-size: 16px !important;
        margin-bottom: 5px !important;
        max-width: 60% !important;
        z-index: 2 !important;
        position: relative !important;
    }
    .mob-menu__item.mob-menu__showroom > p {
        position: static !important;
        font-size: 11px !important;
        color: #666 !important;
        margin: 0 !important;
        max-width: 60% !important;
        z-index: 2 !important;
        line-height: 1.2 !important;
    }
    .mob-menu__item.mob-menu__showroom .mob-menu__item-img {
        position: absolute !important;
        right: 0 !important;
        top: 0 !important;
        bottom: 0 !important;
        width: 35% !important; /* Narrower width */
        height: 100% !important;
        z-index: 1 !important;
    }
    .mob-menu__item.mob-menu__showroom .mob-menu__item-img img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center !important;
    }
}

/* Locked layout specifications for the main product gallery to prevent initial page load twitching and flickering */
.card__main-image-wrapper {
    display: block !important;
    position: relative !important;
    overflow: hidden !important;
    width: 100% !important;
    aspect-ratio: 1000/687 !important; /* Original height ratio to prevent cropping */
}
.card__main-image-wrapper a {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
}
.card__main-image-wrapper picture {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
}
.card__main-image-wrapper:not(.slick-initialized) > a:not(:first-child) {
    display: none !important;
}

/* Zoom button at the top right corner */
.gallery-zoom-btn {
    position: absolute !important;
    top: 20px !important;
    right: 20px !important;
    z-index: 20 !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    border: none !important;
    background: #ffffff !important;
    color: #1a1a1a !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    transition: all 0.2s ease !important;
    padding: 0 !important;
    outline: none !important;
}

.gallery-zoom-btn:hover {
    background: #f8f8f8 !important;
    color: #ffc800 !important;
    transform: scale(1.05) !important;
}

@media (max-width: 768px) {
    .gallery-zoom-btn {
        top: 12px !important;
        right: 12px !important;
        width: 34px !important;
        height: 34px !important;
    }
    .gallery-zoom-btn svg {
        width: 14px !important;
        height: 14px !important;
    }
}
.card__main-image-wrapper .slick-list,
.card__main-image-wrapper .slick-track {
    height: 100% !important;
    max-width: 100% !important;
}
.card__main-image-wrapper.slick-slider .slick-slide {
    height: 100% !important;
    max-width: 100% !important;
    float: none !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    transition: opacity 0.25s ease-in-out !important;
}
.card__main-image-wrapper.slick-slider .slick-slide.slick-current {
    opacity: 1 !important;
    z-index: 999 !important;
}
.card__main-image-wrapper.slick-slider .slick-slide:not(.slick-current) {
    opacity: 0 !important;
    z-index: 998 !important;
}
.card__main-image-wrapper .slick-slide > div {
    height: 100% !important;
    max-width: 100% !important;
}
.card__main-image-wrapper img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transform: none !important;
    transition: none !important;
}

/* Mobile adjustments for product single page gallery (no edge-to-edge full bleed, align perfectly) */
@media (max-width: 991px) {
    .card__main-image-wrapper {
        margin: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        border-radius: 12px !important;
        aspect-ratio: 1000/687 !important;
        height: auto !important;
        max-height: 400px !important;
    }
    
    .card__main-image-wrapper a,
    .card__main-image-wrapper img {
        height: 100% !important;
        max-height: 400px !important;
        object-fit: cover !important;
    }
    
    .card__slider1 {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-top: 12px !important;
    }

    .card__slider1 .slick-list {
        margin-right: -8px !important;
        margin-left: 0 !important;
    }

    .card__slider1 .slick-slide > div {
        margin-right: 8px !important;
        margin-left: 0 !important;
        padding: 0 !important;
    }

    .card__slider1 .card__slide1 {
        margin: 0 !important;
        border-radius: 8px !important;
    }
}

/* Prevent vertical stretching gaps inside the left gallery column */
.card__top-left {
    align-content: start !important;
}

/* Force left gallery column to fill the available width on desktop to prevent a white gap on the right (ONLY ON PRODUCT PAGE) */
@media (min-width: 992px) {
    .single-product .card__top {
        position: relative !important;
        display: block !important;
    }
    
    .single-product .card__top-grid {
        display: block !important;
        width: 58% !important;
    }
    
    .single-product .card__top-left {
        width: 100% !important;
        float: none !important;
    }
    
    .single-product .card__top-right {
        position: absolute !important;
        top: 80px !important; /* aligns below the product title/breadcrumbs header */
        right: 0 !important;
        width: 38% !important;
        margin: 0 !important;
    }
    
    .single-product .card__bottom {
        width: 58% !important;
        float: left !important;
        clear: left !important;
        margin-top: 30px !important;
        padding-top: 0 !important;
    }
}

@media (max-width: 991px) {
    .single-product .card__top-grid {
        display: block !important;
    }
    .single-product .card__top-left,
    .single-product .card__top-right,
    .single-product .card__bottom {
        position: static !important;
        width: 100% !important;
        float: none !important;
        clear: none !important;
        margin-top: 20px !important;
    }
}

/* Align card tab headers next to each other on the left */
.card__tabs {
    justify-content: flex-start !important;
    gap: 30px !important;
}

/* Old kitchen price on product card (like catalog) */
.card__price-old {
    text-decoration: line-through;
    color: #8b0000;
    font-size: 16px;
    font-weight: 500;
    white-space: nowrap;
}

/* Set product title font size to 19px across all catalog, front-page, and related product cards */
.mini-card__link, 
.mini-card__link span {
    font-size: 19px !important;
    line-height: 1.3 !important;
}

/* Custom map pin hover effect */
.map-pin-custom:hover {
    background: #ffc800 !important;
}

/* ==========================================================================
   Global contrast overrides to make fonts darker and sharper
   ========================================================================== */

/* Make default body, paragraph, list item and table cell texts sharp dark charcoal instead of faded gray */
body, 
p, 
li, 
td, 
th,
.benefits-card-text,
.awards-pagination-text,
.reviews-level__counter,
.card__about,
.card__description,
.reviews-card__text,
.reviews-card__author,
.news-card__excerpt,
.mob-menu__item > p,
.footer-info,
.footer__copy,
.footer__column-item p,
.footer__column-item span,
.footer__column-item address,
.footer__copyright-wrapper span,
.footer__copyright-wrapper p,
.calculator__desc,
.calculator__label,
.mini-card__desc,
.mini-card__characteristic,
.mini-card__price,
.card__characteristic-value,
.salon-row__schedule,
.salon-row__address,
.salon-row__phone span,
.salon-row__phone a,
.post-content,
.post-excerpt {
    color: #1a1a1a !important;
}

/* Make sure all links that represent body text or dark titles are high-contrast black/dark gray */
a.mini-card__link, 
a.mini-card__link span, 
a.salon-row__title, 
a.salon-row__phone, 
a.footer__link, 
.header__top-nav a,
.header__bottom-nav-list a {
    color: #000000 !important;
}

/* Ensure inputs, labels and secondary headings are sharp */
label,
.form-label,
.filter-label,
.filter-item,
.card__about,
.card__characteristic-label {
    color: #1a1a1a !important;
}

/* ==========================================================================
   Level.ru Style Gallery Slider Controls & Layout Overrides
   ========================================================================== */
/* Hide thumbnails completely */
.card__slider1 {
    display: none !important;
}

/* Hide default slick arrows on the sides */
.card__main-image-wrapper > button.slick-prev,
.card__main-image-wrapper > button.slick-next {
    display: none !important;
}

/* Custom controls wrapper aligned bottom right on the image */
.gallery-controls-wrapper {
    position: absolute !important;
    bottom: 20px !important;
    right: 20px !important;
    z-index: 20 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    background: transparent !important;
    pointer-events: auto !important;
}

/* Margin on the first arrow to push it slightly away from the counter */
.gallery-controls-wrapper button.slick-prev {
    margin-left: 4px !important; /* 4px margin + 8px gap = 12px total spacing from counter */
}

/* Counter pill */
.gallery-controls-wrapper .gallery-counter {
    order: 1 !important;
    color: #ffffff !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    font-family: 'Stolzl', sans-serif !important;
    background: rgba(0, 0, 0, 0.5) !important;
    padding: 0 16px !important;
    border-radius: 20px !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    height: 40px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    user-select: none !important;
    letter-spacing: 0.5px !important;
}

/* Reset slick navigation arrows and style as round white buttons */
.gallery-controls-wrapper button.slick-prev,
.gallery-controls-wrapper button.slick-next {
    position: static !important;
    transform: none !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    border: none !important;
    background: #ffffff !important;
    color: #1a1a1a !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    transition: all 0.2s ease !important;
    padding: 0 !important;
    margin: 0 !important;
    outline: none !important;
}

.gallery-controls-wrapper button.slick-prev {
    order: 2 !important;
}

.gallery-controls-wrapper button.slick-next {
    order: 3 !important;
}

.gallery-controls-wrapper button.slick-prev:hover,
.gallery-controls-wrapper button.slick-next:hover {
    background: #f8f8f8 !important;
    color: #ffc800 !important;
    transform: scale(1.05) !important;
}

.gallery-controls-wrapper button.slick-prev::before,
.gallery-controls-wrapper button.slick-next::before {
    display: none !important; /* Hide slick default character icons */
}

.gallery-controls-wrapper button.slick-prev svg,
.gallery-controls-wrapper button.slick-next svg {
    display: block !important;
    width: 6px !important;
    height: 10px !important;
    transition: transform 0.2s ease !important;
}

.gallery-controls-wrapper button.slick-prev:hover svg {
    transform: translateX(-1px) !important;
}

.gallery-controls-wrapper button.slick-next:hover svg {
    transform: translateX(1px) !important;
}

.gallery-controls-wrapper button.slick-disabled {
    opacity: 0.5 !important;
    cursor: default !important;
    pointer-events: none !important;
}

/* Adjust gallery container mobile margins */
@media (max-width: 768px) {
    .gallery-controls-wrapper {
        bottom: 12px !important;
        right: 12px !important;
        gap: 6px !important;
    }
    .gallery-controls-wrapper .gallery-counter {
        height: 34px !important;
        font-size: 12px !important;
        padding: 0 12px !important;
    }
    .gallery-controls-wrapper button.slick-prev,
    .gallery-controls-wrapper button.slick-next {
        width: 34px !important;
        height: 34px !important;
    }
}



/* Zoom button at the top right corner */
.gallery-zoom-btn {
    position: absolute !important;
    top: 20px !important;
    right: 20px !important;
    z-index: 20 !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    border: none !important;
    background: #ffffff !important;
    color: #1a1a1a !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    transition: all 0.2s ease !important;
    padding: 0 !important;
    outline: none !important;
}

.gallery-zoom-btn:hover {
    background: #f8f8f8 !important;
    color: #ffc800 !important;
    transform: scale(1.05) !important;
}

@media (max-width: 768px) {
    .gallery-zoom-btn {
        top: 12px !important;
        right: 12px !important;
        width: 34px !important;
        height: 34px !important;
    }
    .gallery-zoom-btn svg {
        width: 14px !important;
        height: 14px !important;
    }
}

.catalog__top-description-text,
.catalog__top-description-text p {
    font-weight: 400 !important;
    font-size: 15px !important;
    line-height: 150% !important;
}

.card__sticker.sticker-green,
.sticker-green {
    background-color: #f3f1f1 !important;
    color: #1a1a1a !important;
    border: none !important;
}
.card__sticker {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0 !important;
}
/* Hide leftover emoji / icon ghosts in the custom-size sticker */
.card__sticker > span:not(:last-child),
.card__sticker svg,
.card__sticker img,
.card__sticker::before {
    display: none !important;
    content: none !important;
}

/* Ensure the salon map and tabs block clears floated layout items and doesn't drift on mobile/desktop */
.salon-tabs-wrapper {
    clear: both !important;
    display: block !important;
}

@media (min-width: 1025px) {
    .header__like-wrap {
        margin-right: 20px !important;
    }
}

/* Mobile Header Fixes — единый блок (не прячем иконки, бургер справа, кружок на месте) */
@media (max-width: 1024px) {
    .header__bottom .header__search {
        display: none !important;
    }

    .header__bottom > .container {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    .header__bottom-wrapper {
        display: flex !important;
        flex-flow: row nowrap !important;
        align-items: center !important;
        justify-content: flex-start !important;
        width: 100% !important;
        padding: 8px 0 !important;
        gap: 6px !important;
        box-sizing: border-box !important;
        overflow: visible !important;
        transform: none !important;
    }

    .header__logo {
        flex-shrink: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center !important;
    }

    .header__logo img {
        max-height: 44px !important;
        width: auto !important;
    }

    .header__buttons {
        display: flex !important;
        flex-flow: row nowrap !important;
        gap: 6px !important;
        margin: 0 0 0 auto !important;
        padding: 0 !important;
        flex-shrink: 0 !important;
    }

    .header__buttons a {
        width: 38px !important;
        height: 38px !important;
        min-width: 38px !important;
        border-radius: 50% !important;
        padding: 0 !important;
        margin: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .header__buttons a.header__button-wa {
        display: none !important;
    }

    .header__buttons a svg {
        width: 18px !important;
        height: 18px !important;
    }

    .header__like-wrap,
    .header__bottom-wrapper > div[style*="position: relative"] {
        position: relative !important;
        margin: 0 !important;
        flex-shrink: 0 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 38px !important;
        height: 38px !important;
        overflow: visible !important;
    }

    .header__button-like {
        width: 38px !important;
        height: 38px !important;
        min-width: 38px !important;
        border-radius: 50% !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .header__button-like svg {
        width: 18px !important;
        height: 18px !important;
    }

    .header__like-count {
        position: absolute !important;
        top: 10px !important;
        left: 24px !important;
        right: auto !important;
        width: 16px !important;
        height: 16px !important;
        min-width: 16px !important;
        font-size: 9px !important;
        line-height: 1 !important;
        z-index: 10 !important;
    }

    .header__mob-menu {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 0 0 6px !important;
        padding: 0 !important;
        order: 99 !important;
        flex-shrink: 0 !important;
        width: 38px !important;
        min-width: 38px !important;
        height: 38px !important;
        overflow: visible !important;
        position: relative !important;
        z-index: 20 !important;
    }

    .header__mob-menu-toggle {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        align-items: center !important;
        justify-content: center !important;
        position: relative !important;
        width: 38px !important;
        height: 38px !important;
        min-width: 38px !important;
        background-color: #f5f5f7 !important;
        border: none !important;
        border-radius: 50% !important;
        margin: 0 !important;
        cursor: pointer !important;
        padding: 0 !important;
        z-index: 21 !important;
    }

    .header__mob-menu-toggle span:not(.header__mob-menu-toggle-like-count) {
        position: absolute !important;
        left: 50% !important;
        top: 50% !important;
        width: 18px !important;
        height: 2px !important;
        background-color: #1a1a1a !important;
        transform: translate(-50%, -50%) !important;
        transition: all 0.3s ease !important;
        display: block !important;
    }

    .header__mob-menu-toggle span:not(.header__mob-menu-toggle-like-count)::before,
    .header__mob-menu-toggle span:not(.header__mob-menu-toggle-like-count)::after {
        content: "" !important;
        position: absolute !important;
        left: 0 !important;
        width: 100% !important;
        height: 2px !important;
        background-color: #1a1a1a !important;
        transform: none !important;
        transition: all 0.3s ease !important;
        display: block !important;
    }

    .header__mob-menu-toggle span:not(.header__mob-menu-toggle-like-count)::before {
        top: -5px !important;
    }

    .header__mob-menu-toggle span:not(.header__mob-menu-toggle-like-count)::after {
        top: 5px !important;
    }

    .header__mob-menu-toggle.is-open span:not(.header__mob-menu-toggle-like-count) {
        background-color: transparent !important;
    }

    .header__mob-menu-toggle.is-open span:not(.header__mob-menu-toggle-like-count)::before {
        top: 0 !important;
        transform: rotate(45deg) !important;
    }

    .header__mob-menu-toggle.is-open span:not(.header__mob-menu-toggle-like-count)::after {
        top: 0 !important;
        transform: rotate(-45deg) !important;
    }

    .header__mob-menu-toggle-like-count {
        display: none !important;
    }
}

/* Global Mobile Layout Fixes to prevent horizontal scroll/overflow */
@media (max-width: 1024px) {
    html, body, .wrapper {
        max-width: 100% !important;
        overflow-x: hidden !important;
    }

    /* Ensure all horizontal tab lists and scrollable elements scroll instead of stretching the page */
    .no-scrollbar {
        overflow-x: auto !important;
        -ms-overflow-style: none !important;
        scrollbar-width: none !important;
    }
    .no-scrollbar::-webkit-scrollbar {
        display: none !important;
    }

    /* Prevent all 100vw elements from expanding beyond the wrapper and causing horizontal scroll */
    .card__main-image-wrapper,
    .card__slider1,
    .breadcrumbs__list,
    .card__tabs,
    .special__listing,
    .stones__listing,
    .catalog__stories-content,
    .compare,
    .materials,
    .stone__tabs,
    .stone__tags,
    .blog-block__wrapper .blog {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        overflow-x: auto !important;
        box-sizing: border-box !important;
    }
}





/* Benefits section: headings stay bold, description text normal weight */
.benefits__item p,
.benefits__item p.text_600_15,
.benefits__item p.text_600_13-m,
.benefits-card p {
    font-weight: 400 !important;
}

/* Fix breadcrumbs stretching across full width */
.breadcrumbs__list {
    justify-content: flex-start !important;
    display: flex !important;
    flex-wrap: wrap !important;
    width: auto !important;
    max-width: 100% !important;
}
.breadcrumbs__item:last-child {
    margin-left: 0 !important;
    flex: none !important;
}


/* Fix giant whitespace gap on mobile between gallery and contacts */
@media (max-width: 768px) {
    .card__top-grid {
        gap: 15px !important;
    }
    .card__top-left {
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }
    .card__slider1 {
        margin-bottom: 10px !important;
    }
}

/* Fix main image filling 100% width instead of 70% */
@media (max-width: 768px) {
    .card__main-image-wrapper,
    .card__main-image-wrapper a,
    .card__main-image-wrapper picture,
    .card__main-image-wrapper img {
        width: 100% !important;
        max-width: 100% !important;
        display: block !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box !important;
    }
}

/* Force full width responsive up to 1024px screen width */
@media (max-width: 1024px) {
    .card__top-grid {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    .card__top-left, .card__top-right {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    .card__main-image-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    .card__main-image-wrapper img {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        object-fit: cover !important;
    }
}

/* Filter tags: checkmark overlay must not block clicks (so active tags can be unchecked) */
.button-tag.activ::after,
.button-tag.checked_item::after,
.button-tag.is-active::after,
.button-tag:has(input:checked)::after {
    pointer-events: none;
}

/* ========== Fixes: header burger / badges / footer imgs / installment gap ========== */

/* 1) Burger must never clip off the right edge on narrow phones */
@media (max-width: 1024px) {
    .header,
    .header__fixed-wrapper,
    .header__fixed,
    .header__bottom,
    .header__bottom > .container {
        overflow: visible !important;
        max-width: 100vw !important;
        box-sizing: border-box !important;
    }

    body .header__bottom > .container {
        padding-left: 12px !important;
        padding-right: max(12px, env(safe-area-inset-right, 0px)) !important;
    }

    body .header__bottom-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        gap: 4px !important;
        overflow: visible !important;
    }

    body .header__logo {
        min-width: 0 !important;
        flex: 0 0 auto !important;
    }

    body .header__logo img {
        max-height: 40px !important;
        width: auto !important;
        height: auto !important;
    }

    /* Do not shrink messengers — that flattens circles into ovals */
    body .header__buttons {
        gap: 4px !important;
        flex-shrink: 0 !important;
        min-width: auto !important;
    }

    body .header__buttons a,
    body .header__button-like,
    body .header__like-wrap,
    body .header__mob-menu,
    body .header__mob-menu-toggle {
        width: 38px !important;
        height: 38px !important;
        min-width: 38px !important;
        min-height: 38px !important;
        max-width: 38px !important;
        max-height: 38px !important;
        aspect-ratio: 1 / 1 !important;
        border-radius: 50% !important;
        flex-shrink: 0 !important;
        align-self: center !important;
        box-sizing: border-box !important;
        transform: none !important;
    }

    body .header__mob-menu {
        margin-left: 2px !important;
        margin-right: 0 !important;
    }
}

@media (max-width: 380px) {
    /* Drop Max messenger icon first — keep burger + TG + favorites */
    body .header__buttons a.header__button-max {
        display: none !important;
    }

    body .header__buttons a,
    body .header__button-like,
    body .header__like-wrap,
    body .header__mob-menu,
    body .header__mob-menu-toggle {
        width: 34px !important;
        height: 34px !important;
        min-width: 34px !important;
        min-height: 34px !important;
        max-width: 34px !important;
        max-height: 34px !important;
        aspect-ratio: 1 / 1 !important;
        border-radius: 50% !important;
    }
}

/* 2) Catalog badges: stop flicker/twitch (backdrop-filter + transition:all on .easy) */
.mini-card__badges,
.mini-card__badges *,
.product-gallery-badges,
.product-gallery-badges * {
    transition: none !important;
    animation: none !important;
    transform: none !important;
    will-change: auto !important;
    backface-visibility: hidden;
}

.mini-card__badges .mini-card__cat-inner,
.product-gallery-badges .mini-card__cat-inner {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.mini-card__badges {
    position: absolute !important;
    z-index: 12 !important;
    pointer-events: none !important;
}

/* 4) Mobile footer: smaller payment / partners images */
@media (max-width: 768px) {
    .footer .footer__pay img,
    .footer .footer__partners img,
    .footer__column:last-child picture img,
    .footer__column picture img {
        max-width: 120px !important;
        width: auto !important;
        height: auto !important;
    }

    .footer .footer__pay,
    .footer .footer__partners {
        margin-top: 10px !important;
        margin-bottom: 6px !important;
    }
}

/* 5) Installment page: tighten gap under H1 */
.page-installment__top {
    gap: var(--kuhni-line-content-gap, 32px) !important;
}

@media (max-width: 991px) {
    .page-installment,
    .page-installment__top {
        gap: 20px !important;
    }

    .page-installment .page {
        padding-top: var(--kuhni-crumb-top-mobile, 16px) !important;
        padding-bottom: 0 !important;
        margin-bottom: 0 !important;
    }

    .page-installment .page__top {
        padding-bottom: 20px !important;
        margin-bottom: 0 !important;
    }

    .page-installment .page__top h1 {
        margin-bottom: 0 !important;
    }

    .page-installment .benefits {
        padding-top: 0 !important;
        padding-bottom: 32px !important;
        margin-top: 0 !important;
    }

    .page-installment .benefits h2 {
        margin-top: 0 !important;
        margin-bottom: 12px !important;
    }
}


