/*
Theme Name: РЕГИОН ИПОТЕКА 2026
Theme URI: https://regipoteka.ru/
Author: РЕГИОН ИПОТЕКА
Description: Индивидуальная блочная тема; чистая адаптивная вёрстка и редактор Gutenberg.
Version: 9.5
Requires at least: 6.4
Requires PHP: 8.1
Text Domain: regipoteka-2026
*/
:root{
  --ri-green:#8cc63f;--ri-dark:#2e454f;--ri-ink:#25323a;--ri-soft:#f3f8ed;
  --ri-line:#e0e7e2;--ri-page-width:1360px;--ri-gutter:clamp(20px,3.4vw,56px);
}
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;min-width:320px;background:#fff;color:var(--ri-ink);font:16px/1.6 Arial,Helvetica,sans-serif}
a{color:#357916;text-underline-offset:4px}a:hover{color:#255a12}
img,svg{max-width:100%;height:auto}
.wp-site-blocks{overflow-x:clip}
/* WordPress content-layout reset. Pages are full-width, sections own their content boundaries. */
body .wp-site-blocks>main,body .wp-site-blocks main.wp-block-group,
body .wp-site-blocks main>.wp-block-post-content,
body .wp-site-blocks .wp-block-post-content{
  display:block;width:100%;max-width:none;margin:0;padding:0;
}
body .wp-block-post-content> :is(.ri-hero,.ri-section,.ri-landing),
body .ri-header-shell,body .ri-footer-shell{
  width:calc(100% - 2 * var(--ri-gutter));max-width:var(--ri-page-width);
  margin-inline:auto;padding-inline:0;
}
/* Remove Gutenberg's default 780px content constraint inside our bespoke sections. */
body .wp-block-post-content> :is(.ri-section,.ri-landing,.ri-hero)>*,
body .wp-block-post-content> :is(.ri-section,.ri-landing,.ri-hero)>.is-layout-constrained>*{
  max-width:100%;margin-left:0;margin-right:0;
}
body .wp-block-post-content :is(.ri-section,.ri-landing,.ri-hero) .wp-block-columns,
body .wp-block-post-content :is(.ri-section,.ri-landing,.ri-hero) .wp-block-group{
  min-width:0;
}
/* Shared header and footer geometry. Header is not full-screen width. */
body .ri-header-shell{
  display:flex;align-items:center;justify-content:space-between;gap:28px;
  min-height:126px;border-bottom:1px solid var(--ri-line);
}
body .ri-header-shell .wp-block-navigation{display:flex;align-items:center;justify-content:flex-end;gap:20px;margin-left:auto;min-width:0}
body .ri-header-shell .wp-block-navigation__container{display:flex;align-items:center;flex-wrap:nowrap;gap:clamp(14px,1.5vw,25px)}
body .ri-header-shell .wp-block-navigation a{text-decoration:none;color:var(--ri-ink);font-size:15px;font-weight:700;white-space:nowrap}
body .ri-header-shell .wp-block-navigation a:hover{color:#368020}
body .ri-partner-login{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;white-space:nowrap;
  border:2px solid var(--ri-green);border-radius:9px;background:#f4f9eb;padding:8px 15px;
  font-size:14px;font-weight:800;color:var(--ri-dark)!important;text-decoration:none!important}
body .ri-partner-login:hover{background:#e4f3d3}
/* Brand lockup: mark | divider | two-line title + founding year. */
body .ri-header-brand,body .ri-footer-brand{
  display:grid;grid-template-columns:92px 202px;grid-template-rows:auto auto;
  grid-template-areas:'mark name' 'mark since';column-gap:18px;row-gap:3px;
  align-items:center;align-content:center;justify-content:start;flex:none;width:max-content;max-width:100%;margin:0;
}
body .ri-header-brand .wp-block-site-logo,body .ri-footer-brand .wp-block-site-logo{
  grid-area:mark;position:relative;display:flex;align-items:center;justify-content:center;
  width:86px;height:90px;margin:0;
}
body .ri-header-brand .wp-block-site-logo::after,body .ri-footer-brand .wp-block-site-logo::after{
  content:'';position:absolute;top:8px;bottom:8px;right:-12px;width:1px;background:#b7c1c2;
}
body .ri-header-brand .wp-block-site-logo img,body .ri-footer-brand .wp-block-site-logo img{
  display:block;width:80px;height:80px;max-width:80px;max-height:80px;object-fit:contain;
}
body .ri-header-brand .wp-block-site-title,body .ri-footer-brand .wp-block-site-title{
  grid-area:name;width:176px;max-width:176px;margin:0;font-size:26px;font-weight:800;line-height:.98;
  letter-spacing:0;text-transform:uppercase;white-space:normal;word-break:normal;
}
body .ri-header-brand .wp-block-site-title a,body .ri-footer-brand .wp-block-site-title a{
  color:var(--ri-dark);text-decoration:none;font-weight:800;
}
body .ri-header-brand .ri-since,body .ri-footer-brand .ri-since{
  grid-area:since;margin:0;padding:0;border:0;color:#667277;font-size:14px;line-height:1.25;white-space:nowrap;
}
/* Homepage hero: maintain two columns on desktop, regardless of browser zoom-out. */
body .wp-block-post-content>.ri-hero{
  display:grid;grid-template-columns:minmax(0,1.04fr) minmax(0,.96fr);gap:clamp(22px,3vw,55px);
  align-items:center;padding-block:60px 48px;min-height:520px;
}
body .ri-hero-copy,body .ri-hero-art{width:100%;min-width:0;max-width:100%;margin:0}
body .ri-eyebrow{font-size:15px;color:#4b6e43;border-left:4px solid var(--ri-green);padding-left:14px;margin:0 0 20px}
body .ri-hero h1{font-size:clamp(35px,3.55vw,56px);font-weight:800;line-height:1.12;letter-spacing:-.028em;
  color:var(--ri-dark);margin:0 0 23px;overflow-wrap:normal}
body .ri-hero-copy>p:not(.ri-eyebrow):not(.ri-tagline){font-size:17px;line-height:1.7;color:#37454a;margin:0}
body .ri-tagline{font-size:18px;color:#4b921d;margin:24px 0 0}
body .ri-hero-art{position:relative;min-height:430px}
body .ri-hero-illustration{width:100%;height:100%;min-height:430px;background:url('assets/hero-approved.webp') center/contain no-repeat}
body .ri-hero-art::before{content:none}
/* Sections are aligned on the same line as the site logo/header. */
body .wp-block-post-content>.ri-section{padding-block:58px}
body .wp-block-post-content>.ri-stats-section{padding-block:26px 35px}
body .ri-section+.ri-section{border-top:1px solid var(--ri-line)}
body .ri-section h2{font-size:clamp(27px,2.6vw,38px);line-height:1.22;font-weight:800;letter-spacing:-.015em;
  color:var(--ri-dark);margin:0 0 20px}
body .ri-section h3{font-size:clamp(19px,1.6vw,24px);line-height:1.3;color:var(--ri-dark);margin:0 0 13px}
body .ri-section-lead{font-size:18px;color:#56646a;margin:0 0 28px}
body .ri-section>p{margin-top:0}
/* Generic Gutenberg columns remain editable and are presented as CSS grid. */
body .ri-section .wp-block-columns{display:grid;gap:22px;margin-block:25px;align-items:stretch}
body .ri-section .wp-block-columns>.wp-block-column{flex:none!important;min-width:0;width:auto!important;max-width:none!important;margin:0}
body .ri-cards-two,body .ri-network-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
body .ri-cards-three,body .ri-directions{grid-template-columns:repeat(3,minmax(0,1fr))}
body .ri-steps{grid-template-columns:repeat(4,minmax(0,1fr))}
body .ri-stats-section .ri-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;margin:0}
body .ri-metrics>.wp-block-column{min-width:0;flex:none!important;width:auto!important;padding:12px 22px;border-right:1px solid var(--ri-line)}
body .ri-metrics>.wp-block-column:first-child{padding-left:0}
body .ri-metrics>.wp-block-column:last-child{border:0}
body .ri-metric h3{font-size:clamp(29px,2.6vw,43px);font-weight:800;color:var(--ri-dark);line-height:1;margin:0 0 9px;font-variant-numeric:tabular-nums}
body .ri-metric p{font-size:15px;color:#626b6b;margin:0}
/* Shared card components */
body :is(.ri-card,.ri-direction-card,.ri-network-node,.ri-step){background:#fff;border:1px solid #e0e8de;border-radius:15px;
  padding:28px;box-shadow:0 6px 20px rgba(30,52,45,.055);min-width:0}
body .ri-direction-card{display:flex;flex-direction:column;height:100%;min-height:290px}
body .ri-direction-card>h3{margin-top:0}
body .ri-direction-card p,body .ri-card p,body .ri-step p{font-size:16px;color:#526067;line-height:1.6;margin:0}
body .ri-directions>.wp-block-column>.ri-direction-card{height:100%}
body .ri-direction-card .wp-block-buttons{margin-top:auto;padding-top:24px}
body .ri-link-button .wp-block-button__link,body .ri-short-link{
  display:inline-flex;align-items:center;min-height:43px;padding:9px 18px;background:#fff;color:#26383e;
  border:1.5px solid var(--ri-green);border-radius:10px;text-decoration:none;font-size:15px;font-weight:700}
body .ri-link-button .wp-block-button__link:hover,body .ri-short-link:hover{background:var(--ri-soft);color:#28452a}
body .ri-network-node{background:var(--ri-soft)}
body .ri-step-index{color:#619629;font-size:19px;font-weight:800;margin:0 0 10px}
body .ri-table-wrap{overflow-x:auto;background:#fff;border:1px solid var(--ri-line);border-radius:12px;padding:18px}
body .ri-comparison table{width:100%;border-collapse:collapse}
body .ri-comparison th,body .ri-comparison td{padding:15px;border:1px solid var(--ri-line);text-align:left;font-size:15px}
body .ri-comparison th{background:var(--ri-soft)}
body .ri-legal-note{background:#f4f8ef;border-left:4px solid var(--ri-green);padding:24px 28px;border-radius:8px;margin-block:25px}
body .ri-cta{background:#f5f9f1;border-radius:12px;margin-bottom:35px}
/* Page hero: full-width tint behind centered text; internal text respects the same page boundaries. */
body .wp-block-post-content>.ri-landing{
  padding-block:78px 65px;position:relative;isolation:isolate;
}
body .ri-landing::before{content:'';position:absolute;top:0;bottom:0;left:50%;width:100vw;transform:translateX(-50%);
  background:linear-gradient(120deg,#fff 5%,#f6fbea 100%);z-index:-1;pointer-events:none}
body .ri-landing h1{font-size:clamp(34px,3.7vw,59px);font-weight:800;line-height:1.15;color:var(--ri-dark);
  margin:0 0 28px;max-width:100%;letter-spacing:-.025em}
body .ri-landing p{max-width:100%;font-size:17px}
/* Context icons: classes are added during server render without replacing Gutenberg text. */
body :is(.ri-card,.ri-direction-card,.ri-step,.ri-network-node)[class*='ri-icon-']::before{
  content:'';display:block;width:44px;height:44px;margin:0 0 16px;border-radius:11px;
  background-color:#eef7e2;background-repeat:no-repeat;background-position:center;background-size:24px 24px}
body .ri-icon-pin::before{background-image:url('assets/context-pin.svg')}
body .ri-icon-people::before{background-image:url('assets/context-people.svg')}
body .ri-icon-network::before{background-image:url('assets/context-network.svg')}
body .ri-icon-chart::before{background-image:url('assets/context-chart.svg')}
body .ri-icon-shield::before{background-image:url('assets/context-shield.svg')}
body .ri-icon-document::before{background-image:url('assets/context-document.svg')}
body .ri-icon-tech::before{background-image:url('assets/context-tech.svg')}
body .ri-icon-money::before{background-image:url('assets/context-money.svg')}
body .ri-icon-award::before{background-image:url('assets/context-award.svg')}
body .ri-icon-building::before{background-image:url('assets/context-building.svg')}
body .ri-icon-handshake::before{background-image:url('assets/context-handshake.svg')}
body .ri-icon-check::before{background-image:url('assets/context-check.svg')}
body .ri-icon-briefcase::before{background-image:url('assets/context-briefcase.svg')}
/* Fallback for home direction groups where no icon class is added. */
body .ri-direction-card:not([class*='ri-icon-'])::before{content:'';display:block;width:36px;height:5px;margin:0 0 20px;background:var(--ri-green);border-radius:4px}
/* Footer */
body .ri-footer{border-top:1px solid var(--ri-line);background:#fbfdf9;margin-top:35px}
body .ri-footer-shell{padding-block:45px 26px}
body .ri-footer-grid.wp-block-columns{display:grid;grid-template-columns:minmax(315px,1.05fr) minmax(260px,.92fr) minmax(320px,1.1fr);
  gap:clamp(20px,2.4vw,34px);align-items:start;margin:0;width:100%;max-width:none}
body .ri-footer-grid>.wp-block-column{min-width:0;max-width:100%;width:auto!important;flex:none!important;margin:0;overflow-wrap:normal}
body .ri-footer-grid h3{font-size:17px;color:var(--ri-dark);margin:0 0 17px}
body .ri-footer-details{color:#59666b;font-size:14px}
body .ri-footer-details p{margin:4px 0;font-size:14px}
body .ri-footer-contact{display:flex;gap:10px;align-items:center;flex-wrap:nowrap;width:max-content;max-width:100%}
body .ri-social{display:inline-flex;width:49px;height:49px;align-items:center;justify-content:center;flex-shrink:0;
  background:#eaf4de;border:1px solid #d8e7cc;border-radius:12px;color:#315b35;text-decoration:none;font-weight:800}
body .ri-social:hover{background:#d7ecbd}
body .ri-social-label{font-size:13px;white-space:nowrap}
body .ri-social-pending{opacity:.5;cursor:default}
body .ri-qrcode-note{font-size:12px;color:#728078;margin-top:6px}
body .ri-footer-policy{border-top:1px solid var(--ri-line);padding-top:17px;margin-top:25px;font-size:13px}
body .ri-footer-policy a{color:#506e46}
/* Keyboard navigation */
body :is(.ri-header-shell,.ri-footer,.ri-section) a:focus-visible{outline:3px solid var(--ri-green);outline-offset:3px}
/* Medium windows: still desktop. Real responsive stacking starts only at narrow CSS viewport. */
@media(max-width:1080px){
  body .ri-header-shell{gap:14px}
  body .ri-header-shell .wp-block-navigation__container{gap:13px}
  body .ri-header-shell .wp-block-navigation a{font-size:13px}
  body .ri-hero h1{font-size:clamp(33px,3.8vw,45px)}
  body .ri-hero-art,body .ri-hero-illustration{min-height:340px}
  body .ri-direction-card{padding:22px}
}
/* Tablet: intentional single-column hero and smaller card grids. */
@media(max-width:820px){
  :root{--ri-gutter:22px}
  body .ri-header-shell{min-height:100px;flex-wrap:wrap;padding-block:12px;row-gap:8px}
  body .ri-header-shell .wp-block-navigation{margin-left:0}
  body .wp-block-post-content>.ri-hero{grid-template-columns:minmax(0,1fr);padding-block:44px 30px;min-height:0;gap:10px}
  body .ri-hero-art,body .ri-hero-illustration{min-height:300px}
  body .ri-cards-three,body .ri-directions{grid-template-columns:repeat(2,minmax(0,1fr))}
  body .ri-steps{grid-template-columns:repeat(2,minmax(0,1fr))}
  body .ri-footer-grid.wp-block-columns{grid-template-columns:repeat(2,minmax(0,1fr));gap:25px}
  body .ri-footer-grid>.wp-block-column:first-child{grid-column:1/-1}
}
/* Mobile only: stacked layout. Desktop browser zoom-out cannot trigger this breakpoint. */
@media(max-width:600px){
  :root{--ri-gutter:18px}
  body .ri-header-shell{min-height:86px}
  body .ri-header-brand,body .ri-footer-brand{grid-template-columns:62px minmax(0,150px);column-gap:12px}
  body .ri-header-brand .wp-block-site-logo,body .ri-footer-brand .wp-block-site-logo{width:60px;height:65px}
  body .ri-header-brand .wp-block-site-logo img,body .ri-footer-brand .wp-block-site-logo img{width:55px;height:55px}
  body .ri-header-brand .wp-block-site-logo::after,body .ri-footer-brand .wp-block-site-logo::after{right:-7px}
  body .ri-header-brand .wp-block-site-title,body .ri-footer-brand .wp-block-site-title{font-size:19px;width:135px;max-width:135px}
  body .ri-header-brand .ri-since,body .ri-footer-brand .ri-since{font-size:11px;white-space:normal}
  body .ri-header-shell .wp-block-navigation{margin-left:auto}
  body .ri-header-shell .wp-block-navigation__container{flex-wrap:wrap}
  body .wp-block-post-content>.ri-section{padding-block:40px}
  body .ri-section h2{font-size:27px}
  body .ri-hero h1{font-size:clamp(31px,8vw,41px)}
  body .ri-hero-copy>p:not(.ri-eyebrow):not(.ri-tagline){font-size:15px}
  body .ri-hero-art,body .ri-hero-illustration{min-height:220px}
  body .ri-metrics,body .ri-stats-section .ri-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
  body .ri-metrics>.wp-block-column{padding:16px!important;border-right:0;border-bottom:1px solid var(--ri-line)}
  body .ri-metrics>.wp-block-column:nth-child(odd){border-right:1px solid var(--ri-line)}
  body .ri-metrics>.wp-block-column:nth-last-child(-n+2){border-bottom:0}
  body .ri-directions,body .ri-cards-two,body .ri-cards-three,body .ri-network-grid,body .ri-steps{grid-template-columns:minmax(0,1fr)}
  body .ri-footer-grid.wp-block-columns{grid-template-columns:minmax(0,1fr)}
  body .ri-footer-contact{flex-wrap:wrap;width:auto}
  body .ri-landing h1{font-size:34px}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}


/* v1.6: neutralize Gutenberg's constrained content width inside the common footer.
   Header, main sections and footer use the same centered page container. */
body .wp-site-blocks > .ri-footer,
body .wp-site-blocks > footer.ri-footer,
body footer.ri-footer{
  width:100%;max-width:none;margin-inline:0;overflow:visible;
}
body footer.ri-footer > .ri-footer-shell,
body .ri-footer > .wp-block-group.ri-footer-shell,
body .ri-footer-shell.is-layout-constrained{
  box-sizing:border-box;
  width:calc(100% - 2 * var(--ri-gutter))!important;
  max-width:var(--ri-page-width)!important;
  margin-inline:auto!important;
  padding-inline:0!important;
}
body .ri-footer-shell > .ri-footer-grid.wp-block-columns,
body .ri-footer-shell.is-layout-constrained > .ri-footer-grid,
body .ri-footer-grid.is-layout-flex{
  box-sizing:border-box;
  width:100%!important;
  max-width:none!important;
  margin:0!important;
  display:grid!important;
  grid-template-columns:minmax(315px,1.05fr) minmax(260px,.92fr) minmax(320px,1.1fr)!important;
  gap:clamp(20px,2.4vw,34px)!important;
  align-items:start;
}
body .ri-footer-shell > .ri-footer-policy{
  width:100%!important;
  max-width:none!important;
  margin-left:0!important;
  margin-right:0!important;
}
body .ri-footer-grid > .wp-block-column{
  box-sizing:border-box;
  min-width:0!important;
  max-width:none!important;
  width:auto!important;
  flex-basis:auto!important;
}
body .ri-footer-grid .ri-footer-contact{
  display:flex!important;align-items:center!important;
  flex-wrap:nowrap!important;gap:9px!important;
  width:max-content;max-width:100%;
}
body .ri-footer-grid .ri-social{width:49px;height:49px;flex:0 0 49px}
body .ri-footer-grid .ri-footer-details{overflow-wrap:break-word}
@media(max-width:1050px){
  body .ri-footer-shell > .ri-footer-grid.wp-block-columns,
  body .ri-footer-shell.is-layout-constrained > .ri-footer-grid,
  body .ri-footer-grid.is-layout-flex{
    grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
  }
  body .ri-footer-grid > .wp-block-column:first-child{grid-column:1/-1}
}
@media(max-width:600px){
  body .ri-footer-shell > .ri-footer-grid.wp-block-columns,
  body .ri-footer-shell.is-layout-constrained > .ri-footer-grid,
  body .ri-footer-grid.is-layout-flex{
    grid-template-columns:minmax(0,1fr)!important;
  }
  body .ri-footer-grid > .wp-block-column:first-child{grid-column:auto}
  body .ri-footer-grid .ri-footer-contact{flex-wrap:wrap!important;width:auto}
}


/* 1.7 — Webocenka landing. No changes to existing page styling. */
body .wp-block-post-content > .ri-web-hero{width:calc(100% - 2 * var(--ri-gutter));max-width:var(--ri-page-width);margin-inline:auto;padding:65px 0 48px}
body .ri-web-hero .ri-web-grid{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(0,.92fr);gap:clamp(28px,3vw,55px);align-items:center;margin:0}
body .ri-web-hero .ri-web-grid > .wp-block-column{min-width:0;width:auto!important;flex:none!important}
body .ri-web-hero h1{font-size:clamp(39px,4.3vw,66px);line-height:1.12;letter-spacing:-.025em;color:var(--ri-dark);margin:15px 0 23px}
body .ri-web-hero .ri-web-lead{font-size:20px;line-height:1.55;max-width:640px;color:#37454a;margin:0 0 24px}
body .ri-web-hero .ri-web-role{font-size:17px;line-height:1.55;color:#3d851b;margin:0;max-width:630px}
body .ri-web-art{min-height:330px;background:url('assets/webocenka-hero.webp') center / contain no-repeat;position:relative}
body .ri-web-section{padding-top:32px!important;padding-bottom:40px!important}
body .ri-web-section .ri-web-grid-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin:22px 0 0}
body .ri-web-section .ri-web-grid-cards.three{grid-template-columns:repeat(3,minmax(0,1fr))}
body .ri-web-section .ri-web-grid-cards > .wp-block-column{width:auto!important;min-width:0;flex:none!important;margin:0}
body .ri-web-card{height:100%;padding:22px!important;border:1px solid #e0e8de;border-radius:15px;background:#fff;box-shadow:0 5px 22px rgba(30,52,45,.045)}
body .ri-web-card .ri-web-icon{width:43px;height:43px;border-radius:10px;background:#eff7e7 center / 26px no-repeat;margin:0 0 15px}
body .ri-web-icon.valuation{background-image:url('assets/context-chart.svg')}
body .ri-web-icon.protect{background-image:url('assets/context-shield.svg')}
body .ri-web-icon.location{background-image:url('assets/context-pin.svg')}
body .ri-web-icon.platform{background-image:url('assets/context-network.svg')}
body .ri-web-icon.inspect{background-image:url('assets/context-building.svg')}
body .ri-web-icon.verify{background-image:url('assets/context-check.svg')}
body .ri-web-icon.report{background-image:url('assets/context-document.svg')}
body .ri-web-card h3{font-size:20px;line-height:1.25;margin:0 0 10px}
body .ri-web-card p{font-size:15px;color:#506068;line-height:1.55;margin:0}
body .ri-web-process{background:#f5f9f1;border-radius:14px;padding:28px 26px;margin-top:24px}
body .ri-web-process h2{margin-bottom:24px}
body .ri-web-process-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;margin:0}
body .ri-web-process-grid > .wp-block-column{width:auto!important;min-width:0;flex:none!important;margin:0}
body .ri-web-step{padding:0 8px}
body .ri-web-step-number{display:flex;align-items:center;justify-content:center;width:40px;height:40px;border:2px solid var(--ri-green);border-radius:50%;color:var(--ri-dark);font-size:18px;font-weight:700;margin:0 0 15px}
body .ri-web-step h3{font-size:18px;margin:0 0 6px}
body .ri-web-step p{font-size:15px;color:#516169;margin:0}
body .ri-web-cta{background:#f7fbf3;border-radius:15px;padding:25px!important}
body .ri-web-cta p{margin-bottom:16px}
@media(max-width:900px){body .ri-web-section .ri-web-grid-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:820px){body .ri-web-hero .ri-web-grid{grid-template-columns:1fr}body .ri-web-art{min-height:270px}}
@media(max-width:600px){body .wp-block-post-content > .ri-web-hero{padding-block:35px 25px}body .ri-web-hero h1{font-size:38px}body .ri-web-hero .ri-web-lead{font-size:17px}body .ri-web-section .ri-web-grid-cards,body .ri-web-section .ri-web-grid-cards.three,body .ri-web-process-grid{grid-template-columns:1fr}body .ri-web-art{min-height:210px}}

/* v1.9 — Webocenka hero: same horizontal rails as the header and other sections.
   Keep normal two-column desktop behaviour and Gutenberg block editability. */
body .wp-block-post-content > .ri-web-hero,
body .wp-block-post-content > section.ri-web-hero,
body .wp-block-post-content .ri-web-hero {
  box-sizing:border-box!important;
  width:calc(100% - 2 * var(--ri-gutter))!important;
  max-width:var(--ri-page-width)!important;
  padding:64px 0 48px!important;
  margin-left:auto!important;
  margin-right:auto!important;
}
body .wp-block-post-content .ri-web-hero > .ri-web-grid,
body .wp-block-post-content .ri-web-hero.is-layout-constrained > .ri-web-grid,
body .wp-block-post-content .ri-web-hero > .wp-block-columns.ri-web-grid {
  box-sizing:border-box!important;
  display:grid!important;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
  gap:clamp(28px,3.5vw,60px)!important;
  align-items:center!important;
  width:100%!important;
  max-width:none!important;
  margin:0!important;
  padding:0!important;
}
body .wp-block-post-content .ri-web-hero .ri-web-grid > .wp-block-column{
  min-width:0!important;
  width:100%!important;
  max-width:none!important;
  margin:0!important;
  padding:0!important;
  flex:none!important;
}
body .wp-block-post-content .ri-web-hero .ri-web-copy,
body .wp-block-post-content .ri-web-hero .ri-web-copy > * {
  box-sizing:border-box!important;
  width:100%!important;
  max-width:none!important;
  margin-left:0!important;
  margin-right:0!important;
}
body .wp-block-post-content .ri-web-hero .ri-web-copy > .ri-eyebrow{margin-bottom:24px!important}
body .wp-block-post-content .ri-web-hero .ri-web-copy > h1{margin-top:0!important;margin-bottom:24px!important}
body .wp-block-post-content .ri-web-hero .ri-web-copy > .ri-web-lead{margin-bottom:25px!important}
body .wp-block-post-content .ri-web-hero .ri-web-art {
  min-height:clamp(370px,35vw,540px)!important;
  width:100%!important;
  max-width:none!important;
  margin:0!important;
  background-size:contain!important;
  background-position:center right!important;
}
@media(max-width:820px){
  body .wp-block-post-content .ri-web-hero > .ri-web-grid,
  body .wp-block-post-content .ri-web-hero.is-layout-constrained > .ri-web-grid {
    grid-template-columns:minmax(0,1fr)!important;
    gap:22px!important;
  }
  body .wp-block-post-content .ri-web-hero .ri-web-art{min-height:280px!important;background-position:center!important}
}
@media(max-width:600px){
  body .wp-block-post-content > .ri-web-hero{padding:35px 0 22px!important}
  body .wp-block-post-content .ri-web-hero .ri-web-art{min-height:210px!important}
}

/* v2.0: homepage illustration aligned with the shared right-hand content edge.
   Only the homepage hero illustration changes. */
@media (min-width:821px){
  body .wp-block-post-content > .ri-hero .ri-hero-art{
    justify-self:stretch;
    align-self:stretch;
  }
  body .wp-block-post-content > .ri-hero .ri-hero-illustration{
    background-position:right center;
    background-size:contain;
  }
}


/* v2.1 — approved editorial and layout changes, no changes to other pages. */
/* Four directions on the home page only, other 3-card grids stay unchanged. */
body .ri-directions:has(> .wp-block-column:nth-child(4)) {
  display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;
}
body .ri-directions:has(> .wp-block-column:nth-child(4)) .ri-direction-card {
  min-height:290px;padding:24px 22px;
}
@media(min-width:821px) and (max-width:1080px) {
 body .ri-directions:has(> .wp-block-column:nth-child(4)) .ri-direction-card {padding:18px 15px;}
 body .ri-directions:has(> .wp-block-column:nth-child(4)) h3 {font-size:19px;}
 body .ri-directions:has(> .wp-block-column:nth-child(4)) p {font-size:14px;}
}
@media(min-width:601px) and (max-width:820px) {
 body .ri-directions:has(> .wp-block-column:nth-child(4)) {grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media(max-width:600px) {
 body .ri-directions:has(> .wp-block-column:nth-child(4)) {grid-template-columns:minmax(0,1fr);}
}
/* Reduce the two oversized Webocenka gaps while preserving the desktop 2-column hero. */
body .wp-block-post-content > .ri-web-hero,
body .wp-block-post-content > section.ri-web-hero,
body .wp-block-post-content .ri-web-hero {padding-top:18px!important;padding-bottom:5px!important;}
body .wp-block-post-content .ri-web-hero .ri-web-art {min-height:clamp(305px,29vw,420px)!important;}
body .wp-block-post-content > .ri-web-hero + .ri-web-section {padding-top:20px!important;}
body .ri-web-hero .ri-web-grid {margin-top:0!important;margin-bottom:0!important;}
body .ri-web-hero .ri-web-copy {overflow-wrap:break-word;}
@media(max-width:820px) {
 body .wp-block-post-content > .ri-web-hero {padding-top:24px!important;padding-bottom:4px!important;}
 body .wp-block-post-content .ri-web-hero .ri-web-art {min-height:250px!important;}
}
/* Shared navigation and page-specific login action in one row. */
body .ri-header-shell .wp-block-navigation {display:flex!important;align-items:center!important;gap:14px!important;}
body .ri-header-shell .wp-block-navigation__container {flex-wrap:nowrap!important;}
body .ri-partner-login {margin-left:0!important;flex:0 0 auto!important;}


/* v2.2 — HOME PAGE: four equal direction cards in a SINGLE desktop row.
 * Scoped to the homepage so that other pages keep their own card layouts.
 * The old three-column rule must not win when this section has 4 items.
 */
@media (min-width: 1081px) {
  body.home .wp-block-post-content .ri-section .wp-block-columns.ri-directions,
  body.front-page .wp-block-post-content .ri-section .wp-block-columns.ri-directions,
  body .wp-block-post-content .ri-section .wp-block-columns.ri-directions:has(> .wp-block-column:nth-child(4)) {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    column-gap: 16px !important;
    row-gap: 16px !important;
    width: 100% !important;
    max-width: none !important;
  }
  body.home .ri-directions > .wp-block-column,
  body .ri-directions:has(> .wp-block-column:nth-child(4)) > .wp-block-column {
    min-width: 0 !important;
    width: auto !important;
    max-width: none !important;
    flex-basis: auto !important;
    grid-column: auto !important;
  }
  body.home .ri-directions .ri-direction-card,
  body .ri-directions:has(> .wp-block-column:nth-child(4)) .ri-direction-card {
    min-height: 270px;
    padding: 22px 19px;
    height: 100%;
  }
  body.home .ri-directions .ri-direction-card h3,
  body .ri-directions:has(> .wp-block-column:nth-child(4)) .ri-direction-card h3 {
    font-size: clamp(18px, 1.45vw, 23px);
    line-height: 1.25;
  }
  body.home .ri-directions .ri-direction-card p,
  body .ri-directions:has(> .wp-block-column:nth-child(4)) .ri-direction-card p {
    font-size: 14px;
    line-height: 1.5;
    overflow-wrap: break-word;
  }
  body.home .ri-directions .ri-direction-card .wp-block-buttons,
  body .ri-directions:has(> .wp-block-column:nth-child(4)) .ri-direction-card .wp-block-buttons {
    margin-top: auto;
    padding-top: 18px;
  }
}
@media (min-width: 601px) and (max-width: 1080px) {
  body.home .wp-block-post-content .ri-section .wp-block-columns.ri-directions,
  body .wp-block-post-content .ri-section .wp-block-columns.ri-directions:has(> .wp-block-column:nth-child(4)) {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 18px !important;
  }
}
@media (max-width: 600px) {
  body.home .wp-block-post-content .ri-section .wp-block-columns.ri-directions,
  body .wp-block-post-content .ri-section .wp-block-columns.ri-directions:has(> .wp-block-column:nth-child(4)) {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 18px !important;
  }
}


/* v2.4 — approved boxed desktop navigation; do not change brand lockup. */
@media (min-width: 1081px) {
  body .ri-header-shell { gap: 18px; }
  body .ri-header-shell .wp-block-navigation {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 18px !important;
    margin-left: auto !important;
    min-width: 0;
    flex-wrap: nowrap !important;
  }
  body .ri-header-shell .wp-block-navigation__container {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 10px !important;
    flex-wrap: nowrap !important;
  }
  body .ri-header-shell .wp-block-navigation__container > .wp-block-navigation-item {
    flex: 0 0 auto;
    margin: 0 !important;
  }
  body .ri-header-shell .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content {
    display: inline-flex !important;
    justify-content: center;
    align-items: center;
    min-height: 48px;
    padding: 8px 14px !important;
    border: 1.5px solid var(--ri-green);
    border-radius: 11px;
    background: #fff;
    color: var(--ri-ink) !important;
    font-size: 17px !important;
    line-height: 1.25;
    font-weight: 700;
    white-space: nowrap;
    text-decoration: none !important;
    transition: background-color .15s ease,border-color .15s ease;
  }
  body .ri-header-shell .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content:hover,
  body .ri-header-shell .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content:focus-visible {
    background: #f4f9eb;
  }
  body .ri-header-shell .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content[aria-current="page"] {
    border-bottom: 3px solid var(--ri-green);
    background: #f6faef;
    padding-bottom: 6.5px !important;
  }
  /* The login CTA is deliberately separate and keeps the existing filled style. */
  body .ri-header-shell .wp-block-navigation > .ri-partner-login {
    display: inline-flex !important;
    flex: 0 0 auto !important;
    margin: 0 !important;
    border: 2px solid var(--ri-green) !important;
    border-radius: 9px !important;
    background: #f4f9eb !important;
    padding: 8px 15px !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    color: var(--ri-dark) !important;
  }
  body .ri-header-shell .wp-block-navigation > .ri-partner-login:hover { background: #e4f3d3 !important; }
}
/* Keep a single row on mid-size desktop screens without touching the logo. */
@media (min-width: 1081px) and (max-width: 1480px) {
  body .ri-header-shell { gap: 10px; }
  body .ri-header-shell .wp-block-navigation { gap: 9px !important; }
  body .ri-header-shell .wp-block-navigation__container { gap: 7px !important; }
  body .ri-header-shell .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content {
    font-size: 15px !important;
    padding: 8px 9px !important;
    min-height: 44px;
  }
  body .ri-header-shell .wp-block-navigation > .ri-partner-login {
    padding: 8px 11px !important;
  }
}
/* On tablets/phones use WordPress' native responsive navigation behavior. */
@media (max-width: 1080px) {
  body .ri-header-shell .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content {
    color: var(--ri-ink);
    text-decoration: none;
  }
  body .ri-header-shell .wp-block-navigation > .ri-partner-login {
    background: #f4f9eb !important;
    border: 2px solid var(--ri-green) !important;
    color: var(--ri-dark) !important;
  }
}

/* v2.5 — side-by-side additional partner directions, with equal-height editable cards. */
body .ri-additional-directions .wp-block-columns.ri-cards-two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}
body .ri-additional-directions .wp-block-column{display:flex;min-width:0}
body .ri-additional-directions .ri-card{display:flex;flex-direction:column;width:100%;min-height:245px}
body .ri-additional-directions .wp-block-buttons{margin-top:auto;padding-top:23px}
@media(max-width:780px){body .ri-additional-directions .wp-block-columns.ri-cards-two{grid-template-columns:1fr}}

/* v2.9 — unified corporate green borders and separators */
:root { --ri-line: #8cc63f; }
body .ri-header-brand .wp-block-site-logo::after,
body .ri-footer-brand .wp-block-site-logo::after { background:var(--ri-green)!important; }
body :is(.ri-card,.ri-direction-card,.ri-network-node,.ri-step,.ri-web-card) {border-color:var(--ri-green)!important;}
body .ri-footer-details h3::after {
  content:"";display:block;width:100%;max-width:245px;height:3px;
  border-radius:4px;background:var(--ri-green);margin-top:8px;
}
/* Finovera information paragraphs use one size/weight without a bold override. */
body .ri-section .ri-fino-text-uniform p,body .ri-fino-text-uniform p,
body .ri-fino-text-uniform strong {font-size:16px!important;line-height:1.65!important;font-weight:400!important;color:var(--ri-ink)!important;}
/* Section specific typography without changing editable Gutenberg prose. */
body .ri-section:has(> h2:first-child + p + p) > p:not(.ri-section-lead) {font-size:16px;line-height:1.65;}
/* The two Finovera copy blocks: safely avoid enlarging or bolding inline emphasis. */
body.page-slug-finovera .ri-section > p strong{font-weight:400;}
/* A short right-hand icon for each market tile, on the same line as its heading. */
body .ri-market-section .ri-cards-two>.wp-block-column>.ri-card {
  position:relative;padding:25px 82px 25px 28px;min-height:118px;
  display:flex;align-items:center;justify-content:flex-start;
}
body .ri-market-section .ri-card h3{margin:0;}
body .ri-market-section .ri-card p:empty{display:none;}
body .ri-market-section .ri-card::before {
  position:absolute;right:22px;top:50%;transform:translateY(-50%);margin:0!important;
  width:48px;height:48px;background-size:26px 26px;
}
body .ri-market-section .ri-cards-two>.wp-block-column:nth-child(1) .ri-card::before {background-image:url('assets/context-building.svg')!important;}
body .ri-market-section .ri-cards-two>.wp-block-column:nth-child(2) .ri-card::before {background-image:url('assets/icon-building.svg')!important;}
body .ri-market-section .ri-cards-two>.wp-block-column:nth-child(3) .ri-card::before {background-image:url('assets/context-handshake.svg')!important;}
body .ri-market-section .ri-cards-two>.wp-block-column:nth-child(4) .ri-card::before {background-image:url('assets/context-people.svg')!important;}
/* Numbered step cards, both Partners and Finovera. */
body .ri-step-index{font-size:25px!important;color:var(--ri-green)!important;font-weight:750!important;line-height:1.15;}
/* Webocenka: use complete contained laptop artwork, with no cropping. */
body .wp-block-post-content .ri-web-hero .ri-web-art{
 background-image:url('assets/webocenka-hero-v29.webp')!important;
 background-size:contain!important;background-position:center center!important;
 background-repeat:no-repeat!important;
}
/* The comparative table must remain fully readable on mobile. */
@media(max-width:650px){
 body .ri-comparison table,body .ri-comparison tbody{display:block;width:100%;}
 body .ri-comparison thead{display:none;}
 body .ri-comparison tbody tr{display:block;border:1px solid var(--ri-green);border-radius:10px;margin:0 0 12px;padding:8px 12px;overflow:hidden;}
 body .ri-comparison tbody td{display:block;border:0;padding:5px 0;font-size:14px;overflow-wrap:anywhere;}
 body .ri-comparison tbody td:first-child{font-size:16px;font-weight:800;color:var(--ri-dark);padding-bottom:8px;border-bottom:1px solid var(--ri-green);margin-bottom:5px;}
 body .ri-comparison tbody td:nth-child(2)::before{content:"Подписант: ";font-weight:800;color:var(--ri-dark);}
 body .ri-comparison tbody td:nth-child(3)::before{content:"Бэк-офис: ";font-weight:800;color:var(--ri-dark);}
 body .ri-table-wrap{padding:12px;overflow:visible;}
}
/* Responsive header: brand, hamburger and optional personal-cabinet link in ONE row. */
@media(max-width:820px){
 body .ri-header-shell,body .ri-header-shell.is-layout-flex{
  display:flex!important;align-items:center!important;flex-wrap:nowrap!important;
  justify-content:space-between!important;gap:8px!important;min-height:84px!important;
  padding-block:8px!important;
 }
 body .ri-header-brand{flex:0 1 auto!important;min-width:0!important;}
 body .ri-header-shell .wp-block-navigation{
  display:flex!important;align-items:center!important;justify-content:flex-end!important;
  flex:0 0 auto!important;min-width:0!important;margin-left:auto!important;
  gap:7px!important;
 }
 body .ri-header-shell .wp-block-navigation__responsive-container-open{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  width:40px!important;height:44px!important;min-width:40px!important;padding:7px!important;
  border:1px solid var(--ri-green)!important;border-radius:9px!important;color:var(--ri-dark)!important;
 }
 body .ri-header-shell .wp-block-navigation > .ri-partner-login{
  display:inline-flex!important;position:relative!important;margin:0!important;
  min-height:44px!important;padding:7px 10px!important;font-size:12px!important;
 }
 body .ri-header-shell .wp-block-navigation__responsive-container:not(.is-menu-open) {display:none!important;}
 body .ri-header-shell .wp-block-navigation__responsive-container.is-menu-open{
  display:flex!important;position:fixed!important;top:88px!important;right:12px!important;left:12px!important;
  width:auto!important;height:auto!important;min-height:0!important;max-height:calc(100dvh - 110px)!important;
  overflow-y:auto!important;z-index:99999!important;
  padding:18px!important;border:1px solid var(--ri-green)!important;border-radius:14px!important;
  background:#fff!important;box-shadow:0 16px 45px rgba(37,50,58,.18)!important;
 }
 body .ri-header-shell .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-dialog,
 body .ri-header-shell .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content{
  width:100%!important;padding:0!important;margin:0!important;
 }
 body .ri-header-shell .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close{
  position:absolute!important;right:0!important;top:0!important;display:flex!important;
  color:var(--ri-dark)!important;
 }
 body .ri-header-shell .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container{
  display:flex!important;flex-direction:column!important;align-items:stretch!important;
  gap:9px!important;width:100%!important;margin-top:30px!important;
 }
 body .ri-header-shell .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item{
  width:100%!important;display:block!important;margin:0!important;
 }
 body .ri-header-shell .wp-block-navigation__responsive-container.is-menu-open a.wp-block-navigation-item__content{
  display:flex!important;width:100%!important;min-height:48px!important;align-items:center!important;
  border:1px solid var(--ri-green)!important;border-radius:9px!important;padding:11px 15px!important;
  background:#fff!important;color:var(--ri-dark)!important;text-align:left!important;
  font-size:16px!important;font-weight:700!important;text-decoration:none!important;
 }
 body .ri-header-shell .wp-block-navigation__responsive-container.is-menu-open a.wp-block-navigation-item__content:hover{background:var(--ri-soft)!important;}
}
@media(max-width:390px){
 body .ri-header-shell .ri-header-brand .wp-block-site-title{font-size:17px!important;}
 body .ri-header-shell .ri-header-brand .ri-since{font-size:10px!important;}
 body .ri-header-shell .wp-block-navigation__responsive-container-open{width:36px!important;min-width:36px!important;}
 body .ri-header-shell .wp-block-navigation>.ri-partner-login{padding:6px 8px!important;font-size:11px!important;}
}

/* v2.9: exact typography scope for only the two narrative Finovera sections. */
body .ri-fino-uniform > p,body .ri-fino-uniform > p strong,
body .ri-fino-uniform > .wp-block-paragraph,
body .ri-fino-uniform > .wp-block-paragraph strong {
  font-size:16px!important; font-weight:400!important; line-height:1.65!important;
  color:var(--ri-ink)!important;
}

/* v3.0 — reinforce agreed corporate green accents for existing Gutenberg blocks. */
body .wp-block-post-content :is(.ri-card,.ri-direction-card,.ri-network-node,.ri-step,.ri-web-card),
body .wp-block-post-content :is(.ri-card,.ri-direction-card,.ri-network-node,.ri-step,.ri-web-card):hover {border-color:#8CC63F!important;}
body .wp-block-post-content :is(.wp-block-separator,.ri-divider,hr),
body .ri-header-shell :is(.ri-logo-separator,.ri-header-divider),
body .ri-site-footer :is(.ri-logo-separator,.ri-footer-divider,hr) {border-color:#8CC63F!important;}
body .ri-step-index {color:#8CC63F!important;font-size:25px!important;font-weight:750!important;}

/* v3.1: refinements approved after visual inspection of version 3.0. */
body .ri-footer-details h3::after{height:1px!important;border-radius:0!important;}
body .ri-fino-why > p,body .ri-fino-why > p strong{
  font-size:16px!important;line-height:1.65!important;font-weight:400!important;color:var(--ri-ink)!important;
}
body .ri-fino-process > .ri-steps {align-items:stretch!important;}
body .ri-fino-process > .ri-steps > .wp-block-column{display:flex!important;align-items:stretch!important;}
body .ri-fino-process > .ri-steps > .wp-block-column > .ri-step{height:100%!important;width:100%;}
body .ri-fino-links .ri-directions > .wp-block-column{display:flex!important;}
body .ri-fino-links .ri-direction-card{display:flex!important;flex-direction:column!important;height:100%;width:100%;}
body .ri-fino-links .ri-direction-card > :last-child {margin-top:auto!important;}
body .ri-market-section .ri-card{display:flex;align-items:center;position:relative;padding-right:88px!important;}
body .ri-market-section .ri-card::before {content:""!important;display:block!important;position:absolute!important;right:22px!important;top:50%!important;transform:translateY(-50%)!important;width:48px!important;height:48px!important;background-color:var(--ri-soft);background-repeat:no-repeat!important;background-position:center!important;border-radius:12px;}
@media(max-width:780px){body .ri-market-section .ri-card{min-height:105px;padding-right:76px!important;}body .ri-market-section .ri-card::before{right:14px!important;}}


/* v3.2 — consent preference (no tracking scripts/cookies supplied by theme) */
.ri-consent-banner[hidden]{display:none!important}
.ri-consent-banner{box-sizing:border-box;position:fixed;z-index:999980;bottom:20px;right:20px;width:min(460px,calc(100vw - 32px));max-height:min(75vh,620px);overflow-y:auto;background:#fff;color:#2e454f;border:1px solid #8cc63f;border-radius:16px;box-shadow:0 14px 45px rgba(29,49,58,.18);padding:20px 22px;font-family:inherit;line-height:1.5}
.ri-consent-banner *{box-sizing:border-box}
.ri-consent-banner h2{font-size:19px;line-height:1.25;margin:0 0 10px!important;color:#2e454f}
.ri-consent-banner p{font-size:14px;margin:0 0 10px!important;line-height:1.48}
.ri-consent-banner a{color:#256b24;text-decoration:underline}
.ri-consent-actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:12px}
.ri-consent-actions button{display:inline-flex;justify-content:center;align-items:center;cursor:pointer;font-size:15px!important;font-weight:600!important;line-height:1.2!important;font-family:inherit!important;min-height:43px;padding:10px 17px;border-radius:9px;border:1px solid #78b629;background:#8cc63f;color:#243740;box-shadow:none}
.ri-consent-actions button[data-ri-consent="deny"]{background:white;color:#2e454f}
.ri-consent-actions button:focus-visible,.ri-consent-banner a:focus-visible{outline:3px solid #2e454f;outline-offset:2px}
.ri-reopen-consent{display:inline-block;margin-inline-start:18px;text-decoration:underline;text-underline-offset:2px;font-size:inherit}
@media(max-width:600px){.ri-consent-banner{bottom:max(12px,env(safe-area-inset-bottom));right:12px;left:12px;width:auto;max-height:min(65vh,470px);padding:16px;border-radius:13px}.ri-consent-banner h2{font-size:17px}.ri-consent-banner p{font-size:13px}.ri-consent-actions{flex-direction:column}.ri-consent-actions button{width:100%;min-height:44px}.ri-reopen-consent{display:block;margin:8px 0 0}}


/* v3.9 — unified footer links: one aligned row on desktop, stacked on mobile. */
body .ri-footer-shell > .ri-footer-policy,
body .ri-footer-policy{
  display:flex!important;
  justify-content:flex-end!important;
  align-items:baseline!important;
  gap:22px!important;
  flex-wrap:wrap!important;
  text-align:right!important;
  font-size:13px!important;
  line-height:1.65!important;
  overflow-wrap:anywhere;
}
body .ri-footer-policy > a,
body .ri-footer-policy .ri-reopen-consent{
  color:#506e46!important;
  display:inline-block!important;
  width:auto!important;
  max-width:100%;
  margin:0!important;
  padding:0!important;
  font:inherit!important;
  font-weight:400!important;
  line-height:inherit!important;
  text-decoration:underline!important;
  text-underline-offset:2px!important;
  text-align:right!important;
  white-space:nowrap!important;
}
body .ri-footer-policy .ri-reopen-consent{margin-inline-start:0!important;}
/* Keep consent buttons visually equal on desktop; preserve single-column mobile layout. */
@media(min-width:601px){
 body .ri-consent-actions{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:9px!important;}
 body .ri-consent-actions button{width:100%!important;min-width:0!important;min-height:44px!important;}
}
@media(max-width:600px){
 body .ri-footer-policy{padding-left:0!important;padding-right:0!important;flex-direction:column!important;align-items:flex-end!important;gap:6px!important;}
 body .ri-footer-policy > a,body .ri-footer-policy .ri-reopen-consent{max-width:100%;white-space:normal!important;}
}


/* v3.5 — The footer tint and its top divider share the same page-width
   container as the footer content. On browser zoom-out the tinted area must
   not continue across the whole viewport while the content shrinks. */
body .wp-site-blocks > footer.ri-footer,
body .wp-site-blocks > .ri-footer,
body footer.ri-footer {
  background:transparent!important;
  border-top:0!important;
  box-shadow:none!important;
}
body footer.ri-footer > .ri-footer-shell,
body .ri-footer > .wp-block-group.ri-footer-shell,
body .ri-footer-shell.is-layout-constrained {
  background:#fbfdf9!important;
  border-top:1px solid var(--ri-green)!important;
  /* Leave existing gutters, content widths and responsive grids untouched. */
}


/* v3.7 — approved icon family #1, original art cropped from the approved sheet.
   Never render the captions from the concept board: each icon is its own image.
   Existing WordPress cards are mapped by their h3 title on server render. */
body .wp-block-post-content :is(.ri-card,.ri-direction-card,.ri-network-node,.ri-step)[class*="ri-pict-"]::before {
  content:""!important;display:block!important;width:64px!important;height:64px!important;
  flex:none!important;background-color:transparent!important;
  background-position:center center!important;background-repeat:no-repeat!important;
  background-size:contain!important;border:0!important;border-radius:0!important;
  margin:0 0 14px!important;box-shadow:none!important;
}
body .wp-block-post-content [class*="ri-pict-creditors"]::before { background-image:url("assets/pictograms-v1/creditors.webp")!important; }
body .wp-block-post-content [class*="ri-pict-partners"]::before { background-image:url("assets/pictograms-v1/partners.webp")!important; }
body .wp-block-post-content [class*="ri-pict-finovera"]::before { background-image:url("assets/pictograms-v1/finovera.webp")!important; }
body .wp-block-post-content [class*="ri-pict-webocenka"]::before { background-image:url("assets/pictograms-v1/webocenka.webp")!important; }
body .wp-block-post-content [class*="ri-pict-geography"]::before { background-image:url("assets/pictograms-v1/geography.webp")!important; }
body .wp-block-post-content [class*="ri-pict-conversion"]::before { background-image:url("assets/pictograms-v1/conversion.webp")!important; }
body .wp-block-post-content [class*="ri-pict-integration"]::before { background-image:url("assets/pictograms-v1/integration.webp")!important; }
body .wp-block-post-content [class*="ri-pict-payment"]::before { background-image:url("assets/pictograms-v1/payment.webp")!important; }
body .wp-block-post-content [class*="ri-pict-reliability"]::before { background-image:url("assets/pictograms-v1/reliability.webp")!important; }
body .wp-block-post-content [class*="ri-pict-status"]::before { background-image:url("assets/pictograms-v1/status.webp")!important; }
body .wp-block-post-content [class*="ri-pict-tools"]::before { background-image:url("assets/pictograms-v1/tools.webp")!important; }
body .wp-block-post-content [class*="ri-pict-reward"]::before { background-image:url("assets/pictograms-v1/reward.webp")!important; }
body .wp-block-post-content [class*="ri-pict-infrastructure"]::before { background-image:url("assets/pictograms-v1/infrastructure.webp")!important; }
body .wp-block-post-content [class*="ri-pict-agency"]::before { background-image:url("assets/pictograms-v1/agency.webp")!important; }
body .wp-block-post-content [class*="ri-pict-developers"]::before { background-image:url("assets/pictograms-v1/developers.webp")!important; }
body .wp-block-post-content [class*="ri-pict-brokers"]::before { background-image:url("assets/pictograms-v1/brokers.webp")!important; }
body .wp-block-post-content [class*="ri-pict-leads"]::before { background-image:url("assets/pictograms-v1/leads.webp")!important; }
body .wp-block-post-content [class*="ri-pict-credit-history"]::before { background-image:url("assets/pictograms-v1/credit-history.webp")!important; }
body .wp-block-post-content [class*="ri-pict-auto-report"]::before { background-image:url("assets/pictograms-v1/auto-report.webp")!important; }
body .wp-block-post-content [class*="ri-pict-correction"]::before { background-image:url("assets/pictograms-v1/correction.webp")!important; }
body .wp-block-post-content [class*="ri-pict-remote-inspection"]::before { background-image:url("assets/pictograms-v1/remote-inspection.webp")!important; }
body .wp-block-post-content [class*="ri-pict-value-check"]::before { background-image:url("assets/pictograms-v1/value-check.webp")!important; }
body .wp-block-post-content [class*="ri-pict-risk-control"]::before { background-image:url("assets/pictograms-v1/risk-control.webp")!important; }
body .wp-block-post-content [class*="ri-pict-appraisal-standard"]::before { background-image:url("assets/pictograms-v1/appraisal-standard.webp")!important; }

/* Restore the visual rhythm of dashboard/card content without labels. */
body .wp-block-post-content .ri-direction-card[class*="ri-pict-"]::before {width:60px!important;height:60px!important;margin-bottom:12px!important;}
body .wp-block-post-content .ri-network-node[class*="ri-pict-"]::before {width:58px!important;height:58px!important;}
/* Steps retain their numbered stage prominently at left and pictogram at right. */
body .wp-block-post-content .ri-step[class*="ri-pict-"] {position:relative;}
body .wp-block-post-content .ri-step[class*="ri-pict-"]::before {
  position:absolute!important;top:16px!important;right:16px!important;
  width:53px!important;height:53px!important;margin:0!important;
}
body .wp-block-post-content .ri-step[class*="ri-pict-"] > .ri-step-index {padding-right:60px;}
/* Market cards use right-aligned icons, preserving their compact list layout. */
body .wp-block-post-content .ri-market-section .ri-card[class*="ri-pict-"]::before {
  position:absolute!important;top:50%!important;right:18px!important;
  transform:translateY(-50%)!important;width:62px!important;height:62px!important;
  margin:0!important;
}
/* Webocenka has an existing empty icon placeholder; replace its old asset, not the text. */
body .wp-block-post-content .ri-web-card[class*="ri-pict-"] > .ri-web-icon {
  display:block!important;width:64px!important;height:64px!important;
  margin:0 0 13px!important;border-radius:0!important;
  background-color:transparent!important;background-position:center!important;
  background-size:contain!important;background-repeat:no-repeat!important;
}
body .wp-block-post-content .ri-web-card.ri-pict-creditors > .ri-web-icon { background-image:url("assets/pictograms-v1/creditors.webp")!important; }
body .wp-block-post-content .ri-web-card.ri-pict-partners > .ri-web-icon { background-image:url("assets/pictograms-v1/partners.webp")!important; }
body .wp-block-post-content .ri-web-card.ri-pict-finovera > .ri-web-icon { background-image:url("assets/pictograms-v1/finovera.webp")!important; }
body .wp-block-post-content .ri-web-card.ri-pict-webocenka > .ri-web-icon { background-image:url("assets/pictograms-v1/webocenka.webp")!important; }
body .wp-block-post-content .ri-web-card.ri-pict-geography > .ri-web-icon { background-image:url("assets/pictograms-v1/geography.webp")!important; }
body .wp-block-post-content .ri-web-card.ri-pict-conversion > .ri-web-icon { background-image:url("assets/pictograms-v1/conversion.webp")!important; }
body .wp-block-post-content .ri-web-card.ri-pict-integration > .ri-web-icon { background-image:url("assets/pictograms-v1/integration.webp")!important; }
body .wp-block-post-content .ri-web-card.ri-pict-payment > .ri-web-icon { background-image:url("assets/pictograms-v1/payment.webp")!important; }
body .wp-block-post-content .ri-web-card.ri-pict-reliability > .ri-web-icon { background-image:url("assets/pictograms-v1/reliability.webp")!important; }
body .wp-block-post-content .ri-web-card.ri-pict-status > .ri-web-icon { background-image:url("assets/pictograms-v1/status.webp")!important; }
body .wp-block-post-content .ri-web-card.ri-pict-tools > .ri-web-icon { background-image:url("assets/pictograms-v1/tools.webp")!important; }
body .wp-block-post-content .ri-web-card.ri-pict-reward > .ri-web-icon { background-image:url("assets/pictograms-v1/reward.webp")!important; }
body .wp-block-post-content .ri-web-card.ri-pict-infrastructure > .ri-web-icon { background-image:url("assets/pictograms-v1/infrastructure.webp")!important; }
body .wp-block-post-content .ri-web-card.ri-pict-agency > .ri-web-icon { background-image:url("assets/pictograms-v1/agency.webp")!important; }
body .wp-block-post-content .ri-web-card.ri-pict-developers > .ri-web-icon { background-image:url("assets/pictograms-v1/developers.webp")!important; }
body .wp-block-post-content .ri-web-card.ri-pict-brokers > .ri-web-icon { background-image:url("assets/pictograms-v1/brokers.webp")!important; }
body .wp-block-post-content .ri-web-card.ri-pict-leads > .ri-web-icon { background-image:url("assets/pictograms-v1/leads.webp")!important; }
body .wp-block-post-content .ri-web-card.ri-pict-credit-history > .ri-web-icon { background-image:url("assets/pictograms-v1/credit-history.webp")!important; }
body .wp-block-post-content .ri-web-card.ri-pict-auto-report > .ri-web-icon { background-image:url("assets/pictograms-v1/auto-report.webp")!important; }
body .wp-block-post-content .ri-web-card.ri-pict-correction > .ri-web-icon { background-image:url("assets/pictograms-v1/correction.webp")!important; }
body .wp-block-post-content .ri-web-card.ri-pict-remote-inspection > .ri-web-icon { background-image:url("assets/pictograms-v1/remote-inspection.webp")!important; }
body .wp-block-post-content .ri-web-card.ri-pict-value-check > .ri-web-icon { background-image:url("assets/pictograms-v1/value-check.webp")!important; }
body .wp-block-post-content .ri-web-card.ri-pict-risk-control > .ri-web-icon { background-image:url("assets/pictograms-v1/risk-control.webp")!important; }
body .wp-block-post-content .ri-web-card.ri-pict-appraisal-standard > .ri-web-icon { background-image:url("assets/pictograms-v1/appraisal-standard.webp")!important; }

@media(max-width:780px){
  body .wp-block-post-content :is(.ri-card,.ri-direction-card,.ri-network-node)[class*="ri-pict-"]::before {width:56px!important;height:56px!important;}
  body .wp-block-post-content .ri-web-card[class*="ri-pict-"] > .ri-web-icon {width:58px!important;height:58px!important;}
  body .wp-block-post-content .ri-market-section .ri-card[class*="ri-pict-"]::before {width:54px!important;height:54px!important;right:12px!important;}
}
/* The original market list uses nth-child selectors with !important;
   this more specific rule ensures the approved icon wins for each card. */
body .wp-block-post-content .ri-market-section .ri-cards-two > .wp-block-column .ri-card[class*="ri-pict-"]::before {
  position:absolute!important;top:50%!important;right:18px!important;
  transform:translateY(-50%)!important;
  background-size:contain!important;width:62px!important;height:62px!important;
}
@media(max-width:780px){
 body .wp-block-post-content .ri-market-section .ri-cards-two > .wp-block-column .ri-card[class*="ri-pict-"]::before {right:12px!important;width:54px!important;height:54px!important;}
}


/* v3.8 — align every card in a row, not just selected sections.
   Let CSS Grid set each row's intrinsic height from its tallest content.
   The columns then stretch, and their card children fill the same row. */
body .wp-block-post-content .ri-section .wp-block-columns:not(.ri-metrics) > .wp-block-column {
  display:flex!important;
  flex-direction:column!important;
  align-self:stretch!important;
  min-width:0!important;
  height:auto!important;
}
body .wp-block-post-content .ri-section .wp-block-columns:not(.ri-metrics) > .wp-block-column > :is(.ri-card,.ri-direction-card,.ri-network-node,.ri-step,.ri-web-card) {
  box-sizing:border-box!important;
  flex:1 1 auto!important;
  align-self:stretch!important;
  width:100%!important;
  height:100%!important;
  min-height:0;
}
/* Do not force tall, empty mobile cards. */
@media(max-width:780px){
  body .wp-block-post-content .ri-section .wp-block-columns:not(.ri-metrics) > .wp-block-column > :is(.ri-card,.ri-direction-card,.ri-network-node,.ri-step,.ri-web-card){height:auto!important;min-height:0!important;}
}

/* v3.8 — Partner market: approved original pictograms on the LEFT.
   More specific rules override historical icon assets and right anchoring. */
body .wp-block-post-content .ri-market-section .ri-cards-two > .wp-block-column > .ri-card[class*="ri-pict-"] {
  box-sizing:border-box!important;
  position:relative!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:flex-start!important;
  justify-content:center!important;
  padding:22px 24px 22px 112px!important;
  min-height:118px!important;
}
body .wp-block-post-content .ri-market-section .ri-cards-two > .wp-block-column > .ri-card[class*="ri-pict-"]::before {
  content:""!important;
  position:absolute!important;
  left:22px!important;
  right:auto!important;
  top:50%!important;
  transform:translateY(-50%)!important;
  display:block!important;
  width:68px!important;
  height:68px!important;
  margin:0!important;
  background-color:transparent!important;
  background-size:contain!important;
  background-position:center!important;
  background-repeat:no-repeat!important;
  border-radius:0!important;
}
body .wp-block-post-content .ri-market-section .ri-cards-two > .wp-block-column:nth-child(1) > .ri-card.ri-pict-agency::before {background-image:url("assets/pictograms-v1/agency.webp")!important;}
body .wp-block-post-content .ri-market-section .ri-cards-two > .wp-block-column:nth-child(2) > .ri-card.ri-pict-developers::before {background-image:url("assets/pictograms-v1/developers.webp")!important;}
body .wp-block-post-content .ri-market-section .ri-cards-two > .wp-block-column:nth-child(3) > .ri-card.ri-pict-brokers::before {background-image:url("assets/pictograms-v1/brokers.webp")!important;}
body .wp-block-post-content .ri-market-section .ri-cards-two > .wp-block-column:nth-child(4) > .ri-card.ri-pict-leads::before {background-image:url("assets/pictograms-v1/leads.webp")!important;}
@media(max-width:780px){
  body .wp-block-post-content .ri-market-section .ri-cards-two > .wp-block-column > .ri-card[class*="ri-pict-"] {padding:18px 18px 18px 88px!important;min-height:98px!important;}
  body .wp-block-post-content .ri-market-section .ri-cards-two > .wp-block-column > .ri-card[class*="ri-pict-"]::before {left:16px!important;width:56px!important;height:56px!important;}
}


/* v3.11: equal-height "ВОЙТИ" button on Partners, Finovera, Webocenka.
   This does not affect the URL or markup of the navigation. */
@media (min-width: 1081px) {
  body .ri-header-shell .wp-block-navigation > a.ri-partner-login {
    box-sizing: border-box !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 48px !important;
    min-height: 48px !important;
    padding: 8px 15px !important;
    line-height: 1.25 !important;
    vertical-align: middle !important;
    align-self: center !important;
  }
}
@media (min-width: 1081px) and (max-width: 1480px) {
  body .ri-header-shell .wp-block-navigation > a.ri-partner-login {
    height: 44px !important;
    min-height: 44px !important;
    padding: 8px 11px !important;
  }
}
@media (max-width: 1080px) {
  body .ri-header-shell .wp-block-navigation > a.ri-partner-login {
    box-sizing: border-box !important;
    display: inline-flex !important;
    height: 44px !important;
    min-height: 44px !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1.25 !important;
    align-self: center !important;
  }
}


/* v3.12 — Touch targets, narrow-screen readability and controlled overflow.
   Existing mobile table cards remain in place; no Gutenberg content changes. */
body .ri-footer-grid .ri-social,
body .ri-footer-contact .ri-social {
  min-width:49px!important;min-height:49px!important;
}
body .ri-link-button .wp-block-button__link,
body .ri-short-link,
body .ri-header-shell .ri-partner-login {
  min-height:44px!important;
}
body .wp-block-post-content .ri-table-wrap {
  max-width:100%;min-width:0;overflow-x:auto;
  -webkit-overflow-scrolling:touch;
}
body .wp-block-post-content .ri-comparison {
  max-width:100%;margin-inline:0;
}
body .wp-block-post-content .ri-step-index {
  font-variant-numeric:tabular-nums;
}
@media(max-width:600px){
  body .wp-block-post-content .ri-stats-section .ri-metrics,
  body .wp-block-post-content .ri-metrics {
    display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
  body .wp-block-post-content .ri-metrics > .wp-block-column {min-width:0!important;}
  body .wp-block-post-content .ri-metric h3 {font-size:clamp(27px,8vw,39px)!important;overflow-wrap:anywhere;}
  body .wp-block-post-content .ri-comparison tbody tr {width:100%;min-width:0;}
  body .wp-block-post-content .ri-comparison tbody td {min-width:0;overflow-wrap:anywhere;}
  body .ri-header-shell .wp-block-navigation__responsive-container-open {
    min-height:44px!important;min-width:44px!important;
  }
  body .ri-header-shell .wp-block-navigation__responsive-container.is-menu-open a.wp-block-navigation-item__content {
    min-height:48px!important;
  }
}
@media(max-width:390px){
  body .ri-header-shell .wp-block-navigation__responsive-container-open {
    min-width:44px!important;width:44px!important;
  }
}


/* v3.13 — approved grouped desktop navigation. Does not affect mobile layout. */
@media (min-width: 1081px) {
 body .ri-header-shell {
   align-items:flex-end!important;
   padding-top:23px!important;
   padding-bottom:20px!important;
   min-height:153px!important;
 }
 body .ri-header-shell > .wp-block-navigation {
   align-self:flex-end!important;
   align-items:flex-end!important;
   justify-content:flex-end!important;
   gap:clamp(13px,1.35vw,24px)!important;
   margin-bottom:0!important;
 }
 body .ri-header-shell .wp-block-navigation__container {
   align-items:flex-end!important;
   gap:clamp(7px,.75vw,12px)!important;
 }
 body .ri-header-shell .wp-block-navigation__container > .wp-block-navigation-item {
   position:relative!important;
   display:flex!important;
   align-items:flex-end!important;
 }
 body .ri-header-shell .wp-block-navigation__container > .wp-block-navigation-item > a.wp-block-navigation-item__content {
   position:relative!important;
   box-sizing:border-box!important;
   height:48px!important;
   min-height:48px!important;
   padding:8px clamp(9px,.9vw,15px)!important;
   border:1.5px solid var(--ri-green)!important;
   border-radius:11px!important;
   background:#fff!important;
   color:var(--ri-dark)!important;
   line-height:1.25!important;
 }
 /* Group captions use graphite, matching the logo title; left edges align with first buttons. */
 body .ri-header-shell .wp-block-navigation__container > .wp-block-navigation-item:first-child > a::before,
 body .ri-header-shell .wp-block-navigation__container > .wp-block-navigation-item:nth-child(4) > a::before,
 body .ri-header-shell .wp-block-navigation > a.ri-partner-login::before {
   position:absolute!important;
   left:0!important;
   top:-37px!important;
   display:block!important;
   padding:0!important;
   margin:0!important;
   font-size:16px!important;
   line-height:24px!important;
   font-weight:700!important;
   color:var(--ri-dark)!important;
   text-transform:none!important;
   white-space:nowrap!important;
   pointer-events:none!important;
 }
 body .ri-header-shell .wp-block-navigation__container > .wp-block-navigation-item:first-child > a::before {content:'Сотрудничество'!important;}
 body .ri-header-shell .wp-block-navigation__container > .wp-block-navigation-item:nth-child(4) > a::before {content:'Сервисы'!important;}
 /* Vertical dividers echo the logo separator and span caption + button height. */
 body .ri-header-shell .wp-block-navigation__container > .wp-block-navigation-item:nth-child(4) {margin-left:clamp(15px,1.5vw,25px)!important;}
 body .ri-header-shell .wp-block-navigation__container > .wp-block-navigation-item:nth-child(4)::before,
 body .ri-header-shell .wp-block-navigation > a.ri-partner-login::after {
   content:''!important;
   display:block!important;
   position:absolute!important;
   top:-37px!important;
   bottom:0!important;
   width:2px!important;
   background:var(--ri-green)!important;
   border:0!important;
   pointer-events:none!important;
 }
 body .ri-header-shell .wp-block-navigation__container > .wp-block-navigation-item:nth-child(4)::before {left:calc(-1 * clamp(15px,1.5vw,25px))!important;}
 /* Current menu item: approved old login style, bright soft green + green outline. */
 body.ri-view-home .ri-header-shell .wp-block-navigation__container > .wp-block-navigation-item:nth-child(1) > a,
 body.ri-view-kreditoram .ri-header-shell .wp-block-navigation__container > .wp-block-navigation-item:nth-child(2) > a,
 body.ri-view-predstavitelyam .ri-header-shell .wp-block-navigation__container > .wp-block-navigation-item:nth-child(3) > a,
 body.ri-view-finovera .ri-header-shell .wp-block-navigation__container > .wp-block-navigation-item:nth-child(4) > a,
 body.ri-view-webocenka .ri-header-shell .wp-block-navigation__container > .wp-block-navigation-item:nth-child(5) > a,
 body .ri-header-shell .wp-block-navigation__container > .wp-block-navigation-item > a[aria-current='page'] {
   background:#e6f4d0!important;
   border:2px solid var(--ri-green)!important;
   color:var(--ri-dark)!important;
   padding-bottom:8px!important;
 }
 /* Login stays separate; on pages without a cabinet URL the block is omitted. */
 body .ri-header-shell .wp-block-navigation > a.ri-partner-login {
   position:relative!important;
   align-self:flex-end!important;
   display:inline-flex!important;
   box-sizing:border-box!important;
   justify-content:center!important;
   align-items:center!important;
   min-height:48px!important;
   height:48px!important;
   padding:8px 15px!important;
   margin-left:clamp(14px,1.4vw,24px)!important;
   border:2px solid var(--ri-green)!important;
   border-radius:11px!important;
   background:#647079!important;
   color:#fff!important;
   font-size:16px!important;
   font-weight:800!important;
   line-height:1.25!important;
   text-decoration:none!important;
 }
 body .ri-header-shell .wp-block-navigation > a.ri-partner-login::before {content:'Доступ'!important;}
 body .ri-header-shell .wp-block-navigation > a.ri-partner-login::after {left:calc(-1 * clamp(14px,1.4vw,24px))!important;}
 body .ri-header-shell .wp-block-navigation > a.ri-partner-login:hover,
 body .ri-header-shell .wp-block-navigation > a.ri-partner-login:focus-visible {background:#47555e!important;color:#fff!important;}
}
/* Retain one-line desktop geometry at the intermediate breakpoint. */
@media (min-width:1081px) and (max-width:1480px) {
 body .ri-header-shell .wp-block-navigation__container > .wp-block-navigation-item > a.wp-block-navigation-item__content {height:44px!important;min-height:44px!important;padding:7px 9px!important;font-size:15px!important;}
 body .ri-header-shell .wp-block-navigation > a.ri-partner-login {height:44px!important;min-height:44px!important;padding:7px 11px!important;font-size:15px!important;}
 body .ri-header-shell .wp-block-navigation__container > .wp-block-navigation-item:first-child > a::before,
 body .ri-header-shell .wp-block-navigation__container > .wp-block-navigation-item:nth-child(4) > a::before,
 body .ri-header-shell .wp-block-navigation > a.ri-partner-login::before {font-size:14px!important;}
}


/* v3.14 — symmetrical separators and slightly larger group captions.
 * Each divider sits at the centre of a gap measuring two ordinary
 * inter-button spaces: button — 1 space — divider — 1 space — button.
 * Desktop only; mobile layout is untouched. */
@media (min-width:1081px) {
 body .ri-header-shell {--ri-nav-button-gap:clamp(9px,.85vw,14px);}
 body .ri-header-shell > .wp-block-navigation {gap:0!important;}
 body .ri-header-shell .wp-block-navigation__container {
   gap:var(--ri-nav-button-gap)!important;
 }
 body .ri-header-shell .wp-block-navigation__container > .wp-block-navigation-item:nth-child(4) {
   margin-left:var(--ri-nav-button-gap)!important;
 }
 body .ri-header-shell .wp-block-navigation__container > .wp-block-navigation-item:nth-child(4)::before {
   left:calc(-1 * var(--ri-nav-button-gap))!important;
 }
 body .ri-header-shell .wp-block-navigation > a.ri-partner-login {
   margin-left:calc(2 * var(--ri-nav-button-gap))!important;
 }
 body .ri-header-shell .wp-block-navigation > a.ri-partner-login::after {
   left:calc(-1 * var(--ri-nav-button-gap))!important;
 }
 body .ri-header-shell .wp-block-navigation__container > .wp-block-navigation-item:first-child > a::before,
 body .ri-header-shell .wp-block-navigation__container > .wp-block-navigation-item:nth-child(4) > a::before,
 body .ri-header-shell .wp-block-navigation > a.ri-partner-login::before {
   font-size:18px!important;
 }
}
@media (min-width:1081px) and (max-width:1480px) {
 body .ri-header-shell .wp-block-navigation__container > .wp-block-navigation-item:first-child > a::before,
 body .ri-header-shell .wp-block-navigation__container > .wp-block-navigation-item:nth-child(4) > a::before,
 body .ri-header-shell .wp-block-navigation > a.ri-partner-login::before {
   font-size:16px!important;
 }
}

/* 3.15 — adaptive compact fixed header. In-page placeholder preserves scroll position. */
body .ri-sticky-header-slot{display:block;position:relative;width:100%;box-sizing:border-box}
body .ri-sticky-header-slot>.ri-header-shell{transition:padding .22s ease,min-height .22s ease,box-shadow .22s ease}
body .ri-sticky-header-slot>.ri-header-shell.ri-is-compact{position:fixed!important;z-index:9990!important;top:0!important;left:50%!important;transform:translateX(-50%)!important;width:calc(100% - 2 * var(--ri-gutter))!important;max-width:var(--ri-page-width)!important;margin:0!important;background:#fff!important;border-bottom:1px solid var(--ri-green)!important;box-shadow:0 7px 22px rgba(33,51,59,.13)!important}
body.admin-bar .ri-sticky-header-slot>.ri-header-shell.ri-is-compact{top:32px!important}
@media(max-width:782px){body.admin-bar .ri-sticky-header-slot>.ri-header-shell.ri-is-compact{top:46px!important}}
@media(min-width:1081px){
body .ri-sticky-header-slot>.ri-header-shell.ri-is-compact{min-height:76px!important;padding-block:10px!important;align-items:center!important}
body .ri-sticky-header-slot>.ri-header-shell.ri-is-compact .ri-header-brand{grid-template-columns:56px 160px!important;column-gap:12px!important;row-gap:0!important;align-items:center!important}
body .ri-sticky-header-slot>.ri-header-shell.ri-is-compact .ri-header-brand .wp-block-site-logo{width:52px!important;height:53px!important}
body .ri-sticky-header-slot>.ri-header-shell.ri-is-compact .ri-header-brand .wp-block-site-logo img{width:49px!important;height:49px!important;max-width:49px!important;max-height:49px!important}
body .ri-sticky-header-slot>.ri-header-shell.ri-is-compact .ri-header-brand .wp-block-site-logo::after{top:5px!important;bottom:5px!important;right:-7px!important}
body .ri-sticky-header-slot>.ri-header-shell.ri-is-compact .ri-header-brand .wp-block-site-title{font-size:19px!important;line-height:.96!important;max-width:160px!important;width:160px!important}
body .ri-sticky-header-slot>.ri-header-shell.ri-is-compact .ri-header-brand .ri-since{display:none!important}
body .ri-sticky-header-slot>.ri-header-shell.ri-is-compact>.wp-block-navigation{align-self:center!important;align-items:center!important;gap:0!important}
body .ri-sticky-header-slot>.ri-header-shell.ri-is-compact .wp-block-navigation__container{align-items:center!important}
body .ri-sticky-header-slot>.ri-header-shell.ri-is-compact .wp-block-navigation__container>.wp-block-navigation-item>a.wp-block-navigation-item__content,
body .ri-sticky-header-slot>.ri-header-shell.ri-is-compact .wp-block-navigation>a.ri-partner-login{height:42px!important;min-height:42px!important;padding:7px clamp(7px,.8vw,12px)!important;font-size:14px!important;border-radius:8px!important;align-self:center!important}
body .ri-sticky-header-slot>.ri-header-shell.ri-is-compact .wp-block-navigation__container>.wp-block-navigation-item:first-child>a::before,
body .ri-sticky-header-slot>.ri-header-shell.ri-is-compact .wp-block-navigation__container>.wp-block-navigation-item:nth-child(4)>a::before,
body .ri-sticky-header-slot>.ri-header-shell.ri-is-compact .wp-block-navigation>a.ri-partner-login::before{content:none!important;display:none!important}
body .ri-sticky-header-slot>.ri-header-shell.ri-is-compact .wp-block-navigation__container>.wp-block-navigation-item:nth-child(4)::before,
body .ri-sticky-header-slot>.ri-header-shell.ri-is-compact .wp-block-navigation>a.ri-partner-login::after{top:6px!important;bottom:6px!important}
}
@media(max-width:1080px){
body .ri-sticky-header-slot>.ri-header-shell.ri-is-compact{min-height:66px!important;padding-block:6px!important;gap:8px!important;flex-wrap:nowrap!important;align-items:center!important}
body .ri-sticky-header-slot>.ri-header-shell.ri-is-compact .ri-header-brand{display:grid!important;grid-template-columns:42px minmax(0,120px)!important;column-gap:8px!important;row-gap:0!important;flex:0 1 auto!important;min-width:0!important;width:auto!important}
body .ri-sticky-header-slot>.ri-header-shell.ri-is-compact .ri-header-brand .wp-block-site-logo{width:40px!important;height:43px!important}
body .ri-sticky-header-slot>.ri-header-shell.ri-is-compact .ri-header-brand .wp-block-site-logo img{width:38px!important;height:38px!important;max-width:38px!important;max-height:38px!important}
body .ri-sticky-header-slot>.ri-header-shell.ri-is-compact .ri-header-brand .wp-block-site-logo::after{top:3px!important;bottom:3px!important;right:-5px!important}
body .ri-sticky-header-slot>.ri-header-shell.ri-is-compact .ri-header-brand .wp-block-site-title{font-size:15px!important;line-height:.95!important;width:auto!important;max-width:120px!important;overflow-wrap:normal!important}
body .ri-sticky-header-slot>.ri-header-shell.ri-is-compact .ri-header-brand .ri-since{display:none!important}
body .ri-sticky-header-slot>.ri-header-shell.ri-is-compact .wp-block-navigation{margin-left:auto!important;gap:6px!important;align-items:center!important;flex-wrap:nowrap!important}
body .ri-sticky-header-slot>.ri-header-shell.ri-is-compact .wp-block-navigation>a.ri-partner-login{min-height:44px!important;height:44px!important;padding:7px 9px!important;font-size:12px!important}
body .ri-sticky-header-slot>.ri-header-shell.ri-is-compact .wp-block-navigation__responsive-container-open{min-height:44px!important;height:44px!important;min-width:44px!important;width:44px!important}
body .ri-sticky-header-slot>.ri-header-shell.ri-is-compact .wp-block-navigation__responsive-container.is-menu-open{top:76px!important;max-height:calc(100dvh - 90px)!important}
body.admin-bar .ri-sticky-header-slot>.ri-header-shell.ri-is-compact .wp-block-navigation__responsive-container.is-menu-open{top:122px!important;max-height:calc(100dvh - 140px)!important}
}
@media(max-width:390px){
body .ri-sticky-header-slot>.ri-header-shell.ri-is-compact .ri-header-brand{grid-template-columns:39px minmax(0,100px)!important;column-gap:7px!important}
body .ri-sticky-header-slot>.ri-header-shell.ri-is-compact .ri-header-brand .wp-block-site-title{font-size:13px!important}
body .ri-sticky-header-slot>.ri-header-shell.ri-is-compact .wp-block-navigation>a.ri-partner-login{padding-inline:7px!important;font-size:11px!important}
}
@media(prefers-reduced-motion:reduce){body .ri-sticky-header-slot>.ri-header-shell{transition:none!important}}


/* 3.16 — final polish for compact header desktop alignment.
   1) In the compact header, the wordmark is truly centered against the icon.
      We switch the reduced brand grid to a single-row matrix so hiding the
      tagline does not leave an empty second row that visually lifts the title.
   2) The whole navigation block is nudged left by one normal inter-button gap,
      matching the spacing rhythm already used inside the menu groups. */
@media (min-width:1081px){
 body .ri-header-shell{--ri-nav-button-gap:clamp(9px,.85vw,14px);}
 body .ri-header-shell>.wp-block-navigation{
   transform:translateX(calc(-1 * var(--ri-nav-button-gap)))!important;
 }

 body .ri-sticky-header-slot>.ri-header-shell.ri-is-compact .ri-header-brand{
   grid-template-columns:56px 160px!important;
   grid-template-rows:auto!important;
   grid-template-areas:'mark name'!important;
   column-gap:12px!important;
   row-gap:0!important;
   align-items:center!important;
   align-content:center!important;
 }
 body .ri-sticky-header-slot>.ri-header-shell.ri-is-compact .ri-header-brand .wp-block-site-title{
   align-self:center!important;
   display:flex!important;
   align-items:center!important;
   min-height:49px!important;
   margin:0!important;
   padding:0!important;
 }
 body .ri-sticky-header-slot>.ri-header-shell.ri-is-compact .ri-header-brand .ri-since{display:none!important;}
}
@media (max-width:1080px){
 /* Mobile header should keep its previous geometry with no horizontal shift. */
 body .ri-header-shell>.wp-block-navigation{transform:none!important;}
}


/* 3.17 — raise desktop navigation groups so they sit level with the logo.
   Applies only to the full desktop header; the compact sticky state and mobile
   layouts keep their previously approved geometry. */
@media (min-width:1081px){
  body .ri-header-shell:not(.ri-is-compact) > .wp-block-navigation{
    position:relative!important;
    top:-12px!important;
  }
}


/* v3.18 — consistent exterior spacing around section divider lines.
   These rules do not change the interior of the cards or the site header/footer. */
body .wp-block-post-content > .ri-section {
  padding-top:48px!important;
  padding-bottom:48px!important;
  margin-top:0!important;
  margin-bottom:0!important;
}
body .wp-block-post-content > .ri-section + .ri-section {
  border-top:1px solid var(--ri-green)!important;
}
@media(max-width:780px){
  body .wp-block-post-content > .ri-section {padding-top:28px!important;padding-bottom:28px!important;}
}

/* v3.18 — compact icon-left cards. Their content still comes from editable
   Gutenberg blocks; only presentation changes, with original pictograms v1. */
body .wp-block-post-content .ri-compact-cards .wp-block-columns > .wp-block-column > .ri-card[class*="ri-pict-"] {
  display:grid!important;
  grid-template-columns:64px minmax(0,1fr)!important;
  grid-template-rows:auto auto!important;
  column-gap:17px!important;
  row-gap:4px!important;
  align-content:center!important;
  align-items:start!important;
  padding:19px 21px!important;
  min-height:112px!important;
  height:100%!important;
  box-sizing:border-box!important;
}
body .wp-block-post-content .ri-compact-cards .wp-block-columns > .wp-block-column > .ri-card[class*="ri-pict-"]::before {
  content:""!important;
  grid-column:1!important;
  grid-row:1 / -1!important;
  align-self:center!important;
  justify-self:center!important;
  position:static!important;
  width:60px!important;
  height:60px!important;
  margin:0!important;
  padding:0!important;
  transform:none!important;
  background-size:contain!important;
  background-position:center!important;
  background-repeat:no-repeat!important;
  background-color:transparent!important;
  border-radius:0!important;
}
body .wp-block-post-content .ri-compact-cards .wp-block-columns > .wp-block-column > .ri-card[class*="ri-pict-"] > h3 {
  grid-column:2!important;
  grid-row:1!important;
  align-self:end!important;
  margin:0!important;
  font-size:clamp(17px,1.35vw,21px)!important;
}
body .wp-block-post-content .ri-compact-cards .wp-block-columns > .wp-block-column > .ri-card[class*="ri-pict-"] > p {
  grid-column:2!important;
  grid-row:2!important;
  margin:0!important;
  min-width:0!important;
}
@media(max-width:780px){
  body .wp-block-post-content .ri-compact-cards .wp-block-columns > .wp-block-column > .ri-card[class*="ri-pict-"] {
    grid-template-columns:48px minmax(0,1fr)!important;
    column-gap:12px!important;
    padding:16px!important;
    min-height:92px!important;
    height:auto!important;
  }
  body .wp-block-post-content .ri-compact-cards .wp-block-columns > .wp-block-column > .ri-card[class*="ri-pict-"]::before {
    width:46px!important;height:46px!important;
  }
}

/* 4 new creditor-category cards: identical, readable heights and art from v1. */
body .wp-block-post-content .ri-creditor-types .wp-block-columns > .wp-block-column > .ri-card {background:#fff!important;}
body .wp-block-post-content .ri-creditor-types .ri-card > p {font-size:15px;line-height:1.55;}


/* v3.18: accessible e-mail chooser with mailto fallback if scripts are disabled. */
.ri-mail-dialog-backdrop{position:fixed;inset:0;z-index:100010;background:rgba(18,35,42,.46);display:flex;align-items:center;justify-content:center;padding:18px;}
.ri-mail-dialog{box-sizing:border-box;background:#fff;color:var(--ri-dark);border:1px solid var(--ri-green);border-radius:15px;box-shadow:0 16px 50px #172f3840;padding:24px;width:min(460px,100%);max-height:90dvh;overflow:auto;}
.ri-mail-dialog h2{font-size:23px!important;margin:0 0 10px!important;color:var(--ri-dark)}
.ri-mail-dialog p{font-size:15px;line-height:1.5;overflow-wrap:anywhere;margin:0 0 16px}
.ri-mail-options{display:grid;gap:10px}
.ri-mail-option{display:flex;align-items:center;justify-content:center;min-height:46px;width:100%;padding:9px 12px;border-radius:9px;border:1px solid #8cc63f;background:white;color:#2e454f;cursor:pointer;font:700 15px/1.3 Arial,sans-serif}
.ri-mail-option:hover,.ri-mail-option:focus-visible{background:#e9f4dc;outline-offset:2px}
.ri-mail-option-primary{background:#8cc63f;color:#25323a}
.ri-mail-dialog .ri-mail-status{margin:10px 0;color:#37631d;font-size:13px}
.ri-mail-dialog .ri-mail-close{margin-top:6px;background:#eef2ee}

/* v3.19: handle added category cards on both WP default layouts and after
 * previously installed older post markup. All pictograms are the approved v1. */
body .wp-block-post-content .ri-creditor-types .ri-card[class*="ri-pict-"]{
  display:grid!important;
  grid-template-columns:64px minmax(0,1fr)!important;
  grid-template-rows:auto auto!important;
  gap:4px 16px!important;
  align-items:center!important;
  padding:19px 21px!important;
}
body .wp-block-post-content .ri-creditor-types .ri-card[class*="ri-pict-"]::before{
  grid-area:1 / 1 / 3 / 2!important;
  position:static!important;
  align-self:center!important;
  width:60px!important;height:60px!important;
  margin:0!important;transform:none!important;
  background-color:transparent!important;
  background-position:center!important;
  background-size:contain!important;
}
body .wp-block-post-content .ri-creditor-types .ri-card[class*="ri-pict-"]>h3{grid-area:1 / 2!important;align-self:end!important;margin:0!important}
body .wp-block-post-content .ri-creditor-types .ri-card[class*="ri-pict-"]>p{grid-area:2 / 2!important;align-self:start!important;margin:0!important}
@media(max-width:780px){
 body .wp-block-post-content .ri-creditor-types .ri-card[class*="ri-pict-"]{grid-template-columns:48px minmax(0,1fr)!important;padding:16px!important;gap:4px 12px!important;}
 body .wp-block-post-content .ri-creditor-types .ri-card[class*="ri-pict-"]::before{width:46px!important;height:46px!important;}
}


/* v3.24: uniform compact space ON BOTH SIDES of every content divider.
   Standard sections (including Finovera and Webocenka) have 28px desktop
   and 20px mobile. The first section is aligned with the header's usual gap.
   Does not change internal card spacing or header/footer. */
body .wp-block-post-content > .ri-section {
  padding-block:28px!important;
  margin-block:0!important;
}
body .wp-block-post-content > .ri-section + .ri-section {
  border-top:1px solid var(--ri-green)!important;
}
/* Preserve the narrower statistics band without altering its content. */
body .wp-block-post-content > .ri-stats-section {
  padding-block:28px!important;
}
@media(max-width:780px){
  body .wp-block-post-content > .ri-section,
  body .wp-block-post-content > .ri-stats-section {padding-block:20px!important;}
}
/* Mail fallback link is the true mailto: URL, not a scripted navigation. */
.ri-mail-dialog a.ri-mail-option{
  display:flex;align-items:center;justify-content:center;
  text-decoration:none;cursor:pointer;
}
.ri-mail-dialog .ri-mail-hint{
  font-size:12px;line-height:1.5;color:#59686e;margin:8px 0 10px;
}


/* v3.25 — centered brand and independent, fully visible mobile navigation. */
@media(max-width:1080px){
  body .ri-sticky-header-slot > .ri-header-shell.ri-is-compact .ri-header-brand{
    display:grid!important;
    grid-template-rows:1fr!important;
    grid-template-areas:"mark name"!important;
    align-items:center!important;
    align-content:center!important;
  }
  body .ri-sticky-header-slot > .ri-header-shell.ri-is-compact .ri-header-brand .wp-block-site-logo{
    grid-area:mark!important;align-self:center!important;margin:0!important;
  }
  body .ri-sticky-header-slot > .ri-header-shell.ri-is-compact .ri-header-brand .wp-block-site-title{
    grid-area:name!important;align-self:center!important;
    display:flex!important;align-items:center!important;
    margin:0!important;padding:0!important;min-height:38px!important;
    line-height:1!important;
  }
  body .ri-sticky-header-slot > .ri-header-shell.ri-is-compact .ri-header-brand .wp-block-site-title a{
    display:block!important;line-height:1!important;
  }
  body .ri-sticky-header-slot > .ri-header-shell.ri-is-compact .ri-header-brand .ri-since{
    display:none!important;
  }
  /* WordPress's transformed fixed header must not crop the new portal. */
  body.ri-mobile-menu-open .ri-header-shell .wp-block-navigation__responsive-container.is-menu-open{
    display:none!important;
  }
}
.ri-mobile-nav-panel[hidden],.ri-mobile-nav-backdrop[hidden]{display:none!important}
.ri-mobile-nav-backdrop{
 position:fixed!important;inset:0!important;z-index:99995!important;
 background:rgba(33,51,59,.24)!important;
}
.ri-mobile-nav-panel{
 position:fixed!important;z-index:99996!important;
 box-sizing:border-box!important;
 display:flex!important;flex-direction:column!important;
 gap:12px!important;
 padding:16px!important;
 border:1px solid var(--ri-green)!important;border-radius:13px!important;
 background:#fff!important;color:var(--ri-dark)!important;
 box-shadow:0 16px 40px rgba(35,52,60,.22)!important;
 overflow-y:auto!important;overscroll-behavior:contain!important;
 -webkit-overflow-scrolling:touch!important;
}
.ri-mobile-nav-panel .ri-mobile-nav-top{
 display:flex!important;align-items:center!important;justify-content:space-between!important;
 gap:12px!important;font-size:16px!important;font-weight:700!important;
}
.ri-mobile-nav-panel .ri-mobile-nav-close{
 display:flex!important;align-items:center!important;justify-content:center!important;
 min-width:44px!important;min-height:44px!important;border:1px solid var(--ri-green)!important;
 border-radius:8px!important;background:#f3f8ed!important;
 color:var(--ri-dark)!important;font-size:26px!important;line-height:1!important;
 cursor:pointer!important;
}
.ri-mobile-nav-panel .ri-mobile-nav-links{
 display:flex!important;flex-direction:column!important;align-items:stretch!important;
 gap:9px!important;min-height:0!important;
}
.ri-mobile-nav-panel .ri-mobile-nav-links a{
 box-sizing:border-box!important;display:flex!important;align-items:center!important;
 width:100%!important;min-height:48px!important;padding:10px 14px!important;
 background:#fff!important;color:var(--ri-dark)!important;
 border:1px solid var(--ri-green)!important;border-radius:9px!important;
 font:700 16px/1.3 Arial,Helvetica,sans-serif!important;
 text-decoration:none!important;
}
.ri-mobile-nav-panel .ri-mobile-nav-links a[aria-current="page"]{
 background:#e6f4d0!important;border-width:2px!important;
}
.ri-mobile-nav-panel :is(a,button):focus-visible{outline:3px solid var(--ri-green)!important;outline-offset:2px!important}
@media(min-width:1081px){
 .ri-mobile-nav-panel,.ri-mobile-nav-backdrop{display:none!important}
}

/* v3.26: symmetrical logo/wordmark gaps in the compact mobile header.
   The logo's separator sits ~7px after the mark; match this on its text side.
   Preserve the single-row vertical alignment and the working v3.25 menu. */
@media (max-width:1080px) {
  body .ri-sticky-header-slot > .ri-header-shell.ri-is-compact .ri-header-brand {
    column-gap:10px!important;
  }
}
@media (max-width:390px) {
  body .ri-sticky-header-slot > .ri-header-shell.ri-is-compact .ri-header-brand {
    column-gap:13px!important;
  }
}

/* v3.26: desktop navigation dividers match the wordmark's green separator:
   same corporate colour, 1px stroke, and 74px overall length. */
@media (min-width:1081px) {
  body .ri-header-shell:not(.ri-is-compact) .wp-block-navigation__container > .wp-block-navigation-item:nth-child(4)::before,
  body .ri-header-shell:not(.ri-is-compact) .wp-block-navigation > a.ri-partner-login::after {
    width:1px!important;
    height:74px!important;
    top:auto!important;
    bottom:0!important;
    background:var(--ri-green)!important;
  }
  body .ri-sticky-header-slot > .ri-header-shell.ri-is-compact .wp-block-navigation__container > .wp-block-navigation-item:nth-child(4)::before,
  body .ri-sticky-header-slot > .ri-header-shell.ri-is-compact .wp-block-navigation > a.ri-partner-login::after {
    width:1px!important;
    height:43px!important;
    top:auto!important;
    bottom:0!important;
    background:var(--ri-green)!important;
  }
}


/* v3.28 — approved compact footer and scroll-to-top button.
   The first footer row remains within the same page-width container. */
body .wp-site-blocks > footer.ri-footer,
body footer.ri-footer { margin-top:0!important; }
/* Suppress only the surplus space after the FINAL content section. */
body .wp-block-post-content > .ri-section:last-child {padding-bottom:12px!important;}
body .wp-block-post-content > .ri-web-section:last-child {padding-bottom:12px!important;}
body footer.ri-footer .ri-footer-shell {padding-top:26px!important;padding-bottom:17px!important;}
/* Four-column grid: brand / contacts / company / scroll button. */
@media(min-width:1121px){
 body footer.ri-footer .ri-footer-grid.wp-block-columns,
 body footer.ri-footer .ri-footer-shell > .ri-footer-grid.wp-block-columns,
 body footer.ri-footer .ri-footer-grid.is-layout-flex {
   grid-template-columns:minmax(355px,1.35fr) minmax(285px,1fr) minmax(250px,1.07fr) 82px!important;
   column-gap:clamp(14px,1.7vw,26px)!important;
   align-items:center!important;
 }
 body footer.ri-footer .ri-footer-grid > .wp-block-column:first-child{grid-column:auto!important;}
 body footer.ri-footer .ri-footer-brand {
   display:grid!important;
   grid-template-columns:84px minmax(155px,180px) minmax(95px,1fr)!important;
   grid-template-rows:1fr!important;
   grid-template-areas:'mark name since'!important;
   column-gap:11px!important;align-items:center!important;
   width:100%!important;max-width:100%!important;
 }
 body footer.ri-footer .ri-footer-brand .wp-block-site-logo {width:84px!important;height:86px!important;}
 body footer.ri-footer .ri-footer-brand .wp-block-site-logo img {width:80px!important;height:80px!important;max-width:80px!important;max-height:80px!important;}
 body footer.ri-footer .ri-footer-brand .wp-block-site-logo::after {right:-7px!important;top:7px!important;bottom:7px!important;}
 body footer.ri-footer .ri-footer-brand .wp-block-site-title {width:auto!important;max-width:180px!important;font-size:23px!important;}
 body footer.ri-footer .ri-footer-brand .ri-since {font-size:13px!important;white-space:normal!important;}
 body footer.ri-footer .ri-footer-grid h3{margin-bottom:9px!important;}
 body footer.ri-footer .ri-footer-grid .ri-social {width:47px!important;height:47px!important;min-width:47px!important;min-height:47px!important;flex-basis:47px!important;}
 body footer.ri-footer .ri-footer-grid .ri-footer-contact {gap:7px!important;}
 body footer.ri-footer .ri-footer-details p {margin:2px 0!important;}
}
/* The action is its own footer column, not a floating button obscuring policy links. */
body footer.ri-footer .ri-footer-top-column {
 display:flex!important;align-items:center;justify-content:flex-end;
 min-width:0!important;width:auto!important;max-width:none!important;
 margin:0!important;padding:0!important;
}
body footer.ri-footer .ri-back-top {
 display:flex;align-items:center;justify-content:center;flex-direction:column;
 width:80px;height:80px;min-width:80px;min-height:80px;
 padding:6px;border:2px solid var(--ri-green);border-radius:50%;
 background:#fbfdf9;color:#215c2d;box-shadow:0 3px 10px rgba(38,65,47,.08);
 font:700 14px/1.15 Arial,Helvetica,sans-serif;cursor:pointer;
 transition:background .15s ease,box-shadow .15s ease;
}
body footer.ri-footer .ri-back-top svg {display:block;width:26px;height:26px;margin-bottom:3px;fill:none;stroke:currentColor;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round;}
body footer.ri-footer .ri-back-top:hover {background:#eaf6dc;box-shadow:0 4px 14px rgba(38,65,47,.12);}
body footer.ri-footer .ri-back-top:focus-visible {outline:3px solid #2e454f;outline-offset:3px;}
body footer.ri-footer .ri-footer-policy {margin-top:17px!important;padding-top:12px!important;}
@media(min-width:781px) and (max-width:1120px){
 body footer.ri-footer .ri-footer-grid.wp-block-columns,
 body footer.ri-footer .ri-footer-shell > .ri-footer-grid.wp-block-columns,
 body footer.ri-footer .ri-footer-grid.is-layout-flex {
   grid-template-columns:minmax(0,1.2fr) minmax(0,1fr) minmax(0,1fr) 80px!important;
   gap:14px!important;align-items:center!important;
 }
 body footer.ri-footer .ri-footer-grid > .wp-block-column:first-child {grid-column:auto!important;}
 body footer.ri-footer .ri-footer-brand {grid-template-columns:56px minmax(0,1fr)!important;grid-template-rows:auto auto!important;grid-template-areas:'mark name' 'mark since'!important;gap:2px 10px!important;}
 body footer.ri-footer .ri-footer-brand .wp-block-site-logo {width:56px!important;height:62px!important;}
 body footer.ri-footer .ri-footer-brand .wp-block-site-logo img {width:53px!important;height:53px!important;}
 body footer.ri-footer .ri-footer-brand .wp-block-site-title {font-size:18px!important;width:auto!important;max-width:100%!important;}
 body footer.ri-footer .ri-footer-brand .ri-since {font-size:11px!important;white-space:normal!important;}
 body footer.ri-footer .ri-footer-grid .ri-footer-contact {flex-wrap:wrap!important;gap:5px!important;}
 body footer.ri-footer .ri-footer-grid .ri-social {width:44px!important;height:44px!important;flex-basis:44px!important;min-width:44px!important;min-height:44px!important;}
 body footer.ri-footer .ri-footer-grid h3{font-size:15px!important;margin-bottom:8px!important;}
 body footer.ri-footer .ri-footer-details p{font-size:12px!important;}
}
@media(max-width:780px){
 body footer.ri-footer .ri-footer-shell {padding-top:19px!important;padding-bottom:16px!important;}
 body footer.ri-footer .ri-footer-grid.wp-block-columns,
 body footer.ri-footer .ri-footer-shell > .ri-footer-grid.wp-block-columns,
 body footer.ri-footer .ri-footer-grid.is-layout-flex {grid-template-columns:minmax(0,1fr) 80px!important;column-gap:12px!important;row-gap:18px!important;align-items:center!important;}
 body footer.ri-footer .ri-footer-grid > .wp-block-column:first-child {grid-column:1 / -1!important;}
 body footer.ri-footer .ri-footer-grid > .wp-block-column:nth-child(2),
 body footer.ri-footer .ri-footer-grid > .wp-block-column:nth-child(3) {grid-column:1!important;}
 body footer.ri-footer .ri-footer-top-column{grid-column:2!important;grid-row:2 / span 2;align-self:center!important;}
 body footer.ri-footer .ri-footer-grid h3{margin-bottom:9px!important;}
 body footer.ri-footer .ri-footer-details p{font-size:13px!important;}
 body footer.ri-footer .ri-footer-policy{margin-top:14px!important;padding-top:12px!important;}
}
@media(prefers-reduced-motion:reduce){html {scroll-behavior:auto!important;}body footer.ri-footer .ri-back-top{transition:none!important;}}

/* On narrow screens the scroll button scales with the smaller footer logo. */
@media(min-width:781px) and (max-width:1120px){
 body footer.ri-footer .ri-back-top{width:56px;height:56px;min-width:56px;min-height:56px;font-size:11px;}
 body footer.ri-footer .ri-back-top svg{width:20px;height:20px;margin-bottom:1px;}
}
@media(max-width:780px){
 body footer.ri-footer .ri-back-top{width:56px;height:56px;min-width:56px;min-height:56px;font-size:11px;}
 body footer.ri-footer .ri-back-top svg{width:20px;height:20px;margin-bottom:1px;}
 body footer.ri-footer .ri-footer-brand .wp-block-site-logo img{width:55px!important;height:55px!important;max-width:55px!important;max-height:55px!important;}
}


/* v3.29 — keep the entire footer top row inside the main footer band and nudge the back-top button inward. */
@media(min-width:1121px){
 body footer.ri-footer .ri-footer-grid.wp-block-columns,
 body footer.ri-footer .ri-footer-shell > .ri-footer-grid.wp-block-columns,
 body footer.ri-footer .ri-footer-grid.is-layout-flex {
   grid-template-columns:minmax(280px,1.12fr) minmax(215px,.92fr) minmax(250px,1fr) 72px!important;
   column-gap:clamp(10px,1.15vw,18px)!important;
 }
 body footer.ri-footer .ri-footer-brand {
   grid-template-columns:76px minmax(150px,170px) minmax(86px,1fr)!important;
   column-gap:10px!important;
 }
 body footer.ri-footer .ri-footer-brand .wp-block-site-logo {width:76px!important;height:78px!important;}
 body footer.ri-footer .ri-footer-brand .wp-block-site-logo img {width:72px!important;height:72px!important;max-width:72px!important;max-height:72px!important;}
 body footer.ri-footer .ri-footer-brand .wp-block-site-title {max-width:170px!important;font-size:22px!important;}
 body footer.ri-footer .ri-footer-brand .ri-since {font-size:12px!important;}
 body footer.ri-footer .ri-footer-grid .ri-social {width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;flex-basis:44px!important;}
 body footer.ri-footer .ri-footer-details p {font-size:12px!important;line-height:1.35!important;white-space:normal!important;}
 body footer.ri-footer .ri-footer-top-column {
   justify-content:flex-start!important;
   padding-right:8px!important;
 }
 body footer.ri-footer .ri-back-top {
   width:68px;height:68px;min-width:68px;min-height:68px;
   font-size:12px!important;padding:5px!important;
 }
 body footer.ri-footer .ri-back-top svg {width:22px!important;height:22px!important;margin-bottom:2px!important;}
}

/* v3.30.0 — privacy page alignment and footer positioning refinements */
/* Standard Gutenberg pages (e.g. privacy policy):
   keep normal text blocks inside the same site-width container,
   add a safe top gap under the header, and prevent first-child margin collapse. */
body .wp-block-post-content{display:flow-root;}
body .wp-block-post-content> :not(.ri-hero):not(.ri-section):not(.ri-landing):not(.ri-web-hero):not(.ri-web-section){
  width:calc(100% - 2 * var(--ri-gutter));
  max-width:var(--ri-page-width);
  margin-left:auto;
  margin-right:auto;
}
body .wp-block-post-content> :not(.ri-hero):not(.ri-section):not(.ri-landing):not(.ri-web-hero):not(.ri-web-section):first-child{
  margin-top:34px;
}
body .wp-block-post-content> h1:first-child,
body .wp-block-post-content> .wp-block-heading:first-child{
  padding-top:8px;
}
body .wp-block-post-content> p,
body .wp-block-post-content> ul,
body .wp-block-post-content> ol{
  font-size:17px;
  line-height:1.68;
}
body .wp-block-post-content> h1{
  font-size:clamp(34px,3.25vw,52px);
  line-height:1.18;
  color:var(--ri-dark);
  margin-bottom:22px;
}
body .wp-block-post-content> h2{
  font-size:clamp(28px,2.25vw,38px);
  line-height:1.22;
  color:var(--ri-dark);
  margin:42px auto 18px;
}
body .wp-block-post-content> h3{
  font-size:clamp(21px,1.55vw,28px);
  line-height:1.28;
  color:var(--ri-dark);
  margin:34px auto 14px;
}

/* Desktop footer: lift the contact buttons slightly and move the back-top button left. */
@media(min-width:1121px){
  body footer.ri-footer .ri-footer-grid.wp-block-columns,
  body footer.ri-footer .ri-footer-shell > .ri-footer-grid.wp-block-columns,
  body footer.ri-footer .ri-footer-grid.is-layout-flex {
    grid-template-columns:minmax(280px,1.12fr) minmax(215px,.92fr) minmax(250px,1fr) 64px!important;
    column-gap:clamp(10px,1.05vw,17px)!important;
  }
  body footer.ri-footer .ri-footer-grid > .wp-block-column:nth-child(2){margin-top:-6px!important;}
  body footer.ri-footer .ri-footer-grid > .wp-block-column:nth-child(2) h3{margin-bottom:7px!important;}
  body footer.ri-footer .ri-footer-grid > .wp-block-column:nth-child(2) .ri-footer-contact{margin-top:-2px!important;}
  body footer.ri-footer .ri-footer-top-column{padding-right:0!important;transform:translateX(-10px)!important;}
}

@media(max-width:600px){
  body .wp-block-post-content> :not(.ri-hero):not(.ri-section):not(.ri-landing):not(.ri-web-hero):not(.ri-web-section):first-child{margin-top:24px;}
  body .wp-block-post-content> h1{font-size:34px;}
}


/* v3.30.1 — footer logo composition matches the header; back-to-top centered. */
@media (min-width:1121px) {
  body footer.ri-footer .ri-footer-grid.wp-block-columns,
  body footer.ri-footer .ri-footer-shell > .ri-footer-grid.wp-block-columns,
  body footer.ri-footer .ri-footer-grid.is-layout-flex {
    grid-template-columns:minmax(320px,1.2fr) minmax(225px,.95fr) minmax(235px,1fr) 80px!important;
    column-gap:clamp(12px,1.15vw,19px)!important;
    align-items:center!important;
  }
  body footer.ri-footer .ri-footer-brand {
    display:grid!important;
    grid-template-columns:86px 202px!important;
    grid-template-rows:auto auto!important;
    grid-template-areas:'mark name' 'mark since'!important;
    column-gap:20px!important;
    row-gap:3px!important;
    width:max-content!important;
    max-width:100%!important;
    align-items:center!important;
    align-content:center!important;
    justify-content:start!important;
  }
  body footer.ri-footer .ri-footer-brand .wp-block-site-logo {
    grid-area:mark!important;
    width:86px!important;height:90px!important;
    margin:0!important;
    display:flex!important;align-items:center!important;justify-content:center!important;
  }
  body footer.ri-footer .ri-footer-brand .wp-block-site-logo img {
    width:80px!important;height:80px!important;max-width:80px!important;max-height:80px!important;
  }
  body footer.ri-footer .ri-footer-brand .wp-block-site-logo::after {
    top:8px!important;bottom:8px!important;right:-8px!important;
  }
  body footer.ri-footer .ri-footer-brand .wp-block-site-title {
    grid-area:name!important;
    width:202px!important;max-width:202px!important;
    font-size:26px!important;line-height:.98!important;
    margin:0!important;align-self:end!important;
  }
  body footer.ri-footer .ri-footer-brand .ri-since {
    grid-area:since!important;
    width:auto!important;max-width:202px!important;
    font-size:14px!important;white-space:nowrap!important;
    margin:0!important;padding:0!important;align-self:start!important;
  }
  body footer.ri-footer .ri-footer-top-column {
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    align-self:center!important;
    transform:translateX(-24px)!important;
    padding:0!important;
    margin:0!important;
  }
}
/* Compact layouts retain their existing stacked footer behavior. */

/* v3.30.2 — company network, isolated from existing home sections */
body .wp-block-post-content > .ri-ecosystem{padding-block:44px 50px!important;}
body .ri-ecosystem > h2{margin:0 0 14px!important;}
body .ri-ecosystem > .ri-ecosystem-intro{max-width:100%;margin:0 0 28px;color:#526067;font-size:17px;line-height:1.6;}
body .ri-ecosystem .ri-ecosystem-subtitle{display:flex;align-items:center;gap:12px;margin:25px 0 15px;font-size:23px;line-height:1.3;color:var(--ri-dark);font-weight:800;}
body .ri-ecosystem .ri-ecosystem-subtitle::before{content:'';display:inline-block;width:5px;height:25px;background:var(--ri-green);border-radius:4px;flex-shrink:0;}
body .ri-ecosystem .ri-ecosystem-grid.wp-block-columns{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:18px!important;margin:0!important;align-items:stretch!important;}
body .ri-ecosystem .ri-ecosystem-grid.ri-ecosystem-partners.wp-block-columns{grid-template-columns:repeat(3,minmax(0,1fr))!important;}
body .ri-ecosystem .ri-ecosystem-grid > .wp-block-column{min-width:0!important;margin:0!important;width:auto!important;}
body .ri-ecosystem .ri-ecosystem-card{height:100%;display:flex;flex-direction:column;align-items:flex-start;background:#fff;border:1px solid #dfe7db;border-radius:15px;padding:22px!important;box-shadow:0 6px 20px rgba(30,52,45,.045);}
body .ri-ecosystem .ri-ecosystem-card .ri-ecosystem-icon{width:64px!important;height:64px!important;margin:0 0 13px!important;flex:0 0 auto;}
body .ri-ecosystem .ri-ecosystem-card .ri-ecosystem-icon img{width:64px!important;height:64px!important;object-fit:contain;display:block;}
body .ri-ecosystem .ri-ecosystem-card h3{font-size:20px;line-height:1.3;color:var(--ri-dark);margin:0 0 10px!important;font-weight:800;}
body .ri-ecosystem .ri-ecosystem-card .ri-ecosystem-description{font-size:15px;line-height:1.55;color:#526067;margin:0 0 17px!important;}
body .ri-ecosystem .ri-ecosystem-card .ri-ecosystem-requisites{font-size:12px;line-height:1.55;color:#647078;border-top:1px solid #e0e7e2;padding-top:11px;margin:auto 0 0!important;width:100%;font-variant-numeric:tabular-nums;}
body .ri-ecosystem .ri-ecosystem-disclaimer{font-size:13px;line-height:1.55;color:#667277;margin:22px 0 0;}
@media(max-width:900px){body .ri-ecosystem .ri-ecosystem-grid.wp-block-columns{grid-template-columns:repeat(2,minmax(0,1fr))!important;}}
@media(max-width:600px){body .ri-ecosystem .ri-ecosystem-grid.wp-block-columns,body .ri-ecosystem .ri-ecosystem-grid.ri-ecosystem-partners.wp-block-columns{grid-template-columns:minmax(0,1fr)!important;}body .ri-ecosystem .ri-ecosystem-card{padding:18px!important;}body .ri-ecosystem .ri-ecosystem-subtitle{font-size:21px;}}

/* v3.30.3 — compact footer legal details; shared styles for all legal entities. */
body footer.ri-footer .ri-footer-details h3{margin-bottom:6px!important;line-height:1.2!important;}
body footer.ri-footer .ri-footer-details p{margin:1px 0!important;line-height:1.3!important;}
body .ri-ecosystem .ri-ecosystem-card .ri-ecosystem-partner-meta{font-size:12px;line-height:1.5;color:#647078;border-top:1px solid #e0e7e2;padding-top:11px;margin:auto 0 0!important;width:100%;}

/* v3.31: Clients page and consent-preserving payment dialog */
body .ri-clients-about{padding-top:38px}body .ri-clients-about h1{max-width:940px}
body .ri-clients-about p{max-width:950px;line-height:1.6}
body .ri-clients-card-grid,body .ri-knowledge-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:20px!important}
body .ri-clients-card-grid>.wp-block-column,body .ri-knowledge-grid>.wp-block-column{min-width:0;margin:0!important}
body .ri-clients-card,body .ri-knowledge-card{display:flex;flex-direction:column;align-items:flex-start;gap:10px;height:100%;border:1px solid #d8e4d2;border-radius:16px;padding:25px;background:#fff;box-sizing:border-box}
body .ri-clients-card .wp-block-buttons{margin-top:auto}body .ri-clients-card h3,body .ri-knowledge-card h3{margin:0}body .ri-clients-card p{margin:0 0 15px}body .ri-clients-card figure{margin:0}
body .ri-knowledge-card{background:#f7faf3}
body .ri-knowledge-card p{font-size:13px;color:#68736c}
body .ri-pay-open{cursor:pointer;font:inherit;font-weight:700!important}
body.ri-payment-open{overflow:hidden}
.ri-payment-backdrop[hidden],.ri-payment-dialog [hidden],.ri-payment-confirm[hidden]{display:none!important}
.ri-payment-backdrop{position:fixed;inset:0;z-index:999999;background:rgba(25,39,32,.72);display:flex;align-items:center;justify-content:center;padding:18px}
.ri-payment-dialog{font-family:system-ui,-apple-system,'Segoe UI',Arial,sans-serif;position:relative;width:min(100%,620px);max-height:calc(100vh - 36px);overflow:auto;box-sizing:border-box;border-radius:18px;background:#fff;box-shadow:0 28px 65px #0005;padding:25px;color:#29352b;overscroll-behavior:contain}
.ri-payment-dialog .ri-payment-top{display:flex;justify-content:space-between;align-items:center}.ri-payment-top h2{margin:0;font-size:23px}.ri-payment-top p{margin:4px 0 0;color:#67736d;font-size:13px}
.ri-payment-track{background:#e5ece2;height:6px;border-radius:9px;overflow:hidden;margin:16px 0 20px}.ri-payment-track>div{height:100%;background:#73a84d;transition:width .15s}
.ri-payment-dialog section h2{font-size:19px;margin:0 0 13px}.ri-payment-dialog label{font-weight:700;display:block;margin:14px 0 8px;font-size:15px}
.ri-payment-dialog input,.ri-payment-dialog select{display:block;width:100%;box-sizing:border-box;border:1px solid #b8c7b6;border-radius:9px;padding:12px;background:white;color:#29352b;font:inherit;font-size:16px}
.ri-payment-dialog input:focus-visible,.ri-payment-dialog select:focus-visible,.ri-payment-dialog button:focus-visible{outline:3px solid #9ac578;outline-offset:2px}
.ri-payment-dialog button{background:#589339;color:#fff;border:0;border-radius:10px;font-size:14px;font-weight:700;padding:12px 16px;cursor:pointer}
.ri-payment-dialog button:disabled{opacity:.48;cursor:not-allowed}.ri-payment-dialog button.ri-pay-quiet{background:#edf3e9;color:#294b2a}
.ri-payment-hint,.ri-payment-chosen{background:#f0f6eb;padding:13px;border-radius:10px;line-height:1.45;font-size:14px}.ri-payment-chosen p{margin:5px 0}.ri-payment-helper{font-size:13px;color:#657568;line-height:1.45;margin:6px 0 10px}.ri-payment-warning{font-size:13px;line-height:1.45;border-left:3px solid #ca9043;background:#fff8e9;padding:9px 11px;margin:12px 0 20px}
.ri-payment-actions{display:flex;justify-content:flex-end;gap:9px;flex-wrap:wrap;margin-top:20px}.ri-payment-center{text-align:center;font-weight:700}.ri-payment-qr{display:flex;justify-content:center;margin:12px auto;max-width:340px}.ri-payment-qr canvas{max-width:100%;height:auto;image-rendering:pixelated;border:10px solid #fff;box-shadow:0 0 0 1px #dde8dc;border-radius:8px}.ri-payment-qr-buttons{display:flex;gap:9px;justify-content:center;flex-wrap:wrap}.ri-payment-bank{background:#f7faf5;border:1px solid #e1e9dd;padding:16px;border-radius:10px;margin:17px 0;overflow-wrap:anywhere;font-size:13px}.ri-payment-bank p{margin:7px 0}.ri-payment-finish{padding-left:23px}.ri-payment-finish li{margin:13px 0}.ri-payment-finish p{font-size:14px;margin:4px 0;line-height:1.45}.ri-payment-message{min-height:18px;color:#a34a26;font-size:13px}.ri-payment-confirm{position:sticky;bottom:0;z-index:5;background:#fff;padding:16px;box-shadow:0 0 0 100vh rgba(20,35,25,.50);border:2px solid #92be78;border-radius:12px}.ri-payment-confirm h3{margin:0}
@media(max-width:700px){body .ri-clients-card-grid,body .ri-knowledge-grid{grid-template-columns:1fr!important}.ri-payment-dialog{padding:17px}.ri-payment-backdrop{padding:10px}.ri-payment-dialog{max-height:calc(100vh - 20px)}.ri-payment-actions button{flex:1}}

/* Compact six-item desktop header, with page-specific payment action */
@media (min-width:1081px){body .ri-header-shell .wp-block-navigation__container{gap:6px!important}body .ri-header-shell .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content{padding-inline:10px!important;font-size:15px!important}body .ri-header-shell .wp-block-navigation > .ri-pay-open{padding-inline:12px!important;font-size:14px!important}}


/* RELEASE 7.1 — approved header grouping, client hero and compact cards */
@media(min-width:1081px){
 body .ri-header-shell{--ri-nav-button-gap:clamp(7px,.7vw,11px)!important;gap:clamp(6px,.8vw,14px)!important;}
 body .ri-header-shell .ri-header-brand{flex-shrink:1!important;min-width:0!important}
 body .ri-header-shell .wp-block-navigation__container{gap:var(--ri-nav-button-gap)!important}
 body .ri-header-shell .wp-block-navigation__container>.wp-block-navigation-item:nth-child(4){margin-left:0!important}
 body .ri-header-shell .wp-block-navigation__container>.wp-block-navigation-item:nth-child(4)::before{content:none!important}
 body .ri-header-shell .wp-block-navigation__container>.wp-block-navigation-item:nth-child(4)>a::before{content:none!important}
 body .ri-header-shell .wp-block-navigation__container>.wp-block-navigation-item:nth-child(5){margin-left:var(--ri-nav-button-gap)!important}
 body .ri-header-shell .wp-block-navigation__container>.wp-block-navigation-item:nth-child(5)::before{content:''!important;display:block!important;position:absolute!important;top:-37px!important;bottom:0!important;width:2px!important;left:calc(-1 * var(--ri-nav-button-gap))!important;background:var(--ri-green)!important}
 body .ri-header-shell .wp-block-navigation__container>.wp-block-navigation-item:nth-child(5)>a::before{content:'Сервисы'!important;position:absolute!important;left:0!important;top:-37px!important;display:block!important;padding:0!important;margin:0!important;font-size:16px!important;line-height:24px!important;font-weight:700!important;color:var(--ri-dark)!important;white-space:nowrap!important;pointer-events:none!important}
 body .ri-header-shell .wp-block-navigation>a.ri-partner-login,body .ri-header-shell .wp-block-navigation>button.ri-pay-open{margin-left:calc(2 * var(--ri-nav-button-gap))!important;}
}
body.ri-view-klientam .ri-header-shell .wp-block-navigation__container>.wp-block-navigation-item:nth-child(4)>a, body.ri-view-klientam .ri-header-shell .wp-block-navigation__container>.ri-client-nav>a{background:#e6f4d0!important;border:2px solid var(--ri-green)!important;color:var(--ri-dark)!important}
body.ri-view-klientam .ri-header-shell .wp-block-navigation__container>.wp-block-navigation-item:nth-child(5)>a:not([aria-current='page']){background:white!important;border:1.5px solid var(--ri-green)!important}
body .ri-header-shell .wp-block-navigation>button.ri-pay-open{position:relative!important;box-sizing:border-box!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;align-self:end!important;min-height:44px!important;height:44px!important;padding:7px 11px!important;border:1.5px solid var(--ri-green)!important;border-radius:10px!important;background:#e6f4d0!important;color:var(--ri-dark)!important;font-family:inherit!important;font-size:15px!important;line-height:1.25!important;font-weight:700!important;white-space:nowrap!important;box-shadow:none!important;cursor:pointer!important}
body .ri-header-shell .wp-block-navigation>button.ri-pay-open::before{content:'Доступ'!important;position:absolute!important;top:-31px!important;left:0!important;line-height:24px!important;font-size:16px!important;font-weight:700!important;white-space:nowrap!important;color:var(--ri-dark)!important}
body .ri-header-shell .wp-block-navigation>button.ri-pay-open::after{content:''!important;position:absolute!important;top:-37px!important;bottom:0!important;left:calc(-1 * clamp(9px,.85vw,14px))!important;width:2px!important;background:var(--ri-green)!important}
body .ri-clients-about{position:relative!important;min-height:570px!important;padding:75px 47% 50px 0!important;background-image:url('assets/clients-hero-7-1.webp')!important;background-position:right center!important;background-repeat:no-repeat!important;background-size:49% auto!important}
body .ri-clients-about h1{font-size:clamp(32px,3.2vw,48px)!important;line-height:1.12!important;margin:20px 0!important;letter-spacing:-.02em!important}
body .ri-clients-about p{font-size:15px!important;line-height:1.55!important;margin:8px 0!important}
body .ri-clients-about .ri-clients-eyebrow{color:#3b742e!important;border-left:4px solid var(--ri-green)!important;padding-left:12px!important;font-size:14px!important}
body .ri-clients-about .ri-clients-accent{font-weight:700!important;color:#41981c!important;font-size:17px!important;margin-top:22px!important}
body .ri-clients-card-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:16px!important}
body .ri-clients-card{padding:18px 20px!important;min-height:145px!important;gap:9px!important}
body .ri-clients-card-head{display:flex!important;align-items:center!important;gap:14px!important;width:100%!important}
body .ri-clients-card-head figure{flex-shrink:0!important;margin:0!important}
body .ri-clients-card-head img{display:block!important;width:52px!important;height:52px!important;object-fit:contain!important}
body .ri-clients-card h3{font-size:19px!important;text-align:left!important;margin:0!important}
body .ri-clients-card p{text-align:left!important;font-size:14px!important;line-height:1.48!important;margin:0!important}
body .ri-clients-service-note{font-size:13px!important;color:#6b777b!important;margin:16px 0 0!important}
body .ri-knowledge-grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:14px!important}
body .ri-knowledge-card{padding:20px 17px!important;gap:15px!important;min-height:235px!important;display:flex!important;flex-direction:column!important}
body .ri-knowledge-card h3{font-size:17px!important;line-height:1.3!important;overflow-wrap:break-word!important}
body .ri-knowledge-card p{font-size:13px!important;line-height:1.5!important;flex:1!important}
body .ri-knowledge-read{margin-top:auto!important}
body .ri-article-open{background:transparent!important;border:0!important;color:#3c841c!important;font-size:13px!important;font-weight:700!important;cursor:pointer!important;padding:0!important;text-decoration:underline!important;text-underline-offset:4px!important}
body .ri-payment-qr-buttons .ri-pay-share{background:#e6f4d0!important;color:#27522d!important;border:1px solid #8cc63f!important}
body.ri-article-open{overflow:hidden}
.ri-article-backdrop[hidden],.ri-article-text[hidden]{display:none!important}
.ri-article-backdrop{position:fixed;z-index:999998;inset:0;padding:24px;background:rgba(25,39,32,.72);display:flex;justify-content:center;align-items:center}
.ri-article-dialog{width:min(100%,880px);max-height:calc(100vh - 48px);overflow-y:auto;overscroll-behavior:contain;background:white;border-radius:16px;padding:26px clamp(18px,4vw,45px);box-shadow:0 28px 80px #0005}
.ri-article-top{position:sticky;top:-26px;z-index:2;background:#fff;display:flex;justify-content:space-between;align-items:center;gap:12px;border-bottom:1px solid #dfebdc;padding:10px 0 17px;color:#47752b;font-size:13px}
.ri-article-return{background:#f1f8e6;border:1px solid #8cc63f;color:#2e454f;border-radius:9px;padding:9px 13px;cursor:pointer;font-weight:700}
.ri-article-text h2{font-size:clamp(23px,2.6vw,34px);line-height:1.2;color:#2e454f;margin:25px 0}
.ri-article-text p{font-size:16px;line-height:1.7;margin:12px 0;color:#293b43}
@media(max-width:1080px){body .ri-clients-about{background-size:45% auto!important;padding-right:45%!important;min-height:420px!important}body .ri-knowledge-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:700px){body .ri-clients-about{padding:30px 0 285px!important;min-height:0!important;background-size:90% auto!important;background-position:center bottom!important}body .ri-clients-card-grid,body .ri-knowledge-grid{grid-template-columns:1fr!important}body .ri-article-backdrop{padding:8px}.ri-article-dialog{max-height:calc(100vh - 16px);padding:14px}.ri-article-top{top:-14px}}

/* Gutenberg-native card structure: image left, heading right, paragraph below. */
body .ri-clients-card{display:grid!important;grid-template-columns:52px minmax(0,1fr)!important;grid-template-rows:auto 1fr!important;column-gap:14px!important;row-gap:8px!important;align-content:start!important}
body .ri-clients-card>figure{grid-column:1!important;grid-row:1!important;align-self:center!important}
body .ri-clients-card>h3{grid-column:2!important;grid-row:1!important;align-self:center!important}
body .ri-clients-card>p{grid-column:1/-1!important;grid-row:2!important}

/* Client link is the fourth item, not the first item of Services. */
body .ri-header-shell .wp-block-navigation__container>.wp-block-navigation-item:nth-child(4)>a::before{content:none!important;display:none!important}


/* Release 7.2 — client hero, header and service actions */
@media (min-width:1081px){
 body .ri-clients-about{min-height:0!important;padding:34px 40% 22px 0!important;background-size:39% auto!important;background-position:right bottom!important}
 body .ri-clients-about h1{font-size:clamp(29px,2.8vw,43px)!important;line-height:1.12!important;margin:13px 0 16px!important}
 body .ri-clients-about p{font-size:14px!important;line-height:1.4!important;margin:7px 0!important}
 body .ri-clients-about .ri-clients-accent{font-size:15px!important;margin-top:13px!important}
}
@media (min-width:701px) and (max-width:1080px){
 body .ri-clients-about{padding:28px 43% 25px 0!important;min-height:0!important;background-size:42% auto!important;background-position:right bottom!important}
 body .ri-clients-about p{font-size:13px!important;line-height:1.43!important}
}
body .ri-header-shell .wp-block-navigation>button.ri-pay-open{
 background:#3f4d57!important;color:#fff!important;border:1.5px solid var(--ri-green)!important;
 border-radius:9px!important;font-weight:700!important;min-height:44px!important;height:44px!important;
 box-shadow:none!important;align-self:end!important
}
body .ri-header-shell .wp-block-navigation>button.ri-pay-open:hover,
body .ri-header-shell .wp-block-navigation>button.ri-pay-open:focus-visible{background:#52636b!important;color:#fff!important}
@media (min-width:1081px){
 body .ri-header-shell:not(.ri-is-compact) .wp-block-navigation>button.ri-pay-open::before,
 body .ri-header-shell:not(.ri-is-compact) .wp-block-navigation>a.ri-partner-login::before{top:-37px!important;line-height:24px!important;font-size:16px!important}
 body .ri-sticky-header-slot>.ri-header-shell.ri-is-compact .wp-block-navigation>button.ri-pay-open::before,
 body .ri-sticky-header-slot>.ri-header-shell.ri-is-compact .wp-block-navigation>a.ri-partner-login::before{content:none!important;display:none!important}
 body .ri-sticky-header-slot>.ri-header-shell.ri-is-compact .wp-block-navigation>button.ri-pay-open::after,
 body .ri-sticky-header-slot>.ri-header-shell.ri-is-compact .wp-block-navigation>a.ri-partner-login::after,
 body .ri-sticky-header-slot>.ri-header-shell.ri-is-compact .wp-block-navigation__container>.wp-block-navigation-item:nth-child(5)::before{top:4px!important;bottom:4px!important;height:auto!important;max-height:36px!important}
 body .ri-sticky-header-slot>.ri-header-shell.ri-is-compact .wp-block-navigation>button.ri-pay-open{align-self:center!important}
}
body .ri-clients-card{grid-template-rows:auto auto auto!important;min-height:0!important}
body .ri-clients-card .ri-service-link{grid-column:1/-1;grid-row:3;justify-self:end;align-self:end;margin-top:4px!important;display:inline-flex;align-items:center;gap:7px;
 color:#274d31!important;background:#fff;border:1px solid #7ab73d;border-radius:8px;text-decoration:none!important;padding:7px 11px;font-size:13px;font-weight:700}
body .ri-clients-card .ri-service-link:hover,body .ri-clients-card .ri-service-link:focus-visible{background:#e8f5dc!important}
.ri-payment-qr-buttons .ri-pay-share:disabled{opacity:.5}
.ri-pay-expired{border-left:4px solid #b45f38;background:#fff4ec;padding:12px 14px;margin:10px 0;font-size:14px}




/* Release 7.4: precision fixes for the published Gutenberg client page.
   The selectors work with the actual Gutenberg DOM, not a hypothetical wrapper. */

/* (1) Use the free width up to the illustration (rather than Gutenberg's
   inherited constrained child width). Preserve the illustration itself. */
@media (min-width:1081px){
  body .wp-block-post-content section.ri-clients-about,
  body.ri-view-klientam section.ri-clients-about{
    box-sizing:border-box!important;
    padding:25px 36% 21px 0!important;
    min-height:0!important;
    background-size:39% auto!important;
    background-position:right bottom!important;
  }
  body .wp-block-post-content section.ri-clients-about > :is(p,h1),
  body.ri-view-klientam section.ri-clients-about > :is(p,h1){
    box-sizing:border-box!important;
    width:100%!important;
    max-width:100%!important;
    margin-left:0!important;
    margin-right:0!important;
  }
}
/* Do not allow an editor/default Gutenberg content-size cap to re-narrow body text. */
body .wp-block-post-content section.ri-clients-about > p,
body.ri-view-klientam section.ri-clients-about > p{
  font-size:16px!important;
  line-height:1.5!important;
  max-width:100%!important;
  margin-top:9px!important;
  margin-bottom:9px!important;
}
body .wp-block-post-content section.ri-clients-about > p.ri-clients-eyebrow,
body.ri-view-klientam section.ri-clients-about > p.ri-clients-eyebrow{
  font-size:16px!important;
  line-height:1.5!important;
}
body .wp-block-post-content section.ri-clients-about > p.ri-clients-accent,
body.ri-view-klientam section.ri-clients-about > p.ri-clients-accent{
  font-size:16px!important;
  line-height:1.5!important;
  font-weight:700!important;
  color:#41981c!important;
  margin-top:14px!important;
}
/* (2) Two-column text/action row inside the real .ri-clients-card Gutenberg
   group; the action owns its column and never overlaps the descriptive text. */
@media (min-width:701px){
  body .wp-block-post-content .ri-clients-card,
  body.ri-view-klientam .ri-clients-card{
    position:relative!important;
    display:grid!important;
    grid-template-columns:52px minmax(0,1fr) auto!important;
    grid-template-rows:auto 1fr!important;
    gap:8px 13px!important;
    align-items:start!important;
    padding:17px 19px!important;
    min-height:136px!important;
  }
  body .wp-block-post-content .ri-clients-card > figure,
  body.ri-view-klientam .ri-clients-card > figure{grid-column:1!important;grid-row:1!important;align-self:center!important;}
  body .wp-block-post-content .ri-clients-card > h3,
  body.ri-view-klientam .ri-clients-card > h3{grid-column:2 / 4!important;grid-row:1!important;align-self:center!important;}
  body .wp-block-post-content .ri-clients-card > p,
  body.ri-view-klientam .ri-clients-card > p{
    grid-column:1 / 3!important;grid-row:2!important;min-width:0!important;
    width:auto!important;max-width:none!important;align-self:start!important;
    margin:0!important;
  }
  body .wp-block-post-content .ri-clients-card > a.ri-service-link,
  body.ri-view-klientam .ri-clients-card > a.ri-service-link{
    grid-column:3!important;grid-row:2!important;
    position:static!important;inset:auto!important;transform:none!important;
    display:inline-flex!important;justify-content:center!important;align-items:center!important;
    justify-self:end!important;align-self:center!important;
    margin:0 0 0 12px!important;white-space:nowrap!important;
    width:max-content!important;max-width:100%!important;
    z-index:1!important;
  }
}
/* Preserve the smaller single-column card arrangement on mobile. */
@media(max-width:700px){
  body .wp-block-post-content .ri-clients-card,
  body.ri-view-klientam .ri-clients-card{
    position:relative!important;
    padding-bottom:62px!important;
  }
  body .wp-block-post-content .ri-clients-card > a.ri-service-link,
  body.ri-view-klientam .ri-clients-card > a.ri-service-link{
    position:absolute!important;left:auto!important;right:17px!important;
    top:auto!important;bottom:15px!important;margin:0!important;
  }
}
/* (3) Payment button shares the nav link's height and vertical centre in the
   expanded header; undo the older translateY-based workaround. */
@media(min-width:1081px){
  body.ri-view-klientam .ri-sticky-header-slot > .ri-header-shell:not(.ri-is-compact) .wp-block-navigation > button.ri-pay-open,
  body.ri-view-klientam .ri-header-shell:not(.ri-is-compact) .wp-block-navigation > button.ri-pay-open{
    box-sizing:border-box!important;
    height:44px!important;min-height:44px!important;max-height:44px!important;
    padding:0 11px!important;line-height:1!important;
    align-self:center!important;vertical-align:middle!important;
    transform:none!important;
    margin-top:0!important;margin-bottom:0!important;
  }
  body.ri-view-klientam .ri-header-shell:not(.ri-is-compact) .wp-block-navigation,
  body.ri-view-klientam .ri-header-shell:not(.ri-is-compact) .wp-block-navigation__container{
    align-items:center!important;
  }
}
/* (4) Restore readable, 16px explanatory note below the four service cards.
   Use the actual post-content paragraph, rather than relying on the body class. */
body .wp-block-post-content .ri-clients-services > p.ri-clients-service-note,
body.ri-view-klientam .ri-clients-services p.ri-clients-service-note,
body .ri-clients-service-note{
  font-size:16px!important;
  line-height:1.5!important;
  font-weight:400!important;
  color:#6b777b!important;
  margin-top:16px!important;
}

/* Version 7.5 — match the first client-page heading exactly to the design
   specification used by the section heading "Наши услуги и сервисы".
   The content remains an h1 for correct document semantics. */
body .wp-block-post-content section.ri-clients-about > h1,
body.ri-view-klientam section.ri-clients-about > h1 {
  font-family:Arial,Helvetica,sans-serif!important;
  font-size:clamp(27px,2.6vw,38px)!important;
  line-height:1.22!important;
  font-weight:800!important;
  letter-spacing:-.015em!important;
  color:var(--ri-dark)!important;
  margin:0 0 20px!important;
  text-align:left!important;
}
@media(max-width:600px){
  body .wp-block-post-content section.ri-clients-about > h1,
  body.ri-view-klientam section.ri-clients-about > h1 {font-size:27px!important;}
}


/* Version 7.8 — mobile clients page fixes and unified service buttons */
body .ri-clients-card .ri-service-link,
body .wp-block-post-content .ri-clients-card > a.ri-service-link,
body.ri-view-klientam .ri-clients-card > a.ri-service-link{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:43px!important;
  padding:9px 18px!important;
  background:#fff!important;
  color:#26383e!important;
  border:1.5px solid var(--ri-green)!important;
  border-radius:10px!important;
  text-decoration:none!important;
  font-size:15px!important;
  font-weight:700!important;
  line-height:1.2!important;
  box-shadow:none!important;
}
body .ri-clients-card .ri-service-link:hover,
body .ri-clients-card .ri-service-link:focus-visible,
body .wp-block-post-content .ri-clients-card > a.ri-service-link:hover,
body .wp-block-post-content .ri-clients-card > a.ri-service-link:focus-visible,
body.ri-view-klientam .ri-clients-card > a.ri-service-link:hover,
body.ri-view-klientam .ri-clients-card > a.ri-service-link:focus-visible{
  background:var(--ri-soft)!important;
  color:#28452a!important;
}
@media(max-width:700px){
  /* Slightly clearer gap between the logo separator and the navigation block. */
  body .ri-header-shell,
  body .ri-header-shell.is-layout-flex{
    gap:12px!important;
    padding-right:2px!important;
  }
  body .ri-header-brand{margin-right:4px!important;}
  body .ri-header-shell .wp-block-navigation{
    gap:8px!important;
    margin-left:12px!important;
  }

  /* On phones the illustration must sit under the text, not behind it. */
  body .wp-block-post-content section.ri-clients-about,
  body.ri-view-klientam section.ri-clients-about,
  body .ri-clients-about{
    background-image:none!important;
    background:none!important;
    padding:22px 0 0!important;
    min-height:0!important;
  }
  body .wp-block-post-content section.ri-clients-about::after,
  body.ri-view-klientam section.ri-clients-about::after,
  body .ri-clients-about::after{
    content:'';
    display:block;
    width:100%;
    height:240px;
    margin-top:18px;
    background-image:url("assets/clients-hero-7-1.webp");
    background-repeat:no-repeat;
    background-position:center bottom;
    background-size:min(92vw,340px) auto;
  }
}
@media(max-width:420px){
  body .wp-block-post-content section.ri-clients-about::after,
  body.ri-view-klientam section.ri-clients-about::after,
  body .ri-clients-about::after{height:220px;background-size:min(92vw,320px) auto;}
}


/* VERSION 7.9 — one dependable mobile header in both normal and sticky states.
   The second approved layout omits the year line even at the top of the page.
   Desktop grouped navigation and payment links are unchanged. */
@media (max-width: 820px) {
  body .ri-header-shell,
  body .ri-header-shell.is-layout-flex,
  body .ri-sticky-header-slot > .ri-header-shell.ri-is-compact {
    box-sizing:border-box!important;
    width:calc(100% - 24px)!important;
    max-width:var(--ri-page-width)!important;
    min-width:0!important;
    min-height:68px!important;
    padding:8px 0!important;
    margin-inline:auto!important;
    display:flex!important;
    flex-direction:row!important;
    justify-content:space-between!important;
    align-items:center!important;
    flex-wrap:nowrap!important;
    gap:8px!important;
  }
  body .ri-sticky-header-slot > .ri-header-shell.ri-is-compact {
    margin:0!important;
    left:50%!important;
    transform:translateX(-50%)!important;
  }
  body .ri-header-shell .ri-header-brand,
  body .ri-sticky-header-slot > .ri-header-shell.ri-is-compact .ri-header-brand {
    display:grid!important;
    grid-template-columns:40px minmax(0,1fr)!important;
    grid-template-rows:1fr!important;
    grid-template-areas:'mark name'!important;
    gap:8px!important;
    width:auto!important;
    max-width:100%!important;
    min-width:0!important;
    flex:1 1 auto!important;
    align-content:center!important;
    align-items:center!important;
    margin:0!important;
  }
  body .ri-header-shell .ri-header-brand .ri-since,
  body .ri-sticky-header-slot > .ri-header-shell.ri-is-compact .ri-header-brand .ri-since {
    display:none!important;
  }
  body .ri-header-shell .ri-header-brand .wp-block-site-logo,
  body .ri-sticky-header-slot > .ri-header-shell.ri-is-compact .ri-header-brand .wp-block-site-logo {
    grid-area:mark!important;
    width:39px!important;
    height:42px!important;
    min-width:0!important;
    padding:0!important;
    margin:0!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
  }
  body .ri-header-shell .ri-header-brand .wp-block-site-logo img,
  body .ri-sticky-header-slot > .ri-header-shell.ri-is-compact .ri-header-brand .wp-block-site-logo img {
    display:block!important;
    width:37px!important;
    height:37px!important;
    max-width:37px!important;
    max-height:37px!important;
    object-fit:contain!important;
  }
  body .ri-header-shell .ri-header-brand .wp-block-site-logo::after,
  body .ri-sticky-header-slot > .ri-header-shell.ri-is-compact .ri-header-brand .wp-block-site-logo::after {
    right:-5px!important;
    top:4px!important;
    bottom:4px!important;
    width:2px!important;
    background:var(--ri-green)!important;
  }
  body .ri-header-shell .ri-header-brand .wp-block-site-title,
  body .ri-sticky-header-slot > .ri-header-shell.ri-is-compact .ri-header-brand .wp-block-site-title {
    grid-area:name!important;
    display:block!important;
    width:auto!important;
    max-width:100%!important;
    min-height:0!important;
    padding:0!important;
    margin:0!important;
    font-size:clamp(12px,3.8vw,16px)!important;
    font-weight:800!important;
    line-height:1.04!important;
    white-space:normal!important;
    overflow-wrap:normal!important;
  }
  body .ri-header-shell .wp-block-navigation,
  body .ri-sticky-header-slot > .ri-header-shell.ri-is-compact .wp-block-navigation {
    display:flex!important;
    flex:0 0 auto!important;
    justify-content:flex-end!important;
    align-items:center!important;
    align-self:center!important;
    gap:8px!important;
    min-width:0!important;
    width:auto!important;
    margin:0!important;
    padding:0!important;
  }
  body .ri-header-shell .wp-block-navigation__responsive-container-open,
  body .ri-sticky-header-slot > .ri-header-shell.ri-is-compact .wp-block-navigation__responsive-container-open {
    box-sizing:border-box!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    flex:0 0 40px!important;
    min-width:40px!important;
    width:40px!important;
    height:44px!important;
    min-height:44px!important;
    max-height:44px!important;
    margin:0!important;
    padding:7px!important;
    border:1.5px solid var(--ri-green)!important;
    border-radius:9px!important;
    transform:none!important;
  }
  body .ri-header-shell .wp-block-navigation > button.ri-pay-open,
  body .ri-sticky-header-slot > .ri-header-shell.ri-is-compact .wp-block-navigation > button.ri-pay-open,
  body .ri-header-shell .wp-block-navigation > a.ri-partner-login,
  body .ri-sticky-header-slot > .ri-header-shell.ri-is-compact .wp-block-navigation > a.ri-partner-login {
    box-sizing:border-box!important;
    display:inline-flex!important;
    position:relative!important;
    align-items:center!important;
    justify-content:center!important;
    flex:0 0 auto!important;
    align-self:center!important;
    height:44px!important;
    min-height:44px!important;
    max-height:44px!important;
    margin:0!important;
    padding:0 11px!important;
    border-radius:9px!important;
    line-height:1!important;
    font-size:13px!important;
    white-space:nowrap!important;
    transform:none!important;
  }
  /* Never display 'Доступ' or the second divider on mobile. */
  body .ri-header-shell .wp-block-navigation > button.ri-pay-open::before,
  body .ri-header-shell .wp-block-navigation > button.ri-pay-open::after,
  body .ri-header-shell .wp-block-navigation > a.ri-partner-login::before,
  body .ri-header-shell .wp-block-navigation > a.ri-partner-login::after {
    content:none!important;
    display:none!important;
  }
}
@media (max-width:350px) {
  body .ri-header-shell,
  body .ri-sticky-header-slot > .ri-header-shell.ri-is-compact {gap:5px!important;}
  body .ri-header-shell .wp-block-navigation,
  body .ri-sticky-header-slot > .ri-header-shell.ri-is-compact .wp-block-navigation {gap:5px!important;}
  body .ri-header-shell .ri-header-brand,
  body .ri-sticky-header-slot > .ri-header-shell.ri-is-compact .ri-header-brand {grid-template-columns:35px minmax(0,1fr)!important;column-gap:6px!important;}
  body .ri-header-shell .ri-header-brand .wp-block-site-logo,
  body .ri-sticky-header-slot > .ri-header-shell.ri-is-compact .ri-header-brand .wp-block-site-logo {width:34px!important;}
  body .ri-header-shell .ri-header-brand .wp-block-site-logo img,
  body .ri-sticky-header-slot > .ri-header-shell.ri-is-compact .ri-header-brand .wp-block-site-logo img {width:32px!important;height:32px!important;}
  body .ri-header-shell .wp-block-navigation__responsive-container-open,
  body .ri-sticky-header-slot > .ri-header-shell.ri-is-compact .wp-block-navigation__responsive-container-open {width:36px!important;min-width:36px!important;flex-basis:36px!important;}
  body .ri-header-shell .wp-block-navigation > button.ri-pay-open,
  body .ri-sticky-header-slot > .ri-header-shell.ri-is-compact .wp-block-navigation > button.ri-pay-open {padding-inline:8px!important;font-size:12px!important;}
}


/* RELEASE 8.0: restore distinct normal/compact MOBILE brand lockups.
   The right-hand navigation and payment buttons inherit 7.9 without changes. */
@media(max-width:820px){
  /* Exactly two words on exactly two lines in BOTH header states. */
  body .ri-header-shell .ri-header-brand .wp-block-site-title,
  body .ri-sticky-header-slot > .ri-header-shell.ri-is-compact .ri-header-brand .wp-block-site-title{
    min-width:0!important;
    width:100%!important;
    max-width:100%!important;
    line-height:1.04!important;
    word-break:keep-all!important;
    overflow-wrap:normal!important;
    hyphens:none!important;
  }
  body .ri-header-shell .ri-header-brand .wp-block-site-title a,
  body .ri-sticky-header-slot > .ri-header-shell.ri-is-compact .ri-header-brand .wp-block-site-title a{
    display:block!important;
    width:min-content!important;
    max-width:100%!important;
    white-space:normal!important;
    word-break:keep-all!important;
    overflow-wrap:normal!important;
    hyphens:none!important;
    line-height:1.04!important;
  }
  /* Expanded header: keep the founding-year subtitle, unlike the sticky header. */
  body .ri-header-shell:not(.ri-is-compact) .ri-header-brand{
    grid-template-rows:auto auto!important;
    grid-template-areas:'mark name' 'mark since'!important;
    row-gap:2px!important;
  }
  body .ri-header-shell:not(.ri-is-compact) .ri-header-brand .ri-since{
    grid-area:since!important;
    display:block!important;
    min-width:0!important;
    width:100%!important;
    max-width:100%!important;
    margin:0!important;
    padding:0!important;
    font-size:10px!important;
    line-height:1.15!important;
    white-space:normal!important;
    overflow-wrap:normal!important;
    color:#667277!important;
  }
  /* Compact sticky header: ONLY the two-line name; no founding-year subtitle. */
  body .ri-sticky-header-slot > .ri-header-shell.ri-is-compact .ri-header-brand{
    grid-template-rows:1fr!important;
    grid-template-areas:'mark name'!important;
  }
  body .ri-sticky-header-slot > .ri-header-shell.ri-is-compact .ri-header-brand .ri-since{
    display:none!important;
  }
}


/* v8.1 — bottom-width consent ribbon, no internal scrolling */
body .ri-consent-banner{
  position:fixed!important;
  left:50%!important;
  right:auto!important;
  bottom:max(12px,env(safe-area-inset-bottom))!important;
  transform:translateX(-50%)!important;
  width:calc(100% - 2 * var(--ri-gutter))!important;
  max-width:var(--ri-page-width)!important;
  max-height:none!important;
  height:auto!important;
  overflow:visible!important;
  padding:16px 22px!important;
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  align-items:center!important;
  gap:16px 24px!important;
  border-radius:13px!important;
}
body .ri-consent-banner[hidden]{display:none!important}
body .ri-consent-banner .ri-consent-copy{min-width:0}
body .ri-consent-banner h2{font-size:17px!important;margin:0 0 5px!important}
body .ri-consent-banner p{font-size:12px!important;line-height:1.38!important;margin:0 0 6px!important}
body .ri-consent-banner p:last-child{margin-bottom:0!important}
body .ri-consent-banner .ri-consent-actions{
  display:flex!important;flex-direction:row!important;
  align-items:center!important;gap:9px!important;margin:0!important;
}
body .ri-consent-banner .ri-consent-actions button{
  width:auto!important;min-width:112px!important;min-height:43px!important;
  font-size:13px!important;padding:9px 12px!important;white-space:nowrap!important;
}
@media(max-width:800px){
 body .ri-consent-banner{grid-template-columns:minmax(0,1fr)!important;gap:10px!important;padding:13px 15px!important}
 body .ri-consent-banner h2{font-size:16px!important}
 body .ri-consent-banner p{font-size:11px!important;line-height:1.33!important;margin-bottom:5px!important}
 body .ri-consent-banner .ri-consent-actions{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important;width:100%!important}
 body .ri-consent-banner .ri-consent-actions button{min-width:0!important;width:100%!important;min-height:40px!important}
}
@media(max-width:370px){
 body .ri-consent-banner{width:calc(100% - 16px)!important;padding:10px 12px!important}
 body .ri-consent-banner p{font-size:10.5px!important}
}


/* v8.2 — remove the floating "Сервисы" caption ONLY from the compact desktop
   sticky header. Keep the normal desktop section labels, dividers, and buttons. */
@media (min-width:1081px) {
  body .ri-sticky-header-slot > .ri-header-shell.ri-is-compact
    .wp-block-navigation__container > .wp-block-navigation-item:nth-child(5)
    > a.wp-block-navigation-item__content::before,
  body .ri-header-shell.ri-is-compact
    .wp-block-navigation__container > .wp-block-navigation-item:nth-child(5)
    > a.wp-block-navigation-item__content::before {
      content:none!important;
      display:none!important;
      visibility:hidden!important;
  }
}


/* v8.4 — highlight only the actual active service on the Finovera and
   Webocenka pages. Legacy navigation rules assumed a five-item menu,
   while the current menu contains six items including Clients. */
@media (min-width:1081px) {
  /* Remove legacy false-positive highlights from Clients/Finovera. */
  body.ri-view-finovera .ri-header-shell .wp-block-navigation__container
    > .wp-block-navigation-item:nth-child(4) > a.wp-block-navigation-item__content,
  body.ri-view-webocenka .ri-header-shell .wp-block-navigation__container
    > .wp-block-navigation-item:nth-child(5) > a.wp-block-navigation-item__content {
    background:#fff!important;
    border:1.5px solid var(--ri-green)!important;
    color:var(--ri-ink)!important;
    padding-bottom:8px!important;
  }
  /* Current six-link navigation: Finovera = 5, Webocenka = 6. */
  body.ri-view-finovera .ri-header-shell .wp-block-navigation__container
    > .wp-block-navigation-item:nth-child(5) > a.wp-block-navigation-item__content,
  body.ri-view-webocenka .ri-header-shell .wp-block-navigation__container
    > .wp-block-navigation-item:nth-child(6) > a.wp-block-navigation-item__content {
    background:#e6f4d0!important;
    border:2px solid var(--ri-green)!important;
    color:var(--ri-dark)!important;
    padding-bottom:8px!important;
  }
}

/* Version 8.7 — browser-only mortgage calculator; only Clients page. */
body .ri-mcalc{margin-top:24px!important;margin-bottom:34px!important;}
body .ri-mcalc-intro{max-width:none;margin-bottom:12px;}
body .ri-mcalc h2{font-size:clamp(25px,2.1vw,34px)!important;line-height:1.14;color:var(--ri-dark);margin:6px 0 8px!important;}
body .ri-mcalc h3{font-size:18px!important;line-height:1.22;color:var(--ri-dark);margin:0 0 10px!important;}
body .ri-mcalc-intro p{font-size:15px;line-height:1.45;margin:0;color:#526067;}
body .ri-mcalc-intro .ri-mcalc-eyebrow{font-weight:700;font-size:13px;color:#488a21;border-left:4px solid var(--ri-green);padding-left:10px;margin-bottom:4px;}
body .ri-mcalc-panel{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(330px,.8fr);gap:16px;align-items:start;}
body .ri-mcalc-fields,body .ri-mcalc-results,body .ri-mcalc-tabpanel{border:1px solid var(--ri-line);border-radius:16px;padding:17px;background:#fff;box-shadow:0 4px 18px rgba(46,69,79,.04);min-width:0;}
body .ri-mcalc-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 14px;align-items:start;}
body .ri-mcalc-fields>h3,body .ri-mcalc-fields>.ri-mcalc-grid,body .ri-mcalc-fields>.ri-mcalc-error,body .ri-mcalc-fields>.ri-mcalc-actions{grid-column:1/-1;}
body .ri-mcalc-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 14px;}
body .ri-mcalc label:not(.ri-mcalc-toggle){display:flex;flex-direction:column;gap:5px;font-weight:700;color:#30464d;font-size:13px;min-width:0;}
body .ri-mcalc :is(input[type=number],input[data-money],select){display:block;max-width:100%;width:100%;min-height:40px;border:1px solid #bacdb8;border-radius:8px;background:#fff;padding:8px 11px;font:inherit;font-size:15px;color:var(--ri-dark);}
body .ri-mcalc :is(input,select,button):focus-visible{outline:3px solid #8cc63f;outline-offset:2px;}
body .ri-mcalc-extra{border:1px solid #d9e6d3;border-radius:12px;padding:10px 12px 12px;margin:0;min-width:0;}
body .ri-mcalc-extra legend{padding:0 6px;white-space:normal;max-width:100%;}
body .ri-mcalc-toggle{display:inline-flex;align-items:center;gap:8px;font-weight:700;color:var(--ri-dark);font-size:14px;cursor:pointer;}
body .ri-mcalc-toggle input{width:18px;height:18px;accent-color:#5f9b2e;}
body .ri-mcalc-extra-body{display:grid;gap:9px;}
body .ri-mcalc-extra:has(input[type=checkbox]:not(:checked)) .ri-mcalc-extra-body{display:none;}
body .ri-mcalc-help{font-size:12px!important;color:#647579!important;line-height:1.45!important;margin:0!important;}
body .ri-mcalc-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center;}
body .ri-mcalc button{cursor:pointer;min-height:40px;padding:8px 14px;border:1.5px solid var(--ri-green);border-radius:9px;background:#3f4d57;color:#fff;font:inherit;font-size:13px;font-weight:700;}
body .ri-mcalc button.ri-mcalc-secondary{background:#fff;color:var(--ri-dark);}
body .ri-mcalc button:disabled{opacity:.5;cursor:not-allowed;}
body .ri-mcalc-copy-status{font-size:12px;color:#467e2e;}
body .ri-mcalc-error{background:#fff0e8;border-left:4px solid #b9573c;padding:9px;color:#873c30;font-size:13px;}
body .ri-mcalc-results{background:#f3f8ed;}
body .ri-mcalc-primary{display:grid;gap:5px;border-bottom:1px solid #cde0bc;padding-bottom:12px;margin-bottom:12px;}
body .ri-mcalc-primary span{font-size:13px;color:#4d6166;}
body .ri-mcalc-primary strong{font-size:clamp(27px,2.4vw,38px);line-height:1.1;color:var(--ri-dark);font-variant-numeric:tabular-nums;}
body .ri-mcalc-primary small{font-size:12px;color:#596c6f;}
body .ri-mcalc-result-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 10px;}
body .ri-mcalc-result-grid>div{display:flex;flex-direction:column;gap:4px;min-width:0;}
body .ri-mcalc-result-grid span{color:#576a6e;font-size:12px;line-height:1.35;}
body .ri-mcalc-result-grid strong{font-size:15px;color:#2e454f;overflow-wrap:anywhere;font-variant-numeric:tabular-nums;}
body .ri-mcalc-result-grid strong.ri-mcalc-good{color:#438421;}
body .ri-mcalc-tabs{margin-top:14px;display:grid;gap:12px;}
body .ri-mcalc-tabnav{display:flex;flex-wrap:wrap;gap:8px;}
body .ri-mcalc-tab{background:#fff;color:var(--ri-dark);}
body .ri-mcalc-tab[aria-selected="true"]{background:#3f4d57;color:#fff;}
body .ri-mcalc-tabpanel[hidden]{display:none!important;}
body .ri-mcalc-comparison-scroll,body .ri-mcalc-schedule-scroll{max-width:100%;overflow:auto;}
body .ri-mcalc table{width:100%;border-collapse:collapse;font-size:13px;}
body .ri-mcalc :is(th,td){padding:8px;border-bottom:1px solid #e2e9df;text-align:right;white-space:nowrap;}
body .ri-mcalc :is(th,td):first-child{text-align:left;white-space:normal;min-width:120px;}
body .ri-mcalc th{color:#4a6464;background:#f8fbf5;font-weight:700;}
body .ri-mcalc .ri-mcalc-highlight{background:#eff7e7;font-weight:700;}
body .ri-mcalc-graph svg{display:block;width:100%;max-height:240px;}
body .ri-mcalc-graph svg text{font-size:12px;fill:#5b6f6d;}
body .ri-mcalc-axes{stroke:#a3b2a5;stroke-width:1;fill:none;}
body .ri-mcalc-chart-base{stroke:#a5b3b3;stroke-width:3;fill:none;stroke-linejoin:round;}
body .ri-mcalc-chart-chosen{stroke:#65a22e;stroke-width:4;fill:none;stroke-linejoin:round;}
body .ri-mcalc-legend{display:flex;gap:14px;flex-wrap:wrap;font-size:12px;color:#536368;margin-bottom:8px;}
body .ri-mcalc-legend span::before{content:'';display:inline-block;width:18px;height:4px;margin:0 6px 3px 0;background:#a5b3b3;border-radius:2px;}
body .ri-mcalc-legend span+span::before{background:#65a22e;}
body .ri-mcalc-schedule-header{display:flex;justify-content:space-between;gap:10px;align-items:center;flex-wrap:wrap;margin-bottom:8px;}
body .ri-mcalc-schedule-header h3{margin:0!important;}
body .ri-mcalc-disclaimer{color:#677779;font-size:12px!important;line-height:1.55!important;margin:12px 0 0!important;}
@media(max-width:1180px){body .ri-mcalc-panel{grid-template-columns:1fr;}body .ri-mcalc-fields{grid-template-columns:1fr;}body .ri-mcalc-fields>.ri-mcalc-grid{grid-template-columns:1fr 1fr;}}
@media(max-width:700px){body .ri-mcalc-fields,body .ri-mcalc-results,body .ri-mcalc-tabpanel{padding:16px;}body .ri-mcalc-grid{grid-template-columns:1fr;}body .ri-mcalc-fields>.ri-mcalc-grid{grid-template-columns:1fr;}body .ri-mcalc-fields{grid-template-columns:1fr;}body .ri-mcalc-result-grid{grid-template-columns:1fr 1fr;}}
@media(max-width:550px){body .ri-mcalc{margin-top:28px!important;margin-bottom:30px!important;}body .ri-mcalc h2{font-size:clamp(25px,8vw,34px)!important;}body .ri-mcalc-result-grid strong{font-size:15px;}body .ri-mcalc-primary strong{font-size:29px;}body .ri-mcalc-tabnav{display:grid;grid-template-columns:1fr;}}
@media print{body .ri-mcalc{break-before:page;}body .ri-mcalc-actions,body .ri-mcalc-schedule-header button,body .ri-mcalc-tabnav,body .ri-header-shell,body .ri-footer{display:none!important;}body .ri-mcalc-fields,body .ri-mcalc-results,body .ri-mcalc-tabpanel{box-shadow:none;break-inside:avoid;}body .ri-mcalc-panel{grid-template-columns:1fr 1fr;}body .ri-mcalc-tabpanel[hidden]{display:block!important;}}

/* Version 8.9 — matching early repayment cards, compact desktop spacing and readable money fields. */
@media(min-width:1181px){
  body .ri-mcalc-fields{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px 14px!important;padding:14px 16px!important;}
  body .ri-mcalc-fields > h3{margin-bottom:0!important;}
  body .ri-mcalc-fields > .ri-mcalc-grid{gap:7px 14px!important;}
  body .ri-mcalc-fields .ri-mcalc-extra{align-self:stretch!important;margin:0!important;padding:9px 11px 10px!important;}
  body .ri-mcalc-fields .ri-mcalc-extra-body{gap:8px!important;}
  body .ri-mcalc-fields .ri-mcalc-extra-body>.ri-mcalc-grid{gap:8px!important;}
  body .ri-mcalc-fields .ri-mcalc-extra-body>.ri-mcalc-grid label{min-width:0!important;}
  body .ri-mcalc-fields .ri-mcalc-extra .ri-mcalc-toggle{font-size:12.5px!important;white-space:normal!important;}
  body .ri-mcalc-fields .ri-mcalc-extra .ri-mcalc-toggle input{flex:none!important;}
  body .ri-mcalc-fields .ri-mcalc-extra label{font-size:12px!important;line-height:1.25!important;}
  body .ri-mcalc-fields .ri-mcalc-extra :is(input,select){min-height:36px!important;height:36px!important;padding:6px 9px!important;font-size:13px!important;}
  body .ri-mcalc-fields .ri-mcalc-extra select{font-size:12px!important;}
  body .ri-mcalc-fields .ri-mcalc-actions{margin-top:0!important;}
}
body .ri-mcalc input[data-money]{font-variant-numeric:tabular-nums;letter-spacing:.015em;}
body .ri-mcalc-extra{min-width:0!important;}
@media(min-width:1181px){body .ri-mcalc-extra legend{font-size:12.5px!important;}}

body .ri-mcalc input[data-money]{appearance:none!important;-webkit-appearance:none!important;}

/* 8.10 — approved option 1: copy/print actions sit below the result card on desktop.
   All calculations, scenario tabs and their content are unchanged. */
body .ri-mcalc-right{display:flex;flex-direction:column;min-width:0;gap:12px;}
body .ri-mcalc-action-card{border:1px solid var(--ri-green);border-radius:13px;background:#f7faf2;padding:12px 16px;min-width:0;}
body .ri-mcalc-action-card h3{font-size:15px!important;line-height:1.25!important;margin:0 0 9px!important;}
body .ri-mcalc-action-card .ri-mcalc-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:flex-start;}
body .ri-mcalc-action-card .ri-mcalc-actions button{min-height:38px;padding:7px 12px;font-size:12.5px;}
body .ri-mcalc-action-card .ri-mcalc-copy-status{flex-basis:100%;min-height:0;line-height:1.3;}
@media(max-width:700px){body .ri-mcalc-right{gap:10px;}body .ri-mcalc-action-card{padding:12px;}}
@media print{body .ri-mcalc-action-card{display:none!important;}body .ri-mcalc-right{gap:0;}}

/* 9.0 — the two panels share the same bottom edge whether early repayments are enabled or not. */
body .ri-mcalc-panel{align-items:stretch!important;}
body .ri-mcalc-fields{align-content:start!important;min-height:100%!important;}
body .ri-mcalc-right{height:100%!important;align-self:stretch!important;}
body .ri-mcalc-right .ri-mcalc-action-card{margin-top:auto!important;}
body .ri-mcalc-extra .ri-mcalc-extra-body{display:grid!important;}
body .ri-mcalc-extra.ri-mcalc-inactive{background:#f8faf7;border-color:#d8e2d4;}
body .ri-mcalc-extra.ri-mcalc-inactive .ri-mcalc-extra-body{opacity:.55;}
body .ri-mcalc-extra.ri-mcalc-inactive :is(input,select){background:#f4f7f2!important;color:#536268!important;}
body .ri-mcalc-action-card .ri-mcalc-actions button{white-space:nowrap;}
@media(max-width:1180px){body .ri-mcalc-right{height:auto!important;}body .ri-mcalc-fields{min-height:0!important;}}

/* v9.3 — dedicated mortgage calculator page, seven-item main menu. */
body .ri-calculator-page{width:calc(100% - 2 * var(--ri-gutter));max-width:var(--ri-page-width);margin:0 auto;padding:26px 0 48px;}
body .ri-calculator-page-intro{margin:10px 0 16px;}
body .ri-calculator-page-intro h1{font-size:clamp(30px,3.2vw,44px);line-height:1.15;margin:6px 0 10px;color:var(--ri-dark);}
body .ri-calculator-page-intro>p{margin:0 0 8px;color:#526067;max-width:950px;}
body .ri-calculator-page-intro>.ri-mcalc-eyebrow{font-size:13px;font-weight:700;color:#488a21;border-left:4px solid var(--ri-green);padding-left:10px;}
body .ri-calculator-page .ri-mcalc{width:100%;max-width:none;margin:0 0 20px!important;padding:0;}
body .ri-calculator-page-cta{border-top:1px solid var(--ri-line);padding-top:18px;margin:14px 0 0;}
/* Remove v8.4's position-based active state (Finovera moved from item 5 to 6). */
@media(min-width:1081px){
 body.ri-view-finovera .ri-header-shell .wp-block-navigation__container > .wp-block-navigation-item:nth-child(5) > a.wp-block-navigation-item__content,
 body.ri-view-webocenka .ri-header-shell .wp-block-navigation__container > .wp-block-navigation-item:nth-child(6) > a.wp-block-navigation-item__content{
  background:#fff!important;border:1.5px solid var(--ri-green)!important;color:var(--ri-ink)!important;padding-bottom:8px!important;
 }
 body.ri-view-calculator .ri-header-shell .wp-block-navigation__container > .ri-calculator-nav > a,
 body.ri-view-calculator .ri-header-shell .wp-block-navigation__container > .wp-block-navigation-item:nth-child(5) > a,
 body.ri-view-finovera .ri-header-shell .wp-block-navigation__container > .wp-block-navigation-item:nth-child(6) > a,
 body.ri-view-webocenka .ri-header-shell .wp-block-navigation__container > .wp-block-navigation-item:nth-child(7) > a{
  background:#e6f4d0!important;border:2px solid var(--ri-green)!important;color:var(--ri-dark)!important;padding-bottom:8px!important;
 }
}

/* 9.4 — calculator initial form state and visible-only results. */
.ri-mcalc [hidden]{display:none!important}
.ri-mcalc input.ri-mcalc-unfilled{background:#fff9e7!important;border-color:#dfb65a!important;box-shadow:0 0 0 1px rgba(223,182,90,.16)}
.ri-mcalc-waiting{padding:30px 22px;text-align:center;border:1px dashed #8cc63f;border-radius:14px;background:#f7faf3;color:#415760;font-weight:500}
