/* ============================================================
   Лоск Омск — основные стили (критический CSS — в blocks/critical-css.php)
   ============================================================ */

html { scroll-padding-top: 90px; }
body { font-size: 16px; }
body.modal-open { overflow: hidden; }

::selection { background: rgba(39, 174, 96, .2); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 8px;
    z-index: 400;
    padding: 10px 16px;
    border-radius: 6px;
    background: var(--accent);
    color: #fff;
    font-weight: 600;
}
.skip-link:focus { left: 8px; }

/* ---------- Типографика ---------- */
p { margin: 0 0 1em; }
h3 { font-size: 20px; }
h4 { font-size: 16px; }
strong { font-weight: 700; }

.tag {
    display: inline-block;
    margin: 0 0 10px;
    background: var(--grad-orange);
    -webkit-background-clip: text;
    background-clip: text;
    color: var(--accent-2);
    -webkit-text-fill-color: transparent;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.section + .section,
.section--soft + .section,
.hero + .section { padding-top: clamp(40px, 5vw, 72px); }
.section.section--soft { padding-top: clamp(40px, 5vw, 72px) !important; }
.section + .section--soft { margin-top: clamp(20px, 2.5vw, 32px); }
.section-head h2 { margin-bottom: .4em; font-weight: 700; }
.section-head p { max-width: 720px; font-size: 16px; }

/* ---------- Кнопки ---------- */
.btn:focus-visible { outline: 2px solid var(--accent-dark); outline-offset: 2px; }
.btn:disabled { opacity: .6; cursor: default; }
.btn--accent {
    background: var(--grad-orange);
    color: #fff;
}
.btn--accent:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn--max {
    background: var(--grad-max);
    color: #fff;
    box-shadow: 0 8px 24px rgba(75, 90, 230, .32);
}
.btn--max:hover { filter: brightness(1.08); transform: translateY(-1px); box-shadow: 0 12px 30px rgba(75, 90, 230, .4); }

/* ---------- Сетка карточек (контракт TECH.md §4) ---------- */
.cards {
    display: flex;
    flex-wrap: wrap;
    gap: var(--grid-gap);
    align-items: stretch;
}
.cards > * {
    flex: 1 1 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
}
.card {
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: var(--card-pad);
    border: 1px solid var(--border);
    border-radius: var(--card-radius);
    background: #fff;
    box-shadow: var(--shadow);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card h3 { margin: 0 0 8px; font-size: 19px; font-weight: 600; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

@media (hover: hover) and (pointer: fine) {
    .card:hover {
        transform: translateY(-4px);
        border-color: rgba(39, 174, 96, .45);
        box-shadow: 0 16px 36px rgba(0, 0, 0, .11);
    }
}

/* ---------- Шапка ---------- */
.header__social:hover { background: rgba(39, 174, 96, .14); }
.header__cta { white-space: nowrap; }
.header.is-scrolled { background: #fff; }

.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 250;
    overflow-y: auto;
    padding: 20px 16px 32px;
    background: #fff;
}
.mobile-menu__inner { display: flex; flex-direction: column; gap: 22px; min-height: 100%; }
.mobile-menu__close {
    align-self: flex-end;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-soft);
    font-size: 24px;
    line-height: 1;
}
.mobile-menu__nav { display: flex; flex-direction: column; }
.mobile-menu__nav a {
    padding: 11px 0;
    border-bottom: 1px solid var(--border);
    font-size: 18px;
    font-weight: 600;
}
.mobile-menu__contact { display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.mobile-menu__contact a:first-child { font-size: 20px; font-weight: 700; color: var(--accent-dark); }
.mobile-menu__socials { display: flex; gap: 18px; font-size: 14px; color: var(--accent-dark); }
body.menu-open { overflow: hidden; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero::before,
.hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}
.hero::before {
    width: 420px;
    height: 420px;
    right: -140px;
    top: -180px;
    background: radial-gradient(circle, rgba(39, 174, 96, .12), transparent 65%);
}
.hero::after {
    width: 320px;
    height: 320px;
    left: -140px;
    bottom: -160px;
    background: radial-gradient(circle, rgba(39, 174, 96, .08), transparent 65%);
}
.hero__inner { position: relative; z-index: 1; }
.hero__photo img { box-shadow: 0 24px 60px rgba(20, 60, 35, .14); }
.hero__title-accent {
    background: var(--grad-green-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: var(--accent-dark);
    -webkit-text-fill-color: transparent;
}
.hero__avatars { display: flex; flex-shrink: 0; }
.hero__avatars span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin-left: -9px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}
.hero__avatars span:first-child { margin-left: 0; }
.hero__rating { display: flex; flex-direction: column; font-size: 12px; color: var(--muted); }
.hero__rating strong { font-size: 22px; line-height: 1.1; color: var(--text); }

/* ---------- Ситуации ---------- */
.situation-card { position: relative; overflow: hidden; min-height: 170px; }
.situation-card::before {
    content: attr(data-num);
    position: absolute;
    right: 12px;
    top: 2px;
    color: rgba(39, 174, 96, .09);
    font-size: 64px;
    font-weight: 700;
    line-height: 1;
    transform-origin: right center;
    transition: transform .5s ease, opacity .5s ease;
}
.situation-card h3 { position: relative; padding-right: 36px; }

@media (hover: hover) and (pointer: fine) {
    .situation-card:hover::before {
        transform: translate(12px, -18px) scale(1.6) rotate(-30deg);
        opacity: .15;
    }
    .situation-card:hover h3 { color: var(--accent-dark); }
}

/* ---------- Специализация ---------- */
.specialty { display: flex; flex-direction: column; gap: clamp(40px, 5vw, 72px); }
.specialty__block {
    display: grid;
    grid-template-columns: 3fr 2fr;
    grid-template-areas:
        "media body"
        "list list";
    gap: 28px clamp(24px, 3vw, 40px);
    align-items: start;
}
.specialty__block--reverse {
    grid-template-columns: 2fr 3fr;
    grid-template-areas:
        "body media"
        "list list";
}
.specialty__media { grid-area: media; display: flex; min-width: 0; }
.specialty__cover { display: flex; flex: 1; width: 100%; }
.specialty__cover img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 16px;
}
.specialty__body { grid-area: body; display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.specialty__title { margin: 0 0 8px; font-size: clamp(26px, 2.6vw, 34px); font-weight: 700; color: var(--accent-dark); }
.specialty__desc { margin: 0 0 12px; color: var(--text); font-size: 15px; font-weight: 500; }
.specialty__seo { margin: 0 0 10px; color: var(--muted); font-size: 14px; line-height: 1.65; }
.specialty__note { margin: 6px 0 14px; color: var(--muted); font-size: 13px; }
.specialty__body > .btn { margin-top: 0; }
.specialty__list {
    grid-area: list;
    display: grid;
    gap: 12px;
    width: 100%;
    margin: 0;
    padding-top: 18px;
    border-top: 1px solid var(--border);
}
.specialty__list--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.specialty__list--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.specialty__item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    min-height: 150px;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fff;
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.specialty__item > img { width: 100%; height: 100%; min-height: 150px; object-fit: cover; border-radius: 0; }
.specialty__item-body { display: flex; flex-direction: column; justify-content: center; gap: 5px; min-width: 0; padding: 12px; }
.specialty__item-head { display: flex; flex-direction: column; gap: 1px; }
.specialty__item-head strong { font-size: 14px; font-weight: 600; }
.specialty__item-price { color: var(--accent-2); font-size: 13px; font-weight: 700; white-space: nowrap; }
.specialty__item .btn { height: 28px; padding: 0 8px; font-size: 11px; align-self: flex-start; }

@media (hover: hover) and (pointer: fine) {
    .specialty__item:hover {
        transform: translateY(-2px);
        border-color: rgba(39, 174, 96, .45);
        box-shadow: 0 8px 20px rgba(0, 0, 0, .08);
    }
}

/* ---------- Загрязнения ---------- */
.dirt-card { min-height: 132px; }
.dirt-card h3 { font-size: 17px; }

.dirt-cta {
    display: grid;
    grid-template-columns: .75fr 1.25fr;
    gap: 24px;
    align-items: center;
    margin-top: var(--grid-gap);
    padding: 26px;
    border: 0;
    background: var(--grad-orange);
    color: #fff;
}
.dirt-cta h3 { margin: 0 0 8px; color: #fff; font-size: 24px; }
.dirt-cta p { margin: 0; color: rgba(255, 255, 255, .9); font-size: 15px; }
.dirt-cta .form-field__label { color: rgba(255, 255, 255, .85); }
.dirt-cta .form-input { border-color: rgba(255, 255, 255, .55); background: rgba(255, 255, 255, .97); }
.dirt-cta .checkbox { color: rgba(255, 255, 255, .92); }
.dirt-cta .checkbox a { color: #fff; }
.dirt-cta .btn { background: #fff; color: var(--accent-dark); }
.dirt-cta .form-status { color: #fff; }
.form.form--dirt { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; align-items: start; }
.form.form--dirt .checkbox--wide,
.form.form--dirt .btn,
.form.form--dirt .form-status { grid-column: 1 / -1; }
.form.form--dirt .btn { justify-self: start; }

/* ---------- Кейс ---------- */
.case {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr) 38%;
    gap: 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--shadow);
}
.case__body { min-width: 0; padding: 22px 24px; }
.case__tabs { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 22px 0 22px 22px; }
.case__tabs::before {
    content: '';
    position: absolute;
    left: 31px;
    top: 34px;
    bottom: 34px;
    width: 2px;
    background: var(--border);
}
.case__tab {
    position: relative;
    z-index: 1;
    padding: 10px 12px 10px 30px;
    border-radius: 8px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 500;
    text-align: left;
    transition: transform .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}
.case__tab::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 50%;
    width: 8px;
    height: 8px;
    margin-top: -4px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #C9D6CD;
    transition: background .2s ease, transform .2s ease;
}
.case__tab:hover { color: var(--accent-dark); transform: translateX(3px); }
.case__tab:hover::before { background: var(--accent-2); }
.case__tab.is-active {
    background: var(--grad-green);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(39, 174, 96, .25);
    transform: translateX(4px);
}
.case__tab.is-active::before { background: var(--accent-2); transform: scale(1.25); }
.case__step { display: inline-block; margin-bottom: 8px; color: var(--accent); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.case__panel h3 { margin: 0 0 10px; font-size: 22px; }
.case__panel p { color: var(--muted); font-size: 14px; }
.case__quote { margin: 16px 0 0; padding: 12px 16px; border-left: 3px solid var(--accent); background: var(--bg-soft); color: var(--muted); font-size: 13px; font-style: italic; }
.case__media { min-height: 100%; }
.case__media img { display: block; width: 100%; height: 100%; min-height: 320px; border-radius: 0; object-fit: cover; }
.case__actions { margin-top: 20px; }

/* ---------- Галерея до/после ---------- */
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.juxtapose {
    position: relative;
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
}
.juxtapose__frame { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.juxtapose__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.juxtapose__img--after { clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0); }
.juxtapose__frame::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--pos, 50%);
    z-index: 2;
    width: 2px;
    margin-left: -1px;
    background: #fff;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .18);
}
.juxtapose__range {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 3;
    width: 100%;
    height: calc(100% - 36px);
    margin: 0;
    opacity: 0;
    cursor: ew-resize;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
}
.juxtapose__range::-webkit-slider-thumb { -webkit-appearance: none; width: 44px; height: 100%; }
.juxtapose__range::-moz-range-thumb { width: 44px; height: 100%; border: 0; background: transparent; }
.juxtapose:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.juxtapose__label {
    position: absolute;
    top: 10px;
    z-index: 4;
    padding: 3px 9px;
    border-radius: 20px;
    background: rgba(0, 0, 0, .55);
    color: #fff;
    font-size: 11px;
    pointer-events: none;
}
.juxtapose__label--before { left: 10px; }
.juxtapose__label--after { right: 10px; }
.juxtapose figcaption { padding: 9px 12px; color: var(--muted); font-size: 12px; }
.juxtapose.is-hidden { display: none; }
.gallery__more-wrap { margin-top: 22px; text-align: center; }

/* ---------- Портфолио: пары миниатюр ---------- */
.album {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}
.album__pair {
    position: relative;
    z-index: 1;
    display: flex;
    flex: 0 1 100%;
    gap: 10px;
    min-width: 0;
    margin: 0;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
    box-shadow: var(--shadow);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.album__item {
    position: relative;
    display: block;
    flex: 1 1 0;
    min-width: 0;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 8px;
    background: var(--bg-soft);
    cursor: zoom-in;
}
.album__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter .25s ease;
}
.album__badge {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;
    padding: 3px 9px;
    border-radius: 20px;
    background: rgba(0, 0, 0, .55);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.4;
    pointer-events: none;
}
.album__badge--after { background: var(--accent-dark); }
.album__pair:focus-within { z-index: 3; }

@media (hover: hover) and (pointer: fine) {
    .album__pair:hover {
        z-index: 3;
        transform: scale(1.1);
        border-color: rgba(44, 140, 61, .45);
        box-shadow: 0 18px 44px rgba(0, 0, 0, .18);
    }
    .album__pair:hover .album__item img { filter: brightness(1.03); }
}

/* ---------- Лайтбокс фотогалереи ---------- */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 600;
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: none;
    margin: 0;
    padding: 24px;
    border: 0;
    background: transparent;
    color: #fff;
    overflow: hidden;
}
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox::backdrop { background: rgba(8, 20, 12, .92); }
.lightbox__figure {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    max-width: 100%;
    max-height: 100%;
    margin: 0;
}
.lightbox__img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: calc(100vh - 130px);
    border-radius: 10px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
    object-fit: contain;
}
.lightbox__caption {
    max-width: 720px;
    color: rgba(255, 255, 255, .82);
    font-size: 14px;
    text-align: center;
}
.lightbox__close {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    font-size: 26px;
    line-height: 1;
    transition: background .2s ease;
}
.lightbox__close:hover { background: rgba(255, 255, 255, .24); }
.lightbox__nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    font-size: 26px;
    line-height: 1;
    transform: translateY(-50%);
    transition: background .2s ease;
}
.lightbox__nav:hover { background: rgba(255, 255, 255, .24); }
.lightbox__nav--prev { left: 18px; }
.lightbox__nav--next { right: 18px; }
.lightbox__nav[disabled] { display: none; }

