/*
Theme Name: dds_correvedile.com
Theme URI: https://correvedile.com/
Author: Михаил Крылов
Description: Meridian Atlas — картографическая тема для образовательной платформы о международных сделках с недвижимостью, релокации и кросс-культурном менеджменте.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: matlas
*/

:root {
    --bg: #F4F7FA;
    --bg-alt: #E9EEF4;
    --head: #1B2A4A;
    --foot: #141F38;
    --side: #EEF3F8;
    --ink: #1E2A3A;
    --accent: #2E5FA3;
    --accent-dark: #1F4680;
    --amber: #D98E32;
    --muted: #6B7A8F;
    --line: #D0D9E4;
    --line-soft: #B0BEC9;
    --grid: #E0E7EF;
    --radius: 6px;
    --shadow: 0 6px 18px rgba(27, 42, 74, .09);
    --shadow-hi: 0 12px 28px rgba(27, 42, 74, .16);
    --font-head: "Montserrat", "Gilroy", "Trebuchet MS", "Segoe UI", system-ui, sans-serif;
    --font-body: "Open Sans", "Source Sans Pro", "Segoe UI", system-ui, sans-serif;
}

/* Скрытие элементов, управляемых через атрибут hidden */
.cookie-banner[hidden] { display: none !important; }
.mobile-toggle[hidden] { display: none !important; }

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    padding-top: 4px;
    overflow-x: hidden;
    color: var(--ink);
    font: 400 1rem/1.7 var(--font-body);
    background-color: var(--bg);
    background-image:
        linear-gradient(var(--grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid) 1px, transparent 1px);
    background-size: 40px 40px;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-head);
    color: var(--ink);
    line-height: 1.22;
    margin: 0 0 .7em;
    font-weight: 700;
}

h1 { font-size: 2rem; letter-spacing: .01em; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1.1em; }

a { color: var(--accent); text-decoration: none; }

.entry-content a,
.card-excerpt a,
.widget-block a {
    position: relative;
    background-image: linear-gradient(var(--amber), var(--amber));
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 0 2px;
    transition: background-size .28s ease, color .2s ease;
}

.entry-content a:hover,
.card-excerpt a:hover,
.widget-block a:hover {
    color: var(--accent-dark);
    background-size: 100% 2px;
}

/* ---------- Полоса-меридиан ---------- */
.meridian-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    z-index: 90;
    background: repeating-linear-gradient(90deg,
        var(--accent) 0 72px,
        var(--amber) 72px 108px);
}

/* ---------- Контейнеры ---------- */
.shell { width: min(92%, 1240px); margin-inline: auto; }
.shell-wide { width: min(85%, 1240px); margin-inline: auto; }

.site-body { padding-bottom: 3rem; }

/* ---------- Шапка ---------- */
.site-header {
    background: var(--head);
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.header-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 1.6rem;
    padding: 1.15rem 0;
}

.brand { display: flex; align-items: center; gap: .9rem; min-width: 0; flex: 1 1 auto; }
.brand-link { display: inline-flex; flex: 0 0 auto; }
.brand-logo { display: block; width: 52px; height: 52px; }
.brand-text { min-width: 0; display: flex; flex-direction: column; gap: .25rem; }

.brand-name {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: .98rem;
    letter-spacing: .02em;
    color: #fff;
    display: block;
    max-width: 62ch;
}

.brand-desc {
    font-size: .78rem;
    line-height: 1.45;
    color: #A9BAD2;
    display: block;
    max-width: 78ch;
}

.mobile-toggle {
    flex: 0 0 auto;
    background: transparent;
    border: 1.5px solid rgba(255, 255, 255, .4);
    border-radius: 4px;
    color: #fff;
    font: 600 .85rem var(--font-head);
    letter-spacing: .08em;
    padding: .55rem .9rem;
    cursor: pointer;
}

.mobile-toggle:hover { border-color: var(--amber); color: var(--amber); }

.main-nav { display: none; width: 100%; }
.main-nav.is-open { display: block; }

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: .4rem 0 .6rem;
    display: flex;
    flex-direction: column;
    gap: .2rem;
}

.main-nav a {
    display: block;
    padding: .55rem 0;
    color: #D7E2F0;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: .92rem;
    letter-spacing: .05em;
    border-bottom: 2px solid transparent;
}

