/*
Theme Name: dds_satanovsky.ru
Author: Алексей Сатановский
Description: Тема для информационно-аналитического портала о строительном образовании и инженерной карьере. Холодная лавандово-стальная палитра, инженерная графика, каталоги вузов и обзоры специальностей.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: satnv
*/

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

:root {
    --bg: #f4f7fc;
    --bg-alt: #e9eef6;
    --head: #1c1f2e;
    --foot: #12141e;
    --panel: #ffffff;
    --ink: #1e2330;
    --accent: #6c5b9e;
    --accent-dark: #4d3d7a;
    --accent-2: #4a7c9b;
    --muted: #7b89a0;
    --line: #d0d8e6;
    --radius: 12px;
    --btn-radius: 4px;
    --shadow: 0 6px 20px rgba(30, 35, 48, 0.08);
    --shadow-hi: 0 14px 34px rgba(30, 35, 48, 0.16);
    --font-head: "Manrope", "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    --font-body: "Source Sans Pro", "Roboto", "Segoe UI", Arial, sans-serif;
    --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

*,
*::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(--ink);
    background-color: var(--bg);
    background-image:
        repeating-linear-gradient(45deg, rgba(208, 216, 230, 0.2) 0, rgba(208, 216, 230, 0.2) 1px, transparent 1px, transparent 24px),
        repeating-linear-gradient(-45deg, rgba(208, 216, 230, 0.2) 0, rgba(208, 216, 230, 0.2) 1px, transparent 1px, transparent 24px);
}

body::after {
    content: "";
    position: fixed;
    right: -60px;
    bottom: -70px;
    width: 460px;
    height: 460px;
    z-index: 0;
    pointer-events: none;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cpath d='M100 4 190 52v96l-90 48-90-48V52z' fill='%236c5b9e'/%3E%3Cpath d='M100 34 164 68v64l-64 34-64-34V68z' fill='none' stroke='%236c5b9e' stroke-width='6'/%3E%3Cpath d='M36 100h128M100 34v132' stroke='%236c5b9e' stroke-width='4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
}

