/*
Theme Name: dds_motorolaradiosolutions.com
Author: Георгий Белов
Description: Тема для информационного сайта о радиосистемах и беспроводной связи. Холодная лавандово-стальная палитра, спектральный фон, чек-листы и карта тем.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: rdwave
*/

:root {
    --bg: #F4F7FC;
    --bg-alt: #E8EDF5;
    --surface: #FFFFFF;
    --foot: #14182B;
    --ink: #1E2235;
    --accent: #6C63FF;
    --accent-2: #00C2D1;
    --muted: #7A8299;
    --line: #D8E0EC;
    --shadow-card: 0 4px 12px rgba(108, 99, 255, 0.08);
    --shadow-card-hover: 0 14px 30px rgba(108, 99, 255, 0.18);
    --font-head: 'Manrope', 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    --font-body: 'Open Sans', 'Roboto', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    overflow-x: hidden;
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.7;
    color: var(--ink);
    background-color: var(--bg);
    background-image:
        radial-gradient(circle at 1px 1px, rgba(30, 34, 53, 0.10) 1px, transparent 1px),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 400'%3E%3Cg fill='none' stroke='%236C63FF' stroke-opacity='0.05' stroke-width='16'%3E%3Ccircle cx='330' cy='345' r='62'/%3E%3Ccircle cx='330' cy='345' r='124'/%3E%3Ccircle cx='330' cy='345' r='186'/%3E%3C/g%3E%3Ccircle cx='330' cy='345' r='32' fill='%236C63FF' fill-opacity='0.05'/%3E%3C/svg%3E");
    background-size: 22px 22px, 520px 520px;
    background-position: 0 0, right -110px bottom -130px;
    background-repeat: repeat, no-repeat;
    background-attachment: scroll, fixed;
}

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

a {
    color: var(--accent);
    text-decoration: none;
    background-image: linear-gradient(currentColor, currentColor);
    background-position: 0 100%;
    background-repeat: no-repeat;
    background-size: 0 1px;
    transition: background-size 0.28s ease;
}

a:hover,
a:focus {
    background-size: 100% 1px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-head);
    color: var(--ink);
    line-height: 1.22;
    letter-spacing: -0.01em;
    margin: 0 0 0.7em;
}

h1 { font-size: 3.5rem; font-weight: 800; }
h2 { font-size: 2rem; font-weight: 700; }
h3 { font-size: 1.4rem; font-weight: 700; }
h4 { font-size: 1.15rem; font-weight: 700; }

p {
    margin: 0 0 1.1em;
}

ul, ol {
    margin: 0 0 1.2em;
    padding-left: 1.3em;
}

blockquote {
    margin: 1.6em 0;
}

/* ---------------- Каркас ---------------- */

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

.site-main {
    display: block;
    padding: 2.2rem 0 3.4rem;
}

.layout-single {
    display: block;
    width: 85%;
    margin-left: auto;
    margin-right: auto;
}

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

.content-area {
    min-width: 0;
}

/* ---------------- Шапка ---------------- */

.site-head {
    background: var(--surface);
    box-shadow: 0 2px 18px rgba(30, 34, 53, 0.07);
}

.head-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.4rem;
    padding: 1.1rem 0;
    flex-wrap: wrap;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-width: 0;
}

.brand-link {
    display: block;
    line-height: 0;
    background-image: none;
}

.brand-logo {
    max-height: 56px;
    width: auto;
    display: block;
}

.brand-mark {
    display: block;
}

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

.brand-name {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 1.02rem;
    line-height: 1.3;
    color: var(--ink);
    max-width: 42ch;
}

.brand-desc {
    font-size: 0.78rem;
    line-height: 1.45;
    color: var(--muted);
    max-width: 58ch;
}

.signal-bar {
    height: 3px;
    background: linear-gradient(90deg, var(--accent) 0%, var(--accent) 60%, var(--accent-2) 100%);
}

.nav-toggle {
    display: none;
    align-items: center;
    gap: 0.5rem;
    border: 2px solid var(--accent);
    background: transparent;
    color: var(--accent);
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.5rem 0.9rem;
    border-radius: 6px;
    cursor: pointer;
}

