/*
Theme Name: dds_arutinov.ru
Author: Дмитрий Арутинов
Description: Тема для информационного сайта об автоэлектронике: видеорегистраторы, GPS-трекеры, сигнализации.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: carguard
*/

/* =========================================================
   1. Переменные
   ====================================================== */
:root {
    --deep: #0A1128;
    --deep-alt: #111B3A;
    --night: #050A1A;
    --side: #0F1A33;
    --ink: #E8EDF5;
    --aqua: #00D4B0;
    --amber: #FFB347;
    --muted: #5A6B8A;
    --line: rgba(0, 212, 176, 0.2);
    --plate: rgba(232, 237, 245, 0.05);
    --shadow: 0 10px 30px rgba(10, 40, 90, 0.45);
    --shadow-hi: 0 18px 44px rgba(0, 120, 160, 0.4);
    --font-head: "Roboto Condensed", "PT Sans Narrow", "Arial Narrow", "Segoe UI Semibold", system-ui, sans-serif;
    --font-body: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background-color: var(--deep);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='48' viewBox='0 0 160 48'%3E%3Cpath d='M0 24 Q20 10 40 24 T80 24 T120 24 T160 24' fill='none' stroke='%2300D4B0' stroke-opacity='0.07' stroke-width='1'/%3E%3Cpath d='M0 40 Q20 30 40 40 T80 40 T120 40 T160 40' fill='none' stroke='%235A6B8A' stroke-opacity='0.09' stroke-width='1'/%3E%3C/svg%3E");
    background-repeat: repeat;
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.72;
    letter-spacing: 0.01em;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    right: 0;
    width: 520px;
    height: 520px;
    pointer-events: none;
    z-index: 0;
    opacity: 0.5;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='520' height='520' viewBox='0 0 520 520'%3E%3Cg fill='none' stroke='%2300D4B0' stroke-opacity='0.16'%3E%3Ccircle cx='330' cy='170' r='60' stroke-width='2'/%3E%3Ccircle cx='330' cy='170' r='110' stroke-width='1'/%3E%3Ccircle cx='330' cy='170' r='168' stroke-width='1'/%3E%3C/g%3E%3Cg fill='none' stroke='%23FFB347' stroke-opacity='0.14' stroke-width='2'%3E%3Cpath d='M250 120 l50-30 60 26 46-34'/%3E%3Cpath d='M300 240 l44 30 62-18'/%3E%3C/g%3E%3Cpath d='M300 150 l30-14 30 14 -30 16z' fill='%231A2B55' fill-opacity='0.35'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: top right;
}

.site-wrap {
    position: relative;
    z-index: 1;
}

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

a {
    color: var(--aqua);
    text-decoration: none;
    position: relative;
}

a:hover {
    color: var(--aqua);
}

.entry-content a,
.widget a,
.breadcrumbs a,
.site-footer a {
    background-image: linear-gradient(var(--amber), var(--amber));
    background-repeat: no-repeat;
    background-size: 0 1px;
    background-position: 0 100%;
    transition: background-size 0.28s ease, color 0.2s ease;
}

.entry-content a:hover,
.widget a:hover,
.breadcrumbs a:hover,
.site-footer a:hover {
    background-size: 100% 1px;
    color: var(--amber);
}

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

h1 {
    font-size: 3.2rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.45rem;
}

h4 {
    font-size: 1.2rem;
}

.entry-content h2::before,
.entry-content h3::before,
.section-title::before {
    content: "●";
    color: var(--amber);
    font-size: 0.5em;
    vertical-align: middle;
    margin-right: 0.6em;
    line-height: 1;
}

p {
    margin: 0 0 1.2em;
}

ul, ol {
    padding-left: 1.3rem;
}

blockquote {
    margin: 1.6rem 0;
    padding: 1.4rem 1.6rem;
    border-left: 5px solid var(--aqua);
    background: var(--deep-alt);
    color: var(--ink);
    border-radius: 0 8px 8px 0;
}

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

code, pre {
    background: var(--night);
    color: var(--amber);
    border-radius: 6px;
}

pre {
    padding: 1rem;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.4rem 0;
    border: 1px solid var(--muted);
}

th, td {
    border: 1px solid var(--muted);
    padding: 0.7rem 0.9rem;
    text-align: left;
}

