/* ===== 28.10.2026 relocant-cases: страница кейса по макету cases.pdf (артборд 1500, контейнер 1160).
   Только вёрстка и цвета. ПК-шаблон as/case.html = body:has(.sc-wrap), мобильный case-mobile.html = body:has(.c-wrap).
   Шапка, подвал, «Наша команда», состояния кнопок берутся из cms-figma3.css / cms-figma3-mobile.css (подключаются вместе с этим файлом). ===== */
:root{--cf-chk:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 8' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m1 4.2 2.6 2.6L9 1.2'/%3E%3C/svg%3E");
--cf-bolt:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 17'%3E%3Cpath d='M8.8.8.8 10.4H8l-.8 6.4 8-9.6H8L8.8.8Z'/%3E%3C/svg%3E");
--cf-warn:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9.25'/%3E%3Cpath d='M12 7v6.2'/%3E%3Ccircle cx='12' cy='16.6' r='.4' fill='%23000'/%3E%3C/svg%3E");
--cf-seal:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M20 1.6c1.9 0 3.2 2 5 2.6 1.8.6 4-.3 5.6.8 1.5 1.1 1.4 3.5 2.6 5 1.1 1.5 3.4 2 4 3.8.6 1.7-.8 3.6-.8 5.4 0 1.9 1.4 3.7.8 5.4-.6 1.8-2.9 2.3-4 3.8-1.2 1.5-1.1 3.9-2.6 5-1.6 1.1-3.8.2-5.6.8-1.8.6-3.1 2.6-5 2.6s-3.2-2-5-2.6c-1.8-.6-4 .3-5.6-.8-1.5-1.1-1.4-3.5-2.6-5-1.1-1.5-3.4-2-4-3.8-.6-1.7.8-3.5.8-5.4 0-1.8-1.4-3.7-.8-5.4.6-1.8 2.9-2.3 4-3.8 1.2-1.5 1.1-3.9 2.6-5C11 3.9 13.2 4.8 15 4.2c1.8-.6 3.1-2.6 5-2.6Z' fill='%23fbfcff' stroke='%23232323' stroke-width='1.7'/%3E%3Cpath d='m12.6 20.4 4.9 4.6 9.6-9.6' fill='none' stroke='%23232323' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
--cf-tg:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M21.9 4.3 18.7 19.4c-.2 1.1-.9 1.3-1.8.8l-4.9-3.6-2.4 2.3c-.3.3-.5.5-1 .5l.4-5 9.1-8.2c.4-.4-.1-.6-.6-.2L6.3 13.1l-4.8-1.5c-1-.3-1.1-1 .2-1.5L20.5 2.9c.9-.3 1.6.2 1.4 1.4z'/%3E%3C/svg%3E")}

@media (min-width:900px){
/* ---- Шапка: плашка #FBFCFF 1180x60 в 10px от верха, «Консультация в Telegram» на #EAEFFD с точкой 10px ---- */
body:has(.sc-wrap) #relok-shared-header{top:10px;background:#fbfcff;-webkit-backdrop-filter:none;backdrop-filter:none}
body:has(.sc-wrap) #relok-shared-header .rh-cta{gap:8px;padding:10px 14px 10px 10px;background:#eaeffd}
body:has(.sc-wrap) #relok-shared-header .rh-cta::before{width:10px;height:10px;flex-basis:10px;background:#0050e3}

/* ---- Крошки, H1, чипы, дата ---- */
.sc-wrap{padding-bottom:0}
.sc-wrap .sc-bc{padding-top:27px;gap:10px;font-size:16px;line-height:19px;font-weight:500;letter-spacing:.16px;color:rgba(35,35,35,.8)}
.sc-wrap .sc-bc a{padding:0;transition:color .18s ease}
.sc-wrap .sc-title{margin-top:36px;max-width:900px;font-size:50px;line-height:50px;font-weight:600}
.sc-wrap .sc-chips{margin:47px auto 0;gap:5px;max-width:740px}
.sc-wrap .sc-chip{gap:5px;min-height:39px;box-sizing:border-box;padding:10px 14px;background:#fff;color:rgba(35,35,35,.8);font-size:16px;line-height:19.2px;font-weight:600;transition:color .18s ease,background-color .18s ease}
.sc-wrap a.sc-chip::before{content:"";flex:0 0 8px;width:8px;height:8px;border-radius:50%;background:#0050e3}
.sc-wrap .sc-meta{margin-top:37px;gap:20px;font-size:16px;line-height:19px;letter-spacing:.16px;color:rgba(35,35,35,.8)}
.sc-wrap .sc-meta span:last-child svg path{fill:rgba(35,35,35,.8)}

/* ---- Паспорт кейса и видео: две карточки 419x596, наклон -5/+5°, центры через 439px ---- */
.sc-wrap .sc-hero-cards{max-width:none;width:858px;gap:20px;margin:60px auto 0;padding-bottom:15px;align-items:flex-start}
.sc-wrap .sc-hcard{flex:0 0 419px;width:419px;height:596px;box-sizing:border-box;margin:0}
.sc-wrap .sc-hcard--dark{padding:15px 10px 10px;border-radius:16px;background:#232323;box-shadow:none;transform:rotate(-5deg)}
.sc-wrap .sc-hcard--vid{padding:10px;border-radius:16px;background:#fbfcff;box-shadow:none;transform:rotate(5deg);display:flex;flex-direction:column;gap:10px}
.sc-wrap .sc-flist{gap:7px;padding:0 5px}
.sc-wrap .sc-fl{gap:5px;font-size:18px;line-height:21px;font-weight:500;letter-spacing:0;color:rgba(251,252,255,.8)}
.sc-wrap .sc-fl b{font-weight:600;color:#fbfcff}
.sc-wrap .sc-fl svg{margin-top:3px}
.sc-wrap .sc-hphoto{margin-top:auto;width:100%;aspect-ratio:auto;flex:1 1 auto;max-height:none;border-radius:10px}
.sc-wrap .sc-hcard--dark{display:flex;flex-direction:column;gap:10px}
/* видео-отзыв: обложка на всю ширину, круг Play 84 (#FBFCFF 40%), под ней имя и цитата */
.sc-wrap .sc-hcard--vid .c15-media{flex:1 1 0;min-height:0;width:100%;aspect-ratio:auto;border-radius:10px;background:#232323}
.sc-wrap .sc-hcard--vid .c15-media img{width:100%;height:100%;aspect-ratio:auto;object-fit:cover}
.sc-wrap .sc-hcard--vid .c15-media :is(iframe,video){width:100%;height:100%;aspect-ratio:auto;object-fit:cover}
.sc-wrap .sc-hcard--vid .c15-play{background:none;font-size:0}
.sc-wrap .sc-hcard--vid .c15-play::before{content:"";width:84px;height:84px;border-radius:50%;background:rgba(251,252,255,.4);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);grid-area:1/1;transition:background-color .18s ease,scale .18s ease}
.sc-wrap .sc-hcard--vid .c15-play::after{content:"";grid-area:1/1;width:23px;height:31.6px;margin-left:6px;background:#fbfcff;clip-path:polygon(0 0,100% 50%,0 100%)}
.sc-wrap .sc-hcard--vid .c15-avatar{display:none}
.sc-wrap .sc-hcard--vid .c15-person{margin:0;padding:0 5px;font-size:16px;line-height:19px;font-weight:600;color:#232323}
.sc-wrap .sc-hcard--vid .c15-person br,.sc-wrap .sc-hcard--vid .c15-person small:empty{display:none}
.sc-wrap .sc-hcard--vid .c15-person small{font-size:inherit;font-weight:500;color:rgba(35,35,35,.8)}
.sc-wrap .sc-hcard--vid .c15-person small:not(:empty)::before{content:", "}
.sc-wrap .sc-hcard--vid .c15-person:has(small:empty)::after{content:""}
.sc-wrap .sc-hcard--vid .sc-vq{margin:0;padding:0 5px;font-size:16px;line-height:19px;font-weight:500;letter-spacing:.16px;color:#232323;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4;line-clamp:4;overflow:hidden}
.sc-wrap .sc-hcard--vid .c15-button{margin:0;min-height:61px;flex:0 0 auto;border:0;border-radius:10px;background:#eaeffd;color:#232323;font-size:20px;line-height:24px;font-weight:600;transition:background-color .18s ease,translate .18s ease}
.sc-wrap .sc-hero-cards>.sc-hcard--dark:only-child{flex:0 0 419px;width:419px;transform:rotate(-5deg)}

/* ---- «Кратко о кейсе»: метка слева, H2 с 585px, карточка 1160x457 #FBFCFF, телефон 435 обрезан низом ---- */
.sc-brief{padding:160px 0 0;background:transparent}
.sc-brief .sc-brief-inner{width:1160px;margin:0 auto}
.sc-brief .sc-brief-head{grid-template-columns:585px 1fr;gap:0;align-items:start;margin-bottom:45px}
.sc-brief .sc-brief-head .eyebrow{margin-top:9px;padding-left:15px;gap:5px;font-size:14px;line-height:15.4px;font-weight:600;letter-spacing:0;color:rgba(35,35,35,.2)}
.sc-brief .sc-brief-head .eyebrow::before{width:6px;height:6px;background:rgba(35,35,35,.4)}
.sc-brief .sc-brief-head h2{font-size:36px;line-height:39.6px;font-weight:600}
.sc-brief .sc-brief-card{grid-template-columns:585px 1fr;min-height:457px;height:auto;border-radius:16px;background:#fbfcff}
.sc-brief .sc-brief-card:not(:has(.c15-phone)){grid-template-columns:1fr;min-height:0}
.sc-brief .sc-brief-card:not(:has(.c15-phone)) .sc-brief-text{padding:17px 15px 20px}
.sc-brief .sc-brief-phone.c15-phone{width:435px;height:437px;margin:20px 0 0 74px;align-self:end;object-fit:cover;object-position:top}
.sc-brief .sc-brief-text{display:block;padding:17px 30px 20px 0}
.sc-brief .sc-brief-text{white-space:pre-line;font-size:22px;line-height:29px;font-weight:500;color:#232323}
.sc-brief .sc-brief-text:has(p){white-space:normal}
.sc-brief .sc-brief-text p{font-size:22px;line-height:29px;font-weight:500;color:#232323}
.sc-brief .sc-brief-text .bl{color:#0050e3}
.sc-brief .sc-brief-text p{margin:0 0 20px}
.sc-brief .sc-brief-text p:last-child{margin:0}

/* ---- Этапы получения ВНЖ: колонки по 226 между синими пунктирами, карточки 216 лесенкой (сдвиг ставит cms-case-f3.js) ---- */
.sc-body .c15-timeline.sc-tl{width:1160px;margin:155px auto 0;padding:0}
.sc-body .c15-timeline h2:empty{display:none}
.sc-body .c15-timeline h2{max-width:400px;margin:0 auto;font-size:36px;line-height:40px;font-weight:600;text-align:center;color:#232323}
.sc-body .c15-timeline h2 .cf-first{color:#0050e3;display:block}
.sc-body .c15-timeline .c15-eyebrow{margin:0 0 10px;font-size:14px;line-height:15.4px;font-weight:600;text-transform:uppercase;color:rgba(35,35,35,.2)}
.sc-body .c15-timeline .c15-eyebrow::before{content:"";display:inline-block;width:6px;height:6px;margin-right:5px;border-radius:50%;background:rgba(35,35,35,.4);vertical-align:middle}
.sc-body .c15-timeline .c15-duration{margin:10px 0 0;font-size:16px;line-height:19px;font-weight:500;color:rgba(35,35,35,.8)}
.sc-body .c15-months{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,226px);grid-template-columns:none;justify-content:center;gap:0;width:1132px;margin:14px 0 0 3px;align-items:stretch}
.sc-body .c15-month{position:relative;display:flex;flex-direction:column;padding:0 4px 1px 6px}
.sc-body .c15-month::before,.sc-body .c15-month:last-child::after{content:"";position:absolute;top:42px;bottom:0;left:0;width:2px;background:repeating-linear-gradient(#0050e3 0 10px,transparent 10px 16px)}
.sc-body .c15-month:last-child::after{left:auto;right:-2px}
.sc-body .c15-month h3{height:42px;margin:0;font-size:16px;line-height:19px;font-weight:500;letter-spacing:.16px;text-align:center;color:rgba(35,35,35,.8)}
.sc-body .c15-month h3 .cf-y{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.sc-body .c15-month ol{gap:5px;padding-top:1.5px}
.sc-body .c15-event{position:relative;display:flex;flex-direction:column;gap:5px;min-height:64px;box-sizing:border-box;padding:10px;border-radius:10px;background:#232323;color:#fbfcff}
.sc-body .c15-event p{order:-1;position:static;margin:0;font-size:18px;line-height:20px;font-weight:600}
.sc-body .c15-event time,.sc-body .c15-event small{font-size:16px;line-height:19px;font-weight:500;letter-spacing:.16px}
.sc-body .c15-event small{margin:0;color:rgba(251,252,255,.8)}
.sc-body .c15-event.c15-success{background:#0050e3}
.sc-body .c15-event.c15-success:has(p>span[aria-hidden]){background:#ff5804}
.sc-body .c15-event.c15-risk{background:#fbfcff;color:#232323;box-shadow:inset 0 0 0 2px #ff5804}
.sc-body .c15-event p>span[aria-hidden]{position:absolute;top:10.5px;right:-10.5px;width:40.5px;height:40px;font-size:0;background:var(--cf-seal) center/contain no-repeat}
.sc-body .c15-event:has(p>span[aria-hidden]) p{padding-right:22px}

/* ---- Основная часть: слева содержание 347 и консультация, справа текст 665 с 639px ---- */
.sc-body .sc-main{width:1160px;padding:166px 0 0;gap:118px}
.sc-body .sc-side{width:347px;margin-left:4px;gap:0;top:var(--c15-header,110px)}
.sc-body .sc-side:has([data-c15-toc],[data-c15-side]){overflow:visible;max-height:none}
.sc-body [data-c15-toc]{margin:0}
.sc-body [data-c15-toc] .h{margin:0 0 21px;font-size:25px;line-height:30px;font-weight:600;color:#232323}
.sc-body [data-c15-toc] .h::after{content:":"}
.sc-body [data-c15-toc] a{position:relative;display:block;min-height:0;margin:0 0 10px;padding:0 0 0 14px;font-size:16px;line-height:19px;font-weight:500;letter-spacing:.16px;color:rgba(35,35,35,.5);transition:color .18s ease}
.sc-body [data-c15-toc] a::before{content:"";position:absolute;left:0;top:6.5px;width:6px;height:6px;border-radius:50%;background:currentColor}
.sc-body [data-c15-toc] a.c15-toc-h3{padding-left:14px}
.sc-body [data-c15-toc] a.active{color:#0050e3}
.sc-body [data-c15-side]{margin:178px 0 0;padding:12px 15px 14px;border-radius:10px;background:#fbfcff}
.sc-body [data-c15-side] h4{max-width:280px;margin:0 0 10px;font-size:25px;line-height:30px;font-weight:600;color:#232323}
.sc-body [data-c15-side] .sub{margin:0 0 22px;font-size:16px;line-height:19px;font-weight:500;letter-spacing:.16px;color:rgba(35,35,35,.8)}
.sc-body [data-c15-side] p{margin:-10px 0 20px;font-size:16px;line-height:19px;font-weight:500;color:#232323}
.sc-body [data-c15-side] .b{height:50px;min-height:50px;margin:0;padding:0 15px;gap:10px;border-radius:10px;font-size:18px;line-height:22px;font-weight:600;transition:background-color .18s ease,color .18s ease,translate .18s ease}
.sc-body [data-c15-side] .b.pri{background:#232323;border:0;color:#fbfcff}
.sc-body [data-c15-side] a.b.pri[href*="t.me"]::before{content:"";width:25px;height:22px;background:#5ac6ff;-webkit-mask:var(--cf-tg) center/contain no-repeat;mask:var(--cf-tg) center/contain no-repeat}
.sc-body [data-c15-side] .b.sec{height:52px;margin-top:4px;background:transparent;border:1px solid #232323;color:#232323}
.sc-body [data-c15-side] .b+.b{margin-top:4px}

/* текст */
.sc-body .sc-content[data-c15-content]{width:665px;flex:0 0 665px;gap:76px;margin-top:-4px}
.sc-body .sc-content>.sc-sec{display:flex;flex-direction:row;flex-wrap:wrap;column-gap:10px;align-items:flex-start;margin:0}
.sc-body .c15-section>*{max-width:100%}
.sc-body .sc-content :is(h2,h3){margin:0 0 22px;font-size:36px;line-height:40px;font-weight:600;color:#232323}
.sc-body .c15-section p,.sc-body .c15-section li{font-size:22px;line-height:29px;font-weight:500;color:#232323}
.sc-body .c15-section p{margin:0 0 20px}
.sc-body .c15-section>:last-child{margin-bottom:0}
.sc-body .c15-section p :is(b,strong){font-weight:600}
.sc-body .c15-section .bl{color:#0050e3}
.sc-body .c15-section .sc-hl{margin-bottom:20px}
.sc-body .c15-section .sc-list{display:flex;flex-direction:column;gap:10px;margin:2px 0 22px;padding:0}
.sc-body .c15-section .sc-list li{display:block;padding-left:32px;line-height:24px}
.sc-body .c15-section .sc-list li::before{content:"";position:absolute;left:0;top:0;width:24px;height:24px;background:#0050e3;-webkit-mask:var(--cf-warn) center/contain no-repeat;mask:var(--cf-warn) center/contain no-repeat}
.sc-body [data-c15-content]>.c15-section:not(:first-child) .sc-list li{padding-left:24px;line-height:26px;font-weight:600;letter-spacing:.22px}
.sc-body [data-c15-content]>.c15-section:not(:first-child) .sc-list li::before{left:0;top:5px;width:16px;height:17px;-webkit-mask-image:var(--cf-bolt);mask-image:var(--cf-bolt)}
/* фото и документы */
.sc-body .c15-section p:has(>img){margin-bottom:20px}
.sc-body .c15-section .sc-photo{width:665px;max-width:100%;height:auto;aspect-ratio:665/386;margin:0;border-radius:10px;object-fit:cover}
.sc-body .sc-content>.sc-sec>*{flex:0 0 100%}
.sc-body .sc-content>.sc-sec>p:has(>.sc-doc){flex:0 0 calc(50% - 5px);margin:62px 0 0}
.sc-body .c15-section>p:not(:has(>.sc-doc))+p:has(>.sc-doc)~p:has(>.sc-doc){margin-top:62px}
.sc-body .c15-section .sc-doc{display:block;width:100%;height:410px;margin:0;object-fit:contain;background:#fff;border-radius:10px;box-shadow:0 3px 12px rgba(0,0,0,.05)}
.sc-body .c15-section .c15-image{border-radius:10px}
.sc-body .c15-gallery{gap:10px}
.sc-body .c15-gallery img{border-radius:10px}
/* видео в тексте: 665 по ширине, круг Play 94 */
.sc-body .c15-section .c15-media{border-radius:10px;background:#232323}
.sc-body .c15-section .c15-media[data-format="landscape"],.sc-body .c15-section button.c15-media:not([data-format="portrait"]){width:665px;max-width:100%;aspect-ratio:665/376}
.sc-body .c15-section .c15-media img{height:100%;object-fit:cover}
.sc-body .c15-play{background:none;font-size:0}
.sc-body .c15-play::before{content:"";grid-area:1/1;width:94px;height:94px;border-radius:50%;background:rgba(251,252,255,.4);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);transition:background-color .18s ease,scale .18s ease}
.sc-body .c15-play::after{content:"";grid-area:1/1;width:25.7px;height:37.7px;margin-left:6px;background:#fbfcff;clip-path:polygon(0 0,100% 50%,0 100%)}
/* цитата: карточка 665 #FBFCFF, фото 120 */
.sc-body .c15-section .c15-callout{padding:15px;border-radius:10px;background:#fbfcff;margin:0 0 20px}
.sc-body .c15-section blockquote.c15-callout{margin:0;padding:10px 15px 10px 145px;min-height:96px;box-sizing:border-box;position:relative}
.sc-body .c15-section blockquote.c15-callout p{font-size:18px;line-height:20px;margin:0}
.sc-body .c15-section .sc-q2{display:flex;align-items:center;gap:10px;margin:10px 0 0;padding:0;background:none}
.sc-body .c15-section .sc-q2-av{width:48px;height:48px;border-radius:10px}
/* этапы в тексте: кружок 20 с галочкой, синие карточки высотой 64, пунктир между кружками */
.sc-body .c15-section .sc-steps{margin:0 0 20px;padding-left:30px;gap:5px}
.sc-body .c15-section .sc-steps::before{display:none}
.sc-body .c15-section .sc-step{margin:0}
.sc-body .c15-section .sc-step+.sc-step::before{content:"";position:absolute;left:-20.75px;top:-48px;height:49px;width:1.5px;background:#0050e3}
.sc-body .c15-section .sc-step-ic{left:-30px;width:20px;height:20px}
.sc-body .c15-section .sc-step-ic::after{content:"";width:10px;height:8px;background:#fbfcff;-webkit-mask:var(--cf-chk) center/contain no-repeat;mask:var(--cf-chk) center/contain no-repeat}
.sc-body .c15-section .sc-step-card{min-height:64px;box-sizing:border-box;padding:10px 15px;gap:5px;border-radius:10px;justify-content:center}
.sc-body .c15-section .sc-step-card .t{font-size:18px;line-height:20px;font-weight:600;color:#fbfcff}
.sc-body .c15-section .sc-step-card .d{font-size:16px;line-height:19px;font-weight:500;letter-spacing:.16px;color:#fbfcff}
.sc-body .c15-milestones{margin:0 0 20px;padding:0;list-style:none;gap:5px}
.sc-body .c15-milestones li{display:inline-flex;flex-direction:column;gap:5px;width:max-content;max-width:100%;padding:10px 15px;border-radius:10px;background:#0050e3;color:#fbfcff;font-size:16px;line-height:19px}
.sc-body .c15-milestones li strong{font-size:18px;line-height:20px;font-weight:600}
.sc-body .c15-milestones li br{display:none}
/* результат */
.sc-body .c15-section .sc-rescard{margin:0;padding:15px;border-radius:10px;background:#fbfcff;font-size:22px;line-height:29px;font-weight:500}
.sc-body .c15-section .sc-rescard b{font-weight:600;color:#232323}
.sc-body .c15-section .sc-rescard .muted{color:rgba(35,35,35,.8)}
/* отзыв: вертикальное видео 318x565 (круг Play уже в обложке) */
.sc-body #otzyv h3{margin-bottom:24px}
.sc-body #otzyv .sc-vreview{position:relative;flex:0 0 318px;width:318px;height:565px;margin:0;border-radius:10px;box-shadow:none}
.sc-body #otzyv .sc-vreview img{width:100%;height:100%;object-fit:cover}
/* синий CTA 665x440 */
.sc-body #similar .sc-simwrap{width:665px;height:440px;padding:8px 15px 15px;border-radius:10px}
.sc-body #similar .sc-simwrap::before{background:linear-gradient(180deg,rgba(0,80,227,.85) 0%,rgba(0,80,227,.35) 45%,rgba(0,80,227,0) 70%)}
.sc-body #similar .sc-simwrap h4{max-width:440px;margin:0 0 14px;font-size:50px;line-height:50px;font-weight:600}
.sc-body #similar .sc-simbox{max-width:480px;font-size:20px;line-height:26px;font-weight:500;color:#fbfcff}
.sc-body #similar .sc-simbtn{min-height:62px;padding:10px 20px;border-radius:10px;background:#fbfcff;font-size:20px;line-height:24px;font-weight:600;color:#232323;transition:background-color .18s ease,translate .18s ease}
.sc-body .sc-spacer{display:none}

/* ---- «Наша команда»: стрелки 50 через 5, карточки 282x321 ---- */
body:has(.sc-wrap) .h14-block .h13-controls{gap:5px;margin-top:46px;margin-bottom:20px}
body:has(.sc-wrap) .h14-block .h14-expert{min-height:321px}

/* ---- «Наши кейсы» (другие кейсы): карточки 380 как в макете, кнопка 48 с текстом 16 ---- */
.sc-rel .case-btn{padding:14.5px 15px;font-size:16px;line-height:19px;font-weight:500;transition:background-color .18s ease,translate .18s ease}
.sc-rel .case-card{transition:box-shadow .18s ease,translate .18s ease}
.sc-rel .case-card:hover{transform:none}
.sc-rel .case-btn:hover{transform:none;box-shadow:none}

/* ---- «Пишите напрямую»: 190px до подвала, как в макете ---- */
body:has(.sc-wrap) [data-cms-promo=founder]{padding-bottom:190px!important}

/* ---- Материалы: «→ Читать больше постов», стрелка 15x10 как на главной ---- */
.cases-page div[style*="justify-content: space-between"]>div[style*="gap: 10px"]:last-child>div:only-child{display:inline-flex;align-items:center;gap:8px}
.cases-page div[style*="justify-content: space-between"]>div[style*="gap: 10px"]:last-child>div:only-child::before{content:"";width:15.4px;height:10px;background:currentColor;-webkit-mask:var(--f3-arr-short) center/contain no-repeat;mask:var(--f3-arr-short) center/contain no-repeat;transition:translate .18s ease}

/* ---- Наведение, нажатие, фокус (как на главной) ---- */
:is(.sc-chip,.sc-bc a,[data-c15-toc] a,[data-c15-side] .b,.sc-hcard--vid .c15-button,.sc-hcard--vid .c15-media,.c15-section .c15-media,#otzyv .sc-vreview,#similar .sc-simbtn,.sc-rel .case-btn):focus-visible{outline:2px solid #0050e3!important;outline-offset:3px!important;box-shadow:0 0 0 2px #fbfcff}
#similar .sc-simbtn:focus-visible{outline-color:#fbfcff!important;box-shadow:0 0 0 2px #0050e3}
:is(.sc-hcard--vid .c15-media,.c15-section .c15-media,#otzyv .sc-vreview):focus-visible{outline-offset:-4px!important}
:is([data-c15-side] .b,.sc-hcard--vid .c15-button,#similar .sc-simbtn,.sc-rel .case-btn):active{translate:0 1px}
[data-c15-side] .b.pri:active{background:#000}
[data-c15-side] .b.sec:active{background:#dce4fb}
.sc-hcard--vid .c15-button:active{background:#dce4fb}
#similar .sc-simbtn:active{background:#dce4fb}
.sc-rel .case-btn:active{background:#003ba9}
}
@media (min-width:900px) and (hover:hover) and (pointer:fine){
.sc-wrap .sc-bc a:hover{color:#0050e3}
body:has(.sc-wrap) #relok-shared-header .rh-cta:hover{background:#dce4fb}
body:has(.sc-wrap) .h14-block .h13-controls button:hover{background:#eaeffd}
.sc-wrap a.sc-chip:hover{background:#eaeffd;color:#232323}
.sc-body [data-c15-toc] a:hover{color:#0050e3}
.sc-body [data-c15-side] .b.pri:hover{background:#3a3a3a}
.sc-body [data-c15-side] .b.sec:hover{background:#eaeffd}
.sc-wrap .sc-hcard--vid .c15-button:hover{background:#dce4fb}
:is(.sc-hcard--vid .c15-media,.c15-section .c15-media):hover .c15-play::before{background:rgba(251,252,255,.6);scale:1.06}
#otzyv .sc-vreview:hover img{filter:brightness(1.06)}
#otzyv .sc-vreview img{transition:filter .18s ease}
#similar .sc-simbtn:hover{background:#eaeffd}
.sc-rel .case-card:hover{translate:0 -2px;box-shadow:0 10px 28px rgba(0,47,135,.12)}
.sc-rel .case-btn:hover{background:#0045c5}
}
/* ===== Мобильный шаблон (case-mobile.html, ширина 320 с zoom): та же система, таймлайн списком по месяцам как в мобильном макете (строки месяцев с синим пунктиром) ===== */
body:has(.c-wrap) .sc-hcard--vid .c15-avatar{display:none}
body:has(.c-wrap) .sc-hcard--vid .c15-person{margin:10px 0 4px;font-size:14px;line-height:17px;font-weight:600;color:#232323}
body:has(.c-wrap) .sc-hcard--vid .c15-person br,body:has(.c-wrap) .sc-hcard--vid .c15-person small:empty{display:none}
body:has(.c-wrap) .sc-hcard--vid .c15-person small{font-size:inherit;font-weight:500;color:rgba(35,35,35,.8)}
body:has(.c-wrap) .sc-hcard--vid .c15-person small:not(:empty)::before{content:", "}
body:has(.c-wrap) .sc-hcard--vid .c15-play{background:none;font-size:0}
body:has(.c-wrap) .sc-hcard--vid .c15-play::before{content:"";grid-area:1/1;width:56px;height:56px;border-radius:50%;background:rgba(251,252,255,.4);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
body:has(.c-wrap) .sc-hcard--vid .c15-play::after{content:"";grid-area:1/1;width:15.4px;height:21px;margin-left:4px;background:#fbfcff;clip-path:polygon(0 0,100% 50%,0 100%)}
/* таймлайн */
body:has(.c-wrap) .c15-timeline.sc-tl{margin:40px 0 0;padding:20px 16px;border-radius:16px;background:#ebeffb}
body:has(.c-wrap) .c15-timeline h2{margin:0 0 6px;font-size:22px;line-height:1.15;font-weight:700;color:#232323;text-align:left}
body:has(.c-wrap) .c15-timeline h2:empty{display:none}
body:has(.c-wrap) .c15-timeline h2 .cf-first{color:#0050e3}
body:has(.c-wrap) .c15-timeline .c15-eyebrow{margin:0 0 6px;text-align:left;font-size:11px;font-weight:600;text-transform:uppercase;color:rgba(35,35,35,.4)}
body:has(.c-wrap) .c15-timeline .c15-duration{margin:0 0 14px;text-align:left;font-size:12px;line-height:16px;font-weight:500;color:rgba(35,35,35,.7)}
body:has(.c-wrap) .c15-months{display:flex;flex-direction:column;gap:0}
body:has(.c-wrap) .c15-month{display:grid;grid-template-columns:70px minmax(0,1fr);align-items:start;padding:14px 0}
body:has(.c-wrap) .c15-month+.c15-month{border-top:2px dashed #0050e3}
body:has(.c-wrap) .c15-month h3{margin:0;padding-top:2px;font-size:12px;line-height:15px;font-weight:500;text-align:left;color:#232323}
body:has(.c-wrap) .c15-month h3 .cf-y{display:block;color:rgba(35,35,35,.5)}
body:has(.c-wrap) .c15-month ol{gap:8px}
body:has(.c-wrap) .c15-event{position:relative;display:flex;flex-direction:column;gap:6px;padding:12px 14px;border-radius:12px;background:#232323;color:#fbfcff}
body:has(.c-wrap) .c15-event p{order:-1;position:static;margin:0;font-size:14px;line-height:1.2;font-weight:600}
body:has(.c-wrap) .c15-event time,body:has(.c-wrap) .c15-event small{font-size:12px;line-height:15px;font-weight:500;color:rgba(255,255,255,.7)}
body:has(.c-wrap) .c15-event.c15-success{background:#0050e3}
body:has(.c-wrap) .c15-event.c15-success:has(p>span[aria-hidden]){background:#ff5804}
body:has(.c-wrap) .c15-event.c15-risk{background:#fbfcff;color:#232323;box-shadow:inset 0 0 0 2px #ff5804}
body:has(.c-wrap) .c15-event.c15-risk :is(time,small){color:rgba(35,35,35,.7)}
body:has(.c-wrap) .c15-event:has(p>span[aria-hidden]){padding-right:50px}
body:has(.c-wrap) .c15-event p>span[aria-hidden]{position:absolute;right:12px;top:50%;width:30px;height:30px;margin-top:-15px;font-size:0;background:var(--cf-seal) center/contain no-repeat}
/* содержание и консультация */
body:has(.c-wrap) [data-c15-toc]{margin:40px 0 0}
body:has(.c-wrap) [data-c15-toc] .h{margin:0 0 12px;font-size:22px;line-height:26px;font-weight:600;color:#232323}
body:has(.c-wrap) [data-c15-toc] .h::after{content:":"}
body:has(.c-wrap) [data-c15-toc] a{position:relative;display:block;min-height:0;margin:0;padding:6px 0 6px 12px;font-size:14px;line-height:17px;font-weight:500;color:rgba(35,35,35,.5)}
body:has(.c-wrap) [data-c15-toc] a::before{content:"";position:absolute;left:0;top:11.5px;width:5px;height:5px;border-radius:50%;background:currentColor}
body:has(.c-wrap) [data-c15-toc] a.c15-toc-h3{padding-left:12px}
body:has(.c-wrap) [data-c15-toc] a.active{color:#0050e3}
body:has(.c-wrap) [data-c15-side]{margin:20px 0 0;padding:15px;border-radius:16px;background:#fbfcff}
body:has(.c-wrap) [data-c15-side] h4{margin:0 0 6px;font-size:20px;line-height:24px;font-weight:600;color:#232323}
body:has(.c-wrap) [data-c15-side] .sub{margin:0 0 14px;font-size:12px;line-height:16px;font-weight:500;color:rgba(35,35,35,.8)}
body:has(.c-wrap) [data-c15-side] .b{height:44px;min-height:44px;margin:0;padding:0 12px;gap:8px;border-radius:10px;font-size:14px;line-height:17px;font-weight:600}
body:has(.c-wrap) [data-c15-side] .b.pri{background:#232323;border:0;color:#fbfcff}
body:has(.c-wrap) [data-c15-side] a.b.pri[href*="t.me"]::before{content:"";width:18px;height:16px;background:#5ac6ff;-webkit-mask:var(--cf-tg) center/contain no-repeat;mask:var(--cf-tg) center/contain no-repeat}
body:has(.c-wrap) [data-c15-side] .b.sec{margin-top:6px;background:transparent;border:1px solid #232323;color:#232323}
/* текст: списки с иконками, документы по два, этапы, результат */
body:has(.c-wrap) .c15-section .sc-list{gap:8px}
body:has(.c-wrap) .c15-section .sc-list li{padding-left:26px;font-weight:500}
body:has(.c-wrap) .c15-section .sc-list li::before{content:"";position:absolute;left:0;top:1px;width:20px;height:20px;background:#0050e3;-webkit-mask:var(--cf-warn) center/contain no-repeat;mask:var(--cf-warn) center/contain no-repeat}
body:has(.c-wrap) [data-c15-content]>.c15-section:not(:first-child) .sc-list li{padding-left:20px;font-weight:600}
body:has(.c-wrap) [data-c15-content]>.c15-section:not(:first-child) .sc-list li::before{top:4px;width:13px;height:14px;-webkit-mask-image:var(--cf-bolt);mask-image:var(--cf-bolt)}
body:has(.c-wrap) .sc-content>.c15-section{display:flex;flex-wrap:wrap;column-gap:8px}
body:has(.c-wrap) .sc-content>.c15-section>*{flex:0 0 100%;max-width:100%}
body:has(.c-wrap) .sc-content>.c15-section>p:has(>.sc-doc){flex:0 0 calc(50% - 4px)}
body:has(.c-wrap) .c15-section .sc-doc{display:block;width:100%;height:auto;aspect-ratio:328/410;margin:0;object-fit:contain;background:#fff;border-radius:8px;box-shadow:0 3px 12px rgba(0,0,0,.05)}
body:has(.c-wrap) .c15-section .sc-photo{border-radius:10px}
body:has(.c-wrap) .c15-section .sc-steps{margin:4px 0 16px;padding-left:26px;display:flex;flex-direction:column;gap:5px}
body:has(.c-wrap) .c15-section .sc-steps::before{display:none}
body:has(.c-wrap) .c15-section .sc-step{position:relative;margin:0}
body:has(.c-wrap) .c15-section .sc-step+.sc-step::before{content:"";position:absolute;left:-17.75px;top:-40px;height:41px;width:1.5px;background:#0050e3}
body:has(.c-wrap) .c15-section .sc-step-ic{position:absolute;left:-26px;top:50%;width:18px;height:18px;margin-top:-9px;border-radius:50%;background:#0050e3;display:grid;place-items:center;color:transparent;font-size:0}
body:has(.c-wrap) .c15-section .sc-step-ic::after{content:"";width:9px;height:7px;background:#fbfcff;-webkit-mask:var(--cf-chk) center/contain no-repeat;mask:var(--cf-chk) center/contain no-repeat}
body:has(.c-wrap) .c15-section .sc-step-card{display:inline-flex;flex-direction:column;gap:4px;width:auto;max-width:100%;margin:0;padding:10px 12px;border-radius:10px;background:#0050e3}
body:has(.c-wrap) .c15-section .sc-step-card .t{font-size:14px;line-height:17px;font-weight:600;color:#fbfcff}
body:has(.c-wrap) .c15-section .sc-step-card .d{font-size:12px;line-height:15px;font-weight:500;color:#fbfcff}
body:has(.c-wrap) .c15-section .sc-rescard{padding:12px;border-radius:12px;background:#fbfcff;font-size:16px;line-height:22px;font-weight:500}
body:has(.c-wrap) .c15-section .sc-rescard b{font-weight:600;color:#232323}
body:has(.c-wrap) .c15-section .sc-rescard .muted{color:rgba(35,35,35,.8)}
body:has(.c-wrap) .c15-milestones{margin:0 0 16px;padding:0;list-style:none;gap:5px}
body:has(.c-wrap) .c15-milestones li{display:flex;flex-direction:column;gap:4px;width:max-content;max-width:100%;padding:10px 12px;border-radius:10px;background:#0050e3;color:#fbfcff;font-size:12px;line-height:15px}
body:has(.c-wrap) .c15-milestones li strong{font-size:14px;line-height:17px;font-weight:600}
body:has(.c-wrap) .c15-milestones li br{display:none}
/* состояния (касание и клавиатура) */
body:has(.c-wrap) :is([data-c15-toc] a,[data-c15-side] .b,.sc-hcard--vid .c15-media,.c15-section .c15-media,.c-vreview,.c-simbtn2):focus-visible{outline:2px solid #0050e3!important;outline-offset:3px!important;box-shadow:0 0 0 2px #fbfcff}
body:has(.c-wrap) [data-c15-side] .b:active{translate:0 1px}
body:has(.c-wrap) [data-c15-side] .b.pri:active{background:#000}
body:has(.c-wrap) [data-c15-side] .b.sec:active{background:#dce4fb}
body:has(.c-wrap) .c-simbtn2:active{background:#dce4fb}

@media (prefers-reduced-motion:reduce){
:is(.sc-chip,.sc-bc a,[data-c15-toc] a,[data-c15-side] .b,.sc-hcard--vid .c15-button,#similar .sc-simbtn,.sc-rel .case-card,.sc-rel .case-btn,.c15-play::before){transition:none!important;translate:none!important;scale:none!important}
}

/* N47 (30.10.2026): пояснение границ общего срока */
.c15-timeline .c15-range{margin:6px 0 0;font-size:14px;line-height:1.35;font-weight:500;color:rgba(35,35,35,.7);max-width:760px}
body:has(.c-wrap) .c15-timeline .c15-range{font-size:12px;line-height:1.35;margin:4px 0 0}
body:has(.c-wrap) .c15-timeline .c15-duration:has(+.c15-range){margin-bottom:0}
body:has(.c-wrap) .c15-timeline .c15-range{margin:4px 0 14px}
.sc-body .c15-timeline .c15-range{text-align:center;margin:6px auto 0}
