/*
Theme Name: dds_kevinneubauer.com
Author: Кевин Нойбауэр
Description: Тема для информационно-практического проекта об умном доме и инженерных системах.
Version: 1.1
Text Domain: knsmart
*/

:root {
    --page: #F4F7FB;
    --page-alt: #E8EEF5;
    --head: #1B2A4A;
    --foot: #0F1A2E;
    --aside: #EDF2F9;
    --ink: #1E2B3C;
    --acc: #00A8CC;
    --acc2: #3D5AFE;
    --mute: #6B7F99;
    --line: #C5D3E3;
    --edge: #D0DCE8;
    --shadow: 0 6px 20px rgba(27, 42, 74, 0.08);
    --shadow-up: 0 12px 28px rgba(27, 42, 74, 0.14);
    --font-head: "Inter Tight", "Space Grotesk", "Segoe UI Semibold", "Helvetica Neue", Arial, sans-serif;
    --font-body: "Inter", "IBM Plex Sans", "Segoe UI", "Helvetica Neue", Arial, 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.68;
    color: var(--ink);
    background-color: var(--page);
    background-image: repeating-linear-gradient(45deg, rgba(224, 232, 242, 0.4) 0 1px, transparent 1px 20px);
}

body::after {
    content: "";
    position: fixed;
    right: -40px;
    bottom: -40px;
    width: 420px;
    height: 420px;
    pointer-events: none;
    z-index: 0;
    opacity: 0.04;
    background-repeat: no-repeat;
    background-size: contain;
    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='%233D5AFE' stroke-width='3'%3E%3Crect x='20' y='20' width='160' height='160' rx='6'/%3E%3Cpath d='M20 70h30v40h40v50M180 60h-40v60h-45v60M60 20v30h60V20M120 180v-40h60'/%3E%3Crect x='78' y='78' width='44' height='44' rx='3'/%3E%3C/g%3E%3Cg fill='%233D5AFE'%3E%3Ccircle cx='50' cy='70' r='6'/%3E%3Ccircle cx='90' cy='110' r='6'/%3E%3Ccircle cx='140' cy='120' r='6'/%3E%3Ccircle cx='60' cy='50' r='6'/%3E%3Ccircle cx='150' cy='140' r='6'/%3E%3C/g%3E%3C/svg%3E");
}

.signal-bar {
    height: 4px;
    background: linear-gradient(90deg, var(--acc), var(--acc2));
}

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

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

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

a {
    color: var(--acc2);
    text-decoration: none;
    border-bottom: 1px solid rgba(61, 90, 254, 0.5);
    transition: border-color 0.2s ease, color 0.2s ease, border-width 0.2s ease;
}

a:hover {
    border-bottom: 2px solid var(--acc);
    color: var(--acc);
}

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

h1 {
    font-size: 3.2rem;
}

h2 {
    font-size: 1.9rem;
}

h3 {
    font-size: 1.35rem;
}

h4 {
    font-size: 1.12rem;
}

p {
    margin: 0 0 1.1em;
}

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

li {
    margin-bottom: 0.45em;
}

blockquote {
    margin: 1.6em 0;
    padding: 1.2rem 1.6rem;
    border-left: 4px solid var(--acc);
    background: #fff;
    border-radius: 0 10px 10px 0;
    color: var(--head);
}

code, pre {
    font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
    background: var(--page-alt);
}

pre {
    padding: 1rem 1.2rem;
    overflow-x: auto;
    border-radius: 8px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.4em 0;
    background: #fff;
}

table, th, td {
    border: 1px solid var(--edge);
}

th, td {
    padding: 0.7rem 0.9rem;
    text-align: left;
}

th {
    background: var(--page-alt);
    font-family: var(--font-head);
    color: var(--head);
}

/* Декоративная точка у заголовков контента */
.entry-content h2::before,
.entry-content h3::before,
.card-title::before,
.widget-title::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--acc);
    margin-right: 0.55em;
    vertical-align: middle;
}

