/*
Theme Name: dds_radiobookrwanda.com
Theme URI: https://radiobookrwanda.com/
Author: Алексей Григорьев
Description: Тема «полевой регистратор-атлас» для портала о книгах и подкастах про недвижимость и инвестиции: графитово-зелёная миллиметровка, бумажные листы со скрепками, лаймовые маркеры и закладки.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rbook
*/

/* ---------- Шрифты ---------- */
@font-face{font-family:"Oswald";font-style:normal;font-weight:500;font-display:swap;src:url("fonts/oswald-cyrillic-500-normal.woff2") format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:"Oswald";font-style:normal;font-weight:500;font-display:swap;src:url("fonts/oswald-latin-500-normal.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Oswald";font-style:normal;font-weight:700;font-display:swap;src:url("fonts/oswald-cyrillic-700-normal.woff2") format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:"Oswald";font-style:normal;font-weight:700;font-display:swap;src:url("fonts/oswald-latin-700-normal.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"PT Mono";font-style:normal;font-weight:400;font-display:swap;src:url("fonts/pt-mono-cyrillic-400-normal.woff2") format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:"PT Mono";font-style:normal;font-weight:400;font-display:swap;src:url("fonts/pt-mono-latin-400-normal.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"PT Sans";font-style:normal;font-weight:400;font-display:swap;src:url("fonts/pt-sans-cyrillic-400-normal.woff2") format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:"PT Sans";font-style:normal;font-weight:400;font-display:swap;src:url("fonts/pt-sans-latin-400-normal.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"PT Sans";font-style:italic;font-weight:400;font-display:swap;src:url("fonts/pt-sans-cyrillic-400-italic.woff2") format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:"PT Sans";font-style:italic;font-weight:400;font-display:swap;src:url("fonts/pt-sans-latin-400-italic.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"PT Sans";font-style:normal;font-weight:700;font-display:swap;src:url("fonts/pt-sans-cyrillic-700-normal.woff2") format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:"PT Sans";font-style:normal;font-weight:700;font-display:swap;src:url("fonts/pt-sans-latin-700-normal.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}

/* ---------- Переменные ---------- */
:root{
  --rb-bg:#14201B;
  --rb-grid:#2A3A31;
  --rb-head:#0D1713;
  --rb-paper:#E8DFC8;
  --rb-sheet:#F2EBDC;
  --rb-olive:#C9D6A3;
  --rb-cream:#F2EBDC;
  --rb-muted:#8FA396;
  --rb-text:#1E2A24;
  --rb-text-muted:#5C6B5E;
  --rb-lime:#D6F24A;
  --rb-lime-hover:#E6FF73;
  --rb-rust:#C65B3C;
  --rb-ink:#24406B;
  --rb-panel:#1A2922;
  --rb-line:#33463B;
  --rb-rule:#B9AE92;
  --rb-f-head:"Oswald","Arial Narrow","Roboto Condensed",Impact,sans-serif;
  --rb-f-body:"PT Sans","Segoe UI",Roboto,Arial,sans-serif;
  --rb-f-mono:"PT Mono","Courier New",Consolas,monospace;
  --rb-brush:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 16' preserveAspectRatio='none'%3E%3Cpath d='M2 9 C40 5 90 8 140 6 S260 4 320 7 S380 6 398 5 L397 11 C350 13 300 10 240 12 S120 13 70 12 S20 14 3 13 Z' fill='%23D6F24A'/%3E%3C/svg%3E");
  --rb-clip:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 64'%3E%3Cpath d='M8 22 V50 a6 6 0 0 0 12 0 V10 a8 8 0 0 0 -16 0 V48 a4 4 0 0 0 8 0 V20' fill='none' stroke='%23AEB8B0' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E");
}

/* ---------- Сброс и основа ---------- */
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{
  margin:0;
  overflow-x:hidden;
  background-color:var(--rb-bg);
  background-image:
    linear-gradient(rgba(42,58,49,.8) 1px,transparent 1px),
    linear-gradient(90deg,rgba(42,58,49,.8) 1px,transparent 1px);
  background-size:22px 22px;
  color:var(--rb-cream);
  font-family:var(--rb-f-body);
  font-size:17px;
  line-height:1.6;
}
img{max-width:100%;height:auto;display:block}
a{color:var(--rb-cream);text-decoration:underline;text-decoration-color:var(--rb-rust);text-decoration-thickness:2px;text-underline-offset:4px;transition:color .15s ease,text-decoration-color .15s ease}
a:hover{color:var(--rb-lime);text-decoration-color:var(--rb-lime)}
a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible{outline:2px dashed var(--rb-lime);outline-offset:3px}
p{margin:0 0 1em}
h1,h2,h3,h4,h5,h6{margin:0 0 .6em;line-height:1.15;overflow-wrap:break-word;hyphens:auto}
p,li,td,th,dd,dt,figcaption,blockquote{overflow-wrap:break-word;hyphens:auto}
.screen-reader-text{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.rb-skip{position:absolute;left:-9999px;top:0;z-index:100;background:var(--rb-lime);color:var(--rb-bg);padding:.6rem 1rem;font-weight:700}
.rb-skip:focus{left:1rem;top:1rem}

.rb-shell{width:min(92%,1180px);margin-inline:auto}

/* ---------- Закладка-кнопка ---------- */
.rb-tab{
  display:inline-flex;align-items:center;gap:.4em;
  background:var(--rb-lime);color:var(--rb-bg);
  font-family:var(--rb-f-body);font-weight:700;font-size:.95rem;line-height:1.2;
  padding:.62rem 1.6rem .62rem 1.75rem;
  border:0;border-radius:0;cursor:pointer;text-decoration:none;
  clip-path:polygon(0 0,100% 0,calc(100% - 10px) 50%,100% 100%,0 100%,12px 50%);
  transition:transform .15s ease,background-color .15s ease;
}
.rb-tab:hover{background:var(--rb-lime-hover);color:var(--rb-bg);transform:translateX(4px)}
.rb-tab:focus-visible{outline:none;background:var(--rb-cream);color:var(--rb-bg);text-decoration:underline;text-decoration-color:var(--rb-rust)}
.rb-tab--sm{font-size:.85rem;padding:.45rem 1.3rem .45rem 1.45rem}

.rb-link{font-family:var(--rb-f-mono);color:var(--rb-cream);text-decoration-color:var(--rb-rust)}

/* ---------- Шапка ---------- */
.rb-header{position:relative;background:var(--rb-head);padding:1.6rem 0 1.4rem;z-index:5}
.rb-header::after{
  content:"";position:absolute;left:0;right:0;bottom:-8px;height:8px;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 8'%3E%3Cpath d='M0 0H16L8 8Z' fill='%230D1713'/%3E%3C/svg%3E") repeat-x 0 0/16px 8px;
}
.rb-header__row{display:flex;align-items:center;justify-content:space-between;gap:1.5rem;flex-wrap:wrap}
.rb-brand{display:flex;align-items:center;gap:1.1rem;text-decoration:none;color:var(--rb-cream);min-width:0;flex:1 1 420px}
.rb-brand:hover{color:var(--rb-cream)}
.rb-brand__mark{flex:0 0 auto;display:block;width:72px;height:72px}
.rb-brand__mark svg,.rb-brand__mark img{width:72px;height:72px;object-fit:contain}
.rb-brand__text{display:flex;flex-direction:column;min-width:0;max-width:640px}
.rb-brand__name{font-family:var(--rb-f-head);font-weight:500;text-transform:uppercase;letter-spacing:.06em;font-size:1.22rem;line-height:1.25;color:var(--rb-cream)}
.rb-brand__desc{font-size:.86rem;line-height:1.4;color:var(--rb-muted);margin-top:.3rem}
.rb-brand:hover .rb-brand__name{color:var(--rb-lime)}

.rb-nav__list{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:.4rem 2rem}
.rb-nav__list a{font-size:1rem;color:var(--rb-cream);text-decoration:none;padding:.3rem 0;border-bottom:2px solid transparent;transition:color .15s,border-color .15s}
.rb-nav__list a:hover{color:var(--rb-lime);border-bottom-color:var(--rb-rust)}
.rb-nav__list .current-menu-item>a,.rb-nav__list .current_page_item>a{color:var(--rb-lime);border-bottom-color:var(--rb-lime)}

.rb-burger{display:none;align-items:center;gap:.6rem;background:transparent;border:1px solid var(--rb-line);color:var(--rb-cream);font:700 .9rem var(--rb-f-body);padding:.55rem .9rem;cursor:pointer}
.rb-burger__lines{position:relative;width:20px;height:2px;background:var(--rb-lime)}
.rb-burger__lines::before,.rb-burger__lines::after{content:"";position:absolute;left:0;width:20px;height:2px;background:var(--rb-lime)}
.rb-burger__lines::before{top:-6px}
.rb-burger__lines::after{top:6px}

/* ---------- Секции главной ---------- */
.rb-sec{position:relative;padding:4.5rem 0}
.rb-sec__inner{width:85%;max-width:1260px;margin-inline:auto}
.rb-sec--paper{background:var(--rb-paper) url("images/paper.jpg") repeat 0 0/720px 180px;color:var(--rb-text)}
.rb-sec--olive{background:var(--rb-olive);color:var(--rb-text)}
.rb-sec--paper::before,.rb-sec--olive::before{content:"";position:absolute;left:0;right:0;top:-9px;height:10px;background-repeat:repeat-x;background-size:200px 10px}
.rb-sec--paper::before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 10' preserveAspectRatio='none'%3E%3Cpath d='M0 10 V6 L9 4 L17 7 L26 3 L38 6 L47 2 L58 5 L66 3 L77 7 L88 4 L97 6 L109 2 L118 5 L129 3 L137 7 L148 4 L159 6 L168 2 L179 5 L190 3 L200 6 V10 Z' fill='%23E8DFC8'/%3E%3C/svg%3E")}
.rb-sec--olive::before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 10' preserveAspectRatio='none'%3E%3Cpath d='M0 10 V6 L9 4 L17 7 L26 3 L38 6 L47 2 L58 5 L66 3 L77 7 L88 4 L97 6 L109 2 L118 5 L129 3 L137 7 L148 4 L159 6 L168 2 L179 5 L190 3 L200 6 V10 Z' fill='%23C9D6A3'/%3E%3C/svg%3E")}
.rb-sec--paper::after{content:"";position:absolute;left:0;right:0;bottom:-9px;height:10px;transform:scaleY(-1);background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 10' preserveAspectRatio='none'%3E%3Cpath d='M0 10 V5 L11 3 L19 6 L31 2 L40 5 L52 3 L61 7 L72 4 L84 6 L93 2 L104 5 L115 3 L124 6 L136 2 L145 5 L157 4 L166 7 L178 3 L189 5 L200 4 V10 Z' fill='%23E8DFC8'/%3E%3C/svg%3E") repeat-x 0 0/200px 10px;z-index:1}
.rb-sec--dark+.rb-sec--dark{padding-top:2.5rem}

/* Заголовок секции */
.rb-sechead{display:flex;align-items:flex-start;gap:1.1rem;margin-bottom:2rem}
.rb-sechead__num{font-family:var(--rb-f-head);font-weight:500;color:var(--rb-rust);font-size:clamp(2rem,3.4vw,2.9rem);line-height:1;padding-top:.12em;flex:0 0 auto}
.rb-sechead__title{font-family:var(--rb-f-head);font-weight:700;text-transform:uppercase;letter-spacing:.035em;font-size:clamp(2rem,4.6vw,3.7rem);line-height:1.02;margin:0;color:var(--rb-cream);min-width:0}
.rb-sechead__title span{display:inline;padding-bottom:.2em;background:var(--rb-brush) no-repeat 0 100%/100% .26em;-webkit-box-decoration-break:clone;box-decoration-break:clone}
.rb-sechead--ink .rb-sechead__title{color:var(--rb-ink)}

/* Блок 1 — карта полки */
.rb-shelf__grid{display:grid;grid-template-columns:minmax(0,2.15fr) minmax(0,1fr);gap:0 3.5rem;align-items:center}
.rb-shelf__main{min-width:0}
.rb-map{position:relative;margin:0;font-family:var(--rb-f-mono)}
.rb-map img{width:100%;height:auto;aspect-ratio:1720/566;object-fit:cover;display:block}
.rb-map__label{
  position:absolute;transform:translate(-50%,-50%);
  white-space:nowrap;font-size:clamp(.72rem,1.45vw,1.12rem);line-height:1.2;
  color:var(--rb-cream);background:rgba(20,32,27,.86);padding:.12em .4em;
}
.rb-picks{list-style:none;margin:0;padding:0 0 0 2.6rem;border-left:1px solid var(--rb-line);min-width:0}
.rb-picks__item{border-bottom:1px solid var(--rb-line)}
.rb-picks__item a{display:flex;align-items:center;gap:1.4rem;padding:1.25rem 0;text-decoration:none;color:var(--rb-cream);transition:padding .15s ease}
.rb-picks__item a:hover{padding-left:.5rem;color:var(--rb-lime)}
.rb-picks__num{font-family:var(--rb-f-head);font-weight:500;color:var(--rb-rust);font-size:2.9rem;line-height:1;flex:0 0 auto}
.rb-picks__text{font-family:var(--rb-f-mono);font-size:1.18rem;line-height:1.3;min-width:0}
.rb-picks__text small{display:block;font-family:var(--rb-f-body);font-size:.85rem;color:var(--rb-muted);margin-top:.3rem}

/* Блок 2 — разбор по частям */
.rb-parts__grid{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(0,1fr);gap:2rem 4rem;align-items:center}
.rb-parts__figure{margin:0;min-width:0}
.rb-parts__figure img{width:100%;height:auto;aspect-ratio:1280/744;object-fit:cover;mix-blend-mode:multiply}
.rb-parts__text{min-width:0}
.rb-parts__title{font-family:var(--rb-f-body);font-weight:700;font-size:clamp(1.45rem,2.4vw,2rem);color:var(--rb-text);margin-bottom:1.1rem}
.rb-squares{list-style:none;margin:0 0 1.8rem;padding:0;font-family:var(--rb-f-mono);font-size:1.2rem;color:var(--rb-text)}
.rb-squares li{position:relative;padding:.38rem 0 .38rem 2.2rem}
.rb-squares li::before{content:"";position:absolute;left:0;top:.72em;width:15px;height:15px;background:var(--rb-rust)}

/* Блок 3 — реестр */
.rb-register__grid{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);gap:2.5rem 3.5rem;align-items:center}
.rb-register__sheet{position:relative;background:var(--rb-paper) url("images/paper.jpg") repeat 0 0/720px 180px;color:var(--rb-text);padding:2.2rem 1.8rem 1.8rem;border:1px solid #CFC4A6;box-shadow:6px 6px 0 rgba(0,0,0,.25);min-width:0}
.rb-clip{position:absolute;top:-22px;left:22px;width:24px;height:64px;background:var(--rb-clip) no-repeat center/contain;z-index:3;pointer-events:none}
.rb-register__scroll{overflow-x:auto}
.rb-register__table{width:100%;border-collapse:collapse;font-family:var(--rb-f-mono);font-size:.98rem;min-width:520px;border-top:1px solid var(--rb-rule);border-bottom:1px solid var(--rb-rule)}
.rb-register__table th{text-align:left;font-weight:400;color:var(--rb-ink);padding:.55rem .7rem;border-bottom:2px solid var(--rb-rule)}
.rb-register__table td{padding:.6rem .7rem;border-bottom:1px solid var(--rb-rule);color:var(--rb-text)}
.rb-register__table tr.is-open{background:var(--rb-brush) no-repeat center/104% 100%}
.rb-register__table tr.is-open td{border-bottom-color:transparent}
.rb-register__aside{min-width:0}
.rb-register__note{color:var(--rb-muted);max-width:30em}

/* Блок 4 — карточки записей */
.rb-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:2.6rem 1.8rem;margin-top:1rem}
.rb-cards--three{grid-template-columns:repeat(3,minmax(0,1fr))}
.layout-single .rb-cards{grid-template-columns:repeat(3,minmax(0,1fr))}
.card,.rb-card{position:relative;display:flex;flex-direction:column;min-width:0;padding-top:12px}
.rb-card__clip{position:absolute;top:-6px;left:20px;width:22px;height:60px;background:var(--rb-clip) no-repeat center/contain;z-index:3;pointer-events:none}
.rb-card__sheet{
  flex:1;display:flex;flex-direction:column;
  background:var(--rb-sheet);color:var(--rb-text);
  border:1px solid var(--rb-ink);padding:1rem 1rem 1.5rem;
  overflow:hidden;
  clip-path:polygon(0 0,100% 0,100% calc(100% - 3px),94% 100%,86% calc(100% - 4px),77% 100%,66% calc(100% - 3px),55% 100%,44% calc(100% - 4px),33% 100%,22% calc(100% - 3px),12% 100%,4% calc(100% - 4px),0 100%);
  transition:transform .18s ease;
}
.rb-card:hover .rb-card__sheet{transform:translateY(-4px) rotate(-.4deg)}
.rb-card__thumb a{display:block}
.rb-card__thumb img{display:block;width:100%;height:auto;aspect-ratio:23/10;object-fit:cover;filter:saturate(.9)}
.card-body,.rb-card__body{flex:1;display:flex;flex-direction:column;align-items:flex-start;padding-top:1rem;min-width:0}
.rb-card__pin{font-family:var(--rb-f-mono);font-size:.75rem;text-transform:uppercase;letter-spacing:.08em;color:#fff;background:var(--rb-rust);padding:.15rem .5rem;margin-bottom:.6rem}
.rb-card__title{font-family:var(--rb-f-mono);font-weight:400;font-size:1.22rem;line-height:1.3;margin:0 0 .5rem}
.rb-card__title a{color:var(--rb-text);text-decoration:none}
.rb-card__title a:hover{color:var(--rb-ink);text-decoration:underline;text-decoration-color:var(--rb-rust)}
.card-excerpt,.rb-card__excerpt{font-family:var(--rb-f-mono);font-size:.9rem;line-height:1.5;color:var(--rb-text-muted)}
.card-excerpt p,.rb-card__excerpt p{margin:0 0 .5em;background:none}
.rb-card__excerpt a{color:var(--rb-ink)}
.rb-card__date{font-family:var(--rb-f-mono);font-size:.82rem;color:var(--rb-text);margin:.2rem 0 .9rem}
.rb-card__more{margin-top:auto}
.rb-empty{color:var(--rb-muted);font-family:var(--rb-f-mono)}

/* Блок 5 — правила */
.rb-rules__grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2fr);gap:2rem 3rem;align-items:center}
.rb-rules__head{min-width:0}
.rb-rules__head .rb-sechead{margin-bottom:1.6rem}
.rb-rules__list{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.6rem}
.rb-rules__box{display:flex;align-items:center;gap:1.1rem;border:1.5px solid var(--rb-ink);padding:1.4rem 1.4rem;min-width:0;background:rgba(242,235,220,.12);transition:background-color .15s ease,transform .15s ease}
.rb-rules__box:hover{background:rgba(242,235,220,.45);transform:translate(-3px,-3px);box-shadow:3px 3px 0 var(--rb-ink)}
.rb-rules__digit{font-family:var(--rb-f-head);font-weight:700;color:var(--rb-rust);font-size:clamp(3.4rem,6vw,5rem);line-height:.9;flex:0 0 auto}
.rb-rules__text{font-family:var(--rb-f-mono);font-size:clamp(1.05rem,1.6vw,1.35rem);line-height:1.25;color:var(--rb-text);min-width:0}

/* ---------- Внутренние страницы ---------- */
.rb-page{padding:2.4rem 0 4.5rem}
.breadcrumbs{font-family:var(--rb-f-mono);font-size:.85rem;color:var(--rb-muted);margin:0 0 2rem;line-height:1.5}
.breadcrumbs a{color:var(--rb-cream)}
.breadcrumbs .sep{color:var(--rb-rust);margin:0 .25rem}
.layout-with-sidebar{display:grid;grid-template-columns:minmax(0,67fr) minmax(0,27fr);column-gap:6%;align-items:start}
.layout-single{display:block}
.layout-single .content-area{width:85%;margin-left:auto;margin-right:auto}
.content-area{min-width:0}
.content-area>.rb-sechead .rb-sechead__title{font-size:clamp(1.9rem,4vw,3rem)}
.rb-archive-desc{color:var(--rb-muted);margin-bottom:1.5rem}

.rb-sheet{position:relative;background:var(--rb-sheet);color:var(--rb-text);border:1px solid var(--rb-ink);padding:2.6rem 2.4rem 2.2rem;margin-bottom:2.4rem}
.rb-sheet a{color:var(--rb-ink)}
.rb-sheet a:hover{color:var(--rb-rust)}
.rb-entry__title{font-family:var(--rb-f-head);font-weight:700;text-transform:uppercase;letter-spacing:.03em;color:var(--rb-ink);font-size:clamp(1.8rem,3.6vw,2.7rem);line-height:1.08;margin-bottom:.8rem}
.rb-entry__meta{display:flex;flex-wrap:wrap;gap:.4rem 1.2rem;font-family:var(--rb-f-mono);font-size:.85rem;color:var(--rb-text-muted);margin-bottom:1.6rem}
.rb-entry__cats a{margin-right:.6rem}
.rb-entry__thumb{margin:0 0 1.8rem}
.rb-entry__thumb img{width:100%;height:auto;border:1px solid var(--rb-ink)}
.rb-entry__content{font-size:1.06rem;line-height:1.7}
.rb-entry__content h2,.rb-entry__content h3,.rb-entry__content h4{font-family:var(--rb-f-head);font-weight:500;color:var(--rb-ink);margin:1.8em 0 .6em;letter-spacing:.02em}
.rb-entry__content h2{font-size:1.75rem;text-transform:uppercase}
.rb-entry__content h3{font-size:1.4rem}
.rb-entry__content h4{font-size:1.18rem}
.rb-entry__content ul,.rb-entry__content ol{margin:0 0 1.2em;padding-left:1.4em}
.rb-entry__content li{margin-bottom:.35em}
.rb-entry__content ul{list-style:none;padding-left:0}
.rb-entry__content ul li{position:relative;padding-left:1.6em}
.rb-entry__content ul li::before{content:"";position:absolute;left:0;top:.62em;width:10px;height:10px;background:var(--rb-rust)}
.rb-entry__content ol li::marker{color:var(--rb-rust);font-family:var(--rb-f-head)}
.rb-entry__content blockquote{margin:1.6em 0;padding:1.2rem 1.5rem 1.2rem 1.6rem;background:var(--rb-paper);border-left:5px solid var(--rb-lime);font-family:var(--rb-f-mono);font-size:1.02rem}
.rb-entry__content blockquote p:last-child{margin-bottom:0}
.rb-entry__content table{width:100%;border-collapse:collapse;margin:1.4em 0;font-family:var(--rb-f-mono);font-size:.92rem;border:1px solid var(--rb-ink)}
.rb-entry__content th,.rb-entry__content td{border:1px solid var(--rb-rule);padding:.55rem .7rem;text-align:left;vertical-align:top}
.rb-entry__content th{background:var(--rb-paper);color:var(--rb-ink);font-weight:400}
.rb-entry__content img{height:auto}
.rb-entry__content figure{margin:1.6em 0}
.rb-entry__content figcaption{font-family:var(--rb-f-mono);font-size:.82rem;color:var(--rb-text-muted);margin-top:.5em}
.rb-entry__content pre{overflow-x:auto;background:var(--rb-bg);color:var(--rb-cream);padding:1rem 1.2rem;font-family:var(--rb-f-mono);font-size:.9rem}
.rb-entry__content code{font-family:var(--rb-f-mono);background:var(--rb-paper);padding:.05em .3em}
.rb-entry__content pre code{background:none;padding:0}
.rb-entry__content hr{border:0;height:6px;background:var(--rb-brush) no-repeat center/60% 100%;margin:2em 0}
.rb-entry__content .alignleft{float:left;margin:.3em 1.4em 1em 0}
.rb-entry__content .alignright{float:right;margin:.3em 0 1em 1.4em}
.rb-entry__content .aligncenter{margin-left:auto;margin-right:auto}
.rb-entry__tags{font-family:var(--rb-f-mono);font-size:.88rem;margin-top:1.8rem;padding-top:1rem;border-top:1px dashed var(--rb-rule)}
.rb-entry__tags a{display:inline-block;margin:.2rem .4rem .2rem 0;padding:.1rem .55rem;background:var(--rb-paper);text-decoration:none}
.rb-pagelinks{font-family:var(--rb-f-mono);margin-top:1.4rem}

/* Сайдбар */
.sidebar{min-width:0}
.sidebar .widget{background:var(--rb-panel);border:1px solid var(--rb-line);color:var(--rb-cream);padding:1.5rem 1.4rem;margin-bottom:1.8rem}
.sidebar .widget-title{font-family:var(--rb-f-head);font-weight:500;text-transform:uppercase;letter-spacing:.05em;font-size:1.25rem;color:var(--rb-cream);margin:0 0 1rem}
.sidebar .widget-title span{padding-bottom:.18em;background:var(--rb-brush) no-repeat 0 100%/100% .28em}
.sidebar .widget ul{list-style:none;margin:0;padding:0}
.sidebar .widget li{padding:.55rem 0;border-bottom:1px dashed var(--rb-line);font-family:var(--rb-f-mono);font-size:.92rem;line-height:1.4}
.sidebar .widget li:last-child{border-bottom:0}
.sidebar .widget a{color:var(--rb-cream);text-decoration:none}
.sidebar .widget a:hover{color:var(--rb-lime)}
.sidebar .widget .post-date,.sidebar .widget .rss-date{display:block;color:var(--rb-muted);font-size:.8rem}
.sidebar .widget p,.sidebar .widget .textwidget{color:var(--rb-cream)}
.sidebar .widget select{width:100%;padding:.5rem;background:var(--rb-bg);color:var(--rb-cream);border:1px solid var(--rb-line)}

/* Пагинация */
.rb-pager{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:3rem;font-family:var(--rb-f-mono)}
.rb-pager .page-numbers{display:inline-flex;align-items:center;justify-content:center;min-width:2.6rem;height:2.6rem;padding:0 .8rem;border:1px solid var(--rb-line);background:var(--rb-panel);color:var(--rb-cream);text-decoration:none;font-size:.95rem;transition:background-color .15s,color .15s,transform .15s}
.rb-pager a.page-numbers:hover{background:var(--rb-cream);color:var(--rb-bg);transform:translateY(-2px)}
.rb-pager .page-numbers.current{background:var(--rb-lime);border-color:var(--rb-lime);color:var(--rb-bg);font-weight:700}
.rb-pager .page-numbers.dots{border:0;background:none;min-width:auto}

/* Поиск */
.rb-search{display:flex;flex-wrap:wrap;gap:.6rem;margin:1.2rem 0}
.rb-search__field{flex:1 1 220px;min-width:0;padding:.7rem .9rem;font:1rem var(--rb-f-mono);background:#fff;color:var(--rb-text);border:1px solid var(--rb-ink);border-radius:0}
.sidebar .rb-search__field{background:var(--rb-bg);color:var(--rb-cream);border-color:var(--rb-line)}

/* 404 */
.rb-404__code{font-family:var(--rb-f-head);font-weight:700;color:var(--rb-rust);font-size:clamp(4rem,12vw,8rem);line-height:.9;margin:0 0 .4rem}

/* Комментарии */
.rb-comments__title,.comment-reply-title{font-family:var(--rb-f-head);font-weight:500;text-transform:uppercase;letter-spacing:.04em;color:var(--rb-ink);font-size:1.5rem;margin-bottom:1.2rem}
.comment-reply-title small{font-family:var(--rb-f-mono);text-transform:none;font-size:.8rem;margin-left:.6rem}
.rb-comments__list,.rb-comments__list .children{list-style:none;margin:0;padding:0}
.rb-comments__list .children{padding-left:1.6rem;border-left:2px solid var(--rb-rule);margin-left:.4rem}
.rb-comment__body{padding:1rem 0;border-bottom:1px dashed var(--rb-rule)}
.rb-comment__head{display:flex;align-items:center;flex-wrap:wrap;gap:.4rem .8rem;margin-bottom:.5rem}
.rb-comment__head img{width:40px;height:40px;border:1px solid var(--rb-ink)}
.rb-comment__author{font-weight:700}
.rb-comment__date{font-family:var(--rb-f-mono);font-size:.8rem;color:var(--rb-text-muted)}
.rb-comment__wait{font-family:var(--rb-f-mono);font-size:.85rem;color:var(--rb-rust)}
.rb-comment__reply a{font-family:var(--rb-f-mono);font-size:.85rem}
.comment-respond{margin-top:1.6rem}
.comment-form p{margin-bottom:1rem}
.comment-form label{display:block;font-family:var(--rb-f-mono);font-size:.88rem;margin-bottom:.3rem}
.comment-form input[type="text"],.comment-form input[type="email"],.comment-form input[type="url"],.comment-form textarea{width:100%;padding:.65rem .8rem;font:1rem var(--rb-f-body);background:#fff;color:var(--rb-text);border:1px solid var(--rb-ink);border-radius:0}
.comment-form-cookies-consent{display:flex;gap:.6rem;align-items:flex-start}
.comment-form-cookies-consent label{display:inline;margin:0}
.comment-form .submit{background:var(--rb-lime);color:var(--rb-bg);border:0;font:700 .95rem var(--rb-f-body);padding:.7rem 1.8rem .7rem 1.9rem;cursor:pointer;clip-path:polygon(0 0,100% 0,calc(100% - 10px) 50%,100% 100%,0 100%,12px 50%)}
.comment-form .submit:hover{background:var(--rb-lime-hover)}
.comment-notes,.logged-in-as{font-size:.9rem;color:var(--rb-text-muted)}
.comment-navigation .nav-links{display:flex;justify-content:space-between;gap:1rem;font-family:var(--rb-f-mono);font-size:.88rem;margin-top:1rem}

/* ---------- Подвал ---------- */
.rb-footer{background:var(--rb-head);color:var(--rb-muted);padding:3.4rem 0 1.8rem;margin-top:0}
.rb-footer__cols{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:2rem 0}
.rb-footer__col{padding:0 2.4rem;border-left:1px solid var(--rb-grid);min-width:0}
.rb-footer__col:first-child{padding-left:0;border-left:0}
.rb-footer .widget{margin-bottom:1rem}
.rb-footer .widget-title{font-family:var(--rb-f-head);font-weight:500;text-transform:uppercase;letter-spacing:.06em;font-size:1.3rem;color:var(--rb-cream);margin:0 0 .7rem}
.rb-footer .widget,.rb-footer .widget p,.rb-footer .textwidget{color:var(--rb-muted);font-size:.95rem}
.rb-footer .widget ul{list-style:none;margin:0;padding:0}
.rb-footer .widget li{margin-bottom:.45rem}
.rb-footer .widget a{color:var(--rb-cream);font-size:.95rem;text-decoration-color:var(--rb-rust)}
.rb-footer .widget a:hover{color:var(--rb-lime);text-decoration-color:var(--rb-lime)}
.rb-footer__copy{margin:2.6rem 0 0;padding-top:1.2rem;border-top:1px solid var(--rb-grid);font-size:.85rem;color:var(--rb-muted)}

/* ---------- Cookie-баннер ---------- */
.cookie-banner[hidden]{display:none!important}
.cookie-banner{
  position:fixed;left:1rem;right:1rem;bottom:1rem;z-index:50;
  display:flex;align-items:center;justify-content:space-between;gap:1rem 1.6rem;flex-wrap:wrap;
  max-width:920px;margin-left:auto;margin-right:auto;
  background:var(--rb-head);color:var(--rb-cream);
  border:1px solid var(--rb-line);border-top:3px solid var(--rb-lime);
  padding:1.1rem 1.4rem;box-shadow:0 8px 24px rgba(0,0,0,.4);
}
.cookie-banner__text{margin:0;font-size:.92rem;line-height:1.45;flex:1 1 320px;min-width:0;color:var(--rb-cream)}
.cookie-banner__btn{flex:0 0 auto}

/* ---------- WordPress ---------- */
.wp-caption{max-width:100%}
.wp-caption-text{font-family:var(--rb-f-mono);font-size:.82rem}
.sticky{}
.bypostauthor{}
.gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:.8rem}

/* ---------- Адаптив ---------- */
@media (max-width:960px){
  .rb-burger{display:inline-flex}
  .rb-nav{display:none;flex-basis:100%}
  .rb-nav.is-open{display:block}
  .rb-nav__list{flex-direction:column;gap:0;border-top:1px solid var(--rb-line);margin-top:.6rem}
  .rb-nav__list li{border-bottom:1px solid var(--rb-line)}
  .rb-nav__list a{display:block;padding:.75rem 0;border-bottom:0}
  .rb-brand{flex:1 1 0}
  .rb-sec__inner{width:92%}
  .rb-shelf__grid,.rb-parts__grid,.rb-register__grid,.rb-rules__grid{grid-template-columns:minmax(0,1fr)}
  .rb-picks{padding-left:0;border-left:0;border-top:1px solid var(--rb-line);margin-top:2rem}
  .rb-register__aside{order:-1}
  .rb-cards--three,.layout-single .rb-cards{grid-template-columns:repeat(2,minmax(0,1fr))}
  .layout-with-sidebar{grid-template-columns:minmax(0,1fr)}
  .sidebar{margin-top:3rem}
  .layout-single .content-area{width:100%}
  .rb-footer__cols{grid-template-columns:minmax(0,1fr)}
  .rb-footer__col{padding:0;border-left:0}
  .rb-footer__col+.rb-footer__col{border-top:1px solid var(--rb-grid);padding-top:1.6rem}
}
@media (max-width:600px){
  body{font-size:16px}
  .rb-header{padding:1.1rem 0 1rem}
  .rb-brand{gap:.8rem}
  .rb-brand__mark,.rb-brand__mark svg,.rb-brand__mark img{width:52px;height:52px}
  .rb-brand__name{font-size:1rem}
  .rb-brand__desc{display:none}
  .rb-sec{padding:3.2rem 0}
  .rb-sechead{gap:.7rem;margin-bottom:1.5rem}
  .rb-map__label{font-size:.62rem;padding:.08em .28em}
  .rb-cards,.rb-cards--three,.layout-single .rb-cards{grid-template-columns:minmax(0,1fr)}
  .rb-rules__list{grid-template-columns:minmax(0,1fr);gap:1rem}
  .rb-rules__box{padding:1.1rem 1.2rem}
  .rb-register__sheet{padding:2rem 1.1rem 1.2rem}
  .rb-sheet{padding:2.2rem 1.3rem 1.6rem}
  .rb-squares{font-size:1.05rem}
  .rb-picks__num{font-size:2.3rem}
  .cookie-banner{left:.6rem;right:.6rem;bottom:.6rem;padding:1rem 1.1rem}
  .rb-entry__content .alignleft,.rb-entry__content .alignright{float:none;margin:1em 0}
}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *{transition:none!important}
}
.rb-map__label--end{transform:translate(-78%,-50%)}
.rb-sechead__title,.rb-entry__title,.rb-parts__title,.rb-card__title{hyphens:manual}
.rb-map img{-webkit-mask-image:radial-gradient(ellipse 72% 78% at 50% 50%,#000 62%,transparent 100%);mask-image:radial-gradient(ellipse 72% 78% at 50% 50%,#000 62%,transparent 100%)}
.rb-rules__grid{grid-template-columns:minmax(0,1.15fr) minmax(0,2fr)}
.rb-rules__head .rb-sechead__title,.rb-register__aside .rb-sechead__title{font-size:clamp(2rem,3.4vw,3.1rem)}
@media (max-width:960px){.rb-rules__grid{grid-template-columns:minmax(0,1fr)}}
