html, body {
    scroll-behavior: auto !important;
  }

.product-grid-action {
    font-size: 15px;
  }

.product-grid-extra li span {
    font-size: 15px;
}

.product-dealer li {
    display: block;
}

.product-dealer li span{
    font-size: 15px;
    white-space: normal;
    overflow-wrap: break-word;
    word-break: normal;
}

.product-dealer li i {
    font-size: 17px;
    margin-right: 5px;
} 

.no-border{
    border: none;
}

.h3-grey{
    color: #5e5d72;
    font-size: 22px;
    font-weight: 400;
}

.vendor-grid-meta {

}

.vendor-grid-meta li {
    align-items: flex-start;
}

.fotorama__thumb-border {
    border-color: #477CDB; 
}

.price-item {
    font-size: 17px;
    margin: 10px 0;
    display: block;
    width: 100%; /* Allows the element to take up the full width */
    overflow-wrap: break-word; /* Wrap long words */
    word-wrap: break-word;
    white-space: normal;
}

.price-item span {
    display: block;
    max-width: 100%;
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}

.price-item.negativo span::before {
    content: "\e14c"; /* Material Icons: close */
    color: red; /* Red icon */
}

.success-message {
    color: #155724;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: .25rem;
    padding: .75rem 1.25rem;
    text-align: center;
}

.error-message {
    color: #721c24;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: .25rem;
    padding: .75rem 1.25rem;
    text-align: center;
}

#contactForm label.error {
    color: red;
    font-size: 14px;
    text-align: left;
}

label{
    display:none;
}

label.form-label{
    display:block;
    margin-bottom:0;
    padding-bottom:0;
}

#formResult{
    display: none;
}

.advanced-search {
    display: none;
}

/* On mobile devices, the button takes up 100% width and stays at the bottom */
@media (max-width: 767px) {
    .search-button {
        flex: 0 0 100%;
        max-width: 100%;
        margin-top: 10px;
    }
    .banner{
      display:none;
    }
}

/* On medium and large screens, the "Cerca" button is to the right of the link */
@media (min-width: 768px) {
    .search-button {
        flex: 0 0 100%;
        max-width: 100%;
        margin-top: 10px;
    }
}