/* Кнопки */
.btn {
    display: inline-block;
    font-family: var(--font-head);
    font-size: 0.98rem;
    font-weight: 600;
    padding: 0.72rem 1.5rem;
    border-radius: 6px;
    border: 1.5px solid var(--acc);
    background: var(--acc);
    color: #fff;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(0, 168, 204, 0.28);
    background: #0091b3;
    border-color: #0091b3;
    color: #fff;
}

.btn-ghost {
    background: transparent;
    color: var(--acc);
    border: 1.5px solid var(--acc);
}

.btn-ghost:hover {
    background: rgba(0, 168, 204, 0.12);
    color: var(--head);
    border-color: var(--acc);
}

/* Теги рубрик */
.tag-chip {
    display: inline-block;
    padding: 0.18rem 0.6rem;
    border-radius: 4px;
    background: rgba(0, 168, 204, 0.15);
    color: var(--head);
    font-size: 0.82rem;
    font-family: var(--font-head);
    border-bottom: none;
}

.tag-chip:hover {
    background: var(--acc);
    color: #fff;
    border-bottom: none;
}

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

.site-head {
    background: var(--head);
    color: #E9F1F8;
    padding: 1.4rem 0;
}

.head-inner {
    display: flex;
    align-items: center;
    gap: 1.6rem;
    flex-wrap: wrap;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    min-width: 0;
    flex: 1 1 340px;
}

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

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

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

.brand-title {
    display: block;
    font-family: var(--font-head);
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.35;
    border-bottom: none;
    max-height: 2.8em;
    overflow: hidden;
}

.brand-title:hover {
    color: var(--acc);
    border-bottom: none;
}

.brand-desc {
    display: none;
    margin: 0.35rem 0 0;
    font-size: 0.82rem;
    color: #9DB2CC;
    line-height: 1.5;
    max-height: 3em;
    overflow: hidden;
}

.nav-toggle {
    display: none;
    margin-left: auto;
    padding: 0.5rem 0.9rem;
    border-radius: 6px;
    border: 1.5px solid rgba(0, 168, 204, 0.6);
    background: transparent;
    color: #fff;
    font-family: var(--font-head);
    font-size: 0.95rem;
    cursor: pointer;
}

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

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

.head-nav a {
    display: inline-block;
    color: #DCE7F2;
    font-family: var(--font-head);
    font-size: 0.98rem;
    padding: 0.2rem 0;
    border-bottom: 1px solid transparent;
}

.head-nav a:hover,
.head-nav .current-menu-item > a {
    color: #fff;
    border-bottom: 2px solid var(--acc);
}

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

.trail {
    font-size: 0.86rem;
    color: var(--mute);
    padding: 1.1rem 0 0;
}

.trail a {
    color: var(--mute);
    border-bottom: 1px solid rgba(107, 127, 153, 0.4);
}

.trail a:hover {
    color: var(--acc);
    border-bottom-color: var(--acc);
}

.trail-sep {
    color: var(--acc);
    margin: 0 0.3rem;
}

/* ---------------- Раскладки ---------------- */

.page-body {
    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: 3.2rem;
    align-items: start;
}

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

.sidebar {
    min-width: 0;
    background: var(--aside);
    border: 1px solid var(--edge);
    border-radius: 10px;
    padding: 1.4rem 1.4rem 0.6rem;
}

/* ---------------- Виджеты ---------------- */

.widget {
    margin-bottom: 1.6rem;
}

.widget-title {
    font-size: 1.05rem;
    margin-bottom: 0.9rem;
}

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

.widget li {
    padding: 0.5rem 0;
    border-bottom: 1px dashed var(--edge);
}

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

.sidebar .widget-title {
    color: var(--head);
}

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

.sidebar a {
    color: var(--head);
    border-bottom: 1px solid rgba(0, 168, 204, 0.45);
}

