/*
Theme Name: dds_newton-marketing.ru
Author: Алексей Демидов
Description: Специализированная онлайн-школа для предпринимателей и digital-специалистов. Тема в стиле «Лабораторный минимализм»: глубокий космический фон, неоново-лазерные акценты и инженерная геометрия.
Version: 1.1
Text Domain: nmk
Requires at least: 6.0
Requires PHP: 8.0
*/

/* =========================================================================
   Переменные
   ========================================================================= */
:root {
    --bg:        #090c15;
    --bg-2:      #0c1120;
    --surface:   #10162a;
    --surface-2: #141c33;
    --line:      rgba(122,146,196,0.16);
    --line-soft: rgba(122,146,196,0.09);
    --accent:    #2de2e6;
    --accent-2:  #7c5cff;
    --accent-3:  #b6ff3c;
    --text:      #e8edf9;
    --muted:     #93a1c4;
    --muted-2:   #6b7796;
    --danger:    #ff5d73;
    --radius:    4px;
    --shell:     1180px;
    --mono:      "JetBrains Mono", "SFMono-Regular", ui-monospace, "Cascadia Code", Consolas, monospace;
    --sans:      -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* =========================================================================
   База
   ========================================================================= */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.7;
    color: var(--text);
    background-color: var(--bg);
    background-image:
        linear-gradient(var(--line-soft) 1px, transparent 1px),
        linear-gradient(90deg, var(--line-soft) 1px, transparent 1px),
        radial-gradient(1200px 600px at 80% -10%, rgba(124,92,255,0.10), transparent 60%),
        radial-gradient(900px 500px at 0% 0%, rgba(45,226,230,0.07), transparent 55%);
    background-size: 46px 46px, 46px 46px, 100% 100%, 100% 100%;
    background-attachment: fixed;
    overflow-x: hidden;
}

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

a { color: var(--accent); text-decoration: none; }
a:hover { color: #7ff2f5; }

h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    color: #f2f6ff;
    letter-spacing: -0.01em;
}

h1 { font-size: 2.15rem; margin: 0 0 0.6em; }
h2 { font-size: 1.7rem; margin: 0 0 0.6em; }
h3 { font-size: 1.25rem; margin: 0 0 0.5em; }

p { margin: 0 0 1.1em; }

.shell {
    width: min(92%, var(--shell));
    margin-inline: auto;
}

/* Инженерная «точка» у секционных заголовков */
.tag-eyebrow {
    display: inline-block;
    font-family: var(--mono);
    font-size: 0.74rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.7rem;
    padding-left: 1.1rem;
    position: relative;
}
.tag-eyebrow::before {
    content: "";
    position: absolute;
    left: 0; top: 50%;
    width: 8px; height: 8px;
    transform: translateY(-50%);
    background: var(--accent-3);
    box-shadow: 0 0 10px var(--accent-3);
}

/* =========================================================================
   Кнопки — трафаретный «инженерный» стиль
   ========================================================================= */
.btn {
    display: inline-block;
    font-family: var(--mono);
    font-size: 0.86rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.72em 1.5em;
    border: 1px solid var(--accent);
    border-radius: var(--radius);
    color: var(--bg);
    background: var(--accent);
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover {
    color: var(--bg);
    box-shadow: 0 0 0 1px var(--accent), 0 0 22px rgba(45,226,230,0.45);
    transform: translateY(-1px);
}
.btn-ghost {
    background: transparent;
    color: var(--accent);
    border-color: var(--line);
}
.btn-ghost:hover {
    color: #fff;
    border-color: var(--accent);
    background: rgba(45,226,230,0.06);
    box-shadow: none;
}

/* =========================================================================
   Шапка
   ========================================================================= */
.site-header {
    border-bottom: 1px solid var(--line);
    background: rgba(9,12,21,0.72);
    position: relative;
}
.site-header::after {
    content: "";
    position: absolute;
    left: 0; bottom: -1px;
    width: 160px; height: 2px;
    background: linear-gradient(90deg, var(--accent), transparent);
}
.header-inner {
    display: flex;
    align-items: center;
    gap: 1.4rem;
    padding: 1.05rem 0;
    flex-wrap: wrap;
}
.brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-width: 0;
    flex: 1 1 auto;
}
.brand-logo, .brand-mark { flex: 0 0 auto; display: block; }
.brand-mark { width: 46px; height: 46px; }
.brand-text { min-width: 0; }
.brand-title {
    font-size: 0.98rem;
    font-weight: 700;
    color: #f2f6ff;
    line-height: 1.25;
    display: block;
    max-width: 640px;
}
.brand-title a { color: inherit; }
.brand-desc {
    display: none;
    font-size: 0.8rem;
    color: var(--muted);
    line-height: 1.4;
    margin-top: 0.25rem;
    max-width: 640px;
}

