/* =========================================================================
   Ваш рейтинг — дизайн-система (поверх Bootstrap из app.min.css)
   Движение (в духе Emil Kowalski): короткие ease-out, без отскоков, не из scale(0);
   нажатие scale(.97); hover только на устройствах с мышью; prefers-reduced-motion.
   ========================================================================= */

:root {
    --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
    --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
    --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
    --dur-press: 160ms;
    --dur-ui: 220ms;
    --dur-enter: 640ms;

    --green: #079958;
    --green-600: #06864d;
    --green-700: #056e40;
    --green-900: #0b2a1c;
    --green-50: #e9f6ef;
    --green-100: #d3eee0;
    --yellow: #ffc107;
    --yellow-50: #fff6d9;
    --ink: #14241b;
    --ink-2: #33423a;
    --muted: #5d6b63;
    --line: rgba(20, 36, 27, .1);
    --surface: #f6f5f2;
    --surface-2: #efeee9;
    --white: #fff;
    --radius-sm: .75rem;
    --radius: 1rem;
    --radius-lg: 1.5rem;
    --radius-xl: 2rem;
    --shadow-sm: 0 1px 2px rgba(11, 42, 28, .05), 0 2px 8px -4px rgba(11, 42, 28, .08);
    --shadow-md: 0 14px 34px -16px rgba(11, 42, 28, .28), 0 3px 8px -4px rgba(11, 42, 28, .08);
    --shadow-lg: 0 30px 70px -30px rgba(11, 42, 28, .45);
    --section-y: clamp(3.5rem, 7vw, 6.5rem);
    --header-h: 5.5rem;
}

/* ---------- База ---------- */
html { scroll-behavior: smooth; -webkit-tap-highlight-color: transparent; scroll-padding-top: 6rem; }
body { color: var(--ink); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; font-size: 1rem; line-height: 1.6; }
h1, h2, h3, h4, .h1, .h2, .h3, .h4 { letter-spacing: -0.02em; text-wrap: balance; color: inherit; }
h1, .h1 { font-size: clamp(2.125rem, 4.6vw, 3.75rem); line-height: 1.05; font-weight: 700; }
h2, .h2 { font-size: clamp(1.75rem, 3.2vw, 2.75rem); line-height: 1.1; font-weight: 700; }
h3, .h3 { font-size: clamp(1.25rem, 1.8vw, 1.5rem); line-height: 1.25; font-weight: 700; }
p { text-wrap: pretty; }
a { text-underline-offset: .2em; }
::selection { background: rgba(255, 193, 7, .5); }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 6px; }
.bg-primary :focus-visible, .section--ink :focus-visible, .section--green :focus-visible, header :focus-visible, footer :focus-visible { outline-color: var(--yellow); }
img { max-width: 100%; height: auto; }

