/*
Theme Name: encuestadoraparametrica.com
Theme URI: https://encuestadoraparametrica.com/
Author: Алексей Громов
Author URI: https://encuestadoraparametrica.com/
Description: Контентный информационно-образовательный сайт о социологических исследованиях, маркетинговой аналитике, интерпретации данных и основах статистики.
Version: 1.1
Requires at least: 6.0
Tested up to: 6.5
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: encuestadoraparametrica
*/

/* =========================================================
   Базовая сетка и сброс
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }

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

body {
    margin: 0;
    font-family: Georgia, "Times New Roman", Cambria, serif;
    font-size: 17px;
    line-height: 1.65;
    color: #1F2A3A;
    background: #F9F8F6;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

a {
    color: #C96A3E;
    text-decoration: none;
    transition: color .18s ease, border-color .18s ease, background-color .18s ease;
}
a:hover, a:focus { color: #9E4A22; text-decoration: underline; }

h1, h2, h3, h4, h5, h6 {
    font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
    color: #1F2A3A;
    line-height: 1.25;
    margin: 1.4em 0 .6em;
    font-weight: 600;
    letter-spacing: -.01em;
}
h1 { font-size: 2.1rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.12rem; }

p { margin: 0 0 1em; }

blockquote {
    margin: 1.4em 0;
    padding: 1em 1.3em;
    border-left: 4px solid #5E7B5C;
    background: #EBE7DD;
    color: #2B3A2A;
    font-style: italic;
    border-radius: 0 6px 6px 0;
}
blockquote p:last-child { margin-bottom: 0; }

code, kbd, pre, samp {
    font-family: "JetBrains Mono", Menlo, Consolas, monospace;
    font-size: .94em;
    background: #EBE7DD;
    padding: .12em .4em;
    border-radius: 3px;
    color: #3A2B20;
}
pre {
    padding: 1em 1.2em;
    overflow-x: auto;
    line-height: 1.55;
    border-left: 3px solid #C96A3E;
}

hr {
    border: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, #C96A3E 20%, #5E7B5C 80%, transparent);
    margin: 2.4em 0;
}

/* Таблицы */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.4em 0;
    border: 1px solid #D6CFBF;
    background: #fff;
}
th, td {
    border: 1px solid #D6CFBF;
    padding: .6em .8em;
    text-align: left;
    vertical-align: top;
}
th { background: #EBE7DD; font-weight: 600; color: #1F2A3A; }

/* =========================================================
   Контейнер и макет
   ========================================================= */
.wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 22px;
}

.site-main { padding: 32px 0 60px; }

.layout {
    display: grid;
    grid-template-columns: minmax(0, 67%) minmax(0, 27%);
    gap: 6%;
    align-items: start;
}
.layout--no-sidebar {
    display: block;
    max-width: 85%;
    margin: 0 auto;
}

/* =========================================================
   Шапка
   ========================================================= */
.site-header {
    background: #fff;
    border-bottom: 1px solid #E2DCCB;
    padding: 20px 0 0;
}

.header-inner {
    display: flex;
    gap: 28px;
    align-items: center;
    flex-wrap: wrap;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1 1 auto;
    min-width: 260px;
    text-decoration: none;
    color: inherit;
}
.brand:hover { text-decoration: none; color: inherit; }

.brand-logo {
    width: 58px;
    height: 58px;
    display: block;
    flex: 0 0 58px;
}

.brand-text { min-width: 0; }
.brand-title {
    font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.25;
    color: #1F2A3A;
    margin: 0;
    letter-spacing: -.005em;
}
.brand-title a { color: inherit; }
.brand-title a:hover { color: #C96A3E; text-decoration: none; }

.brand-desc {
    font-size: .82rem;
    color: #5A6475;
    margin: 4px 0 0;
    font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
    line-height: 1.45;
    max-width: 640px;
}

/* Навигация */
.primary-nav {
    margin-top: 18px;
    border-top: 1px solid #E2DCCB;
    padding: 8px 0;
}
.primary-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 24px;
}
.primary-nav a {
    display: inline-block;
    padding: 10px 4px;
    color: #1F2A3A;
    font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
    font-size: .96rem;
    font-weight: 500;
    border-bottom: 2px solid transparent;
}
.primary-nav a:hover,
.primary-nav .current-menu-item > a,
.primary-nav .current_page_item > a {
    color: #C96A3E;
    border-bottom-color: #C96A3E;
    text-decoration: none;
}

