/* Шапка онлайн-проверки — в стиле шапки основного сайта. */
.check-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid #ece9f2;
    background: #ffffffe6;
    backdrop-filter: saturate(1.6) blur(14px);
    -webkit-backdrop-filter: saturate(1.6) blur(14px);
}

/* На телефонах и планшетах размытие под липкой шапкой пересчитывается на каждом кадре прокрутки. */
@media (max-width: 1023px) {
    .check-header {
        background: #fffffffa;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
}

.check-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    width: 100%;
    max-width: 76rem;
    height: 4.75rem;
    margin: 0 auto;
    padding: 0 2rem;
}

.check-header__logo { display: flex; flex-shrink: 0; align-items: center; border-radius: 50%; }
.check-header__logo img { display: block; width: 3.5rem; height: 3.5rem; object-fit: contain; }

.check-header__desktop-nav {
    display: flex;
    align-items: center;
    gap: .25rem;
    padding: .25rem;
    border: 1px solid #ece9f2;
    border-radius: 999px;
    background: #f9f8fbcc;
}

.check-header__nav-link {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    min-height: 2.5rem;
    padding: .5rem 1rem;
    border-radius: 999px;
    color: #4f4b5c;
    font-size: .875rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.check-header__nav-link:hover { background: #fff; color: #12101c; box-shadow: 0 1px 2px #12101c14; }






.check-header__actions { display: flex; flex-shrink: 0; align-items: center; gap: .5rem; }
.check-header__contact { display: flex; align-items: center; justify-content: center; text-decoration: none; }

.check-header__phone { gap: .5rem; margin-right: .5rem; color: #12101c; font-size: .875rem; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.check-header__phone-icon { display: grid; width: 2.5rem; height: 2.5rem; place-items: center; border: 1px solid #e7e4ee; border-radius: 50%; background: #fff; color: #6d28d9; transition: border-color 160ms ease, background-color 160ms ease; }
.check-header__phone:hover { color: #6d28d9; }
.check-header__phone:hover .check-header__phone-icon { border-color: #c4b5fd; background: #f6f3ff; }

.check-header__messenger { width: 2.5rem; height: 2.5rem; overflow: hidden; border-radius: 50%; color: #fff; transition: transform 200ms cubic-bezier(.22, 1, .36, 1); }
.check-header__messenger:hover { transform: translateY(-1px); }
.check-header__messenger--telegram { background: #26a5e4; }
.check-header__messenger--telegram svg { margin-left: -2px; }
.check-header__messenger img { display: block; width: 100%; height: 100%; object-fit: cover; }

.check-header__action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    min-height: 2.75rem;
    padding: .625rem 1.125rem;
    border: 1px solid #d9d3e6;
    border-radius: 12px;
    background: #fff;
    color: #12101c;
    font-size: .875rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: border-color 160ms ease, color 160ms ease, box-shadow 200ms ease;
}

.check-header__action:hover { border-color: #c4b5fd; color: #5b21b6; }

.check-header__action--primary {
    border-color: #9b6cf8;
    background: linear-gradient(180deg, #8b4cf7 0%, #6d28d9 100%);
    box-shadow: inset 0 1px 0 #ffffff38, 0 12px 32px -10px #7c3aed99;
    color: #fff;
}

.check-header__action--primary:hover { color: #fff; box-shadow: inset 0 1px 0 #ffffff4d, 0 18px 44px -12px #7c3aedcc; }

.check-header__nav-link:focus-visible,
.check-header__action:focus-visible,
.check-header__menu-toggle:focus-visible,
.check-header__contact:focus-visible,
.check-header__logo:focus-visible,
.check-header__mobile-cta:focus-visible { outline: 2px solid #7c3aed; outline-offset: 2px; }

.check-header__menu-toggle {
    display: none;
    width: 2.75rem;
    height: 2.75rem;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: #12101c;
    cursor: pointer;
}

.check-header__menu-toggle:hover { background: #f6f5f9; }

.check-header__mobile-menu { display: none; border-top: 1px solid #ece9f2; background: #fff; }
.check-header__mobile-menu.is-open { display: block; }

.check-header__mobile-nav { display: flex; flex-direction: column; gap: .25rem; max-width: 76rem; margin: 0 auto; padding: 1rem; }
.check-header__mobile-nav .check-header__nav-link { min-height: 3rem; padding: .625rem .75rem; border-radius: 12px; color: #12101c; font-size: 1rem; box-shadow: none; }
.check-header__mobile-nav .check-header__nav-link:hover { background: #f6f5f9; }


.check-header__mobile-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 3.25rem;
    margin-top: .75rem;
    border: 1px solid #9b6cf8;
    border-radius: 12px;
    background: linear-gradient(180deg, #8b4cf7 0%, #6d28d9 100%);
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

@media (max-width: 1023px) {
    .check-header__inner { height: 4.5rem; padding: 0 1.5rem; }
    .check-header__desktop-nav, .check-header__action { display: none; }
    .check-header__menu-toggle { display: inline-flex; }
    .check-header__logo img { width: 3.25rem; height: 3.25rem; }
}

@media (max-width: 767px) {
    .check-header__phone-text { display: none; }
    .check-header__phone { margin-right: 0; }
}

@media (max-width: 639px) {
    .check-header__inner { height: 4rem; padding: 0 1rem; }
    .check-header__actions { gap: .375rem; }
    .check-header__logo img { width: 3rem; height: 3rem; }
}

@media (max-width: 359px) {
    .check-header__phone { display: none; }
}

