:root {
    --color-base: #172431;
    --color-blue: #365d78;
    --color-orange: #6f8799;
    --wow-blue: #365d78;
    --wow-ink: #172431;
    --wow-line: rgba(54, 93, 120, 0.2);
    --wow-soft: #eef3f6;
    --brand-navy: #102437;
    --brand-steel: #365d78;
    --brand-steel-light: #6f8799;
    --brand-silver: #c7cfd6;
    --brand-mist: #eef3f6;
    --brand-paper: #f8fafb;
    --brand-ink: #172431;
}

html {
    background: var(--brand-navy);
}

body {
    color: var(--brand-ink);
    background: var(--brand-mist);
}

::selection {
    color: #fff;
    background: var(--brand-steel);
}

.wrapper {
    background:
        radial-gradient(circle at 88% 5%, rgba(111, 135, 153, 0.12), transparent 26%),
        var(--brand-mist);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid rgba(111, 135, 153, 0.72);
    outline-offset: 3px;
}

/* Brand lockup: the image is the supplied deer mark; the wordmark stays native text. */
.logo {
    display: inline-flex !important;
    flex: 0 0 210px !important;
    align-items: center;
    gap: 10px;
    width: auto !important;
    max-width: 210px !important;
    color: var(--brand-ink);
    text-decoration: none;
}

.logo img {
    flex: 0 0 auto;
    width: 48px !important;
    height: 58px !important;
    max-height: 58px !important;
    object-fit: contain;
    filter: drop-shadow(0 4px 5px rgba(7, 20, 31, 0.22));
}

.logo::after {
    content: "АО «НЗСР»";
    display: block;
    color: currentColor;
    font: 700 16px/1.15 "Unbounded", "Manrope", sans-serif;
    letter-spacing: 0.035em;
    white-space: nowrap;
}

.header {
    border-bottom: 1px solid rgba(54, 93, 120, 0.14);
    background: rgba(248, 250, 251, 0.96);
    box-shadow: 0 12px 34px rgba(9, 27, 42, 0.09);
    backdrop-filter: blur(14px);
}

.header .menu__link,
.header__tel,
.header__contact span {
    color: var(--brand-ink);
}

.header .menu__link:hover,
.header__tel:hover,
.breadcrumbs__list a,
.form__policy a {
    color: var(--brand-steel);
}