th {
    background: var(--deep-alt);
    font-family: var(--font-head);
    letter-spacing: 0.03em;
}

/* =========================================================
   3. Контейнер и раскладки
   ====================================================== */
.shell {
    width: min(92%, 1180px);
    margin-inline: auto;
}

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

.layout-single {
    display: block;
    width: 85%;
    margin-left: auto;
    margin-right: auto;
    padding: 2.6rem 0 3.4rem;
}

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

/* =========================================================
   4. Верхняя полоса, шапка, меню
   ====================================================== */
.top-strip {
    height: 3px;
    background: var(--aqua);
    box-shadow: 0 0 12px rgba(0, 212, 176, 0.55);
}

.site-header {
    background: var(--night);
    border-bottom: 1px solid var(--line);
    position: static;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.3rem 0;
    flex-wrap: wrap;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    min-width: 0;
    max-width: 100%;
}

.brand-logo,
.brand-mark {
    flex: 0 0 auto;
    display: block;
    width: 54px;
    height: 54px;
}

.brand-text {
    min-width: 0;
}

.brand-title {
    display: block;
    font-family: var(--font-head);
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--ink);
    letter-spacing: 0.02em;
}

.brand-title:hover {
    color: var(--aqua);
}

.brand-desc {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.78rem;
    line-height: 1.45;
    color: var(--muted);
}

.nav-toggle {
    display: none;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    color: var(--ink);
    border: 1px solid var(--aqua);
    border-radius: 6px;
    padding: 0.5rem 0.9rem;
    font-family: var(--font-head);
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    cursor: pointer;
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1.4rem;
}

.main-nav a {
    font-family: var(--font-head);
    font-size: 1.02rem;
    letter-spacing: 0.04em;
    color: var(--ink);
    text-transform: uppercase;
    padding-bottom: 4px;
    display: inline-block;
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

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

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

.breadcrumbs a {
    color: var(--muted);
}

.breadcrumbs .sep {
    color: var(--aqua);
    margin: 0 0.35rem;
}

/* =========================================================
   6. Кнопки
   ====================================================== */
.btn {
    display: inline-block;
    font-family: var(--font-head);
    font-size: 1rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.8rem 1.6rem;
    border-radius: 6px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn-primary {
    background: var(--aqua);
    color: #04121B;
    border-color: var(--aqua);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 212, 176, 0.45);
    color: #04121B;
}

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

.btn-ghost:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(255, 179, 71, 0.32);
    color: var(--amber);
}

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

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

.card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--deep-alt);
    border: none;
    border-bottom: 2px solid var(--aqua);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hi);
    border-bottom-color: var(--amber);
}

.card-thumb {
    display: block;
    padding: 10px 10px 0;
}

.card-thumb a {
    display: block;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--line);
}

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

.card-body {
    flex: 1;
    min-width: 0;
    padding: 1.2rem 1.4rem 1.5rem;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 1.25rem;
    margin: 0 0 0.5rem;
}

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

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

.card-excerpt {
    color: #C3CEDE;
    font-size: 0.95rem;
    flex: 1;
}

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

.card-more {
    margin-top: 1rem;
    align-self: flex-start;
    font-family: var(--font-head);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 0.86rem;
    color: var(--aqua);
    border-bottom: 1px solid transparent;
}

.card-more:hover {
    border-bottom-color: var(--amber);
    color: var(--amber);
}

.post-meta {
    font-size: 0.82rem;
    color: var(--muted);
    margin-bottom: 0.5rem;
    letter-spacing: 0.03em;
}

.post-meta a {
    color: var(--muted);
}

.post-meta a:hover {
    color: var(--amber);
}

.post-meta .dot {
    margin: 0 0.35rem;
}

/* =========================================================
   8. Заголовки секций и разделители
   ====================================================== */
.section-title {
    position: relative;
    display: inline-block;
    padding-bottom: 0.55rem;
    margin-bottom: 1.6rem;
}

.section-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 72%;
    height: 2px;
    background: var(--amber);
}

.page-title {
    margin-top: 1.4rem;
    font-size: 2.4rem;
}

.hr-sonar {
    border: none;
    height: 1px;
    background: var(--line);
    margin: 0;
}

/* =========================================================
   9. Одиночная запись и страница
   ====================================================== */
