/* Стили сайта (дизайн перенесён с 4ist.ru). Единственный CSS-файл страниц,
   кроме 404 - у неё свой style404.css. */

@font-face {
    font-family: 'Manrope';
    src: url('../font/manrope/Manrope-Regular.woff2') format('woff2'),
        url('../font/manrope/Manrope-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Manrope';
    src: url('../font/manrope/Manrope-Medium.woff2') format('woff2'),
        url('../font/manrope/Manrope-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Manrope';
    src: url('../font/manrope/Manrope-Semibold.woff2') format('woff2'),
        url('../font/manrope/Manrope-Semibold.woff') format('woff');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Manrope';
    src: url('../font/manrope/Manrope-Bold.woff2') format('woff2'),
        url('../font/manrope/Manrope-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Manrope';
    src: url('../font/manrope/Manrope-ExtraBold.woff2') format('woff2'),
        url('../font/manrope/Manrope-ExtraBold.woff') format('woff');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Marck Script';
    src: url('../font/marck-script/MarckScript-Regular.woff2') format('woff2'),
        url('../font/marck-script/MarckScript-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

:root {
    --c-primary: #2E8F2F;
    --c-primary-dark: #1F6325;
    /* фон страницы: им же закрашены «вырезы» купона и билета в «Оплате»
       и круглые выемки на плашках */
    --c-page: #FAFBF9;
}

* {
    margin: 0;
    padding: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

ul,
ol {
    list-style: none;
}

/* position: relative - от body отсчитывается боковая лента на всю страницу */
body {
    font-family: 'Manrope', sans-serif;
    font-size: 16px;
    position: relative;
    font-weight: 400;
    min-height: 100vh;
    line-height: 1.4;
    display: flex;
    flex-direction: column;
    color: #1A2B1C;
    background-color: var(--c-page);
}

@media (max-width: 600px) {
    body {
        font-size: 14px;
    }
}

input,
button {
    font-size: inherit;
    font-family: inherit;
    background-color: unset;
    border: none;
    outline: none;
}

.hidden {
    display: none;
}

/* элемент, к которому увела прокрутка по data-anchor, получает tabindex="-1",
   чтобы за экраном шёл и фокус; рамка вокруг целой секции при этом не нужна */
[tabindex="-1"]:focus {
    outline: none;
}

.body-block {
    overflow: hidden;
}

.section-pt {
    padding-top: 80px;
}

.section-pb {
    padding-bottom: 80px;
}

.section-title {
    font-size: 40px;
    font-weight: 800;
    transform-origin: left center;
}

@media (max-width: 600px) {
    .section-pt {
        padding-top: 60px;
    }

    .section-pb {
        padding-bottom: 60px;
    }

    .section-title {
        font-size: 28px;
    }
}

.wrapper {
    max-width: 1190px;
    padding-left: 20px;
    padding-right: 20px;
    margin-left: auto;
    margin-right: auto;
}

/* ---------- Боковая сигнальная лента ---------- */

/* Шаг паттерна у наклона -45deg по вертикали такой же, как по горизонтали:
   16px / cos 45° = 22.6274px, значит 226.274px - ровно 10 шагов. Плитка
   кратна шагу, поэтому сдвиг на одну плитку замыкает цикл без шва.
   z-index выше шапки (10), иначе её фон в состоянии is-stuck перекрывал бы
   ленту при скролле. */
.sidetape {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 11;
    width: 10px;
    pointer-events: none;
    background-image: repeating-linear-gradient(-45deg,
            transparent 0 8px,
            var(--c-primary) 8px 16px);
    background-size: 100% 226.274px;
    animation: sidetape-run 6s linear infinite;
}

/* позиция по Y растёт - рисунок едет сверху вниз */
@keyframes sidetape-run {
    to {
        background-position: 0 226.274px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sidetape {
        animation: none;
    }
}

@media (max-width: 767px) {
    .sidetape {
        width: 5px;
    }
}

/* ---------- Кнопка ---------- */

.main-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 60px;
    padding-left: 20px;
    padding-right: 20px;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    background-color: var(--c-primary);
    border-radius: 100px;
    cursor: pointer;
    transition: background-color .18s;
}

.main-btn:hover {
    background-color: var(--c-primary-dark);
}

.main-btn__text {
    flex-grow: 1;
}

.main-btn__append {
    /* цвета жидкости, переливающейся внутри круга */
    --append-base: #fff;
    --append-wave-1: #A8D9AC;
    --append-wave-2: #BEE7DC;
    --append-wave-3: #fff;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-right: -11px;
    margin-left: 12px;
    border-radius: 100px;
    background-color: var(--append-base);
    color: var(--c-primary);
    overflow: hidden;
    transition: transform .18s;
}

/* нижний слой: три пятна ходят каждое по своей траектории, поэтому "жидкость" не выглядит вращающейся картинкой */
.main-btn__append::before {
    content: '';
    position: absolute;
    inset: -60%;
    background-color: var(--append-base);
    background-image:
        radial-gradient(circle at 50% 50%, var(--append-wave-1), transparent 70%),
        radial-gradient(circle at 50% 50%, var(--append-wave-2), transparent 70%),
        radial-gradient(circle at 50% 50%, var(--append-wave-1), transparent 66%);
    background-size: 58% 58%, 48% 48%, 38% 38%;
    background-repeat: no-repeat;
    opacity: .75;
    filter: blur(1.5px);
    animation: append-flow 3.6s ease-in-out infinite;
}

/* верхний слой: светлый блик, плывущий поперёк, добавляет объём */
.main-btn__append::after {
    content: '';
    position: absolute;
    inset: -60%;
    background-image:
        radial-gradient(circle at 50% 50%, var(--append-wave-3), transparent 68%),
        radial-gradient(circle at 50% 50%, var(--append-wave-2), transparent 64%);
    background-size: 52% 52%, 40% 40%;
    background-repeat: no-repeat;
    opacity: .7;
    filter: blur(2px);
    animation: append-flow-light 5.2s ease-in-out infinite;
}

/* пятна одновременно едут и меняют размер - за счёт этого масса "переливается", а не просто ездит */
@keyframes append-flow {
    0%,
    100% {
        background-position: 8% 16%, 84% 74%, 52% 94%;
        background-size: 60% 60%, 46% 46%, 36% 36%;
    }

    22% {
        background-position: 72% 4%, 14% 86%, 6% 40%;
        background-size: 80% 80%, 34% 34%, 52% 52%;
    }

    44% {
        background-position: 94% 70%, 38% 10%, 78% 8%;
        background-size: 46% 46%, 66% 66%, 28% 28%;
    }

    66% {
        background-position: 28% 94%, 86% 26%, 14% 72%;
        background-size: 70% 70%, 40% 40%, 48% 48%;
    }

    88% {
        background-position: 54% 44%, 10% 58%, 90% 50%;
        background-size: 52% 52%, 56% 56%, 34% 34%;
    }
}

@keyframes append-flow-light {
    0%,
    100% {
        background-position: 78% 84%, 18% 24%;
        background-size: 52% 52%, 40% 40%;
        transform: rotate(0deg);
    }

    25% {
        background-position: 14% 60%, 88% 84%;
        background-size: 68% 68%, 28% 28%;
        transform: rotate(90deg);
    }

    50% {
        background-position: 62% 8%, 34% 70%;
        background-size: 40% 40%, 54% 54%;
        transform: rotate(180deg);
    }

    75% {
        background-position: 90% 40%, 24% 12%;
        background-size: 60% 60%, 36% 36%;
        transform: rotate(270deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .main-btn__append::before,
    .main-btn__append::after {
        animation: none;
    }
}

.main-btn:hover .main-btn__append {
    transform: scale(1.12);
}

.main-btn__append svg {
    position: relative;
    z-index: 1;
    display: block;
}

/* кнопка во всю ширину родителя - для узкой колонки и мобильных */
.main-btn--wide {
    display: flex;
    width: 100%;
    box-sizing: border-box;
}

/* белая кнопка - на зелёной плашке */
.main-btn--white {
    background-color: #fff;
    color: var(--c-primary);
}

.main-btn--white:hover {
    background-color: #EEF6EE;
}

.main-btn--white .main-btn__append {
    --append-base: var(--c-primary);
    --append-wave-1: #55B857;
    --append-wave-2: #1C6B25;
    --append-wave-3: #7ACB7C;
    color: #fff;
}

@media (max-width: 600px) {
    .main-btn {
        height: 54px;
        font-size: 16px;
    }
}

/* ---------- Шапка ---------- */

.header {
    position: sticky;
    top: 0;
    z-index: 10;
    padding-top: 16px;
    padding-bottom: 16px;
    transition: background-color .25s;
}

/* класс вешает скрипт, как только страница прокручена от самого верха */
.header.is-stuck {
    background-color: rgba(255, 255, 255, .98);
}

.header__logo img {
    display: block;
    width: auto;
    height: 44px;
}

.header__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header__center {
    display: flex;
    align-items: center;
    font-weight: 500;
    padding-left: 20px;
    padding-right: 20px;
    height: 60px;
    border-radius: 100px;
    background-color: #EEF6EE;
    border: 1px solid #CBE3CB;
}

.header__menu {
    display: flex;
    padding-right: 16px;
    border-right: 1px solid currentColor;
}

.header__menu > li:not(:first-child) {
    margin-left: 16px;
}

/* Ховер пунктов меню: надпись уезжает вверх, снизу на её место встаёт зелёный
   двойник. Двойник рисует ::after из data-text, поэтому в разметке текст не
   дублируется, а сам пункт не меняет размеров - соседи не дёргаются.

   Только для мыши и только на десктопной раскладке: на тапе ховер залипает,
   а с 1024px меню уходит в выпадашку, где у пункта своя высота с паддингами. */
@media (hover: hover) and (min-width: 1025px) {
    .header__menu > li {
        display: flex;
        overflow: hidden;
    }

    .header__menu > li > a {
        position: relative;
        display: block;
        transition: transform .26s cubic-bezier(.34, 1.25, .64, 1);
    }

    /* двойник стоит ровно на высоту пункта ниже - после сдвига встаёт на его место */
    .header__menu > li > a::after {
        content: attr(data-text);
        position: absolute;
        left: 0;
        top: 100%;
        width: 100%;
        color: var(--c-primary);
    }

    /* ховер держим на li: сам пункт уезжает, а область наведения остаётся на месте */
    .header__menu > li:hover > a,
    .header__menu > li > a:focus-visible {
        transform: translateY(-100%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .header__menu a {
        transition: none;
    }
}

.header__call {
    display: flex;
    align-items: center;
    margin-left: 16px;
    color: var(--c-primary);
    font-weight: 700;
}

.header__call svg {
    display: block;
    flex-shrink: 0;
    margin-right: 8px;
}

.header__burger {
    display: none;
    align-items: center;
    height: 44px;
    padding-left: 12px;
    padding-right: 16px;
    border-radius: 100px;
    background-color: #EEF6EE;
    border: 1px solid #CBE3CB;
    color: var(--c-primary);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.header__burger_icon {
    display: block;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-right: 6px;
}

.header__burger_icon--close,
.header.is-open .header__burger_icon {
    display: none;
}

.header.is-open .header__burger_icon--close {
    display: block;
}

@media (max-width: 1024px) {
    .header__burger {
        display: inline-flex;
    }

    .header__btn {
        display: none;
    }

    /* пилюля распадается: телефон остаётся в строке, меню уезжает в выпадашку */
    .header__center {
        display: contents;
    }

    .header__menu {
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        /* проценты здесь считаются от высоты шапки — остаётся ровно остаток экрана */
        height: calc(100vh - 100%);
        height: calc(100dvh - 100%);
        display: block;
        padding: 8px 20px 24px;
        border: none;
        border-radius: 0;
        background-color: #fff;
        font-weight: 500;
        overflow-y: auto;
        opacity: 0;
        visibility: hidden;
        transition: opacity .18s, visibility .18s;
    }

    /* с открытым меню шапка получает тот же фон — экран читается как один лист */
    .header.is-open {
        background-color: #fff;
    }

    .header.is-open .header__menu {
        opacity: 1;
        visibility: visible;
    }

    .header__menu > li:not(:first-child) {
        margin-left: 0;
        border-top: 1px solid #CBE3CB;
    }

    .header__menu > li > a {
        display: block;
        padding: 14px 0;
    }

    .header__call {
        margin-left: auto;
        margin-right: 16px;
    }
}

@media (max-width: 600px) {
    .header__logo img {
        height: 38px;
    }

    .header__call {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .wrapper {
        padding-left: 16px;
        padding-right: 16px;
    }

    .header__menu {
        padding-left: 16px;
        padding-right: 16px;
    }

    .header__logo img {
        height: 44px;
    }

    .header__call {
        font-size: 14px;
        margin-right: 12px;
    }

    .header__burger {
        height: 40px;
        padding-left: 10px;
        padding-right: 14px;
        font-size: 14px;
    }

    .header__burger_icon {
        width: 18px;
        height: 18px;
        margin-right: 5px;
    }
}

/* ---------- Первый экран ---------- */

.hero {
    padding-top: 80px;
    overflow: hidden;
}

.hero__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero__content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    gap: 32px;
}

.hero__title {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
}

/* заливка засвета при наведении на город: цвет верхнего слоя плавно
   уходит из прозрачного в цвет засвета. Без @property (старые браузеры)
   заливка просто включается без плавности. */
@property --city-fill {
    syntax: '<color>';
    inherits: false;
    initial-value: rgba(111, 203, 85, 0);
}

.hero__title_city {
    --city-fill: rgba(111, 203, 85, 0);
    background-color: var(--c-primary);
    /* верхний слой - заливка на всю фразу (по умолчанию прозрачная),
       под ним бегущий засвет */
    background-image:
        linear-gradient(var(--city-fill), var(--city-fill)),
        radial-gradient(
            circle at center,
            #6FCB55 0%,
            #5DBC43 12%,
            rgba(46, 143, 47, 0) 45%
        );
    background-size: 100% 100%, 160% 100%;
    background-repeat: no-repeat;
    background-position: -60% center;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: sweep 3s ease-in-out infinite alternate;
    transition: --city-fill .45s ease;
}

/* наводим на город - засвет замирает и заливает всю фразу; уводим -
   заливка гаснет, засвет едет дальше с того же места */
.hero__title_city:has(.hero__city:hover),
.hero__title_city:has(.hero__city:focus-visible) {
    --city-fill: #6FCB55;
    animation-play-state: paused;
}

/* город в заголовке открывает окно «Мы обслуживаем». Заливку текста кнопка
   наследует от .hero__title_city, поэтому цвет подчёркивания задаём явно -
   currentColor тут тёмный. */
.hero__city {
    padding: 0;
    /* общий сброс кнопок наследует только размер и семейство шрифта,
       жирность и межбуквенный интервал берём у заголовка явно */
    font: inherit;
    letter-spacing: inherit;
    position: relative;
    cursor: pointer;
}

/* пунктир под городом - фоном псевдоэлемента, а не text-decoration:
   так его можно двигать. При наведении штрихи бегут вправо, уводим мышь -
   замирают там, где были (анимация на паузе, а не сброшена). */
.hero__city::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: .06em;
    height: 2px;
    background-image: repeating-linear-gradient(90deg,
            rgba(46, 143, 47, .45) 0 6px,
            transparent 6px 10px);
    background-size: 10px 100%;
    animation: city-dash .45s linear infinite;
    animation-play-state: paused;
}

.hero__city:hover::after,
.hero__city:focus-visible::after {
    background-image: repeating-linear-gradient(90deg,
            var(--c-primary) 0 6px,
            transparent 6px 10px);
    animation-play-state: running;
}

@keyframes city-dash {
    from { background-position: 0 0; }
    to   { background-position: 10px 0; }
}

@media (prefers-reduced-motion: reduce) {
    .hero__city:hover::after,
    .hero__city:focus-visible::after {
        animation-play-state: paused;
    }
}

.hero__city:focus-visible {
    outline: 2px solid var(--c-primary);
    outline-offset: 4px;
    border-radius: 4px;
}

@keyframes sweep {
  from { background-position: -60% center; }
  to   { background-position: 160% center; }
}

.hero__advs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.hero__adv {
    display: flex;
    align-items: center;
    padding: 12px 24px 12px 12px;
    border-radius: 100px;
    background-color: #EEF6EE;
    border: 1px solid #CBE3CB;
}

.hero__adv_icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    margin-right: 12px;
    border-radius: 100px;
    background-color: var(--c-primary);
    color: #fff;
}

.hero__adv_icon svg {
    display: block;
    width: 22px;
    height: 22px;
}

.hero__adv_title {
    font-size: 20px;
    font-weight: 800;
    line-height: 1.2;
    color: var(--c-primary);
}

.hero__adv_desc {
    font-size: 14px;
    color: #5B6B5C;
}

.hero__actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px 32px;
    margin-top: 32px;
}

.hero__call_label {
    font-size: 14px;
    color: #5B6B5C;
}

.hero__call_phone {
    font-size: 20px;
    font-weight: 700;
}

.hero__slider {
    position: relative;
    --slide-spacing: 16px;
    --slide-size: calc((100% - var(--slide-spacing)) / 2);
    min-width: 0;
}

.hero__note {
    position: absolute;
    right: calc(100% + 24px);
    top: -28px;
    width: 230px;
    text-align: right;
    color: var(--c-primary);
    /* декор не должен перехватывать перетаскивание слайдера */
    pointer-events: none;
}

.hero__note_text {
    font-family: 'Marck Script', cursive;
    font-size: 32px;
    line-height: 1.1;
    transform: rotate(-4deg);
}

.hero__note_arrow {
    display: block;
    width: 120px;
    height: auto;
    margin-top: 8px;
    margin-left: auto;
    margin-right: 4px;
}

.hero__embla {
    width: 100%;
    clip-path: inset(0);
    border-radius: 12px;
}

.hero__slides {
    display: flex;
    touch-action: pan-y pinch-zoom;
    cursor: grab;
}

.hero__slides:active {
    cursor: grabbing;
}

.hero__slide {
    position: relative;
    flex: 0 0 var(--slide-size);
    min-width: 0;
    /* зазор margin-ом: он есть и у последнего слайда, поэтому при loop
       стык последнего с первым получает такой же отступ (док embla «Slide gaps») */
    margin-right: var(--slide-spacing);
    border-radius: 12px;
    overflow: hidden;
    padding: 12px;
    box-sizing: border-box;
}

.hero__slide::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(to top, #000, rgba(0,0,0,0));
}

.hero__slide::before {
    content: '';
    display: block;
    width: 100%;
    padding-top: 142%;
}

.hero__img {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: inherit;
}

.hero__name {
    position: relative;
    z-index: 1;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.25;
    color: #fff;
    /* не даём длинному названию разъезжаться выше двух строк */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero__price {
    position: relative;
    z-index: 1;
    margin-top: 6px;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.2;
    color: rgba(255, 255, 255, .8);
}

.hero__nav {
    display: flex;
    justify-content: space-between;
    width: 100%;
    gap: 8px;
    margin-top: 20px;
}

.hero__prev,
.hero__next {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 100px;
    background-color: #EEF6EE;
    border: 1px solid #CBE3CB;
    color: var(--c-primary);
    cursor: pointer;
    transition: background-color .2s, color .2s;
}

.hero__prev:hover,
.hero__next:hover {
    background-color: var(--c-primary);
    color: #fff;
}

.hero__prev:disabled,
.hero__next:disabled {
    opacity: .4;
    cursor: default;
    background-color: #EEF6EE;
    color: var(--c-primary);
}

.hero__prev svg,
.hero__next svg {
    display: block;
    width: 20px;
    height: 20px;
}

/* стрелки сами подсказывают, что блок листается: два коротких кивка и пауза */
.hero__prev svg {
    animation: hero-nudge-left 3.2s ease-in-out infinite;
}

.hero__next svg {
    animation: hero-nudge-right 3.2s ease-in-out infinite;
}

.hero__prev:hover svg,
.hero__next:hover svg,
.hero__prev:disabled svg,
.hero__next:disabled svg {
    animation: none;
}

@keyframes hero-nudge-left {
    0%, 50%, 100% { transform: translateX(0); }
    57%, 71% { transform: translateX(-4px); }
    64%, 78% { transform: translateX(0); }
}

@keyframes hero-nudge-right {
    0%, 50%, 100% { transform: translateX(0); }
    57%, 71% { transform: translateX(4px); }
    64%, 78% { transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
    .hero__prev svg,
    .hero__next svg {
        animation: none;
    }
}

@media (max-width: 1024px) {
    .hero {
        padding-top: 40px;
    }

    .hero__content {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .hero__title {
        font-size: 36px;
    }

    /* в одну колонку слева от слайдера ничего нет: отодвигаем границу обрезки
       на паддинг враппера, чтобы слайды резала только сама секция по краю экрана */
    .hero__embla {
        width: calc(100% + 20px);
        clip-path: inset(-100vh -100vw -100vh -20px);
        border-radius: 12px 0 0 12px;
    }

    /* в одну колонку подпись занимает собственную полосу над карточками:
       так она не наезжает на телефон, а стрелка не уходит под слайды */
    .hero__slider {
        --slide-size: 285px;
        margin-top: 72px;
    }

    .hero__note {
        right: 0;
        top: auto;
        bottom: calc(100% + 16px);
        width: 200px;
    }

    .hero__note_text {
        font-size: 24px;
    }

    .hero__note_arrow {
        width: 40px;
        margin-top: 4px;
        margin-right: 14px;
        /* карточки снизу, поэтому доворачиваем наконечник вниз */
        transform: rotate(30deg);
    }
}

@media (max-width: 600px) {
    .hero__title {
        font-size: 28px;
    }

    .hero__advs {
        gap: 8px;
        margin-top: 24px;
    }

    .hero__adv {
        padding: 10px 16px 10px 10px;
    }

    .hero__adv_icon {
        width: 40px;
        height: 40px;
        margin-right: 10px;
    }

    .hero__adv_title {
        font-size: 18px;
    }

    .hero__actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        margin-top: 24px;
    }

    /* телефон ушёл на вторую строку и стал короче — подпись поднимается
       в свободное поле справа от него, а не висит отдельной полосой */
    .hero__slider {
        --slide-size: 240px;
        margin-top: 12px;
    }

    .hero__note {
        bottom: calc(100% + 24px);
    }

    .hero__name {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .hero__embla {
        clip-path: inset(-100vh -100vw -100vh -16px);
    }

    .hero__call_phone {
        font-size: 18px;
    }

    .hero__note_text {
        font-size: 21px;
    }

    .hero__note_arrow {
        width: 46px;
    }
}

@media (max-width: 400px) {
    .hero__slider {
        margin-top: 40px;
    }

    .hero__note_text {
        font-size: 19px;
    }

    .hero__note_arrow {
        width: 42px;
    }
}

/* ---------- Цены и услуги ---------- */

.services__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
}

.services__descr {
    padding: 20px;
    border-radius: 20px;
    font-size: 14px;
    max-width: 500px;
    box-sizing: border-box;
    background-color: #EEF6EE;
    border: 1px solid #CBE3CB;
}

.services__cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.services__card {
    display: flex;
    flex-direction: column;
    background-color: #fff;
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 1px 2px rgba(26, 43, 28, 0.04),
              0 4px 16px rgba(26, 43, 28, 0.06);
}

.services__card_img {
    position: relative;
    padding-top: 65%;
    border-radius: 16px;
    overflow: hidden;
}

/* Параллакс внутри карточки: рамка уже режет по overflow, картинка ездит в ней.
   scale даёт запас по 16% сверху и снизу - в этих пределах ходит --parallax,
   поэтому при сдвиге не открывается пустая полоса. */
.services__card_img img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: translate3d(0, var(--parallax, 0px), 0) scale(1.32);
    will-change: transform;
}

/* без движения незачем и подрезать картинку увеличением */
@media (prefers-reduced-motion: reduce) {
    .services__card_img img {
        transform: none;
    }
}

.services__card_name {
    font-size: 24px;
    margin-top: 16px;
}

.services__card_blocks {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 12px;
}

.services__card_list {
    margin-top: 12px;
    margin-bottom: 12px;
}

.services__card_list li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px solid #F0F2ED;
    font-size: 14px;
}

.services__card_block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    font-size: 12px;
    padding: 8px 20px;
    border-radius: 100px;
    background-color: #EEF6EE;
    border: 1px solid #CBE3CB;
}

.services__card_block span {
    display: inline-block;
    margin-bottom: 2px;
    font-size: 18px;
    color: var(--c-primary);
    font-weight: 800;
}

.services__card_bottom {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    gap: 12px;
    margin-top: auto;
}

.services__card_price span {
    font-size: 20px;
    font-weight: 800;
    color: var(--c-primary);
}

.services__card_price {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    font-size: 12px;
}

/* 9-я карточка «Другие работы»: тёмная, как плашка с заявкой в «Преимуществах» */
.services__card--more {
    justify-content: space-between;
    gap: 28px;
    padding: 32px;
    color: #fff;
    background-color: #1A1A1A;
}

.services__more_title {
    margin-bottom: 16px;
    font-size: 26px;
    line-height: 1.2;
}

.services__more_text {
    font-size: 15px;
    line-height: 1.55;
    color: #C9CCC9;
}

.services__more_text + .services__more_text {
    margin-top: 12px;
}

.services__card--more .services__card_btn {
    align-self: flex-start;
}

@media (max-width: 1200px) {
    .services__cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 800px) {
    .services__cards {
        grid-template-columns: 1fr;
    }

    .services__top {
        flex-direction: column;
        align-items: flex-start;
    }

    .services__descr {
        margin-top: 20px;
        padding: 12px;
        border-radius: 12px;
    }
}

@media (max-width: 600px) {
    .services.section-pt {
        padding-top: 20px;
    }

    .services__card {
        padding: 16px;
    }

    .services__card_block span {
        font-size: 16px;
        margin-bottom: 0;
    }

    .services__card_name {
        font-size: 20px;
    }

    .services__card--more {
        padding: 24px 16px;
    }

    .services__more_title {
        font-size: 22px;
    }

    .services__card_list li {
        font-size: 12px;
    }

    .services__card_price span {
        font-size: 17px;
    }
}

/* ---------- Оплата и расчёт ---------- */

.payment__grid {
    display: grid;
    grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
    gap: 60px;
    align-items: start;
}

/* --- левая колонка --- */

.payment__title {
    /* строки заголовка идут друг под другом, поэтому межстрочный ужимаем */
    line-height: 1;
    margin-bottom: 24px;
}

.payment__descr {
    font-size: 15px;
    line-height: 1.6;
    color: #5C6B5E;
}

.payment__discount {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin-top: 28px;
    padding: 16px 26px;
    background-color: #14261A;
    color: #fff;
}

/* полукруглые прокусы по бокам — купон отрывают от страницы */
.payment__discount::before,
.payment__discount::after {
    content: '';
    position: absolute;
    top: 0;
    width: 7px;
    height: 100%;
    background-image: radial-gradient(circle at 0 8px, var(--c-page) 5px, transparent 5.5px);
    background-size: 7px 16px;
    background-repeat: repeat-y;
}

.payment__discount::before {
    left: 0;
}

.payment__discount::after {
    right: 0;
    transform: scaleX(-1);
}

.payment__discount_value {
    font-size: 40px;
    font-weight: 800;
    line-height: 1;
    color: var(--c-primary);
}

.payment__discount_percent {
    font-size: 22px;
    vertical-align: super;
}

.payment__discount_label {
    font-size: 13px;
    line-height: 1.3;
}

/* --- правая колонка: билет --- */

.payment__ticket {
    position: relative;
    padding: 36px 40px;
    background-color: #fff;
    box-shadow: 0 1px 2px rgba(26, 43, 28, 0.04),
              0 4px 16px rgba(26, 43, 28, 0.06);
}

/* верхняя и нижняя кромки «отрываются» — вырезы цвета фона страницы */
.payment__ticket::before,
.payment__ticket::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 9px;
    background-size: 20px 9px;
    background-repeat: repeat-x;
}

.payment__ticket::before {
    top: 0;
    background-image: radial-gradient(circle at 10px 0, var(--c-page) 6px, transparent 6.5px);
}

.payment__ticket::after {
    bottom: 0;
    background-image: radial-gradient(circle at 10px 9px, var(--c-page) 6px, transparent 6.5px);
}

.payment__group + .payment__group {
    margin-top: 32px;
}

.payment__group_head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 6px;
}

.payment__group_num {
    font-size: 13px;
    font-weight: 800;
    color: var(--c-primary);
}

.payment__group_name {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .14em;
    color: #5C6B5E;
}

/* пунктир добирает остаток строки до правого края */
.payment__group_line {
    flex: 1;
    border-bottom: 1px dashed #CFD6CE;
}

.payment__row,
.payment__extra {
    display: flex;
    gap: 16px;
    padding: 14px 0;
    font-size: 15px;
    border-bottom: 1px solid #F0F2ED;
}

.payment__row:last-child,
.payment__extra:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.payment__row {
    align-items: baseline;
    justify-content: space-between;
}

.payment__row_key {
    font-weight: 800;
    white-space: nowrap;
}

.payment__row_val {
    text-align: right;
    color: #5C6B5E;
}

.payment__extra {
    align-items: flex-start;
    gap: 12px;
}

.payment__extra_icon {
    display: inline-flex;
    flex-shrink: 0;
    /* иконка 20px против строки 15px: подводим её к базовой линии первой строки */
    margin-top: 1px;
    color: var(--c-primary);
}

.payment__extra_icon svg {
    display: block;
    width: 20px;
    height: 20px;
}

/* --- нижняя плашка --- */

.payment__cta {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 40px;
    padding: 28px 40px;
    color: #fff;
    background-color: var(--c-primary);
    background-image: repeating-linear-gradient(45deg,
              rgba(255, 255, 255, .06) 0 8px,
              transparent 8px 16px);
}

/* круглые вырезы по бокам — та же «оторванная» тема, что у билета */
.payment__cta::before,
.payment__cta::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 22px;
    height: 22px;
    border-radius: 100px;
    background-color: var(--c-page);
    transform: translateY(-50%);
}

.payment__cta::before {
    left: -11px;
}

.payment__cta::after {
    right: -11px;
}

.payment__cta_title {
    font-size: 26px;
    font-weight: 800;
    line-height: 1.2;
}

.payment__cta_desc {
    margin-top: 6px;
    font-size: 14px;
    opacity: .85;
}

.payment__cta_btn {
    flex-shrink: 0;
}

@media (max-width: 1024px) {
    .payment__grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .payment__ticket {
        padding: 32px;
    }
}

@media (max-width: 600px) {
    .payment__title {
        margin-bottom: 16px;
    }

    .payment__descr {
        font-size: 14px;
    }

    .payment__discount {
        margin-top: 20px;
        padding: 14px 22px;
    }

    .payment__discount_value {
        font-size: 32px;
    }

    .payment__discount_percent {
        font-size: 18px;
    }

    .payment__ticket {
        padding: 24px 20px;
    }

    .payment__group_name {
        letter-spacing: .1em;
    }

    .payment__row,
    .payment__extra {
        font-size: 14px;
        padding: 12px 0;
    }

    /* в узкой колонке пара «ключ — значение» не помещается в строку */
    .payment__row {
        display: block;
    }

    .payment__row_val {
        display: block;
        margin-top: 2px;
        text-align: left;
    }

    .payment__cta {
        display: block;
        margin-top: 32px;
        padding: 24px 20px;
    }

    .payment__cta_title {
        font-size: 20px;
    }

    .payment__cta_btn {
        width: 100%;
        margin-top: 20px;
    }
}

/* ---------- Как быстро заказать ---------- */

/* слева заголовочный блок, справа вводная строка, прижатая к низу заголовка */
.about__top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
    align-items: end;
    column-gap: 60px;
    margin-bottom: 48px;
}

.about__head {
    grid-column: 1;
}

/* лента и надзаголовок идут одной строкой */
.about__label {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}

/* косая полосатая лента-маркер */
.about__stripes {
    flex-shrink: 0;
    width: 112px;
    height: 16px;
    background-image: repeating-linear-gradient(135deg,
            var(--c-primary) 0 10px,
            #121312 10px 20px);
    /* сторона плитки = период полос (20px), делённый на cos 45°, - только при таком
       размере соседние плитки стыкуются без шва и ленту можно гонять по кругу */
    background-size: 28.284px 28.284px;
}

/* сдвиг ровно на одну плитку: в конце кадра рисунок совпадает с началом */
@keyframes stripes-run {
    to {
        background-position: 28.284px 0;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .about__stripes {
        animation: stripes-run 1.4s linear infinite;
    }
}

.about__top-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: .14em;
    color: #5C6B5E;
}

.about__title {
    max-width: 760px;
    text-transform: none;
    line-height: 1.12;
}

/* выделенная часть заголовка */
.about__title span {
    color: var(--c-primary);
}

.about__alert {
    grid-column: 2;
    margin-bottom: 8px;
    font-size: 17px;
    line-height: 1.55;
    color: #5C6B5E;
}

/* карточная сетка: первый пункт занимает две колонки и идёт тёмной плашкой */
.about__items {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    counter-reset: about-card;
}

.about__item {
    /* второй тон полоски: на 20% прозрачности чистый чёрный пропадает,
       поэтому чередуем два оттенка зелёного */
    --trace-dark: #1F6325;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 32px;
    border: 1px solid #E4E8E0;
    border-radius: 24px;
    background-color: #fff;
    box-sizing: border-box;
    counter-increment: about-card;
    transition: transform .18s, box-shadow .18s, border-color .18s;
}

.about__item:hover {
    border-color: #CFE0CC;
}

.about__item--wide {
    /* на чёрной карточке тёмный тон не читается - берём светлее основного */
    --trace-dark: #8FC795;
    grid-column: span 2;
    color: #fff;
    background-color: #121312;
    border-color: #121312;
}

/* Подсветка периметра. Из левого верхнего угла стартуют две линии:
   --cw идёт по часовой (верх -> правая грань), --ccw против (левая грань -> низ).
   Обе проходят ровно половину периметра и встречаются в правом нижнем углу.
   Линия набрана из коротких звеньев: каждое едет по offset-path и доворачивается
   по своей касательной, поэтому на скруглениях цепочка повторяет радиус,
   а не срезает угол хордой, как это делал бы один длинный отрезок. */
@supports (offset-path: border-box) {

    /* обёртка нужна только для группировки - из потока её убираем */
    .about__trace {
        display: contents;
    }

    .about__trace i {
        position: absolute;
        top: 0;
        left: 0;
        width: 0;
        height: 3px;
        background-color: var(--c-primary);
        box-shadow: 0 0 10px rgba(46, 143, 47, .12);
        pointer-events: none;
        offset-path: border-box;
        offset-rotate: auto;
        /* к точке пути привязан передний конец звена, а не середина: хвост
           тянется следом, поэтому в углу голова встаёт, а хвост её догоняет */
        offset-anchor: 100% 50%;
        animation: about-trace-cw 7s linear infinite;
        animation-delay: calc(var(--trace-delay, 0s) + var(--i, 0) * .056s);
    }

    /* чётные звенья тёмные - отсюда чёрно-зелёная полосатость линии */
    .about__trace i:nth-child(even) {
        background-color: var(--trace-dark);
    }

    /* вторая линия едет по пути в обратную сторону, значит передний конец - левый */
    .about__trace--ccw i {
        offset-anchor: 0% 50%;
        animation-name: about-trace-ccw;
    }

    /* каждое следующее звено отстаёт на длину одного шага цепочки */
    .about__trace i:nth-child(2) {
        --i: 1;
    }

    .about__trace i:nth-child(3) {
        --i: 2;
    }

    .about__trace i:nth-child(4) {
        --i: 3;
    }

    .about__trace i:nth-child(5) {
        --i: 4;
    }

    .about__trace i:nth-child(6) {
        --i: 5;
    }

    /* карточки вспыхивают по очереди, а не все разом */
    .about__item:nth-child(2) {
        --trace-delay: 1s;
    }

    .about__item:nth-child(3) {
        --trace-delay: 2s;
    }

    .about__item:nth-child(4) {
        --trace-delay: 3s;
    }

    .about__item:nth-child(5) {
        --trace-delay: 4s;
    }

    /* у широкой карточки периметр почти вдвое длиннее: без своей длительности
       линия летела бы по ней быстрее и звенья расходились бы шире */
    .about__item--wide .about__trace i {
        animation-duration: 12s;
    }
}

/* 0% - левый верхний угол, 50% - правый нижний: ровно половина периметра.
   Звено выезжает из угла (ширина 0 -> 8px), а в конце голова стоит
   в правом нижнем углу, хвост догоняет её и звено исчезает в углу. */
@keyframes about-trace-cw {
    0% {
        offset-distance: 0%;
        width: 0;
        opacity: .2;
    }

    2% {
        width: 9px;
    }

    68% {
        offset-distance: 50%;
        width: 9px;
        opacity: .2;
    }

    72% {
        offset-distance: 50%;
        width: 0;
        opacity: .2;
    }

    76% {
        opacity: 0;
    }

    100% {
        offset-distance: 50%;
        width: 0;
        opacity: 0;
    }
}

/* тот же путь, но в обратную сторону: левая грань, затем нижняя */
@keyframes about-trace-ccw {
    0% {
        offset-distance: 100%;
        width: 0;
        opacity: .2;
    }

    2% {
        width: 9px;
    }

    68% {
        offset-distance: 50%;
        width: 9px;
        opacity: .2;
    }

    72% {
        offset-distance: 50%;
        width: 0;
        opacity: .2;
    }

    76% {
        opacity: 0;
    }

    100% {
        offset-distance: 50%;
        width: 0;
        opacity: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .about__trace {
        display: none;
    }
}

/* иконка слева, порядковый номер справа - номер рисует счётчик, а не разметка */
.about__item-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 26px;
}

.about__item-head::after {
    content: counter(about-card, decimal-leading-zero);
    font-size: 15px;
    font-weight: 600;
    color: #9FAB9F;
}

.about__item--wide .about__item-head::after {
    color: rgba(255, 255, 255, .45);
}

.about__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background-color: #DEEEDD;
    color: var(--c-primary-dark);
}

.about__item--wide .about__icon {
    background-color: var(--c-primary);
    color: #fff;
}

.about__icon svg {
    width: 24px;
    height: 24px;
}

.about__subtitle {
    margin-bottom: 14px;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.15;
}

.about__item--wide .about__subtitle {
    font-size: 28px;
}

.about__descr {
    font-size: 16px;
    line-height: 1.6;
    color: #4E5A50;
}

.about__item--wide .about__descr {
    font-size: 17px;
    color: rgba(255, 255, 255, .75);
}

@media (max-width: 1024px) {
    .about__top {
        grid-template-columns: minmax(0, 1fr) minmax(0, 360px);
        column-gap: 32px;
        margin-bottom: 40px;
    }

    /* три колонки не помещаются: широкая карточка растягивается на всю строку */
    .about__items {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }

    .about__item {
        padding: 28px;
    }

    .about__subtitle {
        font-size: 22px;
    }

    .about__item--wide .about__subtitle {
        font-size: 26px;
    }

    .about__descr,
    .about__item--wide .about__descr {
        font-size: 16px;
    }
}

@media (max-width: 800px) {
    .about__top {
        grid-template-columns: minmax(0, 1fr);
        margin-bottom: 32px;
    }

    .about__alert {
        grid-column: 1;
        margin-top: 20px;
        margin-bottom: 0;
        font-size: 16px;
    }

    /* карточки в одну колонку */
    .about__items {
        grid-template-columns: minmax(0, 1fr);
    }

    .about__item--wide {
        grid-column: auto;
    }

    /* в одну колонку широкая карточка теряет запас периметра - возвращаем общий темп */
    .about__item--wide .about__trace i {
        animation-duration: 7s;
    }

    .about__item--wide .about__subtitle {
        font-size: 24px;
    }
}

@media (max-width: 600px) {
    .about__top {
        margin-bottom: 28px;
    }

    .about__label {
        gap: 12px;
        margin-bottom: 14px;
    }

    .about__stripes {
        width: 84px;
        height: 13px;
    }

    .about__top-title {
        font-size: 14px;
    }

    .about__alert {
        font-size: 15px;
    }

    .about__items {
        gap: 16px;
    }

    .about__item {
        padding: 24px 20px;
        border-radius: 20px;
    }

    .about__item-head {
        margin-bottom: 20px;
    }

    .about__icon {
        width: 42px;
        height: 42px;
        border-radius: 12px;
    }

    .about__subtitle,
    .about__item--wide .about__subtitle {
        font-size: 21px;
    }

    .about__descr,
    .about__item--wide .about__descr {
        font-size: 15px;
    }
}

/* ---------- Когда стоит заказывать ---------- */

/* тёмная секция во всю ширину: фон на самой секции, содержимое держит враппер.
   relative + overflow: hidden - опора для фоновых слоёв и страховка от того,
   что разъезжающиеся круги вылезут за секцию и дадут горизонтальный скролл */
.whattodo {
    position: relative;
    overflow: hidden;
    color: #fff;
    background-color: #1A1A1A;
}

/* контент выше декоративных слоёв */
.whattodo .wrapper {
    position: relative;
    z-index: 1;
}

/* --- слой 1: дышащее зелёное пятно --- */

.whattodo__glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

/* мягкость даёт сам радиальный градиент, без filter: blur - размытие пришлось бы
   пересчитывать на каждом кадре трансформа, а это самое дорогое место анимации */
.whattodo__glow::before,
.whattodo__glow::after {
    content: '';
    position: absolute;
    width: 560px;
    height: 560px;
    border-radius: 50%;
    background-image: radial-gradient(circle,
            rgba(76, 187, 69, .22) 0%,
            rgba(76, 187, 69, .1) 45%,
            rgba(76, 187, 69, 0) 72%);
    will-change: transform, opacity;
    animation: whattodo-glow 11s ease-in-out infinite;
}

/* привязка в процентах, а не в отрицательных пикселях: на широких экранах
   пятна больше не уезжают за кадр, а держатся у колонки с контентом */
.whattodo__glow::before {
    top: -170px;
    left: 15%;
}

.whattodo__glow::after {
    top: auto;
    left: auto;
    right: 15%;
    bottom: -170px;
    width: 480px;
    height: 480px;
    animation-delay: -6s;
}

/* плывёт по диагонали, дышит масштабом и яркостью */
@keyframes whattodo-glow {

    0%,
    100% {
        transform: translate3d(0, 0, 0) scale(1);
        opacity: .75;
    }

    50% {
        transform: translate3d(72px, 46px, 0) scale(1.25);
        opacity: 1;
    }
}

/* --- слой 2: ползущая точечная сетка --- */

.whattodo__dots {
    position: absolute;
    inset: 0;
    opacity: .7;
    pointer-events: none;
    background-image: radial-gradient(rgba(255, 255, 255, .1) 1.5px, transparent 1.5px);
    background-size: 40px 40px;
    animation: whattodo-dots 8s linear infinite;
}

/* сдвиг ровно на шаг сетки: в конце кадра рисунок совпадает с началом */
@keyframes whattodo-dots {
    to {
        background-position: 40px 40px;
    }
}

/* тот же кадр под мелкий шаг сетки на мобильных - шаг и сдвиг обязаны совпадать */
@keyframes whattodo-dots-sm {
    to {
        background-position: 32px 32px;
    }
}

/* --- слой 4: поднимающиеся частицы --- */

/* Идёт в разметке после пятна и сетки, поэтому и рисуется поверх них:
   у всех трёх слоёв z-index 0/auto, а порядок в этой группе задаёт DOM.
   Контент секции с z-index: 1 остаётся выше и кликабельным. */
.whattodo__particles {
    /* дистанция подъёма: чуть больше высоты секции на этом брейкпоинте,
       чтобы частица гасла у верхнего края, а не упиралась в него */
    --rise: -860px;
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.whattodo__particles span {
    position: absolute;
    bottom: -12px;
    border-radius: 50%;
    will-change: transform, opacity;
    animation: whattodo-rise 14s linear infinite;
}

/* Разные полосы, размеры, цвета и длительности - чтобы не читался общий цикл.
   Задержки отрицательные: анимация уже идёт к моменту первого кадра. */
.whattodo__particles span:nth-child(1) {
    left: 12%;
    width: 5px;
    height: 5px;
    background-color: rgba(76, 187, 69, .55);
    animation-duration: 14s;
    animation-delay: -1s;
}

.whattodo__particles span:nth-child(2) {
    left: 26%;
    width: 4px;
    height: 4px;
    background-color: rgba(255, 255, 255, .28);
    animation-duration: 16s;
    animation-delay: -4s;
}

.whattodo__particles span:nth-child(3) {
    left: 41%;
    width: 6px;
    height: 6px;
    background-color: rgba(76, 187, 69, .4);
    animation-duration: 12s;
    animation-delay: -7s;
}

.whattodo__particles span:nth-child(4) {
    left: 58%;
    width: 4px;
    height: 4px;
    background-color: rgba(255, 255, 255, .22);
    animation-duration: 18s;
    animation-delay: -10s;
}

.whattodo__particles span:nth-child(5) {
    left: 70%;
    width: 5px;
    height: 5px;
    background-color: rgba(76, 187, 69, .5);
    animation-duration: 14s;
    animation-delay: -2.5s;
}

.whattodo__particles span:nth-child(6) {
    left: 84%;
    width: 3px;
    height: 3px;
    background-color: rgba(255, 255, 255, .25);
    animation-duration: 16s;
    animation-delay: -12s;
}

.whattodo__particles span:nth-child(7) {
    left: 93%;
    width: 5px;
    height: 5px;
    background-color: rgba(76, 187, 69, .35);
    animation-duration: 12s;
    animation-delay: -6s;
}

@keyframes whattodo-rise {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }

    12% {
        opacity: .8;
    }

    88% {
        opacity: .8;
    }

    100% {
        transform: translateY(var(--rise, -600px)) translateX(28px);
        opacity: 0;
    }
}

/* до 767px оставляем 4 частицы из семи, равномерно по ширине: 12 / 41 / 70 / 93% */
@media (max-width: 767px) {

    .whattodo__particles span:nth-child(2),
    .whattodo__particles span:nth-child(4),
    .whattodo__particles span:nth-child(6) {
        display: none;
    }
}

/* --- слой 3: бегущая сигнальная лента над заголовком --- */

/* 226.274px = 10 шагов паттерна: при наклоне -45deg шаг по горизонтали равен
   16px / cos 45° = 22.6274px. Ровное 226px дало бы шов на стыке плиток. */
.whattodo__tape {
    display: block;
    width: 130px;
    height: 12px;
    margin-bottom: 22px;
    pointer-events: none;
    background-image: repeating-linear-gradient(-45deg,
            #1b1b1b 0 8px,
            #4cbb45 8px 16px);
    background-size: 226.274px 100%;
    animation: whattodo-tape 6s linear infinite;
}

@keyframes whattodo-tape {
    to {
        background-position: 226.274px 0;
    }
}

@media (prefers-reduced-motion: reduce) {

    .whattodo__glow::before,
    .whattodo__glow::after,
    .whattodo__dots,
    .whattodo__tape,
    .whattodo__particles span {
        animation: none;
    }
}

.whattodo__title {
    max-width: 700px;
    margin-bottom: 56px;
    font-size: 48px;
    line-height: 1.08;
}

/* на тёмном фоне фирменный зелёный глухой, поэтому берём его светлее */
.whattodo__title span {
    color: #4CB050;
}

.whattodo__list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.whattodo__item {
    display: flex;
    flex-direction: column;
    padding: 24px 28px;
    border-radius: 16px;
    background-color: #262726;
}

/* плашка под иконку: фон - тот же акцентный зелёный, приглушённый прозрачностью */
.whattodo__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin-bottom: 28px;
    border-radius: 14px;
    color: #7CC780;
    background-color: rgba(76, 176, 80, .16);
}

.whattodo__icon svg {
    display: block;
    width: 26px;
    height: 26px;
}

.whattodo__text {
    font-size: 17px;
    line-height: 1.5;
    color: #E6E8E6;
}

/* подзаголовок: забирает часть отступа под заголовком */
.whattodo__lead {
    max-width: 700px;
    margin: -32px 0 48px;
    font-size: 18px;
    line-height: 1.5;
    color: #B9BDB9;
}

/* итоговая строка под карточками */
.whattodo__note {
    max-width: 820px;
    margin: 48px auto 0;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.45;
    text-align: center;
    color: #E6E8E6;
}

@media (max-width: 1024px) {
    .whattodo__title {
        max-width: 560px;
        margin-bottom: 40px;
        font-size: 40px;
    }

    .whattodo__lead {
        margin-top: -20px;
        margin-bottom: 40px;
    }

    .whattodo__list {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (max-width: 800px) {
    /* в две колонки секция становится самой высокой на странице -
       частицам нужен запас хода, иначе они гаснут на середине */
    .whattodo__particles {
        --rise: -1010px;
    }

    .whattodo__list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    /* в одну колонку секция ниже - укорачиваем ход,
       иначе частица гаснет уже за пределами секции и пропадает рывком */
    .whattodo__particles {
        --rise: -820px;
    }

    /* на узком экране оставляем только пятно и точечную сетку */
    .whattodo__tape {
        display: none;
    }

    .whattodo__glow::before {
        top: -90px;
        left: 8%;
        width: 320px;
        height: 320px;
    }

    .whattodo__glow::after {
        right: 8%;
        bottom: -100px;
        width: 300px;
        height: 300px;
    }

    /* шаг сетки мельче - и сдвиг в кадре должен совпасть с ним, иначе появится рывок */
    .whattodo__dots {
        background-size: 32px 32px;
        animation-name: whattodo-dots-sm;
    }

    .whattodo__title {
        margin-bottom: 28px;
        font-size: 28px;
    }

    .whattodo__lead {
        margin: -12px 0 28px;
        font-size: 16px;
    }

    .whattodo__note {
        margin-top: 32px;
        font-size: 17px;
    }

    .whattodo__list {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* иконка уходит влево от текста */
    .whattodo__item {
        flex-direction: row;
        align-items: flex-start;
        gap: 14px;
        padding: 18px 20px;
        border-radius: 14px;
    }

    .whattodo__icon {
        flex-shrink: 0;
        width: 44px;
        height: 44px;
        margin-bottom: 0;
        border-radius: 12px;
    }

    .whattodo__icon svg {
        width: 22px;
        height: 22px;
    }

    .whattodo__text {
        font-size: 16px;
    }
}

/* ---------- Почему выгодно у нас (.arenda) ---------- */

.arenda__title {
    text-transform: none;
    line-height: 1.12;
}

/* Зелёная черта под выделенной частью заголовка. Рисуем её фоном, а не видимым
   бордером: ширину фона можно анимировать, ширину бордера - нет. Бордер остаётся
   прозрачным, чтобы геометрия строки не поехала, а фон по умолчанию доходит
   до border-box и ложится ровно на его место. */
.arenda__title span {
    --underline-h: 5px;
    border-bottom: var(--underline-h) solid transparent;
    background-image: linear-gradient(var(--c-primary), var(--c-primary));
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 100% var(--underline-h);
}

.arenda__subtitle {
    margin-top: 18px;
    font-size: 20px;
    font-weight: 800;
}

.arenda__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 48px;
    margin-top: 40px;
}

/* Параллакс: рамка стоит на месте и режет лишнее, картинка ездит внутри.
   Высоту рамке задаёт сама картинка в потоке - aspect-ratio не выдумываем,
   поэтому пропорции остаются ровно те же, что и были. */
.arenda__imgbox {
    display: block;
    overflow: hidden;
    margin-bottom: 28px;
    border-radius: 16px;
}

/* scale даёт запас по 16% сверху и снизу - именно в этих пределах ходит
   --parallax, поэтому при сдвиге не открывается пустая полоса.
   transform не влияет на поток, так что высота блока не меняется. */
.arenda__img {
    display: block;
    width: 100%;
    transform: translate3d(0, var(--parallax, 0px), 0) scale(1.32);
    will-change: transform;
}

/* без движения незачем и подрезать картинку увеличением */
@media (prefers-reduced-motion: reduce) {
    .arenda__img {
        transform: none;
    }
}

.arenda__descr {
    line-height: 1.6;
}

.arenda__descr + .arenda__descr {
    margin-top: 18px;
}

.arenda__lead {
    margin-top: 20px;
    font-size: 17px;
    font-weight: 800;
}

.arenda__list {
    margin-top: 14px;
}

.arenda__list li {
    position: relative;
    padding-left: 18px;
    line-height: 1.6;
}

.arenda__list li + li {
    margin-top: 12px;
}

/* маркер вместо списочного: так он не прыгает при переносе строки */
.arenda__list li::before {
    content: '';
    position: absolute;
    top: .66em;
    left: 0;
    width: 6px;
    height: 6px;
    border-radius: 100px;
    background-color: currentColor;
}

.arenda__cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 32px;
    padding: 24px 28px;
    border-radius: 16px;
    background-color: #EEF6EE;
}

.arenda__cta_text {
    font-size: 18px;
    font-weight: 800;
    line-height: 1.35;
}

.arenda__cta_btn {
    flex-shrink: 0;
}

@media (max-width: 1024px) {
    .arenda__grid {
        gap: 32px;
    }

    .arenda__cta {
        padding: 20px 22px;
    }
}

@media (max-width: 800px) {
    .arenda__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
    }

    .arenda__imgbox {
        margin-bottom: 20px;
    }
}

@media (max-width: 600px) {
    .arenda__subtitle {
        margin-top: 14px;
        font-size: 17px;
    }

    .arenda__title span {
        --underline-h: 4px;
    }

    /* кнопке тесно рядом с текстом - уводим её под него на всю ширину */
    .arenda__cta {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        padding: 20px;
        border-radius: 14px;
    }

    .arenda__cta_text {
        font-size: 16px;
    }
}

/* ---------- Раскрывающиеся тексты ---------- */

/* аккордеон на нативных details: раскрытие работает без скрипта,
   плавность добавляет redesign.js */
.details__item {
    border-radius: 20px;
    background-color: #fff;
    box-shadow: 0 1px 2px rgba(26, 43, 28, 0.04),
              0 4px 16px rgba(26, 43, 28, 0.06);
}

.details__item + .details__item,
.details__note {
    margin-top: 20px;
}

.details__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 28px 40px;
    cursor: pointer;
    /* убираем штатный треугольник */
    list-style: none;
}

.details__head::-webkit-details-marker {
    display: none;
}

.details__title {
    font-size: 22px;
    font-weight: 800;
    line-height: 1.25;
}

.details__more {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(26, 43, 28, 0.05);
    color: var(--c-primary);
    /* поворот стрелки завязан на состояние самого details */
    transition: transform .3s ease, background-color .3s ease;
}

.details__head:hover .details__more {
    background-color: rgba(26, 43, 28, 0.1);
}

.details__item[open] .details__more {
    transform: rotate(180deg);
}

.details__body {
    padding: 0 40px 36px;
    line-height: 1.6;
    color: #3E4C40;
}

.details__body > * + * {
    margin-top: 20px;
}

.details__list li {
    position: relative;
    padding-left: 18px;
}

.details__list li + li {
    margin-top: 8px;
}

/* маркер вместо списочного: так он не прыгает при переносе строки */
.details__list li::before {
    content: '';
    position: absolute;
    top: .66em;
    left: 0;
    width: 6px;
    height: 6px;
    border-radius: 100px;
    background-color: currentColor;
}

.details__note {
    padding: 28px 40px;
    border-radius: 20px;
    line-height: 1.6;
    background-color: #EEF6EE;
}

.details__note p + p {
    margin-top: 16px;
}

@media (max-width: 1024px) {
    .details__head {
        padding: 24px 28px;
    }

    .details__title {
        font-size: 20px;
    }

    .details__body {
        padding: 0 28px 28px;
    }

    .details__note {
        padding: 24px 28px;
    }
}

@media (max-width: 600px) {
    .details__head {
        align-items: center;
        gap: 12px;
        padding: 20px;
    }

    .details__title {
        font-size: 16px;
    }

    .details__body {
        padding: 0 20px 22px;
    }

    .details__more {
        width: 32px;
        height: 32px;
    }

    .details__more svg {
        width: 20px;
        height: 20px;
    }

    .details__item + .details__item,
    .details__note {
        margin-top: 14px;
    }

    .details__note {
        padding: 20px;
        border-radius: 16px;
    }
}

/* ---------- Услуги нашей компании ---------- */

/* полный перечень услуг: две колонки одинаковых карточек. Номер и иконка стоят
   в одной строке - номер держит порядок перечисления, иконка задаёт тему. */
.uslist {
    background-color: #EFF6EF;
}

/* та же сигнальная лента, что над "когда стоит заказывать", но без бега:
   здесь она работает как метка раздела, а не как акцент */
.uslist__tape {
    display: block;
    width: 130px;
    height: 12px;
    margin-bottom: 22px;
    pointer-events: none;
    background-image: repeating-linear-gradient(-45deg,
            #1b1b1b 0 8px,
            var(--c-primary) 8px 16px);
}

.uslist__title {
    margin-bottom: 48px;
}

.uslist__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.uslist__item {
    display: flex;
    flex-direction: column;
    padding: 32px;
    border-radius: 20px;
    background-color: #fff;
    box-shadow: 0 1px 2px rgba(26, 43, 28, 0.04),
              0 4px 16px rgba(26, 43, 28, 0.06);
}

.uslist__item_head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

/* плашка под иконку - как в "когда стоит заказывать", только на светлом фоне */
.uslist__item_icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    color: var(--c-primary);
    background-color: #E7F3E9;
}

.uslist__item_icon svg {
    display: block;
    width: 26px;
    height: 26px;
}

/* иконки медленно покачиваются. Цикл у всех один, но фаза сдвинута по номеру
   карточки, поэтому сетка «дышит» волной, а не мигает разом. */
.uslist__item_icon {
    animation: uslist-bob 3.4s ease-in-out infinite;
}

.uslist__item:nth-child(2) .uslist__item_icon {
    animation-delay: .14s;
}

.uslist__item:nth-child(3) .uslist__item_icon {
    animation-delay: .28s;
}

.uslist__item:nth-child(4) .uslist__item_icon {
    animation-delay: .42s;
}

.uslist__item:nth-child(5) .uslist__item_icon {
    animation-delay: .56s;
}

.uslist__item:nth-child(6) .uslist__item_icon {
    animation-delay: .70s;
}

.uslist__item:nth-child(7) .uslist__item_icon {
    animation-delay: .84s;
}

.uslist__item:nth-child(8) .uslist__item_icon {
    animation-delay: .98s;
}

@keyframes uslist-bob {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

/* номер нужен как ориентир в перечне, читать его необязательно - отсюда бледный тон */
.uslist__item_num {
    font-size: 32px;
    font-weight: 800;
    line-height: 1;
    color: #CFE3CD;
}

.uslist__item_name {
    margin-bottom: 14px;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.3;
}

.uslist__item_descr {
    font-size: 16px;
    line-height: 1.6;
    color: #4E5A50;
}

@media (prefers-reduced-motion: reduce) {
    .uslist__item_icon {
        animation: none;
    }
}

@media (max-width: 1024px) {
    .uslist__item {
        padding: 28px;
    }

    .uslist__item_name {
        font-size: 19px;
    }
}

@media (max-width: 800px) {
    .uslist__grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .uslist__title {
        margin-bottom: 32px;
    }
}

@media (max-width: 600px) {
    .uslist__item {
        padding: 24px 20px;
    }

    .uslist__item_descr {
        font-size: 15px;
    }
}

/* ---------- Наши преимущества ---------- */

/* восемь карточек в три колонки, последняя ячейка - тёмная плашка с призывом:
   8 + 1 = 9, то есть ровно три ряда без дыр. В 4ist карточек семь и плашка
   на две колонки, здесь она в одну - текст над кнопкой */
.advant__tape {
    display: block;
    width: 130px;
    height: 12px;
    margin-bottom: 22px;
    pointer-events: none;
    background-image: repeating-linear-gradient(-45deg,
            #1b1b1b 0 8px,
            var(--c-primary) 8px 16px);
}

.advant__title {
    margin-bottom: 48px;
}

.advant__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.advant__item {
    display: flex;
    flex-direction: column;
    padding: 28px;
    border-radius: 20px;
    background-color: #fff;
    box-shadow: 0 1px 2px rgba(26, 43, 28, 0.04),
              0 4px 16px rgba(26, 43, 28, 0.06);
}

.advant__item_icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin-bottom: 18px;
    border-radius: 14px;
    color: var(--c-primary);
    background-color: #E7F3E9;
    /* ключевые кадры общие с перечнем услуг: качание по странице одинаковое */
    animation: uslist-bob 3.4s ease-in-out infinite;
}

.advant__item:nth-child(2) .advant__item_icon {
    animation-delay: .14s;
}

.advant__item:nth-child(3) .advant__item_icon {
    animation-delay: .28s;
}

.advant__item:nth-child(4) .advant__item_icon {
    animation-delay: .42s;
}

.advant__item:nth-child(5) .advant__item_icon {
    animation-delay: .56s;
}

.advant__item:nth-child(6) .advant__item_icon {
    animation-delay: .70s;
}

.advant__item:nth-child(7) .advant__item_icon {
    animation-delay: .84s;
}

.advant__item:nth-child(8) .advant__item_icon {
    animation-delay: .98s;
}

.advant__item_icon svg {
    display: block;
    width: 26px;
    height: 26px;
}

.advant__item_name {
    margin-bottom: 12px;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.3;
}

.advant__item_descr {
    font-size: 16px;
    line-height: 1.6;
    color: #4E5A50;
}

.advant__cta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    padding: 36px 40px;
    border-radius: 20px;
    background-color: #141814;
}