.sidebar a:hover {
    color: var(--acc2);
    border-bottom-color: var(--acc2);
}

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

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

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
    gap: 1.6rem;
}

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

.card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--edge);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
    min-width: 0;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-up);
    border-color: var(--acc);
}

.card-thumb {
    display: block;
    border-bottom: 2px solid var(--acc);
}

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

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

.card-title {
    font-size: 1.22rem;
    margin-bottom: 0.5rem;
}

.card-title a {
    color: var(--head);
    border-bottom: none;
}

.card-title a:hover {
    color: var(--acc2);
    border-bottom: none;
}

.card-excerpt {
    color: #33455A;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

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

.post-meta {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    flex-wrap: wrap;
    font-size: 0.84rem;
    color: var(--mute);
    margin-bottom: 0.7rem;
}

.card-more {
    margin-top: auto;
    align-self: flex-start;
}

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

.pager {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 2.4rem;
}

.pager .page-numbers {
    display: inline-block;
    min-width: 42px;
    text-align: center;
    padding: 0.5rem 0.8rem;
    border: 1px solid var(--edge);
    border-radius: 6px;
    background: #fff;
    color: var(--head);
    font-family: var(--font-head);
    font-size: 0.95rem;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.pager a.page-numbers:hover {
    transform: translateY(-2px);
    border-color: var(--acc);
    color: var(--acc);
}

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

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

/* ---------------- Запись и страница ---------------- */

.entry-head {
    margin-bottom: 1.6rem;
}

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

.entry-thumb {
    margin: 0 0 1.8rem;
    border-radius: 10px;
    overflow: hidden;
    border-bottom: 3px solid var(--acc);
}

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

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

.entry-content h2 {
    margin-top: 1.8em;
}

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

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

.entry-foot {
    margin-top: 2.2rem;
    padding-top: 1.2rem;
    border-top: 1px solid var(--line);
    font-size: 0.9rem;
    color: var(--mute);
}

.page-title {
    font-size: 2.4rem;
    margin-bottom: 1.6rem;
}

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

.comments-area {
    margin-top: 3rem;
    padding: 1.8rem 1.8rem 1rem;
    background: #fff;
    border: 1px solid var(--edge);
    border-radius: 10px;
}

.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: 0.8rem 0 0 1.4rem;
    padding: 0 0 0 1rem;
    border-left: 2px solid var(--page-alt);
}

.comment-item {
    margin-bottom: 1.2rem;
}

.comment-inner {
    padding: 1rem 1.2rem;
    background: var(--page);
    border: 1px solid var(--edge);
    border-radius: 10px;
}

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

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

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

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

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea,
.search-field {
    width: 100%;
    padding: 0.7rem 0.9rem;
    border: 1px solid var(--edge);
    border-radius: 6px;
    background: #fff;
    font-family: var(--font-body);
    font-size: 0.97rem;
    color: var(--ink);
}

.comment-form input:focus,
.comment-form textarea:focus,
.search-field:focus {
    outline: 2px solid rgba(0, 168, 204, 0.5);
    outline-offset: 1px;
}

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

.comment-form .submit {
    display: inline-block;
    font-family: var(--font-head);
    font-weight: 600;
    padding: 0.72rem 1.5rem;
    border-radius: 6px;
    border: 1.5px solid var(--acc);
    background: var(--acc);
    color: #fff;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.comment-form .submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(0, 168, 204, 0.28);
}

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

.search-form {
    display: flex;
    gap: 0.6rem;
    align-items: stretch;
    flex-wrap: wrap;
}

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

.search-submit {
    flex: 0 0 auto;
    font-family: var(--font-head);
    font-weight: 600;
    padding: 0.7rem 1.3rem;
    border-radius: 6px;
    border: 1.5px solid var(--acc);
    background: var(--acc);
    color: #fff;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.search-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(0, 168, 204, 0.28);
}

/* ---------------- Главная ---------------- */

.front-body {
    display: block;
    width: 85%;
    margin-left: auto;
    margin-right: auto;
    padding: 2.4rem 0 3rem;
}

.fs {
    padding: 80px 0;
    position: relative;
}

.fs + .fs::before {
    content: "";
    position: absolute;
    top: 0;
    left: 15%;
    right: 15%;
    height: 1px;
    background: var(--line);
}

.fs-dots {
    height: 1px;
    margin: 0 15%;
    background-image: radial-gradient(circle, var(--mute) 1px, transparent 1px);
    background-size: 10px 1px;
    opacity: 0.6;
}

.sec-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.95rem;
    margin-bottom: 0.4rem;
}

