.c-header {
    background: #fff;
    border-bottom: 1px solid var(--color-line);
}

.c-header__bar {
    min-height: var(--header-height);
}

.c-header__brand,
.c-header .custom-logo-link {
    display: inline-flex;
    align-items: center;
    margin-right: 1.5rem;
    color: var(--color-ink);
    text-decoration: none;
}

.c-header__brand img {
    display: block;
    width: auto;
    height: 40px;
}

.c-header__collapse {
    align-items: center;
}

.c-header__menu {
    gap: 0.15rem;
}

.c-header .nav-link {
    color: var(--color-ink);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.875rem;
}

.c-header .nav-link:hover,
.c-header .nav-link:focus-visible,
.c-header .nav-link.active {
    color: var(--color-brand);
}

.c-header .dropdown-menu {
    border: 1px solid var(--color-line);
    border-radius: var(--radius-control);
    box-shadow: var(--shadow-card);
}

.c-header__fold,
.c-header__sub {
    display: contents;
}

.c-header__sub {
    margin: 0;
    padding: 0;
    list-style: none;
}

.c-header .dropdown-item {
    font-weight: 600;
}

.c-header .dropdown-item:hover,
.c-header .dropdown-item:focus {
    background: #fff4f3;
    color: var(--color-brand);
}

@media (min-width: 992px) {
    .c-header .dropdown:hover > .dropdown-menu,
    .c-header .dropdown:focus-within > .dropdown-menu {
        display: block;
    }

    .c-header .c-header__more {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
        pointer-events: none;
    }
}

.c-header__tools {
    display: flex;
    align-items: center;
    gap: 1.05rem;
    margin-left: auto;
}

.c-header__phone {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--color-ink);
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.c-header__phone-icon {
    width: 1.15rem;
    height: 1.15rem;
    object-fit: contain;
}

.c-header__phone:hover {
    color: var(--color-ink);
}

.c-header__rule {
    width: 1px;
    height: 1.7rem;
    background: #c5c9ce;
    flex: 0 0 auto;
}

.c-header__tools .c-button--arrow .c-button__icon {
    width: 1.2rem;
    height: 1.2rem;
}

.c-header__tools .c-button--arrow .c-button__icon path {
    stroke-width: 2.75;
}

.c-header__call {
    display: none;
}

.c-header__hours {
    display: none;
}

