:root {
    --itp-navy: #222f47;
    --itp-blue: #518ff2;
    --itp-link: #235cb5;
    --itp-gold: #ffb619;
    --itp-soft: #f3f6fb;
}

.itp-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}
.itp-skip-link {
    position: absolute;
    top: .5rem;
    left: .5rem;
    z-index: 2000;
    padding: .55rem .9rem;
    color: white;
    background: var(--itp-navy);
    transform: translateY(-160%);
}
.itp-skip-link:focus { transform: none; }
.itp-popup-field {
    display: grid;
    gap: .3rem;
    color: var(--itp-navy);
    font-size: .92rem;
    font-weight: 600;
    text-align: left;
}
#itp-main-content :focus-visible { outline: 2px solid var(--itp-link); outline-offset: 3px; }
.itp-header { position: relative; z-index: 20; font-family: Exo2, sans-serif; }
.itp-header a, .itp-footer a { text-decoration: none; }
.itp-header :focus-visible, .itp-footer :focus-visible { outline: 2px solid var(--itp-gold); outline-offset: 3px; }
.itp-header__top {
    display: flex;
    align-items: center;
    min-height: 43px;
    gap: 1.05rem;
    color: var(--itp-navy);
    font-size: .84rem;
}
.itp-header__tagline { font-weight: 700; }
.itp-header__region { display: flex; gap: .3rem; align-items: center; color: #536078; white-space: nowrap; margin-right: auto; }
.itp-header__region img { width: 13px; height: auto; }
.itp-header__docs { color: #414e67; white-space: nowrap; }
.itp-header__email, .itp-header__phone, .itp-header__callback { color: var(--itp-link); white-space: nowrap; }
.itp-header__contact { display: flex; align-items: center; gap: .65rem; }
.itp-header__phone { font-weight: 700; }
.itp-header a.itp-header__callback { text-decoration: underline; text-underline-offset: .16em; }
.itp-header__bar {
    background: var(--itp-navy);
    color: white;
    border-bottom: 2px solid var(--itp-gold);
}
.itp-header__bar-content {
    min-height: 76px;
    display: flex;
    align-items: center;
    gap: clamp(.65rem, 1.5vw, 1.4rem);
    position: relative;
}
.itp-header__logo { display: flex; align-items: center; flex: 0 0 auto; }
.itp-header__logo img { width: clamp(125px, 13vw, 167px); height: auto; display: block; }
.itp-header__nav {
    flex: 1 0 auto;
    align-self: stretch;
    display: flex;
    align-items: stretch;
    gap: clamp(.6rem, 1.45vw, 1.45rem);
}
.itp-header__nav > a, .itp-menu-products > a {
    display: inline-flex;
    align-items: center;
    color: white;
    font-weight: 600;
    font-size: .94rem;
    white-space: nowrap;
}
.itp-header__nav > a:hover, .itp-menu-products > a:hover, .itp-header__nav .itp-link-active { color: var(--itp-gold); }
.itp-menu-products { display: flex; align-items: stretch; gap: .18rem; }
.itp-menu-products__toggle,
.itp-header__account,
.itp-header__menu-button,
.itp-header__search-toggle,
.itp-header__search button {
    display: inline-grid;
    place-items: center;
    border: 0;
    background: transparent;
    padding: 0;
    color: white;
    cursor: pointer;
}
.itp-menu-products__toggle { min-width: 24px; }
.itp-menu-products__toggle span {
    width: .45rem;
    height: .45rem;
    border: solid currentColor;
    border-width: 0 1.5px 1.5px 0;
    transform: translateY(-2px) rotate(45deg);
}
.itp-menu-products__toggle[aria-expanded="true"] span { transform: translateY(2px) rotate(225deg); }
.itp-menu-products__panel {
    position: absolute;
    inset: 100% 12px auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: clamp(1rem, 3vw, 3rem);
    padding: 1.5rem;
    z-index: 2;
    border: 1px solid #dfe7f1;
    border-top: 3px solid var(--itp-gold);
    border-radius: 0 0 14px 14px;
    background: #fff;
    color: var(--itp-navy);
    box-shadow: 0 18px 45px rgb(34 47 71 / 19%);
}
.itp-menu-products__panel[hidden] { display: none; }
.itp-menu-products__panel p { margin: 0 0 .65rem; font-weight: 700; }
.itp-menu-products__panel ul { margin: 0; padding: 0; list-style: none; }
.itp-menu-products__panel li + li { margin-top: .55rem; }
.itp-menu-products__panel a { color: var(--itp-link); }
.itp-menu-products__panel a:hover { text-decoration: underline; }
.itp-header__search {
    display: flex;
    flex: 1 1 14rem;
    min-width: 0;
    border-bottom: 1px solid #a9b7cf;
}
.itp-header__search input {
    flex: 1 1 auto;
    width: 0;
    border: 0;
    background: transparent;
    font: inherit;
    font-size: .87rem;
    color: white;
    padding: .4rem .3rem;
}
.itp-header__search input::placeholder { color: #dce5f4; }
.itp-header__search button { width: 31px; flex: 0 0 auto; }
.itp-header__account, .itp-header__menu-button, .itp-header__search-toggle { width: 40px; min-height: 44px; flex: 0 0 auto; }
.itp-header__account:hover, .itp-header__search button:hover, .itp-header__search-toggle:hover { color: var(--itp-gold); }
.itp-header .itp-header__mobile-docs, .itp-header__menu-button, .itp-header__search-toggle { display: none; }
.itp-header__burger { width: 20px; height: 14px; display: block; border-block: 2px solid currentColor; position: relative; }
.itp-header__burger::after { content: ""; position: absolute; inset: calc(50% - 1px) 0 auto; border-top: 2px solid currentColor; }

.itp-footer { color: #edf3fe; background: var(--itp-navy); padding-top: clamp(2rem, 6vw, 4.5rem); font-family: Exo2, sans-serif; }
.itp-footer__grid { display: grid; grid-template-columns: 1fr 1.4fr .95fr 1.15fr; gap: 1.5rem clamp(1.5rem, 4vw, 3.5rem); }
.itp-footer__grid > * { min-width: 0; }
.itp-footer__grid h2 { margin: 0 0 .75rem; font: 700 1rem/1.35 Circe, Exo2, sans-serif; color: white; }
.itp-footer__grid p { margin: .6rem 0; line-height: 1.5; }
.itp-footer__grid nav a, .itp-footer__contacts > a:not(.button) { display: block; margin-bottom: .55rem; }
.itp-footer__grid a:not(.button), .itp-footer__bottom a { color: #edf3fe; }
.itp-footer a:hover { text-decoration: underline; text-underline-offset: .2em; }
.itp-footer__identity img { width: min(170px, 100%); height: auto; }
.itp-footer__phone { font-weight: 700; font-size: 1.12rem; }
.itp-footer__contacts .button { display: inline-flex; margin-top: .4rem; padding: .65rem .9rem; font-size: .8rem; align-items: center; }
.itp-footer__messengers { display: flex; gap: .6rem; margin-top: .8rem; }
.itp-footer__messengers a { display: grid; place-items: center; min-width: 35px; min-height: 35px; background: #41516f; border-radius: 50%; }
.itp-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem 1.4rem;
    align-items: center;
    margin-top: 1.9rem;
    padding: 1.15rem 0;
    border-top: 1px solid #65718a;
    font-size: .84rem;
}
.itp-footer__bottom > :last-child { margin-left: auto; }

.itp-search-page { background: var(--itp-soft); color: var(--itp-navy); padding-block: 2rem 4.5rem; }
.itp-search-page h1 { margin: 1rem 0 1.5rem; }
.itp-search-page__breadcrumb { display: flex; gap: .7rem; font-size: .92rem; color: #586581; }
.itp-search-page__breadcrumb > span::before { content: "/"; margin-right: .7rem; }
.itp-search-page a { color: var(--itp-link); }
.itp-search-page__form { display: flex; align-items: stretch; gap: .65rem; width: min(600px, 100%); }
.itp-search-page__form input {
    flex: 1 1 auto;
    min-width: 0;
    padding: .7rem .9rem;
    color: var(--itp-navy);
    background: white;
    border: 1px solid #b8c7df;
    border-radius: 10px;
    font: inherit;
}
.itp-search-page__form .button { flex: 0 0 auto; padding: .55rem 1rem; }
.itp-search-page__results { width: min(740px, 100%); list-style: none; padding: 0; margin: 1.4rem 0 0; }
.itp-search-page__results li { background: white; border: 1px solid #dde4f1; border-radius: 12px; padding: 1rem 1.2rem; margin-bottom: .7rem; }
.itp-search-page__results h2 { margin: 0; font-size: 1.22rem; }
.itp-search-page__results p { margin: .45rem 0 0; }

@media (max-width: 1199px) {
    .itp-header__region { display: none; }
    .itp-header__tagline { margin-right: auto; }
    .itp-header__bar-content { gap: .8rem; }
}
@media (max-width: 991px) {
    .itp-header__top { min-height: 37px; }
    .itp-header__bar-content { min-height: 64px; }
    .itp-header__nav { display: none; }
    .itp-header__nav.is-open {
        position: absolute;
        display: flex;
        flex-direction: column;
        inset: 100% 12px auto;
        gap: 0;
        padding: .5rem 1rem;
        background: var(--itp-navy);
        border-radius: 0 0 14px 14px;
        box-shadow: 0 15px 30px rgb(34 47 71 / 25%);
        z-index: 4;
    }
    .itp-header__nav > a, .itp-menu-products > a { min-height: 44px; }
    .itp-header .itp-header__mobile-docs { display: inline-flex; }
    .itp-menu-products { flex-wrap: wrap; }
    .itp-menu-products__toggle { min-width: 44px; }
    .itp-menu-products__panel { position: static; width: 100%; grid-template-columns: 1.3fr 1fr 1fr; margin-bottom: .45rem; box-shadow: none; }
    .itp-header__menu-button { display: inline-grid; margin-left: auto; }
    .itp-header__search { flex: 0 1 18rem; }
    .itp-header__email { display: none; }
    .itp-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
    .itp-header__top { justify-content: flex-end; font-size: .78rem; gap: .6rem; }
    .itp-header__tagline, .itp-header__docs { display: none; }
    .itp-header__bar-content { min-height: 58px; gap: .2rem; }
    .itp-header__menu-button, .itp-header__account, .itp-header__search-toggle { width: 37px; }
    .itp-header__search-toggle { display: inline-grid; }
    .itp-header__search {
        position: absolute;
        inset: 100% 12px auto;
        z-index: 3;
        display: none;
        background: var(--itp-navy);
        padding: .65rem;
        border: 0;
        border-radius: 0 0 12px 12px;
    }
    .itp-header__search.is-open { display: flex; }
    .itp-header__search input { border: 1px solid #a5b3cb; border-radius: 6px; padding: .5rem; }
    .itp-menu-products__panel { grid-template-columns: 1fr; gap: .85rem; padding: .75rem; }
    .itp-menu-products__panel p { margin-bottom: .35rem; }
    .itp-footer__grid { column-gap: 1rem; }
    .itp-footer__identity, .itp-footer__contacts { grid-column: 1 / -1; }
    .itp-footer__bottom > :last-child { margin-left: 0; }
}
