:root {
    --design-font: 'Exo2', Arial, sans-serif;
    --design-heading: 'Circe', 'Exo2', Arial, sans-serif;
    --design-ink: #222f47;
    --design-primary: #235cb5;
    --design-primary-hover: #1d4f96;
    --design-action: #518ff2;
    --design-action-hover: #74a5f5;
    --design-on-action: #1a263b;
    --design-muted: #5b6470;
    --design-line: #dfe6f2;
    --design-surface: #f5f7fb;
    --itp-navy: var(--design-ink);
    --itp-blue: var(--design-primary);
    --itp-link: var(--design-primary);
    --itp-gold: #ffb619;
    --itp-soft: var(--design-surface);
    color-scheme: light;
}

html { scroll-behavior: smooth; scroll-padding-top: 130px; }
body {
    margin: 0;
    min-width: 0;
    color: var(--design-ink);
    background: #fff;
    font-family: var(--design-font);
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}
body :is(input, select, textarea, button) { font-family: var(--design-font); }
body :is(input, textarea, select) { accent-color: var(--design-primary); }
body :is(a, button, input, select, textarea, summary):focus-visible {
    outline: 3px solid var(--design-primary);
    outline-offset: 4px;
}
body :is(input, textarea, select):focus-visible { outline-offset: 2px; }
body :is(a, button) { transition: color .18s, background-color .18s, border-color .18s; }
body .container { width: calc(100% - 64px); max-width: 1240px; padding-inline: 0; }
body .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    height: auto;
    padding: 13px 22px;
    border: 1px solid var(--design-action);
    border-radius: 35px;
    background: var(--design-action);
    color: var(--design-on-action);
    font: 700 15px/1.4 var(--design-font);
    letter-spacing: 0;
    text-transform: none;
    text-decoration: none;
    text-align: center;
    box-shadow: none;
    cursor: pointer;
}
body .button:hover { background: var(--design-action-hover); border-color: var(--design-action-hover); color: var(--design-on-action); }
body .button:disabled { opacity: .55; cursor: wait; }
body :is(input[type='text'], input[type='tel'], input[type='email'], input[type='search'], textarea, select) {
    box-sizing: border-box;
    min-width: 0;
    max-width: 100%;
    border-radius: 10px;
    color: var(--design-ink);
}
body .itp-header { position: sticky; top: 0; z-index: 50; background: #fff; font-family: var(--design-font); }
.itp-header .itp-header__top { min-height: 36px; gap: 24px; font-size: 11px; color: var(--design-muted); }
.itp-header__tagline { margin-right: auto; font-weight: 500; }
.itp-header .itp-header__region { margin-right: 0; color: var(--design-muted); }
.itp-header__region img { display: none; }
.itp-header .itp-header__phone { color: var(--design-ink); font-weight: 650; font-size: 13px; }
.itp-header .itp-header__email, .itp-header .itp-header__docs { color: var(--design-muted); }
.itp-header .itp-header__callback { color: var(--design-primary); font-size: 11px; }
.itp-header .itp-header__bar { background: var(--design-ink); color: #fff; border-top: 0; border-bottom: 2px solid var(--itp-gold); }
.itp-header .itp-header__bar-content { min-height: 78px; gap: 24px; }
.itp-header__logo { padding-right: 26px; }
.itp-header .itp-header__logo img { display: block; width: clamp(105px, 13vw, 167px); height: auto; }
.itp-header .itp-header__nav { flex: 1; gap: 28px; }
.itp-header .itp-header__nav > a, .itp-header .itp-menu-products > a { color: #fff; font-size: 14px; font-weight: 700; }
.itp-header .itp-header__mobile-account { display: none; }
.itp-header .itp-header__nav a:hover, .itp-header .itp-header__nav .itp-link-active { color: var(--itp-gold); }
.itp-header :is(.itp-menu-products__toggle, .itp-header__account, .itp-header__cart, .itp-header__search-toggle, .itp-header__menu-button) { color: #fff; min-width: 40px; min-height: 44px; }
.itp-header .itp-header__search-toggle { display: inline-grid; }
.itp-header .itp-header__search {
    display: none;
    position: absolute;
    inset: 100% 0 auto auto;
    z-index: 4;
    width: min(440px, 100%);
    padding: 16px;
    background: #fff;
    border: 1px solid var(--design-line);
    border-radius: 0 0 12px 12px;
    box-shadow: 0 14px 24px rgb(20 47 53 / 8%);
}
.itp-header .itp-header__search.is-open { display: flex; }
.itp-header .itp-header__search input { min-height: 46px; background: var(--design-surface); border: 1px solid var(--design-line); color: var(--design-ink); font-size: 15px; padding: 10px 12px; }
.itp-header .itp-header__search button { color: var(--design-ink); }
.itp-header .itp-header__quote { padding: 12px 16px; border-radius: 35px; background: var(--design-action); color: var(--design-on-action); font-size: 12px; font-weight: 700; white-space: nowrap; }
.itp-header .itp-header__quote:hover { background: var(--design-action-hover); }
.itp-header .itp-menu-products__toggle span { border-color: currentColor; }
.itp-header .itp-menu-products__panel { background: #fff; color: var(--design-ink); border: 1px solid var(--design-line); border-radius: 0 0 12px 12px; box-shadow: 0 20px 40px rgb(20 47 53 / 10%); padding: 28px; }
.itp-header .itp-menu-products__panel p { color: var(--design-muted); font-size: 12px; font-weight: 500; }
.itp-header .itp-menu-products__panel a { color: var(--design-ink); font-size: 14px; padding-block: 8px; }
.itp-header .itp-menu-products__panel a:hover { color: var(--design-primary); }
.itp-header .itp-header__cart span { background: var(--itp-gold); color: var(--design-ink); border-color: var(--design-ink); font-family: var(--design-font); }
.itp-header .itp-header__burger, .itp-header .itp-header__burger::after { background: transparent; }
.itp-header .itp-header__search input::placeholder { color: var(--design-muted); }
.itp-header :focus-visible { outline-color: var(--itp-gold); }
.itp-header__top :focus-visible, .itp-header__search :focus-visible, .itp-menu-products__panel :focus-visible { outline-color: var(--design-primary); }
.itp-footer :focus-visible { outline-color: #ffb619; }

body .itp-footer { padding-top: 64px; background: var(--design-ink); color: #f5f7fb; font: 400 14px/1.7 var(--design-font); }
.itp-footer .itp-footer__identity img { width: 167px; height: auto; }
.itp-footer .itp-footer__grid { grid-template-columns: 1.2fr 1fr .85fr 1fr; gap: 40px; padding-bottom: 44px; }
.itp-footer .itp-footer__identity > p { max-width: 225px; margin-top: 20px; color: #c2ccdc; font-size: 13px; }
.itp-footer .itp-footer__grid h2 { margin-bottom: 18px; font: 600 13px/1.4 var(--design-font); color: #b6c4da; }
.itp-footer .itp-footer__grid nav a { padding-block: 5px; font-size: 13px; }
.itp-footer .itp-footer__phone { font-size: 20px; font-weight: 600; }
.itp-footer .itp-footer__contacts p { color: #c2ccdc; font-size: 13px; margin-top: 14px; }
.itp-footer .itp-footer__contacts .button { margin-top: 18px; border-color: #7891b4; color: #fff; background: transparent; font-size: 13px; }
.itp-footer a:hover { color: #ffb619; }
.itp-footer .itp-footer__bottom { padding-block: 22px; border-color: #43516a; font-size: 11px; color: #c2ccdc; }

body .itp-cookie { width: min(400px, calc(100% - 32px)); padding: 18px; border: 1px solid var(--design-line); border-radius: 12px; box-shadow: 0 8px 36px rgb(20 47 53 / 12%); color: var(--design-ink); font-family: var(--design-font); }
.itp-cookie .itp-cookie__title { font-size: 15px; }
.itp-cookie .itp-cookie__description { font-size: 12px; line-height: 1.6; color: var(--design-muted); }
.itp-cookie .itp-cookie__policy { font-size: 11px; color: var(--design-primary); }
.itp-cookie .itp-cookie__actions { gap: 8px; }
.itp-cookie .itp-cookie__actions button { min-height: 46px; border-color: #a9b8cf; background: #f3f6fb; color: #1d4f96; font-size: 11px; border-radius: 7px; }
.itp-cookie .itp-cookie__actions button:hover { background: #e6eefb; }
.itp-cookie .itp-cookie__error { font-size: 12px; }

.itp-search-page { padding: 36px 0 80px; background: var(--design-surface); min-height: 55vh; }
.itp-search-page h1 { font: 600 clamp(28px,4vw,48px)/1.15 var(--design-font); letter-spacing: -.04em; }
.itp-search-page .itp-search-page__form { max-width: 720px; }
.itp-search-page .itp-search-page__form input { background: #fff; min-height: 50px; border: 1px solid var(--design-line); }
.itp-search-page .itp-search-page__form input { flex: 1 1 0; min-width: 0; }
.itp-search-page .itp-search-page__form .button { flex: 0 0 auto; width: auto; }
.itp-search-products { max-width: 880px; margin-block: 40px; }
.itp-search-products h2 { margin-bottom: 18px; font-size: 24px; font-weight: 600; letter-spacing: -.025em; }
.itp-search-products ul { padding: 0; margin: 0; list-style: none; background: #fff; border-radius: 10px; border: 1px solid var(--design-line); }
.itp-search-products li + li { border-top: 1px solid var(--design-line); }
.itp-search-products li > a { display: flex; align-items: center; gap: 20px; padding: 20px; text-decoration: none; color: var(--design-ink); }
.itp-search-products li > a:hover { background: #edf3fc; }
.itp-search-products img { width: 80px; height: 80px; flex: none; object-fit: contain; }
.itp-search-products strong { font-size: 16px; font-weight: 600; }
.itp-search-products small { display: block; font-size: 12px; color: var(--design-muted); margin-top: 7px; }
.itp-search-products__price { margin-left: auto; white-space: nowrap; font-size: 14px; font-weight: 550; }
.itp-search-products .itp-search-products__all { display: inline-flex; padding-block: 18px; font-size: 13px; font-weight: 600; color: var(--design-primary); }
.itp-search-page .itp-search-page__results li { border: 1px solid var(--design-line); border-radius: 10px; padding: 24px; }
.itp-search-page .itp-search-page__results h2 { font-weight: 600; }

@media (max-width: 1199px) {
    .itp-header .itp-header__bar-content { gap: 18px; }
    .itp-header .itp-header__nav { gap: 20px; }
    .itp-header .itp-header__quote { display: none; }
    .itp-header__logo { padding-right: 12px; }
}
@media (max-width: 991px) {
    .itp-header .itp-header__bar-content { min-height: 68px; gap: 14px; }
    .itp-header .itp-header__nav.is-open { inset: 100% 0 auto; padding: 14px 22px; background: var(--design-ink); border: 1px solid var(--design-line); max-height: calc(100dvh - 110px); overflow-y: auto; }
    .itp-header .itp-header__nav > a, .itp-header .itp-menu-products > a { min-height: 48px; font-size: 15px; }
    .itp-header .itp-menu-products__panel { box-shadow: none; padding: 18px; }
    .itp-header .itp-header__menu-button { margin-left: auto; }
    .itp-footer .itp-footer__grid { grid-template-columns: 1fr 1fr; gap: 34px; }
}
@media (max-width: 600px) {
    html { scroll-padding-top: 105px; }
    body .container { width: calc(100% - 36px); }
    .itp-header .itp-header__top { min-height: 32px; justify-content: space-between; }
    .itp-header .itp-header__contact { width: 100%; justify-content: space-between; gap: 10px; }
    .itp-header .itp-header__phone { font-size: 12px; }
    .itp-header .itp-header__callback { font-size: 11px; }
    .itp-header .itp-header__bar-content { gap: 6px; min-height: 64px; }
    .itp-header__logo { padding-right: 0; }
    .itp-header :is(.itp-header__cart, .itp-header__menu-button, .itp-header__search-toggle) { min-width: 44px; width: 44px; }
    .itp-header .itp-header__account { display: none; }
    .itp-header .itp-header__mobile-account { display: inline-flex; }
    .itp-header .itp-menu-products__panel a { display: flex; min-height: 44px; align-items: center; box-sizing: border-box; }
    .itp-header .itp-header__search { inset-inline: 0; width: auto; }
    body .itp-footer { padding-top: 40px; }
    .itp-footer .itp-footer__grid { gap: 28px 18px; }
    .itp-footer .itp-footer__identity { grid-column: 1 / -1; }
    .itp-footer .itp-footer__identity > p { max-width: 290px; }
    .itp-footer .itp-footer__contacts { grid-column: 1 / -1; }
    .itp-footer .itp-footer__bottom { gap: 12px 20px; line-height: 1.6; }
    .itp-cookie .itp-cookie__description { font-size: 12px; }
    body .itp-cookie { inset-inline: 12px; bottom: 12px; width: auto; padding: 16px; }
    .itp-search-products li > a { flex-wrap: wrap; gap: 12px; padding: 16px; }
    .itp-search-products img { width: 52px; height: 52px; }
    .itp-search-products li > a > span:first-of-type { flex: 1; min-width: 0; }
    .itp-search-products strong { font-size: 14px; overflow-wrap: anywhere; }
    .itp-search-products__price { flex-basis: 100%; margin-left: 64px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    body :is(a, button), body :is(a, button)::before, body :is(a, button)::after { transition: none; }
}