.menu-toggle {
    display: none;
    background: transparent;
    border: 1px solid #1F2A3A;
    color: #1F2A3A;
    font-family: "Inter", sans-serif;
    font-size: .9rem;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 12px;
}
.menu-toggle:hover { background: #1F2A3A; color: #F9F8F6; }

/* =========================================================
   Хлебные крошки
   ========================================================= */
.breadcrumbs {
    font-size: .85rem;
    font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
    color: #5A6475;
    margin: 0 0 22px;
    padding: 10px 0;
    border-bottom: 1px dashed #D6CFBF;
}
.breadcrumbs a { color: #5E7B5C; }
.breadcrumbs a:hover { color: #C96A3E; text-decoration: none; }
.breadcrumbs .sep {
    display: inline-block;
    margin: 0 8px;
    color: #B8AE97;
}
.breadcrumbs .current { color: #1F2A3A; font-weight: 500; }

/* =========================================================
   Карточки записей
   ========================================================= */
.card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #E2DCCB;
    border-radius: 8px;
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
    position: relative;
}
.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(31, 42, 58, .08);
    border-color: #C96A3E;
}

.card-thumb-wrap {
    display: block;
    overflow: hidden;
    background: #EBE7DD;
}
.card-thumb-wrap a { display: block; }
.card-thumb-wrap img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.card-body {
    flex: 1;
    padding: 18px 22px 22px;
    display: flex;
    flex-direction: column;
}

.card-meta {
    font-size: .78rem;
    font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
    color: #5A6475;
    margin-bottom: 6px;
    letter-spacing: .02em;
    text-transform: uppercase;
}
.card-meta a { color: #5E7B5C; }
.card-meta a:hover { color: #C96A3E; text-decoration: none; }
.card-meta .dot { display: inline-block; margin: 0 6px; color: #B8AE97; }

.card-title {
    font-size: 1.18rem;
    line-height: 1.3;
    margin: 4px 0 10px;
    font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
    font-weight: 600;
}
.card-title a { color: #1F2A3A; }
.card-title a:hover { color: #C96A3E; text-decoration: none; }

.card-excerpt {
    color: #3C4657;
    font-size: .95rem;
    line-height: 1.6;
    margin-bottom: 14px;
    flex: 1;
}
.card-excerpt p {
    margin: 0 0 .5em;
    background: none;
}
.card-excerpt p:last-child { margin-bottom: 0; }

.card-more {
    align-self: flex-start;
    margin-top: auto;
}

/* Шкала уверенности */
.confidence-scale {
    display: inline-flex;
    gap: 3px;
    vertical-align: middle;
    margin-left: 8px;
}
.confidence-scale i {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 2px;
    background: #EBE7DD;
}
.confidence-scale.c-1 i:nth-child(1) { background: #D9AE4B; }
.confidence-scale.c-2 i:nth-child(-n+2) { background: #D19858; }
.confidence-scale.c-3 i:nth-child(-n+3) { background: #CF8550; }
.confidence-scale.c-4 i { background: #C96A3E; }

/* =========================================================
   Параметрическая сетка (главная)
   ========================================================= */
.param-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 22px;
    margin: 30px 0;
}
.param-grid .card.span-wide { grid-column: span 8; }
.param-grid .card.span-narrow { grid-column: span 4; }
.param-grid .card.span-full { grid-column: span 12; }
.param-grid .card.span-half { grid-column: span 6; }

/* Горизонтальные карточки, если нужны */
.card--row {
    flex-direction: row;
}
.card--row .card-thumb-wrap {
    flex: 0 0 280px;
    position: relative;
    overflow: hidden;
}
.card--row .card-thumb-wrap a {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    display: block;
}
.card--row .card-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: auto;
}

/* =========================================================
   Кнопки
   ========================================================= */
.btn {
    display: inline-block;
    font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
    font-size: .93rem;
    font-weight: 500;
    padding: 9px 20px;
    border-radius: 6px;
    border: 1px solid #C96A3E;
    color: #C96A3E;
    background: transparent;
    cursor: pointer;
    line-height: 1.3;
    text-align: center;
    transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.btn:hover, .btn:focus {
    background: #C96A3E;
    color: #fff;
    text-decoration: none;
    border-color: #C96A3E;
}

.btn--pill {
    border-radius: 40px;
    background: rgba(94, 123, 92, .2);
    border-color: transparent;
    color: #2D3C2B;
}
.btn--pill:hover {
    background: rgba(94, 123, 92, .45);
    color: #1F2A3A;
}

.btn--form {
    border-radius: 4px;
    border: 1px dashed #5C8AA8;
    color: #345770;
    background: #F4F2EC;
}
.btn--form:hover {
    background: #E3EEF5;
    color: #1F2A3A;
    border-style: dashed;
}

/* =========================================================
   Тематические блоки на главной
   ========================================================= */
.section-block {
    margin: 48px 0;
    padding: 34px;
    background: #fff;
    border: 1px solid #E2DCCB;
    border-radius: 10px;
    position: relative;
}
.section-block::before {
    content: "";
    position: absolute;
    left: 34px;
    top: -10px;
    width: 52px;
    height: 3px;
    background: #C96A3E;
}
.section-block h2 {
    margin-top: 0;
    font-size: 1.7rem;
}
.section-block .lead {
    font-size: 1.05rem;
    color: #3C4657;
    max-width: 720px;
    margin-bottom: 22px;
}

.section-block--olive {
    background: linear-gradient(180deg, #F1EFE7, #EBE7DD);
    border-color: #D6CFBF;
}
.section-block--olive::before { background: #5E7B5C; }

.section-block--blue {
    background: #F1F5F8;
    border-color: #D9E3EB;
}
.section-block--blue::before { background: #5C8AA8; }

/* Сетка внутри блоков */
.block-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-top: 18px;
}
.block-grid .tile {
    background: #F9F8F6;
    border: 1px solid #E2DCCB;
    border-radius: 8px;
    padding: 22px;
}
.block-grid .tile h3 {
    margin-top: 0;
    font-size: 1.08rem;
    color: #1F2A3A;
}
.block-grid .tile p { font-size: .95rem; color: #3C4657; margin-bottom: 0; }

.tile-number {
    display: inline-block;
    font-family: "Inter", sans-serif;
    font-size: .78rem;
    font-weight: 600;
    color: #C96A3E;
    background: #F4E4DA;
    padding: 3px 9px;
    border-radius: 4px;
    margin-bottom: 10px;
    letter-spacing: .08em;
}

/* Лента гипотез (вместо слайдера) */
.hypothesis-ribbon {
    margin: 30px 0;
    overflow: hidden;
    position: relative;
}
.hypothesis-track {
    display: flex;
    gap: 18px;
    transition: transform .45s cubic-bezier(.2, .7, .2, 1);
    will-change: transform;
}
.hypothesis-card {
    flex: 0 0 calc((100% - 36px) / 3);
    background: #fff;
    border: 1px solid #E2DCCB;
    border-radius: 8px;
    padding: 22px;
    position: relative;
}
.hypothesis-card::before {
    content: "Гипотеза";
    display: block;
    font-family: "Inter", sans-serif;
    font-size: .72rem;
    color: #5E7B5C;
    letter-spacing: .1em;
    text-transform: uppercase;
    margin-bottom: 8px;
}
.hypothesis-card h3 {
    margin: 0 0 10px;
    font-size: 1.05rem;
    line-height: 1.35;
}
.hypothesis-card p {
    font-size: .92rem;
    color: #3C4657;
    margin-bottom: 0;
}
.hypothesis-controls {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 14px;
}
.hypothesis-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid #D6CFBF;
    background: #fff;
    color: #1F2A3A;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background .18s, color .18s, border-color .18s;
}
.hypothesis-btn:hover {
    background: #C96A3E;
    border-color: #C96A3E;
    color: #fff;
}
.hypothesis-btn:disabled {
    opacity: .45;
    cursor: not-allowed;
}

/* =========================================================
   Сайдбар и виджеты
   ========================================================= */
.sidebar {
    padding-top: 6px;
}
.widget {
    background: #EBE7DD;
    border-radius: 8px;
    padding: 20px 22px;
    margin-bottom: 22px;
    box-shadow: inset 0 1px 0 rgba(31, 42, 58, .04);
}
.widget-title {
    font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
    font-size: 1rem;
    margin: 0 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #D6CFBF;
    color: #1F2A3A;
    font-weight: 600;
}
.widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.widget li {
    padding: 7px 0;
    border-bottom: 1px dotted #D6CFBF;
    font-size: .94rem;
}
.widget li:last-child { border-bottom: none; }
.widget a { color: #1F2A3A; }
.widget a:hover { color: #C96A3E; text-decoration: none; }

.widget select, .widget input[type="text"], .widget input[type="search"] {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #D6CFBF;
    background: #fff;
    border-radius: 4px;
    font-size: .92rem;
    color: #1F2A3A;
}

/* =========================================================
   Подвал
   ========================================================= */
.site-footer {
    background: #1F2A3A;
    color: #D6DCE6;
    padding: 50px 0 22px;
    margin-top: 60px;
}
.site-footer a { color: #E8C497; }
.site-footer a:hover { color: #F9F8F6; }

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 34px;
    margin-bottom: 30px;
}
.footer-col .widget {
    background: transparent;
    padding: 0;
    margin: 0;
    box-shadow: none;
}
.footer-col .widget-title {
    color: #F9F8F6;
    border-bottom-color: rgba(255, 255, 255, .12);
}
.footer-col .widget li {
    border-bottom-color: rgba(255, 255, 255, .08);
}
.footer-col .widget a { color: #D6DCE6; }
.footer-col .widget a:hover { color: #E8C497; }
.footer-col p { color: #B8C0CE; font-size: .94rem; }

.site-copyright {
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, .1);
    font-size: .85rem;
    color: #9AA3B4;
    text-align: center;
    font-family: "Inter", sans-serif;
}

/* =========================================================
   Пагинация
   ========================================================= */
.pagination {
    margin: 34px 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    justify-content: center;
    font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
}
.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border: 1px solid #D6CFBF;
    border-radius: 6px;
    color: #1F2A3A;
    font-size: .92rem;
    background: #fff;
    text-decoration: none;
}
.pagination .page-numbers:hover {
    border-color: #C96A3E;
    color: #C96A3E;
    background: #F9F8F6;
}
.pagination .page-numbers.current {
    background: #C96A3E;
    border-color: #C96A3E;
    color: #fff;
    font-weight: 600;
}
.pagination .dots { border: none; background: transparent; }

/* =========================================================
   Запись / страница
   ========================================================= */
.entry-header { margin-bottom: 22px; }
.entry-title { margin: 0 0 8px; font-size: 2rem; line-height: 1.2; }
.entry-meta {
    font-family: "Inter", sans-serif;
    font-size: .85rem;
    color: #5A6475;
    margin-bottom: 14px;
}
.entry-meta a { color: #5E7B5C; }
.entry-meta a:hover { color: #C96A3E; text-decoration: none; }

.entry-thumb {
    margin: 0 0 26px;
    border-radius: 8px;
    overflow: hidden;
}
.entry-thumb img { display: block; width: 100%; height: auto; }

.entry-content p { margin: 0 0 1em; }
.entry-content img { border-radius: 6px; }
.entry-content h2 { margin-top: 1.6em; }
.entry-content h3 { margin-top: 1.4em; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; margin: 0 0 1em; }
.entry-content li { margin-bottom: .4em; }

.entry-tags {
    margin-top: 26px;
    padding-top: 18px;
    border-top: 1px dashed #D6CFBF;
    font-size: .9rem;
    color: #5A6475;
    font-family: "Inter", sans-serif;
}
.entry-tags a {
    display: inline-block;
    margin: 0 4px 4px 0;
    padding: 3px 10px;
    background: #EBE7DD;
    color: #2D3C2B;
    border-radius: 12px;
    font-size: .82rem;
}
.entry-tags a:hover { background: #5E7B5C; color: #fff; text-decoration: none; }

/* =========================================================
   Комментарии
   ========================================================= */
.comments-area {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 2px solid #D6CFBF;
}
.comments-title { font-size: 1.35rem; margin: 0 0 18px; }
.comment-list { list-style: none; margin: 0; padding: 0; }
.comment-list .comment {
    padding: 14px 0;
    border-bottom: 1px dotted #D6CFBF;
}
.comment-list .children { list-style: none; padding-left: 26px; margin-top: 10px; }
.comment-author { font-weight: 600; color: #1F2A3A; font-family: "Inter", sans-serif; }
.comment-date { color: #5A6475; font-size: .82rem; margin-left: 8px; font-family: "Inter", sans-serif; }
.comment-body p { margin: 6px 0; }
.comment-reply-link {
    display: inline-block;
    font-size: .82rem;
    color: #5E7B5C;
    font-family: "Inter", sans-serif;
}

.comment-form {
    margin-top: 22px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.comment-form p.comment-form-comment,
.comment-form p.form-submit,
.comment-form p.comment-notes,
.comment-form p.logged-in-as { grid-column: 1 / -1; }
.comment-form label {
    display: block;
    font-size: .86rem;
    font-family: "Inter", sans-serif;
    color: #3C4657;
    margin-bottom: 4px;
}
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #D6CFBF;
    border-radius: 4px;
    background: #fff;
    font-family: inherit;
    font-size: .95rem;
    color: #1F2A3A;
}
.comment-form textarea { min-height: 130px; resize: vertical; }
.comment-form input:focus, .comment-form textarea:focus {
    outline: none;
    border-color: #C96A3E;
    box-shadow: 0 0 0 3px rgba(201, 106, 62, .15);
}
.comment-form .form-submit input {
    background: transparent;
    border: 1px solid #C96A3E;
    color: #C96A3E;
    padding: 9px 22px;
    border-radius: 6px;
    font-family: "Inter", sans-serif;
    font-size: .94rem;
    cursor: pointer;
    transition: background .18s, color .18s;
}
.comment-form .form-submit input:hover {
    background: #C96A3E;
    color: #fff;
}

/* =========================================================
   Форма поиска
   ========================================================= */
.search-form {
    display: flex;
    gap: 8px;
    margin: 14px 0;
}
.search-form input[type="search"] {
    flex: 1;
    padding: 9px 12px;
    border: 1px solid #D6CFBF;
    border-radius: 6px;
    background: #fff;
    font-size: .95rem;
    color: #1F2A3A;
    font-family: inherit;
}
.search-form input[type="search"]:focus {
    outline: none;
    border-color: #C96A3E;
    box-shadow: 0 0 0 3px rgba(201, 106, 62, .15);
}
.search-form button, .search-form input[type="submit"] {
    background: transparent;
    border: 1px solid #C96A3E;
    color: #C96A3E;
    padding: 9px 18px;
    border-radius: 6px;
    font-family: "Inter", sans-serif;
    font-size: .9rem;
    cursor: pointer;
}
.search-form button:hover, .search-form input[type="submit"]:hover {
    background: #C96A3E;
    color: #fff;
}

/* =========================================================
   404
   ========================================================= */
.error-404 {
    text-align: center;
    padding: 40px 0;
}
.error-404 .error-code {
    font-family: "Inter", sans-serif;
    font-size: 6rem;
    font-weight: 700;
    letter-spacing: -.04em;
    color: #C96A3E;
    line-height: 1;
    margin: 0;
}
.error-404 h1 { margin-top: 10px; }
.error-404 .actions {
    margin-top: 26px;
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* =========================================================
   Cookie-баннер
   ========================================================= */
.cookie-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    background: #1F2A3A;
    color: #F9F8F6;
    padding: 16px 20px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
    display: flex;
    align-items: center;
    gap: 18px;
    z-index: 9999;
    font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
    font-size: .9rem;
    line-height: 1.5;
    max-width: 920px;
    margin: 0 auto;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner a { color: #E8C497; text-decoration: underline; }
.cookie-banner button {
    background: #C96A3E;
    border: none;
    color: #fff;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-family: inherit;
    font-size: .9rem;
    flex: 0 0 auto;
    transition: background .18s;
}
.cookie-banner button:hover { background: #9E4A22; }

/* =========================================================
   Рубричные паттерны
   ========================================================= */
.cat-pattern {
    height: 6px;
    border-radius: 8px 8px 0 0;
}
.cat-pattern--surveys {
    background:
        repeating-linear-gradient(90deg, transparent 0 6px, rgba(92,138,168,.35) 6px 7px),
        #EBE7DD;
}
.cat-pattern--marketing {
    background: linear-gradient(135deg, #F4E4DA 25%, transparent 25%) -6px 0,
                linear-gradient(135deg, transparent 75%, #F4E4DA 75%) -6px 0,
                #EBE7DD;
    background-size: 12px 12px;
}
.cat-pattern--interp {
    background: radial-gradient(circle at 30% 50%, rgba(94,123,92,.3) 0 7px, transparent 8px),
                radial-gradient(circle at 70% 50%, rgba(201,106,62,.28) 0 7px, transparent 8px),
                #EBE7DD;
}
.cat-pattern--stats {
    background: repeating-linear-gradient(90deg, #EBE7DD 0 10px, #1F2A3A 10px 11px);
}

/* =========================================================
   Адаптив
   ========================================================= */
@media (max-width: 960px) {
    .layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .layout--no-sidebar { max-width: 100%; }

    .param-grid { grid-template-columns: repeat(6, 1fr); }
    .param-grid .card.span-wide { grid-column: span 6; }
    .param-grid .card.span-narrow { grid-column: span 3; }
    .param-grid .card.span-full { grid-column: span 6; }
    .param-grid .card.span-half { grid-column: span 6; }

    .block-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 26px; }

    .hypothesis-card { flex: 0 0 calc((100% - 18px) / 2); }

    h1 { font-size: 1.8rem; }
    .entry-title { font-size: 1.6rem; }
}

@media (max-width: 600px) {
    body { font-size: 16px; }

    .wrap { padding: 0 16px; }

    .header-inner { gap: 16px; }
    .brand-logo { width: 48px; height: 48px; flex-basis: 48px; }
    .brand-title { font-size: .95rem; }
    .brand-desc { font-size: .78rem; }

    .menu-toggle { display: inline-block; }
    .primary-nav { padding: 0; }
    .primary-nav ul {
        display: none;
        flex-direction: column;
        gap: 0;
        padding: 6px 0;
    }
    .primary-nav.is-open ul { display: flex; }
    .primary-nav li {
        border-bottom: 1px dotted #D6CFBF;
    }
    .primary-nav a {
        padding: 10px 2px;
        border-bottom: none;
        width: 100%;
    }

    .param-grid { grid-template-columns: 1fr; }
    .param-grid .card.span-wide,
    .param-grid .card.span-narrow,
    .param-grid .card.span-full,
    .param-grid .card.span-half { grid-column: span 1; }

    .block-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 26px; }

    .section-block { padding: 22px 20px; }

    .hypothesis-card { flex: 0 0 100%; }

    .comment-form { grid-template-columns: 1fr; }

    .card--row { flex-direction: column; }
    .card--row .card-thumb-wrap {
        flex: none;
        width: 100%;
        position: static;
    }
    .card--row .card-thumb-wrap a {
        position: static;
    }
    .card--row .card-thumb-wrap img {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .entry-title { font-size: 1.4rem; }
    .error-404 .error-code { font-size: 4.2rem; }

    .cookie-banner {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        gap: 12px;
    }
}

/* Выравнивания для Gutenberg */
.alignleft { float: left; margin: .2em 1.4em .8em 0; max-width: 50%; }
.alignright { float: right; margin: .2em 0 .8em 1.4em; max-width: 50%; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text {
    font-size: .85rem;
    color: #5A6475;
    text-align: center;
    margin-top: 6px;
    font-family: "Inter", sans-serif;
}
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

/* skip link */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: #1F2A3A;
    color: #F9F8F6;
    padding: 10px 16px;
    z-index: 10000;
}
.skip-link:focus { left: 10px; top: 10px; }
