/*
Theme Name: DA Knigada
Theme URI: https://knigada.ru/
Author: DA
Author URI: https://knigada.ru/
Description: Тема для издательства «Девиз-Книга»
Version: 1.0
Text Domain: da-knigada
*/

/* ===== ПЕРЕМЕННЫЕ ===== */
:root {
    --bg-main: #f5f6f8;
    --bg-card: #ffffff;
    --accent: #0056b3;
    --accent-light: #e5f0fa;
    --accent-orange: #ef4023;
    --text-main: #212529;
    --text-secondary: #6c757d;
    --border: #dee2e6;
    --radius: 14px;
}

/* ===== RESET ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
}
img { max-width: 100%; height: auto; }
a { color: inherit; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ============================================================
   ХЕДЕР
   ============================================================ */
header {
    background-color: #ffffff;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    gap: 20px;
}

/* Логотип (из настроек сайта) */
.logo {
    font-family: 'Oswald', sans-serif;
    font-size: 26px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1;
    flex-shrink: 0;
}
.logo a,
.logo .custom-logo-link {
    display: inline-flex;
    align-items: center;
    color: inherit;
    text-decoration: none;
}
.logo img,
.logo .custom-logo {
    height: 50px;
    width: auto;
    display: block;
}

/* Основная навигация */
nav ul.menu,
nav .menu-primary-container > ul {
    display: flex;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
}
nav ul.menu > li {
    position: relative;
    display: flex;
    align-items: center;
}
nav ul.menu > li > a {
    color: var(--text-main);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
    transition: color 0.3s;
    position: relative;
    padding: 4px 0;
    display: inline-block;
}
nav ul.menu > li > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s;
}
nav ul.menu > li > a:hover::after,
nav ul.menu > li.current-menu-item > a::after,
nav ul.menu > li.current-menu-ancestor > a::after,
nav ul.menu > li.current_page_parent > a::after {
    width: 100%;
}
nav ul.menu > li > a:hover,
nav ul.menu > li.current-menu-item > a,
nav ul.menu > li.current-menu-ancestor > a,
nav ul.menu > li.current_page_parent > a {
    color: var(--accent);
}

/* Стрелка у пунктов с подменю */
nav ul.menu > li.menu-item-has-children > a {
    padding-right: 16px;
}
nav ul.menu > li.menu-item-has-children > a::before {
    content: '';
    position: absolute;
    right: 0;
    top: calc(50% - 4px);
    width: 6px;
    height: 6px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.3s, top 0.3s;
}
nav ul.menu > li.menu-item-has-children:hover > a::before {
    transform: rotate(-135deg);
    top: calc(50% - 1px);
}

/* Подменю (2-й уровень) */
nav ul.menu ul.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 260px;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    list-style: none;
    margin: 8px 0 0;
    padding: 12px 0;
    display: block;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.25s, visibility 0.25s, transform 0.25s;
    z-index: 200;
}
nav ul.menu > li.menu-item-has-children:hover > ul.sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
nav ul.menu ul.sub-menu > li {
    display: block;
    padding: 0;
}
nav ul.menu ul.sub-menu > li > a {
    display: block;
    padding: 9px 22px;
    font-size: 13px;
    color: var(--text-main);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background 0.3s, color 0.3s;
}
nav ul.menu ul.sub-menu > li > a::after { display: none; }
nav ul.menu ul.sub-menu > li > a:hover,
nav ul.menu ul.sub-menu > li.current-menu-item > a {
    background: var(--accent-light);
    color: var(--accent);
}

/* Правые действия в шапке */
.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}
.header-phone .phone,
.header-phone a {
    font-size: 16px;
    font-weight: 300;
    color: var(--text-main);
    text-decoration: none;
    transition: color 0.3s;
}
.header-phone .phone:hover,
.header-phone a:hover { color: var(--accent); }

.burger {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 24px;
    cursor: pointer;
}

/* ============================================================
   МОБИЛЬНОЕ МЕНЮ
   ============================================================ */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: flex-start;
}
.mobile-menu-overlay.active { display: flex; }
.mobile-menu {
    background: #fff;
    width: 300px;
    max-width: 90%;
    height: 100%;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    border-radius: 0 14px 14px 0;
    overflow-y: auto;
}
.mobile-menu-close {
    align-self: flex-end;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-main);
}
.mobile-menu nav ul.menu {
    flex-direction: column;
    gap: 0;
}
.mobile-menu nav ul.menu > li {
    display: block;
    border-bottom: 1px solid var(--border);
}
.mobile-menu nav ul.menu > li > a {
    padding: 14px 0;
    display: block;
    font-size: 16px;
}
.mobile-menu nav ul.menu > li > a::after { display: none; }
.mobile-menu nav ul.menu ul.sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: transparent;
    padding: 0 0 10px 20px;
    margin: 0;
    min-width: 0;
}
.mobile-menu nav ul.menu ul.sub-menu > li > a {
    padding: 10px 0;
    font-size: 14px;
}
.mobile-menu .header-phone { margin-top: auto; padding-top: 20px; }
.mobile-menu .header-phone a,
.mobile-menu .header-phone .phone { font-size: 18px; font-weight: 400; }

/* ============================================================
   КНОПКИ
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    color: #fff;
    padding: 14px 36px;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 300;
    letter-spacing: 1px;
    border-radius: var(--radius);
    transition: background 0.3s, color 0.3s, border-color 0.3s;
    border: 2px solid transparent;
    cursor: pointer;
    gap: 10px;
    font-size: 14px;
    font-family: 'Roboto', sans-serif;
    line-height: 1.2;
}
.btn:hover { background: #004494; color: #fff; }
.btn-orange { background: var(--accent-orange); }
.btn-orange:hover { background: #d63a1d; }
.btn-outline-orange {
    background: #ffffff;
    border: 1px solid var(--accent-orange);
    border-radius: var(--radius);
    color: var(--accent-orange);
}
.btn-outline-orange:hover {
    background: var(--accent-orange);
    color: #ffffff;
}
.btn-outline-gray {
    background: transparent;
    border: 1px solid #adb5bd;
    color: var(--text-secondary);
}
.btn-outline-gray:hover {
    background: var(--accent-orange);
    border-color: var(--accent-orange);
    color: #ffffff;
}
.btn-small { padding: 10px 20px; font-size: 13px; }
.btn-arrow { font-size: 14px; transition: transform 0.3s; }
.btn:hover .btn-arrow { transform: translateX(4px); }

/* ============================================================
   ХЛЕБНЫЕ КРОШКИ
   ============================================================ */
