body:not(.contrast) {
    --winter-ink: #113e51;
    --winter-teal: #066863;
    --winter-ice: #c1e8f1;
    --frost-crystals: url('../images/frost-crystals.svg');
    --winter-line: #cfdfd9;
    --primary-color: var(--winter-teal);
    color: #274645;
    background: #f5fafc;
    font-family: 'Manrope', sans-serif;
}

body:not(.contrast) header > .bg-light {
    background: #eef8fb !important;
}

body:not(.contrast) .header-top-bar a {
    color: var(--winter-ink) !important;
}

body:not(.contrast) :is(.navbar, footer.bg-dark) {
    background: var(--winter-ink) !important;
    border-block-end: 2px solid var(--winter-ice);
}

body:not(.contrast) .navbar :is(.nav-link, .navbar-toggler .text-dark) {
    color: #f7fcf8 !important;
}

body:not(.contrast) .navbar .navbar-brand::before {
    content: '❄' / '';
    color: var(--winter-ice);
    margin-inline-end: .4em;
}

body:not(.contrast) .navbar-toggler {
    border-color: #8ab6ae;
}

body:not(.contrast) .navbar .nav-link:is(.active, :hover, :focus-visible) {
    text-decoration: underline var(--winter-ice);
    text-underline-offset: .35em;
}

body:not(.contrast) .clinic-banner {
    isolation: isolate;
    overflow: hidden;
    justify-content: flex-start !important;
    height: auto !important;
    min-height: clamp(16rem, 21vw, 20rem);
    padding: 1.25rem max(7vw, calc((100% - 74rem) / 2)) !important;
    text-align: start !important;
    background: #eef7fc;
}

body:not(.contrast) .clinic-banner > img {
    left: auto !important;
    right: 0;
    width: 68% !important;
    object-fit: cover;
    object-position: center 59%;
}

body:not(.contrast) .clinic-banner .banner-overlay {
    opacity: 1 !important;
    pointer-events: none;
    background: linear-gradient(90deg, #eef7fc 32%, #eef7fcf5 36%, transparent 54%) !important;
}

/* Иней по краям фотографии и в нижней части подвала. */
body:not(.contrast) .clinic-banner .banner-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--frost-crystals) right bottom / clamp(10rem, 21vw, 22rem) auto no-repeat,
                var(--frost-crystals) left bottom / clamp(7rem, 12vw, 13rem) auto no-repeat;
    filter: drop-shadow(0 1px 1px #36748b70);
}

body:not(.contrast) footer.bg-dark {
    background-image: var(--frost-crystals) !important;
    background-position: right bottom !important;
    background-size: auto 80% !important;
    background-repeat: no-repeat !important;
}

/* Снежинки движутся независимо и пропускают нажатия к содержимому страницы. */
@media screen and (prefers-reduced-motion: no-preference) {
    body:not(.contrast) .winter-snowfall {
        position: fixed;
        inset: 0;
        display: flex !important;
        justify-content: space-around;
        overflow: hidden;
        pointer-events: none;
        user-select: none;
        z-index: 4;
    }

    body:not(.contrast) .winter-snowfall span {
        --fall-time: 17s;
        --drift: .8rem;
        align-self: flex-start;
        font: .8rem/1 Georgia, serif;
        color: #91c1d4;
        text-shadow: 0 0 2px white;
        opacity: .65;
        animation: winter-fall var(--fall-time) linear infinite;
        animation-delay: -6s;
    }

    body:not(.contrast) .winter-snowfall span:nth-child(3n + 2) {
        --fall-time: 12s;
        --drift: -1.2rem;
        font-size: 1.15rem;
        color: #a4d1e2;
        animation-delay: -9s;
    }

    body:not(.contrast) .winter-snowfall span:nth-child(3n) {
        --fall-time: 9s;
        --drift: 1.6rem;
        font-size: 1.45rem;
        color: #d1e9f4;
        animation-delay: -1s;
    }

    body:not(.contrast) .winter-snowfall span:nth-child(even) { animation-delay: -3.5s; }
    body:not(.contrast) .winter-snowfall span:nth-child(n + 7) { animation-delay: -7.5s; }
}

