/* === ReadOnline — Chitat.online === */
html,body,div,span,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,address,big,cite,
code,del,dfn,em,img,ins,kbd,q,s,small,strike,strong,sub,sup,tt,var,b,u,i,center,
dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,
th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,menu,
nav,output,section,summary,time,mark,audio,video{
  margin:0;padding:0;border:0;font-size:100%;font:inherit;
  vertical-align:baseline;box-sizing:border-box;}
textarea,select,input{box-sizing:border-box;}
article,aside,details,figcaption,figure,footer,header,menu,nav,section{display:block;}
ol,ul{list-style:none;}
blockquote,q{quotes:none;}
table{border-collapse:collapse;border-spacing:0;}

/* VARIABLES */
:root{
  --bg:#f7f4ef;
  --card-bg:#fff;
  --navy:#1c3a4a;
  --navy2:#14293a;
  --gold:#c27d1e;
  --gold2:#a8660f;
  --teal:#1d6e6e;
  --text:#2a2a2a;
  --muted:#6b7280;
  --border:#e2ddd6;
  --radius:10px;
  --shadow:0 2px 12px rgba(28,58,74,.08);
}

html{-webkit-text-size-adjust:none;}

body{
  font-family:Arial,'Helvetica Neue',Helvetica,sans-serif;
  font-size:16px;
  color:var(--text);
  background:var(--bg);
  line-height:1.65;
}

*{outline:none;}

textarea,select,button,input{
  width:100%;
  background:#fff;
  font-family:inherit;
  font-size:15px;
  border:1.5px solid var(--border);
  border-radius:8px;
  margin:0;
  padding:10px 14px;
  transition:all .2s;
}
textarea:focus,select:focus,input:focus{
  border-color:var(--teal);
  box-shadow:0 0 0 3px rgba(29,110,110,.12);
}

/* TYPOGRAPHY */
h1,h2,h3,h4,h5,h6{
  font-family:Georgia,'Times New Roman',serif;
  font-weight:700;
  line-height:1.25;
  color:var(--navy);
}
h1{font-size:1.85rem;margin-bottom:16px;}
h2{font-size:1.4rem;margin-top:2rem;padding-bottom:12px;color:var(--navy);}
h3{font-size:1.15rem;margin:1.2rem 0 .6rem;}
p{margin:.75rem 0;}
a{color:var(--teal);text-decoration:none;}
a:hover{color:var(--gold);text-decoration:underline;}

/* BUTTONS */
.button,.btn,.read a,.read-btn{
  display:inline-block;
  background:var(--navy);
  color:#fff !important;
  border-radius:8px;
  padding:10px 22px;
  font-size:14px;
  font-weight:600;
  text-decoration:none !important;
  cursor:pointer;
  border:none;
  transition:background .2s;
  width:auto;
}
.button:hover,.btn:hover,.read a:hover,.read-btn:hover{
  background:var(--gold);color:#fff !important;text-decoration:none !important;
}

/* LAYOUT */
.wrap{max-width:1260px;margin:0 auto;padding:0 20px;}
.content{display:flex;gap:0;}
.m_full{flex:1;min-width:0;padding:28px 0;}

/* HEADER */
#site-header{
  background:var(--navy2);
  border-bottom:3px solid var(--gold);
  padding:0;
}
.header-inner{
  display:flex;
  align-items:center;
  height:64px;
  gap:20px;
}
#site-logo{
  display:flex;
  align-items:center;
  gap:10px;
  text-decoration:none !important;
  flex-shrink:0;
}
#site-logo .logo-text{
  font-family:Georgia,'Times New Roman',serif;
  font-size:1.35rem;
  font-weight:700;
  color:#fff;
  letter-spacing:.3px;
}
#site-logo .logo-text span{color:var(--gold);}

#site-nav ul{
  display:flex;
  gap:4px;
  list-style:none;
}
#site-nav ul li a{
  color:rgba(255,255,255,.82);
  font-size:14px;
  padding:6px 12px;
  border-radius:6px;
  display:block;
  transition:all .18s;
  text-decoration:none;
}
#site-nav ul li a:hover{background:rgba(255,255,255,.12);color:#fff;}

