/*
Theme Name: dds_demenagement-ferri.com
Author: Петров Вячеслав
Version: 1.1
Description: Тема для информационного сайта об организации переездов и грузоперевозок.
Text Domain: dds_demenagement-ferri
*/

/* === Сброс и базовые === */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: 'Inter', 'Roboto', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #2E3A3B;
    background-color: #F7F5F2;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: #1C6E6F;
    text-decoration: none;
    transition: color .15s ease;
}
a:hover { color: #D97A3C; }

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', 'Inter', Arial, sans-serif;
    font-weight: 600;
    color: #1C6E6F;
    line-height: 1.25;
    margin: 0 0 0.6em;
}
h1 { font-size: 2.1rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }

p { margin: 0 0 1em; }

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

table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 1em;
    background: #fff;
    border: 1px solid #d8d4cf;
}
th, td {
    border: 1px solid #d8d4cf;
    padding: 0.6em 0.8em;
    text-align: left;
}
th {
    background: #ECE7E1;
    color: #1C6E6F;
    font-weight: 600;
}

blockquote {
    border-left: 3px solid #1C6E6F;
    margin: 1em 0;
    padding: 0.4em 1em;
    background: #ECE7E1;
    color: #5A6C6D;
}

code, pre, .num {
    font-family: 'Fira Mono', 'Roboto Mono', Consolas, monospace;
}
pre {
    background: #1A2628;
    color: #F7F5F2;
    padding: 1em;
    overflow-x: auto;
    border-radius: 6px;
}

/* === Контейнер === */
.wrap-outer { width: 100%; }
.wrap-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
}

/* === Шапка === */
.site-head {
    background: #fff;
    border-bottom: 3px solid #1C6E6F;
}
.head-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px 0;
    flex-wrap: wrap;
}
.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}
.brand-logo,
.brand-svg {
    width: 56px;
    height: 56px;
    flex: none;
    display: block;
}
.brand-svg { color: #1C6E6F; }
.brand-text { display: flex; flex-direction: column; }
.brand-name {
    font-family: 'Montserrat', 'Inter', Arial, sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    color: #1C6E6F;
    line-height: 1.2;
}
.brand-tagline {
    font-size: 0.82rem;
    color: #5A6C6D;
    line-height: 1.3;
    max-width: 380px;
}

.head-nav { flex: 1; display: flex; justify-content: flex-end; }
.head-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.head-nav a {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 20px;
    font-weight: 500;
    color: #2E3A3B;
    background: rgba(28,110,111,0.06);
    transition: background .15s, color .15s;
}
.head-nav a:hover,
.head-nav .current-menu-item > a,
.head-nav .current_page_item > a {
    background: #1C6E6F;
    color: #fff;
}

.menu-toggle {
    display: none;
    background: transparent;
    border: 1px solid #1C6E6F;
    color: #1C6E6F;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font: inherit;
}

/* === Основной layout === */
.page-body { padding: 28px 0 48px; }

.layout {
    display: flex;
    gap: 32px;
    align-items: flex-start;
}
.layout-main { flex: 1 1 auto; min-width: 0; }
.layout-side {
    flex: 0 0 calc(27% - 16px);
    min-width: 0;
}
.layout-no-side .layout-main { flex: 0 0 85%; max-width: 85%; }
.layout-full .layout-main { flex: 1 1 100%; max-width: 100%; }

@media (max-width: 960px) {
    .layout { flex-direction: column; }
    .layout-side { flex: none; width: 100%; }
    .layout-no-side .layout-main { flex: none; max-width: 100%; }
}

/* === Хлебные крошки === */
.crumbs {
    margin: 0 0 18px;
    font-size: 0.88rem;
    color: #5A6C6D;
}
.crumbs a { color: #1C6E6F; }
.crumbs .sep {
    margin: 0 8px;
    color: #B0A89F;
}

/* === Кнопки === */
.btn {
    display: inline-block;
    padding: 11px 22px;
    border-radius: 6px;
    font-family: 'Montserrat', 'Inter', Arial, sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.2;
    cursor: pointer;
    border: 1px solid transparent;
    text-align: center;
    transition: background .15s, color .15s, box-shadow .15s, transform .05s;
}
.btn-primary {
    background: #D97A3C;
    color: #fff;
    border-color: #D97A3C;
}
.btn-primary:hover {
    background: #BF5F2A;
    border-color: #BF5F2A;
    color: #fff;
    box-shadow: inset 0 2px 6px rgba(0,0,0,0.18);
}
.btn-ghost {
    background: transparent;
    color: #1C6E6F;
    border-color: #1C6E6F;
}
.btn-ghost:hover {
    background: #1C6E6F;
    color: #fff;
}

/* === Чипсы === */
.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin: 0 0 18px;
    padding: 0;
}
.chip {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    background: rgba(28,110,111,0.12);
    color: #1C6E6F;
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    border: 0;
    transition: background .15s, color .15s;
}
.chip.is-active,
.chip:hover {
    background: #1C6E6F;
    color: #fff;
}

/* === Карточки записей (список) === */
.cards-list {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(26,38,40,0.08), 0 4px 14px rgba(26,38,40,0.04);
    transition: box-shadow .2s, transform .2s;
}
.card:hover {
    box-shadow: 0 2px 6px rgba(26,38,40,0.10), 0 12px 28px rgba(26,38,40,0.08);
    transform: translateY(-2px);
}

.card-row {
    flex-direction: row;
}

/* Базовая обёртка миниатюры: для вертикальных карточек — обычный поток */
.card-thumb-wrap {
    overflow: hidden;
    background: #ECE7E1;
}
.card-thumb-wrap a {
    display: block;
}
.card-thumb-wrap img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    display: block;
}