/* ---------- Секции ---------- */
.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: calc(var(--section-y) * .6); }
.section--surface, .section.bg-light { background: var(--surface) !important; }
.section--ink { background: var(--green-900); color: #fff; }
.section--green, .section-green { background: linear-gradient(135deg, #08a35f 0%, var(--green) 50%, var(--green-700) 100%); color: #fff; }
.section + .section:not(.section--surface):not(.section--ink):not(.section--green):not(.section-green):not(.bg-light) { padding-top: 0; }
.section--surface + .section, .section--ink + .section, .section--green + .section, .bg-light + .section { padding-top: var(--section-y) !important; }

.section-head { max-width: 48rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.section-head h2 { margin-bottom: 0; }
.section-head p { color: var(--muted); font-size: 1.125rem; margin: .875rem 0 0; }
.section--ink .section-head p, .section--green .section-head p, .section-green .section-head p { color: rgba(255, 255, 255, .8); }

.eyebrow { display: inline-flex; align-items: center; gap: .5rem; font-size: .8125rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--green); margin-bottom: 1rem; }
.eyebrow::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 4px rgba(255, 193, 7, .25); }
.section--ink .eyebrow, .section--green .eyebrow, .section-green .eyebrow, .hero .eyebrow, .page-hero .eyebrow { color: #fff; }

/* ---------- Кнопки ---------- */
.btn {
    transition: transform var(--dur-press) var(--ease-out), background-color var(--dur-ui) var(--ease-out),
                border-color var(--dur-ui) var(--ease-out), color var(--dur-ui) var(--ease-out), box-shadow var(--dur-ui) var(--ease-out);
}
.btn:active:not(:disabled) { transform: scale(0.97); }
.btn-theme { --bs-btn-padding-x: 1.625rem; --bs-btn-padding-y: .9375rem; --bs-btn-border-radius: .875rem; --bs-btn-font-weight: 600; display: inline-flex; align-items: center; justify-content: center; line-height: 1.2; }
.btn-yellow { box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .08), 0 8px 20px -10px rgba(217, 164, 6, .8); }
.btn-ghost { --bs-btn-color: #fff; --bs-btn-border-color: rgba(255, 255, 255, .35); --bs-btn-hover-color: #fff; --bs-btn-hover-bg: rgba(255, 255, 255, .12); --bs-btn-hover-border-color: rgba(255, 255, 255, .6); --bs-btn-active-color: #fff; --bs-btn-active-bg: rgba(255, 255, 255, .18); --bs-btn-active-border-color: #fff; }
.btn-outline-ink { --bs-btn-color: var(--ink); --bs-btn-border-color: var(--line); --bs-btn-bg: #fff; --bs-btn-hover-color: var(--ink); --bs-btn-hover-bg: var(--surface); --bs-btn-hover-border-color: rgba(20, 36, 27, .25); --bs-btn-active-color: var(--ink); --bs-btn-active-bg: var(--surface-2); --bs-btn-active-border-color: rgba(20, 36, 27, .3); }
.btn .svg-inline--fa { transition: transform var(--dur-ui) var(--ease-out); }

.social-link { transition: transform var(--dur-press) var(--ease-out), opacity var(--dur-ui) var(--ease-out); display: inline-flex; }
.social-link:active { transform: scale(0.92); }

.link-arrow { display: inline-flex; align-items: center; gap: .375rem; font-weight: 600; color: var(--green); text-decoration: none; }
.link-arrow svg { width: 1.125em; height: 1.125em; transition: transform var(--dur-ui) var(--ease-out); }
.section--ink .link-arrow, .section--green .link-arrow { color: var(--yellow); }

@media (hover: hover) and (pointer: fine) {
    .btn:hover .svg-inline--fa { transform: translateX(3px); }
    .btn-yellow:hover { box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .08), 0 14px 26px -10px rgba(217, 164, 6, .9); }
    .social-link:hover { opacity: .8; }
    .link-arrow:hover { color: var(--green-700); }
    .link-arrow:hover svg { transform: translateX(4px); }
}

/* ---------- Шапка ---------- */
header.site-header {
    background: var(--green); padding-block: 1rem;
    transition: box-shadow var(--dur-ui) var(--ease-out), padding var(--dur-ui) var(--ease-out), background-color var(--dur-ui) var(--ease-out);
}
header.site-header.is-scrolled { background: rgba(7, 153, 88, .94); backdrop-filter: saturate(140%) blur(10px); box-shadow: 0 10px 30px -14px rgba(0, 0, 0, .45); padding-block: .625rem; }
.site-nav { display: flex; align-items: center; gap: .25rem; }
.site-nav .menu-link { padding: .5rem .75rem; border-radius: .625rem; color: #fff; text-decoration: none; font-weight: 500; transition: background-color var(--dur-ui) var(--ease-out); }
.site-nav .menu-link::before { display: none; }
.site-nav .menu-link.active { background: rgba(255, 255, 255, .16); text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .site-nav .menu-link:hover { background: rgba(255, 255, 255, .12); } }
.header-phone { color: #fff; font-weight: 700; font-size: 1.125rem; text-decoration: none; white-space: nowrap; }
@media (min-width: 1400px) { .header-phone { font-size: 1.375rem; } }

/* ---------- Hero главной ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; color: #fff; background: linear-gradient(135deg, #08a35f 0%, var(--green) 45%, var(--green-700) 100%); }
.hero::before { content: ""; position: absolute; z-index: -1; width: 46rem; height: 46rem; right: -14rem; top: -18rem; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 193, 7, .28), transparent); }
.hero::after { content: ""; position: absolute; z-index: -1; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(to right, #000, transparent 60%); -webkit-mask-image: linear-gradient(to right, #000, transparent 60%); }
.hero__inner { padding-top: clamp(2rem, 5vw, 4.5rem); }
.hero__title { font-size: clamp(2.25rem, 4.4vw, 3.875rem); line-height: 1.02; font-weight: 700; margin-bottom: 1.25rem; }
.hero__title mark { background: var(--yellow); color: var(--ink); border-radius: .25em; padding: 0 .18em .06em; white-space: nowrap; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.hero__lead { font-size: clamp(1.125rem, 1.9vw, 1.5rem); line-height: 1.4; color: rgba(255, 255, 255, .92); max-width: 34rem; margin-bottom: 2rem; }
.hero__chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2rem; }
.chip { display: inline-flex; align-items: center; gap: .5rem; padding: .5rem .875rem; border-radius: 99px; font-size: .9375rem; font-weight: 500; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2); }
.chip svg { width: 1.125rem; height: 1.125rem; color: var(--yellow); flex-shrink: 0; }
.chip--light { background: var(--green-50); border-color: transparent; color: var(--green-700); }
.chip--light svg { color: var(--green); }
.hero__img { display: block; margin-inline: auto; }

/* Полоса фактов */
.stats { position: relative; z-index: 2; margin-top: -2.75rem; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); border: 1px solid var(--line); overflow: hidden; }
.stat { padding: 1.5rem 1.75rem; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat__value { font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 800; line-height: 1.1; color: var(--green); letter-spacing: -0.02em; }
.stat__label { color: var(--muted); margin-top: .375rem; font-size: .9375rem; line-height: 1.4; }
@media (max-width: 991.98px) { .stats__grid { grid-template-columns: repeat(2, 1fr); } .stat:nth-child(3) { border-left: 0; } .stat:nth-child(n+3) { border-top: 1px solid var(--line); } }
@media (max-width: 479.98px) { .stat { padding: 1.125rem; } }

/* ---------- Шапка внутренних страниц ---------- */
.page-hero, .page-title { position: relative; isolation: isolate; overflow: hidden; color: #fff; background: linear-gradient(135deg, #08a35f 0%, var(--green) 50%, var(--green-700) 100%) !important; padding-block: clamp(2rem, 4.5vw, 3.75rem) !important; }
.page-hero::before, .page-title::before { content: ""; position: absolute; z-index: -1; width: 38rem; height: 38rem; right: -10rem; bottom: -24rem; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 193, 7, .32), transparent); }
.page-hero h1, .page-title h1 { margin-bottom: 0; max-width: 60rem; }
.page-hero__lead { font-size: clamp(1.0625rem, 1.6vw, 1.25rem); color: rgba(255, 255, 255, .9); max-width: 46rem; margin: 1rem 0 0; }
.page-hero .breadcrumb, .page-title .breadcrumb, .svc-hero .breadcrumb { font-size: .9375rem; margin-bottom: 1.25rem; flex-wrap: wrap; gap: .25rem 0; }
.breadcrumb .breadcrumb-item + .breadcrumb-item::before { content: "/" !important; display: inline-block; padding-right: .5rem; color: rgba(255, 255, 255, .5); float: none; }
.breadcrumb .breadcrumb-item:not(:last-child)::after { content: none !important; }
.breadcrumb .breadcrumb-item a { color: rgba(255, 255, 255, .8) !important; text-decoration: none; }
.breadcrumb .breadcrumb-item.active span { color: #fff !important; text-decoration: none !important; opacity: .7; }
.page-hero__meta { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin-top: 1.25rem; color: rgba(255, 255, 255, .85); font-size: .9375rem; }
.page-hero__meta span { display: inline-flex; align-items: center; gap: .4rem; }
.page-hero__meta svg { width: 1.1rem; height: 1.1rem; opacity: .8; }

/* ---------- Карточки ---------- */
.card-ui, .service-card, .feature-card, .case-card, .post-card, .review-card, .step, .tariff-card, .contact-card {
    transition: transform var(--dur-ui) var(--ease-out), box-shadow var(--dur-ui) var(--ease-out), border-color var(--dur-ui) var(--ease-out), background-color var(--dur-ui) var(--ease-out);
}
.card-ui { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 1.5rem; }
@media (hover: hover) and (pointer: fine) {
    .service-card:hover, .feature-card:hover, .case-card:hover, .post-card:hover, .tariff-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
}
.service-card:active, .case-card:active, .post-card:active { transform: scale(0.99); }

.icon-box { display: inline-grid; place-items: center; width: 3.25rem; height: 3.25rem; border-radius: 1rem; background: var(--green-50); color: var(--green); flex-shrink: 0; }
.icon-box svg { width: 1.625rem; height: 1.625rem; }
.icon-box--warn { background: var(--yellow-50); color: #a87700; }
.icon-box--yellow { background: var(--yellow); color: var(--ink); }
.icon-box--glass { background: rgba(255, 255, 255, .14); color: #fff; }

/* Услуга */
.service-card { position: relative; display: flex; flex-direction: column; gap: .75rem; padding: 1.75rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.service-card__icon, .feature-card__icon { display: inline-grid; place-items: center; width: 3.25rem; height: 3.25rem; border-radius: 1rem; background: var(--green-50); color: var(--green); flex-shrink: 0; transition: background-color var(--dur-ui) var(--ease-out), color var(--dur-ui) var(--ease-out); }
.service-card__icon svg, .feature-card__icon svg { width: 1.625rem; height: 1.625rem; }
.service-card__title { font-size: 1.3125rem; font-weight: 700; margin: .5rem 0 0; line-height: 1.25; }
.service-card__title a { color: var(--ink); text-decoration: none; }
.service-card__text { color: var(--muted); margin: 0; flex-grow: 1; }
.service-card__more { display: inline-flex; align-items: center; gap: .375rem; color: var(--green); font-weight: 600; margin-top: .5rem; }
.service-card__more svg { width: 1.1em; height: 1.1em; transition: transform var(--dur-ui) var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
    .service-card:hover { border-color: rgba(7, 153, 88, .4); }
    .service-card:hover .service-card__icon { background: var(--green); color: #fff; }
    .service-card:hover .service-card__more svg { transform: translateX(4px); }
}

.feature-card { padding: 1.75rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.feature-card__icon.is-warn { background: var(--yellow-50); color: #a87700; }
.feature-card__title { font-size: 1.1875rem; font-weight: 700; margin: 1.125rem 0 .5rem; line-height: 1.3; }
.feature-card__text { color: var(--muted); margin: 0; }
.section--surface .feature-card, .bg-light .feature-card { box-shadow: none; }

/* Кейс */
.case-card { position: relative; display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); overflow: hidden; }
.case-card__head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: 1.25rem 1.5rem 0; }
.case-card__tag { display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .7rem; border-radius: 99px; background: var(--yellow-50); color: #8a6200; font-size: .8125rem; font-weight: 600; line-height: 1.3; }
.case-card__term { color: var(--muted); font-size: .875rem; white-space: nowrap; display: inline-flex; align-items: center; gap: .3rem; }
.case-card__term svg { width: 1rem; height: 1rem; }
.case-card__body { padding: 1rem 1.5rem 1.25rem; flex-grow: 1; }
.case-card__title { font-size: 1.1875rem; line-height: 1.3; font-weight: 700; margin: 0 0 .5rem; }
.case-card__title a { color: var(--ink); text-decoration: none; }
.case-card__who { color: var(--muted); font-size: .9375rem; margin: 0; }
.case-card__result { display: flex; gap: .75rem; align-items: flex-start; padding: 1rem 1.5rem; background: var(--green-50); color: var(--green-700); font-weight: 600; line-height: 1.35; border-top: 1px solid rgba(7, 153, 88, .14); }
.case-card__result svg { width: 1.375rem; height: 1.375rem; flex-shrink: 0; padding: .2rem; border-radius: 50%; background: var(--green); color: #fff; margin-top: .05rem; }
.case-card__foot { padding: 1rem 1.5rem 1.25rem; }
@media (hover: hover) and (pointer: fine) { .case-card:hover { border-color: rgba(7, 153, 88, .4); } .case-card:hover .link-arrow svg { transform: translateX(4px); } }

/* Статья (карточка) */
.post-card { position: relative; display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.post-card__media { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--surface-2); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease-out); }
.post-card__body { display: flex; flex-direction: column; gap: .75rem; padding: 1.25rem 1.5rem 1.5rem; flex-grow: 1; }
.post-card__date { color: var(--muted); font-size: .875rem; }
.post-card__title { font-size: 1.125rem; line-height: 1.35; font-weight: 700; margin: 0; flex-grow: 1; }
.post-card__title a { color: var(--ink); text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .post-card:hover .post-card__media img { transform: scale(1.05); } .post-card:hover .link-arrow svg { transform: translateX(4px); } }
.post-card--featured { flex-direction: row; }
.post-card--featured .post-card__media { flex: 0 0 55%; aspect-ratio: auto; min-height: 22rem; }
.post-card--featured .post-card__body { justify-content: center; padding: clamp(1.5rem, 3vw, 3rem); }
.post-card--featured .post-card__title { font-size: clamp(1.375rem, 2.4vw, 2rem); line-height: 1.2; flex-grow: 0; }
.post-card__excerpt { color: var(--muted); margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 991.98px) { .post-card--featured { flex-direction: column; } .post-card--featured .post-card__media { flex: none; min-height: 0; aspect-ratio: 3 / 2; } }

/* Отзыв */
.review-card { display: flex; flex-direction: column; gap: .875rem; height: 100%; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.5rem; box-shadow: var(--shadow-sm); break-inside: avoid; }
.review-card__stars { display: flex; gap: .2rem; color: var(--yellow); }
.review-card__stars svg { width: 1.125rem; height: 1.125rem; }
.review-card__text { margin: 0; color: var(--ink-2); flex-grow: 1; }
.review-card__author { display: flex; align-items: center; gap: .75rem; padding-top: .875rem; border-top: 1px solid var(--line); }
.review-card__avatar { width: 2.75rem; height: 2.75rem; border-radius: 50%; display: grid; place-items: center; background: var(--green-50); color: var(--green-700); font-weight: 700; flex-shrink: 0; }
.review-card__name { font-weight: 700; line-height: 1.2; }
.review-card__meta { color: var(--muted); font-size: .875rem; }
.reviews-masonry { columns: 3 20rem; column-gap: 1.25rem; }
.reviews-masonry > * { margin-bottom: 1.25rem; height: auto; }
.rating-summary { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.rating-summary__value { font-size: clamp(3rem, 6vw, 4.5rem); font-weight: 800; line-height: 1; letter-spacing: -0.03em; }
.rating-summary__stars { display: flex; gap: .25rem; color: var(--yellow); margin-bottom: .25rem; }
.rating-summary__stars svg { width: 1.5rem; height: 1.5rem; }

/* Видео-отзыв */
.video-card { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); background: var(--ink); }
.video-card img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: transform 700ms var(--ease-out), opacity var(--dur-ui) var(--ease-out); opacity: .92; }
.video-card__play { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(to top, rgba(0, 0, 0, .55), transparent 55%); border: 0; color: #fff; width: 100%; }
.video-card__play span { display: grid; place-items: center; width: 4.5rem; height: 4.5rem; border-radius: 50%; background: var(--yellow); color: var(--ink); transition: transform var(--dur-ui) var(--ease-out); box-shadow: 0 10px 30px rgba(0, 0, 0, .3); }
.video-card__play svg { width: 1.375rem; height: 1.375rem; margin-left: .2rem; }
.video-card__title { position: absolute; left: 1.25rem; right: 1.25rem; bottom: 1rem; color: #fff; font-weight: 600; pointer-events: none; }
@media (hover: hover) and (pointer: fine) { .video-card:hover img { transform: scale(1.04); } .video-card:hover .video-card__play span { transform: scale(1.08); } }
.video-card__play:active span { transform: scale(0.95); }

/* ---------- Этапы ---------- */
.step { position: relative; height: 100%; background: #fff; border-radius: var(--radius-lg); padding: 1.75rem; border: 1px solid var(--line); }
.step__num { display: inline-grid; place-items: center; min-width: 3rem; height: 3rem; padding: 0 .5rem; border-radius: .875rem; background: var(--yellow); color: var(--ink); font-weight: 800; font-size: 1.25rem; margin-bottom: 1.125rem; font-variant-numeric: tabular-nums; }
.step__title { font-size: 1.1875rem; font-weight: 700; margin-bottom: .5rem; }
.step__text { color: var(--muted); margin: 0; }
@media (min-width: 1200px) {
    .steps > .col:not(:last-child) .step::after, .steps > li:not(:last-child) .step::after { content: ""; position: absolute; top: 3.25rem; right: -1rem; width: 1rem; height: 2px; background: rgba(7, 153, 88, .35); }
}
.steps-list { display: grid; gap: 1rem; counter-reset: s; }
.steps-list__item { display: flex; gap: 1.25rem; align-items: flex-start; padding: 1.25rem 1.5rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.steps-list__item .step__num { margin: 0; flex-shrink: 0; }
.steps-list__item h3 { font-size: 1.1875rem; margin: .1rem 0 .375rem; }
.steps-list__item p { margin: 0; color: var(--muted); }
.section--green .steps-list__item { color: var(--ink); border: 0; }

/* ---------- Баннер / CTA ---------- */
.banner { position: relative; isolation: isolate; overflow: hidden; border-radius: var(--radius-xl); background: var(--green-900); color: #fff; padding: clamp(1.75rem, 5vw, 4rem); }
.banner::before { content: ""; position: absolute; z-index: -1; width: 34rem; height: 34rem; right: -8rem; top: -14rem; border-radius: 50%; background: radial-gradient(closest-side, rgba(7, 153, 88, .7), transparent); }
.banner::after { content: ""; position: absolute; z-index: -1; width: 22rem; height: 22rem; left: -6rem; bottom: -12rem; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 193, 7, .25), transparent); }
.banner__title { font-size: clamp(1.75rem, 3.4vw, 2.75rem); line-height: 1.1; margin-bottom: 1rem; }
.banner__text { font-size: 1.125rem; color: rgba(255, 255, 255, .85); max-width: 38rem; margin-bottom: 1.75rem; }
.banner__img { position: absolute; right: 2rem; bottom: 0; max-height: 115%; width: auto; z-index: -1; }

.cta-card { position: relative; overflow: hidden; isolation: isolate; border-radius: var(--radius-xl); background: linear-gradient(135deg, #08a35f 0%, var(--green) 50%, var(--green-700) 100%); color: #fff; padding: clamp(1.5rem, 4vw, 3.5rem); }
.cta-card::before { content: ""; position: absolute; z-index: -1; width: 30rem; height: 30rem; left: -8rem; top: -12rem; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 193, 7, .3), transparent); }
.cta-card__title { font-size: clamp(1.75rem, 3.2vw, 2.625rem); line-height: 1.1; margin-bottom: 1rem; }
.cta-card__text { color: rgba(255, 255, 255, .9); font-size: 1.125rem; }
.cta-card__phone { color: #fff; font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 800; text-decoration: none; letter-spacing: -0.01em; }
.cta-card__form { background: #fff; border-radius: var(--radius-lg); padding: 1rem; box-shadow: var(--shadow-lg); }
.cta-list { display: grid; gap: .625rem; margin: 1.5rem 0; padding: 0; list-style: none; }
.cta-list li { display: flex; gap: .75rem; align-items: flex-start; }
.cta-list svg { width: 1.375rem; height: 1.375rem; padding: .2rem; border-radius: 50%; background: var(--yellow); color: var(--ink); flex-shrink: 0; margin-top: .1rem; }

.guarantee-strip { display: flex; align-items: center; gap: 1rem; padding: 1.25rem 1.5rem; border-radius: var(--radius-lg); background: var(--green-50); color: var(--green-700); font-weight: 600; font-size: 1.125rem; }
.guarantee-strip svg { width: 2rem; height: 2rem; flex-shrink: 0; color: var(--green); }

/* ---------- Контакты ---------- */
.contact-card { display: flex; gap: 1rem; align-items: center; padding: 1.25rem 1.5rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); height: 100%; }
.contact-card__label { color: var(--muted); font-size: .875rem; }
.contact-card__value { font-size: 1.25rem; font-weight: 700; color: var(--ink); text-decoration: none; line-height: 1.2; }
a.contact-card__value { transition: color var(--dur-ui) var(--ease-out); }
@media (hover: hover) and (pointer: fine) { a.contact-card__value:hover { color: var(--green); } }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.25rem, 2.5vw, 2rem); box-shadow: var(--shadow-sm); height: 100%; }
.form-control, .form-select { border-radius: .75rem; border-color: var(--line); padding: .8rem 1rem; transition: border-color var(--dur-ui) var(--ease-out), box-shadow var(--dur-ui) var(--ease-out), background-color var(--dur-ui) var(--ease-out); }
.form-control:focus { border-color: var(--green); box-shadow: 0 0 0 4px rgba(7, 153, 88, .14); }

/* ---------- Тарифы ---------- */
.tariff-card { position: relative; display: flex; flex-direction: column; height: 100%; padding: 2rem; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.tariff-card.tariff-recommended { background: var(--green-900); color: #fff; border-color: transparent; box-shadow: var(--shadow-lg); }
.tariff-card.tariff-recommended .tariff-card__desc { color: rgba(255, 255, 255, .8); }
.tariff-card__name { font-size: 1.5rem; font-weight: 700; margin-bottom: .5rem; }
.tariff-card__desc { color: var(--muted); margin-bottom: 1.5rem; min-height: 4.5em; }
.tariff-badge { position: absolute; top: 1.5rem; right: 1.5rem; background: var(--yellow); color: var(--ink); padding: .25rem .75rem; border-radius: 99px; font-size: .8125rem; font-weight: 700; }
.tariff-list { flex-grow: 1; }
.tariff-list li { display: flex; gap: .75rem; align-items: flex-start; margin-bottom: .875rem; }
.tariff-check { width: 1.375rem; height: 1.375rem; flex-shrink: 0; margin-top: .1rem; }
.tariff-card .btn { align-self: stretch; }

/* ---------- Услуга: hero и блоки ---------- */
.svc-hero { position: relative; overflow: hidden; isolation: isolate; color: #fff; background: linear-gradient(135deg, #08a35f 0%, var(--green) 45%, var(--green-700) 100%); padding: clamp(2rem, 5vw, 4rem) 0 clamp(3rem, 6vw, 5rem); }
.svc-hero::before, .svc-hero::after { content: ""; position: absolute; border-radius: 50%; z-index: -1; pointer-events: none; }
.svc-hero::before { width: 40rem; height: 40rem; right: -12rem; top: -14rem; background: radial-gradient(closest-side, rgba(255, 193, 7, .3), transparent); }
.svc-hero::after { width: 30rem; height: 30rem; left: -10rem; bottom: -18rem; background: radial-gradient(closest-side, rgba(255, 255, 255, .14), transparent); }
.svc-badge { display: inline-flex; align-items: center; gap: .5rem; padding: .375rem .875rem; border-radius: 99px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .22); font-size: .9375rem; font-weight: 500; }
.svc-badge::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 4px rgba(255, 193, 7, .25); }
.svc-title { font-size: clamp(2.125rem, 4.4vw, 3.5rem); font-weight: 700; line-height: 1.05; }
.svc-lead { font-size: clamp(1.0625rem, 1.6vw, 1.3125rem); line-height: 1.5; color: rgba(255, 255, 255, .92); max-width: 40rem; }
.svc-points li { display: flex; align-items: flex-start; gap: .75rem; margin-bottom: .625rem; font-size: 1.0625rem; }
.svc-points__icon { display: inline-grid; place-items: center; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--yellow); color: var(--ink); flex-shrink: 0; margin-top: .1rem; }
.svc-points__icon svg { width: .875rem; height: .875rem; }
.svc-facts { position: relative; background: #fff; color: var(--ink); border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow-lg); display: grid; gap: 1.25rem; }
.svc-facts__icon { position: absolute; top: -1.25rem; right: 1.5rem; width: 3.5rem; height: 3.5rem; border-radius: 1rem; display: grid; place-items: center; background: var(--yellow); color: var(--ink); box-shadow: var(--shadow-md); }
.svc-facts__icon svg { width: 1.75rem; height: 1.75rem; }
.svc-fact { padding-bottom: 1.25rem; border-bottom: 1px solid var(--line); }
.svc-fact__value { font-size: 1.625rem; font-weight: 800; color: var(--green); line-height: 1.15; letter-spacing: -0.01em; }
.svc-fact__label { color: var(--muted); }
.svc-facts__note { display: flex; align-items: center; gap: .5rem; font-size: .9375rem; color: var(--muted); }
.svc-facts__note svg { width: 1.25rem; height: 1.25rem; color: var(--green); flex-shrink: 0; }

.includes-card { background: var(--surface); border-radius: var(--radius-lg); padding: clamp(1.5rem, 3vw, 2.5rem); }
.check-list li { display: flex; gap: .875rem; align-items: flex-start; padding: .75rem 0; border-bottom: 1px dashed var(--line); font-size: 1.0625rem; }
.check-list li:last-child { border-bottom: 0; }
.check-list__icon { display: inline-grid; place-items: center; width: 1.625rem; height: 1.625rem; border-radius: .5rem; background: var(--green); color: #fff; flex-shrink: 0; }
.check-list__icon svg { width: 1rem; height: 1rem; }
.guarantee-card { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; gap: 1.5rem; background: var(--green-900); color: #fff; border-radius: var(--radius-lg); padding: clamp(1.5rem, 3vw, 2.5rem); }
.guarantee-card::after { content: ""; position: absolute; right: -6rem; bottom: -6rem; width: 18rem; height: 18rem; border-radius: 50%; background: radial-gradient(closest-side, rgba(7, 153, 88, .6), transparent); }
.guarantee-card > * { position: relative; z-index: 1; }
.guarantee-card__badge { align-self: flex-start; padding: .25rem .75rem; border-radius: 99px; background: var(--yellow); color: var(--ink); font-weight: 700; font-size: .8125rem; text-transform: uppercase; letter-spacing: .06em; }
.guarantee-card__text { font-size: 1.3125rem; line-height: 1.45; margin: 0; }
.guarantee-card .btn { align-self: flex-start; }

.result-card { height: 100%; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); border-radius: var(--radius-lg); padding: 1.75rem; transition: background-color var(--dur-ui) var(--ease-out); }
.result-card__icon { display: inline-grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--yellow); color: var(--ink); }
.result-card__icon svg { width: 1.25rem; height: 1.25rem; }
.result-card__title { font-size: 1.1875rem; font-weight: 700; margin: 1rem 0 .5rem; }
.result-card__text { margin: 0; color: rgba(255, 255, 255, .85); }
@media (hover: hover) and (pointer: fine) { .result-card:hover { background: rgba(255, 255, 255, .16); } }

/* ---------- Текст (статьи, страницы) ---------- */
.prose { font-size: 1.125rem; line-height: 1.75; color: var(--ink-2); }
.prose > *:first-child { margin-top: 0; }
.prose h1, .prose h2 { font-size: clamp(1.625rem, 2.6vw, 2.125rem); line-height: 1.2; margin: 2.75rem 0 1rem; color: var(--ink); scroll-margin-top: 7rem; }
.prose h3 { font-size: clamp(1.25rem, 1.8vw, 1.5rem); margin: 2.25rem 0 .75rem; color: var(--ink); }
.prose h4 { font-size: 1.1875rem; margin: 1.75rem 0 .5rem; color: var(--ink); }
.prose p { margin-bottom: 1.25rem; }
.prose a:not(.btn) { color: var(--green); text-decoration: underline; text-decoration-color: rgba(7, 153, 88, .35); transition: text-decoration-color var(--dur-ui) var(--ease-out); }
.prose a:not(.btn):hover { text-decoration-color: currentColor; }
.prose ul, .prose ol { padding-left: 1.375rem; margin-bottom: 1.25rem; }
.prose li { margin-bottom: .5rem; }
.prose li::marker { color: var(--green); font-weight: 700; }
.prose img { border-radius: var(--radius-lg); margin-block: .5rem; }
.prose blockquote, .prose .border-start { border-left: 4px solid var(--yellow) !important; padding: .25rem 0 .25rem 1.25rem; margin: 1.75rem 0; font-size: 1.1875rem; color: var(--ink); }
.prose table { width: 100%; margin: 1.5rem 0; border-collapse: separate; border-spacing: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: 1rem; display: block; overflow-x: auto; }
.prose th { background: var(--surface); text-align: left; font-weight: 700; }
.prose th, .prose td { padding: .75rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose tr:last-child td { border-bottom: 0; }
.prose .lead { font-size: 1.25rem; color: var(--ink); }
.prose .card, .prose .alert { border-radius: var(--radius-lg); }

/* Нормализация вёрстки старого контента внутри узкой колонки */
.prose section, .legacy section { margin: 0 !important; padding: 0 !important; background: none; }
.prose .container, .prose .container-xxl, .prose .container-fluid { padding: 0 !important; max-width: none !important; margin: 0 !important; }
.prose section > .container-xxl > .row > [class*="col"], .prose .row.justify-content-center > [class*="col-lg-1"], .prose .row.justify-content-center > [class*="col-xl-"] { flex: 0 0 100%; max-width: 100%; margin-left: 0; }
.prose .py-5, .prose .my-5, .prose .my-4, .prose .my-lg-4, .prose .py-4 { padding-top: 0 !important; padding-bottom: 0 !important; margin-top: 0 !important; margin-bottom: 0 !important; }
.prose .mb-5, .prose .pb-3 { margin-bottom: 1.5rem !important; padding-bottom: 0 !important; }
.prose .text-center:not(td):not(th):not(.btn) { text-align: left !important; }
.prose .display-3, .prose .display-4, .prose .display-5, .prose .display-6 { font-size: clamp(1.625rem, 2.6vw, 2.125rem) !important; line-height: 1.2; font-weight: 700 !important; }
.prose .fs-5, .prose .fs-4 { font-size: inherit !important; }
.prose .text-secondary, .prose .text-muted { color: inherit !important; }
.prose .bg-primary.rounded.mx-auto { display: none; }
.prose .dfs-18 { font-size: inherit !important; }

/* Широкие страницы со старым контентом (О компании и т.п.) */
.legacy > section { padding-block: calc(var(--section-y) * .5) !important; }
.legacy > section:first-child { padding-top: var(--section-y) !important; }
.legacy > section:last-child { padding-bottom: var(--section-y) !important; }
.legacy .card { border-radius: var(--radius-lg); border-color: var(--line); }
.legacy img.rounded-4 { border-radius: var(--radius-lg) !important; box-shadow: var(--shadow-md); }
.legacy .bg-light, .legacy .bg-body-tertiary { background: var(--surface) !important; border-radius: var(--radius-lg); }
.legacy .lead { color: var(--muted); }

/* ---------- Статья ---------- */
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 3rem; }
@media (min-width: 1200px) { .article-layout { grid-template-columns: minmax(0, 1fr) 19rem; } }
.article-cover { border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-md); margin-bottom: 2.5rem; aspect-ratio: 16 / 8; background: var(--surface-2); }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.article-aside { position: sticky; top: 7rem; align-self: start; display: grid; gap: 1.25rem; }
.toc { background: var(--surface); border-radius: var(--radius-lg); padding: 1.5rem; }
.toc__title { font-weight: 700; margin-bottom: .875rem; }
.toc ol { list-style: none; padding: 0; margin: 0; display: grid; gap: .125rem; max-height: 50vh; overflow: auto; }
.toc a { display: block; padding: .4rem .75rem; border-radius: .5rem; color: var(--muted); text-decoration: none; font-size: .9375rem; line-height: 1.35; border-left: 2px solid transparent; transition: color var(--dur-ui) var(--ease-out), background-color var(--dur-ui) var(--ease-out), border-color var(--dur-ui) var(--ease-out); }
.toc a.is-active { color: var(--green-700); background: #fff; border-left-color: var(--green); font-weight: 600; }
@media (hover: hover) and (pointer: fine) { .toc a:hover { color: var(--ink); } }
.aside-cta { background: var(--green-900); color: #fff; border-radius: var(--radius-lg); padding: 1.5rem; }
.aside-cta__title { font-size: 1.1875rem; font-weight: 700; line-height: 1.25; margin-bottom: .5rem; }
.aside-cta p { color: rgba(255, 255, 255, .8); font-size: .9375rem; }
.read-progress { position: fixed; left: 0; top: 0; height: 3px; width: 100%; transform-origin: left; transform: scaleX(0); background: var(--yellow); z-index: 1030; pointer-events: none; }
.author-box { display: flex; gap: 1rem; align-items: center; margin-top: 3rem; padding: 1.5rem; border-radius: var(--radius-lg); background: var(--surface); }
.author-box img { width: 3.5rem; height: 3.5rem; flex-shrink: 0; }

/* ---------- Кейс (страница) ---------- */
.case-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(255, 255, 255, .18); border-radius: var(--radius-lg); overflow: hidden; margin-top: 2rem; border: 1px solid rgba(255, 255, 255, .18); }
.case-summary__item { background: rgba(8, 110, 66, .55); padding: 1.125rem 1.25rem; backdrop-filter: blur(4px); }
.case-summary__label { font-size: .8125rem; text-transform: uppercase; letter-spacing: .06em; color: rgba(255, 255, 255, .7); }
.case-summary__value { font-weight: 700; font-size: 1.0625rem; line-height: 1.3; margin-top: .25rem; }
@media (max-width: 991.98px) { .case-summary { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 479.98px) { .case-summary { grid-template-columns: 1fr; } }
.case-block { display: grid; grid-template-columns: 3.25rem minmax(0, 1fr); gap: 1.25rem; padding-bottom: 2.25rem; position: relative; }
.case-block:not(:last-child)::before { content: ""; position: absolute; left: 1.6rem; top: 3.75rem; bottom: .5rem; width: 2px; background: var(--line); }
.case-block h2 { font-size: clamp(1.25rem, 2vw, 1.5rem); margin: .6rem 0 .875rem; }
.case-block .prose { font-size: 1.0625rem; }
.case-result { position: sticky; top: 7rem; background: var(--green-900); color: #fff; border-radius: var(--radius-lg); padding: 2rem; overflow: hidden; isolation: isolate; }
.case-result::after { content: ""; position: absolute; z-index: -1; right: -6rem; bottom: -6rem; width: 18rem; height: 18rem; border-radius: 50%; background: radial-gradient(closest-side, rgba(7, 153, 88, .6), transparent); }
.case-result__label { font-size: .8125rem; text-transform: uppercase; letter-spacing: .08em; color: var(--yellow); font-weight: 700; }
.case-result__value { font-size: 1.5rem; font-weight: 700; line-height: 1.25; margin: .5rem 0 1.5rem; }
.case-result dl { display: grid; gap: .75rem; margin: 0 0 1.5rem; }
.case-result dt { font-weight: 400; color: rgba(255, 255, 255, .65); font-size: .875rem; }
.case-result dd { margin: 0; font-weight: 600; }
.outcome { border-radius: var(--radius-lg); background: var(--green-50); border: 1px solid rgba(7, 153, 88, .18); padding: clamp(1.5rem, 3vw, 2.5rem); }
.outcome h2 { font-size: clamp(1.375rem, 2.2vw, 1.75rem); color: var(--green-700); margin-bottom: 1rem; }
.outcome p:last-child { margin-bottom: 0; }
.gallery-item { display: block; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); position: relative; }
.gallery-item img { width: 100%; transition: transform 700ms var(--ease-out); border-radius: 0 !important; }
@media (hover: hover) and (pointer: fine) { .gallery-item:hover img { transform: scale(1.03); } }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: .75rem; }
.accordion { --bs-accordion-border-width: 0; --bs-accordion-bg: transparent; display: grid; gap: .75rem; }
.accordion-item { border-radius: var(--radius) !important; overflow: hidden; background: #fff !important; border: 1px solid var(--line) !important; transition: border-color var(--dur-ui) var(--ease-out), box-shadow var(--dur-ui) var(--ease-out); }
.accordion-item:has(.accordion-button:not(.collapsed)) { border-color: rgba(7, 153, 88, .45) !important; box-shadow: var(--shadow-sm); }
.accordion-button { font-weight: 600; font-size: 1.0625rem; padding: 1.125rem 1.375rem; background: transparent !important; color: var(--ink) !important; box-shadow: none !important; }
.accordion-button::after { transition: transform 300ms var(--ease-out); }
.accordion-body { padding: 0 1.375rem 1.25rem; color: var(--ink-2); }
.accordion-body p:last-child { margin-bottom: 0; }
.collapsing { transition: height 300ms var(--ease-out); }

/* ---------- Пагинация ---------- */
.pagination { gap: .375rem; flex-wrap: wrap; margin-top: 3rem !important; }
.pagination .page-link { min-width: 2.75rem; height: 2.75rem; display: grid; place-items: center; border-radius: .75rem !important; border: 1px solid var(--line); color: var(--ink); font-weight: 600; transition: background-color var(--dur-ui) var(--ease-out), color var(--dur-ui) var(--ease-out), border-color var(--dur-ui) var(--ease-out), transform var(--dur-press) var(--ease-out); }
.pagination .page-item.active .page-link { background: var(--green); border-color: var(--green); color: #fff; }
.pagination a.page-link:active { transform: scale(0.94); }
@media (hover: hover) and (pointer: fine) { .pagination a.page-link:hover { background: var(--green-50); border-color: rgba(7, 153, 88, .4); color: var(--green-700); } }

/* ---------- Подвал ---------- */
.site-footer { background: var(--green-900); color: rgba(255, 255, 255, .78); padding-top: clamp(3rem, 6vw, 5rem); position: relative; overflow: hidden; isolation: isolate; }
.site-footer::before { content: ""; position: absolute; z-index: -1; width: 40rem; height: 40rem; right: -14rem; top: -20rem; border-radius: 50%; background: radial-gradient(closest-side, rgba(7, 153, 88, .45), transparent); }
.site-footer a { color: rgba(255, 255, 255, .78); text-decoration: none; transition: color var(--dur-ui) var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .site-footer a:hover { color: #fff; } }
.footer-title { color: #fff; font-weight: 700; margin-bottom: 1.125rem; font-size: 1.0625rem; }
.footer-links { display: grid; gap: .625rem; list-style: none; padding: 0; margin: 0; }
.footer-phone { color: #fff !important; font-size: 1.625rem; font-weight: 800; letter-spacing: -0.01em; display: inline-block; }
.footer-bottom { margin-top: clamp(2.5rem, 5vw, 4rem); padding-block: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .875rem; color: rgba(255, 255, 255, .6); }
.footer-logo { width: 13rem; }

/* ---------- Модальные окна и меню ---------- */
.modal.fade .modal-dialog { transform: translateY(8px) scale(0.96); opacity: 0; transition: transform 240ms var(--ease-out), opacity 200ms var(--ease-out); }
.modal.show .modal-dialog { transform: none; opacity: 1; }
.modal-backdrop.fade { transition: opacity 200ms var(--ease-out); }
.modal-backdrop.show { opacity: .55; }
.modal-content { border: 0; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.modal-header { border-bottom: 0; padding: 1.5rem 1.5rem .5rem; }
.modal-body { padding: 1rem 1.5rem 1.5rem; }
.modal-title { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; }
.offcanvas { transition: transform 420ms var(--ease-drawer), visibility 420ms; background: var(--green) !important; }
.offcanvas:not(.show) .offcanvas-body > * { opacity: 0; transform: translateX(12px); }
.offcanvas.show .offcanvas-body > * { opacity: 1; transform: none; transition: transform 420ms var(--ease-out), opacity 420ms var(--ease-out); }
.offcanvas.show .offcanvas-body > *:nth-child(2) { transition-delay: 30ms; }
.offcanvas.show .offcanvas-body > *:nth-child(3) { transition-delay: 60ms; }
.offcanvas.show .offcanvas-body > *:nth-child(4) { transition-delay: 90ms; }
.offcanvas.show .offcanvas-body > *:nth-child(5) { transition-delay: 120ms; }
.offcanvas.show .offcanvas-body > *:nth-child(6) { transition-delay: 150ms; }
.offcanvas.show .offcanvas-body > *:nth-child(7) { transition-delay: 180ms; }
.offcanvas.show .offcanvas-body > *:nth-child(n+8) { transition-delay: 210ms; }
.offcanvas .menu-link { text-decoration: none; font-size: 1.375rem !important; font-weight: 600; }
.offcanvas .menu-link::before { display: none; }
.offcanvas .menu-link.active { color: var(--yellow) !important; }
.btn-menu .burger-icon span { transition: transform 260ms var(--ease-out), opacity 200ms var(--ease-out), width 260ms var(--ease-out); }
.btn-menu[aria-expanded="true"] .burger-icon span:first-of-type { transform: translateY(calc(var(--btn-menu-icon-height) / 2 - 1px)) rotate(45deg); width: 100%; }
.btn-menu[aria-expanded="true"] .burger-icon span:nth-of-type(2) { opacity: 0; }
.btn-menu[aria-expanded="true"] .burger-icon span:last-of-type { transform: translateY(calc(var(--btn-menu-icon-height) / -2 + 1px)) rotate(-45deg); width: 100%; }

/* ---------- Появление ---------- */
@keyframes rise-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes hero-img { from { opacity: 0; transform: translateY(18px) scale(0.98); } to { opacity: 1; transform: none; } }

.js [data-reveal] {
    opacity: 0; transform: translateY(14px); filter: blur(4px);
    transition: opacity var(--dur-enter) var(--ease-out), transform var(--dur-enter) var(--ease-out), filter var(--dur-enter) var(--ease-out);
    transition-delay: calc(var(--i, 0) * 55ms);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; filter: none; }
.js [data-load] { animation: rise-in 720ms var(--ease-out) both; animation-delay: calc(var(--i, 0) * 70ms); }
.js .hero__img[data-load] { animation-name: hero-img; animation-duration: 900ms; }

/* ---------- Меньше движения ---------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; animation-delay: 0ms !important; }
    .js [data-reveal] { transform: none; filter: none; transition: opacity 300ms linear !important; }
    .btn:active:not(:disabled) { transform: none; }
}

/* ---------- Мобильные правки ---------- */
.hero__title mark { display: inline-block; margin-top: .12em; line-height: 1.12; }
@media (max-width: 991.98px) {
    .stats { margin-top: 1.25rem; }
    .hero { padding-bottom: 0; }
}
@media (max-width: 575.98px) {
    header.site-header .logo { width: 9.25rem; }
    .header-phone { font-size: .9375rem; }
    header.site-header .container-xxl { column-gap: .5rem !important; }
    .btn-menu { --btn-menu-icon-width: 1.75rem; --btn-menu-icon-height: 1.25rem; }
    .hero__title mark { white-space: normal; }
    .hero__chips .chip { font-size: .875rem; }
    .section-head--row { align-items: flex-start; flex-direction: column; gap: .75rem; }
    .cta-card, .banner { border-radius: var(--radius-lg); }
    .svc-facts { padding: 1.5rem; }
    .case-block { grid-template-columns: 1fr; }
    .case-block::before { display: none; }
    .case-result { position: static; }
}
@media (max-width: 1199.98px) { .case-result { position: static; } }

/* ---------- Cookie: компактная карточка слева внизу ---------- */
.cookie-bar {
    position: fixed; left: 1.25rem; bottom: 1.25rem; z-index: 1040;
    display: flex; align-items: center; gap: .875rem;
    max-width: 27rem; padding: .875rem .875rem .875rem 1rem;
    background: rgba(11, 42, 28, .96); color: rgba(255, 255, 255, .88);
    border: 1px solid rgba(255, 255, 255, .1); border-radius: 1rem;
    box-shadow: var(--shadow-lg); backdrop-filter: blur(8px);
    opacity: 0; transform: translateY(12px);
    transition: opacity 260ms var(--ease-out), transform 260ms var(--ease-out);
}
.cookie-bar[hidden] { display: none; }
.cookie-bar.is-open { opacity: 1; transform: none; }
.cookie-bar__icon { width: 1.5rem; height: 1.5rem; flex-shrink: 0; color: var(--yellow); }
.cookie-bar__text { margin: 0; font-size: .8125rem; line-height: 1.4; }
.cookie-bar__text a { color: #fff; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .45); }
.cookie-bar__btn {
    flex-shrink: 0; border: 0; border-radius: .625rem; padding: .5rem .875rem;
    background: var(--yellow); color: var(--ink); font-weight: 600; font-size: .875rem; line-height: 1.2;
    transition: transform var(--dur-press) var(--ease-out), background-color var(--dur-ui) var(--ease-out);
}
.cookie-bar__btn:active { transform: scale(0.96); }
@media (hover: hover) and (pointer: fine) { .cookie-bar__btn:hover { background: #ffcd39; } }
/* Телефон: узкая полоска снизу, правый угол свободен под кнопку чата */
@media (max-width: 575.98px) {
    .cookie-bar { left: .75rem; right: 5rem; bottom: calc(.75rem + env(safe-area-inset-bottom, 0px)); max-width: none; gap: .625rem; padding: .625rem .625rem .625rem .75rem; border-radius: .875rem; }
    .cookie-bar__icon { display: none; }
    .cookie-bar__text { font-size: .75rem; line-height: 1.35; }
    .cookie-bar__btn { padding: .5rem .75rem; font-size: .8125rem; }
}