.page-wrap {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

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

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

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

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

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

h1 { font-size: 3.2rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.15rem; }

p {
    margin: 0 0 1.1em;
}

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

li {
    margin-bottom: 0.4em;
}

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

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

code, pre, .mono {
    font-family: var(--font-mono);
}

pre {
    overflow-x: auto;
    padding: 1.1rem 1.2rem;
    background: var(--head);
    color: #dbe2f0;
    border-radius: var(--radius);
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.4em 0;
    background: var(--panel);
    border: 1px solid var(--line);
}

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

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

hr {
    border: 0;
    height: 1px;
    background: var(--line);
    margin: 2.4rem 0;
}

/* ==========================================================
   2. Кнопки, заголовки секций, уголок
   ========================================================== */

.btn {
    display: inline-block;
    padding: 0.78rem 1.6rem;
    border-radius: var(--btn-radius);
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 0.98rem;
    line-height: 1.2;
    cursor: pointer;
    border: 2px solid transparent;
    background-image: none;
    transition: background-color 0.22s ease, color 0.22s ease, transform 0.22s ease, border-color 0.22s ease;
}

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

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

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

.btn-ghost:hover,
.btn-ghost:focus {
    background-color: rgba(108, 91, 158, 0.12);
    transform: translateY(-2px);
}

.btn-light {
    background-color: transparent;
    color: #fff;
    border-color: #cfc4ea;
}

.btn-light:hover,
.btn-light:focus {
    background-color: rgba(255, 255, 255, 0.14);
    border-color: #fff;
    color: #fff;
    transform: translateY(-2px);
}

.sec-title {
    font-size: 2rem;
    margin-bottom: 1.4rem;
}

.sec-title::before {
    content: "";
    display: inline-block;
    width: 52px;
    height: 2px;
    margin-right: 18px;
    vertical-align: middle;
    background: var(--accent);
}

.sec-lead {
    max-width: 760px;
    color: var(--muted);
    margin-bottom: 2rem;
}

.corner {
    position: relative;
}

.corner::after {
    content: "";
    position: absolute;
    top: 12px;
    right: 12px;
    width: 14px;
    height: 14px;
    border-top: 2px solid var(--accent);
    border-right: 2px solid var(--accent);
    pointer-events: none;
}

/* ==========================================================
   3. Шапка
   ========================================================== */

.site-top {
    background: var(--head);
    color: #e6ebf5;
    border-bottom: 2px solid var(--accent);
}

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

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

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

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

.site-name {
    display: block;
    margin: 0;
    font-family: var(--font-head);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
    color: #fff;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

a.site-name-link {
    background-image: none;
    color: #fff;
}

a.site-name-link:hover .site-name {
    color: #c9bde8;
}

.site-tagline {
    margin: 0.25rem 0 0;
    font-size: 0.8rem;
    line-height: 1.45;
    color: #9aa7bf;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nav-toggle {
    display: none;
    margin-left: auto;
    padding: 0.55rem 0.9rem;
    background: transparent;
    color: #e6ebf5;
    border: 2px solid #3a4159;
    border-radius: var(--btn-radius);
    font-family: var(--font-head);
    font-size: 0.9rem;
    cursor: pointer;
}

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

.main-nav li {
    margin: 0;
}

.main-nav a {
    display: inline-block;
    padding: 0.35rem 0;
    color: #dbe2f0;
    font-family: var(--font-head);
    font-size: 0.98rem;
    font-weight: 600;
}

.main-nav a:hover,
.main-nav .current-menu-item > a {
    color: #c0b1e8;
}

/* ==========================================================
   4. Раскладки
   ========================================================== */

.site-main {
    flex: 1 0 auto;
    padding: 2.6rem 0 4rem;
}

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

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

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

.page-head {
    margin-bottom: 2.2rem;
}

.page-head h1 {
    font-size: 2.6rem;
    margin-bottom: 0.3rem;
}

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

.crumbs {
    font-size: 0.9rem;
    color: var(--muted);
    margin-bottom: 1.6rem;
    padding-bottom: 0.7rem;
    border-bottom: 1px solid var(--line);
}

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

.crumbs-sep {
    color: var(--line);
    margin: 0 0.25rem;
}

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

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

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

.card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.28s ease;
    z-index: 2;
}

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

.card:hover::before {
    transform: scaleX(1);
}

.card-thumb-wrap {
    display: block;
    overflow: hidden;
}

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

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

.card-thumb-fallback {
    display: block;
    aspect-ratio: 16 / 9;
    background:
        linear-gradient(135deg, rgba(108, 91, 158, 0.18), rgba(74, 124, 155, 0.18)),
        repeating-linear-gradient(45deg, rgba(208, 216, 230, 0.5) 0, rgba(208, 216, 230, 0.5) 1px, transparent 1px, transparent 16px),
        var(--bg-alt);
}

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

.card-meta {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    color: var(--muted);
    margin-bottom: 0.5rem;
}

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

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

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

.card-excerpt {
    color: #4c5668;
    font-size: 0.97rem;
    margin-bottom: 1rem;
}

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

.card-more {
    margin-top: auto;
    align-self: flex-start;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--accent);
}

/* ==========================================================
   6. Главная страница
   ========================================================== */

.front-body {
    display: block;
    width: 85%;
    margin-left: auto;
    margin-right: auto;
}

.fs {
    padding: 120px 0;
}

.fs-inner {
    min-width: 0;
}

.fs--alt {
    background: var(--bg-alt);
    padding: 120px 2.2rem;
    border-radius: var(--radius);
}

/* Блок 1 — hero */

.fs-hero {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    padding: 5.4rem 3rem;
    margin-top: 0.6rem;
    color: #fff;
}

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

.hero-veil {
    position: absolute;
    inset: 0;
    background: linear-gradient(125deg, rgba(28, 31, 46, 0.92) 0%, rgba(108, 91, 158, 0.78) 52%, rgba(74, 124, 155, 0.76) 100%);
}

.hero-inner {
    position: relative;
    z-index: 1;
    max-width: 720px;
    min-width: 0;
}

.hero-kicker {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #cfc4ea;
    margin-bottom: 1rem;
}

.fs-hero h1 {
    color: #fff;
    font-size: 3.2rem;
    margin-bottom: 0.6rem;
}

.hero-sub {
    font-size: 1.1rem;
    color: #dfe5f2;
    margin-bottom: 1.9rem;
}

.fs-hero .corner::after,
.fs-hero::after {
    border-color: #cfc4ea;
}

/* Блок 2 — путь (шаги) */

.path-track {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2.4rem;
}

.path-step {
    position: relative;
    min-width: 0;
}

.path-step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 1.5rem;
    right: -2.4rem;
    width: 2.4rem;
    height: 2px;
    background: var(--line);
}

.path-num {
    display: block;
    font-family: var(--font-mono);
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    color: var(--accent);
    margin-bottom: 0.9rem;
}

.path-step h3 {
    font-size: 1.2rem;
    margin-bottom: 0.45rem;
}

