/* ---------- Шрифты (локально, без обращения к Google Fonts) ---------- */
@font-face{font-family:"Montserrat";font-style:normal;font-weight:600;font-display:swap;src:url("../fonts/montserrat-cyrillic-600.woff2") format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}
@font-face{font-family:"Montserrat";font-style:normal;font-weight:600;font-display:swap;src:url("../fonts/montserrat-latin-600.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215;}
@font-face{font-family:"Montserrat";font-style:normal;font-weight:700;font-display:swap;src:url("../fonts/montserrat-cyrillic-700.woff2") format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}
@font-face{font-family:"Montserrat";font-style:normal;font-weight:700;font-display:swap;src:url("../fonts/montserrat-latin-700.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215;}
@font-face{font-family:"Montserrat";font-style:normal;font-weight:800;font-display:swap;src:url("../fonts/montserrat-cyrillic-800.woff2") format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}
@font-face{font-family:"Montserrat";font-style:normal;font-weight:800;font-display:swap;src:url("../fonts/montserrat-latin-800.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215;}
@font-face{font-family:"Golos Text";font-style:normal;font-weight:400;font-display:swap;src:url("../fonts/golos-text-cyrillic-400.woff2") format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}
@font-face{font-family:"Golos Text";font-style:normal;font-weight:400;font-display:swap;src:url("../fonts/golos-text-latin-400.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215;}
@font-face{font-family:"Golos Text";font-style:normal;font-weight:500;font-display:swap;src:url("../fonts/golos-text-cyrillic-500.woff2") format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}
@font-face{font-family:"Golos Text";font-style:normal;font-weight:500;font-display:swap;src:url("../fonts/golos-text-latin-500.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215;}
@font-face{font-family:"Golos Text";font-style:normal;font-weight:600;font-display:swap;src:url("../fonts/golos-text-cyrillic-600.woff2") format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}
@font-face{font-family:"Golos Text";font-style:normal;font-weight:600;font-display:swap;src:url("../fonts/golos-text-latin-600.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215;}
@font-face{font-family:"Golos Text";font-style:normal;font-weight:700;font-display:swap;src:url("../fonts/golos-text-cyrillic-700.woff2") format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}
@font-face{font-family:"Golos Text";font-style:normal;font-weight:700;font-display:swap;src:url("../fonts/golos-text-latin-700.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215;}
@font-face{font-family:"IBM Plex Mono";font-style:normal;font-weight:500;font-display:swap;src:url("../fonts/ibm-plex-mono-cyrillic-500.woff2") format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}
@font-face{font-family:"IBM Plex Mono";font-style:normal;font-weight:500;font-display:swap;src:url("../fonts/ibm-plex-mono-latin-500.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215;}
@font-face{font-family:"IBM Plex Mono";font-style:normal;font-weight:600;font-display:swap;src:url("../fonts/ibm-plex-mono-cyrillic-600.woff2") format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}
@font-face{font-family:"IBM Plex Mono";font-style:normal;font-weight:600;font-display:swap;src:url("../fonts/ibm-plex-mono-latin-600.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215;}

/* Один содержательный слой для frontend `.ws-content` и Gutenberg canvas. */
:where(.ws-content,.editor-styles-wrapper){
 --ws-ink:#171a20;--ws-text:#232830;--ws-text-2:#4a5058;--ws-muted:#5f6570;--ws-copper:#8d5931;--ws-copper-2:#c08552;--ws-copper-3:#d0a077;--ws-paper:#efece6;--ws-line:#e3dfd7;
 color:#3a3f46;font-family:"Golos Text",system-ui,sans-serif;font-size:16.5px;line-height:1.7;
}
.editor-styles-wrapper>.block-editor-block-list__layout>.wp-block{max-width:820px}
/* ---------------- Контент (the_content) ---------------- */
:where(.ws-content,.editor-styles-wrapper) h2 { font: 800 25px "Montserrat", sans-serif; color: #232830; margin: 28px 0 12px; }
:where(.ws-content,.editor-styles-wrapper) h3 { font: 700 20px "Montserrat", sans-serif; color: #232830; margin: 22px 0 10px; }
:where(.ws-content,.editor-styles-wrapper) p { margin: 0 0 16px; }
:where(.ws-content,.editor-styles-wrapper) ul, :where(.ws-content,.editor-styles-wrapper) ol { margin: 0 0 16px; padding-left: 22px; line-height: 1.7; }
:where(.ws-content,.editor-styles-wrapper) img { border-radius: 12px; margin: 16px 0; }
:where(.ws-content,.editor-styles-wrapper) blockquote { background: #f7f5f1; border-left: 3px solid #c08552; border-radius: 0 12px 12px 0; padding: 16px 22px; margin: 20px 0; color: #4a5058; }
:where(.ws-content,.editor-styles-wrapper) blockquote p:last-child { margin-bottom: 0; }
:where(.ws-content,.editor-styles-wrapper) a { color: var(--ws-copper); text-decoration: underline; }

/* --- Таблицы и врезки внутри the_content --- */
.ws-tablewrap-auto { overflow-x: auto; margin: 20px 0; border: 1px solid var(--ws-line); border-radius: 12px; background: #fff; }
:where(.ws-content,.editor-styles-wrapper) table { width: 100%; border-collapse: collapse; font-size: 14.5px; margin: 0; }
:where(.ws-content,.editor-styles-wrapper) thead th { background: var(--ws-ink); color: #fff; text-align: left; padding: 11px 14px; font-weight: 600; }
:where(.ws-content,.editor-styles-wrapper) td { padding: 10px 14px; border-top: 1px solid var(--ws-paper); vertical-align: top; }
:where(.ws-content,.editor-styles-wrapper) tbody tr:nth-child(even) { background: #faf8f4; }
:where(.ws-content,.editor-styles-wrapper) ol { margin: 0 0 16px; padding-left: 22px; line-height: 1.7; }
.ws-note,
:where(.ws-content,.editor-styles-wrapper) p.is-style-woodsol-note { background: #fdf6ee; border-left: 3px solid var(--ws-copper-2); border-radius: 0 12px 12px 0; padding: 14px 20px; margin: 20px 0; }
.ws-note p { margin: 0; font-size: 14.5px; line-height: 1.6; color: #5b5245; }
:where(.ws-content,.editor-styles-wrapper) p.is-style-woodsol-note { color: #5b5245; font-size: 14.5px; line-height: 1.6; }
:where(.ws-content,.editor-styles-wrapper) sub { font-size: .75em; }

/* --- Экспертная врезка и блок вопросов в статье --- */
.ws-expert { background: #171a20; border-radius: 14px; padding: 20px 24px; margin: 24px 0;
	background-image: radial-gradient(420px 160px at 90% 0%, rgba(192,133,82,.18), transparent 70%); }
.ws-expert p { margin: 0; color: #d8dbe0; font-size: 15px; line-height: 1.65; }
.ws-expert strong { color: #d0a077; }
:where(.ws-content,.editor-styles-wrapper) blockquote.is-style-woodsol-expert {
	background: #171a20;
	background-image: radial-gradient(420px 160px at 90% 0%, rgba(192,133,82,.18), transparent 70%);
	border: 0;
	border-radius: 14px;
	color: #d8dbe0;
	padding: 20px 24px;
	margin: 24px 0;
}
:where(.ws-content,.editor-styles-wrapper) blockquote.is-style-woodsol-expert p { margin: 0; color: #d8dbe0; font-size: 15px; line-height: 1.65; }
:where(.ws-content,.editor-styles-wrapper) blockquote.is-style-woodsol-expert strong { color: #d0a077; }
.ws-faq-block,
:where(.ws-content,.editor-styles-wrapper) .wp-block-group.is-style-woodsol-faq { margin: 18px 0 24px; }
.ws-faq-block h3,
:where(.ws-content,.editor-styles-wrapper) .wp-block-group.is-style-woodsol-faq-item h3 { font: 700 17px/1.35 "Montserrat", sans-serif; color: var(--ws-text); margin: 20px 0 6px; }
.ws-faq-block h3:first-child,
:where(.ws-content,.editor-styles-wrapper) .wp-block-group.is-style-woodsol-faq-item:first-child h3 { margin-top: 0; }
.ws-faq-block p,
:where(.ws-content,.editor-styles-wrapper) .wp-block-group.is-style-woodsol-faq-item p { margin: 0 0 4px; color: var(--ws-text-2); }
:where(.ws-content,.editor-styles-wrapper) .wp-block-group.is-style-woodsol-faq-item { border-bottom: 1px solid var(--ws-line); padding-bottom: 14px; }
:where(.ws-content,.editor-styles-wrapper) .wp-block-group.is-style-woodsol-faq-item:last-child { border-bottom: 0; padding-bottom: 0; }
:where(.ws-content,.editor-styles-wrapper) .wp-block-group.is-style-woodsol-calculator { margin: 0; }

/* --- Калькулятор расхода --- */
.ws-calc { background: #fff; border: 1px solid var(--ws-line); border-radius: 16px; padding: 22px; margin: 24px 0; }
.ws-calc-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px 18px; }
.ws-calc label { display: block; font: 600 12.5px "Golos Text", sans-serif; color: var(--ws-muted); margin-bottom: 5px; }
.ws-calc input, .ws-calc select { width: 100%; border: 1.5px solid #e3dfd7; background: #faf8f4;
	border-radius: 9px; padding: 11px 13px; font: 400 15px "Golos Text", sans-serif; color: var(--ws-text); }
/* Без JavaScript блок результата пуст: рамка и отступ рисовали бы линию
   ни от чего. */
.ws-calc-out:empty { display: none; }
.ws-calc-out { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--ws-paper); }
.ws-calc-row { display: flex; justify-content: space-between; gap: 14px; padding: 7px 0; font-size: 14.5px; }
.ws-calc-row b { font: 600 16px "IBM Plex Mono", monospace; color: var(--ws-copper); white-space: nowrap; }
.ws-calc-total { border-top: 1px dashed #d9d4c9; margin-top: 8px; padding-top: 12px; font-weight: 600; }
.ws-calc-note { margin: 12px 0 0; font-size: 12.5px; color: var(--ws-muted); line-height: 1.55; }
@media (max-width: 560px) { .ws-calc-grid { grid-template-columns: minmax(0,1fr); } }
