/* INTechno unified header/footer for legacy template */

.itx-shell,
.itx-shell * {
    box-sizing: border-box;
}

.itx-shell {
    --itx-ink:#16314a;
    --itx-blue:#1469af;
    --itx-navy:#103d65;
    --itx-red:#df3044;
    --itx-sky:#edf5fa;
    --itx-muted:#52697b;
    --itx-line:#dce5ec;
    font-family:Arial,'Segoe UI',sans-serif;
    color:var(--itx-ink);
}

.itx-shell a {
    color:inherit;
    text-decoration:none;
}

.itx-shell a:hover {
    text-decoration:underline;
    text-underline-offset:4px;
}

.itx-shell-wrap {
    width:min(1240px,calc(100% - 80px));
    margin:0 auto;
}

/* Верхняя тонкая строка */
.itx-topline {
    background:var(--itx-sky);
    color:#496477;
    font-family:Arial,'Segoe UI',sans-serif;
    font-size:12px;
    font-weight:400;
    line-height:1.5;
}

.itx-topline-inner {
    display:flex;
    gap:26px;
    align-items:center;
    min-height:34px;
}

.itx-topline-about {
    margin-left:auto;
    color:#496477;
    font-family:Arial,'Segoe UI',sans-serif;
    font-size:12px;
    font-weight:400;
    line-height:1.5;
}

.itx-topline-city {
    border-left:1px solid #cbdce8;
    padding-left:24px;
    font-family:Arial,'Segoe UI',sans-serif;
    font-size:12px;
    font-weight:400;
    line-height:1.5;
}

/* Основная шапка */
.itx-header {
    position:relative;
    z-index:50;
    background:#fff;
    border-bottom:1px solid var(--itx-line);
}

.itx-header-inner {
    display:flex;
    align-items:center;
    gap:24px;
    min-height:99px;
}

.itx-brand {
    width:186px;
    flex:none;
    display:block;
}

.itx-brand img {
    display:block;
    width:186px;
    height:auto;
    max-width:100%;
}

.itx-nav {
    display:flex;
    align-items:center;
    gap:24px;
    margin-left:28px;
    font-family:Arial,'Segoe UI',sans-serif;
    font-size:14px;
    font-weight:600;
    line-height:1.5;
    white-space:nowrap;
}

.itx-nav > a,
.itx-nav-parent > a {
    font-family:Arial,'Segoe UI',sans-serif;
    font-size:14px;
    font-weight:600;
    line-height:1.5;
}

.itx-nav a:hover {
    color:var(--itx-blue);
}

.itx-header-contact {
    margin-left:auto;
    white-space:nowrap;
}

.itx-phone {
    display:block;
    font-family:Arial,'Segoe UI',sans-serif;
    font-size:17px;
    font-weight:700;
    line-height:1.35;
}

.itx-header-contact span {
    display:block;
    margin-top:2px;
    font-family:Arial,'Segoe UI',sans-serif;
    font-size:12px;
    font-weight:400;
    line-height:1.5;
    color:var(--itx-muted);
}

.itx-account {
    display:flex;
    align-items:center;
    gap:9px;
    border-left:1px solid var(--itx-line);
    padding-left:20px;
    color:var(--itx-blue) !important;
    font-family:Arial,'Segoe UI',sans-serif;
    font-size:13px;
    font-weight:400;
    line-height:1.5;
    white-space:nowrap;
}

.itx-account svg {
    width:20px;
    height:20px;
}

.itx-menu-toggle {
    display:none;
    border:0;
    background:transparent;
    padding:10px;
    cursor:pointer;
    color:var(--itx-ink);
}

/* Футер */
.itx-footer {
    background:#fff;
    border-top:1px solid var(--itx-line);
    padding-top:53px;
}

.itx-footer-grid {
    display:grid;
    grid-template-columns:1.1fr 1.1fr .9fr 1.1fr;
    gap:36px;
}

.itx-footer-brand {
    display:inline-block;
    font-size:32px;
    font-weight:700;
    color:var(--itx-blue) !important;
    letter-spacing:-.07em;
}

