.card:not(.col-12 .card) {
    transition: transform .2s ease, box-shadow .2s ease;
    cursor: pointer;
    overflow: hidden;
}

:root {
  --bs-primary: #FEE815 !important;
  --bs-primary-rgb: 220,60,70;
  --bs-secondary: #912d31 !important;
  --bs-secondary-rgb: 33,37,40;
  --bs-warning: #f3d45e !important;
  --bs-warning-rgb: 250, 204, 21;
  --bs-light: #FFFFFF !important;
  --bs-dark: #EBEEF3;
  --header-height: 126px;
  --header-fixed-height: 56px;
  --header-mobile-height: 197px;
  --bs-text: #000000;
}
body {
  background-color: var(--bs-light) !important;
  color: var(--bs-dark) !important;
  font-family: 'Montserrat', sans-serif;
}
.section {
  padding: 40px 0;
}
.section-dark {
  background: #2b2b2b;
  color: #fff;
}
.accent {
  color: var(--bs-primary);
}
.btn-primary {
  background-color: var(--bs-primary) !important;
  border: none !important;
}
.btn-primary:hover {
  background-color: var(--bs-dark) !important;
}
nav.navbar a:not(a.btn), h1, h2, h3, h4, h5 {
    color: var(--bs-text);
}
.hero-wrapper > * {
  position: relative;
  /*z-index: 1;*/
}
.hero {
  padding: 60px 0 40px;
  color: #fff;
}
h5.card-title {
    color: var(--bs-dark);
}
.no-accent {
    color: var(--bs-light);
}
.search-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  z-index: 1000;
  max-height: 400px;
  overflow-y: auto;
  margin-top: 5px;
}
.search-item {
  padding: 10px 15px;
  cursor: pointer;
}
.search-item:hover {
  background: #f5f5f5;
}
.product-card {
  transition: all 0.3s ease;
}
.product-image {
  height: 200px;
  overflow: hidden;
  background: transparent;
}
.product-image img {
  width: 100%;
  height: 100%;
  object-fit: scale-down;
  padding: 10px;
  background-color: transparent;
}
.accent {
  color: var(--bs-primary);
}
.card-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.feature-item {
  transition: all 0.3s ease;
}
.feature-item:hover {
  transform: translateY(-3px);
}
.feature-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 50%;
  background-color: var(--bs-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin-top: 5px;
}
.feature-icon img {
  width: 25px;
  height: 25px;
}
.row > .col-md-6.d-flex {
    height: auto;
}
/*.image-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
}
.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}*/
.city-list {
    list-style: none;
    padding-left: 0;
}
.city-list li {
    position: relative;
    padding-left: 1.5em;
    margin-bottom: 0.5em;
    font-size: 20px;
    color: var(--bs-text);
}
.city-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 0.6em;
    height: 0.6em;
    background-color: var(--bs-primary);
    border-radius: 50%;
}
.img-round {
    position: relative;
    display: inline-block;
    overflow: visible;
}
.img-round img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 18px;
}
.img-round::after {
    content: "Отправим счет\A в течение 20 минут";
    white-space: pre-line;
    position: absolute;
    top: 0;
    right: 0;
    transform: translate(30%, -30%);
    width: 160px;
    height: 160px;
    background: var(--bs-primary);
    color: var(--bs-text);
    font-size: 16px;
    text-align: center;
    line-height: 1.3;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    border-radius: 50%;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    font-weight: 600;
}
.how-we-do-it .row.align-items-stretch {
    gap: 5%;
}
@media (min-width: 768px) {
    .how-we-do-it .row.align-items-stretch > .col-md-6:first-child {
        width: 45%;
    }
}
@media (max-width: 767px) {
    .how-we-do-it .row.align-items-stretch {
        flex-direction: column;
        gap: 65px;
    }
}
a.logo-container {
    display: flex;
    gap: 3px;
    align-items: end;
    padding: 0;
}
.logo-text {
    line-height: 1;
    margin-top: -7px;
    transition: transform 0.4s ease;
    transform: translateZ(0);
}
footer .logo-text {
    color: var(--bs-light);
}
.bg-dark a.navbar-brand.logo-container, .header-top.py-3 a.navbar-brand.logo-container, .header-top.py-2 a.navbar-brand.logo-container {
    color: var(--bs-text);
}
.contact-map iframe {
    width: 100%;
    height: 250px;
    border: 0;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
}
.logo-container:hover .logo-text {
    transform: translateX(5px);
}
@media (max-width: 768px) {
    .section.how-we-do-it .col-md-6.d-flex {
        padding-right: 50px;
    }
    button.custom-close {
        display: none;
    }
}
.search-block {
    width: 100%;
    max-width: 500px;
}
#search-form input {
    border: none;
    background-color: var(--bs-dark);
    border-radius: 10px;
}
.form-control:focus {
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
  border-color: var(--bs-dark);
}
.shadow-sm {
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
.custom-modal {
    margin: 0 auto;
}
.custom-close {
    position: absolute;
    right: -50px;
    width: 50px;
    height: 50px;
    background: var(--bs-primary);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}
.custom-close:hover {
    transform: rotate(90deg);
}
.custom-close span {
    position: absolute;
    width: 20px;
    height: 2px;
    background: var(--bs-text);
}
.custom-close span:first-child {
    transform: rotate(45deg);
}
.custom-close span:last-child {
    transform: rotate(-45deg);
}
.dropdown-submenu {
    position: relative;
}
li.dropdown-submenu > ul.dropdown-menu {
    top: 0;
    left: 100%;
    margin-left: 0.1rem;
    display: block;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    visibility: hidden;
}
li.dropdown-submenu.show > ul.dropdown-menu,
.nav-link.dropdown-toggle:hover > ul.dropdown-menu {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}
.hero-wrapper main.container.py-4 {
    display: none;
}
@media (max-width: 767px) {
    .hero.section .col-md-6.text-center {
        margin-top: 20px;
        margin-bottom: -10px;
    }
    .section {
        padding: 40px 0;
    }
}
.custom-equal {
    display: grid;
    grid-auto-rows: 1fr;
}
li.list-group-item.d-flex.justify-content-between.align-items-center {
    background: none;
}
li.list-group-item.d-flex.justify-content-between.align-items-center a {
    z-index: 10;
}
img.category-background-img {
    position: absolute;
    width: auto;
    height: 65%;
    z-index: 0;
    right: 10px;
    bottom: 5px;
    opacity: 0.7;
    pointer-events: none;
    filter: blur(1px);
    transition: filter 0.1s ease-in, transform 0.2s ease-in;
}
.card:hover img.category-background-img {
    filter: blur(0px);
    transform: scale(1.02);
}
.stretched-link::after {
    position: absolute;
    inset: 0;
    content: "";
    z-index: 2;
}
.menu-custom {
    display: block;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}
.menu-custom.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.categories-main .col-md-6.col-lg-4 .card {
    border-radius: 0.25rem;
}
/*.categories-main .card {
    position: relative;
    z-index: 1;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    transform: translateY(0) scale(1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.categories-main .card:hover {
    transform: translateY(-1px) scale(1.01);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.15);
    z-index: 20;
}
.categories-main .col-md-6.col-lg-4 {
    padding-right: 0;
    padding-left: 0;
}*/
.card-header {
    position: relative;
    overflow: hidden;
    background: none;
}
.card-header::after {
    content: "→";
    position: absolute;
    right: 12px;
    top: 38%;
    transform: translateY(-50%) translateX(10px);
    color: var(--bs-text);
    font-size: 1.4rem;
    opacity: 0;
    transition: all 0.2s ease-in;
}
.card:hover .card-header::after {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}
.contact-map iframe {
    border-radius: 0;
}
#lightgallery {
    background-color: var(--bs-dark);
}
#lightgallery img {
    object-fit: scale-down;
}
.lg-backdrop.in {
    background: rgba(33, 37, 41, 0.4);
    backdrop-filter: blur(7px);
}
.question-block, .question-block input, .question-block textarea {
  border-radius: 10px;
}
.question-block button {
    background-color: var(--bs-primary);
    color: var(--bs-text);
    border-radius: 10px;
    font-weight: 700;
}
.question-block .form-control {
  background: var(--bs-light);
}
.navbar.navbar-expand-lg > .container {
    gap: 10px;
}
.mega-menu {
  width: 670px;
  border-radius: 12px;
  border: none;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.sidebar-catalog {
  position: sticky;
  top: 20px;
  background: #fff;
  border-radius: 4px;
  border: 1px solid rgba(0,0,0,0.06);
  padding: 14px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.04);
}
.sidebar-catalog__title {
  font-size: 15px;
  font-weight: 700;
  color: #111;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.catalog-tree {
  list-style: none;
  margin: 0;
  padding: 0;
}
.catalog-item {
  margin-bottom: 6px;
}
.catalog-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 10px;
  border-radius: 4px;
  color: #222;
  text-decoration: none;
  font-weight: 500;
  transition: all .2s ease;
}
.catalog-link:hover {
  color: var(--bs-primary);
}
.catalog-link.active {
  color: var(--bs-primary);
  font-weight: 600;
}
.catalog-submenu {
  list-style: none;
  margin: 4px 0 0 0;
  padding: 6px 0 6px 14px;
  border-left: 1px solid rgba(0,0,0,0.08);
  display: none;
}
.catalog-item.open > .catalog-submenu {
  display: block;
}
.catalog-sublink {
  display: block;
  padding: 6px 8px;
  font-size: 13px;
  text-decoration: none;
  transition: all .2s ease;
  color: #555;
}
.catalog-sublink:hover {
  color: var(--bs-primary);
}
.catalog-sublink.active {
  color: var(--bs-primary);
  font-weight: 600;
}
.site-header {
  background: var(--bs-light);
}
.logo-container img {
  height: 42px;
}
.header-search {
  flex: 1;
  max-width: 420px;
}
.header-search-input {
  padding-right: 40px;
}
.header-search-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: 0;
}
.header-contacts {
  min-width: 160px;
  line-height: 1.2;
  display: flex;
  gap: 15px;
  font-weight: 700;
  font-size: 20px;
}
.header-top .btn {
  white-space: nowrap;
}
.navbar-dark .nav-link {
  position: relative;
}
.phone-text {
    color: var(--bs-text);
}
.search-dropdown .search-item:first-child {
    border-radius: 4px 0 0 0;
}
.about-section {
  background: var(--bs-light);
  position: relative;
  padding: 80px 0;
}
.about-box {
  position: relative;
  padding: 60px 50px;
  background: #ffffff;
  overflow: hidden;
}
.about-quote-mark {
  position: absolute;
  font-size: 60px;
  font-weight: 700;
  color: var(--bs-primary);
  top: 0;
  left: 20px;
  line-height: 1;
  pointer-events: none;
}
.about-quote-mark.bottom {
  top: auto;
  bottom: 0;
  right: 20px;
  left: auto;
}
.about-title {
  font-weight: 600;
  letter-spacing: 0.5px;
}
.about-text {
  color: #2b2b2b;
  font-size: 17px;
  line-height: 1.9;
}
.workflow-section {
  padding: 60px 0 60px 0;
  background-color: var(--bs-dark);
}
.workflow-row {
  display: flex;
  justify-content: space-evenly;
  gap: 40px;
}
.workflow-item {
  opacity: 0;
  transform: translateY(60px);
  filter: blur(6px);
  transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.workflow-item i {
  font-size: 48px;
  width: 90px;
  height: 90px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}
.workflow-item.visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
  text-shadow: 0 0 30px rgba(13,110,253,0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.workflow-item:nth-child(1) {
  transition-delay: 0.1s;
}
.workflow-item:nth-child(2) {
  transition-delay: 0.25s;
}
.workflow-item:nth-child(3) {
  transition-delay: 0.4s;
}
@media (max-width: 768px) {
  .workflow-row {
    flex-direction: column;
    gap: 30px;
  }
}
.partnership-h {
    padding-bottom: 40px;
}
.workflow-footer-trigger {
  margin-top: 60px;
  display: flex;
  justify-content: center;
  position: relative;
}
.workflow-arrows {
  font-size: 28px;
  color: var(--bs-primary);
  cursor: pointer;
  letter-spacing: 2px;
  transition: 0.3s;
  user-select: none;
}
.workflow-arrows:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}
.workflow-disclaimer {
  position: absolute;
  bottom: -10px;
  text-align: center;
  padding: 20px 30px;
  opacity: 0;
  transform: translateY(30px);
  pointer-events: none;
  transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.workflow-footer-trigger:hover .workflow-disclaimer {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.workflow-disclaimer {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.text-primary {
    color: var(--bs-primary);
}
.stats-section {
  background: var(--bs-light);
}
.stats-title-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}
.stats-title {
  font-weight: 600;
  color: var(--bs-dark);
  margin: 0;
  white-space: nowrap;
}
.stats-line {
  height: 2px;
  width: 100%;
  background: var(--bs-primary);
}
.stats-grid {
  margin-top: 20px;
}
.stat-item {
  text-align: center;
  padding: 30px 20px;
  background: #fff;
  transition: all 0.3s ease;
}
.stat-number {
  font-size: 36px;
  font-weight: 700;
  color: var(--bs-primary);
  line-height: 1.2;
}
.stat-text {
  font-size: 14px;
  color: rgba(0,0,0,0.6);
  margin-top: 8px;
}
.payment-row {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.payment-item {
  flex: 1;
  min-width: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px 25px;
  background: #ffffff;
}
.payment-text {
  font-weight: 500;
  color: #1f1f1f;
}
.payment-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.payment-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bs-primary);
  font-size: 22px;
}
@media (max-width: 768px) {
  .payment-row {
    flex-direction: column;
  }
  .payment-arrow {
    margin: 10px 0;
  }
  .payment-item {
      width: 100%;
  }
}
.payment-arrow i {
  animation: arrowPulse 1.8s infinite;
}
@keyframes arrowPulse {
  0%, 100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(4px);
  }
}
.payment-arrow i {
  animation: arrowPulse 1.8s infinite;
}
@media (max-width: 768px) {
  @keyframes arrowPulseVertical {
      0%, 100% {
        transform: translateY(0);
      }
      50% {
        transform: translateY(4px);
      }
    }
    @media (max-width: 768px) {
      .payment-arrow i {
        animation: arrowPulseVertical 1.8s infinite;
      }
    }
    .payment-row .bi-arrow-right::before {
        transform: rotate(90deg);
    }
}
.warehouses-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-top: 30px;
  color: var(--bs-dark);
}
@media (max-width: 769px) {
  .warehouse-item {
    flex: 0 0 calc(50% - 15px);
    text-align: center;
  }
}
@media (min-width: 770px) {
  .warehouse-item {
    flex: 0 0 calc(25% - 15px);
    text-align: center;
  }
}
.warehouse-item {
  position: relative;
  padding: 12px 6px;
  text-align: center;
  color: var(--bs-light);
  font-weight: 500;
  cursor: default;
  transition: 0.3s ease;
}
.warehouse-item::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 50%;
  height: 2px;
  background: var(--bs-primary);
  transition: width 0.3s ease;
}
.warehouses-section {
  position: relative;
  background: var(--bs-dark);
  overflow: hidden;
}

