*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'PT Sans', 'Segoe UI', 'Arial', sans-serif;
  background: #f7f7f7;
  min-height: 100vh;
  color: #333333;
  font-size: 16px;
  line-height: 1.42857;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
}

.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 16px;
}


/* ============================================================
   HEADER TOP — контакты и соцсети
   ============================================================ */

.header-top-area {
  background: #f8f9fa;
  border-bottom: 1px solid #eeeeee;
  padding: 6px 0;
  font-size: 13px;
  color: #4e4e4e;
  overflow: visible;
  z-index: 110;
  position: relative;
}

.header-top-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  overflow: visible;
}

.header-top-left {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 16px 24px;
  flex-shrink: 1;
  min-width: 0;
  overflow: visible;
}

.header-top-left .contact-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #4e4e4e;
  transition: color 0.2s;
  flex-shrink: 0;
}

.header-top-left .contact-item:hover {
  color: #007de3;
}

.header-top-left .contact-item a {
  color: inherit;
}

.header-top-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: #919090;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-top-left .contact-item .label {
  line-height: 16px;
  display: inline-flex;
  align-items: center;
}

.contact-item--dropdown {
  position: relative;
  cursor: pointer;
  z-index: 10;
}

.contact-item--dropdown .label--phone {
  cursor: pointer;
}

.contact-item__arrow {
  width: 12px;
  height: 12px;
  color: #919090;
  flex-shrink: 0;
  transition: transform 0.2s;
  pointer-events: none;
}

.contact-item--dropdown:hover .contact-item__arrow {
  transform: rotate(180deg);
}

.contact-item__dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
  padding: 8px 0;
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-5px);
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
  z-index: 200;
}

.contact-item--dropdown:hover .contact-item__dropdown,
.contact-item__dropdown:hover {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.contact-item__dropdown-phone {
  display: block;
  padding: 10px 16px;
  font-size: 14px;
  color: #333333;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
  text-decoration: none;
}

.contact-item__dropdown-phone:hover {
  background: #f7f7f7;
  color: #007de3;
}

.header-top-right {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.header-top-right .social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #919090;
  transition: background 0.2s, color 0.2s;
}

.header-top-right .social-link:hover {
  background: #eeeeee;
  color: #007de3;
}

.header-top-right .social-link svg {
  width: 20px;
  height: 20px;
}


/* ============================================================
   HEADER BOTTOM — основная шапка
   ============================================================ */

.header-bottom {
  background: #ffffff;
  padding: 20px 0;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-bottom__container {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
}


/* ============================================================
   HEADER LEFT — каталог + логотип
   ============================================================ */

.header-bottom__left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.catalog-dropdown--mobile-left {
  order: 1;
}

.header-bottom__logo-container {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  order: 0;
}

.header-bottom__logo-img {
  height: 28px;
  width: auto;
  display: block;
}


/* ============================================================
   CATALOG DROPDOWN — выпадающее меню каталога
   ============================================================ */

.catalog-dropdown {
  position: relative;
}

.catalog-button {
  display: flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(180deg, #ffa218 0%, #fc8507 100%);
  color: #fff;
  padding: 8px 18px;
  border-radius: 24px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: opacity 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}

.catalog-button:hover {
  opacity: 0.9;
}

.catalog-button__arrow-svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease;
}

.catalog-dropdown:hover .catalog-button__arrow-svg {
  transform: rotate(180deg);
}

.catalog-dropdown__menu {
  position: absolute;
  top: calc(100% + 8px);
  left: -220px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
  z-index: 200;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  min-width: 950px;
  max-width: 1100px;
  max-height: 80vh;
  overflow: hidden;
}

.catalog-dropdown:hover .catalog-dropdown__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.catalog-menu-rootmenu {
  width: 280px;
  min-width: 280px;
  flex-shrink: 0;
  background: #f7f7f7;
  padding: 8px 0;
  overflow-y: auto;
  border-right: 1px solid #eeeeee;
}

.catalog-menu__root-item {
  transition: background 0.15s;
}

.catalog-menu__root-item:hover,
.catalog-menu__root-item_active {
  background: #ffffff;
}

.catalog-menu__root-item_active .catalog-menu__root-item-title {
  color: #fc8507;
  font-weight: 600;
}

.catalog-menu__link-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  cursor: pointer;
  transition: background 0.15s;
}

.catalog-menu__link-wrapper:hover {
  background: #ffffff;
}

.catalog-menu__root-item-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.catalog-menu__root-item-icon svg {
  width: 24px;
  height: 24px;
}

.catalog-menu__root-item-icon-percent {
  background-color: #eeeeee;
  border-radius: 50%;
  position: relative;
}

.catalog-menu__root-item-icon-percent::after {
  content: '%';
  font-size: 12px;
  font-weight: 700;
  color: #919090;
}

.catalog-menu__root-item-title {
  font-size: 14px;
  color: #333333;
  line-height: 1.3;
}

.catalog-menu__footer {
  border-top: 1px solid #eeeeee;
  margin-top: 4px;
  padding-top: 4px;
}

.catalog-submenu {
  flex: 1;
  min-width: 0;
  padding: 20px 24px;
  overflow-y: auto;
  overflow-x: hidden;
}

.catalog-submenu__block {
  display: none;
}

.catalog-submenu__block.active {
  display: block;
}

.catalog-submenu__first-level {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: #333333;
  margin-bottom: 12px;
  margin-top: 8px;
  padding: 4px 0;
  transition: color 0.15s;
}

.catalog-submenu__first-level:first-child {
  margin-top: 0;
}

.catalog-submenu__first-level:hover {
  color: #fc8507;
}

.catalog-submenu__second-level-wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px 20px;
  margin-bottom: 16px;
}