/* Навигация */
.nav-toggle {
    display: none;
    margin-left: auto;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--text);
    padding: 0.5rem 0.7rem;
    font-family: var(--mono);
    font-size: 0.8rem;
    cursor: pointer;
}
.main-nav ul {
    list-style: none;
    display: flex;
    gap: 0.4rem;
    margin: 0; padding: 0;
    flex-wrap: wrap;
}
.main-nav a {
    display: block;
    font-family: var(--mono);
    font-size: 0.82rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--muted);
    padding: 0.5rem 0.85rem;
    border: 1px solid transparent;
    border-radius: var(--radius);
}
.main-nav a:hover,
.main-nav .current-menu-item > a {
    color: var(--text);
    border-color: var(--line);
    background: rgba(124,92,255,0.08);
}

/* =========================================================================
   Основная раскладка
   ========================================================================= */
.site-main { padding: 2.4rem 0 3rem; }

.layout-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 67fr) minmax(0, 27fr);
    gap: 3%;
    align-items: start;
}
.layout-single .content-area,
.no-sidebar .content-area { }

.content-narrow { width: 85%; margin-inline: auto; }
@media (max-width: 960px) { .content-narrow { width: 100%; } }

/* =========================================================================
   Хлебные крошки
   ========================================================================= */
.crumbs {
    font-family: var(--mono);
    font-size: 0.78rem;
    color: var(--muted-2);
    margin: 0 0 1.6rem;
    letter-spacing: 0.02em;
}
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--accent); }
.crumbs .sep { color: var(--accent-2); margin: 0 0.15rem; }
.crumbs span:last-child { color: var(--text); }

/* =========================================================================
   Карточки записей
   ========================================================================= */
.cards { display: grid; gap: 1.5rem; }
.cards-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

.card {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    transition: border-color .18s ease, transform .18s ease;
}
.card::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 34px; height: 2px;
    background: var(--accent);
    z-index: 2;
}
.card:hover { border-color: rgba(45,226,230,0.4); transform: translateY(-2px); }

.card-thumb-wrap {
    display: block;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
}
.card-thumb-wrap img {
    width: 100%;
    height: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    transition: transform .3s ease;
}
.card:hover .card-thumb-wrap img { transform: scale(1.04); }

.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1.25rem 1.35rem 1.4rem;
    min-width: 0;
}
.card-title { font-size: 1.15rem; margin: 0 0 0.55rem; }
.card-title a { color: #f2f6ff; }
.card-title a:hover { color: var(--accent); }
.card-meta {
    font-family: var(--mono);
    font-size: 0.72rem;
    color: var(--muted-2);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 0.7rem;
}
.card-excerpt { color: var(--muted); font-size: 0.94rem; }
.card-excerpt p { margin: 0 0 0.5em; background: none; }
.card-more {
    margin-top: auto;
    padding-top: 0.9rem;
    font-family: var(--mono);
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--accent);
}
.card-more::after { content: " →"; }

/* =========================================================================
   Одиночная запись / страница
   ========================================================================= */