.main-nav a:hover,
.main-nav .current-menu-item > a { color: #fff; border-bottom-color: var(--amber); }

/* ---------- Хлебные крошки ---------- */
.breadcrumbs {
    font-size: .82rem;
    color: var(--muted);
    padding: 1.1rem 0 .2rem;
    letter-spacing: .02em;
}

.breadcrumbs a { color: var(--accent); }
.breadcrumbs a:hover { color: var(--accent-dark); }
.breadcrumbs .sep { color: var(--line-soft); margin: 0 .35rem; }

/* ---------- Раскладка ---------- */
.layout { padding: 1.4rem 0 2.6rem; }
.layout-single .content-area { width: 100%; margin-left: auto; margin-right: auto; }
.layout-with-sidebar { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; }

.sidebar {
    background: var(--side);
    border-radius: var(--radius);
    border-top: 2px solid var(--amber);
    padding: 1.3rem 1.4rem 1.5rem;
    min-width: 0;
}

/* ---------- Кнопки ---------- */
.btn {
    display: inline-block;
    padding: .72rem 1.5rem;
    border-radius: 4px;
    font: 600 .92rem var(--font-head);
    letter-spacing: .05em;
    background: var(--accent);
    color: #fff;
    border: 1.5px solid var(--accent);
    cursor: pointer;
    transition: background .22s ease, box-shadow .22s ease, color .22s ease, border-color .22s ease;
}

.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; box-shadow: 0 6px 14px rgba(27, 42, 74, .22); }

