/* ==========================================================
   resources.css — /resources/index.html
   ========================================================== */

/* ─── PAGE HEADER (общий с blog.css, дублировать не нужно если уже есть) ─── */
.page-header        { padding: 72px 0 56px; border-bottom: 1px solid var(--border); position: relative; z-index: 1; }
.page-header-inner  { max-width: 720px; }
.page-header h1     { font-family: var(--font-h); font-size: clamp(2.4rem, 4vw, 3.6rem); font-weight: 700; line-height: 1.1; color: var(--text); margin-bottom: 12px; }
.page-header p      { font-size: 0.95rem; color: var(--muted); line-height: 1.85; max-width: 560px; }

/* ─── ЯКОРНАЯ НАВИГАЦИЯ ─── */
.anchor-nav-wrap { border-bottom: 1px solid var(--border); position: sticky; top: 64px; z-index: 100; background: rgba(8,8,8,0.92); backdrop-filter: blur(12px); }
.anchor-nav      { display: flex; gap: 0; overflow-x: auto; scrollbar-width: none; }
.anchor-nav::-webkit-scrollbar { display: none; }
.anchor-link     { font-size: 0.72rem; font-weight: 600; color: var(--muted); text-decoration: none; padding: 14px 20px; white-space: nowrap; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s; }
.anchor-link:hover { color: var(--gold); border-bottom-color: var(--gold-dark); }

/* ─── ОБЩИЕ СТИЛИ СЕКЦИЙ ─── */
.res-section        { padding: 80px 0; position: relative; z-index: 1; }
.res-section--alt   { background: rgba(201,168,76,0.018); }
.res-section-header { margin-bottom: 48px; }
.res-eyebrow        { font-size: 0.6rem; font-weight: 600; letter-spacing: 3.5px; text-transform: uppercase; color: var(--gold); display: block; margin-bottom: 10px; }
.res-title          { font-family: var(--font-h); font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 700; color: var(--text); line-height: 1.15; margin-bottom: 12px; }
.res-subtitle       { font-size: 0.9rem; color: var(--muted); line-height: 1.8; max-width: 600px; }

/* ════════════════════════
   БЕСПЛАТНЫЕ МАТЕРИАЛЫ
   ════════════════════════ */
.freebies-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.freebie-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 8px; padding: 28px;
    display: flex; flex-direction: column; gap: 0;
    transition: border-color .25s, transform .25s;
}
.freebie-card:hover { border-color: var(--gold-dark); transform: translateY(-3px); }

.freebie-icon {
    width: 44px; height: 44px;
    background: rgba(201,168,76,0.1); border: 1px solid var(--border);
    border-radius: 8px; display: flex; align-items: center; justify-content: center;
    margin-bottom: 18px;
}
.freebie-icon svg { width: 20px; height: 20px; fill: var(--gold); }

.freebie-tag   { font-size: 0.6rem; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 8px; }
.freebie-title { font-family: var(--font-h); font-size: 1.15rem; font-weight: 600; color: var(--text); line-height: 1.3; margin-bottom: 10px; }
.freebie-desc  { font-size: 0.82rem; color: var(--muted); line-height: 1.75; margin-bottom: 22px; flex: 1; }

.freebie-btn {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 0.72rem; font-weight: 700;
    background: linear-gradient(135deg, var(--gold-dark), var(--gold));
    color: #080808; padding: 10px 18px; border-radius: 3px;
    text-decoration: none; transition: opacity .2s; align-self: flex-start;
}
.freebie-btn:hover { opacity: 0.85; }

/* ════════════════════════
   ШАБЛОНЫ И ЧЕК-ЛИСТЫ
   ════════════════════════ */
.templates-list { display: flex; flex-direction: column; gap: 0; }

.template-row {
    display: grid; grid-template-columns: 44px 1fr auto auto;
    align-items: center; gap: 20px;
    padding: 22px 24px; border: 1px solid var(--border);
    border-bottom: none; background: var(--bg-card);
    transition: background .2s;
}
.template-row:first-child { border-radius: 8px 8px 0 0; }
.template-row:last-child  { border-bottom: 1px solid var(--border); border-radius: 0 0 8px 8px; }
.template-row:hover       { background: rgba(201,168,76,0.04); }

.template-icon-wrap {
    width: 44px; height: 44px;
    background: rgba(201,168,76,0.08); border: 1px solid var(--border);
    border-radius: 6px; display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.template-icon-wrap svg { fill: var(--gold); }

.template-title  { font-family: var(--font-h); font-size: 1rem; font-weight: 600; color: var(--text); margin-bottom: 4px; line-height: 1.3; }
.template-desc   { font-size: 0.78rem; color: var(--muted); line-height: 1.5; }
.template-format { font-size: 0.62rem; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); white-space: nowrap; }

.template-btn {
    font-size: 0.72rem; font-weight: 700; color: var(--gold);
    border: 1px solid var(--gold-dark); padding: 8px 16px; border-radius: 3px;
    text-decoration: none; white-space: nowrap;
    transition: background .2s, color .2s;
}
.template-btn:hover { background: rgba(201,168,76,0.1); }

/* ════════════════════════
   КНИГИ
   ════════════════════════ */
.books-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.book-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 8px; overflow: hidden; display: flex;
    transition: border-color .25s, transform .25s;
}
.book-card:hover { border-color: var(--gold-dark); transform: translateY(-3px); }