.btn--first,
.mobile-cta-bar__primary {
    border-color: var(--brand-steel);
    color: #fff;
    background: linear-gradient(135deg, var(--brand-steel), #27475f);
    box-shadow: 0 10px 24px rgba(30, 65, 89, 0.2);
}

.btn--first:hover {
    border-color: var(--brand-navy);
    background: var(--brand-navy);
    box-shadow: 0 12px 28px rgba(9, 28, 43, 0.3);
}

.btn--first--i {
    border-color: rgba(54, 93, 120, 0.52);
    color: var(--brand-steel);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: none;
}

.btn--first--i:hover {
    color: #fff;
    background: var(--brand-navy);
}

.btn--base {
    border-color: var(--brand-steel);
    color: var(--brand-steel);
}

.btn--base:hover {
    color: #fff;
    background: var(--brand-steel);
    box-shadow: 0 10px 24px rgba(30, 65, 89, 0.2);
}

.main-block {
    color: #fff;
    background:
        radial-gradient(circle at 80% 20%, rgba(146, 165, 179, 0.25), transparent 30%),
        linear-gradient(135deg, #0f2234 0%, #1b3b53 56%, #385c75 100%);
}

.main-block__title,
.main-block__subtitle,
.main-block__subtitle-kicker,
.main-block__subtitle-top,
.main-block__subtitle-bottom {
    color: #fff;
}

.main-block__subtitle-divider {
    color: var(--brand-silver);
}

.main-block__label {
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #f7fafc;
    background: rgba(11, 30, 45, 0.58);
    box-shadow: 0 24px 58px rgba(4, 17, 28, 0.28);
    backdrop-filter: blur(12px);
}

.advantages,
.catalog-block,
.about-block,
.trust,
.cost,
.quiz {
    background-color: var(--brand-paper);
}

.advantages__item,
.card-item,
.quiz__wrap,
.calc-livebar {
    border-color: rgba(54, 93, 120, 0.2);
    background-color: #fff;
    box-shadow: 0 16px 38px rgba(18, 48, 69, 0.08);
}

.advantages__item:nth-child(3),
.advantages__item:nth-child(4),
.steps-slider__item,
.cost__wrap {
    border-color: rgba(199, 207, 214, 0.34);
    background-color: var(--brand-steel);
}

.card-item__price,
.calc-head__eyebrow,
.quiz__step-current,
.quiz__choice input:checked + label,
.service-eyebrow {
    color: var(--brand-steel);
}

/* Keep product names and prices visually separated in catalog cards. */
.catalog-block .card-item,
.products__slider .card-item {
    padding: 14px 16px 18px;
    border: 1px solid rgba(83, 110, 130, 0.28);
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcfd 100%);
    box-shadow: 0 10px 28px rgba(20, 45, 63, 0.08);
}

.catalog-block .card-item:hover,
.products__slider .card-item:hover {
    border-color: rgba(54, 93, 120, 0.58);
    box-shadow: 0 16px 36px rgba(20, 45, 63, 0.14);
}

.catalog-block .card-item__name,
.products__slider .card-item__name {
    line-height: 1.35;
}

.catalog-block .card-item__footer,
.products__slider .card-item__footer {
    margin-top: 32px;
    padding-top: 18px;
    border-top: 1px solid rgba(83, 110, 130, 0.22);
}

.form__item input,
.form__item textarea,
.form__item select,
.quiz input,
.quiz select {
    border-color: rgba(54, 93, 120, 0.26);
}

.form__item input:focus,
.form__item textarea:focus,
.form__item select:focus,
.quiz input:focus,
.quiz select:focus {
    border-color: var(--brand-steel);
    box-shadow: 0 0 0 4px rgba(54, 93, 120, 0.12);
}

.popup__wrap {
    border: 1px solid rgba(199, 207, 214, 0.38);
    background:
        radial-gradient(circle at 100% 0%, rgba(111, 135, 153, 0.2), transparent 34%),
        #f8fafb;
}

.footer {
    color: #fff;
    background:
        radial-gradient(circle at 82% 10%, rgba(111, 135, 153, 0.32), transparent 28%),
        linear-gradient(135deg, #0b1c2a 0%, #153349 60%, #284d66 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.footer .logo {
    flex-basis: 200px !important;
    max-width: 200px !important;
    color: #fff;
}

.footer .logo img {
    filter: drop-shadow(0 5px 6px rgba(0, 0, 0, 0.34));
}

.footer .menu__link,
.footer a,
.footer__title {
    color: #fff;
}

.footer .menu__link:hover,
.footer a:hover {
    color: var(--brand-silver);
}

.btn--white {
    border-color: #fff;
    color: var(--brand-navy);
    background: #fff;
}

.btn--blue {
    border-color: rgba(255, 255, 255, 0.74);
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.btn--black {
    border-color: var(--brand-silver);
    background: #081824;
}

#btnUp,
.swiper-button-next,
.swiper-button-prev {
    filter: hue-rotate(8deg) saturate(0.45) brightness(0.82);
}

/* Give the wider deer + wordmark lockup a real layout slot in the desktop header. */
@media (min-width: 1440px) {
    .header__logo.logo {
        flex: 0 0 184px !important;
        max-width: 184px !important;
    }
}

@media (min-width: 1121px) and (max-width: 1439px) {
    .header__logo.logo {
        flex: 0 0 158px !important;
        max-width: 158px !important;
        gap: 8px;
    }

    .header__logo.logo img {
        width: 42px !important;
        height: 52px !important;
        max-height: 52px !important;
    }

    .header__logo.logo::after {
        font-size: 14px;
    }
}

@media (min-width: 1024px) and (max-width: 1120px) {
    .header__logo.logo {
        flex: 0 0 116px !important;
        max-width: 116px !important;
        gap: 5px;
    }

    .header__logo.logo img {
        width: 31px !important;
        height: 42px !important;
        max-height: 42px !important;
    }

    .header__logo.logo::after {
        font-size: 11px;
        letter-spacing: 0.015em;
    }

    .header__menu {
        gap: 10px !important;
    }

    .header__menu .menu__link {
        font-size: 12px !important;
    }
}

@media (max-width: 767px) {
    .header__content {
        background:
            radial-gradient(circle at 85% 8%, rgba(111, 135, 153, 0.38), transparent 26%),
            var(--brand-navy) !important;
    }

    .header__content .menu__link,
    .header__content .header__tel,
    .header__content .header__contact span {
        color: #fff;
    }

    .header__logo.logo {
        flex-basis: 164px !important;
        max-width: 164px !important;
        gap: 7px;
    }

    .header__logo.logo img {
        width: 38px !important;
        height: 46px !important;
        max-height: 46px !important;
    }

    .header__logo.logo::after {
        font-size: 13px;
    }

    .footer .logo {
        flex-basis: 170px !important;
        max-width: 170px !important;
    }

    .footer .logo img {
        width: 42px !important;
        height: 50px !important;
    }

    .footer .logo::after {
        font-size: 13px;
    }

    .dealers-hero h1 {
        max-width: 100%;
        font-size: 26px;
        line-height: 1.18;
    }

    .policy {
        margin-top: 0;
        padding-top: calc(var(--mobile-header-h, 69px) + 24px);
    }

    .catalog-block .card-item__footer,
    .products__slider .card-item__footer {
        margin-top: 20px;
        padding-top: 14px;
    }

    .catalog-block .card-item,
    .products__slider .card-item {
        padding: 10px 12px 14px;
        border-radius: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
    }
}