.advant__cta_text {
    max-width: 380px;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.35;
    color: #fff;
}

.advant__cta_btn {
    flex-shrink: 0;
}

@media (prefers-reduced-motion: reduce) {
    .advant__item_icon {
        animation: none;
    }
}

@media (max-width: 1024px) {
    .advant__item {
        padding: 24px;
    }

    .advant__item_name {
        font-size: 19px;
    }

    .advant__cta {
        padding: 32px;
    }

    .advant__cta_text {
        font-size: 20px;
    }
}

@media (max-width: 800px) {
    .advant__grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .advant__title {
        margin-bottom: 32px;
    }

    .advant__cta_text {
        max-width: none;
    }
}

@media (max-width: 600px) {
    .advant__item {
        padding: 24px 20px;
    }

    .advant__item_descr {
        font-size: 15px;
    }

    .advant__cta {
        padding: 28px 20px;
    }

    .advant__cta_text {
        font-size: 19px;
    }
}

/* ---------- Наши услуги: вертикальные табы ---------- */

/* слева перечень услуг с ценой, справа карточка выбранной. Панели переключает
   redesign.js; без JS остаётся раскрытой первая - секция не ломается */
.servtabs__tape {
    display: block;
    width: 130px;
    height: 12px;
    margin-bottom: 22px;
    pointer-events: none;
    background-image: repeating-linear-gradient(-45deg,
            #1b1b1b 0 8px,
            var(--c-primary) 8px 16px);
}