.path-step p {
    font-size: 0.95rem;
    color: #4c5668;
    margin: 0;
}

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

.fs-latest .fs-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

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

.fs-quote {
    padding: 120px 0;
}

.quote-plate {
    position: relative;
    padding: 3rem 3rem 3rem 2.6rem;
    border-left: 6px solid var(--accent);
    border-radius: 0 var(--radius) var(--radius) 0;
    background:
        linear-gradient(125deg, rgba(108, 91, 158, 0.1), rgba(74, 124, 155, 0.1)),
        var(--bg-alt);
}

.quote-plate p {
    font-family: var(--font-head);
    font-size: 2rem;
    line-height: 1.32;
    font-weight: 700;
    margin: 0 0 1rem;
}

.quote-sign {
    font-family: var(--font-mono);
    font-size: 0.86rem;
    letter-spacing: 0.06em;
    color: var(--muted);
    margin: 0;
}

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

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

.map-tile {
    position: relative;
    display: block;
    min-width: 0;
    padding: 1.9rem 1.7rem;
    border: 2px solid transparent;
    border-radius: var(--radius);
    background-color: var(--panel);
    background-image: none;
    color: var(--ink);
    box-shadow: var(--shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.map-tile:nth-child(even) {
    background-color: var(--bg-alt);
}

.map-tile:hover {
    transform: translateY(-6px);
    border-color: var(--accent);
    box-shadow: var(--shadow-hi);
    color: var(--ink);
}

.map-icon {
    display: block;
    width: 44px;
    height: 44px;
    margin-bottom: 1.1rem;
    color: var(--accent);
}

.map-tile h3 {
    font-size: 1.12rem;
    margin-bottom: 0.4rem;
}

.map-tile p {
    font-size: 0.92rem;
    color: #4c5668;
    margin: 0;
}

/* ==========================================================
   7. Запись и страница
   ========================================================== */

.entry-thumb {
    margin: 0 0 1.8rem;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

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

.entry-meta {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--muted);
    margin-bottom: 1.6rem;
}

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

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

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

.entry-content img {
    border-radius: var(--radius);
}

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

.entry-tags a {
    display: inline-block;
    margin: 0 0.4rem 0.4rem 0;
    padding: 0.2rem 0.7rem;
    border: 1px solid var(--line);
    border-radius: var(--btn-radius);
    background-image: none;
    color: var(--accent-2);
}

.entry-tags a:hover {
    border-color: var(--accent);
    color: var(--accent);
}

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

.sidebar {
    min-width: 0;
}

.sidebar .widget {
    position: relative;
    background: var(--panel);
    color: var(--ink);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.4rem 1.5rem;
    margin-bottom: 1.6rem;
}

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

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

.sidebar .widget li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--line);
}

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

.sidebar .widget a {
    color: var(--ink);
    font-size: 0.96rem;
}

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

.sidebar .widget .post-date,
.sidebar .widget .rss-date {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.76rem;
    color: var(--muted);
}

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

.site-foot {
    background: var(--foot);
    color: #c3cbdb;
    padding: 3.4rem 0 1.6rem;
    margin-top: auto;
    border-top: 2px solid var(--accent);
}

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

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

.site-foot .widget {
    margin-bottom: 1.6rem;
    color: #c3cbdb;
}

.site-foot .widget:last-child {
    margin-bottom: 0;
}

.site-foot .widget-title {
    font-size: 1.05rem;
    color: #ffffff;
    margin-bottom: 0.9rem;
    padding-bottom: 0.55rem;
    border-bottom: 2px solid var(--accent);
}

.site-foot .widget p,
.site-foot .widget li {
    color: #c3cbdb;
    font-size: 0.94rem;
}

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

.site-foot .widget li {
    padding: 0.35rem 0;
}

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

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

.site-foot .widget .post-date {
    font-family: var(--font-mono);
    font-size: 0.76rem;
    color: #8d99b0;
}

.foot-contact {
    font-size: 0.94rem;
    color: #c3cbdb;
}

.foot-bottom {
    border-top: 1px solid #262a3a;
    padding-top: 1.3rem;
    font-size: 0.88rem;
    color: #8d99b0;
}

/* ==========================================================
   10. Пагинация, формы, комментарии
   ========================================================== */

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