.breadcrumbs {
    background: var(--bg-main);
    min-height: 56px;
    display: flex;
    align-items: center;
    padding: 10px 0;
}
.breadcrumbs .container {
    width: 100%;
    display: flex;
    justify-content: flex-start;
}
.breadcrumbs ol {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
    padding: 0;
}
.breadcrumbs li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.breadcrumbs a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs .sep { color: #b8c0c8; font-size: 11px; }
.breadcrumbs .current { color: var(--text-main); font-weight: 500; }

/* ============================================================
   ОБЩИЕ ЭЛЕМЕНТЫ
   ============================================================ */
section { padding: 50px 0 60px; }
.section-title {
    font-family: 'Oswald', sans-serif;
    font-size: 36px;
    text-transform: uppercase;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
    color: var(--text-main);
    font-weight: 400;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--accent);
}
.section-subtitle {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

/* ============================================================
   ПОДВАЛ
   ============================================================ */
footer {
    background: #ffffff;
    padding: 50px 0 20px;
    border-top: 2px solid var(--accent);
}
.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
.footer-col h4,
.footer-col .widgettitle {
    font-family: 'Oswald', sans-serif;
    font-size: 18px;
    margin-bottom: 20px;
    text-transform: uppercase;
    color: var(--text-main);
    font-weight: 400;
    position: static;
    padding: 0;
}
.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
    padding: 0;
}
.footer-col ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}
.footer-col ul li a:hover { color: var(--accent); }
.footer-col .contact-info {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
}
.footer-col .contact-info p { margin-bottom: 6px; }
.footer-col .contact-group { margin-bottom: 20px; }
.footer-col .contact-group p { margin-bottom: 5px; }
.footer-col .contact-group strong { color: var(--text-main); font-weight: 500; }

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 13px;
}

/* ============================================================
   МОДАЛЬНЫЕ ОКНА
   ============================================================ */
.modal-overlay,
.success-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}
.success-overlay { z-index: 1001; }
.modal-overlay.active,
.success-overlay.active { display: flex; }
.modal-content,
.success-content {
    background: #fff;
    border-radius: var(--radius);
    padding: 30px;
    max-width: 500px;
    width: 90%;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}
.success-content {
    padding: 40px;
    max-width: 400px;
    text-align: center;
}
.modal-close,
.success-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-secondary);
    background: none;
    border: none;
}
.modal-content h3,
.success-content h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--text-main);
    font-weight: 400;
}
.modal-content form { display: flex; flex-direction: column; gap: 15px; }
.modal-content input,
.modal-content textarea {
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 14px;
    width: 100%;
}
.modal-content textarea { resize: vertical; min-height: 100px; }
.modal-content label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-secondary);
}
.modal-content button[type="submit"] { margin-top: 10px; }
.success-content p { font-size: 16px; color: var(--text-secondary); }

/* ============================================================
   АДАПТИВ
   ============================================================ */
@media (max-width: 1024px) {
    .footer-content { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .header-inner {
        padding: 15px;
        gap: 12px;
    }
    .header-inner nav { display: none; }
    .burger { display: block; }

    .header-phone { font-size: 15px; }

    .footer-content { grid-template-columns: 1fr; gap: 30px; }
}

/* ============================================================
   HERO СЛАЙДЕР
   ============================================================ */
.hero {
    background: linear-gradient(135deg, #e9ecef 0%, #ffffff 100%);
    height: 550px;
    position: relative;
    overflow: hidden;
    padding: 0;
}
.hero-slider { width: 100%; height: 100%; position: relative; }
.hero-slide {
    position: absolute;
    inset: 0;
    display: none;
}
.hero-slide.active { display: flex; align-items: center; }
.hero-content {
    display: flex;
    align-items: stretch;
    gap: 60px;
    width: 100%;
    padding: 0 60px;
    height: 100%;
}
.hero-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.hero-title {
    font-family: 'Oswald', sans-serif;
    font-size: 50px;
    font-weight: 400;
    text-transform: uppercase;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--text-main);
}
.hero-title em { color: var(--accent); font-style: normal; }
.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 500px;
}
.hero-image {
    flex: 1;
    height: 100%;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    align-items: flex-end;
}
.hero-image img { max-width: 560px; max-height: 500px; object-fit: contain; }
.hero-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px; height: 40px;
    background: rgba(255,255,255,0.7);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--text-main);
    transition: background 0.3s, color 0.3s;
    z-index: 10;
}
.hero-nav:hover { background: var(--accent); color: #fff; }
.hero-nav.prev { left: 10px; }
.hero-nav.next { right: 10px; }
.hero-dots {
    position: absolute;
    bottom: -260px;
    left: 60px;
    display: flex;
    gap: 10px;
    z-index: 10;
}
.hero-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--text-secondary);
    border: none;
    cursor: pointer;
    transition: background 0.3s;
}
.hero-dot.active { background: var(--accent-orange); }

/* ============================================================
   БЛОК «В РАБОТЕ»
   ============================================================ */
.work-block {
    background: var(--bg-card);
    padding: 60px 0;
    border-bottom: 1px solid var(--border);
}
.work-block-inner {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 60px;
    align-items: start;
}
.work-block-image {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}
.work-block-image img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
}
.work-block-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent-orange);
    margin-bottom: 20px;
}
.work-block-title {
    font-family: 'Oswald', sans-serif;
    font-size: 44px;
    font-weight: 400;
    line-height: 1.15;
    text-transform: uppercase;
    margin-bottom: 25px;
}
.work-block-title .title-black { color: var(--text-main); }
.work-block-title .title-blue { color: var(--accent); }
.work-block-desc {
    font-size: 15px;
    line-height: 1.75;
    color: var(--text-secondary);
    margin-bottom: 15px;
}
.work-block-desc small {
    display: block;
    margin-top: 15px;
    font-size: 14px;
    color: var(--text-secondary);
}
.work-block-cta { margin-top: 30px; }

/* ============================================================
   КНИЖНЫЕ СЕРИИ
   ============================================================ */
.series-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}
.series-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px 20px;
    text-align: center;
    transition: transform 0.3s;
    text-decoration: none;
    color: inherit;
    display: block;
}
.series-card:hover { transform: translateY(-5px); }
.series-card img { max-width: 100%; height: auto; margin-bottom: 15px; }
.series-name {
    font-family: 'Oswald', sans-serif;
    font-size: 22px;
    margin-bottom: 10px;
    color: var(--text-main);
    font-weight: 400;
}
.series-desc { font-size: 14px; color: var(--text-secondary); }

/* ============================================================
   НОВИНКИ (Woo)
   ============================================================ */
.books-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}
.book-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 15px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s, border-color 0.3s;
}
.book-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.book-cover-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: var(--accent-light);
    border-radius: var(--radius);
    margin-bottom: 15px;
    overflow: hidden;
}
.book-cover-wrap .placeholder-text {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 14px;
}
.book-badge-new {
    position: absolute;
    top: 10px; right: 10px;
    background: var(--accent-orange);
    color: #fff;
    font-size: 12px; font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    z-index: 2;
}
.book-badge-series {
    position: absolute;
    top: 10px; left: 10px;
    background: rgba(255,255,255,0.9);
    color: var(--text-main);
    font-size: 11px; font-weight: 500;
    padding: 4px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid var(--border);
    z-index: 2;
}
.book-title {
    font-family: 'Oswald', sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.3;
    margin-bottom: 12px;
    color: var(--text-main);
}
.book-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 15px;
    margin-top: auto;
}
.book-price {
    font-family: 'Oswald', sans-serif;
    font-size: 22px;
    font-weight: 600;
    color: var(--accent);
}
.book-price .amount { color: var(--accent); }
.book-price del { font-size: 14px; color: var(--text-secondary); margin-right: 6px; }
.book-price ins { text-decoration: none; color: var(--accent); }
.book-actions { display: flex; gap: 8px; margin-top: auto; }
.book-actions .btn { flex: 1; padding: 10px 12px; font-size: 13px; }

