/* Blog presentation matching the S2 article grid, backed by native Bitrix components. */
main.rn-blog-page{max-width:1440px;width:100%;padding:40px 30px 80px;margin:0 auto}
.rn-blog-page h1{font-size:32px;line-height:1.15;font-weight:400;color:#333;margin:0 0 20px}
.rn-blog-crumbs{display:flex;flex-wrap:wrap;gap:10px;color:#999;font-size:13px;line-height:20px;margin:0 0 42px}
.rn-blog-crumbs span{color:#ccc}
.rn-blog-layout{display:grid;grid-template-columns:minmax(0,1fr) 244px;gap:40px;align-items:start}
.rn-blog-years{display:flex;border:1px solid #ececec;min-height:60px;margin-bottom:32px}
.rn-blog-years a{display:flex;align-items:center;padding:16px 28px;border-right:1px solid #ececec;font-size:11px;text-transform:uppercase;letter-spacing:.3px;color:#333}
.rn-blog-years a[aria-current]{background:#fafafa}
.rn-blog-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:32px}
.rn-blog-card{min-width:0;border:1px solid #ececec;border-radius:3px;background:#fff;transition:box-shadow .3s,transform .3s,border-color .3s}
.rn-blog-card:hover{border-color:#fff;box-shadow:0 10px 20px #0000001a;transform:translateY(-1px)}
.rn-blog-photo{position:relative;display:block;overflow:hidden;aspect-ratio:1;background:#fafafa}
.rn-blog-photo img{width:100%;height:100%;object-fit:cover}
.rn-blog-photo:before{content:"";position:absolute;top:0;left:-50%;width:25%;height:100%;z-index:2;opacity:0;background:linear-gradient(to right,#ffffff00,#ffffff4d);transform:skewX(-25deg);pointer-events:none}
.rn-blog-photo:hover:before{opacity:1;animation:rn-blog-shine .5s ease}
@keyframes rn-blog-shine{to{left:125%}}
.rn-blog-card-text{padding:23px 24px 22px;min-height:204px;display:flex;flex-direction:column}
.rn-blog-label{font-size:10px;line-height:14px;text-transform:uppercase;letter-spacing:.4px;color:#999;margin-bottom:10px}
.rn-blog-card-title{font-size:14px;line-height:25px;font-weight:400;color:#333;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden;margin-bottom:18px}
.rn-blog-card-text time{margin-top:auto;font-size:12px;color:#555}
.rn-blog-page a:hover{color:#0b2e59}
.rn-blog-more{display:block;text-align:center;padding:17px;border:1px solid #ececec;background:#fafafa;text-transform:uppercase;font-size:11px;letter-spacing:.4px;margin-top:32px}
.rn-blog-pagination nav{display:flex;justify-content:center;gap:22px;align-items:center;margin-top:22px}
.rn-blog-pagination nav a{min-width:26px;height:26px;text-align:center;font-weight:600;font-size:13px;border-radius:2px}
.rn-blog-pagination nav a[aria-current]{background:#0b2e59;color:white}
.rn-blog-sidebar{font-size:13px;line-height:24px;min-width:0}
.rn-side-links{border:1px solid #ececec}
.rn-side-links a{display:flex;justify-content:space-between;padding:14px 15px;color:#333;gap:10px}
.rn-side-links a+a{border-top:1px solid #ececec}
.rn-side-links span{color:#999;font-size:12px}
.rn-blog-subscribe{border:1px solid #ececec;margin:48px 0 56px;padding:25px 20px 0;text-align:center}
.rn-blog-subscribe svg{width:72px;height:72px;color:#103459;margin:0 auto}
.rn-blog-subscribe p{font-size:14px;line-height:25px;margin:15px 0 22px}
.rn-blog-subscribe>a{display:block;border-top:1px solid #ececec;padding:16px 0;font-size:10px;text-transform:uppercase;letter-spacing:.4px}
.rn-blog-sidebar h3{font-size:16px;font-weight:400;color:#333;margin:26px 0 16px}
.rn-blog-tags{display:flex;flex-wrap:wrap;gap:5px}
.rn-blog-tags a{display:inline-block;font-size:12px;line-height:18px;padding:4px 10px;background:#f7f7f7;border:1px solid #ececec;border-radius:3px;color:#999}
.rn-blog-recent{margin-top:70px}
.rn-blog-recent>a{display:flex;gap:15px;padding:16px 20px;border:1px solid #ececec;margin-top:-1px;align-items:start}
.rn-blog-recent img{width:33px;height:33px;object-fit:cover;border-radius:50%;flex-shrink:0}
.rn-blog-recent time{display:block;color:#999;font-size:11px;line-height:18px;margin-bottom:5px}
.rn-blog-article{min-width:0;color:#555;line-height:26px}
.rn-blog-article>time{display:block;color:#999;margin-bottom:24px;font-size:13px}
.rn-blog-cover{width:100%;height:auto;margin-bottom:30px}
.rn-blog-body h2,.rn-blog-body h3{font-weight:400;color:#333;line-height:1.4;margin:30px 0 20px}
.rn-blog-body img{max-width:100%;height:auto}.rn-blog-body table{display:block;overflow:auto;max-width:100%}
.rn-blog-back{display:inline-block;margin-top:35px}.rn-blog-article>.rn-blog-tags{margin-top:30px}
@media(min-width:1200px){.rn-blog-layout{grid-template-columns:minmax(0,1fr) 264px}}
@media(max-width:991px){.rn-blog-layout{grid-template-columns:1fr}.rn-blog-sidebar{display:none}.rn-blog-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){main.rn-blog-page{padding:28px 16px 50px}.rn-blog-page h1{font-size:26px}.rn-blog-crumbs{margin-bottom:28px}.rn-blog-grid{gap:16px}.rn-blog-years a{padding:14px 18px}.rn-blog-card-text{padding:16px;min-height:190px}.rn-blog-card-title{font-size:13px;line-height:22px}}
@media(max-width:420px){.rn-blog-grid{grid-template-columns:1fr}.rn-blog-card-text{min-height:170px}}
@media(prefers-reduced-motion:reduce){.rn-blog-photo:before{display:none}.rn-blog-card{transition:none}.rn-blog-card:hover{transform:none}}
.rn-blog-page>.breadcrumbs{display:none}
.rn-side-links details+details{border-top:1px solid #ececec}.rn-side-links summary{cursor:pointer;padding:14px 15px;list-style:none;color:#333;position:relative;padding-right:32px}.rn-side-links summary::-webkit-details-marker{display:none}.rn-side-links summary:after{content:'';position:absolute;right:16px;top:24px;border:4px solid transparent;border-top-color:#333}.rn-side-links details[open]>summary:after{transform:rotate(180deg);top:20px}.rn-side-links details>a{font-size:12px;padding-left:25px;background:#fafafa}
.rn-blog-tools{position:fixed;right:0;top:30%;z-index:20;background:white;box-shadow:0 5px 25px #00000012;border-radius:4px 0 0 4px}
.rn-blog-tools>a{position:relative;width:58px;height:64px;display:flex;align-items:center;justify-content:center;color:#999;border-bottom:1px solid #ececec}
.rn-blog-tools svg{width:29px;height:29px}.rn-blog-tools span{position:absolute;right:5px;top:9px;background:#0b2e59;color:white;font:14px/21px Montserrat,sans-serif;min-width:21px;text-align:center;border-radius:50%;padding:0 3px}
.rn-back-top{position:fixed;bottom:28px;right:80px;width:44px;height:44px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#0b2e59;color:white!important;z-index:20}.rn-back-top svg{width:23px;height:23px}
html:has(.rn-blog-page){scroll-behavior:smooth}.rn-blog-page .rn-blog-subscribe{padding-top:20px}.rn-blog-page .rn-blog-subscribe p{margin-top:10px}
@media(max-width:767px){.rn-blog-tools>a{width:44px;height:52px}.rn-blog-tools svg{width:24px;height:24px}.rn-blog-tools span{font-size:11px;min-width:17px;line-height:17px;right:2px;top:5px}.rn-back-top{right:58px;bottom:20px}}
@media(prefers-reduced-motion:reduce){html:has(.rn-blog-page){scroll-behavior:auto}}
/* Reference tag hover, with matching keyboard focus treatment. */
.rn-blog-tags a{transition:background-color .2s,color .2s,border-color .2s}
.rn-blog-page .rn-blog-tags a:hover,.rn-blog-page .rn-blog-tags a:focus-visible{background:#0b2e59;border-color:#0b2e59;color:#fff}
.rn-blog-subscribe svg{width:90px;height:80px}
.rn-blog-more{border-radius:3px;transition:background-color .3s,color .3s,border-color .3s}
.rn-blog-page .rn-blog-more:hover,.rn-blog-page .rn-blog-more:focus-visible{background:#0b2e59;border-color:#0b2e59;color:white}
/* Owner-requested brief shine remains available with reduced-motion enabled. */
.rn-blog-photo:before{display:block}
.rn-blog-card:hover .rn-blog-photo:before,.rn-blog-card:focus-within .rn-blog-photo:before{display:block;animation:rn-blog-shine .5s ease;opacity:0}
@keyframes rn-blog-shine{0%{left:-50%;opacity:1}99%{opacity:1}100%{left:125%;opacity:0}}
.rn-blog-subscribe>a{transition:background-color .3s ease,color .3s ease,border-color .3s ease!important}
.rn-blog-page .rn-blog-subscribe>a:hover,.rn-blog-page .rn-blog-subscribe>a:focus-visible{background:#0b2e59;border-color:#0b2e59;color:#fff}
.rn-back-top{transition:background-color .3s ease!important}
.rn-back-top:hover,.rn-back-top:focus-visible{background:#245581}
/* Explicitly requested colour feedback is retained when OS motion is reduced. */
.rn-blog-tags a,.rn-blog-more{transition:background-color .3s ease,color .3s ease,border-color .3s ease!important}
/* Keep button labels white above inherited Bitrix link hover colours. */
html body main.rn-blog-page a.rn-blog-more:hover,
html body main.rn-blog-page a.rn-blog-more:focus-visible,
html body main.rn-blog-page a.rn-blog-more:active,
html body main.rn-blog-page .rn-blog-subscribe>a:hover,
html body main.rn-blog-page .rn-blog-subscribe>a:focus-visible,
html body main.rn-blog-page .rn-blog-tags>a:hover,
html body main.rn-blog-page .rn-blog-tags>a:focus-visible{color:#fff!important;-webkit-text-fill-color:#fff!important;background-color:#0b2e59!important;border-color:#0b2e59!important}
/* Match S2: whole-panel hover, full-bleed button, 300ms colour fade. */
.rn-blog-subscribe{border-radius:3px;transition:box-shadow .3s ease,transform .3s ease,border-color .3s ease!important}
.rn-blog-subscribe>a{position:relative;margin-left:-21px;margin-right:-21px;margin-bottom:-1px;width:calc(100% + 42px);padding:20px 20px 18px;border-top-color:transparent;border-radius:0 0 3px 3px}
.rn-blog-subscribe>a:before{content:"";position:absolute;top:0;left:20px;right:20px;height:1px;background:#ececec;transition:opacity .3s ease!important}
.rn-blog-subscribe:hover,.rn-blog-subscribe:focus-within{transform:translateY(-1px);border-color:white;box-shadow:0 10px 20px #0000001a}
html body main.rn-blog-page .rn-blog-subscribe:hover>a,
html body main.rn-blog-page .rn-blog-subscribe:focus-within>a{background-color:#0b2e59!important;border-color:#0b2e59!important;color:#fff!important;-webkit-text-fill-color:#fff!important}
html body main.rn-blog-page .rn-blog-subscribe>a:hover,
html body main.rn-blog-page .rn-blog-subscribe>a:focus-visible{background-color:#0e3c74!important;border-color:#0e3c74!important}
.rn-blog-subscribe:hover>a:before,.rn-blog-subscribe:focus-within>a:before{opacity:0}

.rn-news-layout>.rn-blog-sidebar>h3:first-child{margin-top:0;line-height:20px}

/* Preserve readable CTA labels against Bitrix link-state styles. */
html body main .rn-about-content a.button{color:#fff!important}html body main .rn-about-content a.button.secondary{color:#0b2e59!important}html body main .rn-about-content a.button:hover,html body main .rn-about-content a.button:focus-visible{background:#0e3c74;border-color:#0e3c74;color:#fff!important}

.rn-side-links summary>a{padding:0;display:inline;color:inherit}.rn-side-links summary>a:hover{color:#176fa0}

.rn-side-links summary>a[aria-current="page"]{font-weight:700;color:#333}
.rn-side-links a[aria-current="page"]{font-weight:700;color:#333}.rn-help-sidebar>details{border-top:1px solid #ececec}.rn-help-layout .rn-help-content{min-width:0}.rn-help-layout .rn-help-content .content-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.rn-help-sidebar summary>a{display:inline-block}.rn-help-sidebar a:hover{color:#176fa0}