.entry-header {
    margin-bottom: 1.4rem;
}

.entry-title {
    font-size: 2.6rem;
    margin-bottom: 0.6rem;
}

.entry-thumb {
    margin: 0 0 1.6rem;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--line);
}

.entry-thumb img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.entry-content {
    font-size: 1.02rem;
}

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

.entry-content h2 {
    margin-top: 2rem;
}

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

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

.entry-tags a {
    display: inline-block;
    margin: 0 0.4rem 0.4rem 0;
    padding: 0.25rem 0.7rem;
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--aqua);
}

.post-nav {
    display: flex;
    justify-content: space-between;
    gap: 1.2rem;
    flex-wrap: wrap;
    margin-top: 2.2rem;
    padding-top: 1.4rem;
    border-top: 1px solid var(--line);
    font-family: var(--font-head);
    letter-spacing: 0.03em;
}

/* =========================================================
   10. Пагинация (type => plain)
   ====================================================== */
.pager {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin: 2.6rem 0 0.6rem;
}

.pager .page-numbers {
    display: inline-block;
    min-width: 44px;
    text-align: center;
    padding: 0.55rem 0.9rem;
    border: 1px solid var(--line);
    border-radius: 6px;
    font-family: var(--font-head);
    letter-spacing: 0.04em;
    color: var(--ink);
    background: var(--deep-alt);
    transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.pager a.page-numbers:hover {
    transform: translateY(-2px);
    border-color: var(--aqua);
    color: var(--aqua);
    box-shadow: 0 6px 18px rgba(0, 212, 176, 0.25);
}

.pager .page-numbers.current {
    background: var(--aqua);
    border-color: var(--aqua);
    color: #04121B;
}

.pager .page-numbers.dots {
    border-color: transparent;
    background: transparent;
    color: var(--muted);
}

/* =========================================================
   11. Сайдбар
   ====================================================== */
.sidebar {
    min-width: 0;
    background: rgba(15, 26, 51, 0.9);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 1.4rem 1.4rem 0.6rem;
}

.sidebar .widget {
    margin-bottom: 1.6rem;
}

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

.sidebar,
.sidebar p,
.sidebar li,
.sidebar .post-date,
.sidebar .textwidget {
    color: #CBD6E6;
}

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

.sidebar a:hover {
    color: var(--aqua);
}

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

.sidebar li {
    padding: 0.45rem 0 0.45rem 1.1rem;
    position: relative;
    border-bottom: 1px dashed rgba(90, 107, 138, 0.35);
}

.sidebar li::before {
    content: "●";
    position: absolute;
    left: 0;
    top: 0.45rem;
    font-size: 0.5rem;
    color: var(--amber);
}

.sidebar li:last-child {
    border-bottom: none;
}

.sidebar .post-date {
    display: block;
    font-size: 0.78rem;
    color: #98A8C0;
}

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

.search-form label {
    flex: 1 1 200px;
    min-width: 0;
}

.search-form input[type="search"] {
    width: 100%;
    padding: 0.7rem 0.9rem;
    border-radius: 6px;
    border: 1px solid var(--line);
    background: var(--night);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 0.95rem;
}

.search-form input[type="search"]:focus {
    outline: none;
    border-color: var(--aqua);
}

.search-form .search-submit {
    flex: 0 0 auto;
}

/* =========================================================
   13. Комментарии
   ====================================================== */
.comments-area {
    margin-top: 2.6rem;
    padding-top: 1.8rem;
    border-top: 1px solid var(--line);
}

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

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

.comment-item {
    background: var(--deep-alt);
    border-radius: 10px;
    border-left: 3px solid var(--aqua);
    padding: 1.1rem 1.3rem;
    margin-bottom: 1rem;
}

.comment-head {
    font-family: var(--font-head);
    letter-spacing: 0.03em;
    margin-bottom: 0.4rem;
}

.comment-author {
    color: var(--amber);
}

.comment-date {
    color: var(--muted);
    font-size: 0.82rem;
    margin-left: 0.5rem;
}

.comment-reply a,
.comment-reply-link {
    font-size: 0.85rem;
    color: var(--aqua);
}

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

.comment-respond {
    background: var(--side);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 1.6rem 1.6rem 1.2rem;
}

.comment-respond .comment-reply-title {
    margin-top: 0;
    font-size: 1.35rem;
}

.comment-form label {
    display: block;
    font-size: 0.86rem;
    color: var(--muted);
    margin-bottom: 0.3rem;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
    width: 100%;
    padding: 0.7rem 0.9rem;
    border-radius: 6px;
    border: 1px solid var(--line);
    background: var(--night);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 0.95rem;
    margin-bottom: 0.9rem;
}

.comment-form textarea {
    min-height: 140px;
}

.comment-form .submit {
    display: inline-block;
    font-family: var(--font-head);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    border: 2px solid var(--aqua);
    background: var(--aqua);
    color: #04121B;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.comment-form .submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 212, 176, 0.45);
}

/* =========================================================
   14. Подвал
   ====================================================== */
.site-footer {
    background: var(--night);
    border-top: 1px solid var(--line);
    margin-top: 2rem;
    color: #C3CEDE;
}

.footer-cols {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
    padding: 2.8rem 0 2rem;
}

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

.site-footer .widget-title {
    font-size: 1.1rem;
    color: var(--ink);
    padding-bottom: 0.45rem;
    border-bottom: 2px solid var(--amber);
    margin-bottom: 0.9rem;
}

.site-footer .widget,
.site-footer .textwidget,
.site-footer p,
.site-footer li {
    color: #C3CEDE;
}

.site-footer a {
    color: #DCE4EF;
}

.site-footer a:hover {
    color: var(--amber);
}

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

.site-footer li {
    padding: 0.35rem 0 0.35rem 1rem;
    position: relative;
}

.site-footer li::before {
    content: "●";
    position: absolute;
    left: 0;
    top: 0.4rem;
    font-size: 0.45rem;
    color: var(--aqua);
}

.footer-contact {
    margin-top: 0.8rem;
    font-size: 0.9rem;
}

.copyright {
    border-top: 1px solid var(--line);
    padding: 1.2rem 0 1.6rem;
    font-size: 0.86rem;
    color: var(--muted);
    text-align: center;
}

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

.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
    flex-wrap: wrap;
    background: var(--side);
    border-top: 2px solid var(--aqua);
    padding: 1rem 1.6rem;
    box-shadow: 0 -10px 30px rgba(5, 10, 26, 0.6);
    font-size: 0.9rem;
    color: var(--ink);
}