.sec-title::before {
    content: "";
    flex: 0 0 46px;
    height: 3px;
    background: var(--acc);
}

.sec-lead {
    color: var(--mute);
    max-width: 62ch;
    margin: 0 0 2rem;
}

/* Блок 1 — hero */

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

.hero {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background: var(--head);
    min-height: 420px;
    display: flex;
    align-items: center;
}

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

.hero-inner {
    position: relative;
    z-index: 2;
    padding: 3.4rem 3rem;
    min-width: 0;
    background: linear-gradient(90deg, rgba(27, 42, 74, 0.92) 0%, rgba(27, 42, 74, 0.72) 60%, rgba(27, 42, 74, 0.25) 100%);
}

.hero-title {
    color: #fff;
    font-size: 3.2rem;
    max-width: 18ch;
    padding-left: 1.2rem;
    border-left: 4px solid var(--acc);
    margin-bottom: 1.1rem;
}

.hero-sub {
    color: #C6D6E6;
    max-width: 52ch;
    font-size: 1.06rem;
    margin-bottom: 1.8rem;
}

/* Блок 2 — сетка карточек-компонентов */

.fs-modules,
.fs-quote-wrap {
    background: var(--page-alt);
    padding: 80px 2.2rem;
    border-radius: 10px;
}

.mod-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: 1.6rem;
}

.mod {
    min-width: 0;
    background: #fff;
    border: 1px solid var(--edge);
    border-radius: 10px;
    padding: 1.6rem 1.5rem;
    box-shadow: var(--shadow);
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.mod:hover {
    transform: translateY(-4px);
    border-color: var(--acc);
    box-shadow: var(--shadow-up);
}

.mod-icon {
    width: 46px;
    height: 46px;
    color: var(--acc);
    margin-bottom: 0.9rem;
}

.mod-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.mod h3 {
    font-size: 1.18rem;
    margin-bottom: 0.5rem;
}

.mod p {
    margin: 0;
    font-size: 0.95rem;
    color: #33455A;
}

/* Блок «последние записи» */

.fs-latest .fs-actions {
    margin-top: 2rem;
}

/* Блок 3 — цитата */

.quote-plate {
    background-color: var(--head);
    background-image: radial-gradient(rgba(0, 168, 204, 0.1) 1.5px, transparent 1.5px);
    background-size: 14px 14px;
    border-radius: 10px;
    padding: 2.8rem 2.6rem;
    border-left: 4px solid var(--acc);
    min-width: 0;
}

.quote-plate p {
    color: #F2F7FC;
    font-size: 1.6rem;
    line-height: 1.45;
    font-family: var(--font-head);
    margin: 0 0 1.2rem;
}

.quote-author {
    color: #8FA6C0;
    font-size: 0.92rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* Блок 4 — карта тем (glassmorphism) */

.fs-topics {
    background-color: var(--head);
    background-image: radial-gradient(rgba(0, 168, 204, 0.1) 1.5px, transparent 1.5px);
    background-size: 14px 14px;
    padding: 80px 2.2rem;
    border-radius: 10px;
    margin: 80px 0 0;
}

.fs-topics .sec-title {
    color: #fff;
}

.fs-topics .sec-lead {
    color: #9DB2CC;
}

.topic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
    gap: 1.4rem;
}

.topic {
    min-width: 0;
    display: block;
    padding: 1.6rem 1.4rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #EAF2F9;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, backdrop-filter 0.22s ease;
}

.topic:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 0 24px rgba(0, 168, 204, 0.35);
    border-color: var(--acc);
    color: #fff;
}

