/* ===== Страница «Материалы» ===== */
.help{padding:24px 0 48px}
.help .wrap{max-width:1100px;margin:0 auto;padding:0 16px}
.help h1{font-size:34px;margin:8px 0 20px;text-align:center;color:#3a4652}

/* закладки-табы: переключение подразделов */
.tabs{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;margin:0 0 28px}
.help .tab{font:inherit;font-size:14.5px;font-weight:600;color:#222;background:#fff;
  border:1.5px solid var(--line,#dfe3e8);border-radius:999px;padding:8px 18px;cursor:pointer;
  transition:all .15s}
.help .tab:hover{color:var(--accent,#2b6cb0);border-color:var(--accent,#2b6cb0)}
.help .tab.active{background:var(--accent,#2b6cb0);border-color:var(--accent,#2b6cb0);color:#fff}

.help .sec{margin:0 0 34px}
.help .sec[hidden]{display:none}
.help .sec-head{display:flex;align-items:baseline;gap:12px;
  border-bottom:3px solid var(--accent,#2b6cb0);padding-bottom:8px;margin-bottom:18px}
.help .sec-head h2{margin:0;font-size:24px;color:#222}

/* чтение и ссылки: картинка + список */
.reading{display:flex;gap:28px;align-items:flex-start;flex-wrap:wrap}
.read-fig{flex:1 1 260px;max-width:360px;margin:0}
.read-fig img{width:100%;display:block;border-radius:12px;border:1px solid var(--line,#dfe3e8)}
.read-list,.links-list{margin:0;padding:0;list-style:none;flex:1 1 320px}
.read-list li{padding:12px 0;border-bottom:1px dashed var(--line,#dfe3e8);
  font-size:15px;line-height:1.55;color:#444}
.read-list li:last-child{border-bottom:0}
.read-list strong{color:#222}
.links-list li{padding:9px 0;border-bottom:1px dashed var(--line,#dfe3e8);font-size:15px}
.links-list li:last-child{border-bottom:0}
.read-list a,.links-list a{color:#222;}
.read-list a:hover,.links-list a:hover{color:var(--accent,#2b6cb0)}

/* галереи */
.help .grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));
  gap:16px;padding-bottom:10px}
.gcard{margin:0;background:#e5e9ec;border:1px solid var(--line,#dfe3e8);border-radius:12px;
  overflow:hidden;cursor:pointer;transition:box-shadow .2s,transform .2s}
.gcard:hover{box-shadow:0 8px 22px rgba(30,78,130,.10);transform:translateY(-2px); border-color:var(--accent);}
.gcard img{width:100%;height:170px;object-fit:cover;display:block}
.gcard figcaption{padding:10px 12px;font-size:14px;font-weight:600;color:#222}

/* лайтбокс */
.lb{position:fixed;inset:0;background:rgba(20,26,34,.9);z-index:1000;
  display:flex;flex-direction:column;align-items:center;justify-content:center}
.lb[hidden]{display:none}
.lb img{max-width:92vw;max-height:80vh;border-radius:8px;background:#fff}
.lb-cap{color:#fff;margin-top:12px;font-size:15px}
.lb-btn{position:absolute;width:46px;height:46px;border-radius:50%;border:0;
  background:rgba(255,255,255,.15);color:#fff;font-size:22px;cursor:pointer;transition:background .15s}
.lb-btn:hover{background:var(--accent,#2b6cb0)}
.lb-prev{left:18px;top:50%;transform:translateY(-50%)}
.lb-next{right:18px;top:50%;transform:translateY(-50%)}
.lb-close{top:16px;right:18px}

/* ===== Учебник И.А. Соловейчика ===== */
.sol-bio{display:flex;gap:24px;align-items:flex-start;background:#fff;
  border:1px solid var(--line,#dfe3e8);border-radius:12px;padding:22px 24px;
  box-shadow:0 2px 10px rgba(0,0,0,.06);margin-bottom:26px}
.sol-photo{flex:0 0 150px;margin:0}
.sol-photo img{width:150px;display:block;border-radius:10px}
.sol-name{margin:0 0 10px;font-size:18px;color:#222}
.sol-desc{margin:0;font-size:15px;line-height:1.55;color:#444}
.sol-desc a{color:#222;}
.sol-desc a:hover{color:var(--accent,#2b6cb0)}

.sol-title{font-size:22px;text-align:center;color:#222;margin:6px 0 12px}
.sol-intro{max-width:860px;margin:0 auto 26px;text-align:center;
  font-size:15.5px;line-height:1.6;color:#444}

.sol-books{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:18px}
.book-card{display:flex;gap:16px;background:#fff;border:1px solid var(--line,#dfe3e8);
  border-radius:12px;padding:16px;transition:box-shadow .2s,transform .2s}
.book-card:hover{box-shadow:0 8px 22px rgba(30,78,130,.10);transform:translateY(-2px);
  border-color:var(--accent,#2b6cb0)}
.book-cover{flex:0 0 110px;align-self:flex-start}
.book-cover img{width:110px;display:block;border-radius:8px}
.book-body h4{margin:2px 0 8px;font-size:16.5px;line-height:1.3}
.book-body h4 a{color:#222;}
.book-body h4 a:hover{color:var(--accent,#2b6cb0)}
.book-body p{margin:0;font-size:14px;line-height:1.55;color:#5a646e}
.book-body a{color:#222;text-decoration:none}
.book-body a:hover{color:var(--accent,#2b6cb0)}

.read-list a.more,.sol-desc a.more,.book-body a.more{text-decoration:underline}

@media (max-width:520px){
  .help h1{font-size:26px}
  .help .sec-head h2{font-size:21px}
  .lb-prev{left:6px}.lb-next{right:6px}
  .sol-bio{flex-direction:column}
  .sol-books{grid-template-columns:1fr}
}