.cookie-banner p {
    margin: 0;
    min-width: 0;
    flex: 1 1 320px;
}

/* =========================================================
   16. Главная страница
   ====================================================== */
.front-wrap {
    width: 85%;
    margin-left: auto;
    margin-right: auto;
}

.front-section {
    padding: 3.4rem 0;
}

.front-section.alt {
    background: transparent;
}

.fs-shade {
    background: var(--deep-alt);
    border-radius: 14px;
    padding: 2.6rem 2.2rem;
}

/* 16.1 Hero */
.fs-hero {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--line);
    padding: 0;
    margin-top: 2rem;
}

.hero-media {
    position: relative;
}

.hero-media img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 7;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 17, 40, 0.6) 0%, rgba(10, 17, 40, 0.86) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2.4rem 2rem;
}

.hero-overlay h1 {
    margin: 0 0 0.7rem;
    font-size: 3.2rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    text-shadow: 0 4px 26px rgba(5, 10, 26, 0.8);
}

.hero-sub {
    max-width: 640px;
    margin: 0 0 1.6rem;
    font-size: 0.98rem;
    color: #CBD6E6;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.hero-wave {
    display: block;
    width: 100%;
    height: 42px;
    position: absolute;
    left: 0;
    bottom: -1px;
}

/* 16.2 Стеклянные карточки */
.glass-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.6rem;
}

.glass-card {
    min-width: 0;
    background: rgba(232, 237, 245, 0.06);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 212, 176, 0.28);
    border-radius: 12px;
    padding: 1.8rem 1.6rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.glass-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hi);
    border-color: var(--amber);
}

.glass-icon {
    display: block;
    width: 52px;
    height: 52px;
    margin-bottom: 1rem;
}

.glass-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.glass-card p {
    margin: 0;
    font-size: 0.94rem;
    color: #CBD6E6;
}

