/*
Theme Name: dds_hugemars.com
Author: Артём Савельев
Description: Тема для информационного сайта о машиноместах и парковочной недвижимости. Швейцарский стиль, холодная палитра.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: hgmars
*/

/* =========================================================
   1. Переменные и база
   ========================================================= */

:root {
    --bg: #F4F7FA;
    --bg-alt: #E8EEF4;
    --head-bg: #0F1B2D;
    --foot-bg: #0B1420;
    --side-bg: #FFFFFF;
    --text: #1B2A3A;
    --accent: #1E6FD9;
    --accent-dark: #1557B0;
    --accent-2: #00A8B5;
    --muted: #6B7A8D;
    --line: #D9E2EC;
    --font-head: "Manrope", "Inter Tight", "Segoe UI", "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;
    padding: 0;
    overflow-x: hidden;
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.7;
    color: var(--text);
    background-color: var(--bg);
    background-image:
        repeating-linear-gradient(0deg, rgba(217, 226, 236, 0.3) 0 1px, transparent 1px 24px),
        repeating-linear-gradient(90deg, rgba(217, 226, 236, 0.3) 0 1px, transparent 1px 24px);
}

body::after {
    content: "";
    position: fixed;
    right: -40px;
    bottom: -30px;
    width: 420px;
    height: 300px;
    pointer-events: none;
    z-index: 0;
    opacity: 0.05;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: right bottom;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 420 300'%3E%3Cg fill='none' stroke='%231E6FD9' stroke-width='6'%3E%3Crect x='30' y='40' width='150' height='230'/%3E%3Crect x='210' y='40' width='150' height='230'/%3E%3Cpath d='M30 20h330'/%3E%3C/g%3E%3Cg fill='none' stroke='%231E6FD9' stroke-width='5'%3E%3Cpath d='M75 220v-90h35a25 25 0 0 1 0 50H75'/%3E%3Cpath d='M255 220v-90h35a25 25 0 0 1 0 50h-35'/%3E%3C/g%3E%3C/svg%3E");
}

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

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

.entry-body a,
.widget a,
.crumbs a,
.comment-text a {
    background-image: linear-gradient(var(--accent-2), var(--accent-2));
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 0 1.5px;
    transition: background-size 0.25s ease;
}

.entry-body a:hover,
.widget a:hover,
.crumbs a:hover,
.comment-text a:hover {
    background-size: 100% 1.5px;
}

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

h1 { font-size: 3.2rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.45rem; }
h4 { font-size: 1.2rem; }

p {
    margin: 0 0 1.1em;
}

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

blockquote {
    margin: 1.8rem 0;
    padding: 1.4rem 1.6rem;
    background: var(--bg-alt);
    border-left: 4px solid var(--accent);
    border-radius: 4px;
}

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

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

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

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

th {
    background: var(--bg-alt);
    font-family: var(--font-head);
    font-weight: 700;
}

code, pre {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    font-size: 0.92em;
}

pre {
    padding: 1rem 1.2rem;
    background: #0F1B2D;
    color: #E8EEF4;
    border-radius: 4px;
    overflow-x: auto;
}

/* =========================================================
   2. Контейнеры и раскладка
   ========================================================= */

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

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

.site-main {
    position: relative;
    z-index: 1;
    padding: 2.6rem 0 4.5rem;
}

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

.layout-single {
    display: block;
}

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

/* =========================================================
   3. Полоса сверху, шапка
   ========================================================= */

.topbar {
    display: flex;
    height: 4px;
    width: 100%;
}

.topbar span:first-child {
    flex: 0 0 70%;
    background: var(--accent);
}

.topbar span:last-child {
    flex: 1;
    background: var(--accent-2);
}

.site-header {
    background: var(--head-bg);
    color: #fff;
    position: relative;
    z-index: 2;
}

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

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

.brand-mark {
    display: block;
    flex: 0 0 auto;
    line-height: 0;
}

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

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

.brand-name {
    display: block;
    font-family: var(--font-head);
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    max-width: 30ch;
}

.brand-desc {
    display: block;
    font-size: 0.78rem;
    line-height: 1.45;
    color: #9DB0C4;
    max-width: 46ch;
    margin-top: 0.25rem;
}

.nav-toggle {
    display: none;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.9rem;
    background: transparent;
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    border-radius: 4px;
    font-family: var(--font-head);
    font-size: 0.9rem;
    cursor: pointer;
}

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

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

