/*
Theme Name: AuthentiCheck_628
Theme URI: https://m-website.ru
Author: Казакова Елизавета
Author URI: https://m-website.ru
Description: Тема для информационного сайта о проверке подлинности товаров. Экспертные методы, советы и инструкции.
Version: 1.1
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: authenticcheck628
*/

/* ===== ПЕРЕМЕННЫЕ ===== */
:root {
    --clr-bg: #F8F9FA;
    --clr-emerald: #1A7F6B;
    --clr-emerald-dark: #14604F;
    --clr-terra: #E07A5F;
    --clr-terra-dark: #c4613f;
    --clr-text: #2D3E50;
    --clr-text-sec: #6C7A89;
    --clr-paper: #F4F1EA;
    --clr-gold: #D4AF37;
    --clr-white: #ffffff;
    --clr-border: #dde2e8;
    --ff-heading: 'Inter', sans-serif;
    --ff-mono: 'JetBrains Mono', 'Fira Code', monospace;
    --ff-body: 'Inter', sans-serif;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-pill: 40px;
    --radius-cta: 30px;
    --shadow-card: 0 2px 12px rgba(45,62,80,0.07);
    --shadow-hover: 0 8px 28px rgba(26,127,107,0.15);
    --transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ===== СБРОС И БАЗОВЫЕ СТИЛИ ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--ff-body);
    color: var(--clr-text);
    background: var(--clr-bg);
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--clr-emerald); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--clr-emerald-dark); }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--ff-heading);
    font-weight: 700;
    line-height: 1.25;
    color: var(--clr-text);
    margin-bottom: 0.6em;
    margin-top: 1.2em;
}

h1 { font-size: 2.2rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.15rem; }

p { margin-bottom: 1em; }

ul, ol { margin: 0 0 1em 1.5em; }
li { margin-bottom: 0.3em; }

blockquote {
    font-family: var(--ff-mono);
    font-size: 0.92rem;
    border-left: 4px solid var(--clr-gold);
    padding: 1em 1.5em;
    margin: 1.5em 0;
    background: var(--clr-paper);
    color: var(--clr-text);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

table { width: 100%; border-collapse: collapse; margin: 1.5em 0; }
table th, table td {
    border: 1px solid var(--clr-border);
    padding: 0.65em 1em;
    text-align: left;
}
table th {
    background: var(--clr-emerald);
    color: var(--clr-white);
    font-weight: 600;
}
table tr:nth-child(even) { background: rgba(26,127,107,0.04); }

/* ===== КНОПКИ ===== */
.ac-btn-cta {
    display: inline-block;
    padding: 14px 36px;
    border: none;
    border-radius: var(--radius-cta);
    background: linear-gradient(135deg, var(--clr-emerald), var(--clr-emerald-dark));
    color: var(--clr-white);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition);
    text-align: center;
}
.ac-btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    color: var(--clr-white);
}

.ac-btn-pill {
    display: inline-block;
    padding: 8px 22px;
    border: 2px solid var(--clr-emerald);
    border-radius: var(--radius-pill);
    background: transparent;
    color: var(--clr-emerald);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
}
.ac-btn-pill:hover, .ac-btn-pill.is-active {
    background: var(--clr-emerald);
    color: var(--clr-white);
}

.ac-btn-expert {
    display: inline-block;
    padding: 10px 24px;
    background: var(--clr-white);
    color: var(--clr-terra);
    border: 2px dashed var(--clr-terra);
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    transition: all var(--transition);
}
.ac-btn-expert:hover {
    background: var(--clr-terra);
    color: var(--clr-white);
}

.ac-link-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--clr-emerald);
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: border-color var(--transition);
}
.ac-link-more:hover { border-bottom-color: var(--clr-emerald); }
.ac-link-more svg { width: 16px; height: 16px; }

/* ===== ШАПКА ===== */
.ac-header {
    background: var(--clr-white);
    border-bottom: 1px solid var(--clr-border);
    position: relative;
    z-index: 100;
}

.ac-header-inner {
    max-width: 1260px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
}

.ac-logo { display: flex; align-items: center; gap: 10px; }
.ac-logo img { max-height: 44px; width: auto; }
.ac-logo svg { max-height: 44px; width: auto; }
.ac-logo-text {
    font-family: var(--ff-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--clr-text);
}

.ac-nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 110;
}
.ac-nav-toggle span {
    display: block;
    width: 26px;
    height: 3px;
    background: var(--clr-text);
    margin: 5px 0;
    border-radius: 2px;
    transition: all var(--transition);
}