.c-header .navbar-toggler {
    display: none;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    color: var(--color-ink);
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.c-header .navbar-toggler:hover,
.c-header .navbar-toggler:focus,
.c-header .navbar-toggler:active {
    background: transparent;
    border: 0;
    box-shadow: none;
    outline: 0;
}

.c-header .navbar-toggler:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

.c-header__glyph {
    width: 1.45rem;
    height: 1.45rem;
}

.c-header__glyph--close {
    display: none;
}

.c-header__toggler[aria-expanded="true"] .c-header__glyph--menu {
    display: none;
}

.c-header__toggler[aria-expanded="true"] .c-header__glyph--close {
    display: block;
}

@media (max-width: 991.98px) {
    .c-header {
        --header-height: 56px;
        position: relative;
        z-index: 1040;
    }

    .c-header .navbar {
        padding-top: 0;
        padding-bottom: 0;
    }

    body.home .c-header {
        position: absolute;
        top: 0;
        right: 0;
        left: 0;
        background: transparent;
        border-bottom: 0;
    }

    body.home.is-nav-open .c-header {
        padding-right: var(--nav-gap, 0px);
    }

    .c-header__bar {
        position: relative;
        z-index: 2;
        min-height: var(--header-height);
    }

    .c-header__brand,
    .c-header .custom-logo-link,
    .c-header__call,
    .c-header__toggler {
        position: relative;
        z-index: 3;
    }

    .c-header__brand img {
        height: 32px;
    }

    .c-header__call {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 2.5rem;
        height: 2.5rem;
        margin-left: auto;
        color: var(--color-brand);
    }

    .c-header__call svg {
        width: 1.6rem;
        height: 1.6rem;
    }

    .c-header .navbar-toggler {
        display: inline-flex;
        width: 2.25rem;
        height: 2.25rem;
        margin-left: 0.15rem;
        color: #17191c;
    }

    .c-header .navbar-toggler[aria-expanded="true"],
    body.is-nav-open .c-header .navbar-toggler {
        color: #fff;
    }

    body.is-nav-open .c-header__glyph--menu {
        display: none;
    }

    body.is-nav-open .c-header__glyph--close {
        display: block;
    }

    .c-header__glyph--menu {
        width: 1.7rem;
        height: 1.7rem;
    }

    body.is-nav-open {
        overflow: hidden;
        padding-right: var(--nav-gap, 0px);
    }

    .c-header__collapse {
        position: fixed;
        inset: 0;
        z-index: 1;
        display: flex !important;
        flex-direction: column;
        align-items: stretch;
        height: 100dvh;
        padding: calc(var(--header-height) + 1.55rem) 1.75rem 1.5rem;
        overflow: auto;
        background-color: #07111d;
        background-image:
            linear-gradient(180deg, rgba(6, 14, 24, 0.96) 0%, rgba(9, 18, 29, 0.94) 100%),
            url("../../images/menu-plant.png");
        background-position: center;
        background-size: cover;
        transform: translateX(100%);
        visibility: hidden;
        pointer-events: none;
        transition: transform 0.42s cubic-bezier(0.22, 0.61, 0.36, 1), visibility 0s linear 0.42s;
    }

    .c-header__collapse::before {
        content: "";
        position: absolute;
        inset: 0;
        z-index: -1;
        background: rgba(4, 10, 18, 0.62);
        pointer-events: none;
    }

    .c-header.is-open .c-header__collapse {
        transform: translateX(0);
        visibility: visible;
        pointer-events: auto;
        transition: transform 0.42s cubic-bezier(0.22, 0.61, 0.36, 1), visibility 0s linear 0s;
    }

    .c-header.is-open {
        background: transparent;
        border-bottom: 0;
    }

    @media (prefers-reduced-motion: reduce) {
        .c-header__collapse,
        .c-header.is-open .c-header__collapse,
        .c-header .dropdown-menu,
        .c-header .dropdown-menu.show,
        .c-header .dropdown-toggle::after,
        .c-header .nav-link {
            transition: none;
        }
    }

    .c-header__menu {
        width: 100%;
        padding-top: 0.35rem;
        gap: 0;
    }

    .c-header__menu > .nav-item + .nav-item {
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
    }

    .c-header .dropdown {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
    }

    .c-header .dropdown > .nav-link {
        flex: 1 1 auto;
        width: auto;
    }

    .c-header .dropdown > .dropdown-menu {
        flex: 1 0 100%;
    }

    .c-header .c-header__more {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 2.75rem;
        height: 2.75rem;
        padding: 0;
        color: #fff;
        background: transparent;
        border: 0;
    }

    .c-header .dropdown-toggle::after {
        display: none;
    }

    .c-header .nav-link {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 1.15rem 0.05rem;
        color: #fff;
        font-size: 1.35rem;
        font-weight: 700;
        transition: background-color 0.32s ease, padding 0.32s ease;
    }

    .c-header .nav-link:hover,
    .c-header .nav-link:focus-visible,
    .c-header .nav-link.active,
    .c-header .navbar-nav .nav-link.show,
    .c-header .navbar-nav .nav-link.show:hover,
    .c-header .navbar-nav .nav-link.show:focus {
        color: #fff;
    }

    .c-header .c-header__more::after {
        display: inline-block;
        width: 0.5rem;
        height: 0.5rem;
        content: "";
        border-right: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        transform: translateY(-0.12rem) rotate(45deg);
        transform-origin: 60% 60%;
        transition: transform 0.32s ease;
    }

    .c-header .c-header__more[aria-expanded="true"]::after {
        transform: translateY(0.12rem) rotate(-135deg);
    }

    .c-header .dropdown-menu {
        position: static;
        display: grid;
        grid-template-rows: 0fr;
        width: 100%;
        min-width: 0;
        margin: 0;
        padding: 0;
        overflow: hidden;
        color: #1c2128;
        background: transparent;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        transform: none;
        visibility: hidden;
        transition: grid-template-rows 0.4s cubic-bezier(0.22, 0.61, 0.36, 1), visibility 0s linear 0.4s;
    }

    .c-header .dropdown-menu.show {
        grid-template-rows: 1fr;
        visibility: visible;
        margin-bottom: 0.75rem;
        background: #f4f4f6;
        border-radius: 8px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
        transition: grid-template-rows 0.4s cubic-bezier(0.22, 0.61, 0.36, 1), visibility 0s linear 0s;
    }

    .c-header__fold {
        display: block;
        min-height: 0;
        overflow: hidden;
    }

    .c-header__sub {
        display: flex;
        flex-direction: column;
        gap: 0.15rem;
        margin: 1.15rem 1.15rem 1.15rem 1.2rem;
        padding: 0.05rem 0.1rem 0.05rem 0.9rem;
        list-style: none;
        border-left: 3px solid var(--color-yellow);
    }

    .c-header .dropdown-item {
        padding: 0.4rem 0.15rem;
        color: #121820;
        background: transparent;
        font-size: 1rem;
        font-weight: 600;
    }

    .c-header .dropdown-item:hover,
    .c-header .dropdown-item:focus,
    .c-header .dropdown-item:active {
        color: #1c2128;
        background: rgba(23, 25, 28, 0.06);
    }

    .c-header__tools {
        flex-direction: column;
        align-items: stretch;
        gap: 1.15rem;
        width: 100%;
        margin: auto 0 0;
        padding-top: 1.5rem;
    }

    .c-header__phone,
    .c-header__phone:hover,
    .c-header__phone:focus-visible {
        display: grid;
        grid-template-columns: 1.25rem 1fr;
        align-items: center;
        column-gap: 0.7rem;
        row-gap: 0.45rem;
        color: #fff;
        font-size: 1.45rem;
    }

    .c-header__rule {
        display: none;
    }

    .c-header__phone-icon {
        width: 1.25rem;
        height: 1.25rem;
        grid-column: 1;
        grid-row: 1;
    }

    .c-header__phone-number {
        grid-column: 2;
        grid-row: 1;
    }

    .c-header__hours {
        display: grid;
        grid-column: 1 / -1;
        grid-template-columns: 1.25rem 1fr;
        align-items: start;
        column-gap: 0.7rem;
        color: #c5ced6;
        font-size: 0.95rem;
        font-weight: 500;
        line-height: 1.45;
    }

    .c-header__clock {
        width: 1.15rem;
        height: 1.15rem;
        margin-top: 0.12rem;
        justify-self: center;
        object-fit: contain;
    }

    .c-header__tools .c-button {
        width: 100%;
        min-height: 52px;
        border-radius: 12px;
    }
}