/* ============================================================
   О НАС
   ============================================================ */
.about {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 60px 0 0;
    overflow: hidden;
}
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: end;
}
.about-text { padding-bottom: 60px; }
.about-text p {
    margin-bottom: 20px;
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.7;
}
.about-cta { margin-top: 30px; }
.about-image {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    min-height: 400px;
}
.about-image img {
    display: block;
    max-width: 100%;
    max-height: 500px;
    object-fit: contain;
    object-position: bottom;
    border-radius: var(--radius) var(--radius) 0 0;
}

/* ============================================================
   УСЛУГИ
   ============================================================ */
.services-header { margin-bottom: 30px; }
.services-header .section-title { margin-bottom: 10px; }
.services-header-description {
    font-size: 15px;
    color: var(--text-secondary);
    max-width: 600px;
    margin-top: 5px;
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}
.service-item {
    border-left: 2px solid var(--accent);
    padding: 35px 30px;
    background: #f9f9f9;
    border-radius: var(--radius);
    transition: background 0.3s;
}
.service-item:hover { background: #ffffff; }
.service-number {
    font-family: 'Oswald', sans-serif;
    font-size: 64px;
    font-weight: 600;
    line-height: 1;
    color: var(--accent);
    margin-bottom: 20px;
    display: block;
    letter-spacing: 2px;
}
.service-title {
    font-family: 'Oswald', sans-serif;
    font-size: 22px;
    margin-bottom: 12px;
    color: var(--text-main);
    font-weight: 400;
}
.service-desc { font-size: 15px; color: var(--text-secondary); }

/* ============================================================
   НОВОСТИ (2 карточки)
   ============================================================ */
.news-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}
.news-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    transition: background 0.3s, transform 0.3s;
}
.news-card:hover { background: var(--accent-light); transform: translateY(-4px); }
.news-card-link { display: block; text-decoration: none; color: inherit; }
.news-card-image-wrap {
    position: relative;
    width: 100%;
    height: 300px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    overflow: hidden;
    background: var(--accent-light);
    display: flex;
    align-items: center;
    justify-content: center;
}
.news-card-image-wrap img { width: 100%; height: 100%; object-fit: cover; }
.news-card-image-wrap .placeholder-text { color: var(--accent); font-size: 16px; }
.news-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}
.news-card-category {
    font-size: 11px; font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--accent-orange);
}
.news-card-date {
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.news-card-title {
    font-family: 'Oswald', sans-serif;
    font-size: 22px;
    font-weight: 400;
    line-height: 1.3;
    color: var(--text-main);
    margin-bottom: 10px;
}
.news-card-excerpt { font-size: 15px; color: var(--text-secondary); }
.news-footer { text-align: center; }

/* ============================================================
   АВТОРЫ
   ============================================================ */
.authors {
    background: var(--bg-main);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.authors-intro {
    max-width: 800px;
    margin-bottom: 40px;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-secondary);
}
.authors-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.author-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    flex-direction: column;
    text-align: center;
    transition: transform 0.3s;
}
.author-card:hover { transform: translateY(-5px); }
.author-card-photo {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: var(--radius);
    margin-bottom: 20px;
    background: var(--accent-light);
    display: block;
}
.author-card-name {
    font-family: 'Oswald', sans-serif;
    font-size: 22px;
    font-weight: 400;
    color: var(--text-main);
    margin-bottom: 8px;
}
.author-card-subtitle {
    font-size: 14px;
    color: var(--accent);
    margin-bottom: 12px;
    font-weight: 500;
}
.author-card-desc {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    flex-grow: 1;
}
.author-card-btn { margin-top: auto; }

/* ============================================================
   ПОДПИСКА
   ============================================================ */