.servtabs__title {
    margin-bottom: 40px;
}

.servtabs__grid {
    display: grid;
    grid-template-columns: 380px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.servtabs__list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.servtabs__tab {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    box-sizing: border-box;
    padding: 16px 18px;
    text-align: left;
    border: 1px solid #E3E6E0;
    border-radius: 12px;
    background-color: #fff;
    cursor: pointer;
    transition: background-color .2s, border-color .2s;
}

.servtabs__tab:hover {
    border-color: var(--c-primary);
}

.servtabs__tab.is-active {
    border-color: #141814;
    background-color: #141814;
}

.servtabs__tab_icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 9px;
    color: var(--c-primary);
    background-color: #E7F3E9;
    transition: color .2s, background-color .2s;
}

.servtabs__tab.is-active .servtabs__tab_icon {
    color: #fff;
    background-color: var(--c-primary);
}

.servtabs__tab_icon svg {
    display: block;
    width: 18px;
    height: 18px;
}

.servtabs__tab_name {
    flex-grow: 1;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.3;
    text-transform: uppercase;
}

.servtabs__tab.is-active .servtabs__tab_name {
    color: #fff;
}

.servtabs__tab_price {
    flex-shrink: 0;
    font-size: 13px;
    font-weight: 800;
    color: #6B726B;
}

