/*
Theme Name: dds_rambioganar.com
Theme URI: https://rambioganar.com/
Author: Овчинникова Алиса
Author URI: https://rambioganar.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: rmbg
*/

/* ===== Reset & base ===== */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background-color: #F9F6F0;
    color: #1E2A2E;
    font-family: 'Inter', 'Lora', Georgia, serif;
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: #007B6B;
    text-decoration: none;
    transition: color .2s ease;
}
a:hover { color: #1E2A2E; }

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', 'Manrope', system-ui, sans-serif;
    font-weight: 700;
    color: #1E2A2E;
    letter-spacing: -0.01em;
    margin: 0 0 .6em;
    line-height: 1.25;
}
h1 { font-size: 2.4rem; }
h2 { font-size: 1.85rem; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.18rem; }

p { margin: 0 0 1em; }

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

blockquote {
    border-left: 4px solid #007B6B;
    margin: 1.4em 0;
    padding: .6em 1.2em;
    background: rgba(0, 123, 107, 0.05);
    color: #1E2A2E;
    font-style: italic;
    border-radius: 0 12px 12px 0;
}

code, pre {
    font-family: 'JetBrains Mono', Consolas, Monaco, monospace;
    background: #ECEAE1;
    border-radius: 6px;
}
code { padding: 1px 6px; font-size: 0.92em; }
pre { padding: 14px 18px; overflow-x: auto; }
pre code { background: none; padding: 0; }

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.2em 0;
    border: 1px solid #D9D4C4;
}
th, td {
    border: 1px solid #D9D4C4;
    padding: 10px 14px;
    text-align: left;
}
th {
    background: rgba(0, 123, 107, 0.08);
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

/* ===== Layout ===== */
.wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.site {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-main { flex: 1; padding: 40px 0 80px; }

/* ===== Header ===== */
.site-header {
    background: #FFFFFF;
    border-bottom: 1px solid rgba(0, 123, 107, 0.12);
    padding: 18px 0;
    position: relative;
}

.site-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 12% 30%, rgba(0,123,107,0.06) 0 8px, transparent 9px),
                      radial-gradient(circle at 85% 70%, rgba(74,111,165,0.05) 0 6px, transparent 7px),
                      radial-gradient(circle at 50% 20%, rgba(0,123,107,0.04) 0 4px, transparent 5px);
    pointer-events: none;
    opacity: 0.7;
}

.site-header > .wrap {
    display: flex;
    align-items: center;
    gap: 32px;
    position: relative;
    z-index: 1;
    flex-wrap: wrap;
}

.site-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    flex-shrink: 0;
}

.brand-logo {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: block;
}

.brand-text { display: flex; flex-direction: column; }

.brand-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.18rem;
    font-weight: 700;
    color: #1E2A2E;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.brand-desc {
    font-size: 0.82rem;
    color: #4A5B5E;
    line-height: 1.35;
    margin-top: 2px;
    max-width: 360px;
}

.primary-nav {
    margin-left: auto;
    display: flex;
}

.primary-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 28px;
    align-items: center;
}

.primary-nav a {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 0.97rem;
    color: #1E2A2E;
    padding: 6px 0;
    border-bottom: 2px solid transparent;
    transition: border-color .2s ease, color .2s ease;
}
.primary-nav a:hover,
.primary-nav .current-menu-item > a,
.primary-nav .current_page_item > a {
    color: #007B6B;
    border-bottom-color: #007B6B;
}

