.site-header {
    padding-inline: 3.2%;
    gap: 25px
}

.site-nav {
    gap: 23px
}

.site-header .brand-logo {
    width: 180px
}

.nav-item {
    position: relative
}

.nav-item-top {
    display: flex;
    align-items: center;
    gap: 3px
}

.site-nav .nav-link {
    font-size: 14px;
    line-height: 88px;
    display: block;
    white-space: nowrap;
    position: relative;
    transition: color .2s
}

.scrolled .site-nav .nav-link {
    line-height: 72px
}

.site-nav .nav-link:after {
    content: "";
    position: absolute;
    height: 2px;
    background: var(--blue);
    left: 0;
    right: 0;
    bottom: 18px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s
}

.nav-item.current .nav-link, .nav-item:hover .nav-link {
    color: var(--blue)
}

.nav-item.current .nav-link:after, .nav-item:hover .nav-link:after {
    transform: scaleX(1)
}

.submenu-toggle {
    border: 0;
    background: transparent;
    width: 19px;
    height: 35px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center
}

.submenu-toggle > span {
    width: 5px;
    height: 5px;
    border-bottom: 1px solid #78899f;
    border-right: 1px solid #78899f;
    transform: rotate(45deg);
    margin-top: -3px;
    transition: transform .25s
}

.submenu-toggle[aria-expanded=true] > span {
    transform: rotate(225deg);
    margin-top: 3px
}

.nav-dropdown {
    position: absolute;
    left: -30px;
    top: calc(100% - 3px);
    width: 260px;
    background: #fff;
    border: 1px solid #e9eef6;
    box-shadow: 0 22px 45px #0b2f641a;
    padding: 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(9px);
    transition: opacity .23s, transform .23s, visibility .23s;
    pointer-events: none
}

.nav-item.open .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto
}

.nav-dropdown > a {
    display: block;
    padding: 18px;
    transition: background .25s;
    color: var(--ink)
}

.nav-dropdown > a + a {
    border-top: 1px solid #edf1f7
}

.nav-dropdown > a:hover {
    background: #f2f6ff
}

.nav-dropdown strong {
    display: block;
    font-size: 15px;
    font-weight: 500;
    transition: color .2s
}

.nav-dropdown > a:hover strong {
    color: var(--blue)
}

.nav-dropdown span {
    display: block;
    color: #8897ad;
    font-size: 12px;
    margin-top: 8px
}

.nav-item:last-of-type .nav-dropdown {
    left: auto;
    right: -20px
}

.site-header .header-contact {
    padding: 11px 16px;
    gap: 14px;
    font-size: 14px
}

.footer-links {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
    font-size: 13px;
    color: #7b8ba5;
    margin-bottom: 25px
}

.footer-links a:hover {
    color: var(--blue)
}

.inner-page .site-header {
    position: fixed
}

.inner-page main {
    padding-top: 88px
}

.inner-page .site-header.scrolled {
    height: 72px
}

.site-nav .mobile-contact {
    line-height: 58px
}

.site-nav .mobile-contact:after {
    display: none
}

@media (min-width: 1121px) and (max-width: 1320px) {
    .site-header {
        gap: 18px;
        padding-inline: 2.5%
    }

    .site-nav {
        gap: 16px
    }

    .site-header .brand-logo {
        width: 127px
    }

    .site-nav .nav-link {
        font-size: 13px
    }

    .site-header .header-contact {
        font-size: 13px;
        padding: 10px 12px;
        gap: 10px
    }

    .submenu-toggle {
        width: 15px
    }

    .nav-item-top {
        gap: 1px
    }
}

@media (max-width: 1120px) {
    .site-header, .site-header.scrolled {
        height: 72px;
        padding: 0 24px
    }

    .site-header .brand-logo {
        width: 139px
    }

    .site-header .header-contact {
        display: none
    }

    .site-header .menu-toggle {
        display: flex !important;
        width: 42px;
        height: 42px;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 6px;
        background: none;
        border: 0;
        margin-left: auto
    }

    .menu-toggle span {
        display: block;
        width: 23px;
        height: 1px;
        background: var(--ink);
        transition: transform .3s
    }

    .menu-toggle[aria-expanded=true] span:first-child {
        transform: translateY(3.5px) rotate(45deg)
    }

    .menu-toggle[aria-expanded=true] span:last-child {
        transform: translateY(-3.5px) rotate(-45deg)
    }

    .site-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        display: none;
        background: #fff;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 12px 25px 25px;
        border-top: 1px solid var(--line);
        box-shadow: 0 20px 30px #12356310;
        max-height: calc(100svh - 72px);
        overflow-y: auto
    }

    .site-nav.open {
        display: flex
    }

    .nav-item {
        border-bottom: 1px solid #e9eef6
    }

    .nav-item-top {
        justify-content: space-between;
        gap: 0
    }

    .site-nav .nav-link, .scrolled .site-nav .nav-link {
        font-size: 16px;
        line-height: 54px;
        width: calc(100% - 50px)
    }

    .site-nav .nav-link:after {
        display: none
    }

    .submenu-toggle {
        height: 45px;
        width: 45px
    }

    .submenu-toggle > span {
        width: 7px;
        height: 7px
    }

    .nav-dropdown, .nav-item:last-of-type .nav-dropdown {
        position: static;
        width: 100%;
        padding: 0 0 12px;
        background: transparent;
        border: 0;
        box-shadow: none;
        transform: none;
        display: none;
        transition: none
    }

    .nav-item.open .nav-dropdown {
        display: block
    }

    .nav-dropdown > a {
        background: #f4f7fc;
        margin: 0;
        padding: 15px 20px
    }

    .nav-dropdown > a + a {
        border-color: #e3ebf7
    }

    .nav-dropdown span {
        display: none
    }

    .nav-dropdown strong {
        font-size: 14px
    }

    .site-nav .mobile-contact {
        display: block !important;
        font-size: 16px;
        line-height: 54px;
        border: 0
    }

    .inner-page main {
        padding-top: 72px
    }

    .footer-links {
        gap: 16px 24px
    }
}

@media (max-width: 700px) {
    .site-header, .site-header.scrolled {
        height: 70px;
        padding-inline: 20px
    }

    .site-header .brand-logo {
        width: 129px
    }

    .site-nav {
        max-height: calc(100svh - 70px)
    }

    .inner-page main {
        padding-top: 70px
    }

    .footer-links {
        font-size: 12px;
        gap: 14px 20px
    }
}

.product-controls > a {
    display: block;
    position: relative;
    font-size: 15px;
    color: var(--muted);
    padding: 0 0 18px
}

.product-controls > a:hover, .product-controls > a.active {
    color: var(--blue)
}

.product-controls > a.active:after {
    content: "";
    position: absolute;
    height: 2px;
    background: var(--blue);
    bottom: -1px;
    left: 0;
    right: 0
}

.product-card, .case-card, .news-card {
    color: inherit
}

.product-card:focus-visible, .case-card:focus-visible, .news-card:focus-visible {
    outline: 3px solid #5d9cff;
    outline-offset: 5px
}

@media (prefers-reduced-motion: reduce) {
    .nav-dropdown {
        transition: none
    }
}
