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

body {
    font-family: 'Montserrat', sans-serif;
    color: #1D1D1B;
    font-size: 16px;
    font-weight: 600;
}

a {
    font-size: 16px;
    color: inherit;
    text-decoration: none;
}

ul,
ol {
    list-style: none;
}

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

.container {
    width: 1280px;
    margin: 0 auto;
}

.icon {
    display: inline-block;
    width: 24px;
    height: 24px;
    background-size: contain;
    background-repeat: no-repeat;
}

.header {
    background: #F8FCFE;
    border-bottom: 1px solid #E1F5FE;
    padding: 15px 0;
}

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

.logo {
    width: 200px;
    /* Шире */
    height: 60px;
    /* Выше */
    background: url('/images/logo.svg') no-repeat center / auto 100%;
    text-indent: -9999px;
}

.nav {
    display: flex;
    align-items: center;
    gap: 50px;
}

/* Бургер */
.burger {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.burger span {
    display: block;
    width: 25px;
    height: 3px;
    background: #2C3E50;
    border-radius: 2px;
    transition: 0.3s;
}

/* Контейнер навигации */
.nav-container {
    display: flex;
    justify-content: space-between;

}

/* Адаптив */
@media (max-width: 768px) {
    .nav-container {
        position: fixed;
        top: 0;
        right: -100%;
        /* Выезд справа */
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: #F8FCFE;
        flex-direction: column;
        padding: 80px 30px 30px;
        transition: right 0.3s ease;
        z-index: 999;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }

    .nav-container.active {
        right: 0;
    }

    .nav {
        flex-direction: column;
        gap: 20px;
    }

    .burger {
        display: flex;
        position: relative;
        z-index: 1000;
    }

    .header__contacts {
        margin-top: 30px;
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .header__phone {
        font-size: 18px;
    }

    .callback-btn {
        width: 100%;
    }

    /* Прячем старый блок контактов в хедере */
    .header__inner>.header__contacts {
        display: none;
    }
}



.nav__link {
    color: #2C3E50;
    font-weight: 500;
    transition: color 0.3s;
}

.nav__link:hover {
    color: #1A5276;
}

.nav__user-menu {
    position: relative;
    display: inline-block;
}

.nav__user-button {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 4px;
    color: #2C3E50;
    font-weight: 500;
    transition: all 0.3s;
}

.nav__user-button:hover {
    background-color: #f5f5f5;
    color: #1A5276;
}

/* Иконка стрелки — делаем через mask, как у тебя */
.icon_arrow-down {
    background-color: #2C3E50;
    mask-image: url('/images/icons/icon_arrow-down.svg');
    mask-size: contain;
    mask-repeat: no-repeat;
    width: 16px;
    height: 16px;
    transition: background-color 0.3s;
}

.nav__user-button:hover .icon_arrow-down {
    background-color: #1A5276;
}

/* Выпадашка */
.nav__dropdown {
    display: none;
    /* Теперь скрыто по умолчанию */
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    min-width: 150px;
    background: #F8FCFE;
    border: 1px solid #E1F5FE;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    padding: 8px 0;
}


/* Элементы меню */
.nav__dropdown a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    color: #2C3E50;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.2s;
    text-decoration: none;
}

.nav__dropdown a:hover {
    background-color: #f5f5f5;
    color: #1A5276;
}

/* Иконки в дропдауне — делаем по твоей схеме */
.nav__dropdown .icon {
    width: 20px;
    height: 20px;
    background-color: #2C3E50;
    mask-size: contain;
    mask-repeat: no-repeat;
    flex-shrink: 0;
}

.nav__dropdown a:hover .icon {
    background-color: #1A5276;
}

/* Разделитель */
.nav__dropdown hr {
    margin: 8px 0;
    border: none;
    border-top: 1px solid #E1F5FE;
}

/* Специфичные иконки */
.icon_profile {
    mask-image: url('/images/icons/icon_profile.svg');
}

.icon_settings {
    mask-image: url('/images/icons/icon_settings.svg');
}

.icon_logout {
    mask-image: url('/images/icons/icon_logout.svg');
}

.icon_user {
    mask-image: url('/images/icons/icon_user.svg');
    background-color: #1D1D1B;
}

/* Адаптив для мобилок */
@media (max-width: 768px) {
    .nav__dropdown {
        position: static;
        box-shadow: none;
        border: none;
        padding-left: 20px;
        margin-top: 5px;
    }

    .nav__user-menu:hover .nav__dropdown {
        display: none;
        /* На мобилках лучше по клику, но оставим как есть */
    }
}

.nav__link_cart {
    margin-right: 10px;
    display: flex;
    position: relative;
    justify-content: space-between;
    gap: 5px;
}

.header__cart {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #2C3E50;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s;
    position: relative;
    padding-right: 10px;
}

.header__cart:hover {
    color: #1A5276;
}

.cart-count {
    position: absolute;
    bottom: -5px;
    /* Снизу относительно иконки */
    right: -5px;
    /* Справа относительно иконки */
    background: #A7E7FE;
    color: #1D1D1B;
    font-size: 12px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #F8FCFE;
    line-height: 1;
}

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

.header__phone {
    color: #2C3E50;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s;
}

.header__phone:hover {
    color: #1A5276;
}

.icon_phone {
    background-color: #2C3E50;
    mask-image: url('/images/icons/icon_phone.svg');
    mask-size: contain;
    mask-repeat: no-repeat;
}

.icon_cart {
    background-color: #2C3E50;
    mask-image: url('/images/icons/icon_cart.svg');
    mask-size: contain;
    mask-repeat: no-repeat;
}

.icon_login {
    background-color: #2C3E50;
    mask-image: url('/images/icons/icon_login.svg');
    mask-size: 150%;
    mask-repeat: no-repeat;
    width: 24px;
    height: 24px;
    margin-right: 5px;
    /* Чтобы иконка не сжималась */
}



.header__phone:hover .icon_phone {
    background-color: #1A5276;
}

.callback-btn {
    margin-left: 10px;
    padding: 8px 16px;
    background: #A7E7FE;
    color: #1D1D1B;
    font-weight: 500;
    /* Тоньше */
    font-size: 14px;
    /* Меньше */
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.callback-btn:hover {
    background: #8FD8F0;
}

.order-btn {
    padding: 10px 20px;
    background: #A7E7FE;
    color: #1D1D1B;
    font-weight: 500;
    /* Тоньше */
    font-size: 14px;
    /* Меньше */
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
    width: 100%;
}

.order-btn:hover {
    background: #8FD8F0;
}

.required {
    color: #ff4444;
    margin-left: 3px;
}

/* Кнопка входа */
.login-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #2C3E50;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s;
    padding: 8px 16px;
    border-radius: 4px;
}

.login-link:hover {
    color: #1A5276;
    background-color: #f5f5f5;
}

.login-link svg {
    width: 20px;
    height: 20px;
    transition: transform 0.2s;
}

.login-link:hover svg {
    transform: scale(1.05);
}

/* На мобилках только иконка */
@media (max-width: 768px) {
    .login-link span {
        display: none;
    }

    .login-link {
        padding: 8px;
    }
}

/* На десктопах полная строка */
@media (min-width: 769px) {
    .login-link span {
        display: inline;
    }
}

/* Для навигации */
.nav__link_login {
    display: flex;
    align-items: center;
    margin-left: 20px;
}

.nav__link_logout {
    display: flex;
    align-items: center;
    margin-left: 20px;
}

@media (min-width: 769px) {
    .header__phone[href^="tel:"] {
        pointer-events: none;
        cursor: default;
    }
}

@media (max-width: 768px) {
    .header__phone[href^="tel:"] {
        pointer-events: auto;
    }
}