.header-search{
  margin-left:auto;
  flex-shrink:0;
}
.header-search form{
  display:flex;
  background:rgba(255,255,255,.12);
  border-radius:8px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.18);
}
.header-search input{
  background:transparent;
  border:none;
  color:#fff;
  padding:8px 14px;
  font-size:14px;
  width:220px;
  border-radius:0;
}
.header-search input::placeholder{color:rgba(255,255,255,.55);}
.header-search button{
  background:var(--gold);
  border:none;
  color:#fff;
  padding:8px 16px;
  cursor:pointer;
  font-size:14px;
  width:auto;
  border-radius:0;
}
.header-search button:hover{background:var(--gold2);}

/* BREADCRUMB */
.speedbar,.breadcrumb{
  font-size:13px;
  color:var(--muted);
  margin-bottom:12px;
  padding:8px 0;
}
.speedbar a{color:var(--teal);}
.speedbar a:hover{color:var(--gold);}
.speedbar span{color:var(--muted);}

/* BOOK GRID */
.books{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(170px,1fr));
  gap:20px;
  margin:20px 0;
}
.short_book{
  background:var(--card-bg);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  overflow:hidden;
  display:flex;
  flex-direction:column;
  transition:transform .18s,box-shadow .18s;
}
.short_book:hover{
  transform:translateY(-4px);
  box-shadow:0 8px 24px rgba(28,58,74,.14);
}
.short_book .cover{
  aspect-ratio:2/3;
  overflow:hidden;
  background:#e8e4de;
}
.short_book .cover img{
  width:100%;height:100%;
  object-fit:cover;
  display:block;
}
.short_book .info{
  padding:10px 12px;
  flex:1;
  display:flex;
  flex-direction:column;
  gap:5px;
}
.short_book .title a{
  font-family:Georgia,'Times New Roman',serif;
  font-size:14px;
  font-weight:600;
  color:var(--navy);
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  line-height:1.35;
}
.short_book .title a:hover{color:var(--gold);text-decoration:none;}
.short_book .author{font-size:12px;color:var(--muted);}
.short_book .author a{color:var(--teal);font-size:12px;}
.short_book .genres{font-size:11px;color:var(--muted);}
.short_book .genres a{color:var(--muted);}
.short_book .discussion{
  display:flex;gap:8px;
  font-size:11px;
  color:var(--muted);
  margin-top:auto;
  padding-top:6px;
  border-top:1px solid var(--border);
}

