.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    margin-top: 0px;
    padding: 0px;
    z-index: 100;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 24px rgba(0, 18, 63, 0.07);
}

.header__higest {
    background: linear-gradient(90deg, #f6f4f1 0%, #f0f4f8 100%);
    padding: 8px 10px;
    border-bottom: 1px solid rgba(0, 18, 63, 0.06);
}

.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: var(--accent-color-hover);
}

.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: 10px;
}

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

.header__dropdown {
    position: relative;
}

.header__catalog-trigger {
    margin: 0;
    font: inherit;
    cursor: pointer;
    border: none;
    background: transparent;
    text-align: left;
}

.header__catalog-panel {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    z-index: 110;
    min-width: min(340px, calc(100vw - 40px));
    padding: 10px 0;
    background: #fff;
    border-radius: 16px;
    border: 1px solid rgba(0, 18, 63, 0.08);
    box-shadow:
        0 8px 32px rgba(0, 18, 63, 0.12),
        0 2px 8px rgba(0, 18, 63, 0.06);
}

.header__catalog-panel::before {
    content: "";
    position: absolute;
    top: -6px;
    left: 24px;
    width: 12px;
    height: 12px;
    background: #fff;
    border-left: 1px solid rgba(0, 18, 63, 0.08);
    border-top: 1px solid rgba(0, 18, 63, 0.08);
    transform: rotate(45deg);
}

.header__catalog-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.header__catalog-link {
    display: block;
    padding: 12px 20px;
    font-size: 15px;
    font-weight: 500;
    color: var(--dark-color);
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.header__catalog-link:hover {
    background: rgba(20, 190, 254, 0.08);
    color: var(--accent-color);
}

.header__catalog-all {
    display: block;
    margin: 8px 12px 0;
    padding: 12px 16px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--accent-color);
    text-decoration: none;
    border-radius: 12px;
    border: 1px solid rgba(20, 190, 254, 0.35);
    transition: background 0.2s ease, color 0.2s ease;
}

.header__catalog-all:hover {
    background: rgba(20, 190, 254, 0.1);
}

.header__catalog-trigger.header__catalog-trigger--open {
    background: rgba(20, 190, 254, 0.1);
}

.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 #14BEFE;
    border-radius: 15px;
    color: #14BEFE !important;
    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;
    display: inline-block;
    animation: slow-spin 15s linear infinite;
}

.header__condition-fan {
    display: inline-block;
    animation: fan-spin 15s ease-in-out infinite;
    transform-origin: 17px 17px;
}

@keyframes fan-spin {
    0% {
        transform: rotate(0deg);
    }
    50% {
        transform: rotate(3600deg);
    }
    100% { transform: rotate(3600deg); }
}

@keyframes slow-spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}   

.header__upper-link {
    color: #494239;
}

.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;
}

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

.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: #29a1dd0d;
    color: #29A1DD;
    border: 1.5px solid #29A1DD;
}

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

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

.actions__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 15px;
    border-radius: 12px;
    min-height: 38px;
    max-width: fit-content;
    background: #f4f4f4;
    color: #3e3e3e;
    border: 1px solid rgba(0, 18, 63, 0.05);
    transition: color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.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: linear-gradient(180deg, #f8fafc 0%, #f0f2f5 100%);

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

  box-shadow: -8px 0 40px rgba(0, 18, 63, 0.12);

  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: 12px;
  background: #f4f4f4;
  border: 1px solid rgba(0, 18, 63, 0.05);
  transition: color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.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: 12px;
  border: 1px solid rgba(0, 18, 63, 0.05);
  transition: color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.sidemenu__navigatioin-link:hover {
  color: var(--accent-color);
  border-color: rgba(20, 190, 254, 0.2);
  box-shadow: 0 4px 16px rgba(0, 18, 63, 0.06);
}

/* ===== 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;
}

.sidemenu__expandable {
    width: 100%;
}

.sidemenu__expand-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 12px;
    padding: 15px;
    margin: 0;
    font: inherit;
    font-size: 18px;
    font-weight: 500;
    color: var(--dark-color);
    text-align: left;
    cursor: pointer;
    border: none;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 1px 0 rgba(0, 18, 63, 0.04);
    transition: background 0.2s ease, color 0.2s ease;
    overflow: hidden;
}

.sidemenu__expand-toggle:hover {
    color: var(--accent-color);
}

.sidemenu__expand-toggle[aria-expanded="true"] {
    background: rgba(20, 190, 254, 0.1);
    color: var(--accent-color);
}

.sidemenu__expandable {
    height: 48px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.sidemenu__expandable:has(.sidemenu__expand-toggle[aria-expanded="true"]) {
    height: auto;
}

.sidemenu__expand-chevron {
    display: flex;
    flex-shrink: 0;
    color: var(--text-gray-color);
    transition: transform 0.25s ease;
}

.sidemenu__expand-toggle[aria-expanded="true"] .sidemenu__expand-chevron {
    transform: rotate(180deg);
    color: var(--accent-color);
}

.sidemenu__sublist {
    margin: 8px 0 0;
    padding: 0 0 0 8px;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    border-left: 2px solid rgba(20, 190, 254, 0.25);
}

.sidemenu__sublink {
    display: block;
    padding: 12px 14px;
    font-size: 15px;
    font-weight: 500;
    color: var(--dark-color);
    text-decoration: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(0, 18, 63, 0.06);
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.sidemenu__sublink:hover {
    background: rgba(20, 190, 254, 0.08);
    border-color: rgba(20, 190, 254, 0.2);
    color: var(--accent-color);
}

.sidemenu__sublink--all {
    margin-top: 4px;
    font-weight: 600;
    color: var(--accent-color);
    border-color: rgba(20, 190, 254, 0.3);
}

    .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: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:1200px) {
    .header {
        box-shadow: 0 2px 16px rgba(0, 18, 63, 0.06);
    }

    .messengers {
        gap: 10px;
    }

    .header__upper-links {
        display: none;
    }

    .header__additional-burger {
        display: flex;
    }

    .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:380px){
    .header__higest-link {
        display:none;
    }
}

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

    .sidemenu__actions {
        gap: 10px;
    }

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