.main-nav a {
    display: inline-block;
    position: relative;
    padding: 0.2rem 0;
    color: #D6E0EC;
    font-family: var(--font-head);
    font-size: 0.97rem;
    font-weight: 600;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    height: 1.5px;
    width: 0;
    background: var(--accent-2);
    transition: width 0.25s ease;
}

.main-nav a:hover {
    color: #fff;
}

.main-nav a:hover::after {
    width: 100%;
}

.main-nav .current-menu-item > a {
    color: #fff;
}

.main-nav .current-menu-item > a::after {
    width: 100%;
    background: var(--accent);
}

.home .site-main {
    padding: 0 0 0;
}

.archive-desc {
    color: var(--muted);
    margin-top: 0.6rem;
}

.no-comments {
    color: var(--muted);
}

/* =========================================================
   4. Заголовки секций и кнопки
   ========================================================= */

.sec-h {
    position: relative;
    padding-left: 64px;
    margin-bottom: 1.6rem;
}

.sec-h::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.52em;
    width: 6px;
    height: 6px;
    background: var(--accent);
}

.sec-h::after {
    content: "";
    position: absolute;
    left: 18px;
    top: calc(0.52em + 2px);
    width: 34px;
    height: 2px;
    background: var(--accent);
}

.sec-sub {
    color: var(--muted);
    max-width: 68ch;
    margin: -0.6rem 0 2rem 64px;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.6rem;
    border-radius: 4px;
    font-family: var(--font-head);
    font-size: 0.97rem;
    font-weight: 700;
    line-height: 1.2;
    border: 1.5px solid var(--accent);
    background: var(--accent);
    color: #fff;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.15s ease, color 0.2s ease;
}

.btn:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    color: #fff;
    transform: translateY(-1px);
}

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

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

.btn-teal {
    background: var(--accent-2);
    border-color: var(--accent-2);
    color: #05202A;
}

.btn-teal:hover {
    background: #008F9A;
    border-color: #008F9A;
    color: #05202A;
}

/* =========================================================
   5. Хлебные крошки
   ========================================================= */

.crumbs {
    font-size: 0.86rem;
    color: var(--muted);
    margin-bottom: 1.6rem;
}

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

.crumbs .sep {
    color: var(--muted);
    padding: 0 0.25rem;
}

/* =========================================================
   6. Карточки записей
   ========================================================= */

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr));
    gap: 1.8rem;
    margin-bottom: 2.6rem;
}

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

.card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(30, 111, 217, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(30, 111, 217, 0.12);
    border-color: var(--accent);
}

.card-thumb {
    display: block;
    line-height: 0;
}

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

.card-thumb-empty {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background:
        repeating-linear-gradient(90deg, rgba(30, 111, 217, 0.12) 0 2px, transparent 2px 34px),
        linear-gradient(140deg, #E8EEF4, #D9E2EC);
}

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

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

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

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

.card-excerpt {
    color: #38475A;
    font-size: 0.96rem;
    margin-bottom: 1.1rem;
}

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

.card-excerpt p:last-child {
    margin-bottom: 0;
}

.card-foot {
    margin-top: auto;
}

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

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

.meta-line a:hover {
    color: var(--accent);
}

.meta-line .sep {
    padding: 0 0.2rem;
}

.card-more {
    display: inline-block;
    font-family: var(--font-head);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--accent);
    border-bottom: 1.5px solid transparent;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.card-more:hover {
    color: var(--accent-dark);
    border-bottom-color: var(--accent-2);
}

/* =========================================================
   7. Пагинация
   ========================================================= */

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

.pager .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 0.85rem;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: #fff;
    color: var(--text);
    font-family: var(--font-head);
    font-size: 0.95rem;
    font-weight: 600;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.pager a.page-numbers:hover {
    border-color: var(--accent);
    color: var(--accent);
}

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

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

/* =========================================================
   8. Записи и страницы
   ========================================================= */

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

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

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

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

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

.entry-body h2,
.entry-body h3 {
    margin-top: 1.8em;
}

.entry-body img {
    display: block;
    height: auto;
    border-radius: 6px;
}

.entry-body ul li,
.entry-body ol li {
    margin-bottom: 0.4em;
}

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

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

.page-heading {
    margin-bottom: 2rem;
}

/* =========================================================
   9. Сайдбар и виджеты
   ========================================================= */

.sidebar {
    min-width: 0;
}

.sidebar .widget {
    background: var(--side-bg);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 1.4rem 1.5rem;
    margin-bottom: 1.6rem;
    box-shadow: 0 4px 12px rgba(30, 111, 217, 0.08);
}

.widget-title {
    font-size: 1.1rem;
    margin: 0 0 1rem;
    padding-bottom: 0.6rem;
    border-bottom: 2px solid var(--accent);
}

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

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

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

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

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

.widget li {
    padding: 0.5rem 0 0.5rem 1rem;
    position: relative;
    border-bottom: 1px solid var(--line);
    font-size: 0.95rem;
}

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

.widget li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1.05em;
    width: 5px;
    height: 5px;
    background: var(--accent-2);
}

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