.nav-toggle-bar {
    width: 18px;
    height: 2px;
    background: currentColor;
    position: relative;
    display: block;
}

.nav-toggle-bar::before,
.nav-toggle-bar::after {
    content: '';
    position: absolute;
    left: 0;
    width: 18px;
    height: 2px;
    background: currentColor;
}

.nav-toggle-bar::before { top: -6px; }
.nav-toggle-bar::after { top: 6px; }

.head-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1.4rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.head-menu li {
    position: relative;
}

.head-menu a {
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 0.97rem;
    color: var(--ink);
    padding: 0.35rem 0;
    display: inline-block;
}

.head-menu a:hover,
.head-menu .current-menu-item > a {
    color: var(--accent);
}

.head-menu .sub-menu {
    list-style: none;
    margin: 0.3rem 0 0;
    padding: 0.4rem 0 0;
}

/* ---------------- Кнопки ---------------- */

.btn {
    display: inline-block;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.2;
    padding: 0.72rem 1.35rem;
    border-radius: 6px;
    border: 2px solid var(--accent);
    cursor: pointer;
    background-image: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.btn-solid {
    background-color: var(--accent);
    color: #FFFFFF;
}

.btn-ghost {
    background-color: transparent;
    color: var(--accent);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.88rem;
}

.btn:hover,
.btn:focus {
    transform: translateY(2px);
    box-shadow: 0 6px 16px rgba(108, 99, 255, 0.28);
    background-size: auto;
}

.btn-ghost:hover,
.btn-ghost:focus {
    background-color: var(--accent);
    color: #FFFFFF;
}

/* ---------------- Заголовки секций ---------------- */

.section-title,
.page-title,
.entry-title {
    position: relative;
    display: inline-block;
    padding-bottom: 0.55rem;
    margin-bottom: 1.3rem;
}

.section-title::after,
.page-title::after,
.entry-title::after {
    content: '';
    position: absolute;
    left: -10px;
    right: -10px;
    bottom: 0;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}

.section-title::before,
.entry-content h2::before {
    content: '';
    display: inline-block;
    width: 11px;
    height: 11px;
    margin-right: 0.6rem;
    background: var(--accent-2);
}

.page-title,
.entry-title {
    font-size: 2.3rem;
    font-weight: 800;
}

.section-title {
    font-size: 2rem;
}

/* ---------------- Хлебные крошки ---------------- */

.crumbs {
    font-size: 0.86rem;
    color: var(--muted);
    margin: 0 0 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    align-items: center;
}

.crumbs a {
    color: var(--accent);
}

.crumbs .sep {
    color: var(--accent-2);
}

/* ---------------- Секции главной ---------------- */

.front-flow {
    display: block;
}

.fs {
    padding: 2.6rem 2.2rem;
    border-radius: 10px;
    margin-bottom: 2.2rem;
}

.fs-alt {
    background-color: var(--bg-alt);
    background-image: repeating-radial-gradient(circle at 50% 130%, rgba(108, 99, 255, 0.09) 0 1px, transparent 1px 26px);
}

.fs-intro {
    color: var(--muted);
    max-width: 68ch;
    margin-bottom: 1.7rem;
}

/* Hero */

.fs-hero {
    padding-top: 3rem;
    padding-bottom: 3rem;
    background-color: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(108, 99, 255, 0.14);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: 2.4rem;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 0.6rem;
}

.hero-sub {
    font-size: 1.06rem;
    color: var(--muted);
    max-width: 52ch;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin: 1.6rem 0 0;
}

.hero-callout {
    background: var(--surface);
    border-left: 8px solid var(--accent);
    border-radius: 8px;
    padding: 1.7rem 1.6rem;
    box-shadow: var(--shadow-card);
    min-width: 0;
}

.callout-cap {
    display: block;
    font-family: var(--font-head);
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.9rem;
}

.callout-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.9rem;
    font-size: 0.96rem;
}

.callout-list li {
    min-width: 0;
    padding-left: 1rem;
    border-left: 2px solid var(--bg-alt);
}

.kw {
    font-family: var(--font-head);
    font-weight: 800;
    color: var(--accent);
}