@keyframes winter-fall {
    from { transform: translateY(-2rem) rotate(-20deg); }
    to { transform: translate(var(--drift), calc(100vh + 2rem)) rotate(95deg); }
}

body:not(.contrast) .banner-text-container {
    z-index: 2;
    max-width: min(44%, 32rem);
    color: var(--winter-ink);
}

body:not(.contrast) .winter-greeting {
    display: inline-flex !important;
    align-items: center;
    gap: .6rem;
    font-weight: 700;
    letter-spacing: .06em;
    color: #235969;
}

body:not(.contrast) .winter-greeting::before {
    content: '❄' / '';
    font: 1.6rem/1 Georgia, serif;
}

body:not(.contrast) .banner-text-container h2 {
    font: 500 clamp(2.4rem, 4vw, 4rem)/1.1 Georgia, serif;
    font-weight: 500 !important;
    letter-spacing: -.045em;
    margin: .3rem 0 .75rem;
}

body:not(.contrast) .banner-text-container p {
    max-width: 36ch;
    line-height: 1.6;
}

body:not(.contrast) .btn-primary {
    background: var(--winter-teal);
    border-color: var(--winter-teal);
}

body:not(.contrast) .btn-primary:is(:hover, :focus-visible) {
    background: var(--winter-ink);
}

body:not(.contrast) .banner-text-container .btn {
    background: var(--winter-teal);
    border-color: var(--winter-teal);
    color: white;
    border-radius: 2rem;
    padding: .72rem 1.5rem;
    font-weight: 700;
}

body:not(.contrast) .banner-text-container .btn:is(:hover, :focus-visible) {
    background: var(--winter-ink);
}

body:not(.contrast) :is(main h2, .services-title h1) {
    color: var(--winter-ink);
    font: 500 clamp(2rem, 3.6vw, 3.2rem)/1.15 Georgia, serif;
}

body:not(.contrast) :is(main section > h2, .services-title h1)::after {
    content: '';
    display: block;
    width: 4rem;
    height: .5rem;
    margin: .55rem auto 0;
    background: linear-gradient(45deg, #74aebf, #74aebf) center / .4rem .4rem no-repeat,
                linear-gradient(#74aebf, #74aebf) center / 100% 1px no-repeat;
}

body:not(.contrast) :is(.news-entry, .card) {
    background-color: white;
    border: 1px solid var(--winter-line);
    border-radius: 1rem;
    box-shadow: 0 .4rem 1.5rem #103e4010;
}

body:not(.contrast) :is(.news-poster, .card-img-top) {
    border-radius: 1rem 1rem 0 0;
}

body:not(.contrast) .news-poster {
    background: #eaf3ef;
}

body:not(.contrast) .news-summary {
    border-top: 1px solid var(--winter-line);
}

body:not(.contrast) .news-summary a {
    color: var(--winter-ink);
}

@media (max-width: 767.98px) {
    body:not(.contrast) .clinic-banner {
        align-items: flex-end !important;
        min-height: 0;
        padding: 7.5rem 1.25rem 1rem !important;
    }

    body:not(.contrast) .clinic-banner > img {
        width: 100% !important;
        height: 9.5rem !important;
        object-position: center 58%;
    }

    body:not(.contrast) .clinic-banner .banner-overlay {
        background: linear-gradient(180deg, transparent 5.5rem, #eef7fc 9.5rem) !important;
    }

    body:not(.contrast) .clinic-banner .banner-overlay::after {
        background-position: right bottom, left top;
        background-size: 7rem auto, 4.5rem auto;
    }

    body:not(.contrast) footer.bg-dark {
        background-size: 3rem auto !important;
        padding-inline-end: 3rem;
    }

    body:not(.contrast) .banner-text-container {
        max-width: 100%;
    }
}
