.site-masthead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(14px, 3vw, 44px);
    padding: clamp(15px, 2vw, 24px) 0;
    color: #172e4b;
}
.masthead-brand { display: inline-flex; align-items: flex-end; gap: clamp(12px, 1.6vw, 22px); color: inherit; text-align: left; }
.masthead-logo { display: block; width: clamp(112px, 13vw, 150px); height: auto; }
.masthead-signature {
    display: grid;
    gap: 7px;
    max-width: 255px;
    padding-left: clamp(12px, 1.6vw, 20px);
    border-left: 1px solid #dce4ef;
    color: #3b506c;
    font-size: clamp(13px, 1.15vw, 15px);
    line-height: 1.35;
    text-wrap: balance;
}
.masthead-signature img { display: block; width: clamp(106px, 11vw, 136px); height: auto; }
.header-call-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.header-vk, .vk-chat-link {
    color: #4e637a;
    font: 400 13px/1.3 'Lato', Arial, sans-serif;
}
.header-vk {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    margin-right: clamp(2px, .7vw, 10px);
    padding: 4px 8px;
    border-radius: 5px;
}
.header-vk:hover { background: #eff5ff; color: #104fc1; }
.header-vk-label { text-align: left; white-space: nowrap; }
.header-vk-mark {
    position: relative;
    display: grid;
    place-items: center;
    flex: none;
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background: #0077ff;
}
.header-vk-mark img { display: block; }
.header-vk-mark::after, .vk-chat-circle::after {
    content: "";
    position: absolute;
    box-sizing: border-box;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #15995b;
    pointer-events: none;
}
.header-vk-mark::after { right: -2px; bottom: -2px; width: 12px; height: 12px; }
.header-call-phone, .header-call-button, .callback-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border-radius: 9px;
    font: 700 16px/1.2 'Lato', Arial, sans-serif;
    cursor: pointer;
}
.header-call-phone {
    width: 46px;
    height: 46px;
    background: #f0f5ff;
    border: 1px solid #cadbf5;
}
.header-call-button, .callback-submit { padding: 12px 20px; background: #0f60ef; color: white; border: 0; }
.header-call-phone, .header-call-button { flex: none; border-radius: 5px; }
.header-call-button { min-width: clamp(152px, 17vw, 200px); }
.contact-dock {
    --chat-gutter: clamp(16px, 2vw, 28px);
    position: fixed;
    inset: auto 0 0;
    z-index: 7;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    pointer-events: none;
}
.vk-chat-link {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    margin: 0 calc(var(--chat-gutter) + env(safe-area-inset-right, 0px)) var(--chat-gutter) 0;
    border-radius: 8px;
    pointer-events: auto;
}
.vk-chat-label {
    font-weight: 500;
    white-space: nowrap;
    padding: 9px 13px;
    border: 1px solid #d2dfed;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 3px 12px #17365e1a;
}
.vk-chat-circle {
    position: relative;
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #0f60ef;
    box-shadow: 0 4px 16px #144aa33d;
}
.vk-chat-circle::after {
    right: 1px;
    bottom: 1px;
    width: 14px;
    height: 14px;
    box-shadow: 0 0 0 2px #15995b36, 0 0 6px #15995b40;
}
.vk-chat-link:hover .vk-chat-circle { background: #104fc1; }
.vk-chat-link:focus-visible { outline: 3px solid #1659c3 !important; outline-offset: 4px; }
@media (prefers-reduced-motion: no-preference) {
    .vk-chat-circle::before {
        content: "";
        position: absolute;
        inset: 0;
        border: 2px solid #2675ed;
        border-radius: inherit;
        pointer-events: none;
        animation: vk-chat-wave 3.2s ease-out infinite;
    }
    .vk-chat-circle::after { animation: vk-status-glow 3.2s ease-in-out infinite; }
}
@keyframes vk-status-glow {
    50% { box-shadow: 0 0 0 4px #15995b29, 0 0 10px #15995b59; }
}
@keyframes vk-chat-wave {
    0%, 16% { opacity: 0; transform: scale(1); }
    23% { opacity: .5; }
    70%, 100% { opacity: 0; transform: scale(1.48); }
}
.site-nav {
    --nav-gap: clamp(12px, 1.6vw, 24px);
    --nav-top: calc(var(--nav-gap) + env(safe-area-inset-top, 0px));
    --nav-right: calc(var(--nav-gap) + env(safe-area-inset-right, 0px));
    --nav-size: 46px;
    min-height: 50px;
    margin: clamp(8px, 1vw, 14px) 0 18px;
    background: #f5f8fc;
    border: 1px solid #d9e3ef;
    border-radius: 6px;
    color: #193351;
}
.nav-panel { display: block; position: static; width: auto; margin: 0; padding: 0; border: 0; background: transparent; color: inherit; }
.nav-caption { display: none; }
.site-nav-links { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(max-content, 1fr); margin: 0; padding: 0; list-style: none; }
.site-nav-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 6px;
    color: #213958;
    font: 700 16px/1.3 'Lato', Arial, sans-serif;
    text-align: center;
}
.site-nav-links a[aria-current] { color: #104fbf; background: #eaf2ff; box-shadow: inset 0 -3px #0f60ef; }
.site-nav-links li:first-child a { border-radius: 5px 0 0 5px; }
.site-nav-links li:last-child a { border-radius: 0 5px 5px 0; }
.site-nav-links a:hover { color: #104fbf; background: #e6eef9; }
.site-nav a:focus-visible, .footer-social a:focus-visible {
    outline: 2px solid #0f60ef !important;
    outline-offset: -3px;
}
.nav-shortcut {
    display: none;
    position: fixed;
    z-index: 8;
    top: var(--nav-top);
    right: var(--nav-right);
    place-items: center;
    width: var(--nav-size);
    height: var(--nav-size);
    padding: 0;
    border: 1px solid #ffffff40;
    border-radius: 10px;
    background: #174ca9;
    color: white;
    box-shadow: 0 4px 14px #153b702e;
    cursor: pointer;
    touch-action: manipulation;
}
.site-nav.is-scrolled .nav-shortcut { display: grid; }
.nav-shortcut:focus-visible { outline: 2px solid white !important; outline-offset: -5px; }
.nav-lines, .nav-lines::before, .nav-lines::after {
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
}
.nav-lines { position: relative; }
.nav-lines::before, .nav-lines::after { content: ''; position: absolute; right: 0; }
.nav-lines::before { transform: translateY(-6px); }
.nav-lines::after { width: 15px; transform: translateY(6px); }
.site-nav:has(.nav-panel:is(:popover-open, .is-open)) .nav-lines { background: transparent; }
.site-nav:has(.nav-panel:is(:popover-open, .is-open)) .nav-lines::before { transform: rotate(45deg); }
.site-nav:has(.nav-panel:is(:popover-open, .is-open)) .nav-lines::after { width: 22px; transform: rotate(-45deg); }
.nav-panel:is(:popover-open, .is-open) {
    display: block;
    position: fixed;
    z-index: 9;
    inset: calc(var(--nav-top) + var(--nav-size) + 8px) var(--nav-right) auto auto;
    width: min(292px, calc(100% - var(--nav-right) - var(--nav-gap) - env(safe-area-inset-left, 0px)));
    max-height: calc(100vh - var(--nav-top) - var(--nav-size) - 20px);
    max-height: calc(100dvh - var(--nav-top) - var(--nav-size) - 20px - env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 8px;
    border: 1px solid #d6e2f0;
    border-radius: 12px;
    background: white;
    color: #193351;
    box-shadow: 0 12px 36px #123b7226, 0 2px 6px #123b7214;
}
.nav-panel:is(:popover-open, .is-open) .nav-caption {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: -8px -8px 6px;
    padding: 12px 20px;
    border-bottom: 1px solid #dce7f5;
    background: linear-gradient(100deg, white 35%, #edf5ff);
    color: #243f65;
    font: 700 14px/1.25 'Lato', Arial, sans-serif;
}
.nav-caption::before {
    content: '';
    flex: none;
    width: 20px;
    height: 27px;
    /* The window mark occupies the left edge of the full logo. */
    background: url('../img/svg/logo.svg') left center / auto 100% no-repeat;
}
.nav-caption::after {
    content: '';
    flex: 0 1 56px;
    height: 24px;
    margin-left: auto;
    background: radial-gradient(circle, #8bb3e0 1px, transparent 1.3px) right center / 8px 8px;
    mask-image: linear-gradient(to right, transparent, black 80%);
}
.nav-panel:is(:popover-open, .is-open) .site-nav-links { display: block; }
.nav-panel:is(:popover-open, .is-open) .site-nav-links a {
    justify-content: space-between;
    min-height: 44px;
    padding: 9px 12px;
    border-radius: 5px;
    text-align: left;
}
.nav-panel:is(:popover-open, .is-open) .site-nav-links a::after {
    content: '';
    width: 7px;
    height: 7px;
    border: solid #8ba5c5;
    border-width: 1.5px 1.5px 0 0;
    transform: rotate(45deg);
}
.nav-panel:is(:popover-open, .is-open) a[aria-current] { box-shadow: inset 3px 0 #0f60ef; }
@media (hover: hover) and (pointer: fine) {
    .nav-shortcut:hover { background: #103e90; }
    .nav-shortcut:hover .nav-lines::after { width: 22px; }
}
@media (prefers-reduced-motion: no-preference) {
    .nav-shortcut { transition: transform .18s ease, background-color .18s ease; }
    .nav-lines, .nav-lines::before, .nav-lines::after { transition: transform .18s ease, width .18s ease, background-color .18s ease; }
    .nav-panel:is(:popover-open, .is-open) { animation: site-menu-in .16s ease-out; }
    @media (hover: hover) and (pointer: fine) {
        .nav-shortcut:hover { transform: translateY(-2px); }
    }
}
@keyframes site-menu-in { from { opacity: 0; transform: translateY(-5px); } }
@media (max-width: 859px) {
    .site-nav { min-height: 0; margin: 0; border: 0; background: transparent; }
    .nav-shortcut { display: grid; }
    .nav-panel { display: none; }
}
@media (min-width: 720px) and (max-width: 859px) {
    .site-masthead { padding-right: calc(62px + env(safe-area-inset-right, 0px)); }
}
@media (max-width: 719px) {
    .masthead-brand { max-width: calc(100% - 60px - env(safe-area-inset-right, 0px)); }
    .masthead-signature { min-width: 0; }
}
.site-footer {
    background: #123e92;
    color: white;
    font: 400 16px/1.45 'Lato', Arial, sans-serif;
}
.site-footer-main {
    position: relative;
    isolation: isolate;
    padding: clamp(26px, 3.5vw, 48px) 0 clamp(30px, 3.8vw, 52px);
    background: radial-gradient(ellipse at 91% 10%, #265fa9, transparent 60%);
}
.site-footer-main::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(circle, #bfe3ff 1px, transparent 1.25px) 0 0 / 12px 12px;
    mask-image: radial-gradient(ellipse at 94% 5%, #000, transparent 68%);
    opacity: .24;
}
.site-footer-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 18px;
    border-bottom: 1px solid #ffffff45;
}
.site-footer-brand { display: flex; align-items: center; gap: 9px; color: #e0edff; font-size: 12px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.site-footer-brand::before { content: ""; width: 23px; height: 3px; background: #ffd052; }
.site-footer-heading h2 { margin-top: 7px; font-size: clamp(30px, 3vw, 44px); line-height: 1.1; letter-spacing: -.03em; font-weight: 800; }
.site-footer-drawing { display: block; width: clamp(105px, 15vw, 180px); height: auto; opacity: .74; }
.site-footer-contacts { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 28px; margin-top: 24px; }
.site-footer-contacts section { min-width: 0; }
.site-footer-contacts section + section { padding-left: clamp(16px, 2.3vw, 32px); border-left: 1px solid #ffffff33; }
.site-footer-contacts h3 { margin-bottom: 11px; color: #d3e6ff; font-size: 15px; font-weight: 700; }
.site-footer-phone { display: block; width: fit-content; color: white; font-size: clamp(21px, 2vw, 27px); line-height: 1.35; font-weight: 700; }
.site-footer-note, .site-footer-contacts small { display: block; margin-top: 10px; color: #d3e6ff; font-size: 14px; }
.site-footer-contacts address { font-style: normal; }
.site-footer-contacts address strong, .site-footer-email { color: white; font-size: clamp(16px, 1.5vw, 20px); font-weight: 700; }
.site-footer-email { overflow-wrap: anywhere; }
.site-footer-phone:hover, .site-footer-email:hover, .site-footer-links a:hover { text-decoration: underline; text-underline-offset: 3px; }
.site-footer a:focus-visible { outline: 2px solid #ffda72 !important; outline-offset: 3px; }
.footer-social { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 15px; }
.footer-social a { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 8px 12px; border-radius: 5px; background: white; color: #193351; font: 700 14px/1.3 'Lato', Arial, sans-serif; }
.footer-social a:hover { background: #eaf2ff; }
.footer-social img { object-fit: contain; }
.site-footer-legal { padding: 22px 0; background: #102e63; color: #dae6f8; font-size: 14px; }
.site-footer-company, .site-footer-links, .site-footer-ids { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 20px; }
.site-footer-company { justify-content: space-between; }
.site-footer-company > p:first-child { max-width: 64ch; }
.site-footer-links {
    --chat-clearance: 236px;
    margin-top: 16px;
    padding-top: 14px;
    /* Only reserve the part of the floating link that overlaps the footer container. */
    padding-inline-end: max(0px, calc(var(--chat-clearance) + env(safe-area-inset-right, 0px) - (100vw - 100%) / 2));
    border-top: 1px solid #ffffff30;
    font-size: 13px;
}
.site-footer-links span { margin-right: auto; }
.site-footer-links a { color: #e4eeff; text-decoration: underline; text-decoration-color: #90abd2; text-underline-offset: 3px; }
@media (max-width: 800px) {
    .site-footer .container { padding-inline: 20px; }
    .site-footer-contacts { gap: 18px; }
    .site-footer-contacts section + section { padding-left: 16px; }
    .site-footer-links span { flex-basis: 100%; }
}
@media (min-width: 641px) and (max-width: 800px) {
    .site-footer-contacts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .site-footer-contacts section:last-child {
        grid-column: 1 / -1;
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 8px 20px;
        padding: 16px 0 0;
        border: 0;
        border-top: 1px solid #ffffff30;
    }
    .site-footer-contacts section:last-child h3 { flex-basis: 100%; margin: 0; }
    .footer-social { margin-top: 0; }
}
@media (max-width: 640px) {
    .site-footer-heading { gap: 8px; padding-bottom: 15px; }
    .site-footer-contacts { grid-template-columns: 1fr; gap: 16px; margin-top: 18px; }
    .site-footer-contacts section + section { padding: 16px 0 0; border: 0; border-top: 1px solid #ffffff30; }
    .site-footer-contacts h3 { margin-bottom: 6px; }
    .site-footer-legal { font-size: 13px; }
    .site-footer-links { align-items: flex-start; flex-direction: column; gap: 10px; }
}
@media (max-width: 719px) {
    .site-masthead {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 13px;
    }
    .site-masthead .header-call-actions { display: grid; grid-template-columns: minmax(0, 1fr) 44px auto; gap: 6px; }
    .header-vk { justify-self: start; gap: 7px; min-height: 44px; margin: 0; padding: 0; }
    .header-vk-mark { width: 32px; height: 32px; border-radius: 8px; }
    .header-vk-mark img { width: 22px; height: auto; }
    .site-masthead .header-call-button { min-width: clamp(126px, 35vw, 185px); min-height: 44px; padding: 10px; font-size: 15px; }
    .site-masthead .header-call-phone { width: 44px; height: 44px; min-height: 44px; }
}
@media (max-width: 599px) {
    .site-footer-legal { padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }
    .site-footer-links { padding-inline-end: 0; }
    .vk-chat-link { gap: 7px; }
    .vk-chat-label { padding: 7px 10px; }
    .vk-chat-circle { width: 48px; height: 48px; }
    .vk-chat-circle img { width: 25px; height: 25px; }
}
.header-call-phone:hover { background: #e1ecff; }
.header-call-button:hover, .callback-submit:hover { background: #104fc1; }
.header-call-actions :focus-visible, .callback-dialog :is(input, button, a):focus-visible {
    outline: 3px solid #1c57b8 !important;
    outline-offset: 3px;
}
html:has(.callback-dialog[open]) { overflow: hidden; }
.callback-dialog {
    position: fixed;
    inset: 0;
    margin: auto;
    width: min(430px, calc(100% - 28px));
    max-width: none;
    max-height: calc(100dvh - 28px);
    padding: 0;
    overflow: auto;
    overscroll-behavior: contain;
    border: 1px solid #d5dfed;
    border-radius: 18px;
    background: #fff;
    color: #142c50;
    box-shadow: 0 18px 70px #071b3740;
    font: 400 16px/1.45 'Lato', Arial, sans-serif;
}
.callback-dialog::backdrop { background: rgba(10, 29, 56, .57); }
.callback-body { position: relative; padding: clamp(22px, 5vw, 36px); }
.callback-brand {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #31527a;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .11em;
    text-transform: uppercase;
}
.callback-brand::before { content: ""; width: 22px; height: 3px; background: #f2b329; }
.callback-close {
    position: absolute;
    top: 10px;
    right: 10px;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #536984;
    cursor: pointer;
}
.callback-close:hover { color: #142c50; background: #eef3fa; }
#callback-title { margin: 19px 0 7px; font-size: clamp(27px, 4vw, 34px); font-weight: 800; line-height: 1.12; letter-spacing: -.03em; outline: none; }
#callback-intro { color: #50627b; }
.callback-form { display: grid; gap: 14px; margin-top: 23px; }
.callback-form > label { display: block; font-size: 15px; font-weight: 700; }
.callback-form input:is([type="text"], [type="tel"]) {
    display: block;
    width: 100%;
    height: 46px;
    margin-top: 5px;
    padding: 10px 12px;
    border: 1px solid #aabbd0;
    border-radius: 8px;
    background: white;
    color: #142c50;
    font: 400 16px/1.4 'Lato', Arial, sans-serif;
}
.callback-form .callback-consent { display: flex; align-items: flex-start; gap: 9px; color: #50627b; font-size: 14px; font-weight: 400; cursor: pointer; }
.callback-consent input { flex: none; width: 17px; height: 17px; margin-top: 2px; accent-color: #0f60ef; }
.callback-consent a { color: #174fae; text-decoration: underline; }
.callback-submit:disabled { opacity: .65; cursor: wait; }
.callback-status { color: #963b29; font-size: 14px; }
.callback-status:empty { display: none; }
.callback-status[data-preview] { color: #24583e; }