/* на тёмной строке фирменный зелёный читается плохо - берём его светлее */
.servtabs__tab.is-active .servtabs__tab_price {
    color: #7BD177;
}

.servtabs__panels {
    min-width: 0;
}

.servtabs__panel {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 28px;
    border-radius: 20px;
    background-color: #fff;
    box-shadow: 0 1px 2px rgba(26, 43, 28, 0.04),
              0 4px 16px rgba(26, 43, 28, 0.06);
}

/* класс задаёт display, поэтому штатного [hidden] браузера уже не хватает */
.servtabs__panel[hidden] {
    display: none;
}

.servtabs__head {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.servtabs__photo {
    display: block;
    width: 100%;
    height: 210px;
    object-fit: cover;
    border-radius: 12px;
}

.servtabs__intro {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.servtabs__name {
    font-size: 24px;
    font-weight: 800;
    line-height: 1.25;
}

.servtabs__text {
    font-size: 15px;
    line-height: 1.65;
    color: #4E5A50;
}

.servtabs__specs {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.servtabs__specs_label {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--c-primary);
}

.servtabs__specs_grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.servtabs__spec {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px 18px;
    border-radius: 12px;
    background-color: #F4F6F3;
}

/* первые три плитки - то, по чему выбирают услугу */
.servtabs__spec--key {
    background-color: #EAF4EA;
}

.servtabs__spec_label {
    font-size: 12px;
    font-weight: 700;
    color: #64705F;
}

.servtabs__spec_value {
    font-size: 15px;
    font-weight: 700;
}

.servtabs__spec--key .servtabs__spec_value {
    font-size: 19px;
    font-weight: 800;
}

.servtabs__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 60px;
    padding: 18px 28px;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
    color: #fff;
    background-color: var(--c-primary);
    cursor: pointer;
    transition: background-color .18s;
}

.servtabs__cta:hover {
    background-color: var(--c-primary-dark);
}

@media (prefers-reduced-motion: reduce) {

    .servtabs__tab,
    .servtabs__tab_icon,
    .servtabs__cta {
        transition: none;
    }
}

@media (max-width: 1024px) {
    .servtabs__grid {
        grid-template-columns: 300px minmax(0, 1fr);
    }

    .servtabs__head {
        grid-template-columns: 240px minmax(0, 1fr);
    }

    .servtabs__photo {
        height: 180px;
    }

    .servtabs__name {
        font-size: 21px;
    }

    .servtabs__specs_grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 800px) {

    /* перечень уезжает наверх, карточка услуги идёт под ним */
    .servtabs__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .servtabs__title {
        margin-bottom: 32px;
    }

    .servtabs__head {
        grid-template-columns: 1fr;
    }

    .servtabs__photo {
        height: 220px;
    }

    .servtabs__panel {
        padding: 20px;
    }
}

@media (max-width: 600px) {
    .servtabs__tab {
        padding: 14px;
        gap: 12px;
    }

    .servtabs__tab_name {
        font-size: 13px;
    }

    .servtabs__specs_grid {
        grid-template-columns: 1fr;
    }

    .servtabs__cta {
        padding: 18px 20px;
        font-size: 15px;
    }
}

/* ---------- Фото и видео о работе ---------- */

/* слайдер на Embla (он уже подключён ради первого экрана) плюс карточка ролика.
   Без JS лента не едет, но первый кадр виден - секция остаётся целой */
.gallery__tape {
    display: block;
    width: 130px;
    height: 12px;
    margin-bottom: 22px;
    pointer-events: none;
    background-image: repeating-linear-gradient(-45deg,
            #1b1b1b 0 8px,
            var(--c-primary) 8px 16px);
}

.gallery__title {
    margin-bottom: 40px;
}

.gallery__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 16px;
    align-items: start;
}