/* Чек-лист */

.checklist {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.9rem;
}

.check-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    min-width: 0;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    padding: 1rem 1.2rem;
}

.cl-ico {
    flex: 0 0 26px;
    width: 26px;
    height: 26px;
    margin-top: 0.2rem;
    border: 2px solid var(--accent-2);
    border-radius: 4px;
    background: var(--surface);
    position: relative;
}

.cl-ico::after {
    content: '';
    position: absolute;
    inset: 0;
    margin: auto;
    width: 8px;
    height: 8px;
    background: var(--accent-2);
}

.cl-text {
    min-width: 0;
    font-size: 0.98rem;
}

.cl-text strong {
    font-family: var(--font-head);
}

/* Цитата */

.fs-quote {
    padding-top: 2.8rem;
    padding-bottom: 2.8rem;
}

.quote-box {
    margin: 0;
    border-left: 8px solid var(--accent);
    padding: 0.4rem 0 0.4rem 1.8rem;
    min-width: 0;
}

.quote-box p {
    font-family: var(--font-head);
    font-size: 1.55rem;
    line-height: 1.42;
    font-weight: 700;
    margin-bottom: 0.8rem;
}

.quote-box cite {
    font-style: normal;
    font-size: 0.92rem;
    color: var(--muted);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* Карта тем */

.map-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.3rem;
}

.map-tile {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    min-width: 0;
    padding: 1.5rem 1.4rem;
    border-radius: 10px;
    color: var(--ink);
    background-color: rgba(255, 255, 255, 0.55);
    background-image: none;
    border: 1px solid rgba(108, 99, 255, 0.2);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-card);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.map-tile .tile-ico {
    color: var(--accent);
    transition: color 0.2s ease;
}

.tile-name {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 1.1rem;
}

.tile-note {
    font-size: 0.9rem;
    color: var(--muted);
    transition: color 0.2s ease;
}

.map-tile:hover,
.map-tile:focus {
    background-color: var(--accent);
    color: #FFFFFF;
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
}

.map-tile:hover .tile-ico,
.map-tile:hover .tile-note,
.map-tile:focus .tile-ico,
.map-tile:focus .tile-note {
    color: #FFFFFF;
}

.empty-note {
    color: var(--muted);
}

/* ---------------- Карточки записей ---------------- */

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 1.7rem;
    margin-bottom: 2.4rem;
}

.card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--surface);
    border-radius: 8px;
    border-top: 2px solid var(--accent-2);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-top-color 0.22s ease;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-card-hover);
    border-top-color: #00E0F2;
}

.card-thumb {
    display: block;
}

.card-thumb a {
    display: block;
    background-image: none;
}

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

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

.card-title {
    font-size: 1.2rem;
    margin: 0 0 0.35rem;
}

.card-title a {
    color: var(--ink);
}

.card-title a:hover {
    color: var(--accent);
}

.card-meta {
    font-size: 0.82rem;
    color: var(--muted);
    margin-bottom: 0.7rem;
}

.card-excerpt {
    font-size: 0.95rem;
    min-width: 0;
}

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

.card-more {
    margin: auto 0 0;
    padding-top: 0.9rem;
}

/* ---------------- Пагинация ---------------- */

.pager {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin: 2rem 0 0;
}

.pager .page-numbers {
    display: inline-block;
    min-width: 42px;
    text-align: center;
    padding: 0.5rem 0.85rem;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--surface);
    background-image: none;
    color: var(--ink);
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 0.92rem;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.pager a.page-numbers:hover {
    transform: translateY(2px);
    box-shadow: 0 6px 14px rgba(108, 99, 255, 0.2);
    border-color: var(--accent);
    color: var(--accent);
}

.pager .page-numbers.current {
    background: var(--accent);
    border-color: var(--accent);
    color: #FFFFFF;
}

.pager .page-numbers.dots {
    border: none;
    background: none;
    min-width: 0;
    padding: 0.5rem 0.2rem;
    color: var(--muted);
}

.comment-pager {
    margin: 1.4rem 0;
    font-size: 0.92rem;
}

