/*
Theme Name: Neve Child - Wärme & Strom
Template: neve
Description: Дочерняя тема waermeundstrom.com (seo-8e, 2026-11-09). Раскладка «технический справочник».
Version: 1.0
*/

/* Палитра: графит, янтарь (ток), бирюза (тепло) */
:root {
	--ws-ink: #1d2733;
	--ws-ink2: #4a5868;
	--ws-amber: #f2a900;
	--ws-amber-soft: #fff4d6;
	--ws-teal: #0f766e;
	--ws-teal-soft: #e3f3f1;
	--ws-bg: #f5f4ef;
	--ws-card: #ffffff;
	--ws-line: #e2dfd6;
	--ws-r: 6px;
	--ws-font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
	--ws-mono: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}
body { background: var(--ws-bg); color: var(--ws-ink); font-family: var(--ws-font); }
a { color: var(--ws-teal); }
.ws-wrap { max-width: 1240px; margin: 0 auto; padding: 0 20px; }

/* Шапка Neve: тёмная полоса с янтарной линией */
.header-main, .header-main-inner, .hfg_header .header--row.header-main { background: var(--ws-ink) !important; }
.hfg_header { border-bottom: 3px solid var(--ws-amber); }
.header-main .site-title, .header-main .site-title a, .header-main .nav-ul > li > .wrap > a, .header-main .nav-ul a { color: #fff !important; }
.header-main .nav-ul a:hover { color: var(--ws-amber) !important; }
.header-main .site-description, .header-main .nv-title-tagline-wrap small { color: #9fb0c0 !important; }
.header-main .navbar-toggle { color: #fff; border-color: #fff; }

/* Главная: вступление и плитки тем */
.ws-hero { background: var(--ws-ink); color: #fff; padding: 56px 0 64px; position: relative; overflow: hidden; }
.ws-hero::after { content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%; border: 60px solid rgba(242,169,0,.12); }
.ws-hero__kicker { font-family: var(--ws-mono); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--ws-amber); margin: 0 0 12px; }
.ws-hero__h { color: #fff; font-size: clamp(28px, 4vw, 46px); line-height: 1.12; max-width: 820px; margin: 0 0 16px; font-weight: 700; }
.ws-hero__h span { color: var(--ws-amber); }
.ws-hero__p { color: #c9d2dc; font-size: 18px; max-width: 680px; margin: 0 0 32px; }
.ws-topics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; position: relative; z-index: 1; }
.ws-topic { display: grid; grid-template-columns: 44px 1fr; grid-template-rows: auto auto; gap: 2px 12px; align-items: center; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: var(--ws-r); padding: 14px 16px; color: #fff; text-decoration: none; transition: background .15s, border-color .15s; }
.ws-topic:hover { background: rgba(242,169,0,.14); border-color: var(--ws-amber); color: #fff; }
.ws-topic__ic { grid-row: span 2; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--ws-amber); color: var(--ws-ink); }
.ws-topic__name { font-weight: 600; line-height: 1.25; }
.ws-topic__n { font-family: var(--ws-mono); font-size: 12px; color: #9fb0c0; }

/* Архив и поиск */
.ws-arch { background: var(--ws-card); border-bottom: 1px solid var(--ws-line); padding: 36px 0 28px; }
.ws-arch__h { margin: 0; font-size: 34px; }
.ws-arch__d { color: var(--ws-ink2); max-width: 760px; margin-top: 8px; }

/* Лента строками */
.ws-list { padding-top: 36px; padding-bottom: 56px; }
.ws-list__h { font-size: 14px; font-family: var(--ws-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ws-ink2); border-bottom: 2px solid var(--ws-ink); padding-bottom: 8px; margin: 0 0 8px; }
.ws-row { display: grid; grid-template-columns: 260px 1fr; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--ws-line); }
.ws-row__img { display: block; aspect-ratio: 16/10; border-radius: var(--ws-r); overflow: hidden; background: var(--ws-teal-soft); }
.ws-row__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.ws-row:hover .ws-row__img img { transform: scale(1.04); }
.ws-row__ph { display: grid; place-items: center; width: 100%; height: 100%; color: var(--ws-teal); }
.ws-row__ph svg { width: 56px; height: 56px; }
.ws-row__title { font-size: 23px; line-height: 1.25; margin: 6px 0 8px; }
.ws-row__title a { color: var(--ws-ink); text-decoration: none; }
.ws-row__title a:hover { color: var(--ws-teal); }
.ws-row__ex { color: var(--ws-ink2); margin: 0; }
.ws-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font-family: var(--ws-mono); font-size: 12px; color: var(--ws-ink2); }
.ws-tag { background: var(--ws-amber-soft); color: #7a5300; padding: 2px 8px; border-radius: 3px; text-decoration: none; font-weight: 500; }
.ws-empty { padding: 40px 0; color: var(--ws-ink2); }
.nav-links { margin-top: 28px; display: flex; gap: 6px; }
.nav-links .page-numbers { padding: 6px 12px; border: 1px solid var(--ws-line); border-radius: var(--ws-r); background: var(--ws-card); text-decoration: none; color: var(--ws-ink); }
.nav-links .current { background: var(--ws-ink); color: #fff; border-color: var(--ws-ink); }

/* Статья: шапка-«паспорт» */
.ws-art__head { background: var(--ws-card); border-bottom: 1px solid var(--ws-line); padding: 28px 0 0; }
.ws-crumbs { font-size: 13px; color: var(--ws-ink2); margin-bottom: 10px; }
.ws-crumbs a { color: var(--ws-ink2); }
.ws-art__title { font-size: clamp(28px, 3.4vw, 42px); line-height: 1.15; max-width: 900px; margin: 0 0 20px; }
.ws-passport { display: flex; flex-wrap: wrap; border-top: 1px solid var(--ws-line); }
.ws-passport span { padding: 12px 22px 14px 0; margin-right: 22px; border-right: 1px solid var(--ws-line); font-weight: 600; font-size: 15px; }
.ws-passport span:last-child { border-right: 0; }
.ws-passport em { display: block; font-style: normal; font-family: var(--ws-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--ws-ink2); font-weight: 400; }

/* Три колонки: оглавление | текст | справа */
.ws-art__cols { display: grid; grid-template-columns: 220px minmax(0, 1fr) 300px; gap: 40px; padding-top: 32px; padding-bottom: 24px; align-items: start; }
.ws-art__toc { position: sticky; top: 24px; }
.ws-art__toc:empty { display: none; }
.ws-art__main { background: var(--ws-card); border: 1px solid var(--ws-line); border-radius: var(--ws-r); padding: 32px 40px; min-width: 0; }
.ws-art__media { margin: -32px -40px 28px; }
.ws-art__media img { width: 100%; height: auto; display: block; border-radius: var(--ws-r) var(--ws-r) 0 0; }
.ws-content { font-size: 18px; line-height: 1.7; }
.ws-content h2 { font-size: 27px; line-height: 1.25; margin: 40px 0 14px; padding-top: 10px; border-top: 3px solid var(--ws-ink); display: inline-block; }
.ws-content h3 { font-size: 21px; margin: 28px 0 10px; }
.ws-content table { width: 100%; border-collapse: collapse; font-size: 16px; margin: 20px 0; }
.ws-content .wp-block-table, .ws-content figure.wp-block-table { overflow-x: auto; }
.ws-content th { background: var(--ws-ink); color: #fff; text-align: left; padding: 10px 12px; font-weight: 600; }
.ws-content td { padding: 9px 12px; border-bottom: 1px solid var(--ws-line); }
.ws-content tr:nth-child(even) td { background: #faf9f5; }
.ws-content blockquote { border-left: 4px solid var(--ws-amber); background: var(--ws-amber-soft); margin: 24px 0; padding: 14px 20px; border-radius: 0 var(--ws-r) var(--ws-r) 0; }
.ws-tags a { font-family: var(--ws-mono); font-size: 13px; margin-right: 8px; color: var(--ws-ink2); }

/* Оглавление WordsPost - «схема»: вертикальная линия с узлами */
.wppub-toc { background: var(--ws-teal-soft); border-radius: var(--ws-r); padding: 18px 20px; margin: 0 0 28px; }
.wppub-toc__title { font-family: var(--ws-mono); font-size: 12px !important; text-transform: uppercase; letter-spacing: .08em; color: var(--ws-teal); margin: 0 0 10px !important; border: 0 !important; }
.wppub-toc__list { list-style: none; margin: 0; padding: 0 0 0 14px; border-left: 2px solid rgba(15,118,110,.25); }
.wppub-toc__list li { margin: 0; position: relative; }
.wppub-toc__list > li::before { content: ""; position: absolute; left: -20px; top: .65em; width: 10px; height: 10px; border-radius: 50%; background: var(--ws-card); border: 2px solid var(--ws-teal); }
.wppub-toc__list a { display: block; padding: 4px 0; color: var(--ws-ink); text-decoration: none; font-size: 15px; line-height: 1.35; }
.wppub-toc__list a:hover, .wppub-toc__list a.is-on { color: var(--ws-teal); font-weight: 600; }
.wppub-toc__list > li:has(> a.is-on)::before { background: var(--ws-amber); border-color: var(--ws-amber); }
.wppub-toc__item--sub, .wppub-toc__list ul { font-size: 14px; padding-left: 12px; list-style: none; }
.ws-art__toc .wppub-toc { background: transparent; padding: 0; margin: 0; }
.ws-art__toc .wppub-toc__list ul { display: none; }

/* «Passend dazu» внутри текста */
.ws-tip { margin: 30px 0; border: 1px solid var(--ws-line); border-left: 5px solid var(--ws-amber); border-radius: var(--ws-r); background: #fffdf6; }
.ws-tip__l { display: block; font-family: var(--ws-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: #8a6200; padding: 10px 16px 0; }
.ws-tip a { display: flex; align-items: center; gap: 14px; padding: 8px 16px 14px; text-decoration: none; color: var(--ws-ink); font-weight: 600; font-size: 17px; line-height: 1.3; }
.ws-tip img { width: 72px; height: 72px; object-fit: cover; border-radius: 4px; flex: none; }
.ws-tip span { flex: 1; }
.ws-tip i { font-style: normal; font-size: 22px; color: var(--ws-amber); }
.ws-tip a:hover span { color: var(--ws-teal); }

/* FAQ WordsPost - карточки «Frage / Antwort» с янтарным маркером */
.ws-content .wm-faq { margin: 44px 0 10px; }
.ws-content .wm-faq > h2 { display: block; }
.ws-content .wm-faq-item { border: 1px solid var(--ws-line); border-radius: var(--ws-r); margin: 12px 0; overflow: hidden; }
.ws-content .wm-faq-question { margin: 0 !important; padding: 14px 18px 14px 58px; font-size: 18px !important; background: #faf9f5; position: relative; border: 0; }
.ws-content .wm-faq-question::before { content: "?"; position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%; background: var(--ws-amber); color: var(--ws-ink); display: grid; place-items: center; font-family: var(--ws-mono); font-size: 15px; }
.ws-content .wm-faq-answer { padding: 12px 18px 14px 58px; font-size: 17px; }
.ws-content .wm-faq-answer p:last-child { margin-bottom: 0; }

/* Правая колонка */
.ws-aside { position: sticky; top: 24px; display: grid; gap: 18px; }
.ws-box { background: var(--ws-card); border: 1px solid var(--ws-line); border-radius: var(--ws-r); padding: 16px 18px; }
.ws-box__h { font-family: var(--ws-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--ws-ink2); margin: 0 0 12px; padding-bottom: 8px; border-bottom: 2px solid var(--ws-amber); }
.ws-search { display: flex; border: 2px solid var(--ws-ink); border-radius: var(--ws-r); overflow: hidden; }
.ws-search input { flex: 1; border: 0; padding: 10px 12px; font-size: 15px; min-width: 0; background: #fff; }
.ws-search button { border: 0; background: var(--ws-ink); color: #fff; padding: 0 14px; cursor: pointer; }
.ws-new { list-style: none; margin: 0; padding: 0; }
.ws-new li + li { border-top: 1px dashed var(--ws-line); }
.ws-new a { display: grid; grid-template-columns: 56px 1fr; gap: 12px; padding: 10px 0; text-decoration: none; color: var(--ws-ink); align-items: center; }
.ws-new__img { width: 56px; height: 56px; border-radius: 4px; overflow: hidden; background: var(--ws-teal-soft); display: grid; place-items: center; color: var(--ws-teal); }
.ws-new__img img { width: 100%; height: 100%; object-fit: cover; }
.ws-new__t { font-size: 14px; font-weight: 600; line-height: 1.3; }
.ws-new__t small { display: block; font-weight: 400; font-family: var(--ws-mono); font-size: 11px; color: var(--ws-ink2); margin-top: 3px; }
.ws-new a:hover .ws-new__t { color: var(--ws-teal); }
.ws-box--topics a { display: grid; grid-template-columns: 24px 1fr auto; gap: 10px; align-items: center; padding: 7px 0; text-decoration: none; color: var(--ws-ink); font-size: 14px; }
.ws-box--topics svg { width: 22px; height: 22px; color: var(--ws-teal); }
.ws-box--topics b { font-family: var(--ws-mono); font-size: 12px; background: var(--ws-teal-soft); color: var(--ws-teal); padding: 1px 7px; border-radius: 10px; }

/* Похожие: 4 в ряд с номерами */
.ws-rel { padding: 24px 0 56px; }
.ws-rel__h { font-size: 14px; font-family: var(--ws-mono); text-transform: uppercase; letter-spacing: .08em; border-bottom: 2px solid var(--ws-ink); padding-bottom: 8px; margin: 0 0 18px; }
.ws-rel__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.ws-rel__card { display: flex; flex-direction: column; background: var(--ws-card); border: 1px solid var(--ws-line); border-radius: var(--ws-r); overflow: hidden; text-decoration: none; color: var(--ws-ink); position: relative; transition: transform .15s, box-shadow .15s; }
.ws-rel__card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(29,39,51,.1); }
.ws-rel__img { aspect-ratio: 16/10; background: var(--ws-teal-soft); display: grid; place-items: center; color: var(--ws-teal); overflow: hidden; }
.ws-rel__img img { width: 100%; height: 100%; object-fit: cover; }
.ws-rel__no { position: absolute; top: 10px; left: 10px; background: var(--ws-amber); color: var(--ws-ink); font-family: var(--ws-mono); font-size: 13px; padding: 2px 8px; border-radius: 3px; font-weight: 500; }
.ws-rel__t { font-weight: 600; line-height: 1.3; padding: 12px 14px 4px; font-size: 16px; }
.ws-rel__c { font-family: var(--ws-mono); font-size: 11px; color: var(--ws-ink2); padding: 0 14px 14px; margin-top: auto; text-transform: uppercase; }

/* Полоса перед подвалом */
.ws-band { background: var(--ws-ink); color: #c9d2dc; padding: 40px 0 28px; border-top: 4px solid var(--ws-amber); }
.ws-band__in { max-width: 1240px; margin: 0 auto; padding: 0 20px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px 48px; }
.ws-band__brand strong { display: block; color: #fff; font-size: 22px; margin-bottom: 6px; }
.ws-band__topics { display: flex; flex-wrap: wrap; gap: 8px; align-content: start; }
.ws-band__topics a { border: 1px solid rgba(255,255,255,.2); color: #fff; padding: 6px 12px; border-radius: 20px; text-decoration: none; font-size: 14px; }
.ws-band__topics a:hover { border-color: var(--ws-amber); color: var(--ws-amber); }
.ws-band__note { grid-column: 1 / -1; font-size: 13px; color: #8d9aa8; border-top: 1px solid rgba(255,255,255,.1); padding-top: 16px; margin: 8px 0 0; }
.site-footer, .footer-bottom, .hfg_footer .footer--row { background: #141c25 !important; color: #8d9aa8 !important; }

/* Узкие экраны */
@media (max-width: 1199px) {
	.ws-art__cols { grid-template-columns: minmax(0, 1fr) 280px; }
	.ws-art__toc { display: none; }
}
@media (max-width: 900px) {
	.ws-topics { grid-template-columns: repeat(2, 1fr); }
	.ws-art__cols { grid-template-columns: 1fr; }
	.ws-aside { position: static; }
	.ws-rel__grid { grid-template-columns: repeat(2, 1fr); }
	.ws-band__in { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
	.ws-wrap { padding: 0 16px; }
	.ws-topics { grid-template-columns: 1fr; }
	.ws-row { grid-template-columns: 1fr; gap: 12px; }
	.ws-art__main { padding: 20px 16px; border-radius: 0; border-left: 0; border-right: 0; margin: 0 -16px; }
	.ws-art__media { margin: -20px -16px 20px; }
	.ws-content { font-size: 17px; }
	.ws-passport span { padding-right: 12px; margin-right: 12px; font-size: 14px; }
	.ws-rel__grid { grid-template-columns: 1fr; }
}

/* Кнопка меню на телефоне: прозрачная, белые полоски */
.header-main .navbar-toggle { background: transparent !important; border: 1px solid rgba(255,255,255,.4) !important; }
.header-main .navbar-toggle .icon-bar { background: #fff !important; }
.header-menu-sidebar, .header-menu-sidebar-bg { background: var(--ws-ink) !important; }
.header-menu-sidebar a { color: #fff !important; }