.header-top {
  transition: opacity 0.25s ease, transform 0.25s ease, max-height 0.3s ease;
  overflow: hidden;
}
.site-header .navbar {
  transition: all 0.3s ease;
}
.site-header {
  position: sticky;
  top: 0;
  will-change: transform;
  width: 100%;
  z-index: 1020;
  transition: all 0.3s ease;
}
.header-fixed {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  backdrop-filter: blur(10px);
  z-index: 1020;
  transform: translateY(0);
}
.header-fixed .header-top {
  padding: 8px 0;
}
.header-fixed .header-top, .header-fixed .navbar {
  min-height: 56px;
  display: flex;
  align-items: center;
}
/*.header-fixed .header-contacts,
.header-fixed .btn {
  display: none;
}*/
.header-fixed .logo-container img {
  height: 36px;
}
@media (max-width: 991px) {
  .header-mobile .header-top {
    padding: 10px 0;
  }
  .header-mobile .header-contacts, .header-mobile .btn {
    display: none;
  }
  .header-mobile .logo-container img {
    height: 40px;
  }
  .header-mobile .navbar {
    padding: 8px 0;
  }
  header .btn-span {
      display: none;
  }
}
@media (max-width: 991px) {
  .header-mobile-fixed {
    position: fixed;
    top: 0;
    width: 100%;
    background: #000;
  }
  .navbar.navbar-expand-lg.navbar-dark.bg-dark.py-2 .container, .navbar.navbar-expand-lg.navbar-dark.bg-transparent.py-2 .container {
      justify-content: flex-end;
  }
  .header-mobile-fixed .navbar {
    padding: 10px 0;
  }
}
.header-fixed {
  background: rgba(0,0,0,0.9);
}
.site-header {
  transition: transform 0.35s ease, background 0.3s ease;
}
.site-header.header-hidden {
  transform: translateY(-100%);
}
.site-header.header-visible {
  transform: translateY(0);
}
.header-fixed, .header-mobile-fixed {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1100;
}
.site-header.bg-transparent.header-visible.header-mobile.header-mobile-fixed, .site-header.bg-transparent.header-visible.header-fixed, .site-header.bg-transparent.header-fixed {
    background-color: var(--bs-dark) !important;
}
.site-header.bg-transparent.header-visible.header-fixed .header-top.py-3, .site-header.header-visible.header-fixed .header-top.py-3 {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
}
.callback-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 10px;
  padding: 10px 16px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  height: 35px;
  font-weight: 700;
  font-size: 16px;
}
.callback-btn:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}
.callback-btn:hover .callback-icon {
  transform: translateX(2px);
  opacity: 1;
}
.callback-btn:active {
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.mobile-contacts {
     display: none;
}
@media (max-width: 991px) {
  .navbar-collapse {
    position: fixed;
    inset: 0;
    width: 85vw;
    height: 100vh;
    background: var(--bs-light);
    color: var(--bs-primary);
    display: flex;
    align-items: start;
    justify-content: center;
    flex-direction: column;
    transform: translateX(-100%);
    transition: transform 0.35s ease;
    z-index: 1050;
  }
  .navbar-collapse.show {
    transform: translateY(0);
  }
  header .navbar-nav {
    flex-direction: column;
    gap: 20px;
    text-align: center;
    align-items: start;
    padding-left: 30px;
    background-color: transparent !important;
  }
  .mobile-contacts {
      display: flex;
  }
  .nav-link {
    color: var(--bs-text) !important;
    font-size: 20px;
  }
  .navbar-toggler {
    z-index: 1100;
  }
}
header {
  transition: transform 0.25s ease, opacity 0.25s ease;
  will-change: transform;
  z-index: 1100;
  position: sticky;
  top: 0;
}
.site-header.bg-transparent.header-mobile .navbar-collapse.collapse.show, .site-header.header-mobile .navbar-collapse.collapse.show, .site-header.bg-transparent.header-mobile .navbar-collapse.collapsing, .site-header.header-mobile .navbar-collapse.collapsing {
    top: var(--header-height, 120px);
}
.site-header.bg-transparent.header-mobile.header-mobile-fixed .navbar-collapse.collapse.show, .site-header.header-mobile.header-mobile-fixed .navbar-collapse.collapse.show, .site-header.bg-transparent.header-mobile.header-mobile-fixed .navbar-collapse.collapsing, .site-header.header-mobile.header-mobile-fixed .navbar-collapse.collapsing {
    top: var(--header-fixed-height, 120px);
}
/*body:has(.navbar-collapse.collapse.show) {
  overflow: hidden;
  height: 100vh;
}*/
body.header-is-fixed {
  padding-top: var(--header-height);
}
body:has(.header-fixed) main {
  padding-top: calc(var(--header-height) + 3rem) !important;
}
.site-header.header-shrink {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.site-header .header-top {
  transition: padding 0.3s ease;
}
.site-header.header-shrink .header-top {
  opacity: calc(1 - var(--header-shrink, 0));
  transform: translateY(calc(-10px * var(--header-shrink, 0)));
  max-height: calc(80px * (1 - var(--header-shrink, 0)));
  padding: calc(1 - var(--header-shrink, 0)) !important;
}
.site-header.header-hidden {
  transform: translateY(-100%);
}
.site-header.bg-transparent.header-shrink {
    background: var(--bs-dark) !important;
}
@media (max-width: 506px) {
    .hero-wrapper {
      margin-top: calc(-1 * var(--header-mobile-height));
      padding-top: calc(var(--header-mobile-height));
    }
    .site-header.bg-transparent.header-shrink {
        background: var(--bs-dark) !important;
    }
}
header .navbar-nav {
    background-color: var(--bs-dark);
    border-radius: 10px;
    color: var(--bs-text);
    height: 36px;
}
header .navbar-nav li {
    color: var(--bs-text);
}
.text-black {
    color: var(--bs-text);
}
a.text-black:hover {
    color: var(--bs-text);
}
@media (min-width: 992px) {
    .collapse.navbar-collapse {
        width: 65%;
        flex-grow: 0;
    }
}
.right-header-block {
    display: flex;
    flex-wrap: wrap;
    width: 45%;
    gap: 10px;
}
.h-main {
    font-size: 46px;
}
.image-block {
  position: relative;
  display: inline-block; /* важно, чтобы размер шёл от картинки */
}
.bg-footer {
    background-color: #293543;
}
.round-col {
    border-radius: 10px;
}
.stretched-link, .stretched-link:after {
    border-radius: inherit;
}
.card {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    border: none;
}
.disclaimer {
    font-size: 12px;
    color:var(--bs-dark);
    opacity: 0.6;
    text-decoration: none;
 }
p.about-us {
    font-size: 82px;
    font-weight: 700;
    text-align: left;
    margin-bottom: 0;
}
p {
    color: var(--bs-text);
    font-size: 20px;
}
p.how-we-do-it {
    font-size: 25px;
}
.about-us-after {
    font-size: 25px;
    margin-bottom: 0;
    }
.flex-direction-column {
    flex-direction: column;
}
h2 {
    font-weight: 600;
}
footer p {
    color: #D4D4D4;
}
p.card-title {
    text-align: center;
    font-weight: 500;
    font-size: 22px;
}
.product-card .card-body {
    background-color: var(--bs-primary);
    border-radius: 10px;
    padding: 5px 1rem;
}
.client-choice .product-card .card-body {
    background-color: #000;
}
.article-content h2 {
    margin-bottom: 2rem;
}
body a:not(.logo-container):hover, body a.active, body span.active, .product-card:hover p.text-dark {
    color: #919191 !important;
}
.w-auto {
    width: auto;
}
.product-block {
    display: grid;
    grid-template-columns: 2fr 3fr;
    grid-template-rows: 1fr 1fr;
    gap: 15px;
}
.product-block > div {
    background: var(--bs-dark);
    border-radius: 10px;
    padding: 20px;
}
.left-block {
    grid-row: span 2;
}
.teasers {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.teaser {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    color: var(--bs-text);
}
.teaser i {
    font-size: 18px;
}
.right-bottom {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.price {
    font-size: 24px;
    font-weight: 500;
    color: var(--bs-text);
    text-align: center;
}
@media (max-width: 768px) {
    .custom-block {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    .left-block {
        grid-row: auto;
    }
    footer .callback-btn {
      margin: auto;
    }
}
.stock-title {
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 18px;
}
.stock-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.stock-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--bs-text);
}
.stock-list li::after {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #4CAF50;
    flex-shrink: 0;
}
#openOrderModal {
    font-weight: 700;
}
@media (max-width: 1200px) {
    .product-block {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    .teaser {
        white-space: normal;
    }
    .left-block {
        grid-row: auto;
    }
}
.card-body h2, .card-body h3 {
    margin-bottom: 2rem;
    margin-top: 2rem;
    }
.list-group.list-group-flush li {
    background: none;
}
.about-bg {
    position: relative;
    border-radius: 12px;
    overflow: visible;
    background: url('/media/images/company-back.png') center/cover no-repeat;
    padding: 40px;
    min-height: 350px;
}
.about-content {
    position: relative;
    z-index: 2;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.about-title {
    color: #fff;
    margin-bottom: 20px;
}
.cta-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: auto;
}
.cta-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--bs-primary);
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
}
.cta-circle::after {
    content: "";
    position: absolute;
    inset: -3px;
    border: 2px dotted var(--bs-primary);
    border-radius: 50%;
    transition: none;
    animation: rotatePulseBack 0.8s ease forwards;
}
.cta-circle:hover::after {
    animation: rotatePulse 0.8s ease forwards;
}
.cta-text {
    color: #fff;
}
.about-card {
    position: absolute;
    right: 20px;
    bottom: -40px;
    width: 420px;
    z-index: 3;
}
.about-card-top {
    background: var(--bs-primary);
    color: var(--bs-text);
    padding: 20px;
    border-radius: 12px 12px 0 0;
}
.about-card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background: var(--bs-text);
    color: #fff;
    text-decoration: none;
    border-radius: 0 0 12px 12px;
}
.about-card-bottom {
    height: 40px;
}
@media (max-width: 992px) {
    .about-bg {
        padding: 25px;
    }

    .about-card {
        position: static;
        margin-top: 20px;
        width: 100%;
    }
}
@keyframes rotatePulse {
    0% {
        transform: rotate(0deg) scale(1);
        inset: -3px;
    }
    30% {
        transform: rotate(90deg) scale(1.1);
    }
    50% {
        transform: rotate(90deg) scale(1.2);
    }
    65% {
        transform: rotate(90deg) scale(1.05);
    }
    80% {
        transform: rotate(90deg) scale(1.2);
    }
    100% {
        transform: rotate(90deg) scale(1);
        inset: -10px;
    }
}
@keyframes rotatePulseBack {
    0% {
        transform: rotate(90deg) scale(1);
        inset: -10px;
    }
    20% {
        transform: rotate(90deg) scale(1.2);
    }
    40% {
        transform: rotate(90deg) scale(1.05);
    }
    60% {
        transform: rotate(90deg) scale(1.2);
    }
    80% {
        transform: rotate(45deg) scale(1.1);
    }
    100% {
        transform: rotate(0deg) scale(1);
        inset: -3px;
    }
}
.cta-circle .bi.bi-arrow-right {
    transition: transform 0.3s ease;
}
body:has(#callbackModal.modal.fade.show) .cta-circle .bi.bi-arrow-right {
    transform: rotate(90deg);
}
.payment .row .col-md-6.pt-4 {
    gap: 15px;
    padding-right: 2rem;
 }
