#rvOverlay [hidden]{display:none!important}
#rvRevText{white-space:normal;overflow-wrap:anywhere;min-width:0}
#rvRevText p{margin:0 0 1em;line-height:inherit}
#rvRevText p:last-child{margin-bottom:0}
#rvRevText ul,#rvRevText ol{margin:0 0 1em;padding-left:1.5em}
#rvRevText ul{list-style:disc}#rvRevText ol{list-style:decimal}
#rvRevText li{margin:0 0 .4em}
#rvRevText strong,#rvRevText b{font-weight:700}
#rvRevText em,#rvRevText i{font-style:italic}
#rvRevText a{color:#0050e3;text-decoration:underline;text-underline-offset:2px}
#rvMedia{margin:0;max-width:100%;display:flex;flex-direction:column;gap:10px;align-self:start}
#rvMedia img,#rvMedia video{display:block;width:100%;height:auto;max-height:60vh;object-fit:contain;border-radius:10px}
#rvMedia iframe{width:100%;aspect-ratio:16/9;border:0}
#rvOverlay .rvm-rev:has(#rvMedia[data-kind="embed"]),#rvOverlay .rvm-rev:has(#rvMedia[data-kind="file"]){flex-direction:column;align-items:stretch}
#rvMedia[data-kind="embed"],#rvMedia[data-kind="file"]{width:100%;flex:none;align-self:center;order:-1}
#rvMedia[data-format="portrait"]{max-width:360px}
#rvMedia[data-format="portrait"] iframe,#rvMedia[data-format="portrait"] video{aspect-ratio:9/16;max-height:none;height:auto;object-fit:contain}
#rvMedia[data-format="portrait"] img{max-height:480px;object-fit:contain}
#rvMedia[data-format="landscape"] video{aspect-ratio:16/9;max-height:none}
#rvOverlay .rvm-head-l{min-width:0;flex:1;overflow-wrap:anywhere}
#rvRevText img{display:block;max-width:100%;height:auto;object-fit:contain}
#rvRevText[data-image-size="small"] img{max-width:min(100%,240px)}
#rvRevText[data-image-size="medium"] img{max-width:min(100%,400px)}
#rvOverlay .rvm-rev:has(#rvMedia[data-kind="image"]){flex-direction:column;align-items:stretch}
#rvMedia[data-kind="image"]{width:100%;flex:none;align-self:start;order:-1}
#rvMedia[data-kind="image"][data-image-size="small"]{max-width:240px}
#rvMedia[data-kind="image"][data-image-size="medium"]{max-width:400px}
#rvMedia[data-kind="image"] img{height:auto;max-height:none;object-fit:contain}
#rvMedia figcaption,#rvApprovals figcaption{font:inherit;font-size:14px;line-height:1.4}
.relok-review-play{border:0;border-radius:10px;background:#0050e3;color:#fbfcff;padding:16px;cursor:pointer;font:inherit}
#rvApprovalsGallery{display:flex;flex-wrap:wrap;gap:16px}
#rvApprovalsGallery figure{margin:0;flex:1 1 160px;min-width:0;max-width:100%}
#rvApprovalsGallery button{border:0;padding:0;background:transparent;cursor:zoom-in;width:100%}
#rvApprovalsGallery img{display:block;width:100%;height:auto;max-height:360px;object-fit:contain}
.relok-evidence-dialog{max-width:min(95vw,1100px);max-height:92vh;padding:16px;border:0;border-radius:12px;background:#fbfcff;color:#232323}
.relok-evidence-dialog::backdrop{background:rgba(0,0,0,.75)}
.relok-evidence-dialog img{display:block;max-width:100%;max-height:75vh;object-fit:contain;margin:12px auto}
.relok-evidence-dialog button{font:inherit;cursor:pointer;padding:10px}

/* ===== 27.10.2026 relocant-reviews: страница «Наши отзывы» и окно отзыва по макету (desktop.pdf, «попап внутри.pdf»).
   Только вёрстка и цвета. ПК-шаблон = body:has(.cases-page), мобильный (320 с zoom) = body:has(.mc). ===== */
:root{--rr-chev:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 9 14' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7.5 1 1.5 7l6 6'/%3E%3C/svg%3E");
--rr-chev-up:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 8' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m.75 7.25 6.25-6.5 6.25 6.5'/%3E%3C/svg%3E")}

/* ---- Шапка ПК: как на главной (меню по центру, кнопка Telegram с синей точкой) ---- */
#relok-shared-header[data-mobile="0"] nav{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);gap:20px}
#relok-shared-header[data-mobile="0"] nav a{padding:8px 0;color:#232323}
#relok-shared-header[data-mobile="0"] .rh-cta{display:inline-flex;align-items:center;gap:8px;min-height:40px;padding:10px 14px 10px 10px;border-radius:10px;background:#eaeffd;color:#232323;font-size:16px;line-height:1.2;max-width:none}
#relok-shared-header[data-mobile="0"] .rh-cta::before{content:"";width:10px;height:10px;border-radius:50%;background:#0050e3;flex:0 0 10px}
/* ---- Шапка мобилы: как на мобильной главной ---- */
#relok-shared-header[data-mobile="1"] .rh-cta{display:inline-flex;align-items:center;gap:6px;background:#232323;color:#fbfcff;border-radius:10px;padding:8px 10px;line-height:1.15;transition:background-color .15s ease}
#relok-shared-header[data-mobile="1"] .rh-cta::before{content:"";flex:0 0 16px;width:16px;height:16px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fbfcff' 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") center/contain no-repeat}
#relok-shared-header[data-mobile="1"] .rh-menu{width:44px;height:44px;min-width:44px;padding:0;border-radius:10px;background:#0050e3;color:#fbfcff;font-size:22px;line-height:44px;text-align:center;transition:background-color .15s ease}

/* ---- Подвал: как на главной (3.pdf) ---- */
body:has(.cases-page) #relok-global-footer{height:496px;overflow:hidden}
body:has(.cases-page) #relok-global-footer .rg-footer-inner{padding:30px 20px 0}
body:has(.cases-page) #relok-global-footer .rg-footer-columns{grid-template-columns:419px 239px 1fr auto;gap:30px}
body:has(.cases-page) #relok-global-footer .rg-footer-column h2{font-size:16px;line-height:19px;margin:0 0 17px;text-transform:uppercase}
body:has(.cases-page) #relok-global-footer .rg-footer-links{gap:10px}
body:has(.cases-page) #relok-global-footer .rg-footer-links a,body:has(.cases-page) #relok-global-footer .rg-footer-links span{font-size:16px;line-height:19px}
body:has(.cases-page) #relok-global-footer .rg-footer-links .rg-contact{font-size:36px;line-height:40px}
body:has(.cases-page) #relok-global-footer .rg-footer-column:nth-child(2) .rg-footer-links a{font-size:22px;line-height:26px}
body:has(.cases-page) #relok-global-footer .rg-footer-legal{display:grid;grid-template-columns:718px auto;column-gap:0;margin-top:41px;font-size:14px;line-height:17px}
body:has(.cases-page) #relok-global-footer .rg-footer-legal [data-footer-item=rights]{grid-row:2}
body:has(.cases-page) #relok-global-footer .rg-footer-legal [data-footer-item=privacy]{grid-column:2;grid-row:1/3;max-width:150px}
body:has(.cases-page) #relok-global-footer .rg-watermark{margin-top:10px;max-height:none;height:174px;object-fit:contain;object-position:left top}
body:has(.cases-page) #relok-global-footer .rg-footer-links a:not(.rg-contact),body:has(.cases-page) #relok-global-footer .rg-footer-legal{font-weight:500}
#relok-global-footer [data-footer-top]{display:inline-flex;align-items:center;gap:8px}
body:has(.cases-page) #relok-global-footer [data-footer-top]{margin-top:-11px}
#relok-global-footer [data-footer-top]::after{content:"";width:14px;height:8px;background:currentColor;-webkit-mask:var(--rr-chev-up) center/contain no-repeat;mask:var(--rr-chev-up) center/contain no-repeat;transition:translate .18s ease}
#relok-global-footer .f3-arr{display:none}

/* ---- Крошки, заголовок, чипы (ПК): крошки на 11px выше, как в макете ---- */
.cases-page .cases-bc{padding-top:29px}
#relok-shared-header[data-mobile="0"]{padding-right:10px}
.cases-chips .cases-chip::before{content:"";flex:0 0 8px;width:8px;height:8px;border-radius:50%;background:#0050e3}
.cases-chips .cases-chip.is-active::before{background:#fbfcff}
.cases-chips .cases-chip{gap:5px;padding:10px 14px;line-height:19.2px;min-height:39px;transition:color .18s ease,background-color .18s ease}
.cases-chips .cases-chip:hover{box-shadow:none}
.cases-chips .cases-chip.is-active{color:#fbfcff}

/* ---- Сетка карточек (ПК): 3 x 380, зазор 10/40, отступ от чипов 40 ---- */
.cases-page .rv-grid{margin-top:40px;gap:40px 10px}
.cases-page .cases-wrap{padding-bottom:40px}
.cases-page .rv-card{transition:box-shadow .18s ease}
.cases-page .rv-card:hover{transform:none;box-shadow:none}
.rv-card .rv-text{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;line-clamp:3;overflow:hidden}
.cases-page .rv-body{gap:20px}
.cases-page .rv-btn{font-size:18px;font-weight:500;line-height:22px;padding:14px 10px;transition:background-color .18s ease,translate .18s ease}
.rv-btn.rv-btn-blue:hover,.rv-btn.rv-btn-dark:hover{transform:none;box-shadow:none}
.rv-img .cms-review-photo{cursor:pointer}

/* ---- Пагинация: цифры 16/500 80%, текущая тёмная 38x38 r6, стрелки-шевроны ---- */
.relok-pagination{margin:40px 0 0}
.relok-pagination ul,.relok-pagination ul.page-numbers{display:flex;justify-content:center;flex-wrap:wrap;gap:5px;align-items:center;margin:0;padding:0;min-width:0;min-height:0;border-radius:0;background:none}
.relok-pagination :not(ul).page-numbers{min-width:38px;min-height:38px;padding:0 6px;border-radius:6px;color:rgba(35,35,35,.8);font-size:16px;font-weight:500;line-height:19px;letter-spacing:.16px;transition:background-color .18s ease,color .18s ease}
.relok-pagination .page-numbers.current{background:#232323;color:#fbfcff}
.relok-pagination .page-numbers.dots{min-width:20px;padding:0}
.relok-pagination .page-numbers:is(.prev,.next){font-size:0;width:38px;padding:0;color:#232323}
.relok-pagination :is(.prev,.next)::before{content:"";width:9px;height:14px;background:currentColor;-webkit-mask:var(--rr-chev) center/contain no-repeat;mask:var(--rr-chev) center/contain no-repeat;transition:translate .18s ease}
.relok-pagination .next::before{transform:scaleX(-1)}
.relok-pagination li:first-child .prev{margin-right:12px}
.relok-pagination li:last-child .next{margin-left:12px}

/* ---- Фокус с клавиатуры: как на главной ---- */
:is(.cases-chip,.m-chip,.rv-btn,.relok-pagination a,#rvOverlay button,#rvOverlay a,.cms-review-photo):focus-visible{outline:2px solid #0050e3!important;outline-offset:3px!important;box-shadow:0 0 0 2px #fbfcff}
#rvOverlay .rvm-cta :is(a,button):focus-visible{outline-color:#fbfcff!important;box-shadow:0 0 0 2px #0050e3}
.cms-review-photo:focus-visible{outline-offset:-4px!important}

/* ---- Окно отзыва (ПК, 554) ---- */
body:has(.cases-page) #rvOverlay{background:rgba(0,0,0,.35);padding:40px 20px}
#rvOverlay .rvm-pill::before{content:"";flex:0 0 8px;width:8px;height:8px;border-radius:50%;background:#0050e3}
body:has(.cases-page) #rvOverlay .rvm-head{padding:10px;align-items:flex-start}
body:has(.cases-page) #rvOverlay .rvm-headimg{width:85px;height:85px;align-self:flex-start;border-radius:10px;object-fit:cover}
body:has(.cases-page) #rvOverlay .rvm-rev-text{line-height:19.2px}
#rvRevText p{margin-bottom:1.2em}
/* видео: вертикальное справа 200x352, круг Play 50 по центру обложки */
body:has(.cases-page) #rvOverlay .rvm-rev:has(#rvMedia[data-format="portrait"]:is([data-kind="embed"],[data-kind="file"])){flex-direction:row-reverse;align-items:flex-start;gap:20px}
body:has(.cases-page) #rvMedia[data-format="portrait"]:is([data-kind="embed"],[data-kind="file"]){order:0;flex:0 0 200px;width:200px;max-width:200px;align-self:flex-start;margin-top:1px}
#rvMedia:is([data-kind="embed"],[data-kind="file"]){position:relative;border-radius:10px}
#rvMedia:is([data-kind="embed"],[data-kind="file"])>img{width:100%;height:auto;aspect-ratio:200/352;max-height:none;object-fit:cover;border-radius:10px}
#rvMedia[data-format="landscape"]>img{aspect-ratio:16/9}
#rvMedia[data-format="portrait"] :is(iframe,video){border-radius:10px;background:#232323}
#rvMedia .relok-review-play{position:absolute;left:0;top:0;width:100%;aspect-ratio:200/352;padding:0;border-radius:10px;background:transparent;color:transparent;font-size:0;line-height:0;overflow:hidden}
#rvMedia[data-format="landscape"] .relok-review-play{aspect-ratio:16/9}
#rvMedia img+.relok-review-play{position:absolute}
#rvMedia .relok-review-play:only-child{position:relative;background:#232323}
#rvMedia .relok-review-play::before{content:"";position:absolute;left:50%;top:50%;width:50px;height:50px;margin:-25px 0 0 -25px;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}
#rvMedia .relok-review-play::after{content:"";position:absolute;left:50%;top:50%;width:13.5px;height:19.8px;margin:-9.9px 0 0 -4px;background:#fbfcff;clip-path:polygon(0 0,100% 50%,0 100%)}
/* одобрения: по 2 в ряд 257x323, белая карточка с мягкой тенью */
#rvApprovals .rvm-h{font-size:18px;font-weight:600;line-height:19.8px}
#rvApprovalsGallery{display:grid;grid-template-columns:1fr 1fr;gap:10px}
#rvApprovalsGallery figure{max-width:none}
#rvApprovalsGallery button{display:block;border-radius:10px;transition:box-shadow .18s ease}
#rvApprovalsGallery img{width:100%;height:auto;aspect-ratio:258/323;max-height:none;object-fit:contain;background:#fff;border-radius:10px;box-shadow:0 3px 12px rgba(0,0,0,.05)}
/* кейс клиента и консультация */
body:has(.cases-page) #rvOverlay .rvm-casebtn{padding:20px 15px;font-size:20px;font-weight:600;line-height:22px;transition:background-color .18s ease,translate .18s ease}
body:has(.cases-page) #rvOverlay .rvm-cta-s{max-width:400px!important}
#rvOverlay .rvm-cta-btn{transition:background-color .18s ease,translate .18s ease;cursor:pointer}
#rvOverlay .rvm-cta-btn .f3-arr{display:none}
body:has(.cases-page) #rvOverlay .rvm-cta-btn{padding:20px 15px;font-weight:600}
#rvOverlay .rvm-close{transition:background-color .18s ease}

/* ---- Мобильный шаблон (320 с zoom): та же система ---- */
.mc .m-chips{flex-wrap:wrap;overflow:visible;margin:18px 0 0;padding:0}
.mc .m-chip{white-space:normal;gap:5px;padding:8px 11px;line-height:16px;transition:color .18s ease,background-color .18s ease}
.mc .m-chip::before{content:"";flex:0 0 7px;width:7px;height:7px;border-radius:50%;background:#0050e3}
.mc .m-chip.is-active{background:#232323;color:#fbfcff}
.mc .m-chip.is-active::before{background:#fbfcff}
.mc .rv-btn{font-weight:500;line-height:19px;padding:13px 10px;transition:background-color .18s ease,translate .18s ease}
.mc .relok-pagination{margin-top:24px}
.mc .relok-pagination ul.page-numbers{gap:2px;flex-wrap:nowrap}
.mc .relok-pagination :not(ul).page-numbers{min-width:32px;min-height:32px;padding:0 4px;font-size:14px}
.mc .relok-pagination .page-numbers:is(.prev,.next){width:32px;font-size:0}
.mc .relok-pagination li:first-child .prev{margin-right:2px}
.mc .relok-pagination li:last-child .next{margin-left:2px}
.mc .m-bc{justify-content:center}
.mc .m-h1{text-align:center}
.mc .m-chips{justify-content:center}
body:has(.mc) #rvOverlay .rvm-cta-t{display:flex;flex-direction:column;gap:8px}
/* окно: на всю ширину с полями 10, порядок как в макете: шапка, «Отзыв …:», видео, текст */
body:has(.mc) #rvOverlay{padding:56px 10px 30px}
body:has(.mc) #rvOverlay .rv-modal{width:100%;max-width:300px}
body:has(.mc) #rvOverlay .rvm-head{flex-direction:row-reverse;align-items:flex-start;padding:10px;gap:8px}
body:has(.mc) #rvOverlay .rvm-head-l{flex:1;min-width:0}
body:has(.mc) #rvOverlay .rvm-headimg{width:64px;height:64px;border-radius:8px}
body:has(.mc) #rvOverlay :is(.rvm-name,.rvm-role){white-space:normal}
body:has(.mc) #rvOverlay .rvm-name{font-size:15px;line-height:18px}
body:has(.mc) #rvOverlay .rvm-role{font-size:13px;line-height:16px}
body:has(.mc) #rvOverlay .rvm-pill{font-size:12px;line-height:14px;padding:6px 9px;gap:5px}
body:has(.mc) #rvOverlay .rvm-pill::before{flex-basis:6px;width:6px;height:6px}
body:has(.mc) #rvOverlay .rvm-rev{flex-direction:column;gap:10px}
body:has(.mc) #rvOverlay .rvm-rev .rvm-h{order:-2;margin-top:0}
body:has(.mc) #rvMedia{order:-1;width:100%;max-width:none}
body:has(.mc) #rvMedia[data-format="portrait"]:is([data-kind="embed"],[data-kind="file"]){max-width:200px;align-self:center}
body:has(.mc) #rvOverlay .rvm-h{font-size:16px;font-weight:600;line-height:19px}
body:has(.mc) #rvOverlay .rvm-rev-text{font-size:14px;line-height:18px;opacity:.8}
body:has(.mc) #rvOverlay .rvm-appr img{width:100%;height:auto}
body:has(.mc) #rvApprovalsGallery{gap:8px}
body:has(.mc) #rvOverlay .rvm-casebtn{padding:14px 10px;font-size:16px;font-weight:600;line-height:19px}
body:has(.mc) #rvOverlay .rvm-cta{min-height:300px;padding:12px}
body:has(.mc) #rvOverlay .rvm-cta-h{font-size:24px;line-height:26px}
body:has(.mc) #rvOverlay .rvm-cta-s{font-size:13px;line-height:16px}
body:has(.mc) #rvOverlay .rvm-cta-btn{padding:14px 10px;font-size:15px;line-height:18px}

/* ---- Наведение (как на главной): синие #0045C5/#003BA9, тёмные #3A3A3A/#000, белые #EAEFFD/#DCE4FB ---- */
@media (hover:hover) and (pointer:fine){
#relok-shared-header nav a:hover{color:#0050e3!important}
#relok-shared-header[data-mobile="0"] .rh-cta:hover{background-color:#dce4fb}
#relok-shared-header[data-mobile="1"] .rh-cta:hover{background:#000}
#relok-shared-header .rh-menu:hover{background-color:#0045c5}
#relok-global-footer .rg-footer-links a:hover,#relok-global-footer .rg-footer-legal a:hover{text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1px}
[data-footer-top]:hover::after{translate:0 -3px}
:is(.cases-chip,.m-chip):not(.is-active):hover{color:#0050e3}
:is(.cases-chip,.m-chip).is-active:hover{background-color:#3a3a3a;color:#fbfcff}
.rv-btn.rv-btn-blue:hover,#rvOverlay .rvm-casebtn.rv-btn-blue:hover{background-color:#0045c5}
.rv-btn.rv-btn-dark:hover,#rvOverlay .rvm-casebtn:hover{background-color:#3a3a3a}
.cases-page .rv-card:hover,.mc .rv-card:hover{box-shadow:0 10px 28px rgba(0,47,135,.12)}
.relok-pagination a.page-numbers:not(.prev):not(.next):hover{color:#0050e3;background-color:rgba(0,80,227,.07)}
.relok-pagination :is(.prev,.next):hover{color:#0050e3}
.relok-pagination .prev:hover::before{translate:-3px 0}
.relok-pagination .next:hover::before{translate:3px 0}
#rvMedia .relok-review-play:hover::before{background-color:rgba(251,252,255,.6);scale:1.06}
#rvApprovalsGallery button:hover{box-shadow:0 8px 22px rgba(0,47,135,.12)}
#rvOverlay .rvm-cta-btn:hover{background-color:#eaeffd}
#rvOverlay .rvm-close:hover{background-color:#fbfcff}
}
/* Нажатие */
:is(.rv-btn,#rvOverlay .rvm-casebtn,#rvOverlay .rvm-cta-btn,.cases-chip,.m-chip,#relok-shared-header .rh-cta,#relok-shared-header .rh-menu):active{translate:0 1px}
.rv-btn.rv-btn-blue:active{background-color:#003ba9}
.rv-btn.rv-btn-dark:active,#rvOverlay .rvm-casebtn:active{background-color:#000}
#rvOverlay .rvm-cta-btn:active{background-color:#dce4fb}
#relok-shared-header[data-mobile="0"] .rh-cta:active{background-color:#dce4fb}
#relok-shared-header[data-mobile="1"] .rh-cta:active{background:#3a3a3a}
#relok-shared-header .rh-menu:active{background-color:#003ba9}
#rvMedia .relok-review-play:active::before{background-color:rgba(251,252,255,.7)}
/* Без анимации движения: только смена цвета */
@media (prefers-reduced-motion:reduce){
:is(.rv-btn,#rvOverlay .rvm-casebtn,#rvOverlay .rvm-cta-btn,.cases-chip,.m-chip,#relok-shared-header .rh-cta,#relok-shared-header .rh-menu):active,
.relok-pagination :is(.prev,.next):hover::before,[data-footer-top]:hover::after{translate:none!important}
#rvMedia .relok-review-play:hover::before{scale:none}
:is(.rv-card,.rv-btn,.cases-chip,.m-chip,#rvOverlay .rvm-casebtn,#rvOverlay .rvm-cta-btn,#rvApprovalsGallery button,.relok-pagination .page-numbers){transition-property:background-color,color,box-shadow!important}
}