.entry {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 2rem 2.2rem;
}
.entry-header { margin-bottom: 1.5rem; border-bottom: 1px solid var(--line); padding-bottom: 1.2rem; }
.entry-title { margin: 0 0 0.6rem; }
.entry-meta {
    font-family: var(--mono);
    font-size: 0.76rem;
    color: var(--muted-2);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.entry-thumb { margin: 0 0 1.6rem; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.entry-thumb img { width: 100%; display: block; }

.entry-content { font-size: 1.03rem; }
.entry-content img { border-radius: var(--radius); }
.entry-content h2, .entry-content h3 { margin-top: 1.6em; }
.entry-content a { text-decoration: underline; text-underline-offset: 3px; }
.entry-content blockquote {
    margin: 1.6em 0;
    padding: 1.2rem 1.5rem;
    background: var(--surface-2);
    border-left: 3px solid var(--accent);
    border-radius: var(--radius);
    color: #dbe3f5;
    font-style: italic;
}
.entry-content ul, .entry-content ol { padding-left: 1.4em; }
.entry-content code {
    font-family: var(--mono);
    font-size: 0.88em;
    background: var(--bg-2);
    border: 1px solid var(--line);
    padding: 0.12em 0.4em;
    border-radius: 3px;
}
.entry-content pre {
    font-family: var(--mono);
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1rem 1.2rem;
    overflow-x: auto;
    min-width: 0;
}
.entry-tags {
    margin-top: 1.8rem;
    padding-top: 1.2rem;
    border-top: 1px solid var(--line);
    font-family: var(--mono);
    font-size: 0.8rem;
}
.entry-tags a {
    display: inline-block;
    color: var(--muted);
    border: 1px solid var(--line);
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius);
    margin: 0 0.3rem 0.3rem 0;
}
.entry-tags a:hover { color: var(--accent); border-color: var(--accent); }

/* Таблицы */
.entry-content table { width: 100%; border-collapse: collapse; margin: 1.4em 0; }
.entry-content table, .entry-content th, .entry-content td { border: 1px solid var(--line); }
.entry-content th, .entry-content td { padding: 0.6rem 0.8rem; text-align: left; }
.entry-content th { background: var(--surface-2); color: #f2f6ff; }

/* =========================================================================
   Сайдбар и виджеты
   ========================================================================= */
.sidebar { min-width: 0; }
.widget {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.3rem 1.4rem;
    margin-bottom: 1.5rem;
    color: var(--text);
}
.widget-title {
    font-size: 0.82rem;
    font-family: var(--mono);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
    margin: 0 0 1rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--line);
}
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding: 0.4rem 0; border-bottom: 1px solid var(--line-soft); }
.widget li:last-child { border-bottom: 0; }
.widget a { color: var(--muted); }
.widget a:hover { color: var(--accent); }
.widget, .widget p { color: var(--muted); }

/* =========================================================================
   Подвал
   ========================================================================= */
