.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    margin-top: 0px;
    padding: 0px;
    z-index: 100;
    background: #ffffff;
    display: flex;
    flex-direction: column;
}

.header__higest {
    background: #F5F3F1;
    padding: 5px 10px;
}

.header__higest-numbers {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header__higest-link {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 2px 5px;
    color: var(--dark-color);
    transition: all .3s ease;
}

.header__higest-link-navigator {
    transition: all .3s ease;
}

.header__higest-link:hover {
    color: #D97A00;
}

.header__higest-link:hover > .header__higest-link-navigator {
    transform: rotate(25deg);
}

.header__higest-link-navigator path {
    transition: all .3s ease;
}

.header__higest-link:hover > .header__higest-link-navigator path {
    stroke: #D97A00;
}

.header__upper {
    display: flex;
    width: 100%;
    padding: 5px 10px;
}


.header__upper-links {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-right: auto;
    margin-left: 15px;
}

.header__upper-link {
    padding: 6px 10px;
    border-radius: 6px;
    transition: all .3s ease;
}

.header__upper-link:hover {
    background: #f5f3f1;
}

.header__upper-links--catalog-link {
    padding: 4px 13px;
    border: 1px solid #494239;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 11px;
}

.header__upper-links--sale-link {
    display: flex;
    align-items: center;
    gap: 7px;
}

.header__upper-links--catalog-link::before {
    content: "";
    height: 8px;
    width: 10px;
    background-image: url("/src/assets/img/icons/katalog-menu.svg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.header__upper-links--sale-link::before {
    content: "";
    height: 18px;
    width: 18px;
    background-image: url("/src/assets/img/icons/akcii.svg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.header__upper-link {
    color: #494239;
}

.header__lower {
    width: 100%;
    padding: 5px 0;
    display: flex;
    align-items: center;
    border-top: 1px solid #efefef;
    border-bottom: 1px solid #efefef;
}

.header__wrap {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
    margin-left: 25px;
}

.header__container {
    color: var(--dark-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 100%;
    width: 100%;
    padding: 0 40px;
}

.header__container:hover {
    box-shadow: 2px 2px 15px #ffffff38;
}


.header .navigation__menu {
    display: flex;
    align-items: center;
}

.header .navigation__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 15px;
    border-radius: 5px;
}

.navigation__icon {
    width: 20px;
    height: 20px;
}

header .navigation__link {
    color: var(--dark-color);
    transition: .2s all ease;
    font-weight: 400;
}

header .navigation__link:hover {
    color: #D97A00;
}

.header__address {
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 15px;
}


.header__contacts {
    display: flex;
    align-items: center;
    gap: 20px;
}

.messengers {
    display: flex;
    align-items: center;
    gap: 15px;
}

.messengers__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 10px;
    border-radius: 30px;
    max-width: fit-content;
}

.messengers__item-image {
    height: 15px;
    width: auto;
    padding-right: 10px;
    border-right: 1px solid #a1a1a13a;
}

.messengers__text {
    font-size: 12px;
    font-weight: 500;
    line-height: 120%;
}

.messengers__item--tg {
    background: #f2fafd;
    color: #29A1DD;
    border: 1.5px solid #29A1DD;
}

.messengers__item--wu {
    background: #f4fdf5;
    color: #40DD4F;
    border: 1.5px solid #40DD4F;
}

.messengers__item--vi {
    background: #f6f4fe;
    color: #8663F6;
    border: 1.5px solid #8663F6;
}

.actions__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 7px;
    border-radius: 5px;
    max-width: fit-content;
    background: #f4f4f4;
    color: #3e3e3e;
}

.actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.actions__text {
    font-size: 12px;
    font-weight: 400;
    text-transform: uppercase;
    line-height: 120%;
    text-align: left;
}

.header__numbers {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header__number {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-end;
    color: var(--dark-color);
}

.header__number-text {
    font-weight: 200;
    font-size: 12px;
    text-transform: uppercase;
    text-align: right;
}

.header__number-number {
    text-align: right;
    font-size: 20px;
    font-weight: 600;
    transition: all .3s ease;
    cursor: pointer;
}

.header__number:hover .header__number-number {
    color: var(--primary-color);
}

.header__wrap-header {
    display: none;
}

.header__additional {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header__additional-item {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border-radius: 50%;
    transition: all .3s ease;
}

.header__additional-item:hover {
    background: #f4f4f4;
}

.header__additional-burger {
    display: none;
}

/* ===== SIDEMENU MAIN ===== */
.sidemenu {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  z-index: 999;

  /* Скрыто по умолчанию */
  visibility: hidden;
  pointer-events: none;  
}

/* когда контейнер включён (но меню ещё может быть закрыто) */
.sidemenu.sidemenu--open {
  visibility: visible;
  pointer-events: auto;

  transition: opacity 0.3s ease, visibility 0s linear 0s;
}

/* ===== OVERLAY ===== */
.sidemenu__overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;

  background: #000000ab;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* ===== MENU PANEL ===== */
.sidemenu__menu {
  position: absolute;
  top: 0;
  right: 0;

  width: 430px;
  height: 100%;
  background: #f4f4f4;

  transform: translateX(100%);
  transition: transform 0.3s ease;
  will-change: transform;

  /* чтобы элементы не выглядели "оторванными" */
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.15);

  /* если вдруг есть скролл внутри меню */
  overflow-y: auto;
}

/* ===== ACTIVE ANIMATION STATE ===== */
.sidemenu.sidemenu--active .sidemenu__overlay {
  opacity: 1;
}

.sidemenu.sidemenu--active .sidemenu__menu {
  transform: translateX(0);
}

/* ===== CONTENT STYLES (твои, слегка подчищенные) ===== */
.sidemenu__header {
  padding: 15px;
  box-shadow: 0 0 16px 0 rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
}

.sidemenu__actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.sidemenu__close {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  background: #f4f4f4;
}

.sidemenu__actions .actions__item .actions__text {
  display: block;
}

.sidemenu__actions .messengers__item {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidemenu__actions .actions__item a {
  color: #3e3e3e;
}

.sidemenu__actions .messengers__item .messengers__text {
  display: none;
}

.sidemenu__button-wrapper {
  padding: 15px;
}

.sidemenu__wrapper {
  display: flex;
  flex-direction: column;
  padding: 15px;
  border-radius: 7px;
}

.sidemenu__button {
  width: 100%;
  padding: 15px;
}

.sidemenu__navigation {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 15px;
}

.sidemenu__navigation-item {
  width: 100%;
  height: 100%;
}

.sidemenu__navigatioin-link {
  padding: 15px;
  background: #fff;
  width: 100%;
  color: var(--dark-color);
  font-size: 18px;
  display: block;
  border-radius: 7px;
  transition: all 0.3s ease;
}

.sidemenu__navigatioin-link:hover {
  color: var(--primary-color);
}

/* ===== SCROLL LOCK ===== */
html.sidemenu-scroll-lock {
  overflow: hidden;
}

body.sidemenu-scroll-lock {
  position: fixed;
  width: 100%;
  overflow: hidden;
}

/* Доступность: фокусные состояния для элементов с tabindex и интерактивных элементов в шапке */
.header a:focus-visible,
.header button:focus-visible,
.header [tabindex]:focus-visible,
.sidemenu a:focus-visible,
.sidemenu button:focus-visible,
.sidemenu [tabindex]:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

.submenu {
    display: flex;
    flex-direction: column;
    position: absolute;
    background: #f4f4f4;
    top: 0;
    left: 0;
    width: 100%;
    height: 100dvh;
    padding: 15px;
    gap: 15px;
    transform: translateX(-100%);
    visibility: hidden;
    opacity: 0;
    z-index:1;
}

.submenu.active {
    transform: translateX(0%);
    visibility: visible;
    opacity: 1;
    transition: transform .3s ease;
}

.submenu__link {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--dark-color);
    background: #fff;
    padding: 15px;
    border-radius: 7px;
    transition: all .3s ease;
    width: 100%;
    font-size: 18px;
}

.submenu__back-button {
    width: 38px;
    height: 38px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.submenu__back-item {
    align-self:end;
    display: flex;
    align-items: center;
    gap: 15px;
}

.submenu__back-icon {
    height: 16px;
}

@media (max-width:1400px) {
    .messengers__text,
    .actions__text {
        display: none;
    }

    .messengers__item-image {
        border: none;
        padding: 0;
        height: 15px;
    }

    .messengers__item {
        padding: 0;
        width: 34px;
        display: flex;
        align-items: center;
        justify-content: center;
        height: 34px;
        aspect-ratio: 1;
    }
}

@media (max-width:1240px) {
    .header .navigation__item {
        gap: 4px;
    }
}

@media (max-width:1200px) {
    .header {
        box-shadow: none;
    }

    .messengers {
        gap: 10px;
    }

    .header__upper-links {
        display: none;
    }

    .header__additional-burger {
        display: flex;
    }
    
    .header__lower {
        display: none;
    }
    
    .header__container {
        min-height: auto;
    }
}

@media (max-width:1000px) {
    .header__container {
        padding: 0px;
    }

    .header__higest {
        display: none;
    }

    .header .header__numbers {
        display: none;
    }
}

@media (max-width:630px) {
    .header .header__messengers  {
        display: none;
    }
}

@media (max-width:660px) {
    .header .header__container  {
        margin: 0;
    }
}

@media (max-width:430px) {
    .sidemenu__menu {
        width: 100%;
    }
}

@media (max-width:360px) {
    .header .header__actions  {
        display: none;
    }

    .sidemenu__actions {
        gap: 10px;
    }

    .sidemenu__actions .actions__item .actions__text {
        display: none;
    }
}