.subscribe {
    background: var(--accent-light);
    text-align: center;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.subscribe h2 {
    font-size: 30px;
    margin-bottom: 15px;
    color: var(--text-main);
    font-weight: 400;
}
.subscribe p { margin-bottom: 30px; color: var(--text-secondary); display: flex;
gap: 10px;
justify-content: center;}

/* Стили для CF7 формы */
.subscribe-form {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}
.subscribe-form input[type="email"],
.subscribe-form input[type="text"] {
    background: #ffffff;
    border: 1px solid var(--border);
    color: var(--text-main);
    padding: 12px 20px;
    border-radius: var(--radius);
    width: 350px;
    max-width: 100%;
    font-family: inherit;
    font-size: 14px;
    transition: border-color 0.3s;
}
.subscribe-form input:focus { outline: none; border-color: var(--accent); }
.subscribe-form input::placeholder { color: #999; }

/* CF7 может оборачивать в свои обёртки — причешем */
.wpcf7 form .subscribe-form,
.wpcf7 .subscribe-form { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.wpcf7 form input[type="email"],
.wpcf7 form input[type="text"] {
    background: #ffffff;
    border: 1px solid var(--border);
    color: var(--text-main);
    padding: 12px 20px;
    border-radius: var(--radius);
    width: 100%;
    max-width: 100%;
    font-family: inherit;
    font-size: 14px;
}
.wpcf7 form .wpcf7-submit {
    background: var(--accent-orange);
    border: none;
    color: #fff;
    padding: 12px 30px;
    border-radius: var(--radius);
    text-transform: uppercase;
    font-weight: 300;
    letter-spacing: 1px;
    cursor: pointer;
    font-size: 14px;
    font-family: 'Roboto', sans-serif;
    transition: background 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: auto;
}
.wpcf7 form .wpcf7-submit:hover { background: #d63a1d; }
.wpcf7 form .wpcf7-response-output {
    margin-top: 20px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 12px 20px;
    font-size: 14px;
    color: var(--text-secondary);
}
.wpcf7 form.sent .wpcf7-response-output {
    border-color: var(--accent);
    color: var(--accent);
}
.wpcf7 .wpcf7-not-valid-tip { color: var(--accent-orange); font-size: 12px; }

/* ============================================================
   АДАПТИВ ГЛАВНОЙ
   ============================================================ */
@media (max-width: 1024px) {
    .books-grid { grid-template-columns: repeat(2, 1fr); }
    .authors-grid { grid-template-columns: repeat(2, 1fr); }
    .work-block-inner { grid-template-columns: 280px 1fr; gap: 40px; }
    .work-block-title { font-size: 36px; }
    .hero-title { font-size: 40px; }
}
@media (max-width: 768px) {
    .hero { height: 500px; }
    .hero-title { font-size: 32px; }
    .hero-content { flex-direction: column; padding: 0 20px; gap: 20px; }
    .hero-image { display: none; }
    .hero-nav { top: auto; bottom: 20px; transform: none; }
    .hero-dots { bottom: 30px; left: 50%; transform: translateX(-50%); }

    .work-block-inner { grid-template-columns: 1fr; gap: 30px; }
    .work-block-title { font-size: 28px; }
    .work-block-image { max-width: 280px; margin: 0 auto; }

    .series-grid { grid-template-columns: 1fr; }
    .books-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .about-content { grid-template-columns: 1fr; gap: 30px; }
    .about-text { padding-bottom: 0; }
    .about-image { justify-content: center; }
    .services-grid { grid-template-columns: 1fr; }
    .news-grid-2 { grid-template-columns: 1fr; }
    .authors-grid { grid-template-columns: 1fr; }
    .subscribe-form { flex-direction: column; align-items: stretch; }
    .subscribe-form input,
    .wpcf7 form input[type="email"] { width: 100%; }
    .wpcf7 form .wpcf7-submit { width: 100%; }
}

.hero-dots {
    position: absolute;
    bottom: 20px;
    left: 60px;
    display: flex;
    gap: 10px;
    z-index: 10;
}
.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid var(--text-secondary);
    cursor: pointer;
    padding: 0;
    transition: background 0.3s, transform 0.3s;
}
.hero-dot:hover { transform: scale(1.2); }
.hero-dot.active {
    background: var(--accent-orange);
    border-color: var(--accent-orange);
    transform: scale(1.2);
}

.services-footer {
    text-align: center;
    margin-top: 40px;
}   

/* ============================================================
   СТРАНИЦА 404
   ============================================================ */
.error-404 {
    padding: 80px 0 100px;
    background: var(--bg-card);
}
.error-404-inner {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}
.error-404-code {
    font-family: 'Oswald', sans-serif;
    font-size: 140px;
    font-weight: 600;
    line-height: 1;
    color: var(--accent);
    letter-spacing: 4px;
    margin-bottom: 10px;
    opacity: 0.15;
}
.error-404-inner .section-title {
    display: inline-block;
    margin-bottom: 20px;
}
.error-404-desc {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 35px;
}
.error-404-search {
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
}
.error-404-search .search-form {
    display: flex;
    gap: 10px;
    width: 100%;
    max-width: 560px;
    flex-wrap: wrap;
}
.error-404-search .search-input {
    flex: 1;
    min-width: 220px;
    padding: 12px 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #ffffff;
    font-family: inherit;
    font-size: 14px;
    color: var(--text-main);
    transition: border-color 0.3s;
}
.error-404-search .search-input:focus {
    outline: none;
    border-color: var(--accent);
}
.error-404-search .btn {
    padding: 12px 30px;
}
.error-404-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .error-404 { padding: 60px 0 80px; }
    .error-404-code { font-size: 96px; }
    .error-404-search .search-form { flex-direction: column; }
    .error-404-search .btn { width: 100%; }
    .error-404-actions { flex-direction: column; }
    .error-404-actions .btn { width: 100%; }
}

/* ============================================================
   СТРАНИЦА-ЗАГЛУШКА
   ============================================================ */
.stub-page {
    padding: 80px 0 100px;
    background: var(--bg-card);
}
.stub-inner {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}
.stub-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--accent-light);
    color: var(--accent);
    font-size: 40px;
    margin-bottom: 30px;
}
.stub-inner .section-title {
    display: inline-block;
    margin-bottom: 20px;
}
.stub-desc {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 35px;
}
.stub-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}
.stub-extra {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--border);
    text-align: left;
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.75;
}
.stub-extra p { margin-bottom: 15px; }
.stub-extra p:last-child { margin-bottom: 0; }

@media (max-width: 768px) {
    .stub-page { padding: 60px 0 80px; }
    .stub-icon { width: 80px; height: 80px; font-size: 32px; }
    .stub-actions { flex-direction: column; }
    .stub-actions .btn { width: 100%; }
}
/* ============================================================
   CF7 — стилизация в модалке
   ============================================================ */
.da-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 0;
}
.da-form p {
    margin: 0;
}
.da-form input[type="text"],
.da-form input[type="tel"],
.da-form input[type="email"],
.da-form textarea {
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 14px;
    color: var(--text-main);
    background: #fff;
    width: 100%;
    transition: border-color 0.3s;
    box-sizing: border-box;
}
.da-form input:focus,
.da-form textarea:focus {
    outline: none;
    border-color: var(--accent);
}
.da-form textarea {
    resize: vertical;
    min-height: 100px;
}
.da-form .wpcf7-form-control-wrap {
    display: block;
    width: 100%;
}

.da-form-checkbox {
    font-size: 14px;
    color: var(--text-secondary);
}
.da-form-checkbox .wpcf7-form-control-wrap {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.da-form-checkbox label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-secondary);
}
.da-form-checkbox input[type="checkbox"] {
    margin: 0;
    accent-color: var(--accent);
    width: 16px;
    height: 16px;
}

/* Кнопка CF7 */
.da-form .wpcf7-submit {
    background: var(--accent-orange);
    color: #fff;
    border: none;
    padding: 14px 36px;
    border-radius: var(--radius);
    text-transform: uppercase;
    font-weight: 300;
    letter-spacing: 1px;
    cursor: pointer;
    font-size: 14px;
    font-family: 'Roboto', sans-serif;
    transition: background 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
}
.da-form .wpcf7-submit:hover {
    background: #d63a1d;
}

/* Сообщения CF7 */
.wpcf7 .wpcf7-not-valid-tip {
    color: var(--accent-orange);
    font-size: 12px;
    margin-top: 4px;
    display: block;
}
.wpcf7 .wpcf7-response-output {
    margin: 15px 0 0;
    padding: 12px 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    color: var(--text-secondary);
}
.wpcf7 form.sent .wpcf7-response-output {
    border-color: var(--accent);
    color: var(--accent);
}
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output {
    border-color: var(--accent-orange);
    color: var(--accent-orange);
}
.wpcf7 .wpcf7-spinner {
    display: none; /* убираем крутилку при желании */
}

/* ============================================================
   СТРАНИЦА «КОНТАКТЫ»
   ============================================================ */
.contacts { padding: 50px 0 60px; }

.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    align-items: start;
    margin-top: 30px;
}

/* Левая колонка */
.contacts-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.contact-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 25px;
}
.contact-card-title {
    font-family: 'Oswald', sans-serif;
    font-size: 18px;
    font-weight: 400;
    text-transform: uppercase;
    color: var(--text-main);
    margin-bottom: 15px;
    padding-bottom: 12px;
    position: relative;
    letter-spacing: 0.5px;
    line-height: 1.3;
}
.contact-card-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--accent);
}
.contact-card p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 6px;
}
.contact-card p:last-child { margin-bottom: 0; }
.contact-requisites {
    margin-top: 12px;
    font-size: 14px;
    color: var(--text-secondary);
}