/* без карточки ролика лента занимает всю ширину и становится выше:
   кадры 4:3, при 440px на всю ширину от них остались бы узкие полосы */
.gallery__grid--wide {
    grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 1025px) {
    .gallery__grid--wide .gallery__slide {
        height: 600px;
    }
}

/* до 800px остаются высоты ленты из общих правил ниже */
@media (min-width: 801px) and (max-width: 1024px) {
    .gallery__grid--wide .gallery__slide {
        height: 480px;
    }
}

/* лента и горизонтальный ролик (Rutube, 16:9) - две равные колонки
   одной высоты; до 800px ролик встаёт под ленту на всю ширину */
/* два класса - чтобы перебить колонки .gallery__grid из @media ниже */
.gallery__grid.gallery__grid--video {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.gallery__grid--video .gallery__videobox {
    height: auto;
    aspect-ratio: 16 / 9;
}

@media (min-width: 801px) {
    .gallery__grid--video .gallery__slide {
        height: auto;
        aspect-ratio: 16 / 9;
    }
}

@media (max-width: 800px) {
    .gallery__grid.gallery__grid--video {
        grid-template-columns: minmax(0, 1fr);
    }
}

.gallery__slider {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
}

.gallery__embla {
    overflow: hidden;
}

.gallery__track {
    display: flex;
}

.gallery__slide {
    position: relative;
    flex: 0 0 100%;
    min-width: 0;
    height: 440px;
}

.gallery__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* затемнение снизу: под ним подпись читается на любом кадре */
.gallery__slide::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 160px;
    pointer-events: none;
    background-image: linear-gradient(to top, rgba(12, 16, 12, .72), rgba(12, 16, 12, 0));
}