/* Responsiveness for medium screens (768px-991px): 2 fields per row */
@media (max-width: 991px) and (min-width: 768px) {
    .search-form .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    .search-button {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* On mobile devices (<768px), each field takes up the full width */
@media (max-width: 768px) {
    .search-form {
        flex-direction: column;
        align-items: stretch;
    }
}

/* Center the "Cerca" button across all screen sizes */
.search-button {
    display: flex;
    justify-content: center;
}


.banner h1 {
    font-size: 28px;
    font-weight: 700;
    text-transform: uppercase;
    color: #ffffff;
    margin-bottom: 12px;
}

.user-banner .breadcrumb {
    margin-bottom: 60px;
}

.common-card-body {
    display: table;
    table-layout: fixed;
    width: 100%;
}

.privacy-group p,
.privacy-group ol,
.privacy-group ul,
.privacy-group li,
.privacy-group span,
.privacy-group label,
.profile-article p,
.profile-article ol,
.profile-article ul,
.profile-article li,
.profile-article span,
.profile-article label {
  margin: 10px 0;
}

.privacy-group h2,
.profile-article h2 {
  margin: 20px 0;
}

.privacy-group h3,
.profile-article h3 {
  margin: 18px 0;
}

.privacy-group h4,
.profile-article h4 {
  margin: 15px 0;
}

.privacy-group h5, .privacy-group h6,
.profile-article h5, .profile-article h6 {
  margin: 12px 0;
}

.user-banner-data li h3 a {
    color: white;
    text-decoration: none;
}

.user-banner-data li h3 a:hover {
    color: #007bff;
}


/* MENU */
.sidebar-part {
    position: fixed;
    width: 100vw; /* Полная ширина экрана */
    height: calc(var(--vh, 1vh) * 100); /* Полная высота экрана */
    top: -100vh; /* Прячем меню за пределами экрана */
    left: 0;
    background: #ffffff;
    z-index: 1000;
    transition: all linear 0.3s;
    display: flex;
    flex-direction: column;
}

.sidebar-part.open {
    top: 0; /* Показываем меню */
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e3e3e3;
    padding: 15px 20px;
    background: #ffffff;
}

.sidebar-header a img {
    width: 150px;
}

.sidebar-content {
    flex-grow: 1;
    overflow-y: auto; /* Добавляем прокрутку */
    padding: 15px;
}

.sidebar-nav {
    padding: 15px 0;
}

.sidebar-group {
    margin-bottom: 20px;
}

.sidebar-title {
    color: #495057;
    opacity: 0.6;
    margin-bottom: 15px;
}

.nav-list {
    padding: 0;
    margin: 0;
    list-style: none;
}

.nav-item {
    margin: 10px 0;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 15px;
    font-size: 18px;
    text-decoration: none;
    color: #495057;
    background: #f8f9fa;
    border-radius: 5px;
}

.nav-link i {
    margin-right: 10px;
}

.sidebar-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

.product-grid-content h3{
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 10px;
    color: #5e5d72;
}

.product-dealer{
    margin-top: 10px;
}

/* Блок раскрытия SEO */
#seoBlock {
    margin-bottom: 1.5rem;
    width: 100%;
    overflow: hidden;
    box-sizing: border-box;
    border-radius: 8px;
    background-color: #F1F2F3;
  }
  
  /* Заголовок раскрытия */
  .seo-toggle-header {
    background-color: #F1F2F3;
    padding: 1rem 1.25rem;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #5e5d72;
    border-radius: 8px 8px 0 0;
  }
  
  /* Стрелка */
  .seo-toggle-header span {
    transition: transform 0.3s ease;
    font-size: 1rem;
    color: #5e5d72;
  }
  
  #seoBlock.active .seo-toggle-header span {
    transform: rotate(180deg);
  }
  
  /* Скрытый контент */
  .seo-toggle-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, padding 0.5s ease;
    background: #fff;
    font-size: 16px;
    color: #5e5d72;
    border-left: 1px solid #F1F2F3;
    border-right: 1px solid #F1F2F3;
    border-bottom: 1px solid #F1F2F3;
    border-radius: 0 0 8px 8px;
    padding: 0 1.25rem;
  }
  
  #seoBlock.active .seo-toggle-content {
    padding: 1.25rem;
    max-height: 2000px;
  }
  
  /* Стилизация текста внутри блока */
  #seoBlock h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
  }
  
  #seoBlock h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: #5e5d72;
  }
  
  #seoBlock p {
    margin-bottom: 1rem;
    line-height: 1.6;
    font-size: 1rem;
    color: #5e5d72;
  }
  
  #seoBlock ul {
    padding-left: 1.25rem;
    margin-bottom: 1rem;
  }
  
  #seoBlock li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
  }
  
  #seoBlock a {
    color: #007bff;
    text-decoration: none;
  }
  
  #seoBlock a:hover {
    text-decoration: underline;
  }
  
  #overview .common-card-body {
    font-size: 1rem;
    line-height: 1.6;
    color: #5e5d72;
    padding: 1rem 1.25rem;
    background-color: #fff;
    border-radius: 8px;
    margin-top: 0.5rem;
  }
  
  #overview .common-card-body p {
    margin-bottom: 1rem;
  }
  
  #overview .common-card-body ul {
    padding-left: 1.25rem;
    margin: 1rem 0;
    list-style-type: disc;
  }
  
  #overview .common-card-body li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
  }
  
  #overview .common-card-body strong {
    font-weight: 600;
    color: #222;
  }
  
  #overview .common-card-body a,
  #overview .common-card-body .phone-number {
    font-weight: 600;
    color: #007bff;
    text-decoration: none;
  }
  
  /* === БАННЕР ОБЩИЙ (справа и слева) === */
.hero-banner-background,
.hero-banner-background2 {
  height: calc(var(--vh, 1vh) * 100); /* ← ключевое изменение */
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  -webkit-box-shadow: 0px 15px 35px 0px rgba(0, 0, 0, 0.1);
  box-shadow: 0px 15px 35px 0px rgba(0, 0, 0, 0.1);
}

/* === ТЕКСТОВЫЕ БЛОКИ === */
.text-block {
  padding-right: 6vw;
}

.text-block2 {
  padding-left: 6vw;
}

