/* ---------------------- Стили шапки (без akpp- префикса) ---------------------- */
.site-header * {
    box-sizing: border-box;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    width: 100%;
}

.header-flex {
    display: flex;
}
.header-flex-space-between {
    justify-content: space-between;
}
.header-flex-items-center {
    align-items: center;
}
.header-d-mob-none {
    display: flex;
}
.header-d-desk-none {
    display: none;
}

/* Верхняя полоса */
.header-top-wrap {
    background: var(--dark);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.header-top {
    padding: 10px 0;
    color: #ffffff;
    font-size: 14px;
}
.header-top-contacts > div {
    margin-right: 25px;
}
.header-top-contacts a {
    color: #ffffff;
    text-decoration: none;
}
.header-top-contacts a:hover {
    color: var(--primary);
}
.header-top-contacts i {
    color: #fff;
    margin-right: 8px;
    width: 16px;
}
.header-socials {
    display: flex;
    gap: 15px;
}
.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #fff;
    border-radius: 6px;
    color: #000;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 18px;
}
.social-link:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}

/* Основная часть */
.header-main-wrap {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.header-main {

}
.header-main-logo {
    flex-shrink: 0;
}
.header-main-contacts {
    text-align: center;
    flex-grow: 1;
    margin: 0 30px;
}
.header-phones {
    display: flex;
    gap: 20px;
    justify-content: center;
}
.header-phone {
    color: var(--dark);
    font-weight: bold;
    font-size: 16px;
    text-decoration: none;
}
.header-phone:hover {
    color: var(--primary);
}

/* Блок вызова мастера */
.header__contacts {
    display: flex;
    gap: 10px;
    align-items: center;
    position: relative;
    z-index: 1;
}
.header__callback-btn {
    background: var(--secondary);
    border: none;
    border-radius: 6px;
    padding: 12px 60px;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}
.header__callback-btn:hover {
    background: #e05a00;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255,107,0,0.3);
}
.header__chat-btn {
    width: 44px;
    height: 44px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
.header__chat-btn:hover {
    border-color: var(--primary);
    background: var(--light);
}
.header__contacts-box {
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    display: none;
    z-index: 1000;
    min-width: 200px;
}
.header__contacts-box.active {
    display: block;
}
.socials__list {
    display: flex;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 15px 0 0 0;
}
.socials__link {
    display: block;
    color: var(--gray);
    transition: color 0.3s ease;
}
.socials__link:hover {
    color: var(--primary);
}

/* Меню (десктоп) — тёмный фон, светлый текст */
.header-menu-wrap {
    background: var(--dark);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.header__nav-list {
    display: flex;
    justify-content: space-between;
    list-style: none;
    padding: 0;
    margin: 0;
}
.header__nav-item {
    position: relative;
}
.header__nav-link {
    display: block;
    padding: 15px 20px;
    color: #ffffff;               /* светлый текст на тёмном фоне */
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.3s ease;
}
.header__nav-link:hover {
    color: var(--primary);
}
.header__nav-item:hover .header__nav2 {display:block}
.header-address {
    color: #2d3748;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.header-address i {
    color: #4299e1;
    margin-right: 8px;
}
/* Мобильная версия */
.header-mobile-wrap {
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.header-mobile-main {
    padding: 15px 0;
}

.header-mobile-search {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}
.header__menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}
.header__box {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 2000;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    padding: 20px;
}
.header__box.active {
    transform: translateX(0);
}
.header__box-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}
.header__box .header__nav-list {
    flex-direction: column;
}
.header__box .header__nav-item {
    border-bottom: 1px solid var(--border);
}
.header__box .header__nav-link {
    color: var(--dark);          /* тёмный текст для мобильного меню */
    padding: 12px 0;
}
.header__box .header__nav-link:hover {
    color: var(--primary);
}
.header__box .header__contacts {
    margin-top: 30px;
    justify-content: center;
}

/* Адаптивность */
@media (max-width: 1024px) {
    .header-d-mob-none {
        display: none !important;
    }
    .header-d-desk-none {
        display: flex !important;
    }
}
@media (max-width: 768px) {
    .header-top-contacts > div {
        margin-right: 15px;
        font-size: 12px;
    }
    .header-phones {
        flex-direction: column;
        gap: 5px;
    }
    .header-phone {
        font-size: 14px;
    }
}

/* Выпадающие подменю */
.header__nav2 {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    box-shadow: 0 5px 25px rgba(0,0,0,0.15);
    min-width: 240px;
    z-index: 1000;
    display: none;
    border-radius: 0 0 8px 8px;
    overflow: hidden;
    border: 1px solid var(--border);
    list-style: none;
    padding: 0;
}

.header__nav-item:hover .header__nav2 {
    display: block;
}

.header__nav2 li {
    border-bottom: 1px solid var(--light);
}

.header__nav2 li:last-child {
    border-bottom: none;
}

.header__nav2 a {
    display: block;
    padding: 12px 20px;
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.header__nav2 a:hover {
    color: var(--primary);
    background: var(--light);
}

.header__nav-link-icon {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.js-slide:hover .header__nav-link-icon {
    transform: rotate(180deg);
}


.header-mobile-logo .logo-img {
    width: 60px;
    height: 60px;
}

.header-mobile-logo .logo-text h1 {
    font-size: 1.1rem;
}

.header-mobile-logo .logo-text p {
    font-size: 0.7rem;
}