/*
Theme Name: dds_reinforcedpower.com
Theme URI: https://reinforcedpower.com/
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: rpplan
*/

@font-face{font-family:'Fira Sans Condensed';font-style:normal;font-weight:500;font-display:swap;src:url('fonts/fira-sans-condensed-cyrillic-500-normal.woff2') format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;}
@font-face{font-family:'Fira Sans Condensed';font-style:normal;font-weight:500;font-display:swap;src:url('fonts/fira-sans-condensed-latin-500-normal.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Fira Sans Condensed';font-style:normal;font-weight:700;font-display:swap;src:url('fonts/fira-sans-condensed-cyrillic-700-normal.woff2') format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;}
@font-face{font-family:'Fira Sans Condensed';font-style:normal;font-weight:700;font-display:swap;src:url('fonts/fira-sans-condensed-latin-700-normal.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;font-display:swap;src:url('fonts/ibm-plex-mono-cyrillic-400-normal.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:400;font-display:swap;src:url('fonts/ibm-plex-mono-latin-400-normal.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:600;font-display:swap;src:url('fonts/ibm-plex-mono-cyrillic-600-normal.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-normal.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'IBM Plex Sans';font-style:normal;font-weight:400;font-display:swap;src:url('fonts/ibm-plex-sans-cyrillic-400-normal.woff2') format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;}
@font-face{font-family:'IBM Plex Sans';font-style:normal;font-weight:400;font-display:swap;src:url('fonts/ibm-plex-sans-latin-400-normal.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'IBM Plex Sans';font-style:normal;font-weight:600;font-display:swap;src:url('fonts/ibm-plex-sans-cyrillic-600-normal.woff2') format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;}
@font-face{font-family:'IBM Plex Sans';font-style:normal;font-weight:600;font-display:swap;src:url('fonts/ibm-plex-sans-latin-600-normal.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'IBM Plex Sans';font-style:italic;font-weight:400;font-display:swap;src:url('fonts/ibm-plex-sans-cyrillic-400-italic.woff2') format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;}
@font-face{font-family:'IBM Plex Sans';font-style:italic;font-weight:400;font-display:swap;src:url('fonts/ibm-plex-sans-latin-400-italic.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}

/* ===== Переменные ===== */
:root {
  --paper: #E8EDF0;
  --paper-2: #F1F4F6;
  --sheet: #F5F7F9;
  --grid: #B9C6CE;
  --navy: #17303F;
  --ink: #1F3A4D;
  --muted: #5E7480;
  --stamp: #E8552D;
  --stamp-dark: #C8431F;
  --marker: #F2C14E;
  --frame: #8FA3AE;
  --side: #DCE4E9;
  --on-dark: #E3EBF0;
  --on-dark-muted: #A9BCC7;
  --f-head: 'Fira Sans Condensed', 'Arial Narrow', 'Roboto Condensed', Arial, sans-serif;
  --f-mono: 'IBM Plex Mono', 'DejaVu Sans Mono', Consolas, 'Courier New', monospace;
  --f-text: 'IBM Plex Sans', 'Segoe UI', Roboto, Arial, sans-serif;
  --dim-l: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M1 0V12M11 2.5L1.5 6L11 9.5' stroke='%231F3A4D' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  --dim-r: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M11 0V12M1 2.5L10.5 6L1 9.5' stroke='%231F3A4D' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  --dim-l-w: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M1 0V12M11 2.5L1.5 6L11 9.5' stroke='%23E3EBF0' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  --dim-r-w: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M11 0V12M1 2.5L10.5 6L1 9.5' stroke='%23E3EBF0' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
}

/* ===== Сброс и основа ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  font: 400 1rem/1.6 var(--f-mono);
  background-color: var(--paper);
  background-image:
    linear-gradient(rgba(185, 198, 206, .7) 1px, transparent 1px),
    linear-gradient(90deg, rgba(185, 198, 206, .7) 1px, transparent 1px),
    linear-gradient(rgba(185, 198, 206, .32) 1px, transparent 1px),
    linear-gradient(90deg, rgba(185, 198, 206, .32) 1px, transparent 1px);
  background-size: 50px 50px, 50px 50px, 10px 10px, 10px 10px;
}
img, svg { max-width: 100%; height: auto; }
p, li, dd, td, th, h1, h2, h3, h4, h5, h6, blockquote, figcaption, .widget { overflow-wrap: break-word; hyphens: auto; }
p { margin: 0 0 1em; }
h1, h2, h3, h4, h5, h6, .brand-name, .sec-title, .card-title, .widget-title { hyphens: manual; }
h1, h2, h3, h4, h5, h6 { font-family: var(--f-head); font-weight: 500; line-height: 1.2; margin: 1.4em 0 .6em; color: var(--ink); }
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--stamp-dark); }
:focus-visible { outline: 2px dashed var(--stamp); outline-offset: 3px; }
button { font: inherit; }
table { border-collapse: collapse; width: 100%; }

.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--ink); color: #fff; padding: .6rem 1rem; text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 1rem; color: #fff; }

/* ===== Контейнер ===== */
.shell { width: min(85%, 1180px); margin-inline: auto; }
@media (max-width: 600px) { .shell { width: 92%; } }

/* ===== Кнопка-штамп ===== */
.btn-stamp {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  padding: .62em 1.15em;
  font: 600 .9rem/1.2 var(--f-mono);
  color: #fff; background: var(--stamp);
  border: 2px solid var(--ink); border-radius: 0;
  box-shadow: 3px 3px 0 var(--ink);
  text-decoration: none; cursor: pointer;
  transition: transform .12s, box-shadow .12s, background-color .12s;
}
.btn-stamp:hover { color: #fff; background: var(--stamp-dark); transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn-stamp:active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--ink); }
.btn-small { font-size: .8rem; padding: .45em .8em; }

/* ===== Ссылка с точкой ===== */
.link-dot, .entry-content a:not(.btn-stamp), .widget a, .page-lead a {
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / calc(100% - 7px) 1px no-repeat;
  padding-bottom: 2px; padding-right: 8px; position: relative;
}
.link-dot::after, .entry-content a:not(.btn-stamp)::after, .widget a::after, .page-lead a::after {
  content: ""; position: absolute; right: 0; bottom: -1px; width: 5px; height: 5px; border-radius: 50%; background: currentColor;
}
.link-dot { font-size: .88rem; }

/* ===== Заголовок секции с размерной линией ===== */
.sec-title {
  display: inline-block; position: relative;
  margin: 0 0 1.6rem; padding-bottom: 14px;
  font: 500 clamp(1.55rem, 1.1rem + 1.7vw, 2.35rem)/1.15 var(--f-head);
  letter-spacing: .06em;
}
.sec-title::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 12px;
  background:
    var(--dim-l) left center / 12px 12px no-repeat,
    var(--dim-r) right center / 12px 12px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / calc(100% - 4px) 1.5px no-repeat;
}
.sec-title--full { display: block; }
.fs-dark .sec-title { color: #fff; }
.fs-dark .sec-title::after {
  background:
    var(--dim-l-w) left center / 12px 12px no-repeat,
    var(--dim-r-w) right center / 12px 12px no-repeat,
    linear-gradient(var(--on-dark), var(--on-dark)) center / calc(100% - 4px) 1.5px no-repeat;
}

/* ===== Шапка ===== */
.masthead { padding-top: .9rem; }
.masthead-inner { display: flex; flex-direction: column; }
.masthead-nav { display: flex; justify-content: flex-end; }
.primary-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .3rem 1.4rem; }
.primary-menu a {
  display: inline-block; padding: .25rem 0; text-decoration: none;
  font: 400 .9rem/1.3 var(--f-mono); color: var(--ink);
  border-bottom: 2px solid transparent;
}
.primary-menu a:hover { border-bottom-color: var(--frame); color: var(--ink); }
.primary-menu .current-menu-item > a, .primary-menu .current_page_item > a { border-bottom-color: var(--ink); font-weight: 600; }
.nav-toggle { display: none; }

.brand { display: flex; align-items: center; gap: 1.4rem; padding: 1.1rem 0 1.6rem; min-width: 0; }
.brand-mark { flex: 0 0 auto; color: var(--ink); display: block; line-height: 0; }
.brand-svg { width: 76px; height: 76px; display: block; }
.brand-logo { max-width: 96px; max-height: 96px; width: auto; height: auto; display: block; }
.brand-text { min-width: 0; }
.brand-name { margin: 0; font: 500 clamp(1.45rem, 1rem + 1.9vw, 2.45rem)/1.12 var(--f-head); letter-spacing: .015em; }
.brand-name a { color: var(--ink); text-decoration: none; }
.brand-name a:hover { color: var(--ink); }
.brand-desc { margin: .55rem 0 0; max-width: 62rem; font: 400 .88rem/1.5 var(--f-mono); color: var(--ink); }

.axis-bar { background: var(--ink); height: 14px; }
.axis-ticks {
  height: 14px;
  background:
    repeating-linear-gradient(90deg, rgba(232, 237, 240, .9) 0 1.5px, transparent 1.5px 130px) top left / 100% 11px no-repeat,
    repeating-linear-gradient(90deg, rgba(232, 237, 240, .6) 0 1px, transparent 1px 13px) top left / 100% 5px no-repeat;
}

/* ===== Секции главной ===== */
.site-main { position: relative; flex: 1 0 auto; }
.masthead, .sitefoot { flex-shrink: 0; }
.fs { position: relative; padding: 3rem 0 3.2rem; }
.fs + .fs:not(.fs-dark) { border-top: 0; }
.fs-dark {
  z-index: 1;
  color: var(--on-dark);
  background-color: var(--navy);
  background-image:
    linear-gradient(rgba(255, 255, 255, .11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .11) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 50px 50px, 50px 50px, 10px 10px, 10px 10px;
  border-top: 4px solid var(--ink);
  border-bottom: 4px solid var(--ink);
}
.fs-lead { max-width: 46rem; margin: -.4rem 0 1.6rem; font-size: .92rem; color: var(--muted); }
.fs-dark .fs-lead { color: var(--on-dark-muted); }
.fs-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: .6rem 2rem; margin-bottom: 1.6rem; }
.fs-head .sec-title { margin-bottom: 0; }

/* Контуры планов по краям */
.home .site-main::before, .home .site-main::after {
  content: ""; position: absolute; z-index: 0; pointer-events: none; display: none;
  width: calc((100% - min(85%, 1180px)) / 2 - 16px); max-width: 170px; height: 620px;
  background: center top / contain no-repeat; opacity: .9;
}
.home .site-main::before { left: 4px; top: 6px; background-image: url("images/kontur-sleva.webp"); }
.home .site-main::after { right: 4px; top: 980px; background-image: url("images/kontur-sprava.webp"); }
@media (min-width: 1300px) { .home .site-main::before, .home .site-main::after { display: block; } }
.fs .shell { position: relative; z-index: 1; }

/* --- Блок 1: план объекта --- */
.plan-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 2.4rem; align-items: center; }
.plan-board { position: relative; margin: 0; }
.plan-board img { display: block; width: 100%; height: auto; }
.plan-pin {
  position: absolute; transform: translate(-50%, -50%);
  width: 32px; height: 32px; padding: 0;
  display: grid; place-items: center;
  font: 600 .9rem/1 var(--f-mono); color: var(--ink);
  background: var(--sheet); border: 2px solid var(--ink); border-radius: 0;
  cursor: pointer; transition: background-color .12s, color .12s, transform .12s;
}
.plan-pin::after {
  content: ""; position: absolute; width: 7px; height: 7px; border-radius: 50%; background: var(--ink);
  right: -12px; bottom: -12px;
}
.plan-pin:hover { background: var(--marker); }
.plan-pin.is-active { background: var(--stamp); color: #fff; transform: translate(-50%, -50%) scale(1.08); }
.plan-pin.is-active::after { background: var(--stamp); }

.plan-legend { list-style: none; margin: 0 0 1.2rem; padding: 0; }
.plan-key {
  display: flex; align-items: baseline; gap: .8rem; width: 100%;
  padding: .42rem .3rem; text-align: left; cursor: pointer;
  font: 400 1rem/1.35 var(--f-mono); color: var(--ink);
  background: none; border: 0; border-bottom: 1px dashed rgba(143, 163, 174, .7);
}
.plan-key-n { flex: 0 0 auto; font-weight: 600; }
.plan-key-t { min-width: 0; }
.plan-key:hover .plan-key-t { text-decoration: underline; text-underline-offset: 3px; }
.plan-key.is-active .plan-key-t { background: linear-gradient(transparent 52%, var(--marker) 52%, var(--marker) 92%, transparent 92%); }
.plan-key.is-active .plan-key-n { color: var(--stamp-dark); }
.plan-note {
  display: flex; gap: .9rem; align-items: flex-start; margin: 0;
  padding: 1rem 1.1rem; background: var(--sheet); border: 2px solid var(--frame);
  font-size: .85rem; line-height: 1.55; color: var(--ink);
}
.plan-note-n {
  flex: 0 0 auto; width: 28px; height: 28px; display: grid; place-items: center;
  font-weight: 600; color: #fff; background: var(--stamp); border: 2px solid var(--ink);
}
.plan-note-t { min-width: 0; padding-top: .15rem; }

/* --- Блок 2: таблица сравнения --- */
.compare-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1.5px solid rgba(227, 235, 240, .85); }
.compare { min-width: 640px; font: 400 .9rem/1.4 var(--f-mono); }
.compare th, .compare td { border: 1px solid rgba(227, 235, 240, .7); padding: .55rem .9rem; vertical-align: middle; }
.compare thead th { font-weight: 400; text-align: center; color: var(--on-dark-muted); background: rgba(10, 28, 39, .45); }
.compare thead th:first-child { text-align: left; }
.compare tbody th { text-align: left; font-weight: 400; color: #fff; width: 22%; }
.compare td { text-align: center; color: #F4D98E; }
.hl {
  display: inline-block; padding: .05em .7em; color: var(--marker);
  border: 2px solid var(--marker); border-radius: 50% / 60%;
  transform: rotate(-1.5deg);
}
.compare-note { margin: 1rem 0 0; font-size: .8rem; color: var(--on-dark-muted); }
.hl-sample { font-size: .78rem; padding: 0 .5em; }

/* --- Записи: карточки --- */
.cards { display: grid; gap: 1.6rem; }
.cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards--list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.layout-single .cards--list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card {
  display: flex; flex-direction: column; min-width: 0; overflow: hidden;
  padding: 10px; background: var(--paper-2);
  border: 2px solid var(--frame);
  transition: border-color .12s, transform .12s, box-shadow .12s;
}
.card:hover { border-color: var(--ink); transform: translate(-3px, -3px); box-shadow: 5px 5px 0 var(--frame); }
.card-thumb { position: relative; border: 1px solid var(--frame); background: var(--side); }
.card-thumb a { display: block; }
.card-thumb img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; filter: saturate(.85); }
.card-stamp {
  position: absolute; top: 6px; right: 6px; min-width: 26px; height: 26px; padding: 0 4px;
  display: grid; place-items: center;
  font: 600 .82rem/1 var(--f-mono); color: var(--ink);
  background: var(--sheet); border: 1.5px solid var(--ink);
}
.card-body { flex: 1; display: flex; flex-direction: column; min-width: 0; padding: .9rem .2rem .2rem; }
.card-title { margin: 0 0 .5rem; font: 500 1.18rem/1.25 var(--f-head); letter-spacing: .01em; }
.card-title a { text-decoration: none; color: var(--ink); }
.card-title a:hover { color: var(--stamp-dark); }
.card-excerpt { font-size: .82rem; line-height: 1.55; color: var(--muted); margin-bottom: .8rem; }
.card-excerpt p { margin: 0 0 0.5em; background: none; }
.card-foot { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem; }
.card-date { font-size: .8rem; color: var(--ink); }
.empty-state { padding: 1.4rem 1.6rem; background: var(--paper-2); border: 2px dashed var(--frame); }

/* --- Блок 3: шкала готовности --- */
.scale-hint { margin: -.6rem 0 1.4rem; font-size: .9rem; }
.scale { --progress: 0; }
.scale-line {
  list-style: none; margin: 0; padding: 0; position: relative;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
}
.scale-line::before, .scale-line::after {
  content: ""; position: absolute; top: 19px; left: 10%; height: 2px; background: var(--ink);
}
.scale-line::before { right: 10%; }
.scale-line::after { width: calc(80% * var(--progress)); background: var(--stamp); height: 4px; top: 18px; transition: width .3s; opacity: 0; }
.has-step .scale-line::after { opacity: 1; }
.scale-step { position: relative; min-width: 0; text-align: center; }
.scale-step + .scale-step::before {
  content: ""; position: absolute; left: 0; top: 12px; width: 2px; height: 16px; background: var(--ink);
}
.scale-stamp {
  position: relative; z-index: 1; width: 100%;
  display: flex; flex-direction: column; align-items: center; gap: .9rem;
  padding: 0 .3rem; background: none; border: 0; cursor: pointer; color: var(--ink);
}
.scale-box {
  position: relative; width: 40px; height: 40px; background: var(--stamp); border: 2px solid var(--stamp-dark);
  transition: transform .15s, background-color .15s;
}
.scale-box::before { content: ""; position: absolute; inset: 4px; border: 1.5px dashed rgba(255, 255, 255, .9); }
.scale-label { font: 400 .88rem/1.35 var(--f-mono); }
.scale-stamp:hover .scale-box { transform: rotate(-6deg); }
.has-step .scale-box { background: var(--paper); border: 2px dashed var(--stamp); }
.has-step .scale-box::before { border-color: transparent; }
.has-step .is-done .scale-box { background: var(--stamp); border-style: solid; }
.has-step .is-done .scale-box::before {
  inset: 9px 11px 13px; border: 0; border-left: 3px solid #fff; border-bottom: 3px solid #fff; transform: rotate(-45deg);
}
.has-step .is-current .scale-box { background: var(--stamp); border: 2px solid var(--ink); transform: scale(1.15); box-shadow: 0 0 0 4px var(--marker); }
.has-step .is-current .scale-box::before { border-color: rgba(255, 255, 255, .9); }
.is-current .scale-label { font-weight: 600; background: linear-gradient(transparent 55%, var(--marker) 55%, var(--marker) 92%, transparent 92%); }
.scale-note {
  margin: 2rem auto 0; max-width: 46rem; padding: .9rem 1.2rem;
  font-size: .86rem; text-align: center; color: var(--ink);
  background: var(--paper-2); border: 1.5px solid var(--frame);
}

/* --- Блок 4: вопросы --- */
.faq { border-top: 1.5px solid var(--ink); }
.faq-item { border-bottom: 1px solid var(--frame); }
.faq-item:last-child { border-bottom-color: var(--ink); border-bottom-width: 1.5px; }
.faq-item summary {
  list-style: none; cursor: pointer; position: relative;
  padding: .85rem .5rem .85rem 1.9rem;
  font: 400 1.02rem/1.4 var(--f-mono); color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before {
  content: ""; position: absolute; left: .45rem; top: 1.18rem;
  border-style: solid; border-width: 5px 0 5px 8px; border-color: transparent transparent transparent var(--ink);
  transition: transform .15s;
}
.faq-item[open] summary::before { transform: rotate(90deg); }
.faq-item summary:hover { background: rgba(242, 193, 78, .18); }
.faq-item[open] summary { font-weight: 600; }
.faq-a { padding: 0 1rem 1rem 1.9rem; font-size: .88rem; color: var(--muted); }
.faq-a p { margin: 0; max-width: 52rem; }

/* ===== Внутренние страницы ===== */
.page-wrap { padding: 0 0 3.5rem; }
.crumbs { padding: 1.2rem 0 1.4rem; font: 400 .8rem/1.5 var(--f-mono); color: var(--muted); }
.crumbs a { color: var(--ink); }
.crumbs-sep { margin: 0 .35rem; color: var(--frame); }
.crumbs-current { color: var(--muted); }
.layout-with-sidebar { display: grid; grid-template-columns: minmax(0, 67fr) minmax(0, 27fr); column-gap: 6%; align-items: start; }
.layout-single { display: block; }
.content-area { min-width: 0; }
.page-head { margin-bottom: 1.6rem; }
.page-head .sec-title { margin-bottom: .6rem; }
.page-lead { color: var(--muted); font-size: .92rem; }

.entry { background: var(--sheet); border: 2px solid var(--frame); padding: 2rem 2.3rem 2.2rem; position: relative; }
.entry::before { content: ""; position: absolute; top: -2px; left: -2px; width: 40px; height: 6px; background: var(--stamp); }
.entry-title { margin: 0 0 .7rem; font: 500 clamp(1.6rem, 1.15rem + 1.6vw, 2.3rem)/1.15 var(--f-head); letter-spacing: .02em; }
.entry-meta { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; font-size: .8rem; color: var(--muted); padding-bottom: .9rem; margin-bottom: 1.4rem; border-bottom: 1.5px solid var(--ink); }
.entry-cats a { margin-right: .6rem; }
.entry-cover { margin: 0 0 1.5rem; border: 1px solid var(--frame); }
.entry-cover img { display: block; width: 100%; height: auto; }
.entry-content { font: 400 1.02rem/1.72 var(--f-text); }
.entry-content h2 { font-size: 1.6rem; letter-spacing: .03em; padding-bottom: .35rem; border-bottom: 1px solid var(--frame); }
.entry-content h3 { font-size: 1.3rem; }
.entry-content h4 { font-size: 1.1rem; }
.entry-content ul, .entry-content ol { padding-left: 1.4rem; margin: 0 0 1.2em; }
.entry-content ul { list-style: none; padding-left: 1.4rem; }
.entry-content ul > li { position: relative; }
.entry-content ul > li::before { content: ""; position: absolute; left: -1.1rem; top: .62em; width: 7px; height: 7px; border: 1.5px solid var(--stamp); }
.entry-content ol > li::marker { font-family: var(--f-mono); font-weight: 600; color: var(--stamp-dark); }
.entry-content li { margin-bottom: .35em; }
.entry-content blockquote {
  margin: 1.6em 0; padding: 1.1rem 1.4rem 1.1rem 1.5rem;
  background: var(--side); border-left: 5px solid var(--stamp);
  font-family: var(--f-mono); font-size: .95rem;
}
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content table { margin: 1.4em 0; font-size: .92rem; font-family: var(--f-mono); }
.entry-content th, .entry-content td { border: 1px solid var(--frame); padding: .5rem .7rem; text-align: left; }
.entry-content th { background: var(--side); font-weight: 600; }
.entry-content table, .entry-content figure.wp-block-table table { border: 1.5px solid var(--ink); }
.entry-content img { display: block; height: auto; }
.entry-content figure { margin: 1.5em 0; }
.entry-content figcaption { font: .8rem/1.4 var(--f-mono); color: var(--muted); margin-top: .5rem; }
.entry-content pre { overflow-x: auto; padding: 1rem; background: var(--navy); color: var(--on-dark); font: .85rem/1.5 var(--f-mono); }
.entry-content code { font-family: var(--f-mono); font-size: .9em; background: var(--side); padding: .1em .3em; }
.entry-content pre code { background: none; padding: 0; }
.entry-content hr { border: 0; height: 12px; margin: 2em 0; background: var(--dim-l) left center / 12px 12px no-repeat, var(--dim-r) right center / 12px 12px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 100% 1.5px no-repeat; }
.entry-tags { margin: 1.6rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem; font-size: .82rem; }
.entry-tags a { padding: .2rem .55rem; border: 1.5px solid var(--frame); text-decoration: none; }
.entry-tags a:hover { border-color: var(--ink); }
.entry-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 2rem; }
.entry-nav a { display: block; padding: .9rem 1.1rem; border: 2px solid var(--frame); text-decoration: none; font: 500 1rem/1.3 var(--f-head); background: var(--paper-2); }
.entry-nav a span { display: block; font: .75rem/1.4 var(--f-mono); color: var(--muted); margin-bottom: .3rem; }
.entry-nav a:hover { border-color: var(--ink); color: var(--ink); }
.entry-nav-next { grid-column: 2; text-align: right; }

/* ===== Пагинация ===== */
.pager { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 2.2rem; align-items: center; }
.pager .page-numbers {
  min-width: 42px; height: 42px; padding: 0 .75rem;
  display: inline-flex; align-items: center; justify-content: center;
  font: 600 .88rem/1 var(--f-mono); color: var(--ink); text-decoration: none;
  background: var(--paper-2); border: 2px solid var(--ink);
}
.pager a.page-numbers:hover { background: var(--marker); color: var(--ink); }
.pager .page-numbers.current { background: var(--stamp); color: #fff; box-shadow: 3px 3px 0 var(--ink); }
.pager .page-numbers.dots { border: 0; background: none; min-width: auto; padding: 0 .2rem; }

/* ===== Сайдбар ===== */
.sidebar { min-width: 0; padding: 1.4rem 1.4rem .6rem; background: var(--side); border: 2px solid var(--frame); color: var(--ink); }
.sidebar .widget { margin-bottom: 1.6rem; font-size: .88rem; }
.sidebar .widget-title {
  margin: 0 0 1rem; padding-bottom: 10px; position: relative;
  font: 500 1.2rem/1.2 var(--f-head); letter-spacing: .05em; color: var(--ink);
}
.sidebar .widget-title::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 10px;
  background: var(--dim-l) left center / 10px 10px no-repeat, var(--dim-r) right center / 10px 10px no-repeat, linear-gradient(var(--ink), var(--ink)) center / calc(100% - 4px) 1px no-repeat;
}
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar li { padding: .5rem 0; border-bottom: 1px dashed var(--frame); }
.sidebar li:last-child { border-bottom: 0; }
.sidebar a { color: var(--ink); }
.sidebar a:hover { color: var(--stamp-dark); }
.sidebar .post-date { display: block; font-size: .75rem; color: var(--muted); }
.sidebar .search-form { flex-wrap: wrap; }

/* ===== Поиск ===== */
.search-form { display: flex; gap: .5rem; max-width: 34rem; }
.search-field {
  flex: 1; min-width: 0; padding: .6rem .8rem;
  font: 400 .92rem/1.3 var(--f-mono); color: var(--ink);
  background: var(--sheet); border: 2px solid var(--ink); border-radius: 0;
}
.search-field::placeholder { color: var(--muted); }

/* ===== Комментарии ===== */
.notes { margin-top: 2.2rem; padding: 1.8rem 2rem; background: var(--paper-2); border: 2px solid var(--frame); }
.notes-title, .comment-reply-title { margin: 0 0 1.2rem; font: 500 1.45rem/1.2 var(--f-head); letter-spacing: .04em; }
.comment-reply-title small { font: 400 .8rem var(--f-mono); margin-left: .6rem; }
.notes-list, .notes-list .children { list-style: none; margin: 0; padding: 0; }
.notes-list .children { padding-left: 1.6rem; border-left: 2px dashed var(--frame); margin-left: .6rem; }
.note-card { padding: 1rem 1.2rem; margin-bottom: 1rem; background: var(--sheet); border: 1.5px solid var(--frame); }
.note-head { display: flex; gap: .8rem; align-items: center; margin-bottom: .6rem; }
.note-head img { border: 1.5px solid var(--ink); display: block; }
.note-author { display: block; font-weight: 600; font-size: .92rem; }
.note-date { font-size: .75rem; color: var(--muted); }
.note-wait { font-size: .82rem; color: var(--stamp-dark); }
.note-text { font: .95rem/1.6 var(--f-text); }
.note-reply a { font-size: .8rem; font-weight: 600; }
.comment-form p { margin-bottom: 1rem; }
.comment-form label { display: block; font-size: .82rem; margin-bottom: .3rem; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
  width: 100%; padding: .6rem .8rem; font: .92rem/1.4 var(--f-mono); color: var(--ink);
  background: var(--sheet); border: 2px solid var(--ink); border-radius: 0;
}
.comment-form-cookies-consent { display: flex; gap: .5rem; align-items: flex-start; }
.comment-form-cookies-consent label { display: inline; margin: 0; }
.comment-notes, .logged-in-as { font-size: .8rem; color: var(--muted); }
.req { color: var(--stamp-dark); }

/* ===== 404 ===== */
.lost { padding: 1rem 0 2rem; max-width: 46rem; }
.lost-code {
  margin: 0; font: 700 clamp(6rem, 18vw, 11rem)/1 var(--f-head); letter-spacing: .08em;
  color: transparent; -webkit-text-stroke: 2px var(--ink);
  background: linear-gradient(transparent 62%, rgba(242, 193, 78, .55) 62%, rgba(242, 193, 78, .55) 80%, transparent 80%);
  display: block; width: fit-content;
}
.lost-text { margin-bottom: 1.4rem; }
.lost .search-form { margin-bottom: 1.6rem; }

/* ===== Подвал ===== */
.sitefoot {
  color: var(--on-dark);
  background-color: var(--navy);
  background-image:
    linear-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .08) 1px, transparent 1px);
  background-size: 50px 50px;
  border-top: 6px solid var(--ink);
  padding: 2.6rem 0 1.2rem;
}
.sitefoot-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.4rem; }
.sitefoot-col { min-width: 0; }
.sitefoot .widget { font-size: .86rem; line-height: 1.6; color: var(--on-dark); }
.sitefoot .widget p { color: var(--on-dark); }
.sitefoot .widget-title { margin: 0 0 .9rem; font: 500 1.3rem/1.2 var(--f-head); letter-spacing: .05em; color: #fff; }
.sitefoot .widget a { color: var(--on-dark); }
.sitefoot .widget a:hover { color: var(--marker); }
.sitefoot ul { list-style: none; margin: 0; padding: 0; }
.sitefoot li { margin-bottom: .45rem; }
.sitefoot .post-date { color: var(--on-dark-muted); }
.sitefoot-copy { margin: 2.2rem 0 0; padding-top: 1rem; border-top: 1px solid rgba(227, 235, 240, .35); font-size: .78rem; color: var(--on-dark-muted); }

/* ===== Cookie-баннер ===== */
.cookie-banner[hidden] { display: none !important; }
.cookie-banner {
  position: fixed; z-index: 90; left: 1rem; right: 1rem; bottom: 1rem;
  margin-inline: auto; max-width: 720px;
  display: flex; align-items: center; gap: 1.2rem;
  padding: 1rem 1.3rem; color: var(--on-dark); background: var(--navy);
  border: 2px solid var(--frame); box-shadow: 6px 6px 0 var(--ink);
}
.cookie-text { margin: 0; flex: 1; min-width: 0; font-size: .82rem; line-height: 1.5; }
.cookie-accept { flex: 0 0 auto; border-color: #fff; box-shadow: 3px 3px 0 #0b1a23; }

/* ===== Адаптив ===== */
@media (max-width: 960px) {
  .plan-grid { grid-template-columns: minmax(0, 1fr); gap: 1.6rem; }
  .cards--3, .layout-single .cards--list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .layout-with-sidebar { display: block; }
  .sidebar { margin-top: 2.4rem; }
  .sitefoot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .masthead-nav { justify-content: flex-start; flex-direction: column; align-items: flex-start; }
  .nav-toggle {
    display: inline-flex; align-items: center; gap: .6rem;
    padding: .45rem .8rem; cursor: pointer;
    font: 600 .85rem/1 var(--f-mono); color: var(--ink);
    background: var(--sheet); border: 2px solid var(--ink); border-radius: 0;
  }
  .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 18px; height: 2px; background: var(--ink); position: relative; content: ""; }
  .nav-toggle-bars::before { position: absolute; top: -6px; }
  .nav-toggle-bars::after { position: absolute; top: 6px; }
  .primary-nav { display: none; width: 100%; margin-top: .6rem; }
  .primary-nav.is-open { display: block; }
  .primary-menu { flex-direction: column; gap: 0; border: 2px solid var(--ink); background: var(--sheet); }
  .primary-menu li + li { border-top: 1px dashed var(--frame); }
  .primary-menu a { display: block; padding: .7rem 1rem; border-bottom: 0; }
  .primary-menu .current-menu-item > a { background: linear-gradient(90deg, var(--stamp) 0 5px, transparent 5px); }
  .brand { gap: 1rem; padding: 1rem 0 1.2rem; align-items: flex-start; }
  .brand-svg { width: 54px; height: 54px; }
  .entry-nav { grid-template-columns: minmax(0, 1fr); }
  .entry-nav-next { grid-column: 1; }
}
@media (max-width: 600px) {
  .fs { padding: 2.2rem 0 2.4rem; }
  .cards--3, .cards--list, .layout-single .cards--list { grid-template-columns: minmax(0, 1fr); }
  .plan-pin { width: 24px; height: 24px; font-size: .75rem; border-width: 1.5px; }
  .plan-pin::after { width: 5px; height: 5px; right: -8px; bottom: -8px; }
  .scale-line { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .scale-line::before { left: 19px; right: auto; top: 10px; bottom: 10px; width: 2px; height: auto; }
  .scale-line::after { left: 18px; top: 10px; width: 4px; height: calc((100% - 40px) * var(--progress)); }
  .scale-step { text-align: left; }
  .scale-step + .scale-step::before { display: none; }
  .scale-stamp { flex-direction: row; gap: 1rem; padding: 0; text-align: left; }
  .scale-box { flex: 0 0 auto; }
  .entry { padding: 1.4rem 1.2rem 1.5rem; }
  .notes { padding: 1.3rem 1.1rem; }
  .sidebar { padding: 1.2rem 1.1rem .4rem; }
  .sitefoot-cols { grid-template-columns: minmax(0, 1fr); gap: 1.6rem; }
  .cookie-banner { flex-direction: column; align-items: stretch; padding: 1rem 1.1rem; left: .6rem; right: .6rem; bottom: .6rem; }
  .search-form { flex-wrap: wrap; }
  .faq-a { padding: 0 .5rem 1rem 1.9rem; }
}
