/* Notebook1 — страница записи блога. Повторяет макет «Notebook1 Запись блога». */
body.nb1-single, body.nb1-blog {
  margin: 0;
  background: #F2F4F7;
}
.nb1p {
  --bg: #F2F4F7; --surface: #EAEEF2; --text: #16202B;
  --divider: color-mix(in srgb, #2E557B 18%, transparent);
  --accent: #4E91D2; --a100: #EAF3FB; --a300: #B5D9FD; --a400: #94BCE3; --a500: #4E91D2;
  --a600: #2F78BE; --a700: #1B61A4; --a800: #2E557B; --a900: #1D2D3D;
  --n700: #5B6D82;
  --cta: #FDA018; --cta-h: #FEB852; --cta-a: #A46508; --cta-ink: #093B6B;
  --steel-glow: radial-gradient(60% 70% at 85% 20%, color-mix(in srgb, #5980a6 38%, transparent), transparent 70%), radial-gradient(40% 50% at 0% 100%, color-mix(in srgb, #416180 45%, transparent), transparent 70%);
  --head: "Fira Sans Extra Condensed", system-ui, sans-serif;
  --body: "IBM Plex Sans", system-ui, sans-serif;
  min-height: 100vh; background: var(--bg); color: var(--text);
  font-family: var(--body); font-size: 15px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; text-wrap: pretty;
}
.nb1p *, .nb1p *::before, .nb1p *::after { box-sizing: border-box; }
.nb1p a { color: var(--a700); }
.nb1p a:hover { color: var(--a800); }
.nb1p :is(a, button, input, summary):focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.nb1p ::selection { background: color-mix(in srgb, var(--accent) 25%, transparent); }

/* Карточка: тонкая рамка, без меток */
.nb1p .blueprint { position: relative; border: 1px solid var(--divider); border-radius: 0; transition: border-color .2s ease, background-color .2s ease; }
.nb1p a.blueprint:hover, .nb1p .nb1b-card:hover { border-color: var(--accent); }
.nb1p .corner { display: none; }

/* Шапка сайта */
.nb1p-top {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, #1D2D3D 94%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 0;
  box-shadow: 0 1px 0 color-mix(in srgb, #E8F0F8 10%, transparent), 0 6px 20px color-mix(in srgb, #1D2D3D 18%, transparent);
}
body.admin-bar .nb1p-top { top: 32px; }
@media (max-width: 782px) { body.admin-bar .nb1p-top { top: 46px; } }
.nb1p-top__in { max-width: 1280px; margin: 0 auto; padding: 12px clamp(20px, 5vw, 64px); display: flex; align-items: center; gap: clamp(12px, 2vw, 28px); }
.nb1p .nb1p-logo { flex: none; text-decoration: none; color: var(--text); font-family: var(--head); font-weight: 700; font-size: 26px; line-height: 1.2; text-transform: uppercase; }
.nb1p .nb1p-logo span { color: var(--accent); }
.nb1p-links { flex: 1 1 0; min-width: 0; display: flex; gap: 22px; overflow-x: auto; scrollbar-width: none; white-space: nowrap; font-size: 14px; font-weight: 500; padding: 4px 0; }
.nb1p-links::-webkit-scrollbar { display: none; }
.nb1p .nb1p-top .nb1p-logo { color: #F2F4F7; }
.nb1p .nb1p-top .nb1p-logo span { color: #94BCE3; }
.nb1p .nb1p-links a { color: #E8F0F8; text-decoration: none; }
.nb1p .nb1p-links a:hover, .nb1p .nb1p-links a.is-current { color: #94BCE3; }
.nb1p .nb1p-btn {
  flex: none; white-space: nowrap; display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--head); font-weight: 600; font-size: 15px; line-height: 1.2; text-decoration: none;
  padding: 10px 16px; background: var(--cta); color: var(--cta-ink); border-color: var(--cta);
}
.nb1p .nb1p-btn:hover { background: var(--cta-h); border-color: var(--cta-h); color: var(--cta-ink); }
.nb1p .nb1p-btn:active { background: var(--cta-a); border-color: var(--cta-a); color: #fff; }

/* Тёмная шапка записи */
.nb1p-hero {
  color: var(--bg); background-color: var(--a900);
  background-image: var(--steel-glow);
}
.nb1p-hero__in { max-width: 1040px; margin: 0 auto; padding: clamp(36px, 5vw, 72px) clamp(20px, 5vw, 64px) clamp(44px, 5vw, 72px); display: flex; flex-direction: column; gap: 22px; }
.nb1p-hero.has-img .nb1p-hero__in { padding-bottom: clamp(120px, 14vw, 180px); }
.nb1p-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--a300); }
.nb1p .nb1p-meta a { color: var(--a300); text-decoration: none; }
.nb1p .nb1p-meta a:hover { color: var(--bg); }
.nb1p-meta i { width: 6px; height: 6px; background: var(--a400); }
.nb1p-hero h1 {
  margin: 0; font-family: var(--head); font-weight: 700; font-size: clamp(44px, 6.4vw, 88px);
  line-height: 0.92; letter-spacing: -0.01em; text-transform: uppercase; color: var(--bg); text-wrap: balance;
}
.nb1p-excerpt { margin: 0; max-width: 64ch; font-size: clamp(17px, 1.6vw, 20px); line-height: 1.5; color: color-mix(in srgb, #E8F0F8 82%, transparent); }

/* Изображение записи */
.nb1p-img { max-width: 1200px; margin: calc(-1 * clamp(90px, 11vw, 140px)) auto 0; padding: 0 clamp(20px, 5vw, 64px); }
.nb1p-img figure { margin: 0; background: var(--surface); }
.nb1p-img img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }

/* Текст записи */
.nb1p-content {
  max-width: 860px; margin: 0 auto; padding: clamp(48px, 6vw, 80px) clamp(20px, 5vw, 32px) 0;
  display: flex; flex-direction: column; gap: 24px; font-size: 18px; line-height: 1.7;
}
.nb1p-content > * { margin: 0; }
.nb1p-content > p:first-child { font-size: 21px; line-height: 1.6; color: var(--text); }
.nb1p-content p { color: color-mix(in srgb, var(--text) 88%, transparent); }
.nb1p-content a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.nb1p-content strong { font-weight: 600; color: var(--text); }
.nb1p-content :is(h2, h3, h4) { font-family: var(--head); text-transform: uppercase; color: var(--text); text-wrap: balance; }
.nb1p-content h2 { margin-top: 24px; font-weight: 700; font-size: clamp(32px, 4vw, 44px); line-height: 1; letter-spacing: -0.005em; }
.nb1p-content h3 { margin-top: 16px; font-weight: 600; font-size: 28px; line-height: 1.1; }
.nb1p-content h4 { margin-top: 12px; font-weight: 600; font-size: 22px; line-height: 1.15; color: var(--a700); }

.nb1p-content ul { list-style: none; padding: 12px 0 0; border-top: 1px solid var(--divider); display: flex; flex-direction: column; gap: 12px; }
.nb1p-content ul > li { position: relative; padding-left: 24px; }
.nb1p-content ul > li::before { content: ""; position: absolute; left: 0; top: 11px; width: 8px; height: 8px; background: var(--accent); }
.nb1p-content ol { list-style: none; padding: 0; counter-reset: nb; display: flex; flex-direction: column; gap: 14px; }
.nb1p-content ol > li { position: relative; padding-left: 52px; counter-increment: nb; }
.nb1p-content ol > li::before { content: counter(nb, decimal-leading-zero); position: absolute; left: 0; top: 0.18em; font-family: var(--head); font-weight: 700; font-size: 28px; line-height: 1; color: var(--accent); }

.nb1p-content blockquote {
  position: relative; margin: 24px 0; padding: 72px 32px 32px; border: 1px solid var(--divider);
  font-family: var(--head); font-weight: 500; font-size: 28px; line-height: 1.2; color: var(--text);
}
.nb1p-content blockquote::before { content: "“"; position: absolute; left: 31px; top: 32px; font-family: var(--head); font-weight: 700; font-size: 64px; line-height: 0.5; color: var(--accent); }
.nb1p-content blockquote p { margin: 0; color: inherit; font-size: inherit; }
.nb1p-content blockquote p + p { margin-top: 12px; }
.nb1p-content blockquote cite { display: block; margin-top: 16px; font-family: var(--body); font-style: normal; font-weight: 400; font-size: 14px; text-transform: none; color: color-mix(in srgb, var(--text) 72%, transparent); }

.nb1p-content :is(figure, .wp-block-image) { margin: 16px 0; }
.nb1p-content img { display: block; max-width: 100%; height: auto; border: 1px solid var(--divider); }
.nb1p-content figcaption { margin-top: 12px; font-size: 14px; line-height: 1.5; text-align: left; color: color-mix(in srgb, var(--text) 72%, transparent); }
.nb1p-content :is(iframe, video) { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; border: 1px solid var(--divider); }

.nb1p-content .wp-block-table { overflow-x: auto; margin: 0; }
.nb1p-content table { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.5; }
.nb1p-content :is(th, thead td) { text-align: left; padding: 12px 16px 12px 0; border: 0; border-bottom: 1px solid var(--text); font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--a700); }
.nb1p-content td { padding: 14px 16px 14px 0; border: 0; border-bottom: 1px solid var(--divider); }
.nb1p-content :is(hr, .wp-block-separator) { border: 0; height: 1px; background: var(--divider); margin: 24px 0; }
.nb1p-content .wp-block-button__link { border-radius: 0; padding: 16px 26px; font-family: var(--head); font-weight: 600; font-size: 18px; background: var(--cta); color: var(--cta-ink); text-decoration: none; }
.nb1p-content .wp-block-button__link:hover { background: var(--cta-h); color: var(--cta-ink); }
.nb1p-content mark { background: var(--a100); color: var(--a800); padding: 0 3px; }
.nb1p-content code { font-size: 0.88em; padding: 2px 6px; background: var(--surface); }

.nb1p-content details { border-bottom: 1px solid var(--divider); padding: 16px 0; }
.nb1p-content details:first-of-type { border-top: 1px solid var(--divider); }
.nb1p-content summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; font-family: var(--head); font-weight: 600; font-size: 22px; line-height: 1.2; text-transform: uppercase; color: var(--text); }
.nb1p-content summary::-webkit-details-marker { display: none; }
.nb1p-content summary::after { content: "+"; flex: none; font-weight: 400; font-size: 28px; line-height: 0.8; color: var(--accent); }
.nb1p-content details[open] summary::after { content: "−"; }
.nb1p-content summary:hover { color: var(--a700); }
.nb1p-content details > :not(summary) { margin: 12px 0 0; font-size: 16px; }
.nb1p-content .wp-block-details + .wp-block-details { margin-top: -24px; border-top: 0; }

/* Блок «Нужен ремонт?» */
.nb1p .nb-cta {
  position: relative; margin: 32px 0 0; padding: 32px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
  border: 1px solid var(--divider); color: var(--bg); background-color: var(--a900);
  background-image: var(--steel-glow);
}
.nb1p .nb-cta__title { display: block; font-family: var(--head); font-weight: 700; font-size: 32px; line-height: 1; text-transform: uppercase; color: var(--bg); }
.nb1p .nb-cta__text { display: block; margin-top: 6px; font-size: 15px; line-height: 1.55; color: color-mix(in srgb, #E8F0F8 80%, transparent); }
.nb1p .nb-cta a.nb-cta__btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--head); font-weight: 600; font-size: 18px; line-height: 1.2; padding: 16px 26px; text-decoration: none;
  background: var(--cta); color: var(--cta-ink); border: 1px solid var(--cta);
}
.nb1p .nb-cta a.nb-cta__btn:hover { background: var(--cta-h); border-color: var(--cta-h); color: var(--cta-ink); }
.nb1p .nb-cta a.nb-cta__btn:active { background: var(--cta-a); border-color: var(--cta-a); color: #fff; }

/* Метки */
.nb1p-tags { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 8px; }
.nb1p .nb1p-tags a { display: inline-flex; align-items: center; padding: 3px 10px; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; line-height: 1.55; text-transform: uppercase; text-decoration: none; background: var(--a100); color: var(--a800); }
.nb1p .nb1p-tags a:hover { background: color-mix(in srgb, var(--accent) 20%, var(--a100)); }

/* Предыдущая / следующая */
.nb1p-pn { max-width: 1200px; margin: 0 auto; padding: clamp(56px, 7vw, 96px) clamp(20px, 5vw, 64px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 28px; }
.nb1p .nb1p-pn a { padding: 28px; display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: var(--text); }
.nb1p .nb1p-pn a.is-next { align-items: flex-end; text-align: right; }
.nb1p .nb1p-pn a:hover { background: color-mix(in srgb, var(--accent) 6%, transparent); color: var(--text); }
.nb1p-pn span { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--a700); }
.nb1p-pn b { font-family: var(--head); font-weight: 600; font-size: 26px; line-height: 1.1; text-transform: uppercase; }

.nb1p-comments { max-width: 860px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 32px) 64px; }

/* Подвал */
.nb1p-foot { background: var(--a900); color: color-mix(in srgb, #E8F0F8 78%, transparent); }
.nb1p-foot__in { max-width: 1280px; margin: 0 auto; padding: 40px clamp(20px, 5vw, 64px); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; font-size: 14px; }
.nb1p .nb1p-foot .nb1p-logo { font-size: 36px; line-height: 1; color: var(--bg); }
.nb1p .nb1p-foot .nb1p-logo span { color: var(--a400); }

/* ---------- Страница блога /blog/ ---------- */
.nb1p .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nb1b-hero .nb1p-hero__in { max-width: 1280px; }
.nb1b-hero h1 { font-size: clamp(44px, 6vw, 80px); }
.nb1b-search { margin-top: 8px; display: flex; max-width: 640px; border: 1px solid color-mix(in srgb, #E8F0F8 28%, transparent); background: color-mix(in srgb, #E8F0F8 6%, transparent); }
.nb1b-search:focus-within { border-color: var(--a400); }
.nb1b-search input {
  flex: 1 1 auto; min-width: 0; margin: 0; padding: 15px 18px; border: 0; border-radius: 0; background: transparent; box-shadow: none;
  font-family: var(--body); font-size: 17px; line-height: 1.4; color: var(--bg); -webkit-appearance: none; appearance: none;
}
.nb1b-search input::placeholder { color: color-mix(in srgb, #E8F0F8 55%, transparent); }
.nb1b-search input:focus, .nb1b-search input:focus-visible { outline: none; }
.nb1b-search input::-webkit-search-cancel-button { filter: invert(1); opacity: .6; }
.nb1b-search button {
  flex: none; margin: 0; padding: 0 26px; border: 0; border-radius: 0; cursor: pointer;
  font-family: var(--head); font-weight: 600; font-size: 18px; line-height: 1; background: var(--a500); color: var(--a900);
}
.nb1b-search button:hover { background: var(--a400); }
.nb1b-search button:active { background: var(--a300); }
.nb1p .nb1b-search button:focus-visible { outline: 2px solid var(--a300); outline-offset: 2px; }

.nb1b-cats { border-bottom: 1px solid var(--divider); }
.nb1b-cats__in { max-width: 1280px; margin: 0 auto; padding: 20px clamp(20px, 5vw, 64px); display: flex; flex-wrap: wrap; gap: 8px; }
.nb1p .nb1b-cats a {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border: 1px solid var(--divider); text-decoration: none;
  font-size: 13px; font-weight: 600; letter-spacing: 0.06em; line-height: 1.2; text-transform: uppercase; color: var(--text);
}
.nb1p .nb1b-cats a span { font-weight: 500; color: var(--n700); }
.nb1p .nb1b-cats a:hover { border-color: var(--accent); color: var(--a700); background: color-mix(in srgb, var(--accent) 6%, transparent); }
.nb1p .nb1b-cats a.is-current { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.nb1p .nb1b-cats a.is-current span { color: var(--a100); }

.nb1b-main { max-width: 1280px; margin: 0 auto; padding: clamp(36px, 5vw, 64px) clamp(20px, 5vw, 64px) clamp(56px, 7vw, 96px); display: flex; flex-direction: column; gap: 36px; }
.nb1b-result { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; padding-bottom: 16px; border-bottom: 1px solid var(--divider); font-size: 16px; }
.nb1b-result b { font-weight: 600; }
.nb1p .nb1b-result a { font-size: 14px; font-weight: 500; text-decoration: none; }

.nb1b-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 32px 28px; }
.nb1b-card { display: flex; flex-direction: column; min-width: 0; }
.nb1p .nb1b-card__img { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface); border-bottom: 1px solid var(--divider); }
.nb1b-card__img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.nb1b-card:hover .nb1b-card__img img { transform: scale(1.03); }
.nb1b-ph {
  position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 20px 22px; z-index: 1;
  font-family: var(--head); font-weight: 700; font-size: clamp(28px, 3vw, 40px); line-height: 0.95; text-transform: uppercase; color: var(--a300);
  background-color: var(--a900);
  background-image: var(--steel-glow);
}
.nb1b-card__body { flex: 1 1 auto; padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 12px; }
.nb1b-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--n700); }
.nb1p .nb1b-card__meta a { color: var(--a700); text-decoration: none; }
.nb1p .nb1b-card__meta a:hover { color: var(--a900); }
.nb1b-card__meta i { width: 5px; height: 5px; background: var(--a400); }
.nb1b-card h2 { margin: 0; font-family: var(--head); font-weight: 600; font-size: 26px; line-height: 1.05; text-transform: uppercase; text-wrap: balance; }
.nb1p .nb1b-card h2 a { color: var(--text); text-decoration: none; }
.nb1p .nb1b-card h2 a:hover { color: var(--a700); }
.nb1b-card p { margin: 0; font-size: 15px; line-height: 1.55; color: color-mix(in srgb, var(--text) 80%, transparent); }
.nb1p .nb1b-more { margin-top: auto; padding-top: 6px; align-self: flex-start; display: inline-flex; gap: 6px; font-family: var(--head); font-weight: 600; font-size: 17px; text-decoration: none; color: var(--a700); }
.nb1p .nb1b-more:hover { color: var(--a900); }
.nb1b-more span { transition: transform .2s ease; }
.nb1b-more:hover span { transform: translateX(4px); }

.nb1b-card.is-featured { grid-column: 1 / -1; }
@media (min-width: 900px) {
  .nb1b-card.is-featured { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); }
  .nb1b-card.is-featured .nb1b-card__img { aspect-ratio: auto; min-height: 380px; border-bottom: 0; border-right: 1px solid var(--divider); }
  .nb1b-card.is-featured .nb1b-card__body { padding: 36px; justify-content: center; gap: 16px; }
  .nb1b-card.is-featured h2 { font-size: clamp(34px, 3.4vw, 48px); line-height: 0.98; }
  .nb1b-card.is-featured p { font-size: 17px; }
  .nb1b-card.is-featured .nb1b-ph { font-size: clamp(48px, 5vw, 72px); padding: 32px; }
}

.nb1b-pages ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.nb1b-pages :is(a, span) {
  min-width: 44px; height: 44px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--divider); font-family: var(--head); font-weight: 600; font-size: 18px; text-decoration: none; color: var(--text);
}
.nb1p .nb1b-pages a:hover { border-color: var(--accent); color: var(--a700); background: color-mix(in srgb, var(--accent) 6%, transparent); }
.nb1b-pages .current { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.nb1b-pages .dots { border-color: transparent; }

.nb1b-empty { padding: clamp(32px, 5vw, 56px); display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.nb1b-empty b { font-family: var(--head); font-weight: 700; font-size: clamp(32px, 4vw, 44px); line-height: 1; text-transform: uppercase; }
.nb1b-empty p { margin: 0; max-width: 56ch; font-size: 17px; color: color-mix(in srgb, var(--text) 80%, transparent); }
.nb1b-empty div { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 6px; }
.nb1p .nb1b-empty .nb1p-btn { display: inline-flex; }
.nb1p .nb1b-link { font-family: var(--head); font-weight: 600; font-size: 17px; text-decoration: none; }

@media (max-width: 640px) {
  .nb1p .nb1p-btn { display: none; }
  .nb1b-search input { font-size: 16px; padding: 13px 14px; }
  .nb1b-search button { padding: 0 18px; }
  .nb1b-cats__in { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .nb1b-cats__in::-webkit-scrollbar { display: none; }
  .nb1p .nb1b-cats a { flex: none; }
  .nb1p-content { font-size: 17px; }
  .nb1p-content > p:first-child { font-size: 19px; }
  .nb1p-content blockquote { font-size: 23px; padding: 64px 22px 24px; }
  .nb1p-content blockquote::before { left: 21px; }
}