/* ---------- Безопасность ---------- */
.safety__products {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 24px;
    align-items: center;
    margin-bottom: var(--grid-gap);
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--shadow);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.safety__products h3 { margin: 0 0 8px; font-size: 24px; color: var(--accent-dark); }
.safety__products p { margin: 0; color: var(--muted); font-size: 15px; }
.brands { display: flex; flex-wrap: wrap; gap: 8px; }
.brand {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 12px;
    border: 1px solid rgba(246, 118, 21, .55);
    border-radius: 30px;
    background: rgba(246, 118, 21, .06);
    color: var(--accent-2);
    font-size: 14px;
    font-weight: 500;
    transition: border-color .2s ease, color .2s ease, background .2s ease;
}
.brand__flag { font-size: 16px; line-height: 1; }
.safety__cards .card { min-height: 190px; }

@media (hover: hover) and (pointer: fine) {
    .safety__products:hover {
        transform: translateY(-3px);
        border-color: rgba(39, 174, 96, .4);
        box-shadow: 0 16px 36px rgba(0, 0, 0, .1);
    }
    .brand:hover {
        border-color: var(--accent-2);
        background: rgba(246, 118, 21, .12);
        color: var(--accent-2);
    }
    .chip:hover {
        border-color: rgba(246, 118, 21, .55);
        color: var(--accent-2);
    }
}