.site-footer {
    background: var(--bg-2);
    border-top: 1px solid var(--line);
    margin-top: 2rem;
    background-image: linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
    background-size: 46px 100%;
}
.footer-cols {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.2rem;
    padding: 2.8rem 0 1.8rem;
}
.footer-cols .widget {
    background: transparent;
    border: 0;
    padding: 0;
    margin: 0;
    color: #c6cfe6;
}
.footer-cols .widget-title { color: var(--accent-3); }
.footer-cols .widget a { color: #b3bdd8; }
.footer-cols .widget a:hover { color: var(--accent); }
.footer-cols .widget li { border-bottom-color: var(--line-soft); }
.footer-cols .widget, .footer-cols .widget p { color: #b3bdd8; }
.site-copy {
    border-top: 1px solid var(--line);
    padding: 1.3rem 0;
    font-family: var(--mono);
    font-size: 0.78rem;
    color: var(--muted-2);
    text-align: center;
    letter-spacing: 0.03em;
}

/* =========================================================================
   Пагинация
   ========================================================================= */
.pager {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    justify-content: center;
    margin: 2.4rem 0 0.5rem;
}
.pager .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 0.7rem;
    font-family: var(--mono);
    font-size: 0.85rem;
    color: var(--muted);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
.pager a.page-numbers:hover {
    color: var(--bg);
    background: var(--accent);
    border-color: var(--accent);
}
.pager .page-numbers.current {
    color: var(--bg);
    background: var(--accent);
    border-color: var(--accent);
    font-weight: 700;
}
.pager .page-numbers.dots {
    border-color: transparent;
    background: transparent;
    color: var(--muted-2);
}

/* =========================================================================
   Форма поиска / комментарии
   ========================================================================= */
.search-form { display: flex; gap: 0.5rem; }
.search-form .search-field {
    flex: 1 1 auto;
    min-width: 0;
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--text);
    padding: 0.6rem 0.85rem;
    font-family: var(--sans);
}
.search-form .search-field:focus { outline: none; border-color: var(--accent); }
.search-form .search-submit {
    font-family: var(--mono);
    font-size: 0.82rem;
    text-transform: uppercase;
    padding: 0.6rem 1.1rem;
    background: var(--accent);
    color: var(--bg);
    border: 1px solid var(--accent);
    border-radius: var(--radius);
    cursor: pointer;
}

.comments-area { margin-top: 2.2rem; }
.comments-title, .comment-reply-title { font-size: 1.3rem; margin-bottom: 1.2rem; }
.comment-list { list-style: none; margin: 0; padding: 0; }
.comment-list ul.children { list-style: none; margin: 0 0 0 1.4rem; padding: 0; }
.comment-item { margin: 0 0 1.1rem; }
.comment-inner {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.1rem 1.3rem;
}
.comment-head { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: 0.5rem; flex-wrap: wrap; }
.comment-author { font-weight: 700; color: #f2f6ff; }
.comment-author a { color: #f2f6ff; }
.comment-date { font-family: var(--mono); font-size: 0.74rem; color: var(--muted-2); }
.comment-await { color: var(--accent-3); font-size: 0.85rem; }
.comment-reply a {
    font-family: var(--mono);
    font-size: 0.76rem;
    text-transform: uppercase;
    color: var(--accent);
}
.comment-respond {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.4rem 1.6rem;
    margin-top: 1.6rem;
}
.comment-form label { display: block; font-family: var(--mono); font-size: 0.78rem; text-transform: uppercase; color: var(--muted); margin-bottom: 0.3rem; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--text);
    padding: 0.6rem 0.8rem;
    font-family: var(--sans);
    margin-bottom: 1rem;
}
.comment-form input:focus, .comment-form textarea:focus { outline: none; border-color: var(--accent); }
.form-submit .submit {
    font-family: var(--mono);
    text-transform: uppercase;
    font-size: 0.84rem;
    background: var(--accent);
    color: var(--bg);
    border: 1px solid var(--accent);
    border-radius: var(--radius);
    padding: 0.7rem 1.5rem;
    cursor: pointer;
}

/* =========================================================================
   Cookie-баннер (см. D6, A11)
   ========================================================================= */
.cookie-banner[hidden] { display: none !important; }
.cookie-banner {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    flex-wrap: wrap;
    padding: 1rem 1.4rem;
    background: rgba(12,17,32,0.97);
    border-top: 1px solid var(--accent);
    box-shadow: 0 -8px 30px rgba(0,0,0,0.4);
}
.cookie-banner p { margin: 0; font-size: 0.9rem; color: var(--muted); flex: 1 1 320px; min-width: 0; }
.cookie-banner a { color: var(--accent); }
.cookie-banner .btn { flex: 0 0 auto; }

/* =========================================================================
   Главная — секции
   ========================================================================= */
.front-section { padding: 3.2rem 0; }
.front-section.alt {
    background: var(--bg-2);
    border-top: 1px solid var(--line-soft);
    border-bottom: 1px solid var(--line-soft);
}
.section-head { max-width: 720px; margin-bottom: 2rem; }
.section-head p { color: var(--muted); margin: 0; }

/* Hero */
.hero {
    position: relative;
    overflow: hidden;
    padding: 4.6rem 0 4.2rem;
    border-bottom: 1px solid var(--line);
    background:
        radial-gradient(700px 340px at 82% 20%, rgba(124,92,255,0.18), transparent 60%),
        radial-gradient(600px 320px at 12% 90%, rgba(45,226,230,0.12), transparent 60%);
}
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 2.5rem; align-items: center; }
.hero-title { font-size: 2.9rem; line-height: 1.08; margin: 0 0 1rem; }
.hero-title .hl { color: var(--accent); }
.hero-lead { color: var(--muted); font-size: 1.1rem; max-width: 560px; margin-bottom: 1.8rem; }
.hero-actions { display: flex; gap: 0.9rem; flex-wrap: wrap; }
.hero-figure { position: relative; }
.hero-figure img { width: 100%; display: block; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.hero-badge {
    position: absolute;
    left: -0.5rem; bottom: -0.5rem;
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--bg);
    background: var(--accent-3);
    padding: 0.35rem 0.7rem;
    border-radius: var(--radius);
}

/* Пошаговый блок */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.4rem; counter-reset: step; }
.step {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.5rem 1.4rem 1.5rem;
    min-width: 0;
}
.step-num {
    font-family: var(--mono);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--accent-2);
    line-height: 1;
    margin-bottom: 0.7rem;
    display: block;
}
.step h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.step p { color: var(--muted); font-size: 0.92rem; margin: 0; }

