/*
Theme Name: dds_omsk-lego-stroy.ru
Theme URI: https://omsk-lego-stroy.ru/
Author: Дмитрий Зуев
Description: Тема информационно-образовательного портала о строительных технологиях и профессиях. Чертёжная сетка, холодная сине-стальная гамма и медные акценты.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: olstroy
*/

/* ---------- Служебные правила hidden (до основных стилей) ---------- */
.cookie-banner[hidden] { display: none !important; }

/* ---------- Токены ---------- */
:root {
    --c-bg: #F4F7FA;
    --c-bg-alt: #E6EDF5;
    --c-head: #1B2A41;
    --c-foot: #14202F;
    --c-ink: #16202E;
    --c-copper: #C0653A;
    --c-blue: #2E6FB7;
    --c-muted: #6B7C93;
    --c-rule: #C9D6E4;
    --c-card-line: #D3DEEA;
    --f-head: "Fira Sans Condensed", "Roboto Condensed", "Arial Narrow", "Liberation Sans Narrow", sans-serif;
    --f-body: "PT Sans", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    --shadow-cold: 0 6px 18px -8px rgba(36, 64, 102, 0.20);
    --shadow-cold-up: 0 16px 32px -14px rgba(36, 64, 102, 0.34);
    --cut: 10px;
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    overflow-x: hidden;
    border-top: 4px solid var(--c-copper);
    color: var(--c-ink);
    font-family: var(--f-body);
    font-size: 1.0625rem;
    line-height: 1.65;
    background-color: var(--c-bg);
    background-image:
        linear-gradient(rgba(46, 111, 183, 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(46, 111, 183, 0.055) 1px, transparent 1px),
        linear-gradient(rgba(46, 111, 183, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(46, 111, 183, 0.03) 1px, transparent 1px);
    background-size: 50px 50px, 50px 50px, 10px 10px, 10px 10px;
}

/* Силуэт крана и лесов в правом нижнем углу */
body::after {
    content: "";
    position: fixed;
    right: 0;
    bottom: 0;
    width: min(380px, 60%);
    height: 380px;
    z-index: -1;
    pointer-events: none;
    opacity: 0.06;
    background: no-repeat right bottom / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 400' fill='none' stroke='%232E6FB7' stroke-width='3'%3E%3Cpath d='M120 400V60h18v340M120 60h270M138 60l50-40v40M370 60v60M60 60h60M60 60v30h40V60'/%3E%3Cpath d='M120 90l18-18M120 130l18-18M120 170l18-18M120 210l18-18M120 250l18-18M120 290l18-18M120 330l18-18M120 370l18-18'/%3E%3Cpath d='M138 78h232M160 78l20-18M210 78l20-18M260 78l20-18M310 78l20-18'/%3E%3Crect x='352' y='120' width='36' height='24'/%3E%3Cpath d='M200 400V230h200M200 290h200M200 350h200M240 230v170M300 230v170M360 230v170M200 230l40 60M240 290l60 60M300 230l60 60'/%3E%3C/svg%3E");
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--f-head);
    font-weight: 600;
    line-height: 1.15;
    color: var(--c-ink);
    margin: 1.6em 0 0.6em;
    letter-spacing: 0.005em;
    overflow-wrap: break-word;
    hyphens: auto;
}
h1 { font-size: clamp(2.1rem, 4.2vw, 3.25rem); font-weight: 700; margin-top: 0; }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.15rem; }

p { margin: 0 0 1.1em; }
p, li, dd, td, th, blockquote, figcaption { overflow-wrap: break-word; hyphens: auto; }

a { color: var(--c-blue); text-decoration: none; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 3px solid var(--c-blue);
    outline-offset: 2px;
}

ul, ol { padding-left: 1.4em; margin: 0 0 1.1em; }

table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; border: 1px solid var(--c-rule); background: #fff; }
th, td { border: 1px solid var(--c-rule); padding: 0.55rem 0.75rem; text-align: left; vertical-align: top; }
th { background: var(--c-bg-alt); font-family: var(--f-head); font-weight: 600; }