/* =========================================================
   10. Подвал
   ========================================================= */

.site-footer {
    background: var(--foot-bg);
    color: #C4D2E0;
    position: relative;
    z-index: 1;
}

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

.site-footer .widget {
    margin: 0;
    font-size: 0.95rem;
    color: #C4D2E0;
}

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

.site-footer .widget-title {
    color: #fff;
    border-bottom-color: rgba(30, 111, 217, 0.6);
}

.site-footer .widget a {
    color: #9FC4F0;
}

.site-footer .widget a:hover {
    color: #fff;
}

.site-footer .widget li {
    border-bottom-color: rgba(255, 255, 255, 0.09);
}

.site-footer .widget li::before {
    background: var(--accent-2);
}

.site-footer .widget .post-date {
    color: #8FA1B5;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.09);
    padding: 1.3rem 0 1.6rem;
    font-size: 0.86rem;
    color: #8FA1B5;
}

/* =========================================================
   11. Cookie-баннер
   ========================================================= */

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

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

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

.cookie-banner a {
    color: #9FC4F0;
}

/* =========================================================
   12. Формы поиска и комментариев
   ========================================================= */

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

.search-form input[type="search"] {
    flex: 1 1 200px;
    min-width: 0;
    padding: 0.7rem 0.9rem;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: #fff;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text);
}

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

.comments-area {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--line);
}

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

.comment-list .children {
    list-style: none;
    margin: 1rem 0 0;
    padding-left: 1.4rem;
    border-left: 2px solid var(--line);
}

.comment-inner {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 1.2rem 1.4rem;
    margin-bottom: 1rem;
}

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

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

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

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

.comment-wait {
    color: var(--muted);
    font-size: 0.88rem;
}

.comment-respond {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 1.6rem 1.7rem;
}

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

.comment-form label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    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.7rem 0.9rem;
    border: 1px solid var(--line);
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text);
    background: #fff;
}

.comment-form textarea {
    min-height: 150px;
    resize: vertical;
}

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

.comment-form .submit {
    display: inline-block;
    padding: 0.8rem 1.6rem;
    border: 1.5px solid var(--accent);
    border-radius: 4px;
    background: var(--accent);
    color: #fff;
    font-family: var(--font-head);
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.15s ease;
}

.comment-form .submit:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    transform: translateY(-1px);
}

/* =========================================================
   13. Главная — секции
   ========================================================= */

.front-section {
    padding: 84px 0;
}

.front-section.alt {
    background:
        repeating-linear-gradient(0deg, rgba(217, 226, 236, 0.45) 0 1px, transparent 1px 24px),
        repeating-linear-gradient(90deg, rgba(217, 226, 236, 0.45) 0 1px, transparent 1px 24px),
        linear-gradient(160deg, #E8EEF4, #F4F7FA);
}

/* Блок 1 — Hero */

.hero {
    position: relative;
    padding: 0;
    background: var(--head-bg);
    overflow: hidden;
}

.hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, rgba(15, 27, 45, 0.94) 0%, rgba(15, 27, 45, 0.82) 45%, rgba(11, 20, 32, 0.62) 100%);
}

.hero-inner {
    position: relative;
    z-index: 1;
    padding: 96px 0 100px;
}

.hero-box {
    max-width: 44rem;
    padding-left: 1.8rem;
    border-left: 4px solid var(--accent);
}

.hero h1 {
    color: #fff;
    margin-bottom: 1rem;
}

