.home-header {
    background: #ffffff;
    border-bottom: 1px solid #e8ecef;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    overflow: visible;
}

.home-header-top {

    overflow: visible;
}
.home-header-main {
    padding: 0px 0px 15px 0px;
}

.home-header-container {
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 30px;
    overflow: visible;
}

/* Верхняя панель */
.home-header-city {
    position: relative;
    z-index: 1000;
    display: inline-block;
}

.home-header-main .home-header-container {
    position: relative;
}

.home-header-city-popup {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: transparent;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding-top: 0;
    pointer-events: none;
    width: max-content;
}

.home-header-city-popup.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.home-header-city-popup-content {
    background: #ffffff;
    border-radius: 12px;
    padding: 0;

    position: relative;
    transform: translateY(-10px);
    transition: transform 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.home-header-city-popup.active .home-header-city-popup-content {
    transform: translateY(10px);
}

.home-header-city-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px 0;
    font-size: 13px;
    color: #666666;
    transition: color 0.2s ease;
}

.home-header-city-btn:hover {
    color: #00acc1;
}

.home-header-city-btn svg:first-child {
    color: #00acc1;
}

.home-header-city-btn svg:last-child {
    color: #999999;
    transition: transform 0.2s ease;
}

.home-header-city-btn.popup-open svg:last-child {
    transform: rotate(180deg);
}

.home-header-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
}

.home-header-nav-link {
    font-size: 13px;
    color: #666666;
    text-decoration: none;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.home-header-nav-link:hover {
    color: #00acc1;
}

.home-header-phone {
    margin-left: auto;
}

.home-header-phone-link {
    font-size: 14px;
    font-weight: 600;
    color: #212121;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s ease;
}

.home-header-phone-link:hover {
    color: #00acc1;
}

/* Основная панель */

.home-header-main .home-header-container {
    gap: 20px;
}



.home-header-logo {
    flex-shrink: 0;
}

.home-header-logo img {
    display: block;
    max-height: 40px;
    width: auto;
}

.home-header-catalog-btn {
    display: flex;
    align-items: center;
    gap: 10px;


    background: #00acc1;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 12px 20px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}


.home-header-catalog-btn:hover {
    background: #2d2d2d;
}

.home-header-catalog-btn.active {
    background: #1a1a1a;
}

.home-header-catalog-btn svg {
    flex-shrink: 0;
}

.home-header-catalog-btn .catalog-btn-cross {
    display: none;
}

.home-header-catalog-btn.active .catalog-btn-menu {
    display: none;
}

.home-header-catalog-btn.active .catalog-btn-cross {
    display: block;
}

/* Мега-меню каталога */
.home-header-catalog-menu {
    position: fixed;
    top: 130px;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    display: flex;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;

    width: 100%;
    max-width: 1310px;
}

.home-header-catalog-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.home-header-catalog-menu-sidebar {
    width: 280px;
    flex-shrink: 0;
    background: #f5f5f5;
    border-radius: 12px 0 0 12px;
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow-y: auto;
    max-height: 500px;
}

.home-header-catalog-menu-sidebar::-webkit-scrollbar {
    width: 8px;
    background: #e8ecef;
    border-radius: 4px;
}

.home-header-catalog-menu-sidebar::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.home-header-catalog-menu-sidebar::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}

.home-header-catalog-menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    width: 100%;
}

.home-header-catalog-menu-item:hover {
    background: #e8ecef;
}

.home-header-catalog-menu-item.active {
    background: #ffffff;
    color: #00acc1;
}