.gallery__caption {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 22px;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
}

.gallery__dot {
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #4CBB45;
}

.gallery__nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-top: -22px;
    border-radius: 50%;
    color: #fff;
    background-color: rgba(12, 16, 12, .55);
    cursor: pointer;
    transition: background-color .2s, transform .2s;
}

.gallery__nav:hover {
    background-color: var(--c-primary);
    transform: scale(1.07);
}

.gallery__nav--prev {
    left: 18px;
}

.gallery__nav--next {
    right: 18px;
}

.gallery__counter {
    position: absolute;
    right: 18px;
    top: 18px;
    z-index: 2;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    color: #fff;
    background-color: rgba(12, 16, 12, .55);
}

.gallery__videobox {
    height: 440px;
    border-radius: 16px;
    overflow: hidden;
    background-color: #171B17;
}

.gallery__video {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    text-align: left;
    cursor: pointer;
}

.gallery__video_poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: .55;
}

.gallery__video::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 180px;
    pointer-events: none;
    background-image: linear-gradient(to top, rgba(12, 16, 12, .92), rgba(12, 16, 12, 0));
}

.gallery__video_play {
    position: absolute;
    left: 50%;
    top: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 76px;
    height: 76px;
    margin: -38px 0 0 -38px;
    border-radius: 50%;
    color: #fff;
    background-color: var(--c-primary);
    transition: background-color .22s, transform .22s;
}

.gallery__video:hover .gallery__video_play {
    transform: scale(1.07);
    background-color: var(--c-primary-dark);
}

.gallery__video_badge {
    position: absolute;
    left: 20px;
    top: 18px;
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #8BDD86;
    background-color: rgba(76, 187, 69, .18);
}

.gallery__video_name {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 22px;
    z-index: 1;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 800;
    color: #fff;
}

/* ролик подставляется скриптом на место кнопки */
.gallery__video_frame {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

@media (prefers-reduced-motion: reduce) {

    .gallery__nav,
    .gallery__video_play {
        transition: none;
    }

    .gallery__nav:hover {
        transform: none;
    }

    .gallery__video:hover .gallery__video_play {
        transform: none;
    }
}

@media (max-width: 1024px) {
    .gallery__grid {
        grid-template-columns: minmax(0, 1fr) 300px;
    }

    .gallery__slide {
        height: 380px;
    }

    .gallery__videobox {
        height: 380px;
    }
}

@media (max-width: 800px) {
    .gallery__grid {
        grid-template-columns: 1fr;
    }

    .gallery__title {
        margin-bottom: 32px;
    }

    .gallery__slide {
        height: 300px;
    }

    .gallery__videobox {
        height: 240px;
    }

    .gallery__video_play {
        width: 64px;
        height: 64px;
        margin: -32px 0 0 -32px;
    }
}

@media (max-width: 600px) {
    .gallery__slide {
        height: 240px;
    }

    .gallery__caption {
        left: 16px;
        right: 16px;
        bottom: 16px;
        font-size: 14px;
    }

    .gallery__nav {
        width: 40px;
        height: 40px;
        margin-top: -20px;
    }

    .gallery__nav--prev {
        left: 12px;
    }

    .gallery__nav--next {
        right: 12px;
    }

    .gallery__video_name {
        left: 16px;
        right: 16px;
        font-size: 16px;
    }
}

/* ---------- Честные отзывы ---------- */

/* тёмная полоса на всю ширину: отзывы отделяются от светлых секций вокруг.
   Карточки лежат в ленте Embla - на широком экране видны все сразу, на узком
   листаются точками под ними */
.reviews {
    background-color: #1B1B1B;
    overflow: hidden;
}

.reviews__top {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 36px;
}

.reviews__tape {
    display: block;
    width: 110px;
    height: 10px;
    margin-bottom: 18px;
    pointer-events: none;
    background-image: repeating-linear-gradient(-45deg,
            #1B1B1B 0 8px,
            #4CBB45 8px 16px);
}

.reviews__title {
    color: #fff;
}

/* на тёмном фоне фирменный зелёный глухой - берём его светлее */
.reviews__title span {
    color: #4CBB45;
}

.reviews__descr {
    margin-top: 14px;
    font-size: 18px;
    line-height: 1.5;
    color: #B9BFB9;
}

.reviews__cta {
    flex-shrink: 0;
}

.reviews__embla {
    /* overflow: hidden; */
}

.reviews__track {
    display: flex;
}

/* ширина слайда считается за вычетом зазоров, а сам зазор стоит только между
   карточками: иначе лента оказывается шире окна и край последней срезается */
.reviews__card {
    flex: 0 0 calc((100% - 32px) / 3);
    min-width: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 20px;
    background-color: rgba(255, 255, 255, .05);
}

.reviews__card + .reviews__card {
    margin-left: 16px;
}

.reviews__quote {
    display: block;
    color: #4CBB45;
    opacity: .5;
}

.reviews__text {
    flex-grow: 1;
    font-size: 15px;
    line-height: 1.7;
    color: #D8DDD8;
}

.reviews__author {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, .09);
}

/* инициалы вместо одинаковой стоковой аватарки у всех отзывов */
.reviews__avatar {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
    font-size: 17px;
    font-weight: 800;
    color: #4CBB45;
    background-color: rgba(76, 187, 69, .16);
}

/* фото авторов уже вырезаны в круг со светлой каёмкой по краю - чуть
   увеличиваем снимок, и каёмка уходит за край кружка */
.reviews__avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.12);
}

.reviews__who {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.reviews__name {
    font-size: 16px;
    font-weight: 800;
    line-height: 1.3;
    color: #fff;
}

.reviews__label {
    font-size: 13px;
    color: #9AA09A;
}

.reviews__pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 32px;
}

/* класс задаёт display, поэтому штатного [hidden] браузера уже не хватает:
   без этого на десктопе, где листать нечего, висела бы листалка «1 / 1» */
.reviews__pager[hidden] {
    display: none;
}

/* стрелки стоят по краям листалки: сразу видно, что карточки листаются */
.reviews__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    transition: background-color .2s, border-color .2s, opacity .2s;
}

.reviews__arrow:hover {
    border-color: #4CBB45;
    background-color: #4CBB45;
}