.contact-wrapper {
    display: flex;
    gap: 15px;
}
.contact-card-block {
    flex: 1;
    color: var(--bs-text);
}
.contact-map-block {
    flex: 2;
}
.contact-map {
    height: 100%;
    border-radius: 10px;
    overflow: hidden;
}
.contact-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
}
@media (max-width: 768px) {
    .contact-wrapper {
        flex-direction: column;
        gap: 0;
    }
    .contact-card-block,
    .contact-map-block {
        flex: none;
        width: 100%;
    }
    .contact-card {
        border-radius: 10px 10px 0 0;
    }

    .contact-map {
        aspect-ratio: 1 / 1;
        border-radius: 0 0 10px 10px;
        box-shadow: 0 -8px 20px -5px rgba(0, 0, 0, 0.15);
    }
}
.contact-wrapper a {
    color: var(--bs-text);
}
.divider {
    width: 100%;
    height: 1px;
    background-color: #626568;
}
.gallery-wrapper {
    display: flex;
    gap: 12px;
    height: 100%;
    max-height: 300px;
}
.gallery-thumbs {
    width: 100px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
    flex-shrink: 0;
}
.gallery-thumb {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: scale-down;
    border: 1px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease-in;
    padding: 5px;
}
.gallery-thumb:hover {
    border-color: #0d6efd;
}
.active-thumb {
    border: 2px solid #0d6efd;
}
.gallery-main {
    flex: 1;
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    height: 100%;
}
.main-product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
}
.footer-catalog {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.footer-catalog-column {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.footer-category-link {
    color: #D4D4D4;
    text-decoration: none;
    font-size: 15px;
    line-height: 1.3;
    transition: 0.2s ease;
}
.footer-category-link:hover {
    color: #ffffff;
}
body .footer-catalog-divider {
    display: none !important;
}
@media (min-width: 1200px) {
    .footer-catalog {
        flex-direction: row;
        align-items: stretch;
        height: 100%;
        gap: 20px;
    }
    .footer-catalog-column {
        flex: 1;
        padding: 0 20px;
    }
    .footer-catalog-column:first-child {
        padding-left: 0;
    }
    .footer-catalog-column:last-child {
        padding-right: 0;
    }
    body .footer-catalog-divider {
        width: 1px;
        background: rgba(255,255,255,0.15);
        flex-shrink: 0;
        display: block !important;
    }
}
.product-description p {
    font-size: 15px;
}
.gallery-block {
    background-color: var(--bs-dark);
    border-radius: 14px;
    padding: 20px;
}
.gallery-thumbs img {
    background-color: #fff;
}
@media (min-width: 768px) and (max-width: 1200px) {
    .gallery-block {
        background-color: var(--bs-light);
        border-radius: 0;
    }
    .gallery-wrapper.flex-grow-1 {
        background-color: var(--bs-dark);
        border-radius: 14px;
        padding-left: 10px;
    }
}
form label {
    color: #6c757d;
}
section.how-we-do-it .w-100.pb-4:not(.w-100.pb-4.pt-4:last-child) {
    border-bottom: 1px solid;
}
@media (max-width: 991px) {
    section.how-we-do-iy .row.align-items-stretch {
       flex-direction: column;
    }
}
@media (max-width: 468px) {
    section.how-we-do-it .row.align-items-stretch {
        align-items: unset !important;
        gap: 0;
    }
}
@media (max-width: 620px) {
    section.how-we-do-it .img-round {
        display: none;
    }
}
.categories-block .row .col-12.mb-4, .categories-block .row .col-6.mb-4 {
    min-height: 320px;
}
.navbar-brand.fw-bold.logo-container.logo-mobile {
    display: none;
}
header .callback-btn svg {
        display: none;
    }
@media (max-width: 991px) {
    .header-top.py-2.pt-3 {
        display: none;
    }
    .navbar-brand.fw-bold.logo-container.logo-mobile {
        display: block;
    }
    .navbar.navbar-expand-lg.navbar-dark.bg-transparent.py-2 .container {
        justify-content: space-between;
    }
    .callback-btn:active {
        box-shadow: none;
    }
    .callback-btn:hover {
        box-shadow: none;
        background-color: #fff !important;
    }
    #mobile-search-form input.form-control:focus, #mobile-search-form input.form-control {
        color: var(--bs-text) !important;
        background-color: #fff !important;
        border: none !important;
        box-shadow: none !important;
    }
    #mobile-search-form {
        border: none !important;
    }

    header .container {
        flex-wrap: nowrap !important;
    }
    header .callback-btn {
        background-color: #fff !important;
    }
    header .callback-btn svg {
        display: flex;
    }
    #mobile-search-dropdown {
        margin-top: 0 !important;
        border: none;
        border-radius: 0;
    }
    .navbar-collapse {
        top: 58px;
    }
    img.category-background-img {
        height: 60%;
    }
}
.right-header-block {
        justify-content: flex-end;
    }