/* 16.3 Цитата */
.fs-quote {
    background: linear-gradient(120deg, #0A1128 0%, #1A2B55 100%);
    border-left: 5px solid var(--aqua);
    border-radius: 0 12px 12px 0;
    padding: 2.8rem 2.6rem;
}

.fs-quote p {
    margin: 0;
    font-family: var(--font-head);
    font-size: 2rem;
    line-height: 1.35;
    letter-spacing: 0.06em;
    color: var(--ink);
}

.fs-quote .quote-note {
    display: block;
    margin-top: 1.1rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    color: var(--muted);
}

/* 16.4 Рубрикатор */
.tile-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.4rem;
}

.tile {
    min-width: 0;
    display: block;
    border: 1px solid var(--aqua);
    border-radius: 10px;
    padding: 1.6rem 1.4rem;
    color: var(--ink);
    background: rgba(10, 17, 40, 0.6);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.tile:hover {
    transform: translateY(-5px);
    background: rgba(26, 43, 85, 0.75);
    box-shadow: var(--shadow-hi);
    color: var(--ink);
}

.tile-dot {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    margin-bottom: 0.9rem;
}

.dot-aqua { background: var(--aqua); }
.dot-amber { background: var(--amber); }
.dot-steel { background: var(--muted); }
.dot-indigo { background: #3B4C8A; }

.tile-name {
    display: block;
    font-family: var(--font-head);
    font-size: 1.2rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 0.4rem;
}

.tile-note {
    display: block;
    font-size: 0.88rem;
    color: #CBD6E6;
}

/* 16.5 Последние записи на главной */
.front-latest-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1.2rem;
    flex-wrap: wrap;
}

.front-latest-head .section-title {
    margin-bottom: 1.2rem;
}

/* =========================================================
   17. 404 и заглушки
   ====================================================== */
.notfound {
    text-align: center;
    padding: 2rem 0 3rem;
}

.notfound .code {
    font-family: var(--font-head);
    font-size: 6rem;
    line-height: 1;
    color: var(--aqua);
    margin-bottom: 0.6rem;
}

.notfound .search-form {
    justify-content: center;
    max-width: 520px;
    margin: 1.6rem auto 1.4rem;
}

.empty-note {
    background: var(--deep-alt);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 1.6rem 1.8rem;
}

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

/* =========================================================
   18. Адаптив
   ====================================================== */
@media (max-width: 960px) {
    body {
        font-size: 16px;
    }

    h1 {
        font-size: 2.4rem;
    }

    .hero-overlay h1 {
        font-size: 2.2rem;
    }

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

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

    .layout-single,
    .front-wrap {
        width: 100%;
    }

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

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

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

    .main-nav {
        flex: 1 1 100%;
    }

    .main-nav[hidden] {
        display: none !important;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0.2rem;
        border-top: 1px solid var(--line);
        margin-top: 0.8rem;
        padding-top: 0.8rem;
    }

    .main-nav a {
        display: block;
        padding: 0.6rem 0;
        border-bottom: 1px solid rgba(90, 107, 138, 0.25);
    }

    body::before {
        width: 320px;
        height: 320px;
        background-size: contain;
    }
}

@media (max-width: 600px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.6rem;
    }

    .hero-overlay {
        position: static;
        padding: 1.8rem 1.2rem;
        background: linear-gradient(180deg, rgba(17, 27, 58, 0.95), rgba(10, 17, 40, 0.98));
    }

    .hero-media img {
        aspect-ratio: 16 / 10;
    }

    .hero-overlay h1 {
        font-size: 1.8rem;
    }

    .hero-wave {
        display: none;
    }

    .front-section {
        padding: 2.4rem 0;
    }

    .fs-shade {
        padding: 1.8rem 1.3rem;
    }

    .fs-quote {
        padding: 1.8rem 1.4rem;
    }

    .fs-quote p {
        font-size: 1.4rem;
    }

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

    .glass-card {
        padding: 1.4rem 1.2rem;
    }

    .tile {
        padding: 1.3rem 1.2rem;
    }

    .sidebar {
        padding: 1.2rem 1.1rem 0.4rem;
    }

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

    .comment-respond {
        padding: 1.2rem 1.1rem 0.9rem;
    }

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

    .card-body {
        padding: 1.1rem 1.1rem 1.3rem;
    }

    .notfound .code {
        font-size: 4rem;
    }
}