/* край ленты: кнопка остаётся на месте, чтобы строка не прыгала */
.reviews__arrow:disabled {
    opacity: .35;
    cursor: default;
}

.reviews__arrow:disabled:hover {
    border-color: rgba(255, 255, 255, .16);
    background-color: transparent;
}

.reviews__arrow svg {
    display: block;
}

.reviews__dots {
    display: flex;
    align-items: center;
    gap: 7px;
}

/* полоска рисуется по content-box, а padding даёт нормальную площадь нажатия */
.reviews__dot {
    width: 6px;
    height: 6px;
    padding: 9px 0;
    border-radius: 3px;
    background-color: #3A403A;
    background-clip: content-box;
    cursor: pointer;
    transition: width .2s, background-color .2s;
}

.reviews__dot.is-active {
    width: 24px;
    background-color: #4CBB45;
}

.reviews__counter {
    font-size: 14px;
    font-weight: 700;
    color: #9AA09A;
}

@media (prefers-reduced-motion: reduce) {

    .reviews__dot,
    .reviews__arrow {
        transition: none;
    }
}

@media (max-width: 1024px) {
    .reviews__card {
        flex-basis: calc((100% - 16px) / 2);
        padding: 24px;
    }

    .reviews__descr {
        font-size: 16px;
    }
}

@media (max-width: 800px) {
    .reviews__top {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }

    .reviews__card {
        flex-basis: 100%;
    }
}

@media (max-width: 600px) {
    .reviews__card {
        padding: 20px;
    }

    .reviews__text {
        font-size: 14px;
    }
}


/* Бегущая лента разделов. Шаг паттерна тот же, что у .whattodo__tape (16px по
   нормали = 22.6274px по горизонтали при наклоне -45deg), поэтому плитка в
   226.274px - ровно 10 шагов, и кадры берём те же: сдвиг на плитку замыкает
   цикл без шва. */
.uslist__tape,
.advant__tape,
.servtabs__tape,
.gallery__tape,
.reviews__tape,
.contacts__tape,
.chero__tape {
    background-size: 226.274px 100%;
    animation: whattodo-tape 6s linear infinite;
}

@media (prefers-reduced-motion: reduce) {

    .uslist__tape,
    .advant__tape,
    .servtabs__tape,
    .gallery__tape,
    .reviews__tape,
    .contacts__tape,
    .chero__tape {
        animation: none;
    }
}


/* ---------- Контакты ---------- */

/* карта во всю ширину, карточка с телефоном лежит поверх неё. Оверлей повторяет
   .wrapper, поэтому карточка стоит по той же сетке, что текст остальных секций */
.contacts__top {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 28px;
}

.contacts__tape {
    display: block;
    width: 110px;
    height: 10px;
    margin-bottom: 18px;
    pointer-events: none;
    background-image: repeating-linear-gradient(-45deg,
            #1b1b1b 0 8px,
            var(--c-primary) 8px 16px);
}

.contacts__links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.contacts__link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    border: 1px solid #DEDEDA;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    color: #4A4A44;
    transition: border-color .2s, color .2s;
}

.contacts__link svg {
    display: block;
    color: var(--c-primary);
}

.contacts__link:hover {
    border-color: var(--c-primary);
    color: var(--c-primary);
}

/* карта тянется на всю высоту блока, а высоту задаёт карточка в потоке:
   так она не вылезает за нижний край, как бы ни вырос её текст */
.contacts__mapbox {
    position: relative;
    min-height: 600px;
}

.contacts__map {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* оверлей не должен мешать тащить карту - клики ловит только сама карточка */
.contacts__overlay {
    position: relative;
    padding-top: 40px;
    padding-bottom: 40px;
    pointer-events: none;
}

.contacts__card {
    width: 400px;
    box-sizing: border-box;
    padding: 30px;
    border-radius: 20px;
    background-color: #fff;
    box-shadow: 0 18px 48px rgba(20, 30, 20, .16);
    pointer-events: auto;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.contacts__phone {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.contacts__label {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--c-primary);
}

.contacts__number {
    font-size: 29px;
    font-weight: 800;
    color: #1A2B1C;
}

.contacts__number:hover {
    color: var(--c-primary);
}

.contacts__note {
    font-size: 14px;
    line-height: 1.5;
    color: #6B726B;
}

.contacts__areas {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.contacts__area {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 14px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    background-color: #F1F7F0;
}

.contacts__area svg {
    display: block;
    color: var(--c-primary);
}

.contacts__rows {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 20px;
    border-top: 1px solid #ECECE8;
}

.contacts__row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
}

.contacts__row_name {
    font-size: 14px;
    color: #6B726B;
}

.contacts__row_value {
    font-size: 15px;
    font-weight: 800;
    text-align: right;
}

.contacts__actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contacts__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 56px;
    padding: 16px 24px;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
    color: #fff;
    background-color: var(--c-primary);
    cursor: pointer;
    transition: background-color .18s;
}

.contacts__btn:hover {
    background-color: var(--c-primary-dark);
}

/* ссылка, в отличие от кнопки рядом, по умолчанию считает высоту без паддингов -
   без border-box она выходит заметно выше «Заказать звонок» */
.contacts__ghost {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-height: 56px;
    padding: 16px 24px;
    border: 1.5px solid #141814;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
    color: #141814;
    transition: background-color .18s, color .18s;
}

.contacts__ghost:hover {
    color: #fff;
    background-color: #141814;
}

.contacts__sale {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-radius: 14px;
    font-size: 14px;
    line-height: 1.45;
    font-weight: 700;
    background-color: #E7F3E9;
}

.contacts__sale svg {
    flex-shrink: 0;
    display: block;
    color: var(--c-primary);
}

@media (prefers-reduced-motion: reduce) {

    .contacts__link,
    .contacts__btn,
    .contacts__ghost {
        transition: none;
    }
}

@media (max-width: 1024px) {
    .contacts__card {
        width: 340px;
        padding: 24px;
    }

    .contacts__number {
        font-size: 25px;
    }

    .contacts__mapbox {
        min-height: 660px;
    }
}

@media (max-width: 800px) {
    .contacts__top {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    /* на узком экране карточке негде лежать поверх карты - ставим её под картой */
    .contacts__overlay {
        position: static;
        padding-top: 20px;
        padding-bottom: 20px;
    }

    .contacts__card {
        width: 100%;
    }

    .contacts__mapbox {
        min-height: 0;
    }

    .contacts__map {
        position: static;
        height: 320px;
    }
}

@media (max-width: 600px) {
    .contacts__card {
        padding: 20px;
    }

    .contacts__row {
        flex-direction: column;
        gap: 2px;
    }

    .contacts__row_value {
        text-align: left;
    }
}

/* ---------- Модальные окна ---------- */

/* Система простая: окно - это блок с классом .modal и своим id, открывает его
   любой элемент с data-modal="<id>", закрывает [data-modal-close], клик по
   подложке и Esc. Пока окно закрыто, на нём стоит hidden. */
.modal {
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* класс задаёт display, поэтому штатного [hidden] браузера уже не хватает */
.modal[hidden] {
    display: none;
}

.modal__overlay {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(12, 16, 12, .55);
}

.modal__window {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 820px;
    max-width: 100%;
    max-height: min(84vh, 760px);
    box-sizing: border-box;
    border-radius: 20px;
    background-color: #fff;
    box-shadow: 0 24px 60px rgba(20, 30, 20, .28);
}

.modal__window:focus {
    outline: none;
}

.modal__head {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 24px 28px;
    border-bottom: 1px solid #ECECE8;
}

.modal__title {
    font-size: 22px;
    font-weight: 800;
    line-height: 1.25;
}

.modal__close {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: var(--c-primary);
    background-color: #F1F7F0;
    cursor: pointer;
    transition: background-color .18s, color .18s;
}

.modal__close:hover {
    color: #fff;
    background-color: var(--c-primary);
}

/* прокручивается только содержимое, шапка с крестиком остаётся на месте */
.modal__body {
    flex-grow: 1;
    overflow-y: auto;
    padding: 24px 28px 28px;
}

.modal__note {
    margin-bottom: 20px;
    font-size: 15px;
    line-height: 1.55;
    color: #6B726B;
}

.modal__cities {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px 24px;
}

.modal__cities a {
    padding: 7px 0;
    font-size: 15px;
    line-height: 1.35;
    transition: color .15s;
}

.modal__cities a:hover {
    color: var(--c-primary);
}

/* «Мы обслуживаем»: подзаголовок под названием окна */
.modal__heading {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.modal__sub {
    font-size: 14px;
    line-height: 1.45;
    color: #6B726B;
}

/* города по алфавиту: колонки сами перестраиваются по ширине окна,
   группа одной буквы не рвётся между колонками */
.modal__groups {
    columns: 4 160px;
    column-gap: 24px;
}

.modal__group {
    display: flex;
    flex-direction: column;
    margin-bottom: 18px;
    break-inside: avoid;
}

.modal__letter {
    margin-bottom: 4px;
    padding: 0 10px 6px;
    border-bottom: 1px solid #ECECE8;
    font-size: 13px;
    font-weight: 800;
    color: var(--c-primary);
}

.modal__group a,
.modal__group .modal__current {
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 15px;
    line-height: 1.35;
}

.modal__group a {
    transition: background-color .15s, color .15s;
}

.modal__group a:hover,
.modal__group a:focus-visible {
    color: var(--c-primary);
    background-color: #F1F7F0;
}

.modal__group .modal__current {
    background-color: #EEF6EE;
}

/* фон не прокручивается, пока открыто окно */
.has-modal {
    overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {

    .modal__close,
    .modal__cities a,
    .modal__group a {
        transition: none;
    }
}

@media (max-width: 800px) {
    .modal {
        padding: 16px;
    }

    .modal__head {
        padding: 20px;
    }

    .modal__title {
        font-size: 19px;
    }

    .modal__body {
        padding: 20px;
    }

    .modal__cities {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 2px 16px;
    }
}

@media (max-width: 480px) {

    /* две колонки остаются от брейкпоинта 800, тут только уменьшаем название */
    .modal__cities a {
        font-size: 14px;
        padding: 6px 0;
    }
}

/* ---------- Форма заказа звонка в модальном окне ---------- */

/* окно под форму заметно уже, чем справочник городов */
.modal--form .modal__window {
    width: 460px;
}

.cbform__field {
    display: block;
}

.cbform__label {
    display: block;
    margin-bottom: 8px;
    font-size: 15px;
    font-weight: 600;
}

.cbform__input {
    display: block;
    width: 100%;
    height: 56px;
    box-sizing: border-box;
    padding: 0 18px;
    font-family: inherit;
    font-size: 18px;
    font-weight: 600;
    color: #1A2B1C;
    background-color: #F5F8F4;
    border: 2px solid transparent;
    border-radius: 14px;
    outline: none;
    transition: border-color .18s, background-color .18s;
}

.cbform__input::placeholder {
    font-weight: 500;
    color: #A0A8A0;
}

.cbform__input:focus {
    background-color: #fff;
    border-color: var(--c-primary);
}

/* подсветка невалидного поля ставится скриптом, а не :invalid:
   иначе поле краснеет ещё до первой попытки отправки */
.cbform.is-invalid .cbform__input {
    background-color: #FDF3F3;
    border-color: #D24B4B;
}

.cbform__error {
    margin-top: 8px;
    font-size: 14px;
    color: #D24B4B;
}

.cbform__error[hidden] {
    display: none;
}

/* капча Яндекса: виджет рисует redesign.js, когда окно открыто, - в скрытом
   блоке он не поднимается. Высоту держим заранее, чтобы форма не прыгала */
.cbform__captcha {
    min-height: 100px;
    margin-top: 16px;
}

.cbform__captcha.is-invalid {
    outline: 2px solid #D24B4B;
    outline-offset: 4px;
    border-radius: 6px;
}

.cbform__submit {
    width: 100%;
    margin-top: 20px;
}

/* пока запрос в пути, повторные отправки не нужны */
.cbform.is-sending .cbform__submit {
    pointer-events: none;
    opacity: .6;
}

.cbform__policy {
    margin-top: 14px;
    font-size: 13px;
    line-height: 1.45;
    color: #8A928A;
}

/* ссылка на текст согласия - кнопка в строку, открывает своё окно */
.cbform__policy button {
    padding: 0;
    font: inherit;
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
}

.cbform__policy button:hover {
    color: var(--c-primary);
}

/* ---------- Окно «Согласие на обработку персональных данных» ---------- */

.modal--text .modal__window {
    width: 720px;
}

.modal__text {
    font-size: 14px;
    line-height: 1.6;
    color: #4E5A50;
}

.modal__text h4 {
    margin-top: 20px;
    margin-bottom: 8px;
    font-size: 15px;
    font-weight: 800;
    color: #1A2B1C;
}

.modal__text p + p,
.modal__text ul {
    margin-top: 8px;
}

.modal__text li {
    position: relative;
    padding-left: 16px;
}

.modal__text li + li {
    margin-top: 6px;
}

.modal__text li::before {
    content: '';
    position: absolute;
    top: .7em;
    left: 2px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background-color: var(--c-primary);
}

.modal__foot {
    flex-shrink: 0;
    padding: 18px 28px;
    border-top: 1px solid #ECECE8;
}

@media (max-width: 800px) {
    .modal__foot {
        padding: 16px 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cbform__input {
        transition: none;
    }
}

@media (max-width: 800px) {
    .modal--form .modal__window {
        width: 100%;
    }

    .cbform__input {
        height: 52px;
        font-size: 17px;
    }
}


/* ---------- Окно «заявка отправлена» ---------- */

.modal--note .modal__window {
    width: 420px;
}

.modal__body--center {
    text-align: center;
}

.modal__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    margin-bottom: 18px;
    border-radius: 50%;
    color: #fff;
}

.modal__icon--ok {
    background-color: var(--c-primary);
}

.modal__done_title {
    font-size: 21px;
    font-weight: 800;
    line-height: 1.3;
}

.modal__done_text {
    margin-top: 10px;
    font-size: 15px;
    line-height: 1.55;
    color: #6B726B;
}

.modal__done_text a {
    font-weight: 700;
    color: var(--c-primary);
    white-space: nowrap;
}


/* ---------- Полноэкранный индикатор отправки ---------- */

/* лежит выше модалок: пока идёт запрос, кликать по форме уже нельзя */
.loader {
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background-color: rgba(12, 16, 12, .72);
    opacity: 0;
    transition: opacity .2s ease-out;
}

.loader[hidden] {
    display: none;
}

/* класс ставится следующим кадром после снятия hidden - иначе переход не сыграет */
.loader.is-shown {
    opacity: 1;
}

.loader__box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.loader__spinner {
    width: 64px;
    height: 64px;
    box-sizing: border-box;
    border: 5px solid rgba(255, 255, 255, .22);
    border-top-color: #fff;
    border-radius: 50%;
    animation: loader-spin .8s linear infinite;
}

@keyframes loader-spin {
    to {
        transform: rotate(360deg);
    }
}

.loader__text {
    font-size: 17px;
    font-weight: 600;
    color: #fff;
}

@media (max-width: 800px) {
    .modal--note .modal__window {
        width: 100%;
    }

    .loader__spinner {
        width: 54px;
        height: 54px;
        border-width: 4px;
    }

    .loader__text {
        font-size: 15px;
    }
}

/* «Мы обслуживаем»: Москва отдельной строкой, ниже города и районы
   двумя списками со своими подзаголовками */
.modal__part {
    margin-bottom: 20px;
    font-size: 16px;
    font-weight: 700;
}

.modal__part a:hover {
    color: var(--c-primary);
}

.modal__part_title {
    margin-bottom: 14px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--c-primary);
}

.modal__groups + .modal__part_title {
    margin-top: 28px;
}

.modal__current {
    padding: 7px 0;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.35;
    color: var(--c-primary);
}

/* ---------- Первый экран страницы контактов ---------- */

/* Слово-подложка вылезает за правый край экрана, поэтому обрезает его секция,
   а не .wrapper: так хвост уходит за край страницы, как в макете. */
.chero {
    position: relative;
    overflow: hidden;
    padding-top: 56px;
    padding-bottom: 72px;
}

.chero__watermark {
    position: absolute;
    right: -20px;
    bottom: -40px;
    /* на узких экранах слово ужимается вместе с ними и не разносит вёрстку */
    font-size: clamp(90px, 15vw, 200px);
    line-height: 1;
    font-weight: 800;
    letter-spacing: -.03em;
    text-transform: uppercase;
    color: #ECECE7;
    pointer-events: none;
    user-select: none;
}

.chero__row {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 56px;
    align-items: center;
}

.chero__main {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
}

.chero__crumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #9A9A94;
}

.chero__crumbs a {
    color: inherit;
    transition: color .18s;
}

.chero__crumbs a:hover {
    color: var(--c-primary);
}

.chero__crumbs_current {
    color: #1A2B1C;
}

.chero__tape {
    display: block;
    width: 84px;
    height: 9px;
    pointer-events: none;
    background-image: repeating-linear-gradient(-45deg,
            #1b1b1b 0 8px,
            var(--c-primary) 8px 16px);
}

.chero__title {
    font-size: 46px;
    font-weight: 800;
    line-height: 1.1;
}

.chero__title span {
    color: var(--c-primary);
}

.chero__region {
    font-size: 20px;
    font-weight: 700;
    color: #4A4A44;
}

.chero__facts {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 6px;
}

.chero__fact {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px 14px 14px;
    border: 1px solid #ECECE8;
    border-radius: 16px;
    background-color: #fff;
}

.chero__fact_ico {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    color: var(--c-primary);
    background-color: #E7F3E9;
}

.chero__fact_text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.chero__fact_label {
    font-size: 12px;
    font-weight: 700;
    color: #7A7A74;
}

.chero__fact_value {
    font-size: 18px;
    font-weight: 800;
}

/* карточка с телефоном: тёмная, чтобы не спорить со светлой карточкой
   в контактах внизу страницы */
.chero__card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 32px;
    border-radius: 22px;
    background-color: #141814;
    box-shadow: 0 20px 50px rgba(20, 30, 20, .18);
}

.chero__card_head {
    display: flex;
    align-items: center;
    gap: 14px;
}

.chero__card_ico {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    color: #4CBB45;
    background-color: rgba(76, 187, 69, .16);
}

.chero__card_label {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #9AA09A;
}

.chero__phone {
    font-size: 36px;
    line-height: 1.1;
    font-weight: 800;
    color: #fff;
}

/* на тёмном фоне основной зелёный уходит в грязь, поэтому здесь
   светлый акцент и тёмный текст на кнопке */
.chero__phone span {
    color: #4CBB45;
}

.chero__card_btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 58px;
    padding: 16px 24px;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
    color: #141814;
    background-color: #4CBB45;
    cursor: pointer;
    transition: background-color .18s;
}

.chero__card_btn:hover {
    background-color: #3FA839;
}

.chero__card_btn svg {
    flex-shrink: 0;
    display: block;
}


/* ---------- Тёмная полоса «закажите прямо сейчас» ---------- */

.callcta {
    position: relative;
    overflow: hidden;
    padding-top: 56px;
    padding-bottom: 56px;
    background-color: #141814;
}

/* свечение из верхнего левого угла - одним градиентом, без filter: blur */
.callcta__glow {
    position: absolute;
    left: -120px;
    top: -140px;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    pointer-events: none;
    background-image: radial-gradient(circle,
            rgba(76, 187, 69, .2) 0%,
            rgba(76, 187, 69, 0) 70%);
}

.callcta__row {
    position: relative;
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr) auto;
    gap: 36px;
    align-items: center;
}