@media (max-width: 1200px) {
    .position-relative.search-block.header-search {
        display: none;
    }
}
@media (max-width: 440px) {
    .logo-text:not(footer .logo-text) {
        display: none;
    }
}
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
}
.search-overlay-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  height: 130vh;
}
#mobile-search-dropdown:not(#mobile-search-dropdown:has(.search-item)) {
    display: none;
}
.search-overlay-panel {
  position: relative;
  background: #fff;
  padding: 15px;
  transform: translateY(-100%);
  transition: transform 0.3s ease;
}
.search-overlay.active .search-overlay-panel {
  transform: translateY(0);
}
.search-dropdown {
  background: #fff;
  max-height: 60vh;
  overflow-y: auto;
}
body:has(.navbar-collapse.show) .navbar-overlay {
  opacity: 1;
  visibility: visible;
}
.navbar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  z-index: 1010; /* ниже меню */
}
.mobile-phone::before,
.mobile-mail::before {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;

    font-family: "bootstrap-icons";
    font-style: normal;
    font-weight: normal;
    line-height: 1;
}

.mobile-phone::before {
    content: "\f5c1"; /* telephone-fill */
}

.mobile-mail::before {
    content: "\f32f"; /* envelope-fill */
}
.mobile-phone, .mobile-mail {
    align-items: center;
}
.navbar-dark .navbar-toggler-icon {
    transition: background-image .2s ease;
}
.container:has(.navbar-collapse.collapse.show) .navbar-toggler .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='%23000000' stroke-linecap='round' stroke-width='2' d='M7 7L23 23M23 7L7 23'/%3E%3C/svg%3E");
    background-size: 1.5rem;
}
@media (max-width: 991px) {
    .catalog-dropdown .dropdown-menu {
        display: none !important;
    }

    .catalog-dropdown.show .dropdown-menu {
        display: none !important;
    }
}
@media (max-width: 991px) {
    .navbar-nav .nav-link.active {
        border-left: 3px solid var(--bs-primary);
        padding-left: 12px;
    }
    li.nav-item {
        width: 100%;
        text-align: left;
    }
}
.sidebar-catalog span.active {
    border-left: 3px solid var(--bs-primary);
    padding-left: 12px;
}
@media (min-width: 992px) {
    .navbar-nav .active {
        border-top: 2px solid var(--bs-primary);
        padding-top: calc(0.5rem - 3px);
    }
}
@media (max-width: 767px) {
    .row .about-us, .row .about-us-after {
        text-align: center;
    }
}