/*
Theme Name: dds_bymadimarie.com
Theme URI: https://bymadimarie.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: kvsemya
*/

/* ---------- Шрифты ---------- */
@font-face { font-family: "Oswald"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/oswald-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: "Oswald"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/oswald-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+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Oswald"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/oswald-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: "Oswald"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/oswald-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+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/manrope-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: "Manrope"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/manrope-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+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/manrope-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: "Manrope"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/manrope-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+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/manrope-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: "Manrope"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/manrope-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+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Caveat"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/caveat-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: "Caveat"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/caveat-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+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- Переменные ---------- */
:root {
    --ink: #1E3A4C;
    --ink-deep: #17303F;
    --text: #22282B;
    --muted: #6E8378;
    --accent: #E4672E;
    --accent-dark: #C9501C;
    --mint: #7FB3A8;
    --mint-dark: #5FA394;
    --grid: #C9D6C4;
    --kalka: #DDE8E6;
    --card: #FBF7EC;
    --paper: #F3F0E6;
    --thumb: #F0EFE7;
    --on-dark: #D5E1E6;
    --f-head: "Oswald", "Arial Narrow", "Roboto Condensed", sans-serif;
    --f-body: "Manrope", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    --f-hand: "Caveat", "Segoe Print", "Comic Sans MS", cursive;
}

/* Скрытые JS-элементы — до основных стилей */
.cookie-note[hidden] { display: none !important; }

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    overflow-x: hidden;
    font-family: var(--f-body);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--text);
    background-color: var(--paper);
    background-image:
        linear-gradient(var(--grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid) 1px, transparent 1px),
        linear-gradient(rgba(201, 214, 196, .42) 1px, transparent 1px),
        linear-gradient(90deg, rgba(201, 214, 196, .42) 1px, transparent 1px);
    background-size: 60px 60px, 60px 60px, 12px 12px, 12px 12px;
    background-position: -1px -1px;
}
img, svg { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-dark); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
p { margin: 0 0 1em; }
h1, h2, h3, h4, h5, h6 { font-family: var(--f-head); font-weight: 600; color: var(--ink); line-height: 1.15; margin: 1.4em 0 .55em; }
h1, h2, h3, h4, p, li, .card-title, .zone-name, .brand-name, .widget { overflow-wrap: break-word; hyphens: auto; }
table { border-collapse: collapse; width: 100%; margin: 0 0 1.4em; background: var(--card); }
th, td { border: 1px solid rgba(30, 58, 76, .45); padding: .55em .8em; text-align: left; vertical-align: top; }
th { background: var(--kalka); color: var(--ink); font-weight: 700; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--accent); color: #fff; padding: .5em 1em; }
.skip:focus { left: 8px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }

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