.catalog-submenu__second-level-column {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.header-catalog-submenu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 13px;
  color: #4e4e4e;
  transition: background 0.15s, color 0.15s;
  cursor: pointer;
  white-space: nowrap;
}

.header-catalog-submenu-item:hover {
  background: #f7f7f7;
  color: #fc8507;
}

.header-catalog-submenu-item span:first-child {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-catalog-submenu-item__count {
  font-size: 11px;
  color: #bbbbbb;
  margin-left: 8px;
  flex-shrink: 0;
}


/* ============================================================
   MAIN MENU — горизонтальное меню
   ============================================================ */

.header-bottom__menu-wrapper {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  display: flex;
  justify-content: center;
}

.header-bottom__menu {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
  justify-content: center;
  transition: opacity 0.2s ease;
}

.header-bottom__menu.menu-hidden {
  opacity: 0;
  pointer-events: none;
}

.header-bottom__menu .menu-item {
  padding: 6px 14px;
  font-size: 16px;
  color: #333333;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
  font-weight: 500;
  flex-shrink: 0;
}

.header-bottom__menu .menu-item:hover {
  background: #f7f7f7;
  color: #fc8507;
}


/* ============================================================
   HEADER RIGHT — иконки, войти, поиск
   ============================================================ */

.header-bottom__right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.btn-icon,
.search-toggle-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: 8px;
  color: #4e4e4e;
  font-size: 13px;
  gap: 4px;
  transition: background 0.2s, color 0.2s;
  cursor: pointer;
  font-family: inherit;
  position: relative;
  height: auto;
  line-height: 1;
  text-decoration: none;
}

.btn-icon:hover,
.search-toggle-btn:hover {
  background: #f7f7f7;
  color: #fc8507;
}

.btn-icon svg,
.search-toggle-btn svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.btn-icon .label,
.search-toggle-btn .label {
  font-size: 13px;
  font-weight: 400;
  color: #919090;
  line-height: 1.2;
}

.btn-icon:hover .label,
.search-toggle-btn:hover .label,
.user-profile__login:hover .label {
  color: #fc8507;
}

.buttons {
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 1;
  overflow: visible;
  height: auto;
  transition: opacity 0.2s ease, max-width 0.2s ease;
}

.buttons.buttons-hidden {
  opacity: 0;
  max-width: 0;
  gap: 0;
  pointer-events: none;
}

.user-profile__login {
  display: flex;
  flex-direction: column;
  align-items: center;
  /*padding: 6px 10px;*/
  border-radius: 8px;
  color: #4e4e4e;
  font-size: 13px;
  gap: 4px;
  cursor: pointer;
  opacity: 1;
  text-decoration: none;
  transition: background 0.2s, opacity 0.2s ease, max-width 0.2s ease;
}

.user-profile__login:hover {
  background: #f7f7f7;
  color: #fc8507;
}

.user-profile__login .label {
  font-size: 13px;
  color: #919090;
}

.user-profile__login.login-hidden {
  opacity: 0;
  max-width: 0;
  padding: 0;
  margin: 0;
  overflow: hidden;
  pointer-events: none;
}


/* ============================================================
   SEARCH — поиск
   ============================================================ */

.header-bottom__search-wrapper {
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
  border-radius: 8px;
  background: transparent;
  border: 2px solid transparent;
  padding: 0;
  height: auto;
  align-self: center;
  transition: background 0.2s;
  position: relative;
}

