/*
Theme Name: RS24 Blog
Description: Самостоятельная тема блога Русский Свет по утвержденным макетам Figma.
Version: 0.3.13
Requires at least: 6.6
Requires PHP: 8.1
Text Domain: rs24
*/
:root{--blue:#3b62a4;--navy:#243655;--pale:#e8f2ff;--surface:#ecf0f4;--red:#e10814;--radius:8px}
*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:24px}body{margin:0;font-family:Arial,sans-serif;color:var(--navy);line-height:1.45;background:#fff}a{color:inherit;text-decoration:none}a:hover{text-decoration:underline}button,input,select{font:inherit}button,select{cursor:pointer}img{max-width:100%;height:auto}button,a,input,select,summary{touch-action:manipulation}:focus-visible{outline:3px solid #e10814;outline-offset:4px}h1,h2,h3,p{margin-top:0}h1{font-size:48px;line-height:1.2;margin-bottom:24px}h2{font-size:40px;line-height:1.2;margin-bottom:30px}h3{font-size:24px;line-height:1.1}p{margin-bottom:20px}.container{max-width:1440px;padding-left:60px;padding-right:60px;margin:auto}.section{padding-top:50px;padding-bottom:60px}.button{display:inline-flex;justify-content:center;align-items:center;min-height:40px;padding:10px 24px;border:0;border-radius:var(--radius);background:var(--blue);color:white;font-size:15px;font-weight:700}.button:hover{filter:brightness(.93);text-decoration:none}.secondary{background:white;color:var(--blue)}.catalog{background:var(--red);text-transform:uppercase}.screen-reader-text,.skip-link:not(:focus){position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.skip-link:focus{position:fixed;z-index:1000;top:10px;left:10px;background:white;padding:15px}.header-top{height:93px;display:flex;align-items:center;gap:40px}.logo{display:block;margin-right:auto;line-height:0}.logo img{width:196px}.phone{font-size:20px;font-weight:bold;color:var(--blue)}.nav-bar{background:var(--blue);color:#fff}.nav-inner{display:flex;align-items:center;justify-content:space-between;gap:24px;min-height:54px}.nav-inner .topics{margin:0;gap:30px}.nav-inner .topics a{padding:12px 0;background:none;color:white;font-size:15px;font-weight:700;text-transform:uppercase}.nav-inner ul{list-style:none;display:flex;gap:25px;padding:0}.search-form{display:flex;align-items:center;border:1px solid #a5b8d7;border-radius:8px;overflow:hidden;max-width:360px}.nav-inner .search-form{width:204px;flex-shrink:0}.search-form label{min-width:0;flex:1}.search-form input{border:0;min-width:0;width:100%;padding:7px 12px;background:transparent;color:inherit;outline-offset:-3px;font-size:15px}.search-form input::placeholder{color:inherit;opacity:.65}.search-form button{border:0;background:none;color:inherit;padding:6px 12px}.search-form svg{stroke:currentColor;fill:none;stroke-width:1.5;vertical-align:middle}.menu-toggle{display:none}.hero{position:relative;background:var(--pale) url('assets/hero.svg') no-repeat right center;background-size:600px 100%;padding:40px 0}.hero h1{font-size:56px;margin-bottom:16px}.hero p{max-width:700px;font-size:18px;line-height:1.5;margin-bottom:16px}.topics{display:flex;gap:8px;overflow:auto;white-space:nowrap;padding:0 0 4px;margin:16px 0 0}.topics a{display:block;background:white;padding:10px 16px;border-radius:6px;font-size:14px;flex:none}.topics .active{background:var(--blue);color:white}.home-content{background:var(--surface)}.popular{border-bottom:1px solid #d5dbe3;padding-bottom:50px;margin-bottom:42px}.popular-grid{display:grid;grid-template-columns:1fr 1fr;gap:40px 24px}.popular-grid .featured{grid-row:span 2;display:block}.post-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:32px 24px;margin-top:40px}.post-card{display:grid;grid-template-columns:1fr 1fr;gap:20px;min-width:0;color:var(--navy)}.card-image{display:block;min-width:0}.card-image img,.image-placeholder{display:block;width:100%;height:100%;min-height:200px;object-fit:cover;border-radius:5px}.image-placeholder{background:#dce4ed;aspect-ratio:1.5}.card-body{display:flex;flex-direction:column;min-width:0}.post-card h3{margin:0 0 12px}.card-excerpt{font-size:14px;line-height:1.2;color:#151515}.card-excerpt p{margin:0 0 14px}.card-meta{display:flex;align-items:center;flex-wrap:wrap;gap:16px;font-size:13px;margin-top:auto}.card-meta time{color:#707780}.tag{border:1px solid #d9dbdf;padding:7px 10px;border-radius:7px;color:#151515}.featured .card-image{margin-bottom:18px}.featured .card-image img{height:298px}.featured .card-meta{margin-top:14px}.pagination{margin:30px 0}.nav-links{display:flex;gap:8px;flex-wrap:wrap}.page-numbers{padding:4px 11px;font-size:24px;border-radius:3px}.page-numbers.current{color:white;background:var(--blue)}.expert-banner{margin-top:40px;display:grid;grid-template-columns:minmax(0,1fr) 183px 240px;align-items:center;gap:28px;padding:48px 60px;background:var(--blue) url('assets/expert-background.png') no-repeat right center;background-size:cover;color:white;border-radius:20px}.expert-banner h2{font-size:35px;margin-bottom:24px}.expert-banner p{font-size:20px;margin-bottom:0;line-height:1.4}.expert-banner img{border-radius:50%;aspect-ratio:1;object-fit:cover}.expert-banner strong{font-size:20px}.expert-banner>div:last-child p{color:#dbe4f2}.seo-columns{display:grid;grid-template-columns:1fr 1fr;gap:24px;font-size:18px}.category-hero{background:var(--pale);padding:30px 0}.category-hero p{font-size:18px}.breadcrumbs{display:flex;flex-wrap:wrap;align-items:center;gap:10px;font-size:13px;margin-bottom:24px}.listing-toolbar{display:flex;align-items:center;justify-content:space-between;gap:20px}.listing-toolbar select{border:0;background:white;color:var(--navy);padding:10px}.listing-toolbar button{background:white;border:1px solid #d9dbdf;border-radius:5px;padding:8px}.article-layout{display:grid;grid-template-columns:minmax(0,872fr) minmax(250px,427fr);gap:24px}.article-page h1{font-size:40px}.article-intro{font-size:20px}.article-meta{font-size:14px;color:#64728a;margin:20px 0}.article-cover{width:100%;border-radius:6px;margin-bottom:30px}.article-content{font-size:18px;line-height:1.5;color:#243655;overflow-wrap:anywhere}.article-content h2{font-size:30px;margin:32px 0 18px}.article-content h3{font-size:24px;margin:28px 0 16px}.article-content a{color:var(--blue);text-decoration:underline}.article-content figure{margin:28px 0}.article-content figcaption{font-size:14px;color:#65728a;margin-top:8px}.article-content img{border-radius:6px}.article-content li{margin-bottom:12px}.article-sidebar{min-width:0}.author-mini{font-size:14px;margin-bottom:40px;padding:0 24px}.author-mini img{float:left;border-radius:50%;margin:0 12px 12px 0;object-fit:cover}.author-mini a{color:var(--blue)}.author-mini p{margin-top:8px}.toc{position:sticky;top:24px;padding:28px;background:var(--surface);border-radius:12px}.toc summary{font-size:20px;font-weight:bold;cursor:pointer}.toc nav{display:grid;gap:18px;margin-top:24px}.toc a{font-size:16px;border-left:3px solid transparent;padding-left:10px}.toc a[aria-current]{border-color:var(--blue);color:var(--blue);font-weight:bold}.rs24-callout{background:var(--surface);padding:32px;border-radius:12px;margin:28px 0}.rs24-expert{background:var(--blue);color:white;padding:32px;border-radius:12px;margin:28px 0}.rs24-callout>:first-child,.rs24-expert>:first-child{margin-top:0}.rs24-callout>:last-child,.rs24-expert>:last-child{margin-bottom:0}.wp-block-details{background:var(--surface);border-radius:8px;margin:10px 0;padding:20px}.wp-block-details summary{cursor:pointer;font-weight:bold}.wp-block-details[open] summary{margin-bottom:20px}.related{border-top:1px solid #d9dbdf;padding-top:40px;margin-top:60px}.author-profile{display:grid;grid-template-columns:minmax(0,872px) 300px;justify-content:space-between;gap:50px}.author-profile h2{font-size:30px;margin:30px 0 16px}.author-photo{border-radius:50%;margin-top:40px;object-fit:cover;aspect-ratio:1}.not-found{background:var(--pale);padding:50px 0 56px}.not-found>.container{display:grid;grid-template-columns:1fr 440px;align-items:center;gap:30px}.eyebrow{text-transform:uppercase;letter-spacing:1.5px;font-size:13px;font-weight:700}.error-number{font-size:144px;line-height:1;color:var(--blue);font-weight:bold;margin-bottom:24px}.not-found h1{font-size:40px}.actions{display:flex;gap:12px;flex-wrap:wrap}.site-footer{background:#124193;color:white;padding:44px 0 25px;font-size:18px}.footer-main{display:flex;justify-content:space-between;gap:40px}.footer-logo{width:165px;display:block;margin-bottom:22px}.footer-main p{font-weight:bold;line-height:1.7}.footer-right{display:flex;flex-direction:column;justify-content:space-between;gap:50px}.footer-right nav{display:flex;align-items:center;justify-content:flex-end;gap:30px;font-size:15px;font-weight:bold;text-transform:uppercase}.brands{display:flex;align-items:center;justify-content:flex-end;gap:45px}.brands img{max-width:186px;max-height:60px}.brands a:nth-child(2) img{width:60px}.footer-bottom{display:flex;justify-content:space-between;gap:30px;margin-top:48px;font-size:14px}.footer-bottom a{color:#b4c4df}.empty-state{padding:60px 0}.prose{max-width:992px;min-height:50vh}.editor-styles-wrapper{font-family:Arial,sans-serif;color:var(--navy)}
@media(min-width:769px) and (max-width:1200px){.container{padding-left:24px;padding-right:24px}.nav-inner .topics{gap:18px}.nav-inner .topics a{font-size:12px}.expert-banner{padding:32px;grid-template-columns:1fr 140px}.expert-banner>div:last-child{grid-column:2}.expert-banner>div:first-child{grid-row:span 2}.post-card h3{font-size:22px}.not-found>.container{grid-template-columns:1fr 330px}}
@media(max-width:900px){.post-card{display:flex;flex-direction:column;gap:18px}.card-image img{aspect-ratio:1.5;height:auto}.card-body{flex:1}.popular-grid .featured{grid-row:auto}.popular-grid{gap:30px}.popular-grid .post-card:last-child{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr}.article-layout{grid-template-columns:minmax(0,1fr)}.article-sidebar{display:contents}.author-mini{grid-row:1;padding:0;margin:0 0 20px}.toc{grid-row:2;position:static;margin-bottom:20px}.article-page h1{font-size:36px}.author-profile{grid-template-columns:1fr 200px;gap:24px}.brands{gap:20px}.brands img{max-width:135px}}
@media(max-width:768px){.container{padding-left:18px;padding-right:18px}.section{padding-top:36px;padding-bottom:40px}h1{font-size:36px}h2{font-size:30px}.header-top{height:72px;gap:20px}.logo img{width:140px}.phone{font-size:14px}.header-top .catalog{font-size:12px;padding:8px 12px}.nav-inner{display:block;padding-top:12px;padding-bottom:12px}.nav-inner .topics{gap:24px}.nav-inner .topics a{font-size:12px}.nav-inner .search-form{margin-top:12px;width:100%;max-width:none}.hero{padding:30px 0;background-size:45% 100%}.hero h1{font-size:40px}.hero p{font-size:16px;max-width:450px}.post-grid{gap:32px 24px;margin-top:30px}.post-card h3{font-size:24px}.expert-banner{grid-template-columns:1fr 120px;padding:32px;gap:20px}.expert-banner>div:first-child{grid-column:1/-1}.expert-banner h2{font-size:30px}.expert-banner img{width:120px;grid-column:2;grid-row:2}.expert-banner>div:last-child{grid-row:2;grid-column:1}.expert-banner p{font-size:18px}.seo-columns{display:block;font-size:16px}.not-found>.container{grid-template-columns:1fr}.not-found img{justify-self:center;max-width:100%;margin-top:30px}.not-found h1{font-size:32px}.error-number{font-size:120px}.footer-main{gap:30px}.footer-right nav{flex-wrap:wrap;gap:18px}.brands{flex-wrap:wrap}.footer-bottom{font-size:12px}.author-photo{width:200px}.listing-toolbar{align-items:flex-start}.listing-toolbar form{display:flex;flex-wrap:wrap;justify-content:flex-end}}
@media(max-width:540px){h1{font-size:30px}h2{font-size:26px}.header-top{height:57px;gap:14px}.logo img{width:100px}.phone{font-size:11px}.header-top .catalog{display:none}.menu-toggle{display:grid;gap:4px;background:none;border:0;padding:10px}.menu-toggle span{width:18px;height:2px;background:var(--blue)}.nav-bar{display:none}.nav-bar.is-open{display:block}.nav-inner .topics{display:flex;flex-direction:column;gap:0}.nav-inner .topics a{padding:12px 0}.hero{padding:24px 0;background-size:auto 100%;background-position:right center}.hero .container{position:relative}.hero h1{font-size:32px}.hero p{font-size:14px;max-width:100%;padding-right:20px}.topics{margin-top:18px}.topics a{font-size:13px;padding:10px 14px}.popular-grid,.post-grid{display:flex;flex-direction:column;gap:32px}.popular-grid .post-card:last-child{display:flex}.featured .card-image img{height:auto}.popular{padding-bottom:30px;margin-bottom:30px}.post-card{gap:16px}.post-card h3{font-size:24px}.card-excerpt{font-size:16px;line-height:1.4}.card-meta{margin-top:16px}.expert-banner{display:flex;flex-wrap:wrap;padding:24px;border-radius:12px;gap:18px}.expert-banner h2{font-size:26px}.expert-banner p{font-size:16px}.expert-banner img{width:80px}.expert-banner>div:last-child{flex:1;min-width:160px}.expert-banner strong{font-size:16px}.article-page h1{font-size:30px}.article-intro,.article-content{font-size:16px}.article-content h2{font-size:26px}.article-content h3{font-size:22px}.rs24-callout,.rs24-expert{padding:20px}.toc{padding:20px}.toc a{font-size:14px}.author-profile{display:flex;flex-direction:column-reverse;gap:16px}.author-photo{width:120px;margin:0}.author-profile h2{font-size:26px}.listing-toolbar{display:block}.listing-toolbar form{justify-content:flex-start;margin-top:12px}.not-found{padding:32px 0}.not-found h1{font-size:28px}.not-found p{font-size:16px}.not-found .error-number{font-size:104px}.actions{flex-direction:column;align-items:stretch}.site-footer{padding:36px 0}.footer-main,.footer-bottom{flex-direction:column;gap:30px}.footer-right nav{justify-content:flex-start}.brands{justify-content:flex-start;gap:24px}.footer-bottom{margin-top:36px}.page-numbers{font-size:20px;padding:4px 9px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
@media(max-width:540px){.hero{background-size:160px 100%;background-image:linear-gradient(to right,#e8f2ff 0%,rgba(232,242,255,.7) 100%),url('assets/hero.svg');background-repeat:no-repeat;background-position:right center}.hero p{padding-right:0}}
.social-links{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin-top:12px}.social-links ul,.footer-bottom ul{display:flex;flex-wrap:wrap;align-items:center;gap:12px;list-style:none;padding:0;margin:0}.social-links>a,.social-links li a{display:inline-flex;align-items:center;justify-content:center;min-width:34px;min-height:34px;padding:4px 8px;border:1px solid rgba(255,255,255,.7);border-radius:18px;font-size:13px}.footer-bottom nav{display:flex;flex-wrap:wrap;gap:14px}.footer-bottom ul{margin:0}.certificates{display:flex;flex-wrap:wrap;gap:16px;margin:20px 0 40px}.certificates img{width:180px;height:240px;object-fit:contain;border:1px solid #d9dbdf;background:white}