/* Строки: телефон и email */
.contact-line {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    font-size: 15px;
}
.contact-line + .contact-line {
    border-top: 1px dashed var(--border);
}
.contact-line i {
    color: var(--accent);
    font-size: 15px;
    width: 18px;
    flex-shrink: 0;
    text-align: center;
}
.contact-line a {
    color: var(--text-main);
    text-decoration: none;
    transition: color 0.3s;
}
.contact-line a:hover { color: var(--accent); }

/* Кнопка */
.contact-cta { margin-top: 5px; }
.contact-cta-btn { width: 100%; }

/* Карта */
.contacts-map {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    min-height: 500px;
    display: flex;
    flex-direction: column;
}
.contacts-map iframe {
    width: 100%;
    height: 100%;
    min-height: 500px;
    border: 0;
    display: block;
    flex: 1;
}
.contacts-map-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 500px;
    color: var(--text-secondary);
    font-size: 14px;
    background: var(--accent-light);
}

/* Адаптив */
@media (max-width: 1024px) {
    .contacts-grid { grid-template-columns: 1fr; }
    .contacts-map { min-height: 400px; }
    .contacts-map iframe { min-height: 400px; }
    .contacts-map-placeholder { height: 400px; }
}
@media (max-width: 768px) {
    .contacts { padding: 30px 0 40px; }
    .contacts-map { min-height: 320px; }
    .contacts-map iframe { min-height: 320px; }
    .contacts-map-placeholder { height: 320px; }
    .contact-card { padding: 20px; }
}

/* ============================================================
   ОДИНОЧНАЯ НОВОСТЬ
   ============================================================ */

/* Титульная картинка */
.article-hero {
    position: relative;
    width: 100%;
    height: 480px;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--accent-light) center/cover no-repeat;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 40px;
    margin: 30px 0 40px;
}
.article-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,0.75) 100%);
    z-index: 1;
}
.article-hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    max-width: 800px;
}
.article-hero-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}
.article-hero-category {
    display: inline-block;
    padding: 5px 12px;
    background: var(--accent-orange);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 6px;
}
.article-hero-date {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 1px;
    text-transform: uppercase;
}
.article-hero-title {
    font-family: 'Oswald', sans-serif;
    font-size: 44px;
    line-height: 1.15;
    font-weight: 400;
    text-transform: uppercase;
    text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

/* Плейсхолдер (без картинки) */
.article-hero.placeholder {
    background: var(--accent-light);
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
}
.article-hero.placeholder .article-hero-content {
    color: var(--text-main);
    text-align: center;
}
.article-hero.placeholder .article-hero-title {
    color: var(--text-main);
    text-shadow: none;
}
.article-hero.placeholder .article-hero-date {
    color: var(--text-secondary);
}

/* Сетка: статья + сайдбар */
.article-wrap {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 50px;
    align-items: start;
    padding: 0 0 60px;
}

/* Текст статьи */
.article-content {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-main);
    min-width: 0;
}
.article-content p { margin-bottom: 20px; }
.article-content h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 28px;
    font-weight: 400;
    text-transform: uppercase;
    margin: 40px 0 20px;
    color: var(--text-main);
    scroll-margin-top: 100px;
}
.article-content h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 22px;
    font-weight: 400;
    margin: 30px 0 15px;
    color: var(--text-main);
    scroll-margin-top: 100px;
}
.article-content ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 20px;
}
.article-content ul li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 10px;
}
.article-content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 12px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
}
.article-content blockquote {
    border-left: 4px solid var(--accent-orange);
    background: var(--accent-light);
    padding: 20px 25px;
    margin: 30px 0;
    border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic;
}
.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    margin: 20px 0;
    display: block;
}
.article-content a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.3s;
}
.article-content a:hover { color: var(--accent-orange); }

/* Навигация под статьёй */
.article-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
}
.article-nav-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    color: inherit;
    transition: background 0.3s, border-color 0.3s;
}
.article-nav-item:hover {
    background: var(--accent-light);
    border-color: var(--accent);
}
.article-nav-item.next { text-align: right; }
.article-nav-label {
    font-size: 11px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.article-nav-title {
    font-family: 'Oswald', sans-serif;
    font-size: 16px;
    color: var(--text-main);
    font-weight: 400;
    line-height: 1.3;
}

/* Сайдбар */
.article-sidebar {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}
.sidebar-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 25px;
}
.sidebar-title {
    font-family: 'Oswald', sans-serif;
    font-size: 18px;
    font-weight: 400;
    text-transform: uppercase;
    color: var(--text-main);
    margin-bottom: 18px;
    padding-bottom: 12px;
    position: relative;
    letter-spacing: 0.5px;
}
.sidebar-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--accent);
}

/* Оглавление */
.toc-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.toc-list a {
    display: block;
    font-size: 14px;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 6px 0 6px 12px;
    border-left: 2px solid transparent;
    transition: color 0.3s, border-color 0.3s, padding-left 0.3s;
    line-height: 1.4;
}
.toc-list a:hover,
.toc-list a.active {
    color: var(--accent);
    border-left-color: var(--accent);
    padding-left: 15px;
}
.toc-list .toc-item-h3 {
    padding-left: 24px;
    font-size: 13px;
}

/* Поделиться */
.share-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-main);
    color: var(--text-secondary);
    text-decoration: none;
    border: 1px solid var(--border);
    transition: background 0.3s, color 0.3s, border-color 0.3s;
    cursor: pointer;
    padding: 0;
    font-size: 16px;
}
.share-btn:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}
.share-copy.copied {
    background: var(--accent-orange);
    color: #fff;
    border-color: var(--accent-orange);
}

/* Читать также */
.also-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.also-item {
    display: flex;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s;
}
.also-item:hover { opacity: 0.75; }
.also-image {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    border-radius: 10px;
    background: var(--accent-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 10px;
    text-align: center;
    padding: 4px;
    line-height: 1.2;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.also-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}
.also-date {
    font-size: 11px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.also-title {
    font-family: 'Oswald', sans-serif;
    font-size: 15px;
    line-height: 1.3;
    color: var(--text-main);
    font-weight: 400;
    transition: color 0.3s;
}
.also-item:hover .also-title { color: var(--accent); }

/* Адаптив */
@media (max-width: 1024px) {
    .article-wrap { grid-template-columns: 1fr 280px; gap: 30px; }
    .article-hero-title { font-size: 36px; }
}
@media (max-width: 900px) {
    .article-wrap {
        display: flex;
        flex-direction: column;
        gap: 25px;
    }
    .article-sidebar {
        position: static;
        display: contents;
    }
    .article-content { order: 2; }
    .sidebar-card:nth-child(1) { order: 1; }  /* Оглавление — наверх */
    .sidebar-card:nth-child(2) { order: 3; }  /* Поделиться — под текст */
    .sidebar-card:nth-child(3) { order: 4; }  /* Читать также — в самый низ */

    /* Оглавление в виде чипов */
    .sidebar-card:nth-child(1) .toc-list {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
    }
    .sidebar-card:nth-child(1) .toc-list a,
    .sidebar-card:nth-child(1) .toc-list .toc-item-h3 {
        border: 1px solid var(--border);
        border-left: 1px solid var(--border);
        padding: 8px 14px;
        border-radius: var(--radius);
        background: var(--bg-main);
        font-size: 13px;
    }
    .sidebar-card:nth-child(1) .toc-list a:hover,
    .sidebar-card:nth-child(1) .toc-list a.active {
        background: var(--accent);
        color: #fff;
        border-color: var(--accent);
        padding-left: 14px;
    }
}
@media (max-width: 768px) {
    .article-hero { height: 360px; padding: 25px; }
    .article-hero-title { font-size: 28px; }
    .article-content { font-size: 16px; }
    .article-nav { grid-template-columns: 1fr; }
    .article-nav-item.next { text-align: left; }
}

/* ============================================================
   СТРАНИЦА НОВОСТЕЙ (АРХИВ)
   ============================================================ */
.news-page { padding: 40px 0 60px; }

/* Чипы фильтра */
.news-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 40px;
}
.filter-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-main);
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.3s, color 0.3s, border-color 0.3s;
    font-family: 'Oswald', sans-serif;
}
.filter-chip:hover {
    border-color: var(--accent);
    color: var(--accent);
}
.filter-chip.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

