/*
Theme Name: dds_acer-service-chelyabinsk.ru
Theme URI: https://acer-service-chelyabinsk.ru/
Author: Дмитрий Савельев
Description: Тема образовательного портала о ремонте и обслуживании ноутбуков и компьютерной техники. Тёмная швейцарская сетка, электрик-голубой акцент и мотивы печатной платы.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
License: GNU General Public License v2 or later
Text Domain: acerlab
*/

@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:ital,wght@0,400;0,500;0,600;1,400&family=Space+Grotesk:wght@500;600;700&display=swap");

:root {
    --c-bg: #0f1117;
    --c-bg-alt: #161a23;
    --c-head: #0b0d12;
    --c-side: #131720;
    --c-text: #e8eaed;
    --c-accent: #00d4ff;
    --c-violet: #7c5cff;
    --c-muted: #8892a4;
    --c-line: #1e2633;
    --f-head: "Space Grotesk", "Inter", "Segoe UI", Arial, sans-serif;
    --f-body: "IBM Plex Sans", "Source Sans 3", "Segoe UI", Arial, sans-serif;
    --glow: 0 0 18px rgba(0, 212, 255, .45);
}

/* ---------- hidden-правила до основных блоков ---------- */
[hidden] { display: none !important; }
.cookie-banner[hidden] { display: none !important; }

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
}
body {
    margin: 0;
    overflow-x: hidden;
    color: var(--c-text);
    font-family: var(--f-body);
    font-size: 1.0625rem;
    line-height: 1.7;
    background-color: var(--c-bg);
    background-image: repeating-linear-gradient(45deg, #161a23 0, #161a23 1px, transparent 1px, transparent 24px);
    position: relative;
}
body::after {
    content: "";
    position: fixed;
    right: -40px;
    bottom: -40px;
    width: 420px;
    height: 420px;
    z-index: -1;
    pointer-events: none;
    opacity: .03;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cg fill='none' stroke='%2300d4ff' stroke-width='6'%3E%3Crect x='50' y='50' width='100' height='100' rx='8'/%3E%3Crect x='75' y='75' width='50' height='50'/%3E%3Cpath d='M70 10v40M100 10v40M130 10v40M70 150v40M100 150v40M130 150v40M10 70h40M10 100h40M10 130h40M150 70h40M150 100h40M150 130h40'/%3E%3C/g%3E%3C/svg%3E") no-repeat center / contain;
}
img { max-width: 100%; height: auto; }
p { margin: 0 0 1.1em; }
h1, h2, h3, h4, h5, h6 {
    font-family: var(--f-head);
    color: #f4f6f8;
    line-height: 1.2;
    letter-spacing: -.02em;
    margin: 1.6em 0 .6em;
}
h1 { font-size: 3.2rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.35rem; }
a {
    color: var(--c-accent);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: color .2s, text-decoration-thickness .2s, text-decoration-color .2s;
}
a:hover { color: var(--c-violet); text-decoration-thickness: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 2px solid var(--c-accent);
    outline-offset: 3px;
}
table { width: 100%; border-collapse: collapse; margin: 1.5em 0; border: 1px solid #2a3444; }
th, td { border: 1px solid #2a3444; padding: .6em .8em; text-align: left; }
th { background: var(--c-bg-alt); font-family: var(--f-head); }
blockquote {
    position: relative;
    margin: 1.8em 0;
    padding: 1.2em 3.2em 1.2em 1.5em;
    background: var(--c-bg-alt);
    border-left: 3px solid var(--c-accent);
    border-radius: 0 6px 6px 0;
}
blockquote::after {
    content: "";
    position: absolute;
    top: 14px;
    right: 14px;
    width: 20px;
    height: 20px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M13 2L4 14h7l-1 8 9-12h-7z' fill='%2300d4ff'/%3E%3C/svg%3E") no-repeat center / contain;
}
blockquote p:last-child { margin-bottom: 0; }
code, pre { font-family: "IBM Plex Mono", Consolas, monospace; font-size: .92em; }
pre { overflow-x: auto; background: var(--c-head); border: 1px solid var(--c-line); padding: 1em 1.2em; border-radius: 6px; }
hr { border: 0; height: 1px; background: var(--c-line); margin: 2em 0; }
.screen-reader-text {
    position: absolute !important; width: 1px; height: 1px; overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}

/* ---------- Контейнеры ---------- */
.shell { width: min(92%, 1180px); margin-left: auto; margin-right: auto; }
.shell-wide { width: 85%; max-width: 1320px; margin-left: auto; margin-right: auto; }

/* ---------- Кнопки ---------- */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4em;
    padding: .78em 1.6em;
    font-family: var(--f-head);
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.2;
    text-decoration: none;
    border: 0;
    background: none;
    cursor: pointer;
    isolation: isolate;
    transition: transform .2s ease, filter .2s ease, color .2s;
}
.btn::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: 6px;
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
}
.btn:hover { transform: translateY(-2px); text-decoration: none; filter: drop-shadow(0 0 10px rgba(0, 212, 255, .55)); }
.btn--fill { color: #0f1117; }
.btn--fill::before { background: var(--c-accent); }
.btn--fill:hover { color: #0f1117; }
.btn--line { color: var(--c-accent); }
.btn--line::before {
    background: var(--c-accent);
    padding: 1.5px;
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.btn--line::after {
    content: "";
    position: absolute;
    top: 6px;
    right: -2.5px;
    width: 17px;
    height: 1.5px;
    background: var(--c-accent);
    transform: translateY(-50%) rotate(45deg);
}
.btn--line:hover { color: var(--c-accent); }

/* ---------- Шапка ---------- */
.scanline { height: 3px; background: linear-gradient(90deg, #00d4ff, #7c5cff); }
.masthead { background: var(--c-head); border-bottom: 1px solid var(--c-line); position: relative; z-index: 5; }
.masthead-row { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1rem 0; }
.brand { display: flex; align-items: center; gap: .9rem; min-width: 0; color: var(--c-text); text-decoration: none; flex: 1 1 auto; }
.brand:hover { color: var(--c-text); }
.brand-mark { flex: 0 0 auto; display: block; }
.brand-logo { display: block; max-height: 56px; width: auto; }
.brand-svg { display: block; }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-name {
    font-family: var(--f-head);
    font-weight: 600;
    font-size: .98rem;
    line-height: 1.3;
    letter-spacing: -.01em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.brand-desc {
    font-size: .8rem;
    color: var(--c-muted);
    line-height: 1.4;
    margin-top: .2rem;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.topnav { position: relative; flex: 0 0 auto; }
.topnav-list { list-style: none; margin: 0; padding: 0; display: flex; gap: .3rem; }
.topnav-list a {
    display: block;
    padding: .5em .9em;
    color: var(--c-text);
    font-family: var(--f-head);
    font-weight: 500;
    font-size: .95rem;
    text-decoration: none;
    border-bottom: 2px solid transparent;
}
.topnav-list a:hover,
.topnav-list .current-menu-item > a { color: var(--c-accent); border-bottom-color: var(--c-accent); }
.topnav-toggle {
    display: none;
    align-items: center;
    gap: .6rem;
    padding: .55em .9em;
    background: transparent;
    color: var(--c-text);
    border: 1px solid var(--c-line);
    border-radius: 6px;
    font: 500 .95rem var(--f-head);
    cursor: pointer;
}
.topnav-bars, .topnav-bars::before, .topnav-bars::after {
    display: block; width: 18px; height: 2px; background: var(--c-accent); position: relative;
}
.topnav-bars::before, .topnav-bars::after { content: ""; position: absolute; left: 0; }
.topnav-bars::before { top: -6px; }
.topnav-bars::after { top: 6px; }

/* ---------- Хлебные крошки ---------- */
.crumbs { font-size: .88rem; color: var(--c-muted); padding: 1.6rem 0 .4rem; }
.crumbs a { color: var(--c-accent); text-decoration: none; }
.crumbs a:hover { color: var(--c-violet); text-decoration: underline; }
.crumbs .sep { margin: 0 .35em; color: #4a5568; }

/* ---------- Раскладка страниц ---------- */
.inner-page { padding-bottom: 4rem; }
.layout-single .content-area { width: 85%; margin-left: auto; margin-right: auto; }
.layout-with-sidebar .content-area, .layout-with-sidebar .sidebar { min-width: 0; }
.page-head { margin-bottom: 2rem; }
.page-heading { margin: .6rem 0 .8rem; font-size: 3.2rem; }
.page-intro { color: var(--c-muted); }
.empty-note { color: var(--c-muted); }

/* ---------- Контент записи ---------- */
.entry-meta { display: flex; flex-wrap: wrap; gap: .6rem 1rem; align-items: center; color: var(--c-muted); font-size: .9rem; }
.entry-cover { margin: 0 0 2rem; border: 1px solid var(--c-line); border-radius: 8px; overflow: hidden; }
.entry-cover img { display: block; width: 100%; height: auto; }
.entry h2 {
    position: relative;
    padding-left: 1rem;
}
.entry h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: .12em;
    bottom: .12em;
    width: 4px;
    border-radius: 4px;
    background: var(--c-accent);
    box-shadow: 0 0 10px rgba(0, 212, 255, .5);
}
.entry ul, .entry ol { padding-left: 1.4em; margin: 0 0 1.2em; }
.entry li { margin-bottom: .4em; }
.entry ul li::marker { color: var(--c-accent); }
.entry img { border-radius: 6px; }
.entry figure { margin: 1.5em 0; }
.entry figcaption, .wp-caption-text { font-size: .88rem; color: var(--c-muted); margin-top: .5em; }
.entry-tags { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.entry-tags a, .card-tag {
    display: inline-block;
    padding: .15em .65em;
    font-size: .8rem;
    color: #b9a8ff;
    text-decoration: none;
    border: 1px solid rgba(124, 92, 255, .45);
    border-radius: 4px;
    line-height: 1.6;
}
.entry-tags a:hover, .card-tag:hover { color: #0f1117; background: var(--c-violet); text-decoration: none; }

/* ---------- Заголовки секций ---------- */
.sec-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0 0 1rem;
    font-size: 2.2rem;
    letter-spacing: -.03em;
}
.sec-title::before {
    content: "";
    flex: 0 0 44px;
    height: 3px;
    background: var(--c-accent);
    box-shadow: 0 0 10px rgba(0, 212, 255, .6);
}
.sec-lead { color: var(--c-muted); max-width: 44em; margin: 0 0 2.5rem; }

/* ---------- Карточки ---------- */
.card-grid { display: grid; gap: 1.8rem; grid-template-columns: minmax(0, 1fr); }
.card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--c-bg-alt);
    border: 1px solid var(--c-line);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 212, 255, .08);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--c-accent);
    box-shadow: 0 0 12px rgba(0, 212, 255, .8);
    opacity: 0;
    transition: opacity .25s ease;
    z-index: 2;
}
.card:hover { transform: translateY(-4px); border-color: var(--c-accent); box-shadow: 0 10px 34px rgba(0, 212, 255, .18); }
.card:hover::before { opacity: 1; }
.card-thumb { background: var(--c-head); }
.card-thumb a { display: block; }
.card-thumb img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.card-thumb-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 16 / 9;
    background-color: #0b0d12;
    background-image: radial-gradient(rgba(0, 212, 255, .12) 1px, transparent 1px);
    background-size: 14px 14px;
}
.card-thumb-empty svg { display: block; }
.card-body { flex: 1; display: flex; flex-direction: column; padding: 1.3rem 1.4rem 1.5rem; min-width: 0; }
.card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .8rem; font-size: .82rem; color: var(--c-muted); margin-bottom: .6rem; }
.card-pin { color: var(--c-accent); font-weight: 600; }
.card-title { font-size: 1.22rem; margin: 0 0 .6rem; }
.card-title a { color: #f4f6f8; text-decoration: none; }
.card-title a:hover { color: var(--c-accent); }
.card-excerpt { color: #b8bfcb; font-size: .95rem; margin-bottom: 1rem; overflow-wrap: anywhere; }
.card-excerpt p { margin: 0 0 0.5em; background: none; }
.card-excerpt img, .card-excerpt figure, .card-excerpt iframe { display: none; }
.card-more { margin-top: auto; align-self: flex-start; font-family: var(--f-head); font-weight: 600; font-size: .92rem; }

/* ---------- Пагинация ---------- */
.pager { display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; margin: 2.8rem 0 0; }
.pager .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.6rem;
    height: 2.6rem;
    padding: 0 .8rem;
    border: 1px solid var(--c-line);
    border-radius: 6px;
    background: var(--c-bg-alt);
    color: var(--c-text);
    font-family: var(--f-head);
    font-weight: 500;
    text-decoration: none;
    transition: border-color .2s, color .2s, box-shadow .2s;
}
.pager a.page-numbers:hover { border-color: var(--c-accent); color: var(--c-accent); box-shadow: var(--glow); }
.pager .page-numbers.current { background: var(--c-accent); border-color: var(--c-accent); color: #0f1117; font-weight: 700; }
.pager .page-numbers.dots { border: 0; background: none; min-width: auto; color: var(--c-muted); }

/* ---------- Сайдбар ---------- */
.sidebar {
    background: var(--c-side);
    border: 1px solid var(--c-line);
    border-radius: 8px;
    padding: 1.6rem 1.5rem;
    align-self: start;
    color: #d5d9e0;
}
.sidebar .widget + .widget { margin-top: 2rem; }
.sidebar .widget-title {
    margin: 0 0 1rem;
    font-size: 1.1rem;
    color: #f4f6f8;
    padding-bottom: .6rem;
    border-bottom: 1px solid var(--c-line);
}
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar li { padding: .55rem 0; border-bottom: 1px dashed var(--c-line); }
.sidebar li:last-child { border-bottom: 0; }
.sidebar a { color: #e8eaed; text-decoration: none; }
.sidebar a:hover { color: var(--c-accent); text-decoration: underline; }
.sidebar .post-date { display: block; font-size: .8rem; color: var(--c-muted); margin-top: .15rem; }
.sidebar p { color: #c3c9d3; }

/* ---------- Главная ---------- */
.fp-hero {
    position: relative;
    overflow: hidden;
    background: #0b0d12;
    min-height: 560px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--c-line);
}
.fp-hero-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; display: block; opacity: .55; }
.fp-hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, rgba(11, 13, 18, .96) 0%, rgba(15, 17, 23, .82) 45%, rgba(15, 17, 23, .35) 100%);
}
.fp-hero-scheme { position: absolute; right: 3%; bottom: 6%; width: 300px; height: auto; pointer-events: none; }
.glow-dot { filter: drop-shadow(0 0 5px #00d4ff); animation: acl-blink 3.2s ease-in-out infinite; }
.glow-dot:nth-of-type(2) { animation-delay: .8s; }
.glow-dot:nth-of-type(3) { animation-delay: 1.6s; }
@keyframes acl-blink { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.fp-hero-inner { position: relative; z-index: 2; padding: 5rem 0; }
.fp-hero-title { font-size: 3.6rem; margin: 0 0 1.2rem; letter-spacing: -.035em; max-width: 13em; }
.fp-hero-sub { font-size: 1.15rem; color: #c3c9d3; max-width: 36em; margin: 0 0 2.2rem; }
.fp-hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.fp-section { padding: 5rem 0; position: relative; }
.fp-section--alt { background-color: var(--c-bg-alt); }
.fp-section--accent {
    background-color: var(--c-bg-alt);
    background-image:
        radial-gradient(rgba(0, 212, 255, .05) 1.2px, transparent 1.2px),
        linear-gradient(180deg, #161a23 0%, #0f1117 100%);
    background-size: 18px 18px, 100% 100%;
}
.fp-more { margin: 2.5rem 0 0; }

.trace-divider {
    position: relative;
    height: 34px;
    background-image: radial-gradient(#1e2633 1.5px, transparent 1.6px);
    background-size: 12px 12px;
    background-position: center 26px;
    background-repeat: repeat-x;
}
.trace-divider::before, .trace-divider::after {
    content: "";
    position: absolute;
    top: 12px;
    height: 1px;
    background: var(--c-line);
    width: calc(50% - 22px);
}
.trace-divider::before { left: 0; }
.trace-divider::after { right: 0; }
.trace-divider span {
    position: absolute;
    left: 50%;
    top: 12px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--c-accent);
    box-shadow: 0 0 8px rgba(0, 212, 255, .8);
    transform: translate(-50%, -50%);
}

/* Шаги */
.route { list-style: none; margin: 0; padding: 0 0 0 2.4rem; position: relative; }
.route::before {
    content: "";
    position: absolute;
    left: 9px;
    top: 10px;
    bottom: 10px;
    width: 2px;
    background: linear-gradient(180deg, #00d4ff, rgba(124, 92, 255, .6));
}
.route-item { position: relative; margin-bottom: 1.4rem; }
.route-item:last-child { margin-bottom: 0; }
.route-dot {
    position: absolute;
    left: -2.4rem;
    top: 1.6rem;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--c-bg-alt);
    border: 2px solid var(--c-accent);
    box-shadow: 0 0 10px rgba(0, 212, 255, .55);
}
.route-dot::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--c-accent); }
.route-card {
    display: flex;
    gap: 1.6rem;
    align-items: flex-start;
    background: var(--c-bg);
    border: 1px solid var(--c-line);
    border-radius: 8px;
    padding: 1.4rem 1.8rem;
    transition: border-color .25s;
}
.route-card:hover { border-color: rgba(0, 212, 255, .55); }
.route-num {
    flex: 0 0 auto;
    font-family: var(--f-head);
    font-size: 2.6rem;
    font-weight: 700;
    line-height: 1;
    color: var(--c-accent);
    text-shadow: 0 0 16px rgba(0, 212, 255, .55);
    min-width: 2.2ch;
}
.route-text { min-width: 0; }
.route-title { margin: 0 0 .35rem; font-size: 1.25rem; }
.route-text p { margin: 0; color: #b8bfcb; }

/* Цифры */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 2.2rem; }
.fact { padding: .5rem 1.8rem; border-left: 1px solid var(--c-line); min-width: 0; }
.fact:first-child { border-left: 0; padding-left: 0; }
.fact-num {
    display: block;
    font-family: var(--f-head);
    font-size: 3.4rem;
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -.03em;
    color: var(--c-accent);
    text-shadow: 0 0 18px rgba(0, 212, 255, .35);
}
.fact-label { display: block; margin-top: .6rem; color: var(--c-muted); font-size: .95rem; line-height: 1.5; }

/* Карта тем */
.topic-map { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; }
.topic {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    min-width: 0;
    padding: 1.8rem 1.6rem;
    background: var(--c-bg);
    border: 1px solid var(--c-line);
    border-radius: 8px;
    color: var(--c-text);
    text-decoration: none;
    transition: border-color .25s, box-shadow .25s, transform .25s;
}
.topic:hover { color: var(--c-text); text-decoration: none; border-color: var(--c-accent); box-shadow: 0 0 24px rgba(0, 212, 255, .22); transform: translateY(-3px); }
.topic-icon { color: var(--c-accent); display: block; margin-bottom: .5rem; }
.topic-name { font-family: var(--f-head); font-weight: 600; font-size: 1.2rem; letter-spacing: -.01em; }
.topic-desc { color: var(--c-muted); font-size: .92rem; line-height: 1.5; }

/* ---------- Поиск и 404 ---------- */
.lookup { display: flex; gap: .6rem; margin: 1.5rem 0; }
.lookup-field {
    flex: 1;
    min-width: 0;
    padding: .75em 1em;
    background: var(--c-head);
    color: var(--c-text);
    border: 1px solid var(--c-line);
    border-radius: 6px;
    font: inherit;
}
.lookup-field::placeholder { color: #5f6878; }
.sidebar .lookup { flex-wrap: wrap; }
.lost { text-align: left; padding: 2rem 0; }
.lost-code {
    font-family: var(--f-head);
    font-size: 7rem;
    font-weight: 700;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1.5px var(--c-accent);
    text-shadow: 0 0 30px rgba(0, 212, 255, .25);
}
.lost-home { margin-top: 1.5rem; }

/* ---------- Комментарии ---------- */
.discussion { margin-top: 3.5rem; padding-top: 2rem; border-top: 1px solid var(--c-line); }
.discussion-list { list-style: none; padding: 0; margin: 0 0 2rem; }
.discussion-list .children { list-style: none; padding-left: 1.5rem; }
.discussion-list .comment-body {
    background: var(--c-bg-alt);
    border: 1px solid var(--c-line);
    border-radius: 8px;
    padding: 1.1rem 1.3rem;
    margin-bottom: 1rem;
}
.discussion-list .avatar { border-radius: 50%; float: left; margin-right: .8rem; }
.discussion-list .comment-meta { font-size: .85rem; color: var(--c-muted); }
.discussion-list .comment-meta a { color: var(--c-muted); text-decoration: none; }
.discussion-list .fn { color: var(--c-text); font-style: normal; }
.comment-respond { background: var(--c-bg-alt); border: 1px solid var(--c-line); border-radius: 8px; padding: 1.6rem 1.8rem; }
.comment-reply-title { margin-top: 0; }
.comment-form label { display: block; font-size: .9rem; color: var(--c-muted); margin-bottom: .3rem; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form textarea {
    width: 100%;
    padding: .7em .9em;
    background: var(--c-head);
    color: var(--c-text);
    border: 1px solid var(--c-line);
    border-radius: 6px;
    font: inherit;
}
.comment-form .comment-form-cookies-consent label { display: inline; }
.comment-notes, .logged-in-as { font-size: .88rem; color: var(--c-muted); }

/* ---------- Подвал ---------- */
.basement { background: var(--c-head); border-top: 1px solid var(--c-line); color: #c3c9d3; padding: 4rem 0 0; margin-top: 0; }
.basement-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3rem; }
.basement-col { min-width: 0; }
.basement .widget + .widget { margin-top: 1.8rem; }
.basement .widget-title {
    display: flex;
    align-items: center;
    gap: .7rem;
    margin: 0 0 1rem;
    font-size: 1.05rem;
    color: #f4f6f8;
}
.basement .widget-title::before { content: ""; width: 18px; height: 3px; background: var(--c-accent); flex: 0 0 18px; }
.basement p, .basement .textwidget { color: #aab2bf; font-size: .95rem; }
.basement ul { list-style: none; margin: 0; padding: 0; }
.basement li { margin-bottom: .5rem; }
.basement a { color: #e8eaed; text-decoration: none; }
.basement a:hover { color: var(--c-accent); text-decoration: underline; }
.basement .post-date { color: var(--c-muted); font-size: .8rem; display: block; }
.basement-copy {
    margin-top: 3rem;
    padding: 1.4rem 0;
    border-top: 1px solid var(--c-line);
    font-size: .88rem;
    color: var(--c-muted);
}

/* ---------- Cookie ---------- */
.cookie-banner {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
    max-width: 880px;
    margin-left: auto;
    margin-right: auto;
    padding: 1rem 1.4rem;
    background: #131720;
    border: 1px solid var(--c-line);
    border-top: 2px solid var(--c-accent);
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .6);
}
.cookie-text { margin: 0; font-size: .9rem; color: #c3c9d3; min-width: 0; }
.cookie-accept { flex: 0 0 auto; }

/* ---------- Адаптив ---------- */
@media (min-width: 601px) {
    .card-grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .card-grid--three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 961px) {
    .card-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .layout-with-sidebar {
        display: grid;
        grid-template-columns: minmax(0, 67fr) minmax(0, 27fr);
        column-gap: 6%;
        align-items: start;
    }
}
@media (max-width: 960px) {
    h1, .page-heading { font-size: 2.5rem; }
    .fp-hero-title { font-size: 2.8rem; }
    .layout-single .content-area { width: auto; }
    .sidebar { margin-top: 3rem; }
    .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2rem; }
    .fact:nth-child(3) { border-left: 0; padding-left: 0; }
    .topic-map { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .basement-cols { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
    .fp-hero-scheme { width: 200px; opacity: .6; }
    .topnav-toggle { display: inline-flex; }
    .topnav-list {
        display: none;
        position: absolute;
        right: 0;
        top: calc(100% + .6rem);
        min-width: 220px;
        flex-direction: column;
        padding: .5rem;
        background: var(--c-head);
        border: 1px solid var(--c-line);
        border-radius: 8px;
        box-shadow: 0 12px 30px rgba(0, 0, 0, .5);
    }
    .topnav.is-open .topnav-list { display: flex; }
    .brand-desc { display: none; }
}
@media (max-width: 600px) {
    body { font-size: 1rem; }
    h1, .page-heading { font-size: 2rem; }
    h2, .sec-title { font-size: 1.6rem; }
    .shell-wide { width: 92%; }
    .fp-hero { min-height: 480px; }
    .fp-hero-inner { padding: 3.5rem 0; }
    .fp-hero-title { font-size: 2.1rem; }
    .fp-hero-scheme { display: none; }
    .fp-section { padding: 3.5rem 0; }
    .route { padding-left: 1.9rem; }
    .route-dot { left: -1.9rem; width: 16px; height: 16px; }
    .route::before { left: 7px; }
    .route-card { flex-direction: column; gap: .6rem; padding: 1.2rem 1.2rem; }
    .route-num { font-size: 2rem; }
    .facts { grid-template-columns: minmax(0, 1fr); }
    .fact, .fact:nth-child(3) { border-left: 0; padding: 0 0 1.4rem; border-bottom: 1px solid var(--c-line); }
    .fact:last-child { border-bottom: 0; padding-bottom: 0; }
    .fact-num { font-size: 2.8rem; }
    .topic-map { grid-template-columns: minmax(0, 1fr); }
    .topic { padding: 1.4rem 1.3rem; }
    .brand-svg { width: 40px; height: 40px; }
    .brand-name { font-size: .85rem; }
    .cookie-banner { flex-direction: column; align-items: stretch; padding: 1rem 1.1rem; }
    .lookup { flex-direction: column; }
    .sidebar { padding: 1.3rem 1.2rem; }
    .comment-respond { padding: 1.3rem 1.2rem; }
    .lost-code { font-size: 5rem; }
    blockquote { padding: 1rem 2.8rem 1rem 1.1rem; }
}