hr { border: 0; border-top: 1px solid var(--c-rule); margin: 2rem 0; }

.screen-reader-text {
    position: absolute !important;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
}
.skip-link {
    position: absolute;
    left: 1rem;
    top: -100px;
    z-index: 200;
    background: var(--c-copper);
    color: #fff;
    padding: 0.6rem 1rem;
}
.skip-link:focus { top: 1rem; }

/* Единый контейнер ширины */
.shell { width: min(92%, 1240px); margin-inline: auto; }

/* Ссылки с медным подчёркиванием слева направо */
.entry-content a,
.page-intro a,
.crumbs a,
.sidebar .widget a,
.lost-text a,
.talk a {
    background-image: linear-gradient(var(--c-copper), var(--c-copper));
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 0 2px;
    transition: background-size 0.3s ease, color 0.2s ease;
    padding-bottom: 1px;
}
.entry-content a:hover,
.page-intro a:hover,
.crumbs a:hover,
.sidebar .widget a:hover,
.lost-text a:hover,
.talk a:hover { background-size: 100% 2px; }

/* ---------- Кнопки: почти квадратные, срезанный правый нижний угол ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.78rem 1.55rem 0.78rem 1.35rem;
    border: 2px solid transparent;
    border-radius: 3px;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%);
    font-family: var(--f-head);
    font-size: 1.02rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    background-image: none;
    transition: transform 0.15s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn:hover { transform: translate(2px, 2px); }
.btn:focus-visible { outline: none; box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 5px var(--c-ink); }

.btn--copper { background-color: var(--c-copper); color: #fff; border-color: var(--c-copper); }
.btn--copper:hover { background-color: var(--c-blue); border-color: var(--c-blue); color: #fff; }

.btn--outline { background-color: transparent; color: var(--c-blue); border-color: var(--c-blue); }
.btn--outline:hover { background-color: var(--c-blue); color: #fff; }

.btn--ghost-light { background-color: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.75); }
.btn--ghost-light:hover { background-color: var(--c-blue); border-color: var(--c-blue); color: #fff; }

.btn--small { padding: 0.55rem 1.15rem 0.55rem 1rem; font-size: 0.95rem; --cut: 8px; }

/* ---------- Шапка ---------- */
.masthead {
    background-color: var(--c-head);
    color: #E3EAF3;
    border-bottom: 1px solid #2B3D57;
}
.masthead-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1rem 0;
}
.brand {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    min-width: 0;
    color: #fff;
    text-decoration: none;
}
.brand-mark { flex: 0 0 auto; display: block; line-height: 0; }
.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: 1.08rem;
    line-height: 1.25;
    color: #fff;
    max-width: 44ch;
}
.brand-desc {
    margin-top: 0.25rem;
    font-size: 0.8rem;
    line-height: 1.4;
    color: #9FB1C8;
    max-width: 62ch;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.primary-nav { flex: 0 0 auto; }
.primary-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.2rem 1.4rem;
}
.primary-list li { position: relative; }
.primary-list a {
    display: block;
    padding: 0.4rem 0;
    color: #E3EAF3;
    font-family: var(--f-head);
    font-weight: 500;
    font-size: 1.05rem;
    letter-spacing: 0.02em;
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}
.primary-list a:hover,
.primary-list .current-menu-item > a { color: #fff; border-bottom-color: var(--c-copper); }
.primary-list .sub-menu {
    list-style: none;
    margin: 0;
    padding: 0.5rem 0;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--c-head);
    border-top: 2px solid var(--c-copper);
    display: none;
    z-index: 50;
}
.primary-list li:hover > .sub-menu,
.primary-list li:focus-within > .sub-menu { display: block; }
.primary-list .sub-menu a { padding: 0.45rem 1rem; border-bottom: 0; }

.nav-toggle {
    display: none;
    align-items: center;
    gap: 0.55rem;
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 3px;
    padding: 0.5rem 0.8rem;
    font-family: var(--f-head);
    font-size: 1rem;
    cursor: pointer;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
    display: block;
    width: 18px;
    height: 2px;
    background: currentColor;
    position: relative;
}
.nav-toggle-bars::before,
.nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }

