/* --- Верхняя линия: локация + соцсети --- */

.header__location__block {
    display: flex;
    gap: 8px;
}

.location__block__title p {
    font-family: "Tilda";
    color: #999999;
    font-size: 16px;
    line-height: 24px;
    padding: 0;
    margin: 0;
}

.social__link {
    padding: 10px 10px;
    background-color: #EEF0FF;
    border-radius: 50%;
    filter: none;
    transition: 0.2s ease;
}

.social__link:hover {
    background-color: rgba(84, 109, 252, 0.5);
}

.header__social__block {
    display: flex;
    gap: 5px;
}

.header__social__block a {
    display: block;
    padding: 0;
    margin: 0;
    line-height: 10px;
}

.header__social__block a img {
    width: 15px;
    height: 15px;
}

/* --- Обёртка шапки --- */

.header__block {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header__top__block {
    border-bottom: 1px solid #d1cfcf;
    padding: 16px 0px;
}

/* --- Поиск в шапке --- */

.header__search {
    width: 500px;
    display: flex;
}

.search__wrap {
    position: relative;
    width: 100%;
}

.search__input {
    width: 100%;
    font-family: "Tilda";
    padding: 9px 110px 10px 40px;
    border: 1px solid #d0d0d0;
    border-radius: 5px;
    font-size: 16px;
    outline: none;
    height: 45px;
    border-right: none;
    border-radius: 5px 0 0 5px;
}

.search__input:focus {
    border-color: #546DFC;
}

.search__img {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    pointer-events: none;
}

.search__btn {
    font-family: "Tilda";
    position: relative;
    right: 0;
    top: 0;
    height: 45px;
    padding: 0 20px;
    border: none;
    background: #546DFC;
    color: #fff;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    font-size: 16px;
}

/* --- Корзина в шапке --- */

.header__basket {
    position: relative;
}

.basket__items {
    position: relative;
    display: inline-block;
}

.basket__items svg path {
    width: 34px;
    filter: none;
    transition: 0.2s ease;
}

.basket__items svg:hover path {
    stroke: #546DFC;
}

.basket__count {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #546DFC;
    color: #fff;
    font-size: 12px;
    padding: 1px 7px;
    border-radius: 50%;
    font-weight: bold;
}

.basket__block {
    display: flex;
    width: 100px;
    gap: 12px;
    justify-content: center;
    align-items: center;
}

.basket__title p {
    font-size: 11px;
    line-height: 120%;
    color: #000;
    font-weight: 400;
    padding: 0;
    margin: 0;
    line-height: 14px;
    cursor: pointer;
}

.basket__title a,
.basket__sum a {
    text-decoration: none;
}

.basket__sum span {
    font-size: 14px;
    color: #546DFC;
    font-weight: 500;
    padding: 0;
    margin: 0;
    white-space: nowrap;
    cursor: pointer;
}

/* --- Центр шапки (лого + поиск + корзина) --- */

.header__center__flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
}

/* --- Меню --- */

.menu {
    display: flex;
    align-items: center;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 10px 0;
}

.menu-item {
    position: relative;
}

.menu-item > a {
    text-decoration: none;
    color: #fff;
    font-size: 14px;
    display: flex;
    align-items: center;
    font-weight: 400;
    gap: 6px;
    font-family: Tilda;
    line-height: 24px;
    filter: none;
    transition: 0.2s ease;
}

/* Стрелка у "Каталога" */

.arrow-icon {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: #fff;
    stroke-width: 2px;
    transition: 0.3s ease;
    transform: rotate(0deg);
    margin-top: 2px;
}

.menu-item.catalog:hover .arrow-icon {
    transform: rotate(180deg);
    color: #546DFC;
    stroke: #546DFC;
}

/* Дропдаун каталога */

.catalog-dropdown {
    position: absolute;
    left: 0;
    top: 100%;
    background: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 15px;
    border-radius: 8px;
    display: none;
    grid-template-columns: repeat(4, 150px);
    gap: 15px;
    z-index: 20;
    filter: none;
    transition: 0.2s ease;
}

.menu-item.catalog:hover .catalog-dropdown {
    display: grid;
}

.catalog-item {
    text-align: center;
    cursor: pointer;
    border: 1px solid #546DFC;
    padding: 10px 20px;
    border-radius: 5px;
}

.catalog-item img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 8px;
}

.catalog-item span {
    font-size: 14px;
    color: #333;
}

/* --- Нижняя полоса шапки --- */

.header__bottom {
    background-color: #000;
    padding: 10px 0px;
    margin-top: 15px;
}

.header__menu__items {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Телефон в шапке */

.phone__item a {
    color: #fff;
    font-size: 16px;
    font-family: SFPro;
    text-decoration: none;
    filter: none;
    transition: 0.2s ease;
}

.phone__item a:hover,
.phone__item a:hover svg path,
.phone__item a:hover span {
    color: #546DFC;
    stroke: #546DFC;
}

.phone__item a svg:hover path {
    color: #546DFC;
    stroke: #546DFC;
}

.phone__item a span:hover {
    color: #546DFC;
}

.phone__item a svg path:hover {
    stroke: #546DFC;
}

/* --- Мобильная шапка --- */

.mobile-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 1000;
}

.logo {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    text-decoration: none;
}

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

.phone-icon {
    width: 50px;
    height: 50px;
    background-image: url(..//img/mobile-phone.png);
    background-repeat: no-repeat;
    cursor: pointer;
    transition: background-color 0.3s;
}

.phone-icon:hover {
    background: #546DFC;
}

.menu-toggle {
    width: 24px;
    height: 18px;
    border: none;
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0;
    background-color: transparent;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: #546DFC;
    transition: all 0.3s;
}

.hamburger__menu {
    padding: 10px 10px;
    border: 2px solid #e8ecf3;
    border-radius: 50%;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
}

.menu-toggle:hover span {
    background: rgb(84, 109, 252, 0.8);
}

/* --- Мобильное меню --- */

.mobile-menu {
    position: fixed;
    top: 68px;
    right: -100%;
    width: 100%;
    height: 100%;
    background: #fff;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 999;
}

.mobile-menu.active {
    right: 0;
}

.menu-overlay {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: calc(100vh - 70px);
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 998;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu nav {
    padding: 22px 0px;
}

.mobile-menu ul {
    padding: 0;
}

.mobile__pad__block {
    padding: 20px;
}

/* --- Переключение десктоп / мобила --- */

.header__main {
    display: block;
}

.header__mobile__version {
    display: none;
}

/* Адаптив для мобильной шапки */
@media (min-width: 768px) {
    .mobile-header {
        padding: 0 40px;
    }
}