/* ======= ПОЛНАЯ СТИЛИЗАЦИЯ ШАПКИ ======= */
.header {
    background: linear-gradient(135deg, #f0f9ff 0%, #e6f4ff 100%);
    box-shadow: 0 4px 15px rgba(0, 160, 255, 0.15);
    padding: 10px 0;
    position: relative;
    z-index: 100;
}

.header__nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

/* Логотип */
.header__logo {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.header__logo-link {
    text-decoration: none;
    color: #333;
}

.header__logo-text {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
}

.header__logo-text_highlight {
    color: #007bff;
}

.header__logo-subtitle {
    font-size: 12px;
    color: #666;
}

/* Десктопный логотип (скрыт на мобильных) */
.header__logo--desktop {
    display: block;
}

@media (max-width: 768px) {
    .header__logo--desktop {
        display: none;
    }
}

/* Контакты */
.header__contacts {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

/* Социальные сети */
.header__social {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header__social-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    color: #333;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-decoration: none;
}

.header__social-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 12px rgba(0,0,0,0.15);
}

.header__social-item_telegram:hover { background: #0088cc; color: #fff; }
.header__social-item_youtube:hover { background: #ff0000; color: #fff; }
.header__social-item_instagram:hover { background: #e4405f; color: #fff; }
.header__social-item_vk:hover { background: #4a76a8; color: #fff; }
.header__social-item_whatsapp:hover { background: #25d366; color: #fff; }
.header__social-item_max:hover { background: #000; color: #fff; }

.header__social-item svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.map__social-text {
    font-size: 12px;
    font-weight: 500;
}

/* Телефоны */
.header__phones {
    display: flex;
    flex-direction: column;
    line-height: 1.4;
}

.header__phone {
    font-size: 18px;
    font-weight: 700;
    color: #007bff;
    text-decoration: none;
    transition: color 0.2s;
}

.header__phone:hover {
    color: #0056b3;
}

.header__phone-text {
    font-size: 12px;
    color: #666;
}

.header__phones--desktop {
    display: flex;
}

@media (max-width: 768px) {
    .header__phones--desktop {
        display: none;
    }
}

/* Ряд с логотипом и телефонами (для мобильных) */
.header__logo-phones-row {
    display: none;
    align-items: center;
    gap: 20px;
}

@media (max-width: 768px) {
    .header__logo-phones-row {
        display: flex;
        width: 100%;
        justify-content: space-between;
    }
}

/* Кнопка каталога */
.header__catalog-btn {
    background: #007bff;
    color: #fff;
    padding: 10px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s, box-shadow 0.3s;
    white-space: nowrap;
}

.header__catalog-btn:hover {
    background: #0056b3;
    box-shadow: 0 5px 15px rgba(0,86,179,0.4);
}

/* ======= СТРЕЛКА ВВЕРХ ======= */
.arrow-up {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #007bff;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,123,255,0.3);
    transition: all 0.3s;
    z-index: 99;
}

.arrow-up.hide {
    display: none;
}

.arrow-up:hover {
    background: #0056b3;
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,86,179,0.4);
}

/* ======= ФУТЕР ======= */
footer {
    background: #f0f9ff;
    padding: 30px 0;
    margin-top: 50px;
}

.footer__wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer__privacy-link {
    color: #007bff;
    text-decoration: none;
    border-bottom: 1px dashed;
}

.footer__privacy-link:hover {
    color: #0056b3;
}

.footer__inst-warning {
    font-size: 12px;
    color: #999;
}

/* ======= МОДАЛЬНОЕ ОКНО ПОЛИТИКИ ======= */
.privacy-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
}

.privacy-modal.active {
    display: block;
}

.privacy-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
}

.privacy-modal__content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 15px;
    padding: 30px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.privacy-modal__close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
}

.privacy-modal__close:hover {
    color: #333;
}

.privacy-modal__title {
    margin-top: 0;
    color: #007bff;
}

.privacy-modal__text {
    font-size: 14px;
    line-height: 1.6;
    color: #333;
}