.ac-header-nav { display: flex; align-items: center; }
.ac-header-nav ul { list-style: none; display: flex; gap: 0; margin: 0; padding: 0; }
.ac-header-nav li { margin: 0; }
.ac-header-nav a {
    display: block;
    padding: 10px 18px;
    color: var(--clr-text);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    transition: color var(--transition);
}
.ac-header-nav a::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 18px;
    right: 18px;
    height: 2px;
    background: var(--clr-emerald);
    transform: scaleX(0);
    transition: transform var(--transition);
}
.ac-header-nav a:hover { color: var(--clr-emerald); }
.ac-header-nav a:hover::after { transform: scaleX(1); }
.ac-header-nav .current-menu-item a { color: var(--clr-emerald); }
.ac-header-nav .current-menu-item a::after { transform: scaleX(1); }

/* ===== КОНТЕНТ ===== */
.ac-site-main { flex: 1; }

.ac-container {
    max-width: 1260px;
    margin: 0 auto;
    padding: 0 20px;
}

.ac-content-wrap {
    display: flex;
    gap: 40px;
    padding: 32px 0 60px;
}

.ac-content-area { flex: 1; min-width: 0; }
.ac-content-area.ac-full { width: 85%; max-width: 85%; margin: 0 auto; }
.ac-content-area.ac-with-sidebar { width: 67%; }

.ac-sidebar {
    width: 27%;
    flex-shrink: 0;
}

.ac-sidebar .widget {
    background: var(--clr-white);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-card);
}

.ac-sidebar .widget-title,
.ac-sidebar .widgettitle {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 1em;
    padding-bottom: 0.6em;
    border-bottom: 2px solid var(--clr-emerald);
    margin-top: 0;
}

.ac-sidebar ul { list-style: none; margin: 0; padding: 0; }
.ac-sidebar li {
    padding: 6px 0;
    border-bottom: 1px solid var(--clr-border);
    margin: 0;
}
.ac-sidebar li:last-child { border-bottom: none; }
.ac-sidebar li a { font-size: 0.92rem; }

/* ===== ХЛЕБНЫЕ КРОШКИ ===== */
.ac-breadcrumbs {
    padding: 16px 0 8px;
    font-size: 0.85rem;
    color: var(--clr-text-sec);
}
.ac-breadcrumbs a { color: var(--clr-emerald); }
.ac-breadcrumbs span.ac-bc-sep {
    margin: 0 8px;
    color: var(--clr-border);
}
.ac-breadcrumbs span.ac-bc-current { color: var(--clr-text-sec); }

/* ===== КАРТОЧКА ЗАПИСИ ===== */
.ac-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 28px;
}

.ac-post-card {
    background: var(--clr-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: transform var(--transition), box-shadow var(--transition);
    display: flex;
    flex-direction: column;
}
.ac-post-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.ac-post-card-thumb {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: linear-gradient(135deg, var(--clr-paper), var(--clr-border));
}
.ac-post-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.ac-post-card:hover .ac-post-card-thumb img { transform: scale(1.04); }

.ac-post-card-body {
    padding: 22px 24px 28px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.ac-post-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.8rem;
    color: var(--clr-text-sec);
    margin-bottom: 10px;
}
.ac-post-card-meta .ac-cat {
    background: rgba(26,127,107,0.1);
    color: var(--clr-emerald);
    padding: 2px 10px;
    border-radius: var(--radius-pill);
    font-weight: 500;
}

.ac-post-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 10px;
    line-height: 1.35;
}
.ac-post-card-title a { color: var(--clr-text); }
.ac-post-card-title a:hover { color: var(--clr-emerald); }

.ac-post-card-excerpt {
    font-size: 0.9rem;
    color: var(--clr-text-sec);
    line-height: 1.6;
    flex: 1;
    margin-bottom: 16px;
}

.ac-post-card-footer { margin-top: auto; }

