/* ============================================================
   NEW HEADER  —  redesign test for service #1333
   Brand: #ff8901  |  Dark: #333  |  Gray: #999  |  Light: #f7f8f9
   ============================================================ */

/* ─── Wrapper offset for fixed header ─── */
.wrapper { padding-top: 72px !important; }
@media (max-width: 992px) { .wrapper { padding-top: 64px !important; } }

/* ─── Header shell ─── */
.header--new {
    background: transparent;
    box-shadow: unset;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    font-family: 'Montserrat', Arial, sans-serif;
}

.hn-inner {
    display: flex;
    align-items: center;
    height: 72px;
}

/* ─── Logo ─── */
.hn-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    margin-right: 28px;
    text-decoration: none;
}
.hn-logo img {
    height: 28px;
    width: auto;
    display: block;
}

/* ─── Desktop nav ─── */
.hn-nav {
    flex: 1;
    align-self: stretch;
    display: flex;
    align-items: stretch;
}
.hn-menu {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}
.hn-item {
    position: relative;
    display: flex;
    align-items: stretch;
}
.hn-item > a {
    display: flex;
    align-items: center;
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
    color: #151515;
    text-decoration: none;
    white-space: nowrap;
    transition: all .3s;
    line-height: 100%;
    border-radius: 250px;
    height: fit-content;
}
.hn-item > a:hover,
.hn-item:hover > a { 
    color: #FF8901;
    background: #FFF6EB;
}

/* ─── Dropdown (simple) ─── */
.hn-dropdown {
    margin-top: 2px;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    box-shadow: 0 8px 32px rgba(0,0,0,.13);
    min-width: 350px;
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    border-radius: 24px;
    transform: translateY(8px);
    transition: opacity .2s, transform .2s, visibility 0s .2s;
    pointer-events: none;
    list-style: none;
}
.hn-item:hover .hn-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity .2s, transform .2s;
    pointer-events: auto;
}
.hn-dropdown li a {
    display: block;
    padding: 20px 8px 20px 16px;
    color: #151515;
    font-size: 16px;
    line-height: 100%;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: color .3s;
}
.hn-dropdown li a:hover { color: #FF8901; }

/* ─── Mega dropdown (2-col) ─── */
.hn-dropdown--mega {
    min-width: 702px;
    padding: 0;
    display: flex;
    flex-direction: row;
    overflow: hidden;
    background: transparent;
    box-shadow: unset;
}
.hn-mega-left {
    flex: 0 0 350px;
    border-right: 1px solid #f0f0f0;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,.05);
}
.hn-mega-right {
    flex: 1;
    margin-left: 2px;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,.05);
    height: fit-content;
}
.hn-mega-right-panel { display: none; }
.hn-mega-right-panel.active { display: block; }
.hn-mega-right-panel a {
    display: block;
    padding: 20px 8px 20px 16px;
    color: #151515;
    font-size: 16px;
    line-height: 100%;
    font-weight: 600;
    text-decoration: none;
    transition: color .3s;
}
.hn-mega-right-panel a:hover { color: #FF8901; }

/* Left column item (with or without children) */
.hn-sub-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 8px 20px 16px;
    color: #151515;
    font-size: 16px;
    line-height: 100%;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: color .3s;
}
.hn-sub-link:hover,
.hn-sub-link.active { color: #FF8901; }
.hn-sub-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    opacity: 0;
    margin-left: 6px;
    margin-right: 12px;
    transition: opacity .3s;
    flex-shrink: 0;
}
.hn-sub-arrow svg { display: block; width: 100%; height: 100%; }
.hn-sub-link.active .hn-sub-arrow,
.hn-sub-link:hover .hn-sub-arrow { opacity: 1; }

/* ─── Right section ─── */
.hn-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    margin-left: auto;
    position: relative;
}

/* ─── Phone rotator ─── */
.hn-phone-wrap {
    cursor: pointer;
    user-select: none;
    position: relative;
}
.hn-phone-item {
    display: none;
    flex-direction: column;
    gap: 4px;
}
.hn-phone-item.active {
    display: flex;
    animation: hn-fadein .3s ease;
}
@keyframes hn-fadein {
    from { opacity: 0; transform: translateY(3px); }
    to   { opacity: 1; transform: translateY(0); }
}
.hn-phone-row {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #FFF6EB;
    border-radius: 250px;
    padding: 16px;
    position: relative;
}
.hn-phone-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.hn-phone-icon svg { width: 16px; height: 16px; display: block; }
.hn-phone-num {
    font-size: 16px;
    font-weight: 600;
    color: #FF8901;
    line-height: 100%;
    white-space: nowrap;
}
.hn-phone-label {
    margin: 4px auto 0 auto;
    font-size: 12px;
    line-height: 100%;
    font-weight: 600;
    color: #999999;
    letter-spacing: 2%;
    white-space: nowrap;
    text-transform: uppercase;
}

/* ─── Phone rotator progress bar ─── */
.hn-phone-progress {
    width: 161px;
    position: absolute;
    left: 0;
    right: 0;
    margin: 0 auto;
    bottom: 0px;
    height: 2px;
    background: rgba(255,137,1,.0);
    border-radius: 2px 0 0 2px;
    overflow: hidden;
}
.hn-phone-progress span {
    display: block;
    height: 100%;
    width: 0%;
    background: #FF8901;
    border-radius: 2px;
}
.hn-phone-progress.run span {
    animation: hn-phone-progress 10s linear forwards;
}
@keyframes hn-phone-progress {
    from { width: 0%; }
    to   { width: 100%; }
}