.home-header-catalog-menu-item span {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.home-header-catalog-menu-item svg {
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.home-header-catalog-menu-item.active svg {
    transform: translateX(3px);
}

.home-header-catalog-menu-content {
    flex: 1;
    padding: 25px 30px;
    overflow-y: auto;
    max-height: 500px;
}

.home-header-catalog-menu-content::-webkit-scrollbar {
    width: 8px;
    background: #f5f5f5;
    border-radius: 4px;
}

.home-header-catalog-menu-content::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.home-header-catalog-menu-content::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}

.home-header-catalog-menu-panel {
    display: none;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.home-header-catalog-menu-panel.active {
    display: grid;
}

.home-header-catalog-menu-column {
    min-width: 0;
}

.home-header-catalog-menu-subcategory {
    font-size: 12px;
    font-weight: 700;
    color: #00acc1;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e8ecef;
}

.home-header-catalog-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.home-header-catalog-menu-list li a {
    font-size: 13px;
    color: #212121;
    text-decoration: none;
    transition: color 0.2s ease;
    line-height: 1.4;
}

.home-header-catalog-menu-list li a:hover {
    color: #00acc1;
}

.home-header-search {
    flex: 1;

}

.home-header-search-form {
    display: flex;
    position: relative;
    margin-block-end: 0em;
}



.home-header-search-input {
    width: 100%;
    padding: 12px 45px 12px 16px;
    font-size: 13px;
    border: 1px solid #d0d5dc;
    border-radius: 6px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    font-family: inherit;
    color: #212121;
    background: #ffffff;
    text-transform: uppercase;
}

.home-header-search-input::placeholder {
    color: #999999;
    font-size: 12px;
    text-transform: uppercase;
}

.home-header-search-input:focus {
    border-color: #00acc1;
    box-shadow: 0 0 0 3px rgba(0, 172, 193, 0.1);
}

.home-header-search-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: #666666;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-header-search-btn:hover {
    color: #00acc1;
}

.home-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.home-header-action {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid #e8ecef;
    border-radius: 6px;
    color: #666666;
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
}

.home-header-action:hover {
    border-color: #00acc1;
    color: #00acc1;
}

.home-header-cart {
    position: relative;
}

.home-header-cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #00acc1;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
}

.home-header-callback-btn {
    background: #00acc1;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 12px 24px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    flex-shrink: 0;
}

.home-header-callback-btn:hover {
    background: #0097a7;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 172, 193, 0.3);
}

/* Popup */
.home-header-city-popup {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    background: transparent;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding-top: 0;
    pointer-events: none;
}

.home-header-city-popup.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.home-header-city-popup-content {
    background: #ffffff;
    border-radius: 12px;
    padding: 0;
    max-width: 450px;
    width: 100%;
    position: relative;
    transform: translateY(-10px);
    transition: transform 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.home-header-city-popup.active .home-header-city-popup-content {
    transform: translateY(0);
}

.home-header-callback-popup,
.home-header-callback-popup.active {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding-top: 60px;
}

.home-header-callback-popup.active {
    opacity: 1;
    visibility: visible;
}

.home-header-callback-popup-content {
    background: #ffffff;
    border-radius: 12px;
    padding: 30px;
    max-width: 450px;
    width: 90%;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.home-header-callback-popup.active .home-header-callback-popup-content {
    transform: translateY(0);
}

/* City popup specific styles */
.home-header-city-popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 25px;
    gap: 15px;
}

.home-header-city-popup-question {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.home-header-city-popup-title-small {
    font-size: 14px;
    color: #666666;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.home-header-city-popup-city-name {
    font-size: 20px;
    font-weight: 700;
    color: #00acc1;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.home-header-city-popup-yes-btn {
    background: #00acc1;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 10px 30px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.home-header-city-popup-yes-btn:hover {
    background: #0097a7;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 172, 193, 0.3);
}

.home-header-city-popup-divider {
    height: 1px;
    background: #e8ecef;
    margin: 0 25px;
}

.home-header-city-popup-other {
    padding: 20px 25px 25px;
}

.home-header-city-popup-other-title {
    font-size: 14px;
    font-weight: 700;
    color: #212121;
    margin: 0 0 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.home-header-city-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.home-header-city-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
    background: transparent;
    border: none;
    border-radius: 0;
    cursor: pointer;
    transition: color 0.2s ease;
    font-size: 14px;
    color: #212121;
    text-align: left;
    justify-content: flex-start;
}

.home-header-city-item:hover {
    color: #00acc1;
}

.home-header-city-item span {
    font-weight: 400;
}

.home-header-city-popup-note {
    font-size: 12px;
    color: #999999;
    margin: 15px 0 0;
    line-height: 1.4;
}

.home-header-callback-popup-content {
    padding: 30px;
}

.home-header-callback-popup-title {
    font-size: 22px;
    font-weight: 700;
    color: #212121;
    margin-bottom: 15px;
}

.home-header-callback-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
    color: #999999;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-header-callback-popup-close:hover {
    color: #212121;
}

.home-header-callback-popup-subtitle {
    font-size: 14px;
    color: #666666;
    margin-bottom: 25px;
    line-height: 1.5;
}

.home-header-callback-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.home-header-callback-input {
    padding: 14px 16px;
    font-size: 14px;
    border: 1px solid #d0d5dc;
    border-radius: 6px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    font-family: inherit;
    color: #212121;
    background: #ffffff;
}

.home-header-callback-input::placeholder {
    color: #999999;
}

.home-header-callback-input:focus {
    border-color: #00acc1;
    box-shadow: 0 0 0 3px rgba(0, 172, 193, 0.1);
}

.home-header-callback-submit {
    background: #00acc1;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 14px 24px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 10px;
}

.home-header-callback-submit:hover {
    background: #0097a7;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 172, 193, 0.3);
}

.home-header-callback-agreement {
    font-size: 12px;
    color: #999999;
    margin-top: 5px;
}

.home-header-callback-agreement label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
}