/* ---------------- Контент записи ---------------- */

.entry {
    background: var(--surface);
    border-radius: 10px;
    border-top: 2px solid var(--accent-2);
    box-shadow: var(--shadow-card);
    padding: 2.2rem 2.2rem 2.4rem;
    margin-bottom: 2rem;
}

.entry-meta {
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 1.4rem;
}

.entry-cover {
    margin: 0 0 1.6rem;
}

.entry-cover img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}

.entry-content h2 {
    font-size: 1.7rem;
    margin-top: 1.8em;
}

.entry-content h3 {
    margin-top: 1.6em;
}

.entry-content img {
    display: block;
    border-radius: 8px;
}

.entry-content li {
    margin-bottom: 0.4em;
}

.entry-content blockquote {
    border-left: 8px solid var(--accent);
    background: var(--bg-alt);
    border-radius: 0 8px 8px 0;
    padding: 1.2rem 1.5rem;
}

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

.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
    border: 1px solid var(--line);
    font-size: 0.94rem;
}

.entry-content th,
.entry-content td {
    border: 1px solid var(--line);
    padding: 0.65rem 0.8rem;
    text-align: left;
}

.entry-content th {
    background: var(--bg-alt);
    font-family: var(--font-head);
}

.entry-tags {
    margin-top: 1.6rem;
    font-size: 0.88rem;
    color: var(--muted);
}

.entry-tags a {
    display: inline-block;
    margin-right: 0.4rem;
}

/* ---------------- Сайдбар и виджеты ---------------- */

.sidebar {
    min-width: 0;
}

.sidebar .widget {
    background: var(--surface);
    color: var(--ink);
    border-radius: 10px;
    border-top: 2px solid var(--accent-2);
    box-shadow: var(--shadow-card);
    padding: 1.4rem 1.4rem 1.5rem;
    margin-bottom: 1.6rem;
}

.sidebar .widget-title {
    font-size: 1.1rem;
    color: var(--ink);
    margin-bottom: 0.9rem;
    padding-bottom: 0.45rem;
    border-bottom: 3px solid var(--accent);
}

.sidebar .widget,
.sidebar .widget p,
.sidebar .widget li,
.sidebar .widget .post-date {
    color: var(--ink);
}

.sidebar .widget a {
    color: var(--accent);
}

.sidebar .widget .post-date {
    display: block;
    font-size: 0.8rem;
    color: var(--muted);
}

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

.widget li {
    margin-bottom: 0.7rem;
    font-size: 0.95rem;
}

/* ---------------- Подвал ---------------- */

.site-foot {
    background-color: var(--foot);
    background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 14px);
    color: #C7CEE0;
    padding: 3rem 0 1.6rem;
    margin-top: 3rem;
}

.foot-cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 2rem;
}

.foot-col {
    min-width: 0;
}

.site-foot .widget {
    margin-bottom: 1.4rem;
    color: #C7CEE0;
}

.site-foot .widget-title {
    font-size: 1.05rem;
    color: #FFFFFF;
    margin-bottom: 0.9rem;
    padding-bottom: 0.4rem;
    border-bottom: 3px solid var(--accent);
    display: inline-block;
}

.site-foot .widget p,
.site-foot .widget li,
.site-foot .widget span,
.site-foot .widget .post-date {
    color: #C7CEE0;
}

.site-foot .widget a {
    color: #9FE9F0;
}

.site-foot .widget a:hover {
    color: #FFFFFF;
}

.site-foot .widget .post-date {
    display: block;
    font-size: 0.8rem;
    color: #8E97AF;
}

.foot-copy {
    margin: 2rem 0 0;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.86rem;
    color: #8E97AF;
}

/* ---------------- Поиск ---------------- */

.search-box {
    margin: 1.4rem 0;
}

.search-label {
    display: block;
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 0.45rem;
}

.search-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.search-input {
    flex: 1 1 220px;
    min-width: 0;
    padding: 0.68rem 0.9rem;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--surface);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 0.95rem;
}

.search-input:focus {
    outline: 2px solid var(--accent);
    outline-offset: 1px;
}

.site-foot .search-input {
    background: #FFFFFF;
    color: var(--ink);
}

