/* Четвёртый заход (ноябрь 2026): главная в одном стиле.
   Один светлый фон на всю страницу вместо чередования полос и цветных пятен. Все карточки белые, с одинаковыми
   радиусом, рамкой и тенью. Разделы пронумерованы по порядку. Анимации только при наведении и спокойное
   движение света на тёмных блоках, ничего не выезжает при прокрутке. */
html body{--g-bg:#f3f7fa;--g-card:#fff;--g-line:#e0e9ef;--g-line-h:#c9d9e4;--g-ink:#1f374a;--g-text:#4a6274;--g-red:#ed5147;--g-r:24px;--g-r-lg:32px;--g-ease:cubic-bezier(.2,.7,.2,1);--g-sh:0 1px 2px rgba(25,48,66,.04),0 10px 30px rgba(25,48,66,.06);--g-sh-h:0 2px 6px rgba(25,48,66,.05),0 26px 56px rgba(25,48,66,.13);--g-dark:linear-gradient(135deg,#1c364a 0%,#24445a 55%,#2b4f66 100%)}

/* ---------- Один фон ---------- */
html body:has(.page--trust-first){background:var(--g-bg)!important}
html body:has(.page--trust-first) .wrapper,html body .page--trust-first{background:transparent!important}
html body .page--trust-first>section:not(.rs-banner):not(.rs-project-path){background:transparent!important}
html body .page--trust-first>.rs-services::before,html body .page--trust-first>.rs-news::before,
html body .page--trust-first>.rs-17::before,html body .page--trust-first>.rs-17::after{content:none!important;display:none!important}
html body .page--trust-first .rs-form .rs-form__bg{display:none!important}
/* первый экран мягко переходит в общий фон */
html body .page--trust-first>.rs-banner{position:relative}
html body .page--trust-first>.rs-banner::after{content:"";position:absolute;z-index:2;left:0;right:0;bottom:0;height:120px;background:linear-gradient(180deg,rgba(243,247,250,0),var(--g-bg));pointer-events:none}

/* ---------- Ритм разделов ---------- */
html body .page--trust-first>section{--g-pad:clamp(56px,6.2vw,104px)}
html body .page--trust-first>.rs-chosen,
html body .page--trust-first>.rs-regulations,
html body .page--trust-first>.rs-services,
html body .page--trust-first>.rsd-feat,
html body .page--trust-first>.rs-news,
html body .page--trust-first>.rsd-first,
html body .page--trust-first>.rs-form,
html body .page--trust-first>.rs-faq{padding-top:var(--g-pad)!important;padding-bottom:var(--g-pad)!important;margin-top:0!important;margin-bottom:0!important}
/* «Нам доверяют», партнёры и письма читаются одним разделом */
html body .page--trust-first>.rs-chosen{padding-bottom:28px!important}
html body .page--trust-first>.rs-partners{padding-top:28px!important;padding-bottom:28px!important}
html body .page--trust-first>.rs-17{padding-top:28px!important;padding-bottom:calc(var(--g-pad) * .6)!important}
html body .page--trust-first>.rs-services{padding-bottom:calc(var(--g-pad) * .5)!important}
html body .page--trust-first>.rsd-feat{padding-top:calc(var(--g-pad) * .5)!important}
html body .page--trust-first>.rs-project-path{margin-top:calc(var(--g-pad) * .5)!important;margin-bottom:calc(var(--g-pad) * .5)!important}
html body .page--trust-first>.rs-news{padding-top:calc(var(--g-pad) * .7)!important}
html body .page--trust-first>.rs-form{padding-top:0!important}
html body .page--trust-first>.rsd-first{padding-bottom:var(--g-pad)!important}

/* ---------- Подписи разделов: сквозная нумерация ---------- */
html body .page--trust-first{counter-reset:gsec}
html body .page--trust-first .rs-kicker{counter-increment:gsec;display:flex!important;align-items:center;gap:14px;margin:0 0 28px!important;font-size:15px!important;font-weight:600!important;letter-spacing:.01em!important;color:var(--g-ink)!important}
html body .page--trust-first .rs-kicker>span{display:inline-flex;align-items:center;justify-content:center;min-width:44px;height:26px;padding:0 10px;border-radius:999px;background:#fff;box-shadow:inset 0 0 0 1px var(--g-line);font-size:0!important;color:transparent!important}
html body .page--trust-first .rs-kicker>span::before{content:counter(gsec,decimal-leading-zero);font:600 11.5px/1 Inter,system-ui,sans-serif;letter-spacing:.06em;color:var(--g-red)}
html body .page--trust-first .rs-kicker>i{flex:1;height:1px;margin-left:10px!important;background:linear-gradient(90deg,var(--g-line-h),rgba(201,217,228,0))!important;position:relative;overflow:hidden}
html body .page--trust-first .rs-kicker>i::after{content:""!important;position:absolute;top:0;bottom:0;left:0;width:120px;background:linear-gradient(90deg,transparent,var(--g-red),transparent)!important;opacity:.55;transform:translateX(-140px);animation:gLine 7s ease-in-out infinite!important}
html body .page--trust-first .rs-project-path .rs-kicker,html body .page--trust-first .rsd-first .rs-kicker{color:#e3edf3!important}
html body .page--trust-first .rs-project-path .rs-kicker>span,html body .page--trust-first .rsd-first .rs-kicker>span{background:rgba(255,255,255,.08);box-shadow:inset 0 0 0 1px rgba(255,255,255,.18)}
html body .page--trust-first .rs-project-path .rs-kicker>span::before,html body .page--trust-first .rsd-first .rs-kicker>span::before{color:#ff9a8b}
html body .page--trust-first .rs-project-path .rs-kicker>i,html body .page--trust-first .rsd-first .rs-kicker>i{background:linear-gradient(90deg,rgba(255,255,255,.22),rgba(255,255,255,0))!important}
/* «О компании»: вместо светлой вкладки с закруглённым углом такая же подпись с номером */
html body .page--trust-first>.rs-about::before{display:none!important}
html body .page--trust-first .rs-about .section-header{counter-increment:gsec;display:flex!important;align-items:center;gap:14px;margin:0 0 28px!important;padding:0!important;background:none!important}
html body .page--trust-first .rs-about .section-header::before{content:counter(gsec,decimal-leading-zero)!important;display:inline-flex!important;align-items:center;justify-content:center;flex:none;width:auto!important;min-width:44px;height:26px!important;padding:0 10px;border-radius:999px!important;background:#fff!important;box-shadow:inset 0 0 0 1px var(--g-line);font:600 11.5px/1 Inter,system-ui,sans-serif;letter-spacing:.06em;color:var(--g-red)}
html body .page--trust-first .rs-about .section-header::after{content:""!important;position:static!important;flex:1;width:auto!important;height:1px!important;margin-left:10px;border-radius:0!important;background:linear-gradient(90deg,var(--g-line-h),rgba(201,217,228,0))!important;box-shadow:none!important;z-index:auto!important}
html body .page--trust-first .rs-about .section-header{width:100%!important;max-width:none!important}
html body .page--trust-first .rs-about .section-header::before{order:0!important}
html body .page--trust-first .rs-about .section-header::after{order:3!important}
html body .page--trust-first .rs-about .section-header h6{order:1!important;margin:0!important;font-size:15px!important;font-weight:600!important;letter-spacing:.01em!important;line-height:1.4!important;text-transform:none!important;color:var(--g-ink)!important}
html body .page--trust-first .rs-about .section-header>*:not(h6){display:none!important}
html body .page--trust-first>.rs-about{padding-top:clamp(32px,3.5vw,56px)!important}
html body .page--trust-first .rs-chosen .rs-kicker{margin-bottom:22px!important}
html body .page--trust-first .rs-news .rsd3-kicker{margin-bottom:22px!important}
/* подзаголовки внутри раздела доверия: партнёры и письма */
html body .page--trust-first .rs-partners .section-header h6,html body .page--trust-first .rs-17 .section-title{font-size:15px!important;font-weight:600!important;color:var(--g-text)!important}
@keyframes gLine{0%,15%{transform:translateX(-140px)}60%,100%{transform:translateX(calc(100vw))}}

/* ---------- Заголовки одного размера ---------- */
html body .page--trust-first>section:not(.rs-banner):not(.rs-17) h2{font-size:clamp(30px,2.9vw,44px)!important;font-weight:500!important;line-height:1.14!important;letter-spacing:-.028em!important}
html body .page--trust-first>section:not(.rs-banner):not(.rs-17):not(.rs-project-path):not(.rsd-first):not(.rs-form) h2{color:var(--g-ink)!important}
html body .page--trust-first .rs-form__block>h2{font-size:clamp(28px,2.6vw,40px)!important}

/* ---------- Карточки: одна система ---------- */
html body .page--trust-first .rs-chosen__honor,
html body .page--trust-first .rs-17 .gallery-item,
html body .page--trust-first .rs-services__item,
html body .page--trust-first .rsd-fcard,
html body .page--trust-first .rs-news__wrapper,
html body .page--trust-first .rsd-ask,
html body .page--trust-first .rsd-about-out,
html body .page--trust-first .rs-faq__spollers_item,
html body .page--trust-first .rs-regmap__card{position:relative;border:1px solid var(--g-line)!important;border-radius:var(--g-r)!important;background:var(--g-card)!important;box-shadow:var(--g-sh)!important;overflow:hidden;transition:transform .45s var(--g-ease),box-shadow .45s var(--g-ease),border-color .45s var(--g-ease)!important}
/* крупные панели */
html body .page--trust-first .rs-regmap,
html body .page--trust-first .rsx2-scene,
html body .page--trust-first .rs-form__block,
html body .page--trust-first .rsd-first__card,
html body .page--trust-first>.rs-project-path{border-radius:var(--g-r-lg)!important}
html body .page--trust-first .rs-regmap,html body .page--trust-first .rsx2-scene{border:1px solid var(--g-line)!important;background-color:#fff!important;box-shadow:var(--g-sh)!important}
html body .page--trust-first .rs-faq__img{border-radius:var(--g-r-lg)!important;box-shadow:inset 0 0 0 1px var(--g-line)!important}
/* наведение: карточка приподнимается, сверху проходит красная линия */
html body .page--trust-first .rs-chosen__honor::before,
html body .page--trust-first .rs-17 .gallery-item::before,
html body .page--trust-first .rs-services__item::before,
html body .page--trust-first .rsd-fcard::before,
html body .page--trust-first .rs-regmap__card::before{content:"";position:absolute;z-index:3;left:0;right:0;top:0;height:3px;background:linear-gradient(90deg,var(--g-red),#ff9a8b);transform:scaleX(0);transform-origin:left;transition:transform .55s var(--g-ease);pointer-events:none}
@media(hover:hover){
html body .page--trust-first .rs-chosen__honor:hover,
html body .page--trust-first .rs-17 .gallery-item:hover,
html body .page--trust-first .rs-services__item:hover,
html body .page--trust-first .rsd-fcard:hover,
html body .page--trust-first .rs-news__wrapper:hover,
html body .page--trust-first .rs-regmap__card:hover{transform:translateY(-5px);border-color:var(--g-line-h)!important;box-shadow:var(--g-sh-h)!important}
html body .page--trust-first .rs-chosen__honor:hover::before,
html body .page--trust-first .rs-17 .gallery-item:hover::before,
html body .page--trust-first .rs-services__item:hover::before,
html body .page--trust-first .rsd-fcard:hover::before,
html body .page--trust-first .rs-regmap__card:hover::before{transform:scaleX(1)}
html body .page--trust-first .rs-faq__spollers_item:hover,html body .page--trust-first .rsd-ask:hover,html body .page--trust-first .rsd-about-out:hover{border-color:var(--g-line-h)!important;box-shadow:var(--g-sh-h)!important}
}
html body .page--trust-first .rs-chosen__honor--more{border-color:#f0c4bd!important;background:linear-gradient(135deg,#fff 40%,#fff4f2)!important}

/* письма: лист слегка приближается */
html body .page--trust-first .rs-17 .gallery-item a{overflow:hidden;border-radius:12px!important;transition:transform .7s var(--g-ease),background-size .7s var(--g-ease)!important}
@media(hover:hover){html body .page--trust-first .rs-17 .gallery-item:hover a{transform:scale(1.03)}}
/* точки слайдера писем: активная вытягивается в полоску */
html body .page--trust-first .owl-dots{display:flex!important;justify-content:center;align-items:center;gap:8px}
html body .page--trust-first .owl-dot span{display:block!important;width:8px!important;height:8px!important;margin:0!important;border-radius:999px!important;background:#c5d4de!important;transition:width .4s var(--g-ease),background .4s!important}
html body .page--trust-first .owl-dot.active span{width:28px!important;background:var(--g-red)!important}

/* партнёры: логотипы в своих цветах, при наведении чуть увеличиваются */
html body .page--trust-first .rs-partners__slide img{transition:transform .45s var(--g-ease)}
@media(hover:hover){html body .page--trust-first .rs-partners__slide:hover img{transform:scale(1.04)}}

/* услуги: белые карточки, стрелка «Подробнее» смотрит по диагонали и сдвигается */
html body .page--trust-first .rs-services__item svg,html body .page--trust-first .rs-services__item img{transition:transform .45s var(--g-ease)}
html body .page--trust-first .rs-services__item:hover .rs-services__label{color:var(--g-red)!important}
html body .page--trust-first .rs-services__btn span{transform:rotate(45deg)!important;transition:transform .4s var(--g-ease)!important}
html body .page--trust-first .rs-services__item:hover .rs-services__btn span{transform:translate(2px,-2px) rotate(45deg)!important}
html body .page--trust-first .rs-services__item:hover .rs-services__btn{color:var(--g-red)!important}
/* у новостей прежняя подпись над разделом больше не нужна, её заменила нумерованная */
html body .page--trust-first .rs-news>.rs-news__container>.section-header{display:none!important}

/* ---------- Кнопки: один красный, блик при наведении ---------- */
html body .page--trust-first ._btn-primary,
html body .page--trust-first .rs-about2__btn,
html body .page--trust-first .rsd-first__btn,
html body .page--trust-first .rsd-ask__btn,
html body .page--trust-first .rs-regmap__consult,
html body .page--trust-first .rs-form .form__button .rs-btn{position:relative;overflow:hidden;isolation:isolate;background:var(--g-red)!important;border-color:var(--g-red)!important;color:#fff!important;box-shadow:0 12px 28px rgba(237,81,71,.28);transition:transform .35s var(--g-ease),box-shadow .35s var(--g-ease),background .35s!important}
html body .page--trust-first ._btn-primary::after,
html body .page--trust-first .rs-about2__btn::after,
html body .page--trust-first .rsd-first__btn::after,
html body .page--trust-first .rsd-ask__btn::after,
html body .page--trust-first .rs-regmap__consult::after,
html body .page--trust-first .rs-form .form__button .rs-btn::after{content:"";position:absolute;z-index:-1;top:0;bottom:0;left:-60%;width:50%;background:linear-gradient(100deg,transparent,rgba(255,255,255,.35),transparent);transform:skewX(-20deg) translateX(0);transition:transform .8s var(--g-ease);pointer-events:none}
@media(hover:hover){
html body .page--trust-first ._btn-primary:hover,
html body .page--trust-first .rs-about2__btn:hover,
html body .page--trust-first .rsd-first__btn:hover,
html body .page--trust-first .rsd-ask__btn:hover,
html body .page--trust-first .rs-regmap__consult:hover,
html body .page--trust-first .rs-form .form__button .rs-btn:hover{transform:translateY(-2px);background:#e2433a!important;box-shadow:0 18px 36px rgba(237,81,71,.36)}
html body .page--trust-first ._btn-primary:hover::after,
html body .page--trust-first .rs-about2__btn:hover::after,
html body .page--trust-first .rsd-first__btn:hover::after,
html body .page--trust-first .rsd-ask__btn:hover::after,
html body .page--trust-first .rs-regmap__consult:hover::after,
html body .page--trust-first .rs-form .form__button .rs-btn:hover::after{transform:skewX(-20deg) translateX(420%)}
}

/* ---------- Тёмные блоки: один цвет и медленно плывущий свет ---------- */
html body .page--trust-first>.rs-project-path,
html body .page--trust-first .rsd-first__card{background:var(--g-dark)!important;position:relative;isolation:isolate;overflow:hidden}
html body .page--trust-first .rs-form__block::before{background:radial-gradient(#ffffff12 1px,transparent 1.3px) 0 0/22px 22px,radial-gradient(420px 320px at 0% 100%,rgba(237,81,71,.24),transparent 70%),var(--g-dark)!important}
html body .page--trust-first>.rs-project-path::after,
html body .page--trust-first .rsd-first__card::after{content:"";position:absolute;z-index:-1;inset:-30%;background:radial-gradient(34% 40% at 20% 30%,rgba(237,81,71,.16),transparent 70%),radial-gradient(30% 36% at 80% 70%,rgba(127,178,173,.16),transparent 70%);animation:gGlow 22s ease-in-out infinite alternate;pointer-events:none}
html body .page--trust-first .rsd-first__card::after{animation-delay:-9s}
html body .page--trust-first>.rs-project-path>*,html body .page--trust-first .rsd-first__card>*{position:relative;z-index:1}
@keyframes gGlow{0%{transform:translate3d(-4%,-3%,0) rotate(0)}50%{transform:translate3d(5%,3%,0) rotate(8deg)}100%{transform:translate3d(-2%,5%,0) rotate(-6deg)}}

/* ---------- Телефоны ---------- */
@media(max-width:767px){
html body .page--trust-first>section{--g-pad:52px}
html body .page--trust-first .rs-kicker{gap:10px;margin-bottom:20px!important;font-size:14px!important}
html body .page--trust-first .rs-kicker>span{min-width:38px;height:24px}
/* новость на телефоне: фото сверху, текст под ним во всю ширину */
html body .page--trust-first .rs-news__link{grid-template-columns:1fr!important;grid-template-rows:auto 1fr}
html body .page--trust-first .rs-news__img{height:200px!important;min-height:200px!important}
html body .page--trust-first .rs-chosen__honor,html body .page--trust-first .rs-services__item,html body .page--trust-first .rsd-fcard,html body .page--trust-first .rs-news__wrapper,html body .page--trust-first .rsd-ask,html body .page--trust-first .rs-faq__spollers_item,html body .page--trust-first .rs-regmap__card{border-radius:20px!important}
html body .page--trust-first .rs-regmap,html body .page--trust-first .rsx2-scene,html body .page--trust-first .rs-form__block,html body .page--trust-first .rsd-first__card,html body .page--trust-first>.rs-project-path{border-radius:24px!important}
}
@media(prefers-reduced-motion:reduce){
html body .page--trust-first *,html body .page--trust-first *::before,html body .page--trust-first *::after{animation:none!important;transition:none!important}
}