.btn-amber { background: var(--amber); border-color: var(--amber); color: #21160A; }
.btn-amber:hover { background: #C07A25; border-color: #C07A25; color: #fff; }

.btn-outline { background: transparent; border: 1.5px solid var(--accent); color: var(--accent); }
.btn-outline:hover { background: var(--accent); color: #fff; }

.btn-outline-light { background: transparent; border: 1.5px solid #fff; color: #fff; }
.btn-outline-light:hover { background: #fff; color: var(--head); box-shadow: none; }

/* ---------- Заголовки секций ---------- */
.sec-head { margin-bottom: 1.9rem; }

.coord {
    display: block;
    font-family: var(--font-head);
    font-size: .75rem;
    letter-spacing: .22em;
    color: var(--muted);
    margin-bottom: .55rem;
    padding-left: 56px;
}

.sec-title {
    position: relative;
    padding-left: 56px;
    letter-spacing: .04em;
    margin: 0;
    font-size: 1.75rem;
}

.sec-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: .62em;
    width: 40px;
    height: 2px;
    background: var(--amber);
}

.coord-flush { padding-left: 0; }
.sec-title-light { color: #fff; }
.coord-light { color: #9FB2CB; }

/* ---------- Карточки записей ---------- */
.cards-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.6rem;
}

.card {
    display: flex;
    flex-direction: column;
    position: relative;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    min-width: 0;
    transition: transform .25s ease, box-shadow .25s ease;
}

.card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--amber);
    z-index: 3;
    transition: height .25s ease;
}

.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hi); }
.card:hover::before { height: 3px; }

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

.card-thumb-empty {
    display: block;
    aspect-ratio: 16 / 9;
    background:
        radial-gradient(circle at 70% 35%, rgba(217, 142, 50, .18), transparent 58%),
        repeating-linear-gradient(90deg, rgba(46, 95, 163, .1) 0 1px, transparent 1px 28px),
        repeating-linear-gradient(0deg, rgba(46, 95, 163, .1) 0 1px, transparent 1px 28px),
        linear-gradient(135deg, #E9EEF4, #DCE5EF);
}

.card-body { flex: 1; display: flex; flex-direction: column; padding: 1.15rem 1.25rem 1.35rem; min-width: 0; }

.card-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .7rem; }

.tag-chip {
    display: inline-block;
    padding: .18rem .6rem;
    border: 1px solid var(--amber);
    border-radius: 4px;
    background: transparent;
    color: var(--accent);
    font: 600 .72rem var(--font-head);
    letter-spacing: .08em;
    transition: background .2s ease, color .2s ease;
}

.tag-chip:hover { background: var(--amber); color: #fff; }

.card-title { font-size: 1.16rem; margin: 0 0 .55rem; }
.card-title a { color: var(--ink); }
.card-title a:hover { color: var(--accent); }

.card-excerpt { color: #3B4B5E; font-size: .95rem; }
.card-excerpt p { margin: 0 0 .5em; background: none; }

.card-meta {
    margin-top: auto;
    padding-top: .9rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .6rem;
    font-size: .78rem;
    letter-spacing: .06em;
    color: var(--muted);
    font-family: var(--font-head);
}

.card-more { color: var(--accent); font-weight: 600; }
.card-more:hover { color: var(--accent-dark); }

/* ---------- Пагинация ---------- */
.pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .5rem;
    margin: 2.4rem 0 .6rem;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 .85rem;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: #fff;
    color: var(--accent);
    font: 600 .9rem var(--font-head);
}

.pagination .page-numbers:hover { border-color: var(--accent); background: var(--accent); color: #fff; }
.pagination .page-numbers.current { background: var(--accent); border-color: var(--accent); color: #fff; }
.pagination .page-numbers.dots { border-color: transparent; background: transparent; color: var(--muted); }

/* ---------- Главная ---------- */
.front-section { position: relative; padding: 3.6rem 0; }
.fs-alt { background: linear-gradient(135deg, var(--bg-alt) 0%, var(--bg) 100%); }

.fs-compass::after {
    content: "";
    position: absolute;
    right: 2%;
    bottom: 6%;
    width: 240px;
    height: 240px;
    opacity: .05;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cg fill='none' stroke='%232E5FA3' stroke-width='2'%3E%3Ccircle cx='100' cy='100' r='94'/%3E%3Ccircle cx='100' cy='100' r='72'/%3E%3Cpath d='M100 6v188M6 100h188M42 42l116 116M158 42L42 158'/%3E%3Cpath d='M100 22l14 64 64 14-64 14-14 64-14-64-64-14 64-14z'/%3E%3C/g%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
}

.meridian-sep {
    position: relative;
    width: min(58%, 620px);
    height: 1px;
    margin: 0 auto;
    background: repeating-linear-gradient(90deg, var(--line-soft) 0 6px, transparent 6px 14px);
}

.meridian-sep::before,
.meridian-sep::after {
    content: "";
    position: absolute;
    top: -2.5px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--line-soft);
}

.meridian-sep::before { left: -10px; }
.meridian-sep::after { right: -10px; }

/* Hero */
.fs-hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 70vh;
    padding: 3.4rem 0;
    background: var(--head);
    overflow: hidden;
}

.hero-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    opacity: .9;
}

.hero-inner { position: relative; z-index: 2; }
.hero-coord { color: #9FB2CB; letter-spacing: .24em; font-size: .75rem; font-family: var(--font-head); display: block; margin-bottom: 1rem; padding-left: 0; }

.hero-title { color: #fff; font-size: 2.1rem; letter-spacing: .01em; margin-bottom: .8rem; max-width: 20ch; }
.hero-sub { color: #C8D5E6; font-size: 1.02rem; max-width: 62ch; margin-bottom: 1.8rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; }

/* Сетка направлений */
.feature-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }

.feature-card {
    position: relative;
    background: var(--bg-alt);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.9rem 1.6rem;
    min-width: 0;
    transition: transform .25s ease, box-shadow .25s ease;
}

.feature-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--amber);
    border-radius: var(--radius) var(--radius) 0 0;
}

.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hi); }
.feature-icon { display: block; width: 46px; height: 46px; margin-bottom: 1rem; color: var(--accent); }
.feature-card h3 { color: var(--accent); margin-bottom: .5rem; }
.feature-card p { margin: 0; font-size: .95rem; color: #3B4B5E; }

/* Цитата */
.fs-quote {
    background-color: var(--head);
    background-image:
        linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
    background-size: 40px 40px;
    padding: 4rem 2.2rem;
    overflow: hidden;
}

.quote-inner { position: relative; z-index: 2; max-width: 70ch; margin-inline: auto; }

.quote-text {
    color: #fff;
    font-family: var(--font-head);
    font-size: 1.55rem;
    line-height: 1.45;
    margin: 0 0 1.2rem;
    padding-left: 1.4rem;
    border-left: 3px solid var(--amber);
}

.quote-author { color: #9FB2CB; font-size: .88rem; letter-spacing: .12em; font-family: var(--font-head); margin: 0; padding-left: 1.4rem; }

.fs-quote::before,
.fs-quote::after {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    opacity: .09;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cg fill='none' stroke='%23FFFFFF' stroke-width='2'%3E%3Ccircle cx='100' cy='100' r='94'/%3E%3Ccircle cx='100' cy='100' r='60'/%3E%3Cpath d='M100 6v188M6 100h188'/%3E%3Cpath d='M100 30l12 58 58 12-58 12-12 58-12-58-58-12 58-12z'/%3E%3C/g%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
}

.fs-quote::before { left: -70px; top: -60px; }
.fs-quote::after { right: -70px; bottom: -60px; }

/* Карта тем */
.topic-map { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.2rem; }

.topic-item {
    flex: 1 1 100%;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: .9rem;
    padding: 1.3rem 1.4rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .55);
    color: var(--ink);
    font-family: var(--font-head);
    font-weight: 600;
    letter-spacing: .03em;
    transition: background .24s ease, color .24s ease, box-shadow .24s ease, border-color .24s ease;
}

.topic-item svg { flex: 0 0 auto; width: 34px; height: 34px; color: var(--accent); transition: color .24s ease; }
.topic-item span { min-width: 0; }
.topic-item:hover { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: var(--shadow-hi); }
.topic-item:hover svg { color: #fff; }

/* ---------- Содержимое записей и страниц ---------- */
.entry-header { margin-bottom: 1.4rem; }
.entry-title { font-size: 1.9rem; letter-spacing: .01em; }

.entry-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .9rem;
    font-family: var(--font-head);
    font-size: .8rem;
    letter-spacing: .07em;
    color: var(--muted);
    margin-bottom: 1rem;
}

.entry-thumb { margin: 0 0 1.6rem; }
.entry-thumb img { display: block; width: 100%; height: auto; border-radius: var(--radius); }

.entry-content { font-size: 1.02rem; }
.entry-content h2 { margin-top: 2rem; font-size: 1.5rem; }
.entry-content h3 { margin-top: 1.6rem; }
.entry-content ul, .entry-content ol { padding-left: 1.3rem; margin: 0 0 1.2em; }
.entry-content li { margin-bottom: .45em; }
.entry-content img { border-radius: var(--radius); display: block; }

.entry-content blockquote {
    margin: 1.6rem 0;
    padding: 1.2rem 1.4rem;
    background: var(--bg-alt);
    border-left: 3px solid var(--amber);
    border-radius: 0 var(--radius) var(--radius) 0;
}

.entry-content blockquote p:last-child { margin-bottom: 0; }

.entry-content table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; border: 1px solid var(--line); }
.entry-content th, .entry-content td { border: 1px solid var(--line); padding: .6rem .75rem; text-align: left; }
.entry-content th { background: var(--bg-alt); font-family: var(--font-head); }