.topic-icon {
    width: 40px;
    height: 40px;
    color: var(--acc);
    margin-bottom: 0.8rem;
}

.topic-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.topic-name {
    display: block;
    font-family: var(--font-head);
    font-size: 1.12rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.topic-note {
    display: block;
    font-size: 0.9rem;
    color: #B9CBDD;
}

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

.site-foot {
    background: var(--foot);
    color: #C3D2E2;
    padding: 3rem 0 1.6rem;
    margin-top: 2rem;
}

.foot-cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    gap: 2.2rem;
}

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

.site-foot .widget-title {
    color: #FFFFFF;
    font-size: 1.02rem;
}

.site-foot .widget-title::before {
    background: var(--acc);
}

.site-foot p,
.site-foot li,
.site-foot .widget {
    color: #C3D2E2;
}

.site-foot a {
    color: #DCE7F2;
    border-bottom: 1px solid rgba(0, 168, 204, 0.5);
}

.site-foot a:hover {
    color: var(--acc);
    border-bottom-color: var(--acc);
}

.site-foot li {
    border-bottom: 1px dashed rgba(195, 210, 226, 0.22);
}

.foot-note {
    margin-top: 2.4rem;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(195, 210, 226, 0.18);
    font-size: 0.86rem;
    color: #8FA6C0;
}

/* ---------------- 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;
    gap: 1.2rem;
    flex-wrap: wrap;
    padding: 1rem 1.6rem;
    background: rgba(15, 26, 46, 0.96);
    border-top: 2px solid var(--acc);
    color: #DCE7F2;
}

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

.cookie-banner a {
    color: #8FD6E8;
    border-bottom-color: rgba(143, 214, 232, 0.6);
}

/* ---------------- 404 ---------------- */

.nf-code {
    font-family: var(--font-head);
    font-size: 5rem;
    color: var(--acc);
    margin: 0 0 0.4rem;
    line-height: 1;
}

.nf-actions {
    margin: 1.6rem 0 2.2rem;
}

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

@media (min-width: 961px) {
    .brand-desc {
        display: block;
    }
}

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

    .hero-title {
        font-size: 2.3rem;
    }

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

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

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

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

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

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

    .head-nav ul {
        flex-direction: column;
        gap: 0.2rem;
        padding-top: 0.8rem;
    }

    .head-nav li {
        border-bottom: 1px solid rgba(220, 231, 242, 0.14);
    }

    .fs {
        padding: 54px 0;
    }

    .fs-topics {
        padding: 54px 1.6rem;
        margin-top: 54px;
    }

    .fs-modules,
    .fs-quote-wrap {
        padding: 54px 1.6rem;
    }

    .hero-inner {
        padding: 2.4rem 1.8rem;
        background: linear-gradient(90deg, rgba(27, 42, 74, 0.94) 0%, rgba(27, 42, 74, 0.8) 100%);
    }
}

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

    h1 {
        font-size: 1.95rem;
    }

    h2 {
        font-size: 1.55rem;
    }

    .hero-title {
        font-size: 1.95rem;
        padding-left: 0.9rem;
    }

    .hero {
        min-height: 340px;
    }

    .sec-title {
        font-size: 1.5rem;
    }

    .sec-title::before {
        flex-basis: 28px;
    }

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

    .quote-plate p {
        font-size: 1.22rem;
    }

    .fs-topics {
        padding: 44px 1.2rem;
    }

    .fs-modules,
    .fs-quote-wrap {
        padding: 44px 1.2rem;
    }

    .comments-area {
        padding: 1.2rem 1.1rem 0.6rem;
    }

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

    .mod {
        padding: 1.3rem 1.2rem;
    }

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