/* ---------- Процесс ---------- */
.process { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; align-items: start; }
.process__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.process__item {
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
    box-shadow: var(--shadow);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.process__num { display: block; margin-bottom: 6px; color: var(--accent); font-size: 32px; font-weight: 700; line-height: 1; }
.process__item h3 { margin: 0 0 6px; font-size: 19px; }
.process__item p { margin: 0; color: var(--muted); font-size: 14px; }
.process__photo img { width: 100%; border-radius: 16px; box-shadow: var(--shadow); }

@media (hover: hover) and (pointer: fine) {
    .process__item:hover {
        transform: translateY(-3px);
        border-color: rgba(39, 174, 96, .45);
        box-shadow: 0 14px 30px rgba(0, 0, 0, .1);
    }
}

/* ---------- B2B ---------- */
.b2b-card { min-height: 170px; }
.b2b-card--cta { background: var(--accent); color: #fff; }
.b2b-card--cta h3 { color: #fff; }
.b2b-card--cta p { color: rgba(255, 255, 255, .85); }
.b2b-card--cta .btn { margin-top: auto; align-self: flex-start; background: #fff; color: var(--accent-dark); }
.logos {
    margin-top: 28px;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.logos__track { display: flex; gap: 36px; width: max-content; animation: logos-marquee 28s linear infinite; }
.logos__item {
    padding: 10px 18px;
    border: 1px dashed var(--border);
    border-radius: 8px;
    color: var(--muted);
    font-size: 13px;
    white-space: nowrap;
}
@keyframes logos-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Отзывы ---------- */
.reviews__ratings { display: flex; gap: 26px; margin-bottom: 16px; color: var(--muted); font-size: 13px; }
.reviews__ratings strong { color: var(--accent-dark); font-size: 24px; line-height: 1; }
.reviews__wrap { position: relative; }
.reviews__slider {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding: 4px 2px 16px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
}
.review-card {
    flex: 0 0 320px;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
    box-shadow: var(--shadow);
    scroll-snap-align: start;
}
.review-card__head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.review-card__avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(39, 174, 96, .14);
    color: var(--accent-dark);
    font-weight: 700;
}
.review-card__head div { display: flex; flex-direction: column; }
.review-card__head strong { font-size: 14px; }
.review-card__head div span { color: var(--muted); font-size: 11px; }
.review-card__stars { margin-left: auto; color: #F5A623; font-size: 12px; letter-spacing: 1px; }
.review-card p { margin: 0; color: var(--muted); font-size: 13px; }
.reviews__nav {
    position: absolute;
    top: 50%;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-top: -20px;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: #fff;
    box-shadow: var(--shadow);
    font-size: 18px;
    color: var(--accent-dark);
}
.reviews__nav--prev { left: -10px; }
.reviews__nav--next { right: -10px; }
.reviews__nav:hover { background: var(--accent); color: #fff; }

/* ---------- FAQ ---------- */
.faq { max-width: 900px; }
.faq__item { border-bottom: 1px solid var(--border); }
.faq__heading { margin: 0; font-size: 16px; }
.faq__button {
    position: relative;
    width: 100%;
    padding: 17px 42px 17px 0;
    font-size: 16px;
    font-weight: 600;
    text-align: left;
}
.faq__button::after {
    content: '+';
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent);
    font-size: 24px;
    font-weight: 400;
    line-height: 1;
}
.faq__button[aria-expanded="true"]::after { content: '−'; }
.faq__button:hover { color: var(--accent-dark); }
.faq__panel { padding: 0 42px 16px 0; color: var(--muted); font-size: 14px; }
.faq__panel p { margin: 0; }

/* ---------- Подвал ---------- */
.footer {
    padding-top: clamp(32px, 4vw, 56px);
    border-top: 1px solid rgba(255, 255, 255, .14);
    background: var(--grad-green);
}
.footer__top {
    display: grid;
    grid-template-columns: 1.2fr .7fr 1.1fr;
    gap: 28px;
    padding-bottom: 32px;
}
.footer__logo { display: flex; flex-direction: column; margin-bottom: 10px; }
.footer__logo-name { color: var(--accent-dark); font-size: 22px; font-weight: 700; }
.footer__logo-role { color: var(--muted); font-size: 12px; }
.footer__desc { max-width: 320px; color: var(--muted); font-size: 13px; }
.footer__socials { display: flex; gap: 14px; font-size: 14px; color: var(--accent-dark); }
.footer__nav { display: flex; flex-direction: column; gap: 7px; font-size: 14px; }
.footer__nav a:hover { color: var(--accent-dark); }
.footer__contacts { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--muted); }
.footer__phone { color: var(--text); font-size: 19px; font-weight: 700; }
.footer__hours { font-size: 13px; }
.footer__cta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    padding: 0;
    overflow: hidden;
    border-radius: 16px;
    background: var(--grad-orange);
    color: #fff;
}
.footer__cta-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: clamp(22px, 3vw, 36px);
}
.footer__cta h2 { margin: 0 0 8px; color: #fff; font-size: clamp(22px, 2.4vw, 32px); }
.footer__cta p { margin: 0 0 18px; color: rgba(255, 255, 255, .9); font-size: 15px; }
.footer__cta-photo { min-height: 100%; }
.footer__cta-photo img { display: block; width: 100%; height: 100%; min-height: 320px; object-fit: cover; border-radius: 0; }
.footer__bottom {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
    padding: 22px 0 10px;
    color: var(--muted);
    font-size: 12px;
}
.footer__docs { display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 0 0 26px; font-size: 12px; }
.footer__docs a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.footer__docs a:hover { color: var(--accent-dark); }

/* ---------- Тёмные секции и подвал ---------- */
#dirt,
#portfolio { background: var(--grad-green); }

#dirt .section-head h2,
#portfolio .section-head h2 { color: #fff; }

#dirt .section-head p,
#portfolio .section-head p { color: rgba(255, 255, 255, .9); }

#dirt .tag,
#portfolio .tag {
    background: none;
    color: #EAF7E4;
    -webkit-text-fill-color: #EAF7E4;
}

#dirt .dirt-cta,
.footer__cta { border: 1px solid rgba(255, 255, 255, .18); }

.footer { color: rgba(255, 255, 255, .9); }
.footer__logo-name { color: #fff; }
.footer__logo-role { color: rgba(255, 255, 255, .78); }
.footer__desc { color: rgba(255, 255, 255, .88); }
.footer__socials { color: #EAF7E4; }
.footer__nav a:hover { color: #fff; }
.footer__contacts { color: rgba(255, 255, 255, .88); }
.footer__phone { color: #fff; }
.footer__bottom { color: rgba(255, 255, 255, .72); }
.footer__docs a { color: rgba(255, 255, 255, .78); }
.footer__docs a:hover { color: #fff; }

/* ---------- Формы ---------- */
.form { display: flex; flex-direction: column; gap: 13px; }
.form--inline { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; align-items: start; }
.form--compact { gap: 8px; }
.form-field { display: flex; flex-direction: column; gap: 4px; }
.form-field--wide { grid-column: 1 / -1; }
.form-field__label { color: var(--muted); font-size: 12px; }
.form-input {
    width: 100%;
    height: 46px;
    padding: 0 13px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    color: var(--text);
    font-size: 15px;
    transition: border-color .2s ease, box-shadow .2s ease;
}
textarea.form-input { height: auto; min-height: 64px; padding: 11px 13px; resize: vertical; }
.form-input::placeholder { color: #A9A9A9; }
.form-input:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px rgba(39, 174, 96, .14); }
.form-input[aria-invalid="true"] { border-color: #D64545; }
.form-field__error { color: #D64545; font-size: 11px; }
.checkbox { display: flex; align-items: flex-start; gap: 9px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.checkbox--wide { grid-column: 1 / -1; }
.checkbox input { width: 17px; height: 17px; margin: 1px 0 0; flex-shrink: 0; accent-color: var(--accent); }
.checkbox a { color: var(--accent-dark); text-decoration: underline; }
.form-status { font-size: 13px; }
.form-status.is-success { color: var(--accent-dark); }
.form-status.is-error { color: #D64545; }
.form--inline .btn { justify-self: start; }
.form--inline .form-status { grid-column: 1 / -1; }

/* ---------- Модальные окна ---------- */
.modal {
    position: fixed;
    inset: 0;
    z-index: 500;
    width: calc(100% - 32px);
    max-width: 500px;
    max-height: calc(100vh - 40px);
    margin: auto;
    padding: 0;
    border: 0;
    border-radius: 16px;
    background: transparent;
    overflow: visible;
}
.modal::backdrop { background: rgba(12, 30, 20, .55); }
.modal__inner {
    position: relative;
    max-height: calc(100vh - 40px);
    padding: 30px;
    overflow-y: auto;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .25);
}
.modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-soft);
    font-size: 22px;
    line-height: 1;
}
.modal__close:hover { background: #E8E8E8; }
.modal__title { margin: 0 0 6px; padding-right: 36px; font-size: 24px; }
.modal__subtitle { margin: 0 0 18px; color: var(--muted); font-size: 14px; }
.modal__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.modal--success .modal__inner { text-align: center; }
.modal--success .modal__title { padding-right: 0; }
.modal--success .js-form-success { margin: 0 0 18px; color: var(--muted); font-size: 14px; }

/* ---------- Кнопка наверх ---------- */
.scroll-up {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 90;
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 8px 24px rgba(39, 174, 96, .35);
    color: #fff;
    font-size: 19px;
}
.scroll-up.is-visible { display: flex; }
.scroll-up:hover { background: var(--accent-dark); }

/* ---------- Крошки и страницы документов ---------- */
.breadcrumbs { padding: 16px 0 0; color: var(--muted); font-size: 12px; }
.breadcrumbs__list { display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumbs__item:not(:last-child)::after { content: '/'; margin-left: 6px; color: #BDBDBD; }
.breadcrumbs__item a:hover { color: var(--accent-dark); }
.doc-page__content h2 { margin: 28px 0 10px; font-size: 22px; }
.doc-page__content h3 { margin: 22px 0 8px; font-size: 18px; }
.doc-page__content p,
.doc-page__content li { color: #4A4A4A; font-size: 14px; }
.doc-page__content ul { margin: 10px 0 16px; padding-left: 20px; list-style: disc; }
.doc-page__content a { color: var(--accent-dark); text-decoration: underline; }
.doc-page__content table { width: 100%; margin: 14px 0; border-collapse: collapse; font-size: 13px; }
.doc-page__content th,
.doc-page__content td { padding: 8px; border: 1px solid var(--border); text-align: left; vertical-align: top; }

/* ---------- Ссылка-заглушка (только маркер, без визуального шума) ---------- */
.is-placeholder { cursor: default; }

/* ---------- Анимации появления ---------- */
.animate { opacity: 0; transform: translateY(12px); transition: opacity .45s ease, transform .45s ease; }
.animate.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
    .animate { opacity: 1; transform: none; }
    .logos__track { animation: none; }
}