.entry-footer { margin-top: 1.8rem; padding-top: 1.2rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }

/* ---------- Виджеты ---------- */
.widget-block { margin-bottom: 1.8rem; }
.widget-block:last-child { margin-bottom: 0; }

.widget-title {
    font-size: 1rem;
    letter-spacing: .09em;
    text-transform: uppercase;
    margin-bottom: .9rem;
    padding-bottom: .5rem;
    border-bottom: 1px solid var(--line);
}

.widget-block ul { list-style: none; margin: 0; padding: 0; }
.widget-block li { padding: .45rem 0; border-bottom: 1px dashed rgba(107, 122, 143, .3); }
.widget-block li:last-child { border-bottom: none; }

/* Сайдбар: светлый фон — тёмный текст */
.sidebar .widget-block { color: var(--ink); }
.sidebar .widget-title { color: var(--head); border-bottom-color: var(--line); }
.sidebar .widget-block a { color: var(--accent); }
.sidebar .widget-block a:hover { color: var(--accent-dark); }
.sidebar .widget-block .post-date,
.sidebar .widget-block .rss-date { color: var(--muted); font-size: .78rem; display: block; }

/* ---------- Подвал ---------- */
.site-footer { background: var(--foot); color: #C3D0E2; padding: 3rem 0 1.6rem; border-top: 3px solid var(--accent); }

.footer-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; }
.footer-col { min-width: 0; }