/* NAV / PAGINATION */
.navigation,.pages{
  display:flex;gap:6px;
  flex-wrap:wrap;
  margin:24px 0;
  align-items:center;
}
.navigation a,.pages a,
.navigation span,.pages span{
  display:inline-flex;align-items:center;justify-content:center;
  min-width:36px;height:36px;
  padding:0 10px;
  border-radius:8px;
  font-size:14px;
  font-weight:500;
  background:var(--card-bg);
  border:1.5px solid var(--border);
  color:var(--navy);
  text-decoration:none;
  transition:all .18s;
}
.navigation a:hover,.pages a:hover{background:var(--navy);border-color:var(--navy);color:#fff;}
.navigation span.cur,.pages span.cur,
.navigation .current,.pages .current{
  background:var(--navy);border-color:var(--navy);color:#fff;
}

/* FULL STORY */
.full{display:flex;gap:28px;margin-bottom:28px;flex-wrap:wrap;}
.full .cover{flex-shrink:0;width:200px;}
.full .cover img{width:100%;border-radius:8px;box-shadow:0 4px 16px rgba(28,58,74,.18);}
.full .info{flex:1;min-width:200px;}
.full .item{
  display:flex;gap:12px;
  padding:8px 0;
  border-bottom:1px solid var(--border);
  font-size:14px;
}
.full .item p:first-child{color:var(--muted);width:120px;flex-shrink:0;}
.full .item p:last-child{color:var(--text);font-weight:500;}
.full .item a{color:var(--teal);}
.full .discussion{
  display:flex;gap:16px;
  font-size:13px;color:var(--muted);
  margin-bottom:14px;
  flex-wrap:wrap;
}
.full .read{margin-top:18px;}

.text{
  background:var(--card-bg);
  border-radius:var(--radius);
  padding:24px 28px;
  box-shadow:var(--shadow);
  margin:16px 0;
}
.text p{line-height:1.8;margin:.6rem 0;}

/* READER */
.reader{
  background:#fff;
  border-radius:12px;
  box-shadow:var(--shadow);
  padding:28px;
  margin:20px 0;
  font-family:Georgia,serif;
  font-size:17px;
  line-height:1.9;
  color:#1a1a1a;
}
.reader .panel{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding-bottom:14px;
  margin-bottom:20px;
  border-bottom:2px solid var(--border);
  flex-wrap:wrap;
  gap:10px;
}
.reader .functions{display:flex;gap:8px;}
.reader .item.fullscreen,
.reader .item.lamp,
.reader .item.font{
  width:34px;height:34px;
  border-radius:6px;
  background:var(--bg);
  border:1.5px solid var(--border);
  cursor:pointer;
  display:flex;align-items:center;justify-content:center;
  font-size:16px;
  transition:all .18s;
}
.reader .item.fullscreen:hover,
.reader .item.lamp:hover,
.reader .item.font:hover{background:var(--navy);border-color:var(--navy);color:#fff;}
.reader .win{
  background:#fff;
  border:1.5px solid var(--border);
  border-radius:10px;
  padding:14px 18px;
  display:none;
  gap:12px;
  flex-wrap:wrap;
  align-items:center;
}
.reader .win .item{font-size:13px;color:var(--muted);}
.reader .win .func{display:flex;gap:6px;align-items:center;}
.reader .win select{width:auto;padding:5px 10px;font-size:13px;}
.reader .win .button{padding:5px 12px;font-size:13px;min-width:30px;}
.reader .body{color:#1a1a1a;}
.reader .body p{margin:.9em 0;}

/* COMMENTS */
.comments_wr{margin:28px 0;}
.comments_item{
  background:var(--card-bg);
  border-radius:10px;
  padding:16px 20px;
  margin:12px 0;
  box-shadow:var(--shadow);
}
.comment_text{font-size:15px;line-height:1.7;margin:.5rem 0;}
.comments_info{font-size:13px;color:var(--muted);display:flex;gap:16px;flex-wrap:wrap;}
.comments_info a{color:var(--teal);}
.comments_lists .short_comment{
  padding:12px 0;
  border-bottom:1px solid var(--border);
  font-size:14px;
}

/* FORMS */
.addcomments_form textarea{min-height:120px;resize:vertical;}
.addcomments_form .submit-row{margin-top:14px;}
.addcomments_form .row{margin:10px 0;}
.addcomments_form label{font-size:14px;color:var(--muted);display:block;margin-bottom:5px;}

/* INFO BOX (navigation / count) */
.info{font-size:13px;color:var(--muted);margin:8px 0 16px;}

/* HEADING INTRO */
.m_text{
  background:linear-gradient(135deg,var(--navy2) 0%,var(--navy) 100%);
  border-radius:12px;
  padding:28px 32px;
  color:#fff;
  margin-bottom:28px;
}
.m_text h1{color:#fff;font-size:1.65rem;margin-bottom:10px;}
.m_text p,.m_text li{color:rgba(255,255,255,.85);font-size:15px;}
.m_text ul{margin:.6rem 0 .6rem 1.4rem;list-style:disc;}
.m_text strong{color:#fff;}
.show_txt{
  color:rgba(255,255,255,.6);
  font-size:13px;
  cursor:pointer;
  margin-top:10px;
  text-decoration:underline;
}
.show_txt:hover{color:#fff;}
.hide_txt{margin-top:14px;}

/* CATEGORY MENU */
.cat_links,.category-list{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0;}
.cat_links a,.category-list a{
  background:var(--card-bg);
  border:1.5px solid var(--border);
  border-radius:20px;
  padding:5px 14px;
  font-size:13px;
  color:var(--navy);
  text-decoration:none;
  transition:all .18s;
}
.cat_links a:hover,.category-list a:hover{
  background:var(--navy);border-color:var(--navy);color:#fff;
}

/* AUTHOR BLOCK */
.authors-grid{display:flex;flex-wrap:wrap;gap:10px;margin:16px 0;}
.author-item{
  background:var(--card-bg);
  border-radius:8px;
  padding:8px 16px;
  font-size:14px;
  border:1px solid var(--border);
}
.author-item a{color:var(--navy);text-decoration:none;}

/* TAGS CLOUD */
.tagscloud{line-height:2.2;}
.tagscloud a{
  display:inline-block;
  background:var(--card-bg);
  border:1px solid var(--border);
  border-radius:5px;
  padding:3px 10px;
  margin:3px;
  font-size:13px;
  color:var(--muted);
  text-decoration:none;
}
.tagscloud a:hover{background:var(--navy);color:#fff;border-color:var(--navy);}

/* FOOTER */
#site-footer{
  background:var(--navy2);
  color:rgba(255,255,255,.7);
  padding:36px 0 20px;
  margin-top:48px;
  font-size:14px;
}
.footer-inner{
  display:flex;
  flex-wrap:wrap;
  gap:32px;
  margin-bottom:28px;
}
.footer-col h4{
  font-family:Georgia,'Times New Roman',serif;
  color:#fff;
  font-size:15px;
  margin-bottom:12px;
}
.footer-col a{
  display:block;
  color:rgba(255,255,255,.62);
  text-decoration:none;
  font-size:13px;
  margin:5px 0;
}
.footer-col a:hover{color:var(--gold);text-decoration:none;}
.footer-bottom{
  border-top:1px solid rgba(255,255,255,.12);
  padding-top:16px;
  color:rgba(255,255,255,.4);
  font-size:12px;
  display:flex;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:10px;
}
.footer-logo{
  font-family:Georgia,'Times New Roman',serif;
  font-size:1.2rem;
  color:#fff;
  text-decoration:none !important;
  display:block;
  margin-bottom:8px;
}
.footer-logo span{color:var(--gold);}

/* SEARCH RESULTS */
.searchresult .short_book{flex-direction:row;height:auto;}
.searchresult .short_book .cover{width:80px;flex-shrink:0;aspect-ratio:auto;}

/* RATING */
.stars{color:var(--gold);letter-spacing:2px;}

/* LOGIN MODAL simple */
.login-block{
  background:var(--card-bg);
  border-radius:12px;
  padding:24px;
  max-width:400px;
  box-shadow:0 4px 20px rgba(28,58,74,.15);
}

/* MISC */
.edit a{color:var(--muted);font-size:12px;}
.clear{clear:both;}
img{max-width:100%;}


/* ── РЕЙТИНГ ───────────────────────────────────── */
.rating-area { overflow: hidden; width: 300px; }
.rating-area:not(:checked) > input { display: none; }
.rating-area:not(:checked) > label {
  float: right; width: 30px; height: 24px;
  padding: 0; cursor: pointer;
  display: block; content: "";
  background: url("../images/rating.svg") no-repeat 0 0;
  background-size: auto 100%;
}
.rating-area > input:checked ~ label { background-image: url("../images/rating_hover.svg"); }
.rating-area:not(:checked) > label:hover,
.rating-area:not(:checked) > label:hover ~ label { background-image: url("../images/rating_hover.svg"); }
.rating-area > input:checked + label:hover,
.rating-area > input:checked + label:hover ~ label,
.rating-area > input:checked ~ label:hover,
.rating-area > input:checked ~ label:hover ~ label,
.rating-area > label:hover ~ input:checked ~ label { background-image: url("../images/rating_hover.svg"); }
.rating-area > label:active { position: relative; }


/* Book facts */
.book-passport {
  margin: 18px 0 24px;
  padding: 16px 18px;
  background: #f8fbfd;
  border: 1px solid #e2ecf5;
  border-left: 3px solid #1a73e8;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.book-passport__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  font-size: 14px;
  line-height: 1.5;
}
.book-passport__facts span { min-width: 0; }
.book-passport__facts b { color: #1a3a5c; }
.book-passport__facts a { color: #1a73e8; text-decoration: none; }
.book-passport__facts a:hover { text-decoration: underline; }
.book-passport__note {
  margin: 0;
  color: #555;
  line-height: 1.55;
  font-size: 14px;
}
.book-passport__badges { display: flex; flex-wrap: wrap; gap: 8px; }
.book-passport__badges span {
  background: #fff;
  border: 1px solid #d7e6f2;
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 12px;
  color: #4b5b68;
}
.book-passport__badges span:first-child { border-color: #1a73e8; color: #1a3a5c; font-weight: 600; }

/* RESPONSIVE */
@media(max-width:900px){
  .full{gap:16px;}
  .full .cover{width:140px;}
  .books{grid-template-columns:repeat(auto-fill,minmax(140px,1fr));}
}
@media(max-width:600px){
  .header-inner{flex-wrap:wrap;height:auto;padding:12px 0;gap:10px;}
  .header-search input{width:140px;}
  #site-nav ul{flex-wrap:wrap;gap:4px;}
  .books{grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:12px;}
  .full{flex-direction:column;}
  .full .cover{width:100%;max-width:180px;}
  h1{font-size:1.4rem;}
  .m_text{padding:20px;}
  .reader{padding:16px;}
}

/* ======= PODBORKI LIST PAGE ======= */
.podborki-page { padding: 0 0 40px; }
.podborki-hero {
  background: #f0f6fa;
  border-radius: 8px;
  padding: 20px 24px;
  margin-bottom: 32px;
}
.podborki-hero__text { margin: 0 0 16px; color: #555; line-height: 1.6; }
.podborki-hero__meta { display: flex; gap: 24px; flex-wrap: wrap; }
.podborki-hero__item { display: flex; flex-direction: column; gap: 2px; }
.podborki-hero__item span { font-size: 12px; color: #888; }
.podborki-hero__item strong { font-size: 14px; color: #1a3a5c; }

.podborki-group { margin-bottom: 36px; }
.podborki-group__title {
  font-size: 18px;
  font-weight: 700;
  color: #1a3a5c;
  margin: 0 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #e2ecf5;
}
.podborki-group__cards {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.podborki-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: #f9f9f9;
  border: 1px solid #e2e2e2;
  border-radius: 8px;
  padding: 12px 16px;
  text-decoration: none;
  color: inherit;
  transition: border-color .2s, box-shadow .2s;
  flex: 1 1 260px;
  max-width: 340px;
  min-width: 200px;
}
.podborki-card:hover {
  border-color: #1a73e8;
  box-shadow: 0 2px 8px rgba(26,115,232,.12);
  text-decoration: none;
}
.podborki-card__title {
  font-weight: 600;
  font-size: 14px;
  color: #1a3a5c;
  line-height: 1.4;
}
.podborki-card__desc {
  font-size: 12px;
  color: #666;
  line-height: 1.5;
}

.podborki-faq { margin-top: 40px; padding-top: 24px; border-top: 1px solid #e2e2e2; }
.podborki-faq h2 { font-size: 18px; color: #1a3a5c; margin-bottom: 16px; }
.podborki-faq__item { margin-bottom: 12px; }
.podborki-faq__item strong { display: block; font-size: 14px; color: #333; margin-bottom: 4px; }
.podborki-faq__item p { margin: 0; font-size: 13px; color: #666; }

@media (max-width: 600px) {
  .podborki-card { flex: 1 1 100%; max-width: 100%; }
  .podborki-hero__meta { gap: 12px; }
}
/* ======= END PODBORKI ======= */

/* ======= BOOK PAGE PODBORKI RELATED ======= */
.book-page-podborki {
  margin: 28px 0 26px;
  padding-top: 22px;
  border-top: 1px solid #e2e2e2;
}
.book-page-podborki .podborki-related__title {
  margin: 0 0 14px;
  font-size: 18px;
  line-height: 1.3;
  font-weight: 700;
  color: #1a3a5c;
}
.book-page-podborki .podborki-related__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  align-items: stretch;
}
.book-page-podborki .podborki-related-item {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 104px;
  box-sizing: border-box;
  overflow: hidden;
  padding: 12px 14px;
  border: 1px solid #e2ecf5;
  border-radius: 8px;
  background: #f8fbfd;
  color: inherit;
  text-decoration: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.book-page-podborki .podborki-related-item:hover {
  border-color: #1a73e8;
  background: #fff;
  box-shadow: 0 2px 8px rgba(26,115,232,.12);
  text-decoration: none;
}
.book-page-podborki .podborki-related-item__title {
  font-size: 14px;
  line-height: 1.35;
  font-weight: 700;
  color: #1a3a5c;
}
.book-page-podborki .podborki-related-item__desc {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.45;
  color: #666;
}
@media (max-width: 600px) {
  .book-page-podborki .podborki-related__list {
    grid-template-columns: 1fr;
  }
  .book-page-podborki .podborki-related-item {
    min-height: auto;
  }
}
/* ======= END BOOK PAGE PODBORKI RELATED ======= */

/* ======= BOOK CATEGORY CHIPS ======= */
.book-category-chips {
  margin: 28px 0 34px;
  padding-top: 22px;
  border-top: 1px solid #e2e2e2;
}
.book-category-chips__title {
  margin: 0 0 12px;
  font-size: 18px;
  line-height: 1.3;
  font-weight: 700;
  color: #1a3a5c;
}
.book-category-chips__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0;
}
.book-category-chips__list a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  box-sizing: border-box;
  padding: 7px 11px;
  border: 1px solid #e2ecf5;
  border-radius: 8px;
  background: #f8fbfd;
  color: #1a3a5c;
  font-size: 13px;
  line-height: 1.25;
  text-decoration: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.book-category-chips__list a:hover {
  border-color: #1a73e8;
  background: #fff;
  box-shadow: 0 2px 8px rgba(26,115,232,.12);
  text-decoration: none;
}
@media (max-width: 600px) {
  .book-category-chips__list {
    gap: 6px;
  }
  .book-category-chips__list a {
    min-height: 30px;
    padding: 6px 9px;
    font-size: 12px;
  }
}
/* ======= END BOOK CATEGORY CHIPS ======= */


/* ======= BOOK CONTEXT ======= */
.book-context {
  margin: 26px 0 30px;
  padding-top: 22px;
  border-top: 1px solid #e2e2e2;
}
.book-context h2 {
  margin: 0 0 14px;
  font-size: 18px;
  line-height: 1.3;
  font-weight: 700;
  color: #1a3a5c;
}
.book-context__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.book-context__card {
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid #e2ecf5;
  border-radius: 8px;
  background: #f8fbfd;
}
.book-context__card h3 {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.35;
  color: #1a3a5c;
}
.book-context__card p,
.book-context__card li {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: #555;
}
.book-context__card ul {
  margin: 0;
  padding-left: 18px;
}
.book-context__links {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.book-context__links a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  box-sizing: border-box;
  padding: 6px 10px;
  border: 1px solid #d7e6f2;
  border-radius: 8px;
  background: #fff;
  color: #1a73e8;
  line-height: 1.25;
  text-decoration: none;
}
.book-context__links a:hover {
  border-color: #1a73e8;
  text-decoration: none;
}
@media (max-width: 600px) {
  .book-context__grid { grid-template-columns: 1fr; }
}
/* ======= END BOOK CONTEXT ======= */


/* ======= CATALOG SEO BLOCKS ======= */
.catalog-seo,
.author-best-books,
.author-genre-map,
.author-similar-map,
.author-related-books,
.author-series-map {
  margin: 24px 0 28px;
  padding-top: 20px;
  border-top: 1px solid #e2e2e2;
}
.catalog-seo__intro h2,
.author-best-books h2,
.author-genre-map h2,
.author-similar-map h2,
.author-related-books h2,
.author-series-map h2 {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.3;
  color: #1a3a5c;
}
.catalog-seo__intro p,
.author-best-books p,
.author-genre-map p,
.author-related-books p {
  margin: 0 0 14px;
  color: #555;
  font-size: 14px;
  line-height: 1.6;
}
.catalog-seo__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  margin: 14px 0;
}
.catalog-seo__panel {
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid #e2ecf5;
  border-radius: 8px;
  background: #f8fbfd;
}
.catalog-seo__panel h3 {
  margin: 0 0 10px;
  color: #1a3a5c;
  font-size: 14px;
}
.seo-book-list {
  margin: 0;
  padding-left: 22px;
}
.seo-book-list li {
  margin: 0 0 8px;
  color: #4b5b68;
  font-size: 13px;
  line-height: 1.45;
}
.seo-book-list a {
  color: #1a73e8;
  text-decoration: none;
}
.seo-book-list a:hover { text-decoration: underline; }
.seo-book-list span {
  display: block;
  color: #777;
  font-size: 12px;
}
.seo-link-bands {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.seo-link-bands p {
  margin: 0;
  color: #555;
  font-size: 13px;
  line-height: 1.55;
}
.seo-link-bands a,
.author-genre-map a,
.author-similar-map a,
.author-series-map a {
  color: #1a73e8;
  text-decoration: none;
}
.seo-link-bands a:hover,
.author-genre-map a:hover,
.author-similar-map a:hover,
.author-series-map a:hover { text-decoration: underline; }
.author-best-books__list,
.author-related-books__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}
.author-best-book,
.author-related-book {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 6px 10px;
  padding: 12px;
  border: 1px solid #e2ecf5;
  border-radius: 8px;
  background: #f8fbfd;
  text-decoration: none;
}
.author-best-book span {
  grid-row: span 2;
  color: #8a98a5;
  font-weight: 700;
}
.author-best-book strong,
.author-related-book strong {
  color: #1a3a5c;
  font-size: 14px;
  line-height: 1.35;
}
.author-best-book em,
.author-related-book em,
.author-related-book span {
  color: #666;
  font-size: 12px;
  font-style: normal;
}
.author-similar-map__links,
.author-series-map__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.author-similar-map__links a,
.author-series-map__links a {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border: 1px solid #d7e6f2;
  border-radius: 8px;
  background: #fff;
}
@media (max-width: 600px) {
  .catalog-seo__grid,
  .author-best-books__list,
  .author-related-books__list { grid-template-columns: 1fr; }
}
/* ======= END CATALOG SEO BLOCKS ======= */

/* ======= SEO NEXT: BOOK HELPERS ======= */
.book-context__card--wide { grid-column: 1 / -1; }
.book-context__topics { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 8px; }
.book-context__topics a,
.book-context__topics span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 9px;
  border: 1px solid #d7e6f2;
  border-radius: 8px;
  background: #fff;
  color: #1a3a5c;
  font-size: 12px;
  line-height: 1.25;
  text-decoration: none;
}
.book-context__summary { color: #4d5a66; }
.book-discovery { margin: 26px 0 30px; padding-top: 22px; border-top: 1px solid #e2e2e2; }
.book-discovery__section + .book-discovery__section { margin-top: 22px; }
.book-discovery__section h2 { margin: 0 0 12px; font-size: 18px; line-height: 1.3; color: #1a3a5c; }
@media (max-width: 600px) {
  .book-context__card--wide { grid-column: auto; }
}
/* ======= END SEO NEXT: BOOK HELPERS ======= */

/* ======= SEO NEXT: PODBORKI ROOT ======= */
.podborki-group-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 22px;
}
.podborki-group-nav a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid #d7e6f2;
  border-radius: 8px;
  background: #fff;
  color: #1a73e8;
  font-size: 13px;
  text-decoration: none;
}
.podborki-group-nav span { color: #68798a; font-size: 12px; }
.podborki-group__more { margin: 10px 0 0; color: #6a7885; font-size: 13px; line-height: 1.45; }
@media (max-width: 600px) {
  .podborki-group-nav { gap: 6px; }
  .podborki-group-nav a { width: 100%; justify-content: space-between; }
}
/* ======= END SEO NEXT: PODBORKI ROOT ======= */