.header-bottom__search-wrapper.search--active {
  background: #f7f7f7;
  border-color: transparent;
  padding: 0 6px 0 14px;
  flex-grow: 1;
  flex-shrink: 1;
}

.search-input-wrapper {
  overflow: hidden;
  max-width: 0;
  opacity: 0;
  width: 0;
  display: flex;
  align-items: center;
  background: transparent;
  border-radius: 8px;
  padding: 0;
  transition: opacity 0.3s ease;
}

.search-input-wrapper.input-visible {
  max-width: 100%;
  width: 100%;
  opacity: 1;
  padding: 0 8px;
  flex: 1;
}

.search-input-wrapper input {
  border: none;
  background: transparent;
  padding: 10px 4px;
  font-size: 16px;
  outline: none;
  width: 100%;
  color: #333333;
}

.search-input-wrapper input::placeholder {
  color: #bbbbbb;
}

.header-bottom__container:has(.search--active) .header-bottom__menu-wrapper {
  flex: 0 0 0;
}

.header-bottom__container:has(.search--active) .header-bottom__right {
  flex: 1;
}

/* Выпадающие подсказки поиска */
.search-suggest {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
  max-height: 400px;
  overflow-y: auto;
  z-index: 300;
  margin-top: 4px;
}

.search-suggest-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  text-decoration: none;
  color: #333;
  transition: background 0.15s;
}

.search-suggest-item:hover {
  background: #f7f7f7;
}

.search-suggest-item__image {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
  background: #eeeeee;
}

.search-suggest-item__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.search-suggest-item__name {
  font-size: 14px;
}

.search-suggest-empty {
  padding: 16px;
  text-align: center;
  color: #919090;
  font-size: 14px;
}


/* ============================================================
   WORK AREA
   ============================================================ */

.work-area {
  min-height: 60vh;
  background: #f7f7f7;
  padding: 40px 16px;
  box-sizing: border-box;
}

.work-area__title {
  font-size: 24px;
  margin-bottom: 16px;
  color: #333333;
}

.work-area__text {
  font-size: 16px;
  color: #4e4e4e;
}


/* ============================================================
   CATALOG PRODUCTS GRID — карточки товаров DNS
   ============================================================ */

.catalog-products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.catalog-product {
  position: relative;
  border-radius: 16px;
  background-color: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  display: grid;
  grid-template-areas: 
    "image" 
    "name" 
    "specs" 
    "stat" 
    "buy";
  grid-template-rows: auto auto auto auto auto;
  overflow: hidden;
  padding: 16px;
  min-height: auto;
  transition: box-shadow 0.2s;
}

.catalog-product:hover {
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
}

.catalog-product__image {
  grid-area: image;
  position: relative;
  padding-bottom: 100%;
  margin-bottom: 12px;
}