.book-cover {
    width: 80px; min-width: 80px;
    background: linear-gradient(160deg, #1A1500, #0A0800);
    display: flex; align-items: center; justify-content: center;
    border-right: 1px solid var(--border);
}
.book-cover img { width: 80px; height: 100%; object-fit: cover; display: block; }
.book-cover-placeholder {
    font-family: var(--font-h); font-size: 2rem; font-weight: 700;
    color: var(--gold); opacity: 0.5;
}

.book-info    { padding: 18px 18px 20px; flex: 1; display: flex; flex-direction: column; }
.book-cat     { font-size: 0.58rem; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); display: block; margin-bottom: 6px; }
.book-title   { font-family: var(--font-h); font-size: 1rem; font-weight: 700; color: var(--text); line-height: 1.25; margin-bottom: 2px; }
.book-author  { font-size: 0.72rem; color: var(--muted); margin-bottom: 10px; }
.book-note    { font-size: 0.76rem; color: var(--muted); line-height: 1.65; flex: 1; margin-bottom: 12px; }

.book-rating  { display: flex; gap: 2px; }
.star         { color: var(--gold); font-size: 0.85rem; }
.star--half   { opacity: 0.5; }
.star--empty  { opacity: 0.2; }

/* ════════════════════════
   ИНСТРУМЕНТЫ
   ════════════════════════ */
.tools-grid     { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

.tools-category {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 8px; padding: 28px;
}
.tools-cat-title {
    display: flex; align-items: center; gap: 8px;
    font-size: 0.7rem; font-weight: 700; letter-spacing: 2px;
    text-transform: uppercase; color: var(--gold);
    margin-bottom: 20px; padding-bottom: 14px; border-bottom: 1px solid var(--border);
}
.tools-list  { display: flex; flex-direction: column; gap: 12px; }

.tool-item {
    display: flex; align-items: center; gap: 14px;
    padding: 10px 12px; border-radius: 6px;
    transition: background .2s;
}
.tool-item:hover { background: rgba(201,168,76,0.05); }

.tool-logo {
    width: 36px; height: 36px; min-width: 36px;
    background: rgba(255,255,255,0.05); border: 1px solid var(--border);
    border-radius: 6px; display: flex; align-items: center; justify-content: center;
    font-family: var(--font-h); font-size: 1rem; font-weight: 700; color: var(--gold);
}
.tool-info   { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.tool-name   { font-size: 0.82rem; font-weight: 600; color: var(--text); }
.tool-desc   { font-size: 0.7rem; color: var(--muted); }

.tool-badge {
    font-size: 0.58rem; font-weight: 600; letter-spacing: 0.5px;
    padding: 3px 8px; border-radius: 3px; white-space: nowrap;
    color: var(--muted); border: 1px solid var(--border);
}
.tool-badge--free { color: #6db370; border-color: rgba(109,179,112,0.3); background: rgba(109,179,112,0.06); }

/* ════════════════════════
   YOUTUBE
   ════════════════════════ */
.yt-block {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 64px; align-items: start;
}
.yt-desc   { font-size: 0.92rem; color: var(--muted); line-height: 1.85; margin-bottom: 24px; }
.yt-topics { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 36px; }
.yt-topics li {
    display: flex; align-items: flex-start; gap: 10px;
    font-size: 0.82rem; color: var(--muted); line-height: 1.5;
}
.yt-topics li svg { fill: var(--gold); flex-shrink: 0; margin-top: 2px; }

.yt-btn {
    display: inline-flex; align-items: center; gap: 10px;
    background: #FF0000; color: #fff;
    font-size: 0.82rem; font-weight: 700;
    padding: 14px 28px; border-radius: 3px;
    text-decoration: none; transition: opacity .2s;
}
.yt-btn:hover { opacity: 0.85; }

.yt-video-list { display: flex; flex-direction: column; gap: 16px; }

.yt-video-item {
    display: flex; align-items: center; gap: 16px;
    padding: 16px; background: var(--bg-card);
    border: 1px solid var(--border); border-radius: 8px;
    text-decoration: none; transition: border-color .2s;
}
.yt-video-item:hover { border-color: var(--gold-dark); }

.yt-thumb { width: 100px; min-width: 100px; height: 60px; border-radius: 4px; overflow: hidden; }
.yt-thumb-placeholder {
    width: 100%; height: 100%;
    background: linear-gradient(135deg, #1a0000, #0A0800);
    display: flex; align-items: center; justify-content: center;
}
.yt-thumb-placeholder svg { fill: #FF0000; opacity: 0.7; }

.yt-video-info  { display: flex; flex-direction: column; gap: 5px; }
.yt-video-title { font-size: 0.82rem; font-weight: 600; color: var(--text); line-height: 1.4; }
.yt-video-meta  { font-size: 0.68rem; color: var(--muted); }

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
    .freebies-grid { grid-template-columns: 1fr 1fr; }
    .books-grid    { grid-template-columns: 1fr 1fr; }
    .yt-block      { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 768px) {
    .tools-grid    { grid-template-columns: 1fr; }
    .template-row  { grid-template-columns: 44px 1fr; }
    .template-meta { display: none; }
    .template-btn  { grid-column: 2; }
}
@media (max-width: 600px) {
    .freebies-grid { grid-template-columns: 1fr; }
    .books-grid    { grid-template-columns: 1fr; }
    .anchor-link   { padding: 12px 14px; font-size: 0.65rem; }
}