/* Сетка новостей */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.news-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    flex-direction: column;
    transition: background 0.3s, transform 0.3s, border-color 0.3s;
    overflow: hidden;
}
.news-card:hover {
    background: var(--accent-light);
    transform: translateY(-4px);
    border-color: var(--accent);
}
.news-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}
.news-card-image-wrap {
    position: relative;
    width: 100%;
    height: 220px;
    border-radius: var(--radius);
    margin-bottom: 15px;
    overflow: hidden;
    background: var(--accent-light);
    display: flex;
    align-items: center;
    justify-content: center;
}
.news-card-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.news-card-image-wrap .placeholder-text {
    color: var(--accent);
    font-size: 15px;
}
.news-card-video-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-main);
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 20px;
    border: 1px solid var(--border);
}
.news-card-video-badge i {
    font-size: 10px;
    color: var(--text-secondary);
}
.news-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}
.news-card-category {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--accent-orange);
}
.news-card-date {
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.news-card-title {
    font-family: 'Oswald', sans-serif;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.3;
    color: var(--text-main);
    margin-bottom: 10px;
    transition: color 0.3s;
}
.news-card-link:hover .news-card-title { color: var(--accent); }
.news-card-excerpt {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-top: auto;
}

/* Пагинация */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 50px;
    flex-wrap: wrap;
}
.pagination .page-num,
.pagination .page-num.current,
.pagination .page-num.dots,
.pagination .prev,
.pagination .next {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    border-radius: var(--radius);
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-main);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.3s, color 0.3s, border-color 0.3s;
    font-family: 'Roboto', sans-serif;
}
.pagination .page-num:hover {
    border-color: var(--accent);
    color: var(--accent);
}
.pagination .page-num.current {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}
.pagination .dots {
    border: none;
    background: transparent;
    cursor: default;
    min-width: 24px;
}
.pagination .prev,
.pagination .next {
    font-size: 14px;
}
.pagination .prev.disabled,
.pagination .next.disabled {
    opacity: 0.4;
    pointer-events: none;
}

/* Пустое состояние */
.no-results {
    display: none;
    text-align: center;
    padding: 80px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.no-results.visible { display: block; }
.no-results i {
    font-size: 42px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}
.no-results h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 22px;
    font-weight: 400;
    color: var(--text-main);
    margin-bottom: 10px;
}
.no-results p {
    color: var(--text-secondary);
    font-size: 15px;
}

/* Адаптив */
@media (max-width: 1024px) {
    .news-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .news-grid { grid-template-columns: 1fr; }
    .news-filter { gap: 8px; }
    .filter-chip { padding: 8px 16px; font-size: 12px; }
    .news-card-image-wrap { height: 200px; }
}

/* ============================================================
   СТРАНИЦА СПИСКА АВТОРОВ
   ============================================================ */
.authors-page {
    padding: 40px 0 60px;
}
.authors-page .authors-grid {
    margin-top: 30px;
}
.authors-page .author-card-photo {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: var(--radius);
    margin-bottom: 20px;
    background: var(--accent-light);
    display: block;
}

/* Фото в карточке команды — скругление со всех углов */
.team-photo-wrap {
    position: relative;
    width: 100%;
    height: 260px;
    border-radius: var(--radius);
    margin-bottom: 15px;
    overflow: hidden;
    background: var(--accent-light);
    display: flex;
    align-items: center;
    justify-content: center;
}
.team-photo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: var(--radius); /* скругление с обеих сторон */
}
.team-photo-wrap .placeholder-text {
    color: var(--accent);
    font-size: 16px;
}

/* ============================================================
   ОСНОВНОЙ КОНТЕНТ СТРАНИЦЫ «О НАС»
   ============================================================ */
.about-content-extra {
    padding: 60px 0;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
}
.about-content-extra .page-content {
    margin: 0 auto;
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-secondary);
}
.about-content-extra .page-content h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 28px;
    font-weight: 400;
    text-transform: uppercase;
    margin: 40px 0 20px;
    color: var(--text-main);
}
.about-content-extra .page-content h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 22px;
    font-weight: 400;
    margin: 30px 0 15px;
    color: var(--text-main);
}
.about-content-extra .page-content p { margin-bottom: 20px; }
.about-content-extra .page-content ul,
.about-content-extra .page-content ol {
    padding-left: 24px;
    margin-bottom: 20px;
}
.about-content-extra .page-content li { margin-bottom: 8px; }
.about-content-extra .page-content blockquote {
    border-left: 4px solid var(--accent-orange);
    background: var(--accent-light);
    padding: 20px 25px;
    margin: 30px 0;
    border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic;
}
.about-content-extra .page-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    margin: 20px 0;
    display: block;
}
.about-content-extra .page-content a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (max-width: 768px) {
    .about-content-extra { padding: 40px 0; }
    .about-content-extra .page-content { font-size: 15px; }
}

.about-text-content p {
    margin-bottom: 15px;
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.7;
}
.about-text-content p:last-child { margin-bottom: 0; }
.about-text-content ul,
.about-text-content ol {
    padding-left: 22px;
    margin-bottom: 15px;
    color: var(--text-secondary);
}
.about-text-content a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.about-text-content strong { color: var(--text-main); }


.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}
@media (max-width: 1024px) {
    .team-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .team-grid { grid-template-columns: 1fr; }
}