.site-footer .widget-block { color: #C3D0E2; font-size: .93rem; }
.site-footer .widget-title { color: #fff; border-bottom-color: rgba(255, 255, 255, .16); }
.site-footer .widget-block a { color: #DCE6F3; }
.site-footer .widget-block a:hover { color: var(--amber); }
.site-footer .widget-block li { border-bottom-color: rgba(255, 255, 255, .1); }
.site-footer .widget-block .post-date { color: #93A6BE; font-size: .78rem; display: block; }

.footer-bottom {
    margin-top: 2.4rem;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(255, 255, 255, .12);
    font-size: .82rem;
    color: #90A2BA;
    letter-spacing: .03em;
}

/* ---------- Форма поиска ---------- */
.search-form { display: flex; gap: .5rem; flex-wrap: wrap; }

.search-form input[type="search"] {
    flex: 1 1 180px;
    min-width: 0;
    padding: .68rem .85rem;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: #fff;
    color: var(--ink);
    font: 400 .95rem var(--font-body);
}

.search-form input[type="search"]:focus { outline: 2px solid var(--accent); outline-offset: 1px; }

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* ---------- Комментарии ---------- */
.comments-area { margin-top: 2.6rem; }
.comments-title, .comment-reply-title { font-size: 1.3rem; }
.comment-list { list-style: none; margin: 0 0 2rem; padding: 0; }
.comment-list ol.children { list-style: none; margin: 1rem 0 0; padding-left: 1.4rem; border-left: 1px solid var(--line); }

.comment-body {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.1rem 1.3rem;
    margin-bottom: 1rem;
    border-top: 2px solid var(--amber);
}

.comment-author { font-family: var(--font-head); font-weight: 700; }
.comment-metadata { font-size: .78rem; color: var(--muted); margin-bottom: .6rem; }

.comment-form { display: flex; flex-direction: column; gap: .9rem; }
.comment-form label { font-family: var(--font-head); font-size: .85rem; letter-spacing: .05em; display: block; margin-bottom: .3rem; }

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: .7rem .85rem;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: #fff;
    color: var(--ink);
    font: 400 .95rem var(--font-body);
}

.comment-form textarea { min-height: 150px; resize: vertical; }
.comment-form .form-submit { margin: 0; }
.comment-form input[type="submit"] {
    padding: .72rem 1.5rem;
    border: 1.5px solid var(--accent);
    border-radius: 4px;
    background: var(--accent);
    color: #fff;
    font: 600 .92rem var(--font-head);
    letter-spacing: .05em;
    cursor: pointer;
}

.comment-form input[type="submit"]:hover { background: var(--accent-dark); border-color: var(--accent-dark); }

/* ---------- Cookie-баннер ---------- */
.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 80;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.4rem;
    background: var(--head);
    color: #D7E2F0;
    border-top: 2px solid var(--amber);
    font-size: .88rem;
}

.cookie-banner p { margin: 0; max-width: 78ch; }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding: 2.5rem 1.4rem 3.5rem; }
.notfound-code { font-family: var(--font-head); font-size: 4.5rem; color: var(--accent); margin: 0 0 .4rem; letter-spacing: .1em; }
.notfound .search-form { max-width: 460px; margin: 1.6rem auto 1.4rem; }

/* ---------- Адаптив ---------- */
@media (min-width: 601px) {
    h1 { font-size: 2.4rem; }
    .cards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .topic-item { flex: 0 1 calc(50% - .6rem); }
    .hero-title { font-size: 2.6rem; }
    .quote-text { font-size: 1.85rem; }
    .front-section { padding: 4.4rem 0; }
}

@media (min-width: 961px) {
    h1 { font-size: 3.2rem; }
    h2 { font-size: 2rem; }
    .sec-title { font-size: 2rem; }
    .mobile-toggle { display: none; }
    .main-nav { display: block; width: auto; }
    .main-nav ul { flex-direction: row; gap: 1.6rem; padding: 0; }
    .cards-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .topic-item { flex: 0 1 calc(33.333% - .8rem); }
    .layout-single .content-area { width: 85%; }
    .layout-with-sidebar { grid-template-columns: minmax(0, 67%) minmax(0, 27%); justify-content: space-between; gap: 0; }
    .hero-title { font-size: 3.2rem; }
    .entry-title { font-size: 2.4rem; }
    .quote-text { font-size: 2rem; }
    .front-section { padding: 5.6rem 0; }
    .brand-name { font-size: 1.05rem; }
}

@media (max-width: 600px) {
    .fs-quote { padding: 2.6rem 1.4rem; }
    .quote-text { padding-left: 1rem; }
    .quote-author { padding-left: 1rem; }
    .cookie-banner { padding: 1rem 1.1rem; }
    .fs-compass::after { width: 150px; height: 150px; }
    .sidebar { padding: 1.2rem 1.2rem 1.3rem; }
    .feature-card { padding: 1.5rem 1.3rem; }
    .topic-item { padding: 1.1rem 1.2rem; }
    .notfound-code { font-size: 3.4rem; }
}