/* ---------- Шапка ---------- */
.topbar {
    background-color: var(--ink);
    background-image:
        linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px),
        linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px);
    background-size: 40px 40px, 40px 40px, 8px 8px, 8px 8px;
    color: #fff;
}
.topbar-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; padding: 1rem 0; }
.brand { display: flex; align-items: center; gap: .9rem; color: #fff; text-decoration: none; min-width: 0; flex: 1 1 320px; max-width: 640px; }
.brand:hover { color: #fff; }
.brand-mark { flex: 0 0 auto; width: 58px; }
.brand-svg, .brand-logo { width: 58px; height: auto; display: block; }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-name { font-family: var(--f-head); font-weight: 500; font-size: clamp(1.02rem, 1.55vw, 1.38rem); line-height: 1.18; letter-spacing: .01em; }
.brand-name::first-letter { text-transform: uppercase; }
.brand-desc { margin-top: .3rem; font-size: .78rem; line-height: 1.4; color: rgba(255, 255, 255, .74); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.nav-toggle {
    display: inline-flex; align-items: center; gap: .55rem;
    background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .55);
    font: 600 .9rem var(--f-body); padding: .5rem .8rem; cursor: pointer; border-radius: 0;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 18px; height: 2px; background: #fff; position: relative; content: ""; }
.nav-toggle-bars::before { position: absolute; top: -6px; }
.nav-toggle-bars::after { position: absolute; top: 6px; }
.topnav { display: none; flex-basis: 100%; }
.topnav.is-open { display: block; }
.topnav-list { list-style: none; margin: 0; padding: .4rem 0 .2rem; display: flex; flex-direction: column; }
.topnav-list a { display: block; padding: .6rem 0; color: #fff; text-decoration: none; font-weight: 500; border-bottom: 1px solid rgba(255, 255, 255, .14); }
.topnav-list a:hover { color: #FFC9A9; }
.topnav-list .current-menu-item > a { color: #fff; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 7px; }

/* ---------- Общие элементы ---------- */
.sec-title {
    display: flex; align-items: flex-end; gap: 1rem;
    font-family: var(--f-head); font-weight: 600; text-transform: uppercase;
    font-size: clamp(1.45rem, 2.6vw, 2.05rem); letter-spacing: .01em;
    margin: 0 0 1.6rem; color: var(--ink);
}
.sec-title::after { content: ""; flex: 1 1 40px; min-width: 40px; height: 2px; background: var(--ink); opacity: .55; margin-bottom: .32em; }

.sticker {
    display: inline-flex; align-items: center; gap: .45em;
    background: var(--mint); color: var(--ink);
    border: 1px solid var(--mint-dark); border-radius: 0;
    padding: .6em 1.15em; font: 600 .95rem/1.2 var(--f-body);
    text-decoration: none; box-shadow: 2px 2px 0 rgba(30, 58, 76, .22);
    transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.sticker:hover { color: var(--ink); background: #93C2B8; transform: translate(-2px, -2px); box-shadow: 4px 4px 0 rgba(30, 58, 76, .3); }
.sticker-sm { font-size: .85rem; padding: .5em .95em; }

.arrow-link { font-weight: 600; text-decoration: underline; text-decoration-color: rgba(30, 58, 76, .5); }
.arrow-link span { display: inline-block; transition: transform .15s ease; }
.arrow-link:hover span { transform: translateX(4px); }

.empty-note { padding: 1.2rem 1.4rem; background: var(--card); border: 1px dashed rgba(30, 58, 76, .4); }

/* ---------- Главная ---------- */
.site-main { overflow-x: clip; }
.front { padding-bottom: 3rem; }
.fs { padding: 2.4rem 0; position: relative; }

/* Первый экран */
.fs-hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; padding-top: 2.6rem; }
.fs-hero::before {
    content: ""; position: absolute; top: -10px; right: -2%; width: 46%; height: 70%;
    background: rgba(221, 232, 230, .35); border: 1px solid rgba(30, 58, 76, .06);
    transform: rotate(2deg); z-index: -1; pointer-events: none;
}
.hero-copy { min-width: 0; }
.hero-title { font-family: var(--f-head); font-weight: 600; font-size: clamp(2.6rem, 7.6vw, 5.4rem); line-height: .98; letter-spacing: -.005em; margin: 0; color: var(--ink); }
.hero-title span { display: block; }
.hero-swoosh { display: block; width: min(100%, 470px); height: 22px; margin: .9rem 0 1.2rem; }
.hero-lead { max-width: 34rem; font-size: 1.05rem; color: var(--text); }
.hero-drawing { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; min-width: 0; }

.plan { position: relative; padding: 30px 0 34px 30px; min-width: 0; }
.plan-sheet { position: relative; margin: 0; }
.plan-sheet img { width: 100%; }
.plan-tag {
    position: absolute; transform: translate(-50%, -50%);
    font: 600 clamp(.62rem, 1.1vw, .82rem)/1.2 var(--f-body); color: var(--ink);
    background: rgba(250, 238, 226, .94); padding: .15em .45em; white-space: nowrap;
}
.dim { position: absolute; color: var(--ink); font: 500 .78rem/1 var(--f-head); letter-spacing: .04em; }
.dim span { position: relative; z-index: 1; background: var(--paper); padding: 0 .4em; }
.dim-top { top: 0; left: 30px; right: 0; height: 18px; display: flex; justify-content: center; align-items: center; border-left: 1px solid var(--ink); border-right: 1px solid var(--ink); }
.dim-top::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--ink); }
.dim-left { left: 0; top: 30px; bottom: 34px; width: 18px; display: flex; align-items: center; justify-content: center; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.dim-left::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 1px; background: var(--ink); }
.dim-left span { transform: rotate(-90deg); white-space: nowrap; }
.dim-row { position: absolute; left: 30px; right: 0; bottom: 0; height: 18px; display: flex; }
.dim-row span { position: relative; display: flex; justify-content: center; align-items: center; font: 500 .78rem/1 var(--f-head); color: var(--ink); border-left: 1px solid var(--ink); }
.dim-row span:last-child { border-right: 1px solid var(--ink); }
.dim-row span::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--ink); z-index: 0; }
.dim-row b { position: relative; z-index: 1; background: var(--paper); padding: 0 .35em; font-weight: 500; }

.plan-notes { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem 1.6rem; }
.plan-notes li { font: 500 1.5rem/1.02 var(--f-hand); color: var(--accent); }
.tick { font-family: var(--f-body); font-weight: 700; font-size: .9em; }
.hero-drawing { padding-bottom: 64px; }
.stamp-hero { position: absolute; width: 130px; right: 0; bottom: 0; transform: rotate(-10deg); opacity: .92; }

/* Зоны */
.zones-labels { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.1rem 1.4rem; }
.zone { position: relative; min-width: 0; padding-left: .9rem; border-left: 4px solid var(--z, var(--mint)); }
.zone:nth-child(1) { --z: #A9C6D3; }
.zone:nth-child(2) { --z: #A8D19E; }
.zone:nth-child(3) { --z: #EFB884; }
.zone:nth-child(4) { --z: #B9A7E0; }
.zone:nth-child(5) { --z: #9DC4D3; }
.zone-name { font-family: var(--f-body); font-weight: 600; font-size: 1.12rem; margin: 0 0 .3rem; color: var(--ink); }
.zone ul { list-style: none; margin: 0; padding: 0; }
.zone li { position: relative; padding-left: 1rem; font-size: .93rem; line-height: 1.5; color: var(--text); }
.zone li::before { content: ""; position: absolute; left: 0; top: .62em; width: 5px; height: 5px; background: var(--mint-dark); transform: rotate(45deg); }
.zones-plan { margin: 1.8rem 0 0; }
.zones-plan img { width: 100%; }

/* Карточки */
.card {
    display: flex; flex-direction: column; overflow: hidden; position: relative; min-width: 0;
    background: var(--card); border: 1.5px solid var(--ink);
    padding: 1rem 1rem 1.1rem;
    box-shadow: 3px 4px 0 rgba(30, 58, 76, .12), 0 8px 18px rgba(30, 58, 76, .07);
    transition: transform .2s ease, box-shadow .2s ease;
}
.card-media { display: block; background: var(--thumb); border: 1px solid rgba(30, 58, 76, .12); }
.card-thumb { width: 100%; aspect-ratio: 19 / 10; object-fit: cover; display: block; }
.card-thumb.is-fallback { object-fit: contain; padding: .35rem; }
.card-body { flex: 1; display: flex; flex-direction: column; min-width: 0; padding: 1rem .35rem 0; }
.card-title { font-family: var(--f-body); font-weight: 700; font-size: 1.16rem; line-height: 1.3; margin: 0 0 .55rem; }
.card-title a { text-decoration: none; color: var(--ink); }
.card-title a:hover { color: var(--accent-dark); }
.card-excerpt { font-size: .93rem; line-height: 1.55; color: var(--text); flex: 1; }
.card-excerpt p { margin: 0 0 .5em; background: none; }
.card-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem; margin-top: .8rem; }
.card-date { font-size: .84rem; color: var(--muted); letter-spacing: .02em; }
.card:hover { transform: translateY(-4px) rotate(0deg); box-shadow: 6px 8px 0 rgba(30, 58, 76, .16), 0 12px 24px rgba(30, 58, 76, .1); z-index: 3; }

.card-deck { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.6rem; }
.card-deck .card:nth-child(1) { transform: rotate(-1.6deg); }
.card-deck .card:nth-child(2) { transform: rotate(1.2deg); }
.card-deck .card:hover { transform: translateY(-4px) rotate(0deg); }
.card-deck .card:nth-child(1)::before {
    content: ""; position: absolute; top: -6px; left: -10px; width: 58px; height: 22px;
    background: rgba(228, 103, 46, .35); transform: rotate(-32deg);
}
.latest-more { margin: 1.8rem 0 0; text-align: right; }

.card-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.6rem; margin-bottom: 2rem; }
.card-list .card:nth-child(odd) { transform: rotate(-.5deg); }
.card-list .card:nth-child(even) { transform: rotate(.5deg); }
.card-list .card:hover { transform: translateY(-4px) rotate(0deg); }

/* Бюджет на кальке */
.budget-wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.4rem; }
.kalka {
    position: relative; min-width: 0;
    background: rgba(214, 229, 228, .8);
    border: 1px solid rgba(30, 58, 76, .14);
    box-shadow: 0 10px 22px rgba(30, 58, 76, .14), 0 1px 0 rgba(255, 255, 255, .6) inset;
    padding: 2rem 1.3rem 1.6rem;
}
.clip { position: absolute; top: -22px; left: 4px; width: 30px; height: 62px; transform: rotate(-18deg); }
.budget-grid { display: grid; grid-template-columns: minmax(0, 1fr); border: 1px solid rgba(30, 58, 76, .38); }
.budget-col { min-width: 0; padding: 0 1rem 1rem; border-bottom: 1px solid rgba(30, 58, 76, .38); }
.budget-col:last-child { border-bottom: 0; }
.budget-head { display: flex; flex-direction: column; align-items: center; gap: .25rem; padding: .9rem 0 .7rem; margin: 0 -1rem .8rem; border-bottom: 1px solid rgba(30, 58, 76, .28); color: var(--muted); }
.budget-head svg { width: 24px; height: 24px; }
.budget-head h3 { margin: 0; font-family: var(--f-body); font-weight: 600; font-size: 1.12rem; color: var(--ink); }
.budget-col p { font-size: .92rem; line-height: 1.55; margin: 0 0 .6em; }
.budget-col .budget-hint { font: 500 1.2rem/1.15 var(--f-hand); color: var(--accent-dark); margin: 0; hyphens: manual; }
.ruler {
    height: 40px;
    background-color: #EE8A57;
    border: 1px solid var(--accent-dark);
    background-image:
        linear-gradient(90deg, rgba(255, 255, 255, .85) 0 1.5px, transparent 1.5px),
        linear-gradient(90deg, rgba(255, 255, 255, .85) 0 1.5px, transparent 1.5px);
    background-size: 12px 30%, 60px 58%;
    background-repeat: repeat-x;
    background-position: 0 0, 0 0;
}

/* Чек-лист */
.check-wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.6rem; align-items: center; }
.check-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; }
.check-item {
    display: flex; gap: .75rem; align-items: flex-start; min-width: 0;
    background: rgba(251, 247, 236, .6);
    border: 2px solid var(--mint);
    outline: 1px solid var(--mint); outline-offset: -7px;
    padding: 1rem 1.05rem;
}
.check-item:nth-child(odd) { transform: rotate(-.6deg); }
.check-item:nth-child(even) { transform: rotate(.5deg); }
.check-box { flex: 0 0 20px; width: 20px; height: 20px; border: 2px solid var(--mint-dark); margin-top: .2rem; background: rgba(255, 255, 255, .5); }
.check-text { min-width: 0; font-size: .86rem; line-height: 1.45; color: var(--text); }
.check-text strong { display: block; font-family: var(--f-head); font-weight: 500; font-size: 1.08rem; color: var(--ink); margin-bottom: .2rem; }
.seal { width: 150px; height: 150px; justify-self: center; transform: rotate(-14deg); opacity: .9; }

/* ---------- Внутренние страницы ---------- */
.crumbs { font-size: .86rem; color: var(--muted); padding: 1.4rem 0 1rem; }
.crumbs a { color: var(--ink); }
.crumbs .sep { color: var(--accent); margin: 0 .25rem; }
.crumbs span:last-child { color: var(--muted); }

.layout-single, .layout-with-sidebar { padding-bottom: 3.5rem; }
.layout-with-sidebar { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.2rem; }
.content-area { min-width: 0; }
.page-title { font-size: clamp(1.9rem, 4vw, 2.9rem); text-transform: uppercase; margin: .2rem 0 1.4rem; }
.archive-desc { margin: -.6rem 0 1.4rem; color: var(--muted); }

.entry { background: var(--card); border: 1px solid rgba(30, 58, 76, .3); padding: 1.3rem 1.2rem 1.6rem; box-shadow: 3px 4px 0 rgba(30, 58, 76, .1); margin-bottom: 2rem; }
.entry-title { font-size: clamp(1.8rem, 4vw, 2.7rem); margin: 0 0 .6rem; }
.entry-meta { display: flex; flex-wrap: wrap; gap: .4rem 1rem; font-size: .88rem; color: var(--muted); margin-bottom: 1.2rem; }
.entry-cat a { color: var(--ink); }
.entry-cover { margin: 0 0 1.4rem; border: 1px solid rgba(30, 58, 76, .2); }
.entry-cover img { width: 100%; }
.entry-content { font-size: 1.03rem; }
.entry-content h2 { font-size: clamp(1.45rem, 3vw, 1.9rem); border-bottom: 2px solid rgba(30, 58, 76, .2); padding-bottom: .25em; }
.entry-content h3 { font-size: 1.35rem; }
.entry-content ul { list-style: none; padding-left: 1.3rem; }
.entry-content ul li { position: relative; margin-bottom: .35em; }
.entry-content ul li::before { content: ""; position: absolute; left: -1.1rem; top: .62em; width: 7px; height: 7px; background: var(--accent); }
.entry-content ol { padding-left: 1.5rem; }
.entry-content ol li::marker { color: var(--accent-dark); font-weight: 700; }
.entry-content blockquote {
    margin: 1.4em 0; padding: 1.1rem 1.4rem;
    background: var(--kalka); border-left: 5px solid var(--mint-dark);
    font-size: 1.06rem; color: var(--ink);
}
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content img { border: 1px solid rgba(30, 58, 76, .15); }
.entry-content figure { margin: 1.4em 0; }
.entry-content figcaption { font-size: .85rem; color: var(--muted); margin-top: .4em; }
.entry-content pre { overflow-x: auto; background: var(--ink-deep); color: #EAF1F3; padding: 1rem; }
.entry-content hr { border: 0; border-top: 2px dashed rgba(30, 58, 76, .3); margin: 2em 0; }
.entry-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.4rem; }
.entry-tags a { font-size: .85rem; background: var(--kalka); padding: .25em .6em; text-decoration: none; border: 1px solid rgba(30, 58, 76, .2); }

/* Сайдбар */
.sidebar { min-width: 0; align-self: start; background: rgba(221, 232, 230, .78); border: 1px solid rgba(30, 58, 76, .22); padding: 1.4rem 1.3rem; box-shadow: 3px 4px 0 rgba(30, 58, 76, .08); color: var(--text); }
.sidebar .widget { margin-bottom: 1.6rem; }
.sidebar .widget:last-child { margin-bottom: 0; }
.sidebar .widget-title { margin: 0 0 .8rem; font-size: 1.15rem; text-transform: uppercase; color: var(--ink); display: flex; align-items: flex-end; gap: .6rem; }
.sidebar .widget-title::after { content: ""; flex: 1; height: 1px; background: var(--ink); opacity: .45; margin-bottom: .3em; }
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar li { padding: .5rem 0; border-bottom: 1px dashed rgba(30, 58, 76, .3); font-size: .94rem; line-height: 1.4; }
.sidebar li:last-child { border-bottom: 0; }
.sidebar a { color: var(--ink); text-decoration: none; }
.sidebar a:hover { color: var(--accent-dark); text-decoration: underline; }
.sidebar .post-date { display: block; font-size: .8rem; color: var(--muted); }

/* Пагинация */
.pager { display: flex; flex-wrap: wrap; gap: .45rem; margin: 1rem 0 2rem; }
.pager .page-numbers, .pager > a, .pager > span {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 2.5rem; height: 2.5rem; padding: 0 .75rem;
    border: 1.5px solid var(--ink); background: var(--card); color: var(--ink);
    text-decoration: none; font-weight: 600; font-size: .92rem;
    box-shadow: 2px 2px 0 rgba(30, 58, 76, .18);
}
.pager a.page-numbers:hover { background: var(--mint); transform: translate(-1px, -1px); }
.pager .page-numbers.current { background: var(--ink); color: #fff; }
.pager .page-numbers.dots { border: 0; background: none; box-shadow: none; min-width: auto; }

/* Поиск */
.search-box { display: flex; gap: 0; max-width: 520px; margin: 1rem 0 1.4rem; }
.search-field { flex: 1; min-width: 0; padding: .7rem .9rem; font: inherit; color: var(--text); background: var(--card); border: 1.5px solid var(--ink); border-right: 0; border-radius: 0; }
.search-btn { padding: .7rem 1.2rem; font: 600 .95rem var(--f-body); background: var(--ink); color: #fff; border: 1.5px solid var(--ink); cursor: pointer; border-radius: 0; }
.search-btn:hover { background: var(--accent); border-color: var(--accent); }

/* 404 */
.lost { text-align: left; }
.lost-code { font: 600 clamp(5rem, 16vw, 9rem)/1 var(--f-head); color: transparent; -webkit-text-stroke: 2px var(--ink); margin: 1rem 0 0; }

/* Комментарии */
.notes { background: var(--card); border: 1px solid rgba(30, 58, 76, .3); padding: 1.3rem 1.2rem 1.6rem; margin-bottom: 2rem; }
.notes-title { margin-top: 0; text-transform: uppercase; font-size: 1.4rem; }
.notes-list, .notes-list .children { list-style: none; margin: 0; padding: 0; }
.notes-list .children { padding-left: 1.4rem; border-left: 2px solid var(--kalka); }
.note-body { padding: 1rem 0; border-bottom: 1px dashed rgba(30, 58, 76, .3); }
.note-meta { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; margin-bottom: .5rem; }
.note-meta img { border-radius: 0; border: 1px solid rgba(30, 58, 76, .25); }
.note-author { font-weight: 700; color: var(--ink); }
.note-meta time { font-size: .82rem; color: var(--muted); }
.note-wait { font-size: .88rem; color: var(--accent-dark); }
.note-reply a { font-size: .85rem; font-weight: 600; }
.comment-respond { margin-top: 1.4rem; }
.comment-reply-title { font-size: 1.3rem; text-transform: uppercase; margin-top: 0; }
.comment-reply-title small { margin-left: .6rem; font-family: var(--f-body); text-transform: none; font-size: .8rem; }
.comment-form label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .3rem; color: var(--ink); }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
    width: 100%; padding: .65rem .8rem; font: inherit; color: var(--text);
    background: #fff; border: 1.5px solid rgba(30, 58, 76, .6); border-radius: 0;
}
.comment-form-cookies-consent { display: flex; gap: .5rem; align-items: flex-start; }
.comment-form-cookies-consent label { font-weight: 400; }
.form-note { font-size: .86rem; color: var(--muted); }
.req { color: var(--accent-dark); }
.comment-form .submit {
    background: var(--mint); color: var(--ink); border: 1px solid var(--mint-dark); border-radius: 0;
    padding: .7em 1.4em; font: 600 .95rem var(--f-body); cursor: pointer; box-shadow: 2px 2px 0 rgba(30, 58, 76, .22);
}
.comment-form .submit:hover { background: #93C2B8; transform: translate(-2px, -2px); box-shadow: 4px 4px 0 rgba(30, 58, 76, .3); }

/* ---------- Подвал ---------- */
.basement {
    background-color: var(--ink);
    background-image:
        linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px),
        linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
    background-size: 40px 40px, 40px 40px, 8px 8px, 8px 8px;
    color: var(--on-dark);
    margin-top: 2rem;
}
.basement-cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.6rem; padding: 2.6rem 0 2.2rem; }
.basement-col { min-width: 0; }
.basement .widget { margin-bottom: 1rem; font-size: .92rem; line-height: 1.6; color: var(--on-dark); }
.basement .widget-title { color: #fff; font-family: var(--f-body); font-weight: 700; font-size: 1.12rem; margin: 0 0 .7rem; }
.basement .widget p { color: var(--on-dark); }
.basement a { color: var(--on-dark); text-decoration: none; }
.basement a:hover { color: #FFC9A9; text-decoration: underline; }
.basement ul { list-style: none; margin: 0; padding: 0; }
.basement li { padding: .2rem 0 .2rem 1rem; position: relative; }
.basement li::before { content: "›"; position: absolute; left: 0; color: var(--mint); }
.basement .post-date { color: rgba(213, 225, 230, .7); font-size: .8rem; }
.basement-copy { border-top: 1px solid rgba(255, 255, 255, .15); padding: 1.3rem 0; font-size: .86rem; text-align: center; color: rgba(213, 225, 230, .85); background: rgba(0, 0, 0, .08); }

/* ---------- Cookie ---------- */
.cookie-note {
    position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90;
    max-width: 760px; margin-inline: auto;
    display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.4rem;
    background: var(--ink); color: #fff; border: 1px solid var(--mint);
    padding: 1rem 1.3rem; box-shadow: 0 10px 28px rgba(0, 0, 0, .25);
}
.cookie-note-text { margin: 0; flex: 1 1 260px; font-size: .9rem; line-height: 1.5; }
.cookie-note-btn { background: var(--mint); color: var(--ink); border: 0; border-radius: 0; padding: .6em 1.4em; font: 600 .92rem var(--f-body); cursor: pointer; }
.cookie-note-btn:hover { background: #fff; }

/* ---------- 600px+ ---------- */
@media (min-width: 600px) {
    .zones-labels { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .card-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .budget-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .budget-col { border-right: 1px solid rgba(30, 58, 76, .38); }
    .budget-col:nth-child(2n) { border-right: 0; }
    .budget-col:nth-child(-n+2) { border-bottom: 1px solid rgba(30, 58, 76, .38); }
    .budget-col:nth-child(n+3) { border-bottom: 0; }
    .check-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .kalka { padding: 2.3rem 2rem 1.8rem; }
    .entry, .notes { padding: 2rem 2.2rem 2.2rem; }
    .basement-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
    .basement-col { padding: 0 1.6rem; }
    .basement-col:first-child { padding-left: 0; }
    .basement-col + .basement-col { border-left: 1px solid rgba(255, 255, 255, .18); }
    .plan-notes li { font-size: 1.7rem; }
    .stamp-hero { width: 170px; }
}

/* ---------- 960px+ ---------- */
@media (min-width: 960px) {
    .nav-toggle { display: none; }
    .topnav { display: block; flex-basis: auto; }
    .topnav-list { flex-direction: row; gap: 2.1rem; padding: 0; }
    .topnav-list a { border-bottom: 0; padding: .3rem 0; }

    .front { width: 85%; max-width: 1360px; }

    .fs-hero { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 2.5rem; align-items: start; padding-top: 3rem; }
    .hero-copy { padding-top: 1.2rem; }
    .hero-drawing { grid-template-columns: minmax(0, 1fr) 150px; gap: 1.4rem; padding-bottom: 0; }
    .plan-notes { flex-direction: column; flex-wrap: nowrap; justify-content: space-around; padding: 1.8rem 0 5.5rem; gap: 1rem; }
    .plan-notes li { position: relative; }
    .plan-notes li::before { content: ""; position: absolute; left: -1.6rem; top: .55em; width: 1.2rem; height: 1.5px; background: var(--accent); }
    .stamp-hero { bottom: 0; right: -10px; }

    .zones-labels { grid-template-columns: 21.7% 21.3% 21.5% 20.5% minmax(0, 1fr); gap: 0; }
    .zone { border-left: 0; padding: 0 .8rem 0 .7rem; }
    .zone::after { content: ""; position: absolute; left: 0; top: 2.1em; bottom: -34px; width: 1px; background: var(--ink); opacity: .7; }
    .zone:first-child { padding-left: 0; }
    .zone:first-child::after { left: 35%; top: calc(100% + 2px); bottom: -34px; }
    .zones-plan { margin: 34px 0 0 5.7%; width: 87%; }

    .card-deck { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; align-items: start; }
    .card-deck .card:nth-child(1) { margin-top: .6rem; }
    .card-deck .card:nth-child(2) { margin-left: -.6rem; }
    .card-deck .card:nth-child(3) { margin-top: .9rem; margin-left: -.4rem; }

    .budget-wrap { grid-template-columns: minmax(0, 1fr) 58px; gap: 1.8rem; align-items: stretch; }
    .kalka { padding: 2.4rem 2.6rem 2.1rem; }
    .budget-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .budget-col, .budget-col:nth-child(-n+2), .budget-col:nth-child(n+3) { border-bottom: 0; border-right: 1px solid rgba(30, 58, 76, .38); }
    .budget-col:last-child { border-right: 0; }
    .ruler {
        height: auto; min-height: 260px; margin-top: -1.4rem;
        background-image:
            linear-gradient(rgba(255, 255, 255, .85) 0 1.5px, transparent 1.5px),
            linear-gradient(rgba(255, 255, 255, .85) 0 1.5px, transparent 1.5px);
        background-size: 30% 12px, 58% 60px;
        background-repeat: repeat-y;
    }

    .check-wrap { grid-template-columns: minmax(0, 1fr) 170px; gap: 1.6rem; }
    .check-list { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .9rem; }
    .check-item { flex-direction: column; gap: .55rem; padding: .95rem .9rem 1rem; }
    .seal { width: 170px; height: 170px; }

    .layout-single { width: 85%; margin-left: auto; margin-right: auto; }
    .layout-with-sidebar { grid-template-columns: minmax(0, 67fr) minmax(0, 27fr); column-gap: 6%; }
    .layout-with-sidebar .card-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .layout-single .card-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 599px) {
    .fs { padding: 2rem 0; }
    .dim, .dim-row span { font-size: .66rem; }
    .plan { padding: 24px 0 28px 24px; }
    .dim-top, .dim-row { left: 24px; }
    .dim-left { top: 24px; bottom: 28px; }
    .kalka { padding: 2rem 1.1rem 1.4rem; }
    .budget-col { padding: 0 .9rem .9rem; }
    .budget-head { margin: 0 -.9rem .8rem; }
    .check-item { padding: .95rem 1rem; }
    .cookie-note { padding: .9rem 1rem; }
}
