/* Третий заход (ноябрь 2026): один ритм фонов на главной и страницах услуг, новости, широкая форма заявки.
   Секции чередуются: белая, затем светлая полоса с плавными краями, без жёстких линий на стыках.
   Светлые полосы подсвечены мягкими пятнами и точечным узором, чтобы фон не был плоским. */
html body{--rf-mist:#f1f6f9;--rf-ink:#21384b;--rf-text:#456072;--rf-muted:#647d8b;--rf-red:#ed5147;--rf-band:linear-gradient(180deg,#fff 0,var(--rf-mist) 130px,var(--rf-mist) calc(100% - 130px),#fff 100%)}

/* Секции главной больше не выплывают при прокрутке, они видны сразу. */
html body .rs-scroll-surface,html body .rs-scroll-surface .rs-kicker i{animation:none!important;opacity:1!important;translate:none!important}

/* ---------- Главная: стыки без линий, единые цвета ---------- */
html body .page--trust-first>section{border-top:0!important;border-bottom:0!important}
html body .page--trust-first>.rs-17{border-radius:0!important}
html body .page--trust-first>.rs-17::before{display:none!important}
/* белые секции */
html body .page--trust-first>.rs-competence,
html body .page--trust-first>.rsd-feat,
html body .page--trust-first>.rsd-first,
html body .page--trust-first>.rs-faq{background:#fff!important}
/* светлые полосы: доверие (письма, партнёры, галерея) одной полосой, затем услуги, новости, форма */
html body .page--trust-first>.rs-chosen{background:linear-gradient(180deg,#fff 0,var(--rf-mist) 150px)!important}
html body .page--trust-first>.rs-partners{background:var(--rf-mist)!important}
html body .page--trust-first>.rs-17{background:linear-gradient(180deg,var(--rf-mist) 0,var(--rf-mist) calc(100% - 150px),#fff 100%)!important}
html body .page--trust-first>.rs-services,
html body .page--trust-first>.rs-news,
html body .page--trust-first>.rs-form{background:radial-gradient(640px 320px at 92% 8%,rgba(127,178,173,.12),transparent 70%),radial-gradient(560px 300px at 4% 92%,rgba(237,81,71,.06),transparent 70%),var(--rf-band)!important}
html body .page--trust-first>.rs-news{background:radial-gradient(640px 320px at 6% 10%,rgba(127,178,173,.12),transparent 70%),radial-gradient(560px 300px at 96% 90%,rgba(237,81,71,.06),transparent 70%),var(--rf-band)!important}
html body .page--trust-first>.rs-services,html body .page--trust-first>.rs-news{position:relative;isolation:isolate}
html body .page--trust-first>.rs-services::before,html body .page--trust-first>.rs-news::before{content:"";position:absolute;z-index:-1;inset:0;background-image:radial-gradient(#cfdce5 1px,transparent 1.3px);background-size:22px 22px;opacity:.6;-webkit-mask-image:radial-gradient(ellipse 34% 46% at 94% 30%,#000,transparent 75%);mask-image:radial-gradient(ellipse 34% 46% at 94% 30%,#000,transparent 75%);pointer-events:none}
html body .page--trust-first>.rs-news::before{-webkit-mask-image:radial-gradient(ellipse 34% 46% at 6% 30%,#000,transparent 75%);mask-image:radial-gradient(ellipse 34% 46% at 6% 30%,#000,transparent 75%)}
/* тёмный маршрут той же ширины, что карточка «Первый шаг» */
html body .page--trust-first>.rs-project-path{width:calc(min(1800px,100%) - 40px);margin:0 auto!important;border-radius:34px}
html body .page--trust-first>.rs-project-path .rs-info__container{padding-left:clamp(24px,4vw,60px);padding-right:clamp(24px,4vw,60px)}
html body .page--trust-first>.rsd-feat{padding-bottom:72px}
html body .page--trust-first>.rs-news{padding-top:96px}

/* ---------- Новости: карточки с датой, без пустого места ---------- */
html body .rs-news__wrapper{position:relative;border:1px solid #dfe8ee!important;border-radius:24px!important;background:#fff!important;box-shadow:0 14px 36px rgba(33,56,75,.06);overflow:hidden;transition:transform .4s cubic-bezier(.2,.7,.2,1),box-shadow .4s,border-color .4s}
html body .rs-news__wrapper::before{content:"";position:absolute;z-index:3;left:0;right:0;top:0;height:3px;background:linear-gradient(90deg,var(--rf-red),#ff9a8b);transform:scaleX(0);transform-origin:left;transition:transform .5s cubic-bezier(.2,.7,.2,1)}
html body .rs-news__wrapper:hover{transform:translateY(-4px);border-color:#c9d9e3!important;box-shadow:0 26px 56px rgba(33,56,75,.12)}
html body .rs-news__wrapper:hover::before{transform:scaleX(1)}
html body .page--trust-first .rs-news__link{grid-template-columns:40% 60%}
html body .page--trust-first .rs-news__slide{min-height:0!important;height:auto!important}
html body .page--trust-first .rs-news__img{height:100%!important;min-height:360px!important}
html body .page--trust-first .rs-news__item{min-height:0!important;box-sizing:border-box;width:auto!important;min-width:0}
html body .rs-news__img{position:relative}
html body .rs-news__img::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(20,40,56,0) 55%,rgba(20,40,56,.32) 100%);pointer-events:none}
html body .rsd-news-date{position:absolute;z-index:2;left:16px;top:16px;padding:6px 12px;border-radius:999px;background:rgba(255,255,255,.94);box-shadow:0 6px 16px rgba(20,40,56,.15);font-size:12px;font-weight:600;line-height:1.3;color:var(--rf-ink);font-variant-numeric:tabular-nums}
html body .page--trust-first .rs-news__item{padding:30px 30px 26px!important}
html body .page--trust-first .rs-news__item{display:flex!important;flex-direction:column!important;justify-content:flex-start!important}
html body .page--trust-first .rs-news__body{display:block!important;height:auto!important;flex:0 0 auto!important}
html body .page--trust-first .rs-news__footer{margin-top:auto!important;padding-top:24px!important}
html body .rs-news__body::before{content:"";display:block;width:28px;height:3px;margin:0 0 18px;border-radius:3px;background:var(--rf-red)}
html body .page--trust-first .rs-news__content h4{font-size:21px!important;font-weight:600!important;line-height:1.35!important;letter-spacing:-.01em;color:var(--rf-ink)!important}
html body .page--trust-first .rs-news__description,html body .page--trust-first .rs-news__description p{font-size:14.5px!important;line-height:1.65!important;color:var(--rf-text)!important}
html body .page--trust-first .rs-news__footer .rs-btn{display:inline-flex;align-items:center;gap:10px;padding:10px 18px!important;border:1px solid #d5e1e9!important;border-radius:999px!important;background:#fff!important;font-size:13px!important;font-weight:600;color:var(--rf-ink)!important;transition:background .25s,color .25s,border-color .25s}
html body .page--trust-first .rs-news__wrapper:hover .rs-news__footer .rs-btn{background:var(--rf-red)!important;border-color:var(--rf-red)!important;color:#fff!important}

/* ---------- Форма заявки: широкая карточка, слева тёмная панель ---------- */
html body .rs-form{margin:0!important;padding:84px 0!important}
html body .rsx .rs-form{background:radial-gradient(640px 320px at 92% 8%,rgba(127,178,173,.12),transparent 70%),radial-gradient(560px 300px at 4% 92%,rgba(237,81,71,.06),transparent 70%),var(--rf-band)!important}
html body .rs-form .rs-form__bg{z-index:0!important;opacity:.55}
html body .rs-form__container{position:relative;z-index:1}
html body .rs-form__block{--fp:clamp(28px,4vw,56px);--fg:clamp(32px,5vw,84px);position:relative;isolation:isolate;display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);grid-template-rows:auto auto 1fr;column-gap:var(--fg);padding:var(--fp);border:1px solid #e1eaf0;border-radius:34px;background:#fff;box-shadow:0 34px 80px rgba(33,56,75,.12);overflow:hidden}
html body .rs-form__block::before{content:"";position:absolute;z-index:-1;left:0;top:0;bottom:0;width:calc(var(--fp) + (100% - 2 * var(--fp) - var(--fg)) * .45 + var(--fg) / 2);background:radial-gradient(#ffffff14 1px,transparent 1.3px) 0 0/22px 22px,radial-gradient(420px 320px at 0% 100%,rgba(237,81,71,.28),transparent 70%),linear-gradient(150deg,#1d384c,#2b4d63)}
html body .rs-form__block>h2{grid-column:1;margin:0 0 14px!important;text-align:left!important;font-size:clamp(30px,3vw,46px)!important;line-height:1.12!important;letter-spacing:-.03em;color:#fff!important}
html body .rs-form__block>h2 *{color:#ff9a8b!important}
html body .rs-form__block>p{grid-column:1;margin:0 0 28px!important;text-align:left!important;font-size:16px!important;line-height:1.6!important;color:#c3d4de!important}
html body .rs-form__block>.rs-form__request{grid-column:2;grid-row:1 / span 3;align-self:center;width:100%;max-width:none!important;margin:0!important}
html body .rsd-form-aside{grid-column:1;align-self:end}
html body .rsd-form-aside ul{display:grid;gap:14px;margin:0 0 28px;padding:0;list-style:none}
html body .rsd-form-aside li{display:flex;align-items:flex-start;gap:14px;margin:0;font-size:15.5px;line-height:1.5;color:#eef4f8}
html body .rsd-form-aside li i{flex:none;display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:rgba(237,81,71,.2);box-shadow:inset 0 0 0 1px rgba(255,138,122,.45)}
html body .rsd-form-aside li svg{width:14px;height:14px;fill:none;stroke:#ff9a8b;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}
html body .rsd-form-aside__contacts{display:flex;flex-wrap:wrap;align-items:center;gap:10px 14px;padding-top:22px;border-top:1px solid rgba(255,255,255,.14)}
html body .rsd-form-aside__contacts>span{flex-basis:100%;font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:#8fabbd}
html body .rsd-form-aside__contacts a{display:inline-flex;align-items:center;gap:10px;padding:9px 14px;border:1px solid rgba(255,255,255,.2);border-radius:999px;font-size:14px;font-weight:500;color:#fff!important;text-decoration:none!important;transition:background .25s,border-color .25s}
html body .rsd-form-aside__contacts a:hover{background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.4)}
html body .rsd-form-aside__contacts svg{width:16px;height:16px;fill:none;stroke:#ff9a8b;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
html body .rs-form .form__block{display:grid;grid-template-columns:1fr 1fr;gap:14px}
html body .rs-form .form__line{margin:0!important}
html body .rs-form .form__line:nth-child(n+3){grid-column:1/-1}
html body .rs-form .rs-input,html body .rs-form textarea{width:100%;min-height:54px;padding:15px 18px!important;border:1px solid #d9e4eb!important;border-radius:14px!important;background:#f7fafc!important;font-size:15px!important;color:var(--rf-ink);transition:border-color .2s,background .2s,box-shadow .2s}
html body .rs-form textarea{min-height:130px}
html body .rs-form .rs-input:focus,html body .rs-form textarea:focus{outline:0;border-color:var(--rf-red)!important;background:#fff!important;box-shadow:0 0 0 4px rgba(237,81,71,.1)}
html body .rs-form .rs-docs{margin-top:14px}
html body .rs-form .form__footer{margin-top:18px}
html body .rs-form .form__button{margin-top:16px}
html body .rs-form .form__button .rs-btn{min-width:240px;border-radius:999px!important;box-shadow:0 14px 30px rgba(237,81,71,.3)}

/* ---------- Страницы услуг: стыки без линий и чередование фонов ---------- */
html body .rsx-section{border-bottom:0!important}
html body .rsx-hero{border-bottom:0}
html body #rsx-get{background:linear-gradient(180deg,#f0f6f8 0,var(--rf-mist) 140px,var(--rf-mist) calc(100% - 130px),#fff 100%)!important}
html body .rsx-section:has(.rsx2-route),html body #rsx-details,html body .rsd-euc{background:#fff!important}
html body .rsp-why,html body .rsx-section:has(.rsx2-faq){background:radial-gradient(640px 320px at 94% 10%,rgba(127,178,173,.12),transparent 70%),radial-gradient(560px 300px at 4% 92%,rgba(237,81,71,.05),transparent 70%),var(--rf-band)!important}
html body .rsx-section:has(.rsx2-faq){background:radial-gradient(640px 320px at 6% 10%,rgba(127,178,173,.12),transparent 70%),radial-gradient(560px 300px at 96% 92%,rgba(237,81,71,.05),transparent 70%),var(--rf-band)!important}
html body #rsx-get,html body .rsp-why,html body .rsx-section:has(.rsx2-faq){position:relative;isolation:isolate}
html body #rsx-get::before,html body .rsp-why::before,html body .rsx-section:has(.rsx2-faq)::before{content:"";position:absolute;z-index:-1;inset:0;background-image:radial-gradient(#cfdce5 1px,transparent 1.3px);background-size:22px 22px;opacity:.6;-webkit-mask-image:radial-gradient(ellipse 30% 45% at 95% 28%,#000,transparent 75%);mask-image:radial-gradient(ellipse 30% 45% at 95% 28%,#000,transparent 75%);pointer-events:none}
html body .rsp-why::before{-webkit-mask-image:radial-gradient(ellipse 30% 45% at 5% 30%,#000,transparent 75%);mask-image:radial-gradient(ellipse 30% 45% at 5% 30%,#000,transparent 75%)}
html body .rsp-clients .rs-chosen,html body .rsp-clients .rs-partners,html body .rsp-clients .rs-17{background:#fff!important;border-top:0!important;border-bottom:0!important}
html body .rsx-section:has(.rsx2-cta){background:#fff!important}
/* «Почему выбирают нас»: тот же язык карточек, что в «Что вы получите», номер и красная полоска при наведении */
html body .rsp-why__grid{counter-reset:rfw}
html body .rsp-why__item{counter-increment:rfw;overflow:hidden}
html body .rsp-why__item::before{content:"";position:absolute;left:0;right:0;top:0;height:3px;background:linear-gradient(90deg,var(--rf-red),#ff9a8b);transform:scaleX(0);transform-origin:left;transition:transform .5s cubic-bezier(.2,.7,.2,1)}
html body .rsp-why__item:hover::before{transform:scaleX(1)}
html body .rsp-why__item::after{content:counter(rfw,decimal-leading-zero);position:absolute;right:20px;top:18px;font-size:54px;font-weight:700;line-height:1;letter-spacing:-.05em;color:#eef3f6;pointer-events:none}
html body .rsp-why__item>*{position:relative;z-index:1}
/* светлые карточки на светлой полосе получают чуть больше глубины */
html body .rsp-why__item,html body .rsx2-faq details{box-shadow:0 10px 26px rgba(33,56,75,.05)}

/* ---------- Планшеты и телефоны ---------- */
@media(max-width:991px){
html body .rs-form__block{display:block;padding:0;background:#fff}
html body .rs-form__block::before{display:none}
html body .rs-form__block>h2,html body .rs-form__block>p,html body .rsd-form-aside{position:relative;margin:0!important;padding-left:24px;padding-right:24px;background:#23425a}
html body .rs-form__block>h2{padding-top:28px;padding-bottom:12px}
html body .rs-form__block>p{padding-bottom:22px}
html body .rsd-form-aside{padding-bottom:24px}
html body .rs-form__block>.rs-form__request{padding:24px}
}
@media(max-width:767px){
html body .rs-form{padding:44px 0!important}
html body .rs-form__block{border-radius:24px}
html body .rs-form .form__block{grid-template-columns:1fr}
html body .rs-form .form__button .rs-btn{width:100%;min-width:0}
html body .page--trust-first>.rs-project-path{width:calc(100% - 16px);border-radius:24px}
html body .rs-news__img{min-height:220px!important}
html body .page--trust-first .rs-news__item{padding:22px!important}
}
@media(prefers-reduced-motion:reduce){html body .rs-news__wrapper{transition:none}html body .rs-news__wrapper:hover{transform:none}}
