/*
Theme Name: maroquinerie-plastique.com
Theme URI: https://maroquinerie-plastique.com
Author: Анна Левина
Author URI: https://maroquinerie-plastique.com
Description: Контентный проект о дизайне кухни в новостройке с акцентом на планировку, эргономику, материалы, хранение и практичные интерьерные решения.
Version: 1.1
Requires at least: 6.0
Tested up to: 6.4
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: maroquinerie-plastique
Tags: blog, two-columns, custom-menu, custom-logo, featured-images, threaded-comments
*/

/* =========================================
   1. БАЗА И СБРОС
   ========================================= */
*, *::before, *::after { box-sizing: border-box; }

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

body {
    margin: 0;
    background: #FDFAF6;
    color: #2E2A28;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.55;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

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

a {
    color: #C26A4A;
    text-decoration: none;
    transition: color 0.18s ease;
}

a:hover {
    color: #2E2A28;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

p {
    margin: 0 0 1em;
    /* фон не задаём — только body и конкретные блоки */
}

h1, h2, h3, h4, h5, h6 {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.01em;
    color: #2E2A28;
    margin: 1.6em 0 0.6em;
}

h1 { font-size: 2.15rem; letter-spacing: -0.02em; }
h2 { font-size: 1.65rem; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.92rem; text-transform: uppercase; letter-spacing: 0.06em; }

ul, ol {
    margin: 0 0 1em;
    padding-left: 1.4em;
}

li { margin-bottom: 0.35em; }

/* Цифры и измерения — моноширинные */
.measure, .measure-num, code {
    font-family: "PT Mono", "SFMono-Regular", Menlo, Consolas, monospace;
    font-feature-settings: "tnum" 1;
}

code {
    background: #F2EBE1;
    padding: 1px 6px;
    border-radius: 3px;
    font-size: 0.92em;
}

pre {
    background: #F2EBE1;
    padding: 14px 16px;
    border-radius: 6px;
    overflow-x: auto;
    border-left: 3px solid #98A886;
}

blockquote {
    border-left: 3px solid #98A886;
    padding: 4px 18px;
    margin: 1.4em 0;
    color: #4a4340;
    background: #F2EBE1;
    font-style: italic;
}

hr {
    border: 0;
    border-top: 1px solid #D9D0C4;
    margin: 2em 0;
}

/* =========================================
   2. ТАБЛИЦЫ
   ========================================= */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.2em 0;
    border: 1px solid #D9D0C4;
}

th, td {
    border: 1px solid #D9D0C4;
    padding: 9px 12px;
    text-align: left;
    vertical-align: top;
}

th {
    background: #F2EBE1;
    font-weight: 600;
    color: #2E2A28;
}

tr:nth-child(even) td { background: #FBF7F1; }

/* =========================================
   3. КОНТЕЙНЕРЫ И LAYOUT
   ========================================= */
.shell {
    width: 92%;
    max-width: 1200px;
    margin: 0 auto;
}

.layout {
    display: grid;
    grid-template-columns: 67% 27%;
    gap: 6%;
    padding: 36px 0 60px;
}

.layout--full {
    display: block;
    width: 85%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 36px 0 60px;
}

.main-column { min-width: 0; }

/* =========================================
   4. ШАПКА
   ========================================= */
.site-head {
    background: #FDFAF6;
    border-bottom: 1px solid #D9D0C4;
    padding: 18px 0;
}

.site-head__inner {
    display: flex;
    align-items: center;
    gap: 26px;
    flex-wrap: wrap;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: #2E2A28;
    flex: 1 1 auto;
    min-width: 0;
}

.brand:hover { text-decoration: none; color: #2E2A28; }

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

.brand-text { min-width: 0; }

.brand-name {
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.25;
    color: #2E2A28;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.brand-tag {
    font-size: 0.82rem;
    color: #6c6661;
    margin: 2px 0 0;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Главное меню */
.main-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.main-nav a {
    display: inline-block;
    padding: 8px 14px;
    color: #2E2A28;
    border: 1px solid transparent;
    border-radius: 6px;
    font-size: 0.95rem;
    transition: background 0.18s, border-color 0.18s, color 0.18s;
}

.main-nav a:hover,
.main-nav .current-menu-item > a,
.main-nav .current_page_item > a {
    background: #98A886;
    color: #FDFAF6;
    text-decoration: none;
    border-color: #98A886;
}

/* Бургер */
.nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid #D9D0C4;
    border-radius: 6px;
    padding: 7px 10px;
    cursor: pointer;
    color: #2E2A28;
    font-size: 0.95rem;
}

.nav-toggle:focus { outline: 2px solid #98A886; outline-offset: 2px; }

/* =========================================
   5. ПОДВАЛ
   ========================================= */
.site-foot {
    background: #F2EBE1;
    border-top: 1px solid #D9D0C4;
    margin-top: 60px;
    padding: 40px 0 22px;
    color: #2E2A28;
}

.foot-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.foot-col h2,
.foot-col .widget-title,
.foot-col h3 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #2E2A28;
    margin: 0 0 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid #D9D0C4;
}

.foot-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.foot-col li {
    padding: 4px 0;
    border-bottom: 1px dotted #D9D0C4;
}

.foot-col li:last-child { border-bottom: none; }

.foot-col a {
    color: #2E2A28;
    font-size: 0.93rem;
}

.foot-col a:hover { color: #C26A4A; }

.foot-bottom {
    margin-top: 30px;
    padding-top: 18px;
    border-top: 1px solid #D9D0C4;
    text-align: center;
    font-size: 0.86rem;
    color: #6c6661;
}

/* =========================================
   6. КАРТОЧКИ ЗАПИСЕЙ (правило A8, A10)
   ========================================= */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 22px;
    margin: 24px 0;
}

.card {
    display: flex;
    flex-direction: column;
    background: #FDFAF6;
    border: 1px solid #D9D0C4;
    border-radius: 6px;
    overflow: hidden;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
    border-color: #98A886;
}

.card-thumb {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.card-thumb-empty {
    width: 100%;
    aspect-ratio: 16 / 10;
    background: #F2EBE1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #98A886;
}

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

.card-meta {
    font-size: 0.78rem;
    color: #6c6661;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.card-title {
    font-size: 1.15rem;
    margin: 0 0 8px;
    line-height: 1.3;
}

.card-title a {
    color: #2E2A28;
}

.card-title a:hover {
    color: #C26A4A;
    text-decoration: none;
}

.card-excerpt {
    color: #4a4340;
    font-size: 0.93rem;
    margin-bottom: 14px;
    flex: 1;
}

.card-excerpt p {
    margin: 0 0 0.5em;
    background: none;
}

.card-excerpt p:last-child { margin-bottom: 0; }

.card-foot {
    margin-top: auto;
}

/* Горизонтальные карточки в индексной ленте */
.card--row {
    display: flex;
    flex-direction: row;
    align-items: stretch;
}

.card-thumb-wrap {
    flex: 0 0 280px;
    position: relative;
    overflow: hidden;
    background: #F2EBE1;
}

.card-thumb-wrap a {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.card-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card--row .card-body {
    flex: 1;
    min-width: 0;
}

/* =========================================
   7. КНОПКИ
   ========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.2;
    border-radius: 6px;
    border: 1px solid #C26A4A;
    background: transparent;
    color: #C26A4A;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
    text-decoration: none;
}

.btn:hover {
    background: #C26A4A;
    color: #FDFAF6;
    transform: translateY(1px);
    text-decoration: none;
}

.btn--ghost {
    border-color: #D9D0C4;
    color: #2E2A28;
    padding: 6px 14px;
    font-size: 0.88rem;
}

.btn--ghost:hover {
    background: #98A886;
    border-color: #98A886;
    color: #FDFAF6;
}

.btn--storage::after {
    content: "";
    display: inline-block;
    width: 10px;
    height: 10px;
    border: 2px solid currentColor;
    border-radius: 1px;
    margin-left: 4px;
}

.btn:disabled,
.btn[aria-disabled="true"] {
    border-color: #D9D0C4;
    color: rgba(46, 42, 40, 0.4);
    background: transparent;
    cursor: not-allowed;
}

/* =========================================
   8. СТАТЬЯ И КОНТЕНТ
   ========================================= */
.entry {
    background: #FDFAF6;
}

.entry-head {
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid #D9D0C4;
}

.entry-title {
    margin: 0 0 8px;
    font-size: 2rem;
    line-height: 1.2;
}

.entry-meta {
    font-size: 0.85rem;
    color: #6c6661;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.entry-meta a { color: #6c6661; }
.entry-meta a:hover { color: #C26A4A; }

.entry-thumb {
    margin: 0 0 22px;
    border-radius: 6px;
    overflow: hidden;
}

.entry-thumb img { display: block; width: 100%; height: auto; }

.entry-content {
    font-size: 1.02rem;
}

.entry-content img {
    border-radius: 6px;
    margin: 1em 0;
    display: block;
}

.entry-foot {
    margin-top: 32px;
    padding-top: 18px;
    border-top: 1px solid #D9D0C4;
    font-size: 0.9rem;
    color: #6c6661;
}

.entry-foot a { color: #6c6661; }
.entry-foot a:hover { color: #C26A4A; }

/* =========================================
   9. САЙДБАР И ВИДЖЕТЫ
   ========================================= */
.sidebar { min-width: 0; }

.widget {
    background: #FDFAF6;
    border: 1px solid #D9D0C4;
    border-radius: 6px;
    padding: 18px;
    margin-bottom: 22px;
}

.widget-title,
.widget h2 {
    font-size: 0.92rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #2E2A28;
    margin: 0 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #D9D0C4;
}

.widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.widget li {
    padding: 5px 0;
    font-size: 0.92rem;
    border-bottom: 1px dotted #D9D0C4;
}

.widget li:last-child { border-bottom: none; }

.widget a { color: #2E2A28; }
.widget a:hover { color: #C26A4A; }

/* =========================================
   10. ПАГИНАЦИЯ
   ========================================= */
.pagination {
    margin: 32px 0 16px;
    display: flex;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    padding: 6px 12px;
    border: 1px solid #D9D0C4;
    border-radius: 6px;
    color: #2E2A28;
    font-size: 0.92rem;
    text-decoration: none;
    background: #FDFAF6;
    transition: background 0.18s, border-color 0.18s, color 0.18s;
}

.pagination a:hover {
    background: #98A886;
    border-color: #98A886;
    color: #FDFAF6;
    text-decoration: none;
}

.pagination .current {
    background: #C26A4A;
    border-color: #C26A4A;
    color: #FDFAF6;
}

.pagination .dots {
    border-color: transparent;
    background: transparent;
}

/* =========================================
   11. ХЛЕБНЫЕ КРОШКИ
   ========================================= */
.breadcrumbs {
    margin: 18px 0 8px;
    font-size: 0.85rem;
    color: #6c6661;
}

.breadcrumbs a { color: #6c6661; }
.breadcrumbs a:hover { color: #C26A4A; }
.breadcrumbs .sep { margin: 0 6px; color: #D9D0C4; }
.breadcrumbs .current { color: #2E2A28; }

/* =========================================
   12. ФОРМЫ И ПОИСК
   ========================================= */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="search"],
input[type="password"],
textarea {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #D9D0C4;
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.95rem;
    background: #FDFAF6;
    color: #2E2A28;
    transition: border-color 0.18s ease;
}

input:focus, textarea:focus {
    outline: none;
    border-color: #98A886;
}

input::placeholder, textarea::placeholder { color: #b0a89e; }

.search-form {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.search-form .search-field { flex: 1; }

.search-form .search-submit {
    padding: 9px 16px;
    border: 1px solid #C26A4A;
    background: #C26A4A;
    color: #FDFAF6;
    border-radius: 6px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.95rem;
    transition: background 0.18s, color 0.18s;
}

.search-form .search-submit:hover {
    background: transparent;
    color: #C26A4A;
}

/* =========================================
   13. КОММЕНТАРИИ
   ========================================= */
.comments {
    margin-top: 38px;
    padding-top: 22px;
    border-top: 1px solid #D9D0C4;
}

.comments-title {
    font-size: 1.3rem;
    margin: 0 0 18px;
}

.comment-list {
    list-style: none;
    margin: 0 0 22px;
    padding: 0;
}

.comment {
    background: #F2EBE1;
    border-radius: 6px;
    padding: 14px 16px;
    margin-bottom: 14px;
    border-left: 3px solid #98A886;
}

.comment .children {
    list-style: none;
    margin: 12px 0 0 22px;
    padding: 0;
}

.comment-meta {
    font-size: 0.84rem;
    color: #6c6661;
    margin-bottom: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: baseline;
}

.comment-author { font-weight: 600; color: #2E2A28; }

.comment-body p { margin: 0 0 0.5em; background: none; }
.comment-body p:last-child { margin-bottom: 0; }

.comment-reply-link {
    font-size: 0.85rem;
    color: #C26A4A;
}

.comment-respond {
    margin-top: 22px;
    background: #F2EBE1;
    padding: 18px;
    border-radius: 6px;
}

.comment-form-comment textarea { min-height: 110px; }

.comment-form label { display: block; font-size: 0.86rem; margin-bottom: 4px; color: #2E2A28; }
.comment-form p { margin-bottom: 12px; }

.no-comments {
    color: #6c6661;
    font-style: italic;
}

/* =========================================
   14. ГЛАВНАЯ — ТЕМАТИЧЕСКИЕ БЛОКИ
   ========================================= */
.intro {
    padding: 42px 0 28px;
    background: #FDFAF6;
}

.intro h1 {
    font-size: 2.2rem;
    margin: 0 0 14px;
    max-width: 820px;
    line-height: 1.2;
}

.intro__lead {
    font-size: 1.08rem;
    color: #4a4340;
    max-width: 780px;
    margin: 0 0 20px;
}

.section {
    padding: 38px 0;
    border-top: 1px solid #D9D0C4;
}

.section--alt { background: #F2EBE1; }

.section__head {
    margin-bottom: 22px;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 10px;
}

.section__title {
    font-size: 1.5rem;
    margin: 0;
}

.section__lead {
    color: #4a4340;
    margin: 0 0 20px;
    max-width: 760px;
}

/* Лента планировок (горизонтальный скролл) */
.plan-strip {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(260px, 1fr);
    gap: 18px;
    overflow-x: auto;
    padding: 4px 2px 18px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.plan-card {
    scroll-snap-align: start;
    background: #FDFAF6;
    border: 1px solid #D9D0C4;
    border-radius: 6px;
    padding: 18px 18px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

.plan-card__num {
    font-family: "PT Mono", monospace;
    font-size: 0.84rem;
    color: #98A886;
    letter-spacing: 0.06em;
}

.plan-card__title { font-size: 1.1rem; margin: 0; }
.plan-card__text { color: #4a4340; font-size: 0.92rem; margin: 0; flex: 1; }

.plan-card__measure {
    font-family: "PT Mono", monospace;
    font-size: 0.82rem;
    color: #6c6661;
    padding-top: 8px;
    border-top: 1px dashed #D9D0C4;
}

/* Колонки шагов */
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin: 18px 0;
}

.step {
    background: #FDFAF6;
    border: 1px solid #D9D0C4;
    border-radius: 6px;
    padding: 20px;
}

.section--alt .step { background: #FDFAF6; }

.step__num {
    font-family: "PT Mono", monospace;
    font-size: 1.4rem;
    color: #C26A4A;
    margin-bottom: 6px;
}

.step h3 { margin: 0 0 8px; font-size: 1.1rem; }

.step p { margin: 0; color: #4a4340; font-size: 0.94rem; }

/* Материалы */
.materials {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px;
}

.material {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background: #FDFAF6;
    border: 1px solid #D9D0C4;
    border-radius: 6px;
    padding: 14px;
}

.section--alt .material { background: #FDFAF6; }

.material__pat {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    border-radius: 4px;
    background: #F2EBE1;
}

.material__pat--wood {
    background-image: repeating-linear-gradient(45deg, #D9C9A8 0 4px, #c5b48f 4px 8px);
}
.material__pat--stone {
    background-image: radial-gradient(circle at 30% 30%, #d9d0c4 2px, transparent 3px),
                      radial-gradient(circle at 70% 60%, #b0a89e 2px, transparent 3px);
    background-size: 12px 12px;
    background-color: #e2dccf;
}
.material__pat--plastic {
    background-image: repeating-linear-gradient(0deg, #c8d8c0 0 3px, #b8cab0 3px 6px);
}
.material__pat--fabric {
    background-image: repeating-linear-gradient(0deg, #d2c2a8 0 2px, transparent 2px 4px),
                      repeating-linear-gradient(90deg, #d2c2a8 0 2px, transparent 2px 4px);
    background-color: #e6dac4;
}

.material__body { min-width: 0; }
.material h3 { font-size: 1rem; margin: 0 0 4px; }
.material p { font-size: 0.88rem; margin: 0; color: #4a4340; }

/* Чек-лист цитата */
.checklist-box {
    background: #FDFAF6;
    border: 1px solid #98A886;
    border-radius: 6px;
    padding: 24px;
    display: flex;
    gap: 22px;
    align-items: center;
    flex-wrap: wrap;
}

.section--alt .checklist-box { background: #FDFAF6; }

.checklist-box h3 { margin: 0 0 6px; font-size: 1.2rem; }
.checklist-box p { margin: 0; color: #4a4340; max-width: 560px; }
.checklist-box__cta { margin-left: auto; }

/* =========================================
   15. COOKIE-БАННЕР (правило A11)
   ========================================= */
.cookie-banner[hidden] { display: none !important; }

.cookie-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 999;
    background: #2E2A28;
    color: #FDFAF6;
    padding: 14px 18px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    box-shadow: 0 6px 20px rgba(0,0,0,0.18);
}

.cookie-banner p {
    margin: 0;
    font-size: 0.9rem;
    flex: 1 1 280px;
    color: #FDFAF6;
    background: none;
}

.cookie-banner a { color: #FDFAF6; text-decoration: underline; }

.cookie-banner__btn {
    background: #C26A4A;
    color: #FDFAF6;
    border: 1px solid #C26A4A;
    padding: 8px 18px;
    border-radius: 6px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.92rem;
    transition: background 0.18s, color 0.18s;
}

.cookie-banner__btn:hover {
    background: #FDFAF6;
    color: #C26A4A;
}

/* =========================================
   16. УВЕДОМЛЕНИЯ
   ========================================= */
.notice {
    background: #fff5e6;
    border: 1px solid #E0A458;
    border-left-width: 3px;
    border-radius: 6px;
    padding: 12px 14px;
    color: #6b4d18;
    margin: 14px 0;
}

/* 404 */
.error-page {
    text-align: center;
    padding: 50px 0;
}

.error-page h1 {
    font-size: 4rem;
    margin: 0 0 8px;
    font-family: "PT Mono", monospace;
    color: #C26A4A;
}

.error-page p { color: #4a4340; margin: 0 0 22px; }

.error-page .search-form { max-width: 460px; margin: 0 auto 22px; }

/* WP-выравнивание */
.alignleft { float: left; margin: 0 18px 14px 0; }
.alignright { float: right; margin: 0 0 14px 18px; }
.aligncenter { display: block; margin: 14px auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.85rem; color: #6c6661; text-align: center; margin-top: 4px; }
.screen-reader-text {
    position: absolute !important;
    clip: rect(1px, 1px, 1px, 1px);
    width: 1px; height: 1px;
    overflow: hidden;
}

/* =========================================
   17. АДАПТИВ
   ========================================= */
@media (max-width: 960px) {
    .layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .layout--full { width: 92%; }

    .foot-cols {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .steps { grid-template-columns: 1fr 1fr; }

    .nav-toggle { display: inline-flex; }

    .main-nav {
        order: 3;
        width: 100%;
    }

    .main-nav ul {
        display: none;
        flex-direction: column;
        gap: 2px;
        width: 100%;
        padding: 8px 0 0;
    }

    .main-nav.is-open ul { display: flex; }

    .main-nav a {
        width: 100%;
        padding: 10px 14px;
    }

    h1, .entry-title, .intro h1 { font-size: 1.7rem; }
    h2 { font-size: 1.35rem; }
}

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

    .shell { width: 94%; }

    .cards { grid-template-columns: 1fr; }

    .steps { grid-template-columns: 1fr; }

    .materials { grid-template-columns: 1fr; }

    /* Карточка-ряд: миниатюра сверху, текст справа сохраняется горизонтально для материалов
       но для cards--row сбрасываем абсолютное позиционирование (правило A10) */
    .card--row {
        flex-direction: column;
    }

    .card-thumb-wrap {
        flex: none;
        width: 100%;
        position: static;
    }

    .card-thumb-wrap a {
        position: static;
    }

    .card-thumb-wrap img {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .checklist-box { flex-direction: column; align-items: flex-start; }
    .checklist-box__cta { margin-left: 0; }

    .cookie-banner {
        left: 8px; right: 8px; bottom: 8px;
        padding: 12px;
    }

    .brand-logo { width: 38px; height: 38px; flex: 0 0 38px; }
    .brand-name { font-size: 0.95rem; }
    .brand-tag { display: none; }

    .intro h1 { font-size: 1.5rem; }
    .entry-title { font-size: 1.5rem; }

    .search-form { flex-wrap: wrap; }
    .search-form .search-submit { width: 100%; }
}