/* ===== ГЛАВНАЯ СТРАНИЦА — ГЕРОЙ-БЛОК ===== */
.ac-hero {
    background: linear-gradient(160deg, var(--clr-emerald) 0%, var(--clr-emerald-dark) 100%);
    color: var(--clr-white);
    padding: 72px 0 64px;
    position: relative;
    overflow: hidden;
}
.ac-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(212,175,55,0.12) 0%, transparent 70%);
    border-radius: 50%;
}
.ac-hero-content {
    max-width: 680px;
    position: relative;
    z-index: 2;
}
.ac-hero h1 {
    font-size: 2.6rem;
    font-weight: 800;
    color: var(--clr-white);
    margin-bottom: 0.5em;
    margin-top: 0;
}
.ac-hero p {
    font-size: 1.12rem;
    opacity: 0.92;
    margin-bottom: 1.6em;
    line-height: 1.7;
}
.ac-hero .ac-btn-cta {
    background: var(--clr-white);
    color: var(--clr-emerald);
    font-weight: 700;
}
.ac-hero .ac-btn-cta:hover {
    background: var(--clr-paper);
    color: var(--clr-emerald-dark);
}

/* Блок категорий */
.ac-categories-section {
    padding: 56px 0;
}
.ac-section-heading {
    text-align: center;
    margin-bottom: 40px;
}
.ac-section-heading h2 {
    font-size: 1.9rem;
    margin-bottom: 0.4em;
    margin-top: 0;
}
.ac-section-heading p {
    color: var(--clr-text-sec);
    font-size: 1rem;
    max-width: 560px;
    margin: 0 auto;
}

.ac-cats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.ac-cat-card {
    background: var(--clr-white);
    border-radius: var(--radius-md);
    padding: 36px 28px;
    text-align: center;
    box-shadow: var(--shadow-card);
    transition: all var(--transition);
    border: 2px solid transparent;
    cursor: default;
}
.ac-cat-card:hover {
    border-color: var(--clr-emerald);
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}
.ac-cat-card-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 18px;
    background: linear-gradient(135deg, rgba(26,127,107,0.1), rgba(26,127,107,0.05));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ac-cat-card-icon svg { width: 32px; height: 32px; color: var(--clr-emerald); }
.ac-cat-card h3 { font-size: 1.15rem; margin: 0 0 8px; }
.ac-cat-card p { font-size: 0.88rem; color: var(--clr-text-sec); margin: 0; }

/* Шкала подлинности */
.ac-auth-scale {
    padding: 56px 0;
    background: var(--clr-paper);
}
.ac-scale-demo {
    max-width: 600px;
    margin: 0 auto;
    padding: 36px;
    background: var(--clr-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
}
.ac-scale-bar-wrap {
    margin: 24px 0 16px;
    position: relative;
}
.ac-scale-bar {
    width: 100%;
    height: 12px;
    border-radius: 6px;
    background: linear-gradient(to right, var(--clr-terra), #f0c040, var(--clr-emerald));
    position: relative;
}
.ac-scale-thumb {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    background: var(--clr-white);
    border: 3px solid var(--clr-emerald);
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    transition: left 0.6s ease;
}
.ac-scale-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    color: var(--clr-text-sec);
}
.ac-scale-labels span:first-child { color: var(--clr-terra); font-weight: 600; }
.ac-scale-labels span:last-child { color: var(--clr-emerald); font-weight: 600; }

/* Блок эксперт */
.ac-expert-block {
    padding: 56px 0;
}
.ac-expert-inner {
    display: flex;
    align-items: center;
    gap: 40px;
    background: var(--clr-paper);
    border-radius: var(--radius-md);
    padding: 40px;
    position: relative;
    overflow: hidden;
}
.ac-expert-inner::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='40' height='40' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='40' height='40' fill='none'/%3E%3Ccircle cx='1' cy='1' r='0.6' fill='%23d4af3720'/%3E%3C/svg%3E");
    opacity: 0.5;
}
.ac-expert-photo {
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}
.ac-expert-photo-frame {
    width: 180px;
    height: 210px;
    background: var(--clr-white);
    border: 3px solid var(--clr-border);
    border-radius: 4px;
    padding: 10px 10px 40px;
    box-shadow: 4px 4px 16px rgba(0,0,0,0.1);
    transform: rotate(-2deg);
    display: flex;
    align-items: center;
    justify-content: center;
}
.ac-expert-photo-frame svg { width: 100%; height: 100%; color: var(--clr-text-sec); }
.ac-expert-text {
    position: relative;
    z-index: 2;
}
.ac-expert-text h2 { margin-top: 0; }
.ac-expert-text p { color: var(--clr-text-sec); }
.ac-expert-note {
    font-family: var(--ff-mono);
    font-size: 0.82rem;
    color: var(--clr-gold);
    margin-top: 12px;
    font-style: italic;
}

/* Последние записи на главной */
.ac-latest-section {
    padding: 56px 0 72px;
}