.nav-toggle {
    display: none;
    background: none;
    border: 2px solid #007B6B;
    color: #007B6B;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 30px;
    cursor: pointer;
    margin-left: auto;
    transition: background .2s ease, color .2s ease;
}
.nav-toggle:hover { background: #007B6B; color: #fff; }

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 13px 30px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.97rem;
    color: #ffffff;
    background: linear-gradient(135deg, #00A088 0%, #007B6B 60%, #005C50 100%);
    border-radius: 40px;
    border: none;
    cursor: pointer;
    transition: background-position .35s ease, box-shadow .25s ease, transform .15s ease;
    background-size: 180% 180%;
    background-position: 0 0;
}
.btn:hover {
    color: #ffffff;
    background-position: 100% 100%;
    box-shadow: 0 0 12px rgba(0, 123, 107, 0.4);
}
.btn:active { transform: translateY(1px); }

.btn-ghost {
    background: transparent;
    color: #007B6B;
    border: 2px solid #007B6B;
    padding: 11px 28px;
}
.btn-ghost:hover {
    background: #007B6B;
    color: #ffffff;
    box-shadow: 0 0 12px rgba(0, 123, 107, 0.35);
}

/* ===== Wave divider ===== */
.wave-divider {
    display: block;
    width: 100%;
    height: 60px;
    color: #F9F6F0;
}

/* ===== Hero / sections ===== */
.hero {
    position: relative;
    background: linear-gradient(160deg, #F9F6F0 0%, #EAF1EF 70%, #DDE7E5 100%);
    padding: 70px 0 90px;
    overflow: hidden;
}

.hero::after {
    content: "";
    position: absolute;
    right: -120px;
    top: -80px;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0,123,107,0.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero-inner {
    position: relative;
    max-width: 720px;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: .5em;
}

.hero p.lead {
    font-size: 1.18rem;
    color: #4A5B5E;
    margin-bottom: 1.6em;
    max-width: 600px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.section {
    padding: 70px 0;
    position: relative;
}
.section + .section { border-top: 1px solid rgba(0, 123, 107, 0.08); }

.section-alt { background: #FFFFFF; }

.section-title {
    text-align: center;
    margin: 0 auto 14px;
    max-width: 740px;
}

.section-lead {
    text-align: center;
    color: #4A5B5E;
    max-width: 720px;
    margin: 0 auto 50px;
    font-size: 1.05rem;
}

/* ===== Eco-cards grid ===== */
.eco-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.eco-card {
    background: #FFFFFF;
    padding: 32px 28px;
    border-top-left-radius: 28px;
    border-bottom-right-radius: 28px;
    border-top-right-radius: 4px;
    border-bottom-left-radius: 4px;
    border: 1px solid rgba(0, 123, 107, 0.1);
    transition: box-shadow .25s ease, border-color .25s ease, transform .25s ease;
    position: relative;
}
.eco-card:hover {
    box-shadow: 0 14px 36px rgba(0, 123, 107, 0.12);
    border-color: rgba(0, 123, 107, 0.4);
    transform: translateY(-3px);
}

.eco-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(0,123,107,0.12), rgba(74,111,165,0.12));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    color: #007B6B;
}
.eco-card-icon svg { width: 30px; height: 30px; }

.eco-card h3 { font-size: 1.22rem; margin-bottom: .45em; }
.eco-card p { color: #4A5B5E; margin: 0; font-size: 0.97rem; }

/* ===== Stats ===== */
.stats-band {
    background: linear-gradient(135deg, #007B6B 0%, #005C50 100%);
    color: #F9F6F0;
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}
.stats-band::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 18% 40%, rgba(255,255,255,0.05) 0 22px, transparent 23px),
        radial-gradient(circle at 78% 60%, rgba(255,255,255,0.04) 0 16px, transparent 17px),
        radial-gradient(circle at 45% 25%, rgba(255,255,255,0.04) 0 10px, transparent 11px);
    pointer-events: none;
}
.stats-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 28px;
    text-align: center;
}
.stat-item .stat-icon {
    color: #F9F6F0;
    margin-bottom: 8px;
    display: inline-block;
}
.stat-num {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.6rem;
    font-weight: 700;
    line-height: 1;
    color: #ffffff;
    display: block;
    margin-bottom: 6px;
}
.stat-label { font-size: 0.95rem; opacity: 0.92; }

/* ===== Steps / process ===== */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 22px;
    counter-reset: step-counter;
}
.step-item {
    background: #F9F6F0;
    padding: 28px 24px 24px;
    border-radius: 18px;
    border: 1px solid rgba(74, 111, 165, 0.18);
    position: relative;
    counter-increment: step-counter;
}
.step-item::before {
    content: counter(step-counter);
    position: absolute;
    top: -16px;
    left: 24px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4A6FA5, #355581);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
}
.step-item h4 { margin-top: 14px; margin-bottom: .35em; }
.step-item p { color: #4A5B5E; font-size: 0.95rem; margin: 0; }

/* ===== Posts grid (front page latest) ===== */
.front-posts {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 28px;
}

/* ===== Card (post card, used on archives, blog, latest) ===== */
.card {
    background: #FFFFFF;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(0, 123, 107, 0.1);
    display: flex;
    flex-direction: column;
    transition: box-shadow .25s ease, transform .2s ease, border-color .25s ease;
}
.card:hover {
    box-shadow: 0 16px 38px rgba(0, 123, 107, 0.12);
    border-color: rgba(0, 123, 107, 0.32);
    transform: translateY(-3px);
}

.card-thumb-wrap {
    overflow: hidden;
    background: #ECEAE1;
}
.card-thumb-wrap a { display: block; }
.card-thumb-wrap img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    display: block;
    transition: transform .35s ease;
}
.card:hover .card-thumb-wrap img { transform: scale(1.04); }

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

.card-meta {
    font-size: 0.82rem;
    color: #4A5B5E;
    margin-bottom: 10px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.card-meta a { color: #007B6B; }
.card-meta a:hover { color: #1E2A2E; }

.card-title {
    font-size: 1.18rem;
    margin: 0 0 10px;
    line-height: 1.3;
}
.card-title a { color: #1E2A2E; }
.card-title a:hover { color: #007B6B; }

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

.card-more {
    margin-top: auto;
    align-self: flex-start;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.92rem;
    color: #007B6B;
    border-bottom: 2px solid transparent;
    padding-bottom: 2px;
    transition: border-color .2s ease, color .2s ease;
}
.card-more:hover {
    color: #1E2A2E;
    border-bottom-color: #007B6B;
}

/* ===== Mosaic blog grid ===== */
.mosaic-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 24px;
    grid-auto-flow: dense;
}
.mosaic-grid .card { grid-column: span 2; }
.mosaic-grid .card:first-child { grid-column: span 6; }
.mosaic-grid .card:first-child .card-thumb-wrap img {
    aspect-ratio: 21 / 9;
    max-height: 460px;
    object-fit: cover;
}
.mosaic-grid .card:nth-child(4n+2) { grid-column: span 3; }
.mosaic-grid .card:nth-child(4n+5) { grid-column: span 3; }

/* ===== Layout with sidebar ===== */
.content-area {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}
.has-sidebar .content-area {
    grid-template-columns: minmax(0, 67%) minmax(0, 27%);
    gap: 6%;
}
.no-sidebar .content-area { max-width: 85%; margin: 0 auto; }

@media (max-width: 960px) {
    .has-sidebar .content-area { grid-template-columns: 1fr; }
    .no-sidebar .content-area { max-width: 100%; }
}

/* ===== Single post / page ===== */
.entry-header { margin-bottom: 30px; }
.entry-title { margin-bottom: .25em; }
.entry-meta {
    color: #4A5B5E;
    font-size: 0.92rem;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.entry-thumbnail {
    margin: 0 0 30px;
    border-radius: 18px;
    overflow: hidden;
    background: #ECEAE1;
}
.entry-thumbnail img { display: block; width: 100%; height: auto; }

.entry-content > * + * { margin-top: 1em; }
.entry-content h2 { margin-top: 1.5em; }
.entry-content h3 { margin-top: 1.3em; }
.entry-content img { border-radius: 12px; }

.entry-footer {
    margin-top: 40px;
    padding-top: 22px;
    border-top: 1px solid rgba(0, 123, 107, 0.15);
    color: #4A5B5E;
    font-size: 0.92rem;
}
.entry-footer a {
    display: inline-block;
    background: rgba(0, 123, 107, 0.08);
    padding: 4px 12px;
    border-radius: 20px;
    margin: 0 4px 6px 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
}
.entry-footer a:hover { background: rgba(0, 123, 107, 0.18); }

/* ===== Sidebar ===== */
.widget-area .widget {
    background: #FFFFFF;
    padding: 22px 24px;
    border-radius: 18px;
    margin-bottom: 24px;
    border: 1px solid rgba(0, 123, 107, 0.1);
}
.widget-title {
    font-size: 1.08rem;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 123, 107, 0.18);
}
.widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.widget ul li {
    padding: 6px 0;
    border-bottom: 1px dashed rgba(0, 123, 107, 0.12);
}
.widget ul li:last-child { border-bottom: none; }
.widget ul li a { color: #1E2A2E; }
.widget ul li a:hover { color: #007B6B; }

/* ===== Search form ===== */
.search-form {
    display: flex;
    gap: 8px;
    align-items: stretch;
}
.search-form input[type="search"] {
    flex: 1;
    padding: 11px 16px;
    border: 1px solid rgba(0, 123, 107, 0.25);
    border-radius: 30px;
    font-family: inherit;
    font-size: 0.95rem;
    background: #F9F6F0;
    color: #1E2A2E;
    background-image: repeating-linear-gradient(0deg, transparent 0, transparent 23px, rgba(0,123,107,0.04) 23px, rgba(0,123,107,0.04) 24px);
}
.search-form input[type="search"]:focus {
    outline: none;
    border-color: #007B6B;
    background: #FFFFFF;
}
.search-form button {
    padding: 11px 22px;
    background: linear-gradient(135deg, #00A088, #007B6B);
    color: #ffffff;
    border: none;
    border-radius: 30px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: box-shadow .2s ease;
}
.search-form button:hover { box-shadow: 0 0 10px rgba(0, 123, 107, 0.4); }

/* ===== Pagination ===== */
.pagination {
    margin-top: 50px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}
.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    border-radius: 30px;
    background: #FFFFFF;
    color: #1E2A2E;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    border: 1px solid rgba(0, 123, 107, 0.2);
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.pagination .page-numbers:hover {
    background: rgba(0, 123, 107, 0.08);
    border-color: #007B6B;
}
.pagination .page-numbers.current {
    background: linear-gradient(135deg, #00A088, #007B6B);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 0 10px rgba(0, 123, 107, 0.3);
}
.pagination .page-numbers.dots {
    background: transparent;
    border: none;
}

/* ===== Breadcrumbs ===== */
.breadcrumbs {
    margin: 24px 0 18px;
    font-size: 0.88rem;
    color: #4A5B5E;
}
.breadcrumbs a { color: #007B6B; }
.breadcrumbs a:hover { color: #1E2A2E; }
.breadcrumbs .sep { margin: 0 8px; opacity: 0.5; }
.breadcrumbs .current { color: #1E2A2E; }

/* ===== Comments ===== */
.comments-area {
    margin-top: 60px;
    padding-top: 32px;
    border-top: 1px solid rgba(0, 123, 107, 0.15);
}
.comments-title { margin-bottom: 24px; }
.comment-list {
    list-style: none;
    padding: 0;
    margin: 0 0 32px;
}
.comment-list li { margin-bottom: 18px; }
.comment-list .children {
    list-style: none;
    padding-left: 28px;
    margin-top: 18px;
}
.comment-body {
    background: #FFFFFF;
    padding: 20px 22px;
    border-radius: 14px;
    border: 1px solid rgba(0, 123, 107, 0.1);
}
.comment-meta {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #4A5B5E;
}
.comment-meta .fn { color: #1E2A2E; font-weight: 600; font-style: normal; }
.comment-content p:last-child { margin-bottom: 0; }
.comment-reply-link {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: #007B6B;
}

.comment-respond {
    background: #FFFFFF;
    padding: 26px 28px;
    border-radius: 18px;
    border: 1px solid rgba(0, 123, 107, 0.1);
}
.comment-respond .comment-form-comment label,
.comment-respond .comment-form-author label,
.comment-respond .comment-form-email label,
.comment-respond .comment-form-url label {
    display: block;
    margin-bottom: 6px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.92rem;
    font-weight: 500;
}
.comment-respond input[type="text"],
.comment-respond input[type="email"],
.comment-respond input[type="url"],
.comment-respond textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid rgba(0, 123, 107, 0.2);
    border-radius: 12px;
    background: #F9F6F0;
    font-family: inherit;
    font-size: 0.97rem;
    color: #1E2A2E;
}
.comment-respond input:focus,
.comment-respond textarea:focus {
    outline: none;
    border-color: #007B6B;
    background: #FFFFFF;
}
.comment-respond p { margin-bottom: 14px; }
.comment-respond .form-submit { margin-top: 18px; }
.comment-respond .submit {
    padding: 12px 28px;
    background: linear-gradient(135deg, #00A088, #007B6B);
    color: #fff;
    border: none;
    border-radius: 40px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: box-shadow .2s ease;
}
.comment-respond .submit:hover { box-shadow: 0 0 12px rgba(0, 123, 107, 0.4); }

/* ===== Footer ===== */
.site-footer {
    background: #1E2A2E;
    color: #C5CDCF;
    padding: 60px 0 26px;
    margin-top: auto;
    position: relative;
}

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

.footer-cols .widget {
    background: transparent;
    padding: 0;
    border: none;
    margin: 0;
}
.footer-cols .widget-title {
    color: #ffffff;
    border-bottom: 1px solid rgba(0, 160, 136, 0.4);
    padding-bottom: 10px;
    margin-bottom: 14px;
}
.footer-cols .widget ul li { border-bottom-color: rgba(255,255,255,0.08); }
.footer-cols .widget ul li a { color: #C5CDCF; }
.footer-cols .widget ul li a:hover { color: #00A088; }
.footer-cols .widget p { color: #C5CDCF; }

.footer-meter {
    text-align: center;
    background: rgba(0, 160, 136, 0.08);
    border: 1px solid rgba(0, 160, 136, 0.25);
    padding: 22px 24px;
    border-radius: 18px;
    margin-bottom: 36px;
}
.footer-meter-label {
    color: #C5CDCF;
    font-size: 0.9rem;
    margin-bottom: 8px;
}
.footer-meter-num {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #00A088;
    line-height: 1;
}
.footer-meter-units {
    font-size: 0.92rem;
    color: #C5CDCF;
    margin-top: 6px;
}

.eco-marks {
    display: flex;
    gap: 18px;
    justify-content: center;
    margin: 22px 0;
    flex-wrap: wrap;
}
.eco-mark {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 14px;
    border-radius: 30px;
    font-size: 0.85rem;
    color: #C5CDCF;
}
.eco-mark svg { color: #00A088; }

.site-info {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 22px;
    color: #8C9799;
    font-size: 0.88rem;
}

/* ===== Cookie banner ===== */
/* Rule A11: hidden attribute must override display: flex */
.cookie-banner[hidden] { display: none !important; }

.cookie-banner {
    position: fixed;
    bottom: 22px;
    left: 22px;
    right: 22px;
    z-index: 9999;
    max-width: 720px;
    margin: 0 auto;
    background: #1E2A2E;
    color: #F9F6F0;
    padding: 18px 22px;
    border-radius: 18px;
    box-shadow: 0 10px 40px rgba(30, 42, 46, 0.35);
    display: flex;
    gap: 18px;
    align-items: center;
    flex-wrap: wrap;
    border: 1px solid rgba(0, 160, 136, 0.4);
}
.cookie-banner p {
    margin: 0;
    font-size: 0.93rem;
    line-height: 1.45;
    flex: 1 1 280px;
    min-width: 220px;
}
.cookie-banner a { color: #00A088; }
.cookie-banner a:hover { color: #ffffff; }
.cookie-banner button {
    flex-shrink: 0;
    padding: 10px 24px;
    background: linear-gradient(135deg, #00A088, #007B6B);
    color: #ffffff;
    border: none;
    border-radius: 30px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.93rem;
    cursor: pointer;
    transition: box-shadow .2s ease;
}
.cookie-banner button:hover { box-shadow: 0 0 12px rgba(0, 160, 136, 0.6); }

/* ===== 404 ===== */
.error-404 {
    text-align: center;
    padding: 60px 0;
    max-width: 640px;
    margin: 0 auto;
}
.error-404 .big {
    font-family: 'Montserrat', sans-serif;
    font-size: 7rem;
    font-weight: 700;
    line-height: 1;
    background: linear-gradient(135deg, #007B6B, #4A6FA5);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 18px;
}
.error-404 .search-form { margin: 26px auto; max-width: 460px; }

/* ===== Notices ===== */
.notice-error {
    background: rgba(201, 107, 74, 0.1);
    border-left: 4px solid #C96B4A;
    padding: 12px 16px;
    border-radius: 0 12px 12px 0;
    color: #1E2A2E;
}

/* ===== Responsive ===== */
@media (max-width: 960px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.55rem; }
    .hero { padding: 50px 0 60px; }
    .hero h1 { font-size: 2.1rem; }
    .section { padding: 56px 0; }

    .footer-cols { grid-template-columns: 1fr 1fr; gap: 28px; }

    .mosaic-grid { grid-template-columns: repeat(4, 1fr); }
    .mosaic-grid .card { grid-column: span 2; }
    .mosaic-grid .card:first-child { grid-column: span 4; }
}

@media (max-width: 600px) {
    body { font-size: 16px; }
    .wrap { padding: 0 18px; }

    .site-header > .wrap { gap: 14px; }
    .brand-desc { display: none; }
    .nav-toggle { display: inline-block; }

    .primary-nav {
        margin-left: 0;
        flex-basis: 100%;
        display: none;
    }
    .primary-nav.is-open { display: block; }
    .primary-nav ul {
        flex-direction: column;
        gap: 0;
        width: 100%;
        padding: 8px 0;
    }
    .primary-nav ul li {
        width: 100%;
        border-bottom: 1px solid rgba(0, 123, 107, 0.08);
    }
    .primary-nav a {
        display: block;
        padding: 12px 0;
        border-bottom: none;
    }

    .hero h1 { font-size: 1.7rem; }
    .hero p.lead { font-size: 1rem; }
    .section { padding: 44px 0; }

    .stats-grid { gap: 22px; }
    .stat-num { font-size: 2.1rem; }

    .footer-cols { grid-template-columns: 1fr; gap: 26px; }
    .mosaic-grid { grid-template-columns: 1fr; }
    .mosaic-grid .card,
    .mosaic-grid .card:first-child { grid-column: span 1; }

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

    .error-404 .big { font-size: 5rem; }

    /* Force full-width thumbs on mobile cards (rule A10 reset pattern) */
    .card-thumb-wrap img { aspect-ratio: 16 / 9; }
}

/* ===== WordPress core utility classes ===== */
.alignleft { float: left; margin: 0 1em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignwide { width: 100%; max-width: 1100px; margin-left: auto; margin-right: auto; }
.alignfull { width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.88rem; color: #4A5B5E; text-align: center; padding: 6px 0; }
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    height: 1px; width: 1px;
    overflow: hidden;
    position: absolute !important;
    word-wrap: normal !important;
}
.sticky { position: relative; }
.gallery { display: flex; flex-wrap: wrap; gap: 10px; }
.gallery .gallery-item { flex: 1 1 30%; }