/* ---------- Хлебные крошки ---------- */
.crumbs {
    padding: 1.5rem 0 0.4rem;
    font-size: 0.92rem;
    color: var(--c-muted);
}
.crumbs-sep { color: var(--c-copper); margin: 0 0.15rem; }
.crumbs-current { color: var(--c-ink); }

/* ---------- Раскладки ---------- */
.site-main { display: block; padding-bottom: 4rem; }
.layout-with-sidebar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-top: 1.2rem;
}
.layout-with-sidebar .content-area { flex: 0 0 67%; min-width: 0; }
.layout-with-sidebar .sidebar { flex: 0 0 27%; min-width: 0; }
.layout-single { display: block; padding-top: 1.2rem; }
.layout-single .content-area { width: 85%; margin-left: auto; margin-right: auto; }

.page-head { margin-bottom: 2rem; }
.page-title { margin: 0.4rem 0 0.6rem; }
.page-intro { color: #34465C; max-width: 70ch; }

/* ---------- Заголовки секций ---------- */
.sec-title {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin: 0 0 0.7rem;
    font-size: clamp(1.7rem, 3vw, 2.35rem);
    font-weight: 600;
}
.sec-title::before {
    content: "";
    flex: 0 0 48px;
    height: 1px;
    background: var(--c-muted);
}
.sec-mark {
    flex: 0 0 10px;
    width: 10px;
    height: 10px;
    background: var(--c-copper);
}
.sec-title--plate {
    display: inline-flex;
    margin: 0;
    background: var(--c-bg-alt);
    padding: 0.55rem 1.3rem 0.6rem 1rem;
    border-bottom: 3px solid var(--c-copper);
}
.sec-title--plate::before { flex-basis: 28px; }

.zone-head { max-width: 760px; margin-bottom: 1.6rem; }
.zone-head--row {
    max-width: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem 2rem;
}
.zone-lead { color: #3D4F66; font-size: 1.08rem; margin: 0; max-width: 64ch; }

/* Медная линия с квадратными точками на концах */
.copper-rule {
    position: relative;
    height: 2px;
    margin: 0 5px 2.2rem;
    background: var(--c-copper);
}
.copper-rule::before,
.copper-rule::after {
    content: "";
    position: absolute;
    top: -3px;
    width: 8px;
    height: 8px;
    background: var(--c-copper);
}
.copper-rule::before { left: -5px; }
.copper-rule::after { right: -5px; }

/* ---------- Секции главной ---------- */
.zone {
    position: relative;
    overflow: hidden;
    padding: 4.5rem 0;
    border-top: 1px solid var(--c-rule);
}
.zone--plain { background-color: transparent; }
.zone--alt {
    background-color: var(--c-bg-alt);
    background-image:
        linear-gradient(rgba(46, 111, 183, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(46, 111, 183, 0.07) 1px, transparent 1px);
    background-size: 24px 24px;
}
.zone--fade {
    border-top-style: dashed;
    background-image: linear-gradient(180deg, var(--c-bg-alt) 0%, var(--c-bg) 100%);
}
.zone--cta { border-top: 0; padding-top: 1rem; }
.zone > .shell { position: relative; z-index: 1; }

/* Диагональная штриховка-разрез в правом углу */
.zone--hatch::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 180px;
    height: 180px;
    pointer-events: none;
    background-image: repeating-linear-gradient(45deg, rgba(46, 111, 183, 0.16) 0 1px, transparent 1px 9px);
    -webkit-mask-image: linear-gradient(225deg, #000 20%, transparent 70%);
    mask-image: linear-gradient(225deg, #000 20%, transparent 70%);
}

/* Hero */
.hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: clamp(460px, 72vh, 660px);
    background-color: var(--c-head);
    overflow: hidden;
    color: #fff;
}
.hero-img {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.hero-veil {
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background-image:
        linear-gradient(rgba(159, 182, 212, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(159, 182, 212, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(20, 32, 47, 0.94) 0%, rgba(27, 42, 65, 0.78) 48%, rgba(27, 42, 65, 0.25) 100%);
    background-size: 40px 40px, 40px 40px, auto;
}
.hero-inner { position: relative; z-index: 2; padding: 4rem 0 5rem; }
.hero-copy { max-width: 660px; }
.hero-title {
    color: #fff;
    font-size: clamp(2.2rem, 5vw, 3.25rem);
    line-height: 1.08;
    margin: 0 0 1.1rem;
}
.hero-lead { color: #CFDAE7; font-size: 1.15rem; max-width: 56ch; margin: 0 0 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }

/* Медный уровень в углу */
.hero-level {
    position: absolute;
    right: 4%;
    bottom: 2rem;
    z-index: 2;
    display: flex;
    align-items: center;
    width: 220px;
}
.hero-level-line { flex: 1; height: 2px; background: var(--c-copper); }
.hero-level-vial {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 64px;
    height: 16px;
    margin: -8px 0 0 -32px;
    border: 2px solid var(--c-copper);
    border-radius: 8px;
    background: var(--c-head);
}
.hero-level-vial span {
    position: absolute;
    left: 50%;
    top: 2px;
    width: 14px;
    height: 8px;
    margin-left: -7px;
    border-radius: 4px;
    background: rgba(192, 101, 58, 0.55);
}
.hero-level::before,
.hero-level::after {
    content: "";
    position: absolute;
    top: -9px;
    width: 2px;
    height: 20px;
    background: var(--c-copper);
}
.hero-level::before { left: 0; }
.hero-level::after { right: 0; }

/* Сетка профессий и технологий */
.trade-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.6rem;
}
.trade {
    position: relative;
    min-width: 0;
    background: #fff;
    border: 1px solid var(--c-card-line);
    border-radius: 4px;
    padding: 1.7rem 1.6rem 1.6rem;
    box-shadow: var(--shadow-cold);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.trade::before {
    content: "";
    position: absolute;
    top: -1px; left: -1px; right: -1px;
    height: 2px;
    background: var(--c-copper);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}
.trade:hover { transform: translateY(-4px); box-shadow: var(--shadow-cold-up); }
.trade:hover::before { transform: scaleX(1); }
.trade-icon {
    display: block;
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
    fill: none;
    stroke: var(--c-blue);
    stroke-width: 1.6;
    stroke-linejoin: round;
    stroke-linecap: round;
}
.trade-title { margin: 0 0 0.5rem; font-size: 1.3rem; }
.trade-text { margin: 0; color: #3D4F66; font-size: 0.99rem; }

/* FAQ */
.faq { max-width: 880px; }
.faq-item { border-bottom: 1px dashed var(--c-rule); }
.faq-item:first-child { border-top: 1px dashed var(--c-rule); }
.faq-q {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1.1rem 2.4rem 1.1rem 0;
    position: relative;
    cursor: pointer;
    font-family: var(--f-head);
    font-weight: 600;
    font-size: 1.22rem;
    line-height: 1.3;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q::before {
    content: "";
    flex: 0 0 10px;
    height: 10px;
    background: var(--c-copper);
}
.faq-q::after {
    content: "+";
    position: absolute;
    right: 0.4rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.6rem;
    font-weight: 500;
    color: var(--c-blue);
}
.faq-item[open] > .faq-q::after { content: "−"; }
.faq-q:hover { color: var(--c-blue); }
.faq-a {
    margin: 0 0 1.2rem 1.6rem;
    padding: 1rem 1.4rem;
    background: #fff;
    border-left: 3px solid var(--c-blue);
    color: #2B3B4F;
}
.faq-a p { margin: 0; }

/* CTA */
.cta-plate {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 2rem;
    padding: 3.2rem 3rem;
    border-radius: 4px;
    border-top: 4px solid var(--c-copper);
    color: #E3EAF3;
    background-color: var(--c-head);
    background-image:
        linear-gradient(rgba(159, 182, 212, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(159, 182, 212, 0.08) 1px, transparent 1px);
    background-size: 28px 28px;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%);
}
.cta-copy { min-width: 0; }
.cta-title { color: #fff; margin: 0 0 0.8rem; font-size: clamp(1.8rem, 3.2vw, 2.5rem); }
.cta-text { color: #C3CFDD; max-width: 58ch; margin: 0 0 1.8rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.cta-crane {
    width: 190px;
    height: 190px;
    fill: none;
    stroke: #7FA3D1;
    stroke-width: 2;
    stroke-linejoin: round;
}
.cta-crane-load { fill: var(--c-copper); stroke: var(--c-copper); }

/* ---------- Карточки записей ---------- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr));
    gap: 1.6rem;
}
.card-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #fff;
    border: 1px solid var(--c-card-line);
    border-radius: 4px;
    box-shadow: var(--shadow-cold);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    z-index: 2;
    background: var(--c-copper);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-cold-up); }
.card:hover::before { transform: scaleX(1); }

.card-thumb { background: var(--c-bg-alt); padding-bottom: 6px; }
.card-thumb a { display: block; }
.card-img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}
.card-img--blank {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #DCE5F0;
    background-image:
        linear-gradient(rgba(46, 111, 183, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(46, 111, 183, 0.1) 1px, transparent 1px);
    background-size: 14px 14px;
}
.card-img--blank svg {
    display: block;
    width: 42%;
    fill: none;
    stroke: var(--c-muted);
    stroke-width: 2;
}
.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 1.15rem 1.3rem 1.35rem;
}
.card-title { margin: 0.35rem 0 0.35rem; font-size: 1.3rem; line-height: 1.22; }
.card-title a { color: var(--c-ink); transition: color 0.2s ease; }
.card-title a:hover { color: var(--c-blue); }
.card-meta {
    margin: 0 0 0.7rem;
    font-size: 0.86rem;
    color: var(--c-muted);
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 0.8rem;
    align-items: center;
}
.card-pin {
    font-size: 0.78rem;
    color: #fff;
    background: var(--c-copper);
    padding: 0.05rem 0.45rem;
    border-radius: 2px;
}
.card-excerpt { color: #33445A; font-size: 0.98rem; margin-bottom: 1.1rem; }
.card-excerpt p { margin: 0 0 0.5em; background: none; }
.card-more { margin-top: auto; align-self: flex-start; }

/* Теги рубрик: синие и медные плашки разной плотности */
.tag-row { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tag-chip {
    display: inline-block;
    padding: 0.18rem 0.55rem;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.45;
    border-radius: 2px;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.tag-chip--blue { background: rgba(46, 111, 183, 0.13); color: #1D4F87; }
.tag-chip--copper { background: rgba(192, 101, 58, 0.16); color: #8A421F; }
.entry-tags .tag-chip--blue:nth-child(even) { background: rgba(46, 111, 183, 0.22); }
.tag-chip:hover { background: var(--c-blue); color: #fff; }
.tag-chip--copper:hover { background: var(--c-copper); color: #fff; }

.empty-note { color: var(--c-muted); font-size: 1.05rem; }
.empty-block .search-box { margin-top: 1rem; }

/* ---------- Запись и страница ---------- */
.entry-head { margin-bottom: 1.5rem; }
.entry-title { margin: 0.5rem 0 0.5rem; }
.entry-meta { margin: 0; color: var(--c-muted); font-size: 0.92rem; }
.entry-cover { margin: 0 0 2rem; background: var(--c-bg-alt); padding-bottom: 6px; border-radius: 4px; overflow: hidden; }
.entry-cover-img { display: block; width: 100%; height: auto; }
.entry-content { font-size: 1.08rem; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content h2 {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.entry-content h2::before {
    content: "";
    flex: 0 0 9px;
    height: 9px;
    background: var(--c-copper);
}
.entry-content img { display: block; border-radius: 3px; }
.entry-content figure { margin: 0 0 1.5em; }
.entry-content figcaption { font-size: 0.88rem; color: var(--c-muted); margin-top: 0.4rem; }
.entry-content blockquote,
.page-intro blockquote {
    margin: 1.8rem 0 1.8rem 0.6rem;
    padding: 0.3rem 0 0.3rem 1.7rem;
    border-left: 6px solid var(--c-copper);
    font-size: 1.15rem;
    color: #24344A;
}
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content code { background: var(--c-bg-alt); padding: 0.1em 0.35em; border-radius: 2px; font-size: 0.92em; }
.entry-content pre {
    background: #1B2A41;
    color: #E3EAF3;
    padding: 1rem 1.2rem;
    overflow-x: auto;
    border-radius: 3px;
}
.entry-content pre code { background: none; padding: 0; }
.entry-content ul li::marker { color: var(--c-copper); }
.entry-pages { margin-top: 1.5rem; font-weight: 700; }
.entry-tags { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 2rem 0 0; }
.entry-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin: 2.5rem 0 0;
    padding-top: 1.6rem;
    border-top: 1px dashed var(--c-rule);
}
.entry-nav-link {
    display: block;
    min-width: 0;
    padding: 1rem 1.2rem;
    background: #fff;
    border: 1px solid var(--c-card-line);
    border-radius: 4px;
    transition: border-color 0.2s ease;
}
.entry-nav-link:hover { border-color: var(--c-copper); }
.entry-nav-link--next { grid-column: 2; text-align: right; }
.entry-nav-label { display: block; font-size: 0.82rem; color: var(--c-muted); }
.entry-nav-title { display: block; color: var(--c-ink); font-family: var(--f-head); font-weight: 600; font-size: 1.08rem; line-height: 1.3; }

.alignleft { float: left; margin: 0.3rem 1.4rem 1rem 0; }
.alignright { float: right; margin: 0.3rem 0 1rem 1.4rem; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption, .wp-block-image { max-width: 100%; }

/* ---------- Сайдбар ---------- */
.sidebar {
    background-color: #FFFFFF;
    background-image:
        linear-gradient(rgba(46, 111, 183, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(46, 111, 183, 0.045) 1px, transparent 1px);
    background-size: 16px 16px;
    border: 1px solid var(--c-card-line);
    border-radius: 4px;
    padding: 1.5rem 1.4rem;
    color: var(--c-ink);
}
.sidebar .widget { margin-bottom: 2rem; color: var(--c-ink); }
.sidebar .widget:last-child { margin-bottom: 0; }
.sidebar .widget-title {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0 0 1rem;
    padding-bottom: 0.6rem;
    font-size: 1.2rem;
    color: var(--c-ink);
    border-bottom: 1px solid var(--c-rule);
}
.sidebar .widget-title::before {
    content: "";
    flex: 0 0 8px;
    height: 8px;
    background: var(--c-copper);
}
.sidebar .widget ul { list-style: none; padding: 0; margin: 0; }
.sidebar .widget li { padding: 0.5rem 0; border-bottom: 1px dashed var(--c-rule); line-height: 1.4; }
.sidebar .widget li:last-child { border-bottom: 0; }
.sidebar .widget a { color: var(--c-blue); }
.sidebar .post-date { display: block; font-size: 0.82rem; color: var(--c-muted); }
.sidebar .search-box { flex-wrap: wrap; }

/* ---------- Пагинация (type => plain) ---------- */
.pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
    margin: 2.8rem 0 0;
}
.pager .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.7rem;
    height: 2.7rem;
    padding: 0 0.85rem;
    background: #fff;
    border: 1px solid var(--c-rule);
    border-radius: 3px;
    color: var(--c-ink);
    font-family: var(--f-head);
    font-weight: 600;
    font-size: 1rem;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
.pager a.page-numbers:hover { background: var(--c-blue); border-color: var(--c-blue); color: #fff; transform: translate(1px, 1px); }
.pager .page-numbers.current { background: var(--c-copper); border-color: var(--c-copper); color: #fff; }
.pager .page-numbers.dots { background: transparent; border-color: transparent; min-width: auto; padding: 0 0.2rem; }

/* ---------- Поиск ---------- */
.search-box { display: flex; gap: 0.5rem; max-width: 560px; }
.search-field {
    flex: 1;
    min-width: 0;
    padding: 0.72rem 0.9rem;
    border: 1px solid #B9C8D9;
    border-radius: 3px;
    background: #fff;
    color: var(--c-ink);
    font: inherit;
}
.search-field:focus { border-color: var(--c-blue); }

/* ---------- 404 ---------- */
.lost { padding: 2rem 0 1rem; }
.lost-code {
    margin: 0;
    font-family: var(--f-head);
    font-weight: 700;
    font-size: clamp(5rem, 14vw, 9rem);
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 2px var(--c-blue);
    opacity: 0.55;
}
.lost-text { max-width: 60ch; color: #33445A; }
.lost-home { margin-top: 1.6rem; }

/* ---------- Комментарии ---------- */
.talk { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--c-rule); }
.talk-title, .comment-reply-title { font-size: 1.5rem; margin: 0 0 1.2rem; }
.talk-list, .talk-list .children { list-style: none; padding: 0; margin: 0; }
.talk-list .children { margin-left: 2rem; }
.note-body {
    background: #fff;
    border: 1px solid var(--c-card-line);
    border-radius: 4px;
    padding: 1rem 1.2rem;
    margin-bottom: 1rem;
}
.note-head { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.6rem; }
.note-avatar { display: block; border-radius: 3px; }
.note-meta { display: flex; flex-direction: column; line-height: 1.3; }
.note-author { font-weight: 700; }
.note-date { font-size: 0.82rem; color: var(--c-muted); }
.note-wait { font-size: 0.9rem; color: var(--c-copper); }
.note-text p:last-child { margin-bottom: 0.4rem; }
.note-reply a { font-size: 0.9rem; font-weight: 700; }
.talk-closed { color: var(--c-muted); }
.comment-respond { margin-top: 2rem; }
.comment-form label { display: block; font-weight: 700; 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.85rem;
    border: 1px solid #B9C8D9;
    border-radius: 3px;
    background: #fff;
    color: var(--c-ink);
    font: inherit;
}
.comment-form-cookies-consent { display: flex; gap: 0.5rem; align-items: flex-start; }
.comment-form-cookies-consent label { font-weight: 400; margin: 0; }
.comment-form .submit {
    padding: 0.78rem 1.55rem 0.78rem 1.35rem;
    border: 0;
    border-radius: 3px;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
    background: var(--c-copper);
    color: #fff;
    font-family: var(--f-head);
    font-weight: 600;
    font-size: 1.02rem;
    cursor: pointer;
    transition: transform 0.15s ease, background-color 0.2s ease;
}
.comment-form .submit:hover { background: var(--c-blue); transform: translate(2px, 2px); }
.comment-notes, .logged-in-as { font-size: 0.9rem; color: var(--c-muted); }
.comments-pagination, .comment-navigation { margin: 1rem 0; display: flex; gap: 1rem; flex-wrap: wrap; }

/* ---------- Подвал ---------- */
.basement {
    background-color: var(--c-foot);
    background-image:
        linear-gradient(rgba(159, 182, 212, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(159, 182, 212, 0.045) 1px, transparent 1px);
    background-size: 30px 30px;
    color: #C3CFDD;
    border-top: 4px solid var(--c-copper);
    padding: 3.5rem 0 0;
    position: relative;
    z-index: 1;
}
.basement-cols {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.5rem;
}
.basement-col { min-width: 0; }
.basement .widget { margin-bottom: 1.6rem; color: #C3CFDD; font-size: 0.97rem; }
.basement .widget-title {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    color: #FFFFFF;
    font-size: 1.2rem;
    margin: 0 0 1rem;
}
.basement .widget-title::before {
    content: "";
    flex: 0 0 8px;
    height: 8px;
    background: var(--c-copper);
}
.basement .widget p { color: #C3CFDD; }
.basement .widget a { color: #A9C8EC; transition: color 0.2s ease; }
.basement .widget a:hover { color: #E8A37F; }
.basement .widget ul { list-style: none; padding: 0; margin: 0; }
.basement .widget li { padding: 0.32rem 0; }
.basement .post-date { color: #8FA2BA; font-size: 0.82rem; }
.basement-bottom {
    margin-top: 1.5rem;
    padding: 1.3rem 0 1.5rem;
    border-top: 1px solid rgba(201, 214, 228, 0.16);
}
.copyline { margin: 0; font-size: 0.9rem; color: #8FA2BA; }

/* ---------- Cookie-баннер ---------- */
.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 120;
    background: var(--c-head);
    color: #E3EAF3;
    border-top: 3px solid var(--c-copper);
    box-shadow: 0 -10px 30px -12px rgba(10, 20, 35, 0.5);
}
.cookie-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 1.6rem;
    padding: 1rem 0;
}
.cookie-text { margin: 0; font-size: 0.93rem; color: #D5DFEA; min-width: 0; }
.cookie-accept { flex: 0 0 auto; }

/* ---------- Адаптив ---------- */
@media (min-width: 960px) {
    .home .zone > .shell,
    .home .hero-inner { width: 85%; max-width: 1320px; }
}

@media (max-width: 960px) {
    .masthead-row { flex-wrap: wrap; }
    .brand { flex: 1 1 0; }
    .nav-toggle { display: inline-flex; }
    .primary-nav { display: none; flex: 1 0 100%; }
    .primary-nav.is-open { display: block; }
    .primary-list { flex-direction: column; gap: 0; padding: 0.5rem 0 0.4rem; border-top: 1px solid #2B3D57; }
    .primary-list a { padding: 0.65rem 0; border-bottom: 1px solid #2B3D57; }
    .primary-list a:hover, .primary-list .current-menu-item > a { border-bottom-color: var(--c-copper); }
    .primary-list .sub-menu { position: static; display: block; border-top: 0; padding: 0 0 0 1rem; min-width: 0; }

    .layout-with-sidebar { display: block; }
    .layout-with-sidebar .content-area,
    .layout-with-sidebar .sidebar { width: 100%; }
    .layout-with-sidebar .sidebar { margin-top: 3rem; }
    .layout-single .content-area { width: 100%; }

    .trade-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .card-grid--three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .basement-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cta-plate { grid-template-columns: minmax(0, 1fr); }
    .cta-crane { width: 130px; height: 130px; justify-self: end; }
    .hero-level { display: none; }
}

@media (max-width: 600px) {
    body { font-size: 1rem; }
    .brand-desc { display: none; }
    .brand-name { font-size: 0.98rem; }
    .brand-svg { width: 42px; height: 42px; }

    .zone { padding: 3rem 0; }
    .zone--cta { padding-top: 0.5rem; }
    .hero { min-height: 0; }
    .hero-inner { padding: 3.2rem 0 3.6rem; }
    .hero-lead { font-size: 1.04rem; }

    .sec-title::before { flex-basis: 24px; }
    .sec-title--plate { padding: 0.5rem 1rem 0.55rem 0.8rem; }

    .trade-grid,
    .card-grid--three,
    .basement-cols { grid-template-columns: minmax(0, 1fr); }
    .trade { padding: 1.4rem 1.3rem; }

    .faq-q { font-size: 1.08rem; }
    .faq-a { margin-left: 0; padding: 0.9rem 1.1rem; }

    .cta-plate { padding: 2.2rem 1.4rem; }
    .cta-crane { display: none; }

    .entry-nav { grid-template-columns: minmax(0, 1fr); }
    .entry-nav-link--next { grid-column: auto; }
    .talk-list .children { margin-left: 1rem; }
    .search-box { flex-wrap: wrap; }
    .search-submit { width: 100%; }

    .cookie-inner { flex-direction: column; align-items: stretch; }
    .cookie-accept { width: 100%; }
    .alignleft, .alignright { float: none; margin: 0 0 1rem; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