/* ===== ОДИНОЧНАЯ ЗАПИСЬ ===== */
.ac-single-header {
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--clr-border);
}
.ac-single-header h1 { margin-top: 0; }
.ac-single-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.85rem;
    color: var(--clr-text-sec);
}

.ac-entry-content h2, .ac-entry-content h3, .ac-entry-content h4 {
    margin-top: 1.6em;
}
.ac-entry-content img {
    border-radius: var(--radius-sm);
    margin: 1em 0;
}

/* УФ-фонарик */
.ac-uv-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border: 2px solid var(--clr-gold);
    border-radius: var(--radius-pill);
    background: var(--clr-white);
    color: var(--clr-gold);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    margin: 16px 0;
    transition: all var(--transition);
}
.ac-uv-toggle:hover { background: rgba(212,175,55,0.08); }
.ac-uv-toggle.is-active { background: var(--clr-gold); color: var(--clr-white); }

.ac-uv-hidden {
    color: rgba(244,241,234,0.05);
    transition: color 0.6s ease;
    background: repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(212,175,55,0.02) 2px, rgba(212,175,55,0.02) 4px);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-family: var(--ff-mono);
    font-size: 0.88rem;
    margin: 12px 0;
}
.ac-uv-revealed .ac-uv-hidden {
    color: var(--clr-gold);
    background: rgba(212,175,55,0.06);
}

/* ===== ПАГИНАЦИЯ ===== */
.ac-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    padding: 40px 0 20px;
    flex-wrap: wrap;
}
.ac-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 0.92rem;
    color: var(--clr-text);
    background: var(--clr-white);
    border: 1px solid var(--clr-border);
    transition: all var(--transition);
}
.ac-pagination .page-numbers:hover {
    border-color: var(--clr-emerald);
    color: var(--clr-emerald);
}
.ac-pagination .page-numbers.current {
    background: var(--clr-emerald);
    color: var(--clr-white);
    border-color: var(--clr-emerald);
}
.ac-pagination .page-numbers.dots { border: none; background: none; }

/* ===== ПОДВАЛ ===== */
.ac-footer {
    background: var(--clr-text);
    color: rgba(255,255,255,0.8);
    padding: 48px 0 0;
    margin-top: auto;
}
.ac-footer a { color: rgba(255,255,255,0.75); }
.ac-footer a:hover { color: var(--clr-white); }

.ac-footer-widgets {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 36px;
    margin-bottom: 40px;
}

.ac-footer-col .widget-title,
.ac-footer-col .widgettitle {
    color: var(--clr-white);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1em;
    padding-bottom: 0.5em;
    border-bottom: 2px solid var(--clr-emerald);
    margin-top: 0;
}

.ac-footer-col ul { list-style: none; margin: 0; padding: 0; }
.ac-footer-col li { padding: 4px 0; margin: 0; }
.ac-footer-col li a { font-size: 0.9rem; }

.ac-footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.12);
    padding: 20px 0;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
}

/* ===== ФОРМА ПОИСКА ===== */
.ac-search-form {
    display: flex;
    max-width: 480px;
}
.ac-search-form input[type="search"] {
    flex: 1;
    padding: 12px 18px;
    border: 2px solid var(--clr-border);
    border-right: none;
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    font-size: 0.95rem;
    font-family: var(--ff-body);
    outline: none;
    background: var(--clr-white);
    color: var(--clr-text);
    transition: border-color var(--transition);
}
.ac-search-form input[type="search"]:focus { border-color: var(--clr-emerald); }
.ac-search-form button {
    padding: 12px 20px;
    background: var(--clr-emerald);
    color: var(--clr-white);
    border: 2px solid var(--clr-emerald);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    transition: background var(--transition);
}
.ac-search-form button:hover { background: var(--clr-emerald-dark); border-color: var(--clr-emerald-dark); }

/* ===== КОММЕНТАРИИ ===== */
.ac-comments-area {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--clr-border);
}
.ac-comments-area h2 { margin-top: 0; }

.comment-list { list-style: none; margin: 0; padding: 0; }
.comment-list .comment {
    padding: 20px 0;
    border-bottom: 1px solid var(--clr-border);
    margin: 0;
}
.comment-list .comment:last-child { border-bottom: none; }
.comment-author { font-weight: 600; color: var(--clr-text); }
.comment-metadata { font-size: 0.8rem; color: var(--clr-text-sec); margin-bottom: 8px; }
.comment-body p { margin-bottom: 0.5em; }