/* Горизонтальная карточка: абсолютное позиционирование <a> по правилу A10 */
.card-row .card-thumb-wrap {
    flex: 0 0 280px;
    position: relative;
}
.card-row .card-thumb-wrap a {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
}
.card-row .card-thumb-wrap img {
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    object-fit: cover;
    display: block;
}

.card-body {
    flex: 1;
    padding: 18px 22px 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.card-title {
    font-size: 1.2rem;
    margin: 0;
    line-height: 1.3;
}
.card-title a { color: #1C6E6F; }
.card-title a:hover { color: #D97A3C; }

.card-meta {
    font-size: 0.82rem;
    color: #5A6C6D;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.card-meta a { color: inherit; }
.card-meta a:hover { color: #1C6E6F; }

.card-excerpt {
    color: #2E3A3B;
    font-size: 0.95rem;
}
.card-excerpt p {
    margin: 0 0 0.5em;
    background: none;
}
.card-excerpt p:last-child { margin-bottom: 0; }

.card-actions { margin-top: auto; padding-top: 6px; }

@media (max-width: 600px) {
    .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;
        object-fit: cover;
    }
}

/* === Сетка карточек (главная) === */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
@media (max-width: 960px) {
    .cards-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .cards-grid { grid-template-columns: 1fr; }
}

/* === Главная: тематические блоки === */
.front-section {
    margin: 0 0 44px;
    padding: 28px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(26,38,40,0.06);
}
.front-section.alt {
    background: linear-gradient(135deg, #1C6E6F 0%, #155757 100%);
    color: #F7F5F2;
}
.front-section.alt h2,
.front-section.alt h3 { color: #fff; }
.front-section.alt p { color: rgba(247,245,242,0.92); }
.front-section.alt a { color: #FFD7B8; }
.front-section.alt a:hover { color: #fff; }

.section-head {
    margin: 0 0 18px;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.section-head h2 { margin: 0; }
.section-head .sub {
    font-size: 0.95rem;
    color: #5A6C6D;
}

/* Калькулятор объёма */
.calc-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: center;
}
@media (max-width: 800px) {
    .calc-block { grid-template-columns: 1fr; }
}
.calc-truck {
    background: rgba(255,255,255,0.08);
    border-radius: 8px;
    padding: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 220px;
}
.calc-truck svg { width: 100%; max-width: 360px; height: auto; }
.calc-controls .calc-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.12);
}
.calc-controls .calc-row:last-child { border-bottom: 0; }
.calc-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 14px 0 0;
}
.calc-icon {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: rgba(255,255,255,0.10);
    border-radius: 20px;
    font-size: 0.88rem;
    color: #fff;
    cursor: pointer;
    border: 0;
    transition: background .15s;
}
.calc-icon:hover, .calc-icon.is-on { background: #D97A3C; }
.calc-total {
    margin-top: 16px;
    padding: 12px 16px;
    background: rgba(0,0,0,0.18);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.calc-total .num {
    font-size: 1.4rem;
    color: #FFD7B8;
}

/* Шаги-советы по упаковке */
.steps-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    counter-reset: step;
}
@media (max-width: 800px) {
    .steps-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .steps-row { grid-template-columns: 1fr; }
}
.step-card {
    background: #F7F5F2;
    border-radius: 8px;
    padding: 18px;
    border-left: 3px solid #1C6E6F;
    counter-increment: step;
    position: relative;
}
.step-card::before {
    content: counter(step);
    position: absolute;
    top: 14px;
    right: 16px;
    font-family: 'Fira Mono', 'Roboto Mono', monospace;
    font-size: 1.4rem;
    color: #D97A3C;
    font-weight: 700;
}
.step-card .step-icon {
    width: 40px;
    height: 40px;
    margin: 0 0 10px;
    color: #1C6E6F;
}
.step-card h3 { margin: 0 0 6px; font-size: 1.05rem; }
.step-card p { margin: 0; font-size: 0.92rem; color: #5A6C6D; }

/* Дорожная карта тарифов */
.tariff-map {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    counter-reset: tariff;
}
@media (max-width: 800px) {
    .tariff-map { grid-template-columns: 1fr; }
}
.tariff-card {
    background: #fff;
    border: 1px solid #ECE7E1;
    border-radius: 10px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
}
.tariff-card.is-featured {
    border-color: #D97A3C;
    box-shadow: 0 6px 18px rgba(217,122,60,0.15);
}
.tariff-card h3 { margin: 0; }
.tariff-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.tariff-card li {
    padding-left: 26px;
    position: relative;
    color: #2E3A3B;
    font-size: 0.95rem;
}
.tariff-card li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 5px;
    width: 16px;
    height: 16px;
    background: #4B7F52;
    border-radius: 50%;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M3.5 8.5l3 3 6-7' stroke='white' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
    background-size: 14px 14px;
    background-position: center;
    background-repeat: no-repeat;
}
.tariff-price {
    font-family: 'Fira Mono', 'Roboto Mono', monospace;
    font-size: 2rem;
    font-weight: 700;
    color: #1C6E6F;
    margin-top: auto;
}
.tariff-price small {
    display: block;
    font-size: 0.75rem;
    color: #5A6C6D;
    font-weight: 400;
}

/* Сайдбар === */
.layout-side .widget {
    background: #fff;
    border-radius: 8px;
    padding: 18px 20px;
    margin-bottom: 22px;
    box-shadow: 0 1px 3px rgba(26,38,40,0.06);
}
.widget-title {
    font-size: 1.05rem;
    color: #1C6E6F;
    margin: 0 0 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #ECE7E1;
}
.widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.widget li { line-height: 1.4; }
.widget a { color: #2E3A3B; }
.widget a:hover { color: #D97A3C; }

.widget-side-tip {
    background: #ECE7E1;
    border-left: 3px solid #D97A3C;
    padding: 10px 14px;
    border-radius: 6px;
    margin-top: 10px;
    font-size: 0.88rem;
    color: #5A6C6D;
}

/* === Контент записи === */
.entry {
    background: #fff;
    border-radius: 10px;
    padding: 28px 32px;
    box-shadow: 0 1px 3px rgba(26,38,40,0.06);
    margin-bottom: 22px;
}
.entry-title { margin: 0 0 12px; }
.entry-meta {
    color: #5A6C6D;
    font-size: 0.88rem;
    margin: 0 0 18px;
}
.entry-thumb {
    margin: 0 0 22px;
    border-radius: 8px;
    overflow: hidden;
}
.entry-thumb img { display: block; width: 100%; }
.entry-content > :first-child { margin-top: 0; }
.entry-content img {
    border-radius: 6px;
    margin: 8px 0;
    display: block;
}
.entry-content h2 { margin-top: 1.4em; }
.entry-content h3 { margin-top: 1.2em; }
.entry-content a { text-decoration: underline; }

@media (max-width: 600px) {
    .entry { padding: 20px 18px; }
}

/* === Пагинация === */
.pager {
    margin: 28px 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
}
.pager a, .pager span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border-radius: 6px;
    background: #fff;
    color: #1C6E6F;
    border: 1px solid #ECE7E1;
    font-weight: 500;
    text-decoration: none;
}
.pager a:hover {
    background: #1C6E6F;
    color: #fff;
    border-color: #1C6E6F;
}
.pager .current {
    background: #D97A3C;
    color: #fff;
    border-color: #D97A3C;
}
.pager .dots {
    background: transparent;
    border: 0;
    color: #5A6C6D;
}

/* === Комментарии === */
.comments-block {
    margin-top: 32px;
    background: #fff;
    border-radius: 10px;
    padding: 24px 28px;
    box-shadow: 0 1px 3px rgba(26,38,40,0.06);
}
.comments-title {
    margin: 0 0 18px;
    color: #1C6E6F;
}
.comm-list {
    list-style: none;
    padding: 0;
    margin: 0 0 22px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.comm-list .children {
    list-style: none;
    padding-left: 22px;
    margin: 14px 0 0;
    border-left: 2px solid #ECE7E1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.comm-item {
    background: #F7F5F2;
    border-radius: 8px;
    padding: 14px 16px;
}
.comm-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
    font-size: 0.88rem;
    color: #5A6C6D;
    flex-wrap: wrap;
}
.comm-author { font-weight: 600; color: #1C6E6F; }
.comm-text { font-size: 0.96rem; }
.comm-text p:last-child { margin-bottom: 0; }
.comm-reply { font-size: 0.85rem; }

.comment-form label {
    display: block;
    margin: 0 0 6px;
    font-weight: 500;
    font-size: 0.92rem;
}
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d8d4cf;
    border-radius: 6px;
    font: inherit;
    color: inherit;
    background: #fff;
    margin-bottom: 12px;
}
.comment-form textarea { min-height: 110px; resize: vertical; }
.comment-form input:focus,
.comment-form textarea:focus {
    outline: 0;
    border-color: #1C6E6F;
    box-shadow: 0 0 0 3px rgba(28,110,111,0.15);
}
.comment-form .submit {
    background: #D97A3C;
    color: #fff;
    border: 0;
    padding: 11px 22px;
    font: inherit;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    font-family: 'Montserrat', 'Inter', Arial, sans-serif;
}
.comment-form .submit:hover { background: #BF5F2A; }

/* === Поиск === */
.search-form {
    display: flex;
    gap: 8px;
    margin: 0 0 20px;
}
.search-form input[type="search"] {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #d8d4cf;
    border-radius: 6px;
    font: inherit;
    background: #fff;
}
.search-form input[type="search"]:focus {
    outline: 0;
    border-color: #1C6E6F;
    box-shadow: 0 0 0 3px rgba(28,110,111,0.15);
}
.search-form button {
    padding: 10px 18px;
    background: #1C6E6F;
    color: #fff;
    border: 0;
    border-radius: 6px;
    cursor: pointer;
    font: inherit;
    font-weight: 500;
}
.search-form button:hover { background: #155757; }

/* === 404 === */
.notfound {
    background: #fff;
    border-radius: 10px;
    padding: 40px 32px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(26,38,40,0.06);
}
.notfound .big {
    font-family: 'Fira Mono', 'Roboto Mono', monospace;
    font-size: 4.5rem;
    color: #D97A3C;
    line-height: 1;
    margin: 0 0 6px;
}

/* === Подвал === */
.site-foot {
    background: #1A2628;
    color: #C9CFCF;
    padding: 40px 0 0;
    margin-top: 36px;
}
.site-foot a { color: #C9CFCF; }
.site-foot a:hover { color: #FFD7B8; }
.foot-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    padding-bottom: 28px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
@media (max-width: 800px) {
    .foot-cols { grid-template-columns: 1fr; }
}
.foot-col h3 {
    color: #FFD7B8;
    font-size: 1.05rem;
    margin: 0 0 14px;
}
.foot-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.foot-zones {
    margin: 22px 0 28px;
}
.foot-zones h3 { color: #FFD7B8; font-size: 1.05rem; margin: 0 0 14px; }
.zones-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
}
@media (max-width: 800px) {
    .zones-grid { grid-template-columns: repeat(3, 1fr); }
}
.zone {
    padding: 8px 6px;
    text-align: center;
    background: rgba(255,255,255,0.04);
    border-radius: 6px;
    font-size: 0.85rem;
    color: #C9CFCF;
    border: 1px solid rgba(255,255,255,0.06);
    transition: background .15s;
}
.zone.is-on {
    background: rgba(217,122,60,0.18);
    color: #FFD7B8;
    border-color: rgba(217,122,60,0.4);
}

.foot-bottom {
    padding: 18px 0 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 0.88rem;
    color: #8A9697;
}

.theme-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: inherit;
    border: 1px solid rgba(255,255,255,0.18);
    padding: 6px 12px;
    border-radius: 20px;
    cursor: pointer;
    font: inherit;
    font-size: 0.85rem;
}
.theme-toggle:hover { background: rgba(255,255,255,0.06); }

/* "Режим грузчиков" — упрощённый ч/б интерфейс */
body.haul-mode {
    background: #ffffff;
    color: #000;
}
body.haul-mode .site-head { background: #fff; border-bottom-color: #000; }
body.haul-mode .brand-name,
body.haul-mode h1, body.haul-mode h2, body.haul-mode h3,
body.haul-mode .widget-title,
body.haul-mode .card-title a { color: #000; }
body.haul-mode .head-nav a { background: #f0f0f0; color: #000; }
body.haul-mode .head-nav a:hover,
body.haul-mode .head-nav .current-menu-item > a { background: #000; color: #fff; }
body.haul-mode .btn-primary { background: #000; border-color: #000; }
body.haul-mode .btn-primary:hover { background: #333; border-color: #333; }
body.haul-mode .btn-ghost { color: #000; border-color: #000; }
body.haul-mode .btn-ghost:hover { background: #000; color: #fff; }
body.haul-mode .card,
body.haul-mode .widget,
body.haul-mode .entry,
body.haul-mode .front-section { box-shadow: none; border: 1px solid #000; }
body.haul-mode .front-section.alt { background: #000; color: #fff; }
body.haul-mode .btn { font-size: 1.05rem; padding: 14px 24px; }
body.haul-mode .pager .current { background: #000; border-color: #000; }
body.haul-mode .pager a:hover { background: #000; border-color: #000; }

/* === Cookie-баннер === */
.cookie-banner[hidden] { display: none !important; }

.cookie-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 9000;
    background: #1A2628;
    color: #F7F5F2;
    border-radius: 10px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.3);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    max-width: 980px;
    margin: 0 auto;
}
.cookie-banner p {
    margin: 0;
    flex: 1 1 280px;
    font-size: 0.92rem;
    color: #C9CFCF;
}
.cookie-banner a { color: #FFD7B8; text-decoration: underline; }
.cookie-banner .btn {
    flex: 0 0 auto;
    padding: 9px 18px;
    font-size: 0.9rem;
}

/* === Меню (мобильный) === */
@media (max-width: 800px) {
    .menu-toggle { display: inline-block; }
    .head-nav {
        order: 99;
        width: 100%;
        flex: none;
    }
    .head-nav[hidden] { display: none !important; }
    .head-nav ul {
        flex-direction: column;
        gap: 4px;
        background: #F7F5F2;
        padding: 12px;
        border-radius: 8px;
        margin-top: 10px;
    }
    .head-nav a { display: block; }
}

/* === Прочее === */
.alignleft { float: left; margin: 0 1em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1em; }
.aligncenter { display: block; margin: 0 auto 1em; }
.wp-caption {
    background: #ECE7E1;
    padding: 8px;
    border-radius: 6px;
    max-width: 100%;
}
.wp-caption-text {
    font-size: 0.85rem;
    color: #5A6C6D;
    margin: 6px 0 0;
    text-align: center;
}
.screen-reader-text {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

.intro-lead {
    font-size: 1.1rem;
    color: #2E3A3B;
    line-height: 1.55;
    margin-bottom: 18px;
}

.tip-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    background: #D97A3C;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-right: 6px;
    vertical-align: middle;
}
.tip-badge.tip-check { background: #4B7F52; }
.tip-badge.tip-pro { background: #1C6E6F; }