.itx-footer p {
    color:var(--itx-muted);
    font-size:13px;
    line-height:1.6;
    margin:9px 0;
}

.itx-footer h3 {
    font-size:14px;
    margin:9px 0 22px;
    line-height:1.3;
}

.itx-footer-col > a:not(.itx-footer-brand) {
    display:block;
    font-size:13px;
    margin-bottom:13px;
    line-height:1.5;
}

.itx-footer-small {
    display:block;
    color:var(--itx-muted);
    font-size:12px;
    line-height:1.5;
}

.itx-footer-phone {
    font-size:20px !important;
    font-weight:600;
    margin-bottom:1px !important;
}

.itx-footer-bottom {
    display:flex;
    justify-content:space-between;
    gap:20px;
    margin-top:36px;
    padding:22px 0;
    border-top:1px solid var(--itx-line);
    color:var(--itx-muted);
    font-size:12px;
}

/* Планшет */
@media (max-width:1200px) {
    .itx-shell-wrap {
        width:calc(100% - 48px);
    }

    .itx-header-inner {
        gap:16px;
    }

    .itx-nav {
        gap:18px;
        margin-left:0;
        font-size:14px;
    }

    .itx-nav > a,
    .itx-nav-parent > a {
        font-size:14px;
    }

    .itx-account {
        padding-left:13px;
    }

    .itx-account span {
        display:none;
    }
}

/* Мобильное меню */
@media (max-width:960px) {
    .itx-header-inner {
        position:relative;
        min-height:86px;
    }

    .itx-brand,
    .itx-brand img {
        width:170px;
    }

    .itx-nav {
        position:absolute;
        top:100%;
        left:0;
        right:0;
        display:none;
        margin:0;
        padding:20px 25px;
        background:#fff;
        border-bottom:1px solid var(--itx-line);
        box-shadow:0 10px 20px rgba(22,49,74,.07);
        flex-wrap:wrap;
        white-space:normal;
    }

    .itx-nav.is-open {
        display:flex;
    }

    .itx-menu-toggle {
        display:block;
    }

    .itx-header-contact {
        margin-left:auto;
    }

    .itx-footer-grid {
        grid-template-columns:1fr 1fr;
        gap:35px;
    }
}

@media (max-width:640px) {
    .itx-shell-wrap {
        width:calc(100% - 36px);
    }

    .itx-topline-inner {
        justify-content:center;
        min-height:29px;
        font-size:10px;
    }

    .itx-topline-about,
    .itx-topline-city {
        display:none;
    }

    .itx-header-inner {
        min-height:75px;
        gap:9px;
    }

    .itx-brand,
    .itx-brand img {
        width:145px;
    }

    .itx-header-contact {
        display:none;
    }

    .itx-account {
        margin-left:auto;
        border:0;
        padding:9px;
    }

    .itx-account svg {
        width:23px;
        height:23px;
    }

    .itx-nav {
        flex-direction:column;
        align-items:flex-start;
        gap:0;
        padding:12px 18px 18px;
    }

    .itx-nav a,
    .itx-nav > a,
    .itx-nav-parent > a {
        width:100%;
        padding:10px 0;
        font-size:14px;
    }

    .itx-footer-grid {
        grid-template-columns:1fr 1fr;
        gap:28px 20px;
    }

    .itx-footer-col:first-child,
    .itx-footer-col:last-child {
        grid-column:1/-1;
    }

    .itx-footer-bottom {
        flex-direction:column;
        gap:10px;
        margin-top:25px;
        font-size:11px;
    }

    .itx-footer-bottom span:nth-child(2) {
        display:none;
    }
}
/* Жёстко выравниваем шрифт верхней тонкой строки */
.itx-topline,
.itx-topline span,
.itx-topline a,
.itx-topline .itx-topline-about,
.itx-topline .itx-topline-city {
    font-family: Arial, 'Segoe UI', sans-serif !important;
    font-size: 12px !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
    letter-spacing: 0 !important;
}
body {
    background: #F5F9FC;
}