.pager .page-numbers {
    display: inline-block;
    min-width: 44px;
    padding: 0.55rem 0.85rem;
    text-align: center;
    font-family: var(--font-mono);
    font-size: 0.92rem;
    color: var(--ink);
    background: var(--panel);
    border: 2px solid var(--line);
    border-radius: var(--btn-radius);
    background-image: none;
    transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

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

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

.pager .page-numbers.dots {
    border-color: transparent;
    background: transparent;
}

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

.search-form input[type="search"] {
    flex: 1 1 200px;
    min-width: 0;
    padding: 0.72rem 0.9rem;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--ink);
    background: var(--panel);
    border: 2px solid var(--line);
    border-radius: var(--btn-radius);
}

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

.search-form button {
    padding: 0.72rem 1.4rem;
    font-family: var(--font-head);
    font-weight: 700;
    color: #fff;
    background: var(--accent);
    border: 2px solid var(--accent);
    border-radius: var(--btn-radius);
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.search-form button:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    transform: translateY(-2px);
}

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

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

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

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

.comment-inner {
    position: relative;
    background: var(--panel);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.2rem 1.4rem;
    margin-bottom: 1.1rem;
}

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

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

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

.comment-await {
    font-size: 0.88rem;
    color: var(--accent-2);
}

.comment-actions a {
    font-size: 0.9rem;
    font-family: var(--font-head);
    font-weight: 600;
}

.comment-respond {
    background: var(--panel);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.6rem 1.7rem;
}

.comment-form label {
    display: block;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 0.92rem;
    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;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--ink);
    background: var(--bg);
    border: 2px solid var(--line);
    border-radius: var(--btn-radius);
    margin-bottom: 1rem;
}

.comment-form input:focus,
.comment-form textarea:focus {
    border-color: var(--accent);
    outline: none;
}

.comment-form .submit {
    padding: 0.78rem 1.6rem;
    font-family: var(--font-head);
    font-weight: 700;
    color: #fff;
    background: var(--accent);
    border: 2px solid var(--accent);
    border-radius: var(--btn-radius);
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

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

/* ==========================================================
   11. 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;
    padding: 1.1rem 1.6rem;
    background: var(--head);
    color: #dfe5f2;
    border-top: 2px solid var(--accent);
}

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

.cookie-banner a {
    color: #c0b1e8;
}

/* ==========================================================
   12. 404 и служебное
   ========================================================== */

.error-box {
    padding: 2.6rem 2.4rem;
    background: var(--panel);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.error-code {
    font-family: var(--font-mono);
    font-size: 4.4rem;
    font-weight: 700;
    line-height: 1;
    color: var(--accent);
    margin-bottom: 0.6rem;
}

.error-actions {
    margin-top: 1.6rem;
}

.nothing-found {
    padding: 2rem 2.2rem;
    background: var(--panel);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

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

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

@media (max-width: 960px) {
    h1 { font-size: 2.4rem; }
    h2, .sec-title { font-size: 1.7rem; }

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

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

    .fs {
        padding: 72px 0;
    }

    .fs--alt {
        padding: 72px 1.8rem;
    }

    .fs-quote {
        padding: 72px 0;
    }

    .fs-hero {
        padding: 3.6rem 2rem;
    }

    .fs-hero h1 {
        font-size: 2.4rem;
    }

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

    .path-step:not(:last-child)::after {
        display: none;
    }

    .nav-toggle {
        display: block;
    }

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

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

    .main-nav ul {
        flex-direction: column;
        gap: 0;
        border-top: 1px solid #2b3145;
        padding-top: 0.5rem;
    }

    .main-nav li {
        border-bottom: 1px solid #2b3145;
    }

    .main-nav a {
        display: block;
        padding: 0.7rem 0;
    }
}

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

    h1 { font-size: 2rem; }
    h2, .sec-title { font-size: 1.5rem; }

    .sec-title::before {
        width: 34px;
        margin-right: 12px;
    }

    .site-main {
        padding: 1.8rem 0 3rem;
    }

    .fs {
        padding: 56px 0;
    }

    .fs--alt {
        padding: 56px 1.3rem;
    }

    .fs-quote {
        padding: 56px 0;
    }

    .fs-hero {
        padding: 2.6rem 1.4rem;
    }

    .fs-hero h1 {
        font-size: 1.95rem;
    }

    .quote-plate {
        padding: 1.9rem 1.4rem 1.9rem 1.3rem;
    }

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

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

    .map-tile {
        padding: 1.5rem 1.3rem;
    }

    .error-box,
    .comment-respond {
        padding: 1.6rem 1.3rem;
    }

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

    .card-thumb-wrap {
        position: static;
    }

    .card-thumb-wrap a {
        position: static;
    }

    .card-thumb-wrap img {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}