.callcta__ico {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    border: 1px solid rgba(76, 187, 69, .35);
    border-radius: 50%;
    color: #4CBB45;
    background-color: rgba(76, 187, 69, .12);
}

.callcta__text {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.callcta__title {
    font-size: 30px;
    font-weight: 800;
    line-height: 1.2;
    color: #fff;
}

.callcta__title span {
    color: #4CBB45;
}

.callcta__descr {
    font-size: 16px;
    line-height: 1.55;
    color: #B9BFB9;
}

.callcta__btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 20px 30px;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
    color: #141814;
    background-color: #4CBB45;
    cursor: pointer;
    transition: background-color .18s;
}

.callcta__btn:hover {
    background-color: #3FA839;
}

.callcta__btn svg {
    flex-shrink: 0;
    display: block;
}


@media (max-width: 1024px) {

    /* карточка уходит под текст: в одну строку 420px уже не влезают */
    .chero__row {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
    }

    .chero__title {
        font-size: 36px;
    }

    .chero__watermark {
        bottom: -26px;
    }

    .callcta__row {
        grid-template-columns: 96px minmax(0, 1fr);
        gap: 24px 28px;
    }

    .callcta__ico {
        width: 96px;
        height: 96px;
    }

    .callcta__ico svg {
        width: 42px;
        height: 42px;
    }

    /* кнопка переезжает под текст и занимает обе колонки */
    .callcta__btn {
        grid-column: span 2;
        justify-content: center;
    }

    .callcta__title {
        font-size: 26px;
    }
}

@media (max-width: 767px) {
    .chero {
        padding-top: 32px;
        padding-bottom: 40px;
    }

    .chero__title {
        font-size: 28px;
    }

    .chero__region {
        font-size: 17px;
    }

    /* плашки в две колонки: в строку они больше не помещаются */
    .chero__facts {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        align-self: stretch;
    }

    .chero__fact {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 14px;
        border-radius: 14px;
    }

    .chero__fact_ico {
        width: 36px;
        height: 36px;
        border-radius: 10px;
    }

    .chero__fact_ico svg {
        width: 18px;
        height: 18px;
    }

    .chero__fact_value {
        font-size: 17px;
    }

    .chero__card {
        padding: 22px;
        border-radius: 18px;
    }

    .chero__phone {
        font-size: 28px;
    }

    .callcta {
        padding-top: 36px;
        padding-bottom: 40px;
    }

    .callcta__row {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }

    .callcta__ico {
        width: 64px;
        height: 64px;
    }

    .callcta__ico svg {
        width: 30px;
        height: 30px;
    }

    .callcta__title {
        font-size: 22px;
    }

    .callcta__descr {
        font-size: 14px;
    }

    .callcta__btn {
        grid-column: auto;
        padding: 16px 24px;
        min-height: 56px;
    }
}

/* ---------- Кнопка «наверх» ---------- */

/* Висит справа снизу, появляется, когда ушли ниже первого экрана.
   z-index ниже окон (100) и индикатора отправки (200) - поверх открытого
   окна ей делать нечего. */
.totop {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: var(--c-primary);
    color: #fff;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s, background-color .2s ease;
}

.totop.is-visible {
    opacity: 1;
    visibility: visible;
    transform: none;
}

/* с открытым мобильным меню плавающие кнопки убираем: меню - лист во весь
   экран, и кнопки висели бы поверх него */
.header.is-open ~ .totop,
.header.is-open ~ .callfab {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.totop:hover {
    background: var(--c-primary-dark);
}

.totop:active {
    transform: scale(.96);
}

/* Кнопка «Позвонить». Нужна только на телефоне: на большом экране номер всегда
   виден в шапке. Видна сразу - это главное действие на странице. Стоит в правом
   углу, а когда появляется круглая «наверх», отъезжает влево и освобождает ей
   место: --fab-shift = ширина «наверх» + зазор. Сдвиг через transform, чтобы
   ехало плавно и без перерасчёта раскладки. Сосед ~ работает, потому что
   .totop в разметке всегда стоит перед .callfab. */
.callfab {
    display: none;
}

@media (max-width: 767px) {
    .callfab {
        --fab-shift: 0px;
        position: fixed;
        right: 20px;
        bottom: 20px;
        z-index: 50;
        display: inline-flex;
        align-items: center;
        gap: 10px;
        height: 52px;
        padding-left: 8px;
        padding-right: 20px;
        border-radius: 100px;
        font-size: 15px;
        font-weight: 800;
        color: #fff;
        background-color: var(--c-primary);
        box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
        transform: translateX(var(--fab-shift));
        transition: background-color .2s ease, transform .3s cubic-bezier(.4, 0, .2, 1);
    }

    .totop.is-visible ~ .callfab {
        --fab-shift: -62px;
    }

    .callfab:active {
        background-color: var(--c-primary-dark);
        transform: translateX(var(--fab-shift)) scale(.97);
    }

    .callfab__ico {
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        border-radius: 50%;
        color: var(--c-primary);
        background-color: #fff;
    }

    /* кнопки висят поверх конца страницы - освобождаем под ними полосу */
    body {
        padding-bottom: 84px;
    }
}

@media (max-width: 600px) {
    .totop {
        right: 12px;
        bottom: 12px;
        width: 46px;
        height: 46px;
    }

    .callfab {
        right: 12px;
        bottom: 12px;
        height: 46px;
        padding-right: 16px;
        font-size: 14px;
    }

    .callfab__ico {
        width: 32px;
        height: 32px;
    }

    .totop.is-visible ~ .callfab {
        --fab-shift: -54px;
    }

    .callfab__ico svg {
        width: 18px;
        height: 18px;
    }

    body {
        padding-bottom: 72px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .totop,
    .callfab {
        transition: none;
    }

    .totop {
        transform: none;
    }

    /* сдвиг «Позвонить» оставляем - без него кнопки наедут друг на друга;
       убираем только анимацию и сжатие при нажатии */
    .totop:active {
        transform: none;
    }

    .callfab:active {
        transform: translateX(var(--fab-shift));
    }
}