.comment-respond { margin-top: 32px; }
.comment-respond label { display: block; font-weight: 500; margin-bottom: 4px; font-size: 0.9rem; }
.comment-respond input[type="text"],
.comment-respond input[type="email"],
.comment-respond input[type="url"],
.comment-respond textarea {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid var(--clr-border);
    border-radius: var(--radius-sm);
    font-family: var(--ff-body);
    font-size: 0.92rem;
    margin-bottom: 14px;
    transition: border-color var(--transition);
    background: var(--clr-white);
    color: var(--clr-text);
}
.comment-respond input:focus, .comment-respond textarea:focus {
    border-color: var(--clr-emerald);
    outline: none;
}
.comment-respond .submit {
    padding: 12px 32px;
    background: linear-gradient(135deg, var(--clr-emerald), var(--clr-emerald-dark));
    color: var(--clr-white);
    border: none;
    border-radius: var(--radius-cta);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
}
.comment-respond .submit:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }

/* ===== КУКИ ===== */
.ac-cookie-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--clr-text);
    color: rgba(255,255,255,0.9);
    padding: 18px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    z-index: 9999;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
    font-size: 0.88rem;
    transition: transform 0.4s ease;
}
.ac-cookie-bar.is-hidden { transform: translateY(100%); pointer-events: none; }
.ac-cookie-bar p { margin: 0; }
.ac-cookie-accept {
    padding: 8px 24px;
    background: var(--clr-emerald);
    color: var(--clr-white);
    border: none;
    border-radius: var(--radius-cta);
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background var(--transition);
}
.ac-cookie-accept:hover { background: var(--clr-emerald-dark); }

/* ===== 404 ===== */
.ac-404-section {
    text-align: center;
    padding: 80px 20px;
}
.ac-404-section h1 {
    font-size: 5rem;
    color: var(--clr-emerald);
    margin-bottom: 0.2em;
}
.ac-404-section p { color: var(--clr-text-sec); font-size: 1.1rem; margin-bottom: 24px; }
.ac-404-section .ac-search-form { margin: 0 auto 24px; }

/* ===== СТРАНИЦА БЛОГА ===== */
.ac-blog-header {
    margin-bottom: 32px;
}
.ac-blog-header h1 { margin-top: 0; }

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 960px) {
    .ac-cats-grid { grid-template-columns: repeat(2, 1fr); }
    .ac-footer-widgets { grid-template-columns: 1fr 1fr; }
    .ac-content-wrap { gap: 24px; }
    .ac-content-area.ac-with-sidebar { width: 65%; }
    .ac-sidebar { width: 30%; }
    .ac-expert-inner { flex-direction: column; text-align: center; }
    .ac-expert-photo-frame { margin: 0 auto; }
    h1 { font-size: 1.8rem; }
    .ac-hero h1 { font-size: 2rem; }
    .ac-posts-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
}

@media (max-width: 600px) {
    .ac-header-inner { min-height: 60px; }

    .ac-nav-toggle { display: block; }

    .ac-header-nav {
        position: fixed;
        top: 0; right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--clr-white);
        flex-direction: column;
        padding: 80px 24px 24px;
        box-shadow: -4px 0 24px rgba(0,0,0,0.1);
        transition: right var(--transition);
        z-index: 105;
    }
    .ac-header-nav.is-open { right: 0; }
    .ac-header-nav ul { flex-direction: column; gap: 0; }
    .ac-header-nav a { padding: 14px 0; border-bottom: 1px solid var(--clr-border); }
    .ac-header-nav a::after { display: none; }

    .ac-cats-grid { grid-template-columns: 1fr; }
    .ac-footer-widgets { grid-template-columns: 1fr; }

    .ac-content-wrap { flex-direction: column; }
    .ac-content-area.ac-with-sidebar, .ac-sidebar { width: 100%; }
    .ac-content-area.ac-full { width: 100%; max-width: 100%; }

    .ac-hero { padding: 48px 0 40px; }
    .ac-hero h1 { font-size: 1.7rem; }

    .ac-posts-grid { grid-template-columns: 1fr; }

    .ac-cookie-bar { flex-direction: column; gap: 12px; text-align: center; }

    .ac-pagination .page-numbers { min-width: 36px; height: 36px; font-size: 0.85rem; }
}

/* Overlay мобильного меню */
.ac-nav-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(45,62,80,0.4);
    z-index: 104;
}
.ac-nav-overlay.is-visible { display: block; }

/* Скринридер */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}