.home-header-callback-agreement input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border: 1px solid #d0d5dc;
    border-radius: 3px;
    margin-top: 2px;
    flex-shrink: 0;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.home-header-callback-agreement input[type="checkbox"]:checked {
    background: #00acc1;
    border-color: #00acc1;
}

.home-header-callback-agreement input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
}

.home-header-callback-agreement a {
    color: #00acc1;
    text-decoration: underline;
}

.home-header-callback-agreement a:hover {
    color: #008ba3;
}

button.home-header-catalog-menu-item span {
    color: black;
}

button.home-header-catalog-menu-item.active span {
    color: #01acc1;
}

/*.home-header-callback-btn {*/

/*    width: 259px;*/
/*    font-size: 16px;*/
/*    font-weight: 800;*/
/*}*/

/*.home-header-catalog-btn {*/


/*    font-size: 16px;*/
/*    font-weight: 800;*/
/*}*/


/* Адаптивность */
@media (max-width: 1199px) {
    .home-header-nav {
        gap: 15px;
    }
    
    .home-header-nav-link {
        font-size: 12px;
    }

    .home-header-search {
        max-width: 300px;
    }
}

.home-header {
    background: unset;
    border-bottom: 1px solid #e8ecef;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: unset;
    overflow: visible;
}

.home-header-logo {
    flex-shrink: 0;
    border: solid 1px #00000038;
    border-radius: 5px;
    padding: 3px;
    text-align: center;
}

.home-header-logo a {
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-header-logo a img {

    object-fit: contain;
}



.home-header-catalog-btn {


}

.home-header-search-input {


}

.home-header-callback-btn {


}

.home-header-action{

}


.home-header-catalog-menu {
    position: fixed;
    top: 100px;
    min-height: 500px;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    display: flex;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    width: 100%;
    max-width: 1310px;
}

@media (min-width: 992px) {


    header.fixed {
        box-shadow: unset;
        /* position: relative; */
        background-color: #ffffff;
    }
}

@media (max-width: 991px) {
    body {

        margin: 15px;
    }
    .home-header {

     position: relative;
    }

    .home-header-top .home-header-container {
        flex-wrap: wrap;
    }
    
    .home-header-nav {
        order: 3;
        width: 100%;
        justify-content: center;
        padding: 10px 0;
    }
    
    .home-header-main .home-header-container {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .home-header-search {
        order: 3;
        max-width: 100%;
        width: 100%;

    }
    
    .home-header-actions {
        order: 4;
    }
    
    .home-header-callback-btn {
        order: 5;
    }
}

@media (max-width: 767px) {
    .home-header-nav {
        display: none;
    }
    
    .home-header-phone {
        display: none;
    }
    
    .home-header-catalog-btn span {
        display: none;
    }
    
    .home-header-catalog-btn {
        padding: 12px 16px;
    }
    
    .home-header-callback-btn {
        display: none;
    }
    
    .home-header-actions {
        gap: 6px;
    }
    
    .home-header-action {
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 575px) {
    .home-header-city-btn span {
        display: none;
    }
    
    .home-header-logo img {
        max-height: 30px;
    }
    
    .home-header-search-input {
        font-size: 12px;
        padding: 10px 40px 10px 12px;
    }
}