/* ---------------- Комментарии ---------------- */

.comments-area {
    background: var(--surface);
    border-radius: 10px;
    box-shadow: var(--shadow-card);
    padding: 1.8rem 2rem 2rem;
}

.comments-title {
    font-size: 1.4rem;
}

.comment-list {
    list-style: none;
    margin: 0 0 1.6rem;
    padding: 0;
}

.comment-list .children {
    list-style: none;
    margin: 1rem 0 0 1.4rem;
    padding: 0;
}

.comment-item {
    border-left: 3px solid var(--bg-alt);
    padding: 0.2rem 0 0.6rem 1.1rem;
    margin-bottom: 1.2rem;
}

.comment-head {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    align-items: baseline;
    margin-bottom: 0.35rem;
}

.comment-author {
    font-family: var(--font-head);
    font-weight: 700;
}

.comment-date,
.comment-hold {
    font-size: 0.82rem;
    color: var(--muted);
}

.comment-actions {
    font-size: 0.88rem;
}

.comment-form label {
    display: block;
    font-size: 0.88rem;
    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%;
    padding: 0.68rem 0.9rem;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 0.95rem;
}

.comment-form p {
    margin-bottom: 0.9rem;
}

.comment-form .submit {
    background-color: var(--accent);
    color: #FFFFFF;
    border: 2px solid var(--accent);
    border-radius: 6px;
    font-family: var(--font-head);
    font-weight: 700;
    padding: 0.72rem 1.35rem;
    cursor: pointer;
}

.comment-form .submit:hover {
    transform: translateY(2px);
    box-shadow: 0 6px 16px rgba(108, 99, 255, 0.28);
}

.err-actions {
    margin-top: 1.4rem;
}

/* ---------------- Cookie-баннер ---------------- */

.cookie-banner[hidden] {
    display: none !important;
}

.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.6rem;
    background: #14182B;
    border-top: 3px solid var(--accent);
    color: #E4E8F2;
}

.cookie-text {
    margin: 0;
    font-size: 0.88rem;
    min-width: 0;
    flex: 1 1 320px;
}

.cookie-accept {
    flex: 0 0 auto;
}

/* ---------------- Адаптив ---------------- */

@media (max-width: 960px) {
    body { font-size: 16px; }

    h1 { font-size: 2.6rem; }
    .hero-title { font-size: 2.6rem; }
    .page-title,
    .entry-title { font-size: 2rem; }
    .section-title { font-size: 1.7rem; }

    .layout-single { width: 100%; }

    .layout-with-sidebar {
        grid-template-columns: minmax(0, 1fr);
        gap: 2rem;
    }

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

    .head-nav {
        flex-basis: 100%;
        display: none;
    }

    .head-nav.is-open {
        display: block;
    }

    .head-menu {
        flex-direction: column;
        gap: 0;
        border-top: 1px solid var(--line);
        padding-top: 0.6rem;
        margin-top: 0.4rem;
    }

    .head-menu a {
        padding: 0.55rem 0;
    }

    .hero-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.6rem;
    }
}

@media (max-width: 600px) {
    h1 { font-size: 2.1rem; }
    .hero-title { font-size: 2.1rem; }
    .page-title,
    .entry-title { font-size: 1.7rem; }
    .section-title { font-size: 1.45rem; }

    .fs {
        padding: 1.8rem 1.3rem;
        margin-bottom: 1.6rem;
    }

    .fs-hero {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    .fs-quote {
        padding-top: 1.9rem;
        padding-bottom: 1.9rem;
    }

    .hero-callout {
        padding: 1.3rem 1.2rem;
    }

    .quote-box {
        padding-left: 1.1rem;
    }

    .quote-box p {
        font-size: 1.2rem;
    }

    .entry {
        padding: 1.5rem 1.3rem 1.7rem;
    }

    .comments-area {
        padding: 1.4rem 1.2rem 1.6rem;
    }

    .card-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .check-item {
        padding: 0.9rem 1rem;
    }

    .cookie-banner {
        padding: 0.9rem 1.1rem;
    }

    .brand-desc {
        display: none;
    }
}