/* === ВНУТРЕННИЙ КОНТЕЙНЕР === */
.hero-inner {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  border-radius: 12px;
}

/* === ЗАГОЛОВОК === */
.hero-title {
  font-size: 3.8rem;
  font-weight: 700;
  line-height: 1.2;
  text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.6);
  color: #fff;
}

.hero-title span {
  display: block;
  white-space: nowrap;
}

.auto-title {
  color: #5e5d72;
}

.auto-title-h2{
  padding-left: 18px;
  border-left: 3px solid #007bff;
}

/* === КНОПКИ === */
.hero-banner .btn {
  font-size: 1rem;
  font-weight: 600;
  min-width: 140px;
  transition: all 0.3s ease;
}

.hero-banner .btn-primary {
  background-color: #007bff;
  color: #fff;
  border: none;
}

.hero-banner .btn-secondary {
  background-color: #495057;
  color: #fff;
  border: none;
}

.hero-banner .btn:hover {
  opacity: 0.9;
}

/* === АНИМАЦИЯ === */
.animated-fadeup {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 1s ease-out 0.3s forwards;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === АДАПТИВНЫЕ СТИЛИ === */
@media (max-width: 1199px) {
  .hero-title {
    font-size: 3.4rem;
  }
  .text-block {
    padding-right: 4vw;
  }
  .text-block2 {
    padding-left: 4vw;
  }
}

@media (max-width: 992px) {
  .hero-title {
    font-size: 3rem;
  }
  .text-block {
    padding-right: 2vw;
  }
  .text-block2 {
    padding-left: 2vw;
  }
}

@media (max-width: 768px) {
  /* Меняем выравнивание флекс-блока */
  .hero-banner-background .d-flex,
  .hero-banner-background2 .d-flex {
    align-items: flex-start !important;
  }

  .hero-inner {
    max-width: 100%;
    padding-top: 20vh; /* ← смещение вверх */
  }

  .hero-title {
    font-size: 2.6rem;
    text-align: center;
    line-height: 1.3;
  }

  .hero-title span {
    display: block;
    white-space: normal;
    word-break: break-word;
  }

  .text-block,
  .text-block2 {
    padding: 0 20px;
    text-align: center;
    margin: 0 auto;
  }

  .hero-banner .btn {
    min-width: 120px;
    font-size: 0.95rem;
  }
}

@media (max-width: 575px) {

  .hero-title {
    font-size: 2rem;
    text-align: center;
    line-height: 1.3;
  }

}


/* === КНОПКА ACCEDI В ШАПКЕ === */
.header-user {
  background: rgba(255, 255, 255, 0.3);
  padding: 6px 12px;
  border-radius: 30px;
  margin-left: 25px;
  transition: all 0.3s ease;
}

.header-user span {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.header-user img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid #fff;
}

.header-user:hover {
  background: #007bff;
}

.header-user:hover span {
  color: #fff;
}

.header-user:hover img {
  border-color: #fff;
  filter: brightness(110%);
}

/* === Social icons === */
.social-icons {
  list-style: none;
  display: flex;
  gap: 16px;
  padding: 0;
  margin: 0;
}

.social-icons li a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  transition: 0.3s ease;
}

.social-icons li a:hover {
  transform: scale(1.15);
}

.social-icons .facebook a { color: #3b5998; }
.social-icons .instagram a { color: #E1306C; }
.social-icons .telegram a { color: #0088cc; }
.social-icons .whatsapp a { color: #25D366; }
.social-icons .youtube a { color: #FF0000; }

/* === Цвет текста меню при белой панели === */
.header-wrapper.sticky .menu-link,
.header-wrapper.sticky .menu-link a,
.header-wrapper.sticky .user-banner-menu-list li a,
.header-wrapper.sticky .header-user span {
  color: #495057 !important;
}

/* Цвет при наведении и активном пункте */
.header-wrapper.sticky .menu-link:hover,
.header-wrapper.sticky .menu-link.active,
.header-wrapper.sticky .user-banner-menu-list li a:hover,
.header-wrapper.sticky .user-banner-menu-list li a.active {
  color: #007bff !important;
}

/* Картинка профиля (если есть) — тёмная рамка */
.header-wrapper.sticky .header-user img {
  border-color: #C4C4C4 !important;
}