/* FAQ / аккордеон */
.faq { display: grid; gap: 0.8rem; max-width: 820px; }
.faq details {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 0 1.3rem;
}
.faq summary {
    cursor: pointer;
    list-style: none;
    padding: 1.05rem 0;
    font-weight: 600;
    color: #f2f6ff;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: "+";
    font-family: var(--mono);
    color: var(--accent);
    font-size: 1.3rem;
    line-height: 1;
    flex: 0 0 auto;
}
.faq details[open] summary::after { content: "–"; }
.faq details[open] summary { border-bottom: 1px solid var(--line-soft); }
.faq-body { padding: 0.9rem 0 1.2rem; color: var(--muted); }
.faq-body p { margin: 0; }

/* CTA */
.cta {
    background: linear-gradient(120deg, #12183a, #0e1428);
    border: 1px solid var(--accent-2);
    border-radius: var(--radius);
    padding: 2.6rem 2.4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(45deg, var(--line-soft) 0 1px, transparent 1px 16px);
    opacity: 0.6;
    pointer-events: none;
}
.cta h2 { margin-bottom: 0.7rem; position: relative; }
.cta p { color: var(--muted); max-width: 620px; margin: 0 auto 1.6rem; position: relative; }
.cta .hero-actions { justify-content: center; position: relative; }

/* Блок последних записей на главной */
.latest-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }
.latest-head .btn-ghost { flex: 0 0 auto; }

/* Page hero (нестатичные страницы) */
.page-lead { color: var(--muted); margin-bottom: 1.6rem; }

/* =========================================================================
   404
   ========================================================================= */
.error-404 { text-align: center; padding: 2rem 0 3rem; }
.error-404 .code {
    font-family: var(--mono);
    font-size: 5rem;
    font-weight: 700;
    color: var(--accent-2);
    line-height: 1;
    text-shadow: 0 0 30px rgba(124,92,255,0.4);
}
.error-404 .search-form { max-width: 440px; margin: 1.6rem auto; }

/* =========================================================================
   Адаптив
   ========================================================================= */
@media (min-width: 961px) {
    .brand-desc { display: block; }
}

@media (max-width: 960px) {
    .layout-with-sidebar { grid-template-columns: 1fr; gap: 2.4rem; }
    .hero-inner { grid-template-columns: 1fr; }
    .hero-figure { order: -1; max-width: 480px; }
    .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
    body { font-size: 16px; }
    h1 { font-size: 1.7rem; }
    h2 { font-size: 1.4rem; }
    .hero-title { font-size: 2.05rem; }
    .site-main { padding: 1.6rem 0 2.2rem; }
    .front-section { padding: 2.4rem 0; }
    .entry { padding: 1.4rem 1.3rem; }
    .cta { padding: 1.9rem 1.4rem; }
    .steps { grid-template-columns: 1fr; }
    .footer-cols { grid-template-columns: 1fr; gap: 1.8rem; }
    .cards-grid { grid-template-columns: 1fr; }

    .nav-toggle { display: block; }
    .main-nav {
        flex-basis: 100%;
        display: none;
    }
    .main-nav.open { display: block; }
    .main-nav ul { flex-direction: column; gap: 0.2rem; }
    .main-nav a { padding: 0.7rem 0.85rem; }
}