/* Контент страницы растягиваем на всю ширину */
.authors-page-content {
    margin-top: 30px;
    max-width: 100%;
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-main);
}
.authors-page-content p { margin-bottom: 20px; }
.authors-page-content h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 28px;
    font-weight: 400;
    text-transform: uppercase;
    margin: 40px 0 20px;
}
.authors-page-content h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 22px;
    font-weight: 400;
    margin: 30px 0 15px;
}
.authors-page-content ul,
.authors-page-content ol {
    padding-left: 24px;
    margin-bottom: 20px;
}
.authors-page-content li { margin-bottom: 8px; }
.authors-page-content blockquote {
    border-left: 4px solid var(--accent-orange);
    background: var(--accent-light);
    padding: 20px 25px;
    margin: 30px 0;
    border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic;
}
.authors-page-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    margin: 20px 0;
    display: block;
}
.authors-page-content a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.authors-page-content a:hover { color: var(--accent-orange); }
/* ============================================================
   СТРАНИЦА ОДНОГО АВТОРА
   ============================================================ */
.author-single {
    padding: 50px 0 40px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
}

.author-single-subtitle {
    font-size: 16px;
    color: var(--accent);
    margin-bottom: 30px;
    font-weight: 500;
}

/* Сетка: фото + описание */
.author-single-grid {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 50px;
    align-items: start;
    margin-top: 20px;
}

/* Фото */
.author-single-photo {
    position: relative;
    width: 100%;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--accent-light);
}
.author-single-photo img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--radius);
    object-fit: cover;
}
.author-single-photo-placeholder {
    width: 100%;
    aspect-ratio: 4 / 5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 16px;
    border-radius: var(--radius);
}

/* Описание справа */
.author-single-content {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-main);
    min-width: 0;
}
.author-single-content p { margin-bottom: 18px; }
.author-single-content p:last-child { margin-bottom: 0; }
.author-single-content h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 26px;
    font-weight: 400;
    text-transform: uppercase;
    margin: 30px 0 15px;
    color: var(--text-main);
}
.author-single-content h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 20px;
    font-weight: 400;
    margin: 25px 0 12px;
    color: var(--text-main);
}
.author-single-content ul,
.author-single-content ol {
    padding-left: 24px;
    margin-bottom: 18px;
}
.author-single-content li { margin-bottom: 8px; }
.author-single-content blockquote {
    border-left: 4px solid var(--accent-orange);
    background: var(--accent-light);
    padding: 20px 25px;
    margin: 25px 0;
    border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic;
}
.author-single-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    margin: 20px 0;
    display: block;
}
.author-single-content a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.author-single-content a:hover { color: var(--accent-orange); }

/* Книги автора */
.author-books {
    padding: 60px 0 80px;
}

.author-books .books-grid {
    margin-top: 20px;
}

/* Карточка книги — ссылка на товар */
.book-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}
.book-card-link:hover .book-title { color: var(--accent); }
.book-card-link .book-title {
    transition: color 0.3s;
}

/* Адаптив */
@media (max-width: 1024px) {
    .author-single-grid {
        grid-template-columns: 300px 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .author-single { padding: 30px 0; }
    .author-single-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    .author-single-photo {
        max-width: 320px;
        margin: 0 auto;
    }
    .author-books { padding: 40px 0 60px; }
}

/* Хедер секции: заголовок + ссылка справа */
.section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}
.section-header .section-title {
    margin-bottom: 0;
}
.section-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--accent);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s, gap 0.3s;
    font-family: 'Oswald', sans-serif;
    white-space: nowrap;
}
.section-link:hover {
    color: var(--accent-orange);
    gap: 12px;
}
.section-link i {
    font-size: 12px;
    transition: transform 0.3s;
}
.section-link:hover i {
    transform: translateX(3px);
}

@media (max-width: 768px) {
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

/* ============================================================
   СТРАНИЦА СПИСКА СЕРИЙ
   ============================================================ */
.series-page {
    padding: 40px 0 60px;
}

.series-page-intro {
    max-width: 100%;
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 40px;
}
.series-page-intro p { margin-bottom: 15px; }
.series-page-intro p:last-child { margin-bottom: 0; }

/* Сетка серий — 2 в ряд */
.series-page-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

/* Карточки на странице серий — крупнее, чем на главной */
.series-page-grid .series-card {
    padding: 35px 30px;
    text-align: left;
}
.series-page-grid .series-card img {
    max-width: 220px;
    display: block;
    margin: 0 auto 20px;
}
.series-page-grid .series-card .series-name {
    font-size: 26px;
    text-align: center;
    margin-bottom: 15px;
}
.series-page-grid .series-card .series-desc {
    font-size: 15px;
    text-align: center;
    line-height: 1.7;
}

/* Блок «Планируются» */
.series-page-planned {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
}
.series-page-planned .section-title {
    margin-bottom: 30px;
}

/* Адаптив */
@media (max-width: 768px) {
    .series-page-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .series-page-planned {
        margin-top: 40px;
        padding-top: 30px;
    }
    .series-page-grid .series-card {
        padding: 25px 20px;
    }
    .series-page-grid .series-card .series-name {
        font-size: 22px;
    }
}

/* ============================================================
   ПАРТНЁРЫ
   ============================================================ */
.partners {
    background: var(--bg-main);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.partners-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 30px;
}
.partner-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 140px;
    text-decoration: none;
    transition: transform 0.3s, border-color 0.3s;
}
.partner-item:hover {
    transform: translateY(-3px);
    border-color: var(--accent);
}

/* Логотип внутри карточки */
.partner-logo {
    display: block;
    max-width: 100%;
    max-height: 120px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.75;
    transition: filter 0.3s, opacity 0.3s;
}
.partner-item:hover .partner-logo {
    filter: grayscale(0%);
    opacity: 1;
}

/* Плейсхолдер, если логотип не загружен */
.partner-logo-wrap {
    width: 100%;
    height: 120px;
    border-radius: var(--radius);
    background: var(--accent-light);
    display: flex;
    align-items: center;
    justify-content: center;
}
.partner-logo-wrap .placeholder-text {
    color: var(--accent);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Адаптив */
@media (max-width: 1024px) {
    .partners-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .partners-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .partner-item { padding: 20px 15px; min-height: 110px; }
    .partner-logo { max-height: 60px; }
    .partner-logo-wrap { height: 60px; }
}



/* ============================================================
   WOOCOMMERCE: КАТАЛОГ (архив товаров)
   ============================================================ */

/* ---------- Контейнер страницы ---------- */
.woocommerce .woocommerce-products-header,
.woocommerce-page .woocommerce-products-header {
    margin-bottom: 0;
}

/* Заголовок страницы магазина — как наши .section-title */
.woocommerce-products-header__title,
.woocommerce-products-header h1.page-title {
    font-family: 'Oswald', sans-serif;
    font-size: 36px;
    font-weight: 400;
    text-transform: uppercase;
    color: var(--text-main);
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
    margin-bottom: 20px;
}
.woocommerce-products-header__title::after,
.woocommerce-products-header h1.page-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--accent);
}

/* Описание категории / магазина */
.woocommerce-products-header .term-description,
.woocommerce-products-header .page-description {
    font-size: 15px;
    color: var(--text-secondary);
    max-width: 700px;
    margin-bottom: 30px;
    line-height: 1.7;
}