.hero-lead {
    color: #C6D6E6;
    font-size: 1.1rem;
    max-width: 52ch;
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
}

.hero .btn-ghost {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.5);
}

.hero .btn-ghost:hover {
    color: #fff;
    border-color: var(--accent-2);
}

/* Блок 2 — Статистика */

.stats-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    margin-top: 0.6rem;
}

.stat-cell {
    min-width: 0;
    padding: 0.4rem 1.6rem;
    border-left: 1px solid var(--line);
}

.stat-cell:first-child {
    padding-left: 0;
    border-left: 0;
}

.stat-num {
    display: block;
    font-family: var(--font-head);
    font-size: 2.9rem;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: var(--accent);
}

.stat-cell:nth-child(even) .stat-num {
    color: var(--accent-2);
}

.stat-label {
    display: block;
    margin-top: 0.6rem;
    font-size: 0.92rem;
    color: var(--muted);
}

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

.latest-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.8rem;
}

.latest-head .sec-h {
    margin-bottom: 0;
}

/* Блок 3 — Шаги */

.steps {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.4rem 3rem;
}

.step {
    display: flex;
    gap: 1.2rem;
    min-width: 0;
}

.step-ic {
    flex: 0 0 62px;
    width: 62px;
    height: 62px;
    border: 1.5px solid var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}

.step-ic svg {
    width: 28px;
    height: 28px;
}

.step-body {
    min-width: 0;
}

.step-num {
    display: block;
    font-family: var(--font-head);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--muted);
    margin-bottom: 0.25rem;
}

.step-body h3 {
    font-size: 1.2rem;
    margin-bottom: 0.4rem;
}

.step-body p {
    margin: 0;
    font-size: 0.96rem;
    color: #38475A;
}

/* Блок 4 — CTA */

.cta-wrap {
    padding: 84px 0;
}

.fs-cta {
    position: relative;
    padding: 3rem 3rem 3.1rem;
    background-color: var(--head-bg);
    background-image:
        repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 24px),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 24px);
    border-radius: 6px;
    border-left: 6px solid var(--accent);
}

.fs-cta h2 {
    color: #fff;
    max-width: 24ch;
}

.fs-cta p {
    color: #C6D6E6;
    max-width: 62ch;
}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.4rem;
    margin-top: 1.8rem;
}

.cta-mail {
    color: #9FC4F0;
    font-size: 0.95rem;
}

.cta-mail:hover {
    color: #fff;
}

/* 404 */

.nf-code {
    font-family: var(--font-head);
    font-size: 5rem;
    font-weight: 800;
    line-height: 1;
    color: var(--accent);
    margin-bottom: 0.4rem;
}

.nf-box {
    max-width: 44rem;
}

.nf-search {
    margin: 1.8rem 0;
}

.no-posts {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 1.6rem 1.8rem;
}

/* =========================================================
   14. Адаптив
   ========================================================= */

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

    h1 { font-size: 2.3rem; }
    h2 { font-size: 1.7rem; }

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

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

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

    .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;
        padding-top: 0.8rem;
        border-top: 1px solid rgba(255, 255, 255, 0.12);
    }

    .main-nav li {
        padding: 0.45rem 0;
    }

    .front-section,
    .cta-wrap {
        padding: 60px 0;
    }

    .hero-inner {
        padding: 70px 0 74px;
    }

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

    .stats-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.8rem 0;
    }

    .stat-cell:nth-child(3) {
        padding-left: 0;
        border-left: 0;
    }

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

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

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

    .sec-h {
        padding-left: 40px;
    }

    .sec-h::after {
        left: 16px;
        width: 14px;
    }

    .sec-sub {
        margin-left: 40px;
    }

    .brand-desc {
        display: none;
    }

    .front-section,
    .cta-wrap {
        padding: 46px 0;
    }

    .hero-inner {
        padding: 54px 0 58px;
    }

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

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

    .stat-cell {
        padding: 0 0 1.2rem;
        border-left: 0;
        border-bottom: 1px solid var(--line);
    }

    .stat-cell:last-child {
        border-bottom: 0;
        padding-bottom: 0;
    }

    .stat-num {
        font-size: 2.4rem;
    }

    .fs-cta {
        padding: 1.9rem 1.4rem 2rem;
    }

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

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

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

    body::after {
        width: 240px;
        height: 180px;
    }
}