.catalog-product__image-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.catalog-product__image-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.catalog-product__voblers {
  position: absolute;
  top: 8px;
  left: 8px;
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.catalog-product__vobler {
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  line-height: 16px;
  color: #fff;
}

.catalog-product__vobler_hit {
  background: #ff544b;
}

.catalog-product__vobler_new {
  background: #00be70;
}

.catalog-product__name-wrapper {
  grid-area: name;
  margin-bottom: 8px;
}

.catalog-product__name {
  font-size: 14px;
  font-weight: 400;
  color: #333;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-decoration: none;
}

.catalog-product__name:hover {
  color: #007de3;
}

.catalog-product__specs {
  grid-area: specs;
  margin-bottom: 8px;
}

.catalog-product__spec {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  line-height: 1.5;
  gap: 8px;
}

.catalog-product__spec-label {
  color: #7d7c7c;
  flex-shrink: 0;
}

.catalog-product__spec-value {
  color: #333;
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.catalog-product__stat {
  grid-area: stat;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
  font-size: 12px;
}

.catalog-product__compare {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  color: #7d7c7c;
}

.catalog-product__compare-text {
  font-size: 12px;
}

.catalog-product__rating {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #7d7c7c;
  text-decoration: none;
}

.catalog-product__rating-stars {
  color: #ffca48;
}

.catalog-product__available {
  font-size: 12px;
  font-weight: 600;
}

.catalog-product__available_yes {
  color: #00be70;
}

.catalog-product__available_no {
  color: #ff544b;
}

.catalog-product__buy {
  grid-area: buy;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid #eeeeee;
}

.catalog-product__price-wrap {
  display: flex;
  flex-direction: column;
}

.catalog-product__price {
  font-size: 18px;
  font-weight: 700;
  color: #333;
  line-height: 1.2;
}

.catalog-product__price-old {
  font-size: 12px;
  color: #bbbbbb;
  text-decoration: line-through;
}

.catalog-product__buy-btn {
  padding: 8px 20px;
  background: linear-gradient(180deg, #ffa218 0%, #fc8507 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.2s;
}

.catalog-product__buy-btn:hover {
  opacity: 0.9;
}


/* ============================================================
   FOOTER — подвал сайта
   ============================================================ */

.footer {
  font-family: 'PT Sans', 'Segoe UI', 'Arial', sans-serif;
  color: #333333;
  background: #ffffff;
  position: relative;
  z-index: 10;
  border-top: 1px solid #eeeeee;
}

.footer__container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 16px;
}

.footer__row {
  padding: 24px 0;
  border-bottom: 1px solid #eeeeee;
}

.footer__row:last-child {
  border-bottom: none;
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.footer__column-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 16px;
  color: #333333;
}

.footer__menu-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__menu-list a {
  font-size: 13px;
  color: #4e4e4e;
  transition: color 0.2s;
}

.footer__menu-list a:hover {
  color: #fc8507;
}

.footer__contacts {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__city-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  color: #007de3;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
}

.footer__city-btn svg {
  width: 16px;
  height: 16px;
}

.footer__phone {
  font-size: 18px;
  font-weight: 600;
  color: #333333;
}

.footer__phone:hover {
  color: #fc8507;
}

.footer__address-link {
  font-size: 13px;
  color: #007de3;
}

.footer__address-link:hover {
  text-decoration: underline;
}

.footer__question-btn {
  padding: 10px 20px;
  background: linear-gradient(180deg, #ffa218 0%, #fc8507 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  font-weight: 600;
  font-family: inherit;
  align-self: flex-start;
  transition: opacity 0.2s;
}

.footer__question-btn:hover {
  opacity: 0.9;
}

.footer__bottom-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer__payment-icons {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.footer__payment-icons img {
  height: 30px;
  width: auto;
}

.footer__social-icons {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #434242;
  color: #fff;
  transition: background 0.2s;
}

.footer__social-link:hover {
  background: #4e4e4e;
}

.footer__social-link svg {
  width: 18px;
  height: 18px;
}

.footer__copyright-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: #919090;
  padding: 20px 0;
}

.footer__policy-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.footer__policy-links a {
  color: #919090;
  transition: color 0.2s;
}

.footer__policy-links a:hover {
  color: #fc8507;
}


/* ============================================================
   MEDIA QUERIES — адаптив
   ============================================================ */

@media (max-width: 1250px) {
  .header-bottom__container { gap: 8px; }
  .header-bottom__menu .menu-item { font-size: 14px; padding: 5px 8px; }
  .catalog-button { padding: 6px 14px; font-size: 13px; }
  .catalog-dropdown__menu { left: -50px; min-width: 700px; }
  .catalog-menu-rootmenu { width: 240px; min-width: 240px; }
  .catalog-submenu__second-level-wrap { grid-template-columns: repeat(2, 1fr); }
  .catalog-products-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1100px) {
  .header-bottom__menu .menu-item { font-size: 13px; padding: 5px 6px; }
  .catalog-dropdown__menu { left: -100px; min-width: 600px; }
  .catalog-menu-rootmenu { width: 220px; min-width: 220px; }
}

@media (max-width: 992px) {
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 950px) {
  .header-bottom__container { gap: 6px; }
  .catalog-button { padding: 6px 12px; font-size: 12px; }
  .btn-icon svg, .search-toggle-btn svg, .user-profile__login svg { width: 24px; height: 24px; }
  .btn-icon, .search-toggle-btn, .user-profile__login { font-size: 11px; padding: 4px 6px; }
  .btn-icon .label, .search-toggle-btn .label, .user-profile__login .label { font-size: 11px; }
  .catalog-dropdown__menu { left: -20px; min-width: 95vw; max-width: 95vw; }
  .catalog-menu-rootmenu { width: 180px; min-width: 180px; }
  .catalog-submenu { padding: 12px 16px; }
  .catalog-submenu__first-level { font-size: 14px; margin-bottom: 8px; }
  .catalog-submenu__second-level-wrap { gap: 2px 12px; }
  .header-catalog-submenu-item { font-size: 12px; padding: 4px 6px; }
}

@media (max-width: 850px) {
  .header-bottom__container { flex-wrap: wrap; }
  .header-bottom__menu-wrapper { order: 3; flex-basis: 100%; margin-top: 8px; justify-content: center; }
  .header-bottom__right { margin-left: auto; }
  .header-bottom__menu .menu-item { font-size: 14px; padding: 5px 10px; }
  .search--active { max-width: 300px; }
  .header-bottom__container:has(.search--active) .header-bottom__right { flex: 1 1 auto; max-width: 400px; }
  .header-bottom__container:has(.search--active) .header-bottom__menu-wrapper { flex: 0 0 auto; }
  .header-bottom { padding: 15px 0; }
  .catalog-dropdown__menu { left: -30px; min-width: 90vw; flex-direction: row; flex-wrap: nowrap; }
  .catalog-menu-rootmenu { width: 200px; min-width: 200px; flex-shrink: 0; display: block; overflow-y: auto; border-right: 1px solid #eeeeee; border-bottom: none; }
  .catalog-menu__link-wrapper { padding: 8px 10px; border-radius: 0; }
  .catalog-submenu { padding: 12px; flex: 1; min-width: 0; }
}

@media (max-width: 768px) {
  .header-top-area { display: none; }
  .catalog-dropdown--mobile-left { order: 0; }
  .header-bottom__logo-container { order: 1; }
  .header-bottom__left { gap: 8px; }
  .header-bottom__logo-img { height: 24px; }
  .catalog-button { background: transparent !important; border: none !important; border-radius: 0 !important; width: auto !important; height: auto !important; padding: 4px !important; color: #333333 !important; }
  .catalog-button__title { display: none; }
  .catalog-button__arrow-svg { width: 24px !important; height: 24px !important; }
  .catalog-button__arrow-svg path { fill: #333333 !important; }
  .catalog-dropdown:hover .catalog-button__arrow-svg { transform: none; }
  .btn-icon .label, .search-toggle-btn .label, .user-profile__login .label { display: none; }
  .btn-icon, .search-toggle-btn, .user-profile__login { padding: 4px 4px; }
  .btn-icon svg, .search-toggle-btn svg, .user-profile__login svg { width: 22px; height: 22px; }
  .header-bottom__menu .menu-item { font-size: 13px; padding: 5px 8px; }
  .search--active { padding: 0 4px 0 10px; max-width: 200px; }
  .header-bottom__container:has(.search--active) .header-bottom__right { max-width: 300px; }
  .search-input-wrapper input { font-size: 14px; }
  .header-bottom__right, .buttons { gap: 2px; }
  .header-bottom { padding: 12px 0; }
  .catalog-dropdown__menu { left: -20px; min-width: 95vw; flex-direction: row; flex-wrap: nowrap; }
  .catalog-menu-rootmenu { width: 160px; min-width: 160px; flex-shrink: 0; }
  .catalog-submenu__second-level-wrap { grid-template-columns: 1fr; }
  .catalog-products-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .catalog-product { padding: 12px; border-radius: 12px; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .footer__bottom-row, .footer__copyright-row { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .header-bottom__logo-img { height: 22px; }
  .catalog-button__arrow-svg { width: 20px !important; height: 20px !important; }
  .btn-icon svg, .search-toggle-btn svg, .user-profile__login svg { width: 20px; height: 20px; }
  .search--active { padding: 0 2px 0 8px; max-width: 140px; }
  .header-bottom__container:has(.search--active) .header-bottom__right { max-width: 220px; }
  .search-input-wrapper input { font-size: 12px; }
  .header-top-icon { width: 14px; height: 14px; }
  .header-top-left .contact-item { font-size: 12px; gap: 4px; }
  .header-top-right .social-link { width: 26px; height: 26px; }
  .header-top-right .social-link svg { width: 14px; height: 14px; }
  .header-bottom__menu .menu-item { font-size: 12px; padding: 4px 6px; }
  .buttons { gap: 1px; }
  .btn-icon, .search-toggle-btn, .user-profile__login { padding: 4px 4px; }
  .header-bottom { padding: 10px 0; }
  .catalog-dropdown__menu { left: -10px; min-width: 98vw; flex-direction: column; flex-wrap: nowrap; }
  .catalog-menu-rootmenu { width: 100%; min-width: auto; flex-shrink: 0; display: flex; flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; padding: 8px; border-right: none; border-bottom: 1px solid #eeeeee; }
  .catalog-menu__link-wrapper { padding: 6px 10px; border-radius: 8px; white-space: nowrap; }
  .catalog-submenu { padding: 10px; flex: auto; min-width: 0; }
  .catalog-products-grid { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .footer__grid { grid-template-columns: 1fr; }
}