/* ---------- Основной контейнер WooCommerce ---------- */
.woocommerce .woocommerce-products-header + .woocommerce-notices-wrapper,
.woocommerce ul.products,
.woocommerce .woocommerce-ordering,
.woocommerce .woocommerce-result-count,
.woocommerce nav.woocommerce-pagination {
    /* не трогаем общий контейнер, работаем точечно */
}

/* Отступ от текста страницы до панели сортировки */
.woocommerce .woocommerce-products-header {
    margin-bottom: 40px;
}

/* Если описания нет — оставляем отступ после заголовка */
.woocommerce-products-header__title + .term-description {
    margin-top: 0;
}

/* ---------- Панель сортировки ---------- */
.woocommerce .woocommerce-ordering {
    margin: 0 0 30px;
    float: none;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.woocommerce .woocommerce-ordering label {
    font-size: 13px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    margin: 0;
    display: none; /* в нашем дизайне подпись не нужна */
}

/* Селект сортировки */
.woocommerce .woocommerce-ordering select,
.woocommerce-page .woocommerce-ordering select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 11px 45px 11px 18px;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    color: var(--text-main);
    cursor: pointer;
    transition: border-color 0.3s, background 0.3s;
    min-width: 240px;
    max-width: 100%;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230056b3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
}

.woocommerce .woocommerce-ordering select:hover {
    border-color: var(--accent);
}

.woocommerce .woocommerce-ordering select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.1);
}

/* ---------- Сетка товаров ---------- */
.woocommerce ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin: 0 0 40px !important;
    padding: 0;
    list-style: none;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
    display: none !important;
    content: none !important;
}

.woocommerce ul.products li.product {
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
    clear: none !important;
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.woocommerce ul.products li.product:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: 0 8px 24px rgba(0, 86, 179, 0.08);
}

/* Ссылка-обёртка на товар */
.woocommerce ul.products li.product > a.woocommerce-LoopProduct-link {
    display: flex;
    flex-direction: column;
    padding: 15px 15px 0;
    text-decoration: none;
    color: inherit;
}

/* Изображение */
.woocommerce ul.products li.product a img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: var(--radius);
    margin: 0 0 15px !important;
    transition: transform 0.3s;
}

/* Категории/серии над названием (если выводятся) */
.woocommerce ul.products li.product .woocommerce-loop-product__categories,
.woocommerce ul.products li.product .product-categories {
    display: block;
    font-size: 11px;
    color: var(--accent-orange);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    margin-bottom: 8px;
}

/* Название */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-family: 'Oswald', sans-serif !important;
    font-size: 18px !important;
    font-weight: 400 !important;
    line-height: 1.3;
    color: var(--text-main) !important;
    padding: 0 !important;
    margin: 0 0 10px !important;
    transition: color 0.3s;
}
.woocommerce ul.products li.product:hover .woocommerce-loop-product__title {
    color: var(--accent) !important;
}

/* Цена */
.woocommerce ul.products li.product .price {
    display: block;
    font-family: 'Oswald', sans-serif;
    font-size: 22px;
    font-weight: 600;
    color: var(--accent) !important;
    margin: 0 0 15px !important;
    line-height: 1.2;
    padding: 0 15px;
}
.woocommerce ul.products li.product .price del {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 400;
    margin-right: 6px;
}
.woocommerce ul.products li.product .price ins {
    text-decoration: none;
    color: var(--accent);
}

/* Кнопка «В корзину» / «Подробнее» */
.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product .added_to_cart {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #ffffff !important;
    border: 1px solid var(--accent-orange) !important;
    border-radius: var(--radius) !important;
    color: var(--accent-orange) !important;
    padding: 10px 20px !important;
    font-family: 'Roboto', sans-serif;
    font-size: 13px !important;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.3s, color 0.3s, border-color 0.3s;
    margin: 0 15px 15px !important;
    width: calc(100% - 30px) !important;
    box-sizing: border-box;
}
.woocommerce ul.products li.product .button:hover {
    background: var(--accent-orange) !important;
    color: #ffffff !important;
}
.woocommerce ul.products li.product .added_to_cart {
    background: var(--accent) !important;
    color: #fff !important;
    border-color: var(--accent) !important;
}

/* Метка «Распродажа» */
.woocommerce ul.products li.product .onsale {
    position: absolute;
    top: 10px;
    right: 10px;
    left: auto;
    min-height: 0;
    min-width: 0;
    padding: 4px 10px;
    background: var(--accent-orange);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 4px;
    margin: 0;
}
.woocommerce ul.products li.product {
    position: relative;
}

/* ---------- Пагинация ---------- */
.woocommerce nav.woocommerce-pagination {
    margin-top: 40px;
    text-align: center;
}
.woocommerce nav.woocommerce-pagination ul {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    margin: 0;
    padding: 0;
    list-style: none;
    flex-wrap: wrap;
    justify-content: center;
}
.woocommerce nav.woocommerce-pagination ul li {
    border: none;
    margin: 0;
    padding: 0;
}
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    border-radius: var(--radius);
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-main);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.3s, color 0.3s, border-color 0.3s;
    font-family: 'Roboto', sans-serif;
}
.woocommerce nav.woocommerce-pagination ul li a:hover {
    border-color: var(--accent);
    color: var(--accent);
}
.woocommerce nav.woocommerce-pagination ul li span.current {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

/* ---------- Уведомления и сообщения ---------- */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    background: var(--accent-light);
    border-top: none;
    border-left: 4px solid var(--accent);
    border-radius: var(--radius);
    padding: 15px 20px;
    color: var(--text-main);
    font-size: 14px;
    margin-bottom: 25px;
    list-style: none;
}
.woocommerce-message .button,
.woocommerce-info .button {
    background: var(--accent) !important;
    color: #fff !important;
    border-radius: var(--radius);
    padding: 8px 18px !important;
    font-size: 13px;
    margin-left: auto;
}
.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before {
    display: none;
}

/* «Ничего не найдено» */
.woocommerce-info.no-products {
    text-align: center;
    border-left: none;
    border: 1px solid var(--border);
}

/* ============================================================
   АДАПТИВ КАТАЛОГА
   ============================================================ */
@media (max-width: 1024px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}
@media (max-width: 768px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    .woocommerce ul.products li.product > a.woocommerce-LoopProduct-link {
        padding: 12px 12px 0;
    }
    .woocommerce ul.products li.product .price {
        font-size: 18px !important;
        padding: 0 12px;
        margin-bottom: 12px !important;
    }
    .woocommerce ul.products li.product .button {
        margin: 0 12px 12px !important;
        width: calc(100% - 24px) !important;
        font-size: 12px !important;
        padding: 9px 14px !important;
    }
    .woocommerce .woocommerce-ordering {
        width: 100%;
    }
    .woocommerce .woocommerce-ordering select {
        width: 100%;
        min-width: 0;
    }
}
@media (max-width: 480px) {
    .woocommerce ul.products {
        grid-template-columns: 1fr;
    }
}

.woocommerce{
    margin-top: 40px;
}