/* ─── Header icons (mail, account) ─── */
.hn-icons { display: flex; align-items: center; gap: 2px; }
.hn-icon-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: #666;
    text-decoration: none;
    font-size: 16px;
    transition: background .15s, color .15s;
}
.hn-icon-btn:hover { background: #f7f8f9; color: #ff8901; }

/* ─── Contact modal ─── */
.hn-modal {
    position: absolute;
    top: 10px;
    right: 20px;
    width: 360px;
    background: #FFFFFF;
    border-radius: 36px;
    box-shadow: 0 8px 40px rgba(0,0,0,.18);
    padding: 28px 20px 20px;
    z-index: 2000;
    display: none;
}
.hn-modal.active {
    display: block;
    animation: hn-fadein .2s ease;
}
.hn-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 48px;
    height: 48px;
    background: #FFF6EB;
    border: none;
    border-radius: 50%;
    color: #FFFFFF;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background .15s;
}
.hn-modal-close:hover { background: #FFECD6; }
.hn-modal-title {
    font-size: 26px;
    line-height: 120%;
    font-weight: 600;
    color: #151515;
    margin-bottom: 8px;
    padding-right: 44px;
}
.hn-modal-subtitle {
    font-family: 'Arial';
    font-size: 16px;
    color: #999999;
    margin-bottom: 20px;
    line-height: 150%;
    padding-right: 44px;
}
.hn-modal-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px;
    border: 1px solid #F0F0F0;
    border-radius: 24px;
}
.hn-modal-row:not(:first-child) {
    margin-top: 4px;
}
.hn-modal-info { flex: 1; min-width: 0; }
.hn-modal-label {
    font-size: 12px;
    letter-spacing: 2%;
    line-height: 100%;
    font-weight: 600;
    color: #999999;
    text-transform: uppercase;
}
.hn-modal-label_green {
    color: #B5D87C;
}
.hn-modal-label_orange {
    color: #FF8901;
}
.hn-modal-phone-num {
    display: block;
    font-size: 16px;
    font-weight: 600;
    line-height: 100%;
    color: #151515;
    text-decoration: none;
    margin-top: 8px;
}
.hn-modal-call {
    width: 48px;
    height: 48px;
    background: #FFF6EB;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    text-decoration: none;
    transition: background .15s;
}
.hn-modal-call:hover { background: #FFECD6; }
.hn-modal-call svg { width: 16px; height: 16px; fill: #FF8901 }
.hn-modal-note {
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    border: 1px solid #F0F0F0;
    font-weight: 600;
    font-size: 14px;
    color: #999999;
    line-height: 120%;
    border-radius: 24px;
}

/* ─── Burger ─── */
.hn-burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 6px;
    margin-left: 12px;
    background: none;
    border: none;
}
.hn-burger span {
    display: block;
    width: 22px;
    height: 2px;
    background: #333;
    border-radius: 2px;
    transition: all .25s;
}
.hn-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hn-burger.open span:nth-child(2) { opacity: 0; }
.hn-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── Mobile nav ─── */
.hn-mobile-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0,0,0,.1);
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    z-index: 500;
}
.hn-mobile-nav.open { display: block; }
.hn-mobile-list { list-style: none; margin: 0; padding: 0 20px; }
.hn-mobile-list > li { border-bottom: 1px solid #f0f0f0; }
.hn-mobile-list > li:last-child { border-bottom: none; }
.hn-mobile-list li a {
    display: block;
    padding: 14px 0;
    color: #333;
    font-size: 15px;
    text-decoration: none;
    transition: color .15s;
}
.hn-mobile-list li a:hover { color: #ff8901; }
.hn-mobile-extra { border-top: 1px solid #f0f0f0; }

/* ─── Mobile menu: nested accordion built from .hn-menu ─── */
.hn-mobile-item__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.hn-mobile-item__row a { flex: 1; min-width: 0; }
.hn-mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    margin-left: 8px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: #999;
    transition: transform .2s, color .2s;
}
.hn-mobile-toggle svg { width: 16px; height: 16px; display: block; }
.hn-mobile-item.open > .hn-mobile-item__row > .hn-mobile-toggle { transform: rotate(90deg); color: #ff8901; }
.hn-mobile-sub,
.hn-mobile-subsub {
    list-style: none;
    margin: 0;
    padding: 0 0 4px 16px;
    display: none;
}
.hn-mobile-item.open > .hn-mobile-sub,
.hn-mobile-item.open > .hn-mobile-subsub { display: block; }
.hn-mobile-sub li a,
.hn-mobile-subsub li a { padding: 10px 0; font-size: 14px; color: #555; }
.hn-mobile-subsub li a { font-size: 13px; color: #888; }
.hn-mobile-phones {
    padding: 16px 20px;
    border-top: 2px solid #f7f8f9;
}
.hn-mobile-phone-entry { margin-bottom: 12px; }
.hn-mobile-phone-entry a {
    display: block;
    font-size: 17px;
    font-weight: 700;
    color: #333;
    text-decoration: none;
}
.hn-mobile-phone-entry a:hover { color: #ff8901; }
.hn-mobile-phone-label {
    display: block;
    font-size: 10px;
    font-weight: 600;
    color: #999;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-top: 2px;
}

/* ─── Responsive ─── */
@media (max-width: 992px) {
    .hn-inner { height: 64px; }
    .hn-nav { display: none; }
    .hn-phone-wrap { display: none; }
    .hn-burger { display: flex; }
    .hn-modal { right: 10px; width: calc(100vw - 20px); }
}

@media (max-width: 480px) {
    .hn-modal { right: 0; width: 100vw; border-radius: 16px 16px 0 0; bottom: 0; top: auto; }
}
