/* Шаблон статьи блога (.nwart-*) и лента новостей (.nwbl-*).
   Палитра сайта: терракота #A9633A, чернила #101828, линии #E4E7EC.
   Грузится вместе с cards.css (карточки .nwhb-*) и product.css (.nw-pp-* + форма «Poradit»). */

/* ---------- каркас страницы статьи ---------- */
.nwart { display: block; }
.nwart .nw-crumbs { margin-bottom: 14px; }

/* Герой = одна карточка: заголовок + перекс, под ними фото, данные и шеринг ПОВЕРХ фото */
.nwart-hero {
  background: #fff; border: 1px solid #E4E7EC; border-radius: 16px; overflow: hidden;
  margin-bottom: 18px; box-shadow: 0 8px 24px rgba(16, 24, 40, .05);
}
.nwart-hero-txt { padding: 30px 34px 24px; }
/* width:100% обязательно: у блока с aspect-ratio и max-height браузер иначе
   считает ширину из соотношения, и фото не доходит до краёв карточки */
.nwart-hero-img { position: relative; display: block; width: 100%; aspect-ratio: 16 / 7;
  max-height: 520px; background: #101828; }
.nwart-hero-img > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  object-position: center 38%; } /* полосу режем чуть выше центра — у фото конструкций там главное */
/* узкий/мелкий снимок: показываем целиком поверх размытой копии, ничего не режем */
.nwart-hero-bg { display: none; }
.nwart-hero-img.is-fit .nwart-hero-bg {
  display: block; inset: -40px; width: calc(100% + 80px); height: calc(100% + 80px);
  object-fit: cover; object-position: center; filter: blur(26px) brightness(.72);
}
.nwart-hero-img.is-fit .nwart-hero-main { object-fit: contain; object-position: center; }
.nwart-hero-img--ph { background: linear-gradient(135deg, #101828 0%, #33241C 55%, #A9633A 100%); }
.nwart-hero-img--ph::after {
  content: 'Durchdacht'; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font: 800 26px Inter, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .35);
}
.nwart-hero-ov {
  position: absolute; inset: auto 0 0 0; padding: 46px 26px 18px; display: flex;
  align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  background: linear-gradient(to top, rgba(16, 24, 40, .82) 0%, rgba(16, 24, 40, .55) 45%, rgba(16, 24, 40, 0) 100%);
}
.nwart-hero-meta { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; color: #fff; font: 600 12.5px Inter, sans-serif; }
.nwart-hero-meta .nwart-dot { background: rgba(255, 255, 255, .5); }
.nwart-hero-share { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.nwart-hero-share .nwart-sh-lbl { color: rgba(255, 255, 255, .75); }

.nwart-head {
  background: #fff; border: 1px solid #E4E7EC; border-radius: 16px;
  padding: 30px 34px; margin-bottom: 18px; box-shadow: 0 8px 24px rgba(16, 24, 40, .05);
}
.nwart-chiprow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.nwart-chip {
  display: inline-flex; align-items: center; height: 26px; padding: 0 12px; border-radius: 999px;
  background: #FBF4EC; color: #A9633A; font: 700 11px Inter, sans-serif;
  letter-spacing: .1em; text-transform: uppercase;
}
.nwart-chip--on { background: rgba(255, 255, 255, .92); color: #A9633A; }  /* чип поверх фото */
.nwart-chip--on:hover { background: #fff; }
.nwart-chip:hover { background: #F5EBE0; text-decoration: none; }
.nwart-dot { width: 3px; height: 3px; border-radius: 50%; background: #D0D5DD; }
.nwart-mini { font: 600 12px Inter, sans-serif; color: #667085; }

.nwart-h1 { font: 800 38px/1.18 Inter, sans-serif; letter-spacing: -.03em; color: #101828; margin: 0 0 14px; text-wrap: balance; }
.nwart-perex { font: 400 18px/1.65 Inter, sans-serif; color: #475467; margin: 0 0 20px; max-width: 780px; text-wrap: pretty; }

.nwart-byline { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding-top: 18px; border-top: 1px solid #EEF0F3; }
.nwart-ava {
  flex: none; width: 38px; height: 38px; border-radius: 50%; background: #F5EBE0; color: #A9633A;
  display: flex; align-items: center; justify-content: center; font: 800 13px Inter, sans-serif;
}
.nwart-by-name { font: 700 13px Inter, sans-serif; color: #101828; }
.nwart-by-sub { font: 500 12px Inter, sans-serif; color: #667085; }
.nwart-by-share { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.nwart-by-share .nwart-sh-lbl { font: 600 12px Inter, sans-serif; color: #667085; margin-right: 2px; }

/* ---------- featured image ---------- */
.nwart-figure { margin: 0 0 18px; }
.nwart-figimg {
  position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden;
  border-radius: 16px; border: 1px solid #E4E7EC; background: #F4F6F8;
  box-shadow: 0 12px 30px rgba(16, 24, 40, .08);
}
.nwart-figimg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.nwart-figimg--ph { background: linear-gradient(135deg, #F5EBE0 0%, #FBF4EC 55%, #F4F6F8 100%); }
.nwart-figimg--ph span {
  position: absolute; inset: auto 0 0 0; top: 50%; transform: translateY(-50%); text-align: center;
  font: 800 20px Inter, sans-serif; color: #C9A88C; letter-spacing: .12em; text-transform: uppercase;
}
.nwart-figcap { margin-top: 9px; font: 500 12.5px Inter, sans-serif; color: #98A2B3; text-align: center; }

/* ---------- сетка: тело + сайдбар ---------- */
.nwart-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 22px; align-items: start; }
.nwart-body {
  background: #fff; border: 1px solid #E4E7EC; border-radius: 16px;
  padding: 30px 34px; box-shadow: 0 8px 24px rgba(16, 24, 40, .05);
}
.nwart-body .nw-prose > *:first-child { margin-top: 0; }
.nwart-body .nw-prose h2 { scroll-margin-top: 90px; }
.nwart-body .nw-prose h3 { scroll-margin-top: 90px; }
.nwart-body .nw-prose p { font-size: 16.5px; line-height: 1.75; }
.nwart-body .nw-prose > p:first-of-type { font-size: 17.5px; color: #344054; }

.nwart-side { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 18px; }

/* оглавление */
.nwart-toc { background: #fff; border: 1px solid #E4E7EC; border-radius: 14px; padding: 16px 18px; }
.nwart-toc-t { font: 800 12px Inter, sans-serif; letter-spacing: .1em; text-transform: uppercase; color: #101828; }
.nwart-toclist { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.nwart-toclist a {
  display: block; padding: 7px 10px; border-radius: 8px; border-left: 2px solid #EEF0F3;
  font: 500 13px/1.45 Inter, sans-serif; color: #475467;
}
.nwart-toclist a:hover { background: #FBF4EC; color: #A9633A; border-left-color: #E2B48C; text-decoration: none; }

/* вертикальный шеринг */
.nwart-sidebox { background: #fff; border: 1px solid #E4E7EC; border-radius: 14px; padding: 16px 18px; }
.nwart-sidebox-t { font: 800 12px Inter, sans-serif; letter-spacing: .1em; text-transform: uppercase; color: #101828; margin-bottom: 12px; }

/* кнопки шеринга */
.nwart-shrow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.nwart-sh {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 38px; min-width: 38px; padding: 0 10px; border-radius: 10px;
  border: 1px solid #E4E7EC; background: #fff; color: #475467; cursor: pointer;
  font: 700 12.5px Inter, sans-serif; transition: border-color .15s ease, background .15s ease, color .15s ease, transform .15s ease;
}
.nwart-sh svg { flex: none; }
.nwart-sh:hover { border-color: #A9633A; color: #A9633A; background: #FBF4EC; text-decoration: none; transform: translateY(-1px); }
.nwart-sh--fb:hover { border-color: #1877F2; color: #1877F2; background: #EFF5FF; }
.nwart-sh--x:hover { border-color: #101828; color: #101828; background: #F4F6F8; }
.nwart-sh--in:hover { border-color: #0A66C2; color: #0A66C2; background: #EFF5FF; }
.nwart-sh--wa:hover { border-color: #25D366; color: #128C4A; background: #EAFBF1; }
.nwart-sh.is-copied { border-color: #12805C; color: #12805C; background: #EAFBF1; }
/* стеклянный вариант кнопок поверх фото (объявлен ПОСЛЕ фирменных hover'ов — перебивает их) */
.nwart-sh--on { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .34); color: #fff; }
.nwart-sh--on:hover { background: #fff; border-color: #fff; color: #101828; transform: translateY(-1px); }
.nwart-sh--on.is-copied { background: #12805C; border-color: #12805C; color: #fff; }
.nwart-side .nwart-shrow .nwart-sh { flex: 1 1 38px; }

/* CTA-карточка в сайдбаре */
.nwart-cta { background: #101828; border-radius: 14px; padding: 20px; color: #fff; }
.nwart-cta-t { font: 800 16px/1.3 Inter, sans-serif; margin-bottom: 8px; }
.nwart-cta-x { font: 400 13px/1.6 Inter, sans-serif; color: #98A2B3; margin-bottom: 14px; }
.nwart-cta-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px; height: 44px; border-radius: 10px;
  background: #A9633A; color: #fff; font: 700 13.5px Inter, sans-serif; margin-bottom: 8px;
}
.nwart-cta-btn:hover { background: #8A4E28; text-decoration: none; }
.nwart-cta-tel {
  display: flex; align-items: center; justify-content: center; gap: 8px; height: 44px; border-radius: 10px;
  border: 1px solid #344054; color: #fff; font: 700 13.5px Inter, sans-serif;
}
.nwart-cta-tel:hover { border-color: #A9633A; text-decoration: none; }
.nwart-cta-tel .nw-wa-ico, .nwart-cta-tel .nw-tel-ico { flex: none; }

/* ---------- полоса шеринга под текстом ---------- */
.nwart-sharebar {
  margin-top: 22px; background: #fff; border: 1px solid #E4E7EC; border-radius: 16px;
  padding: 20px 24px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  box-shadow: 0 8px 24px rgba(16, 24, 40, .05);
}
.nwart-sharebar-t { font: 800 16px Inter, sans-serif; color: #101828; }
.nwart-sharebar-x { font: 400 13px Inter, sans-serif; color: #667085; margin-top: 3px; }
.nwart-sharebar .nwart-shrow { margin-left: auto; }

/* ---------- предыдущая / следующая ---------- */
.nwart-pn { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.nwart-pn-i {
  display: flex; flex-direction: column; gap: 6px; background: #fff; border: 1px solid #E4E7EC;
  border-radius: 14px; padding: 16px 18px; transition: border-color .15s ease, box-shadow .15s ease;
}
.nwart-pn-i:hover { border-color: #A9633A; box-shadow: 0 10px 26px rgba(16, 24, 40, .08); text-decoration: none; }
.nwart-pn-l { font: 700 11px Inter, sans-serif; letter-spacing: .1em; text-transform: uppercase; color: #98A2B3; }
.nwart-pn-t { font: 700 14px/1.4 Inter, sans-serif; color: #101828; }
.nwart-pn-i--next { text-align: right; }

/* ---------- похожие статьи ---------- */
.nwart-rel { margin-top: 30px; }
.nwart-relhead { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.nwart-relhead h2 { font: 800 24px Inter, sans-serif; letter-spacing: -.03em; margin: 0; }
.nwart-relhead a { font: 700 13px Inter, sans-serif; color: #A9633A; }

/* ---------- лента новостей ---------- */
.nwbl-head { margin-bottom: 20px; }
.nwbl-head h1 { font: 800 34px/1.2 Inter, sans-serif; letter-spacing: -.03em; margin: 0 0 8px; }
.nwbl-head p { font: 400 15px/1.6 Inter, sans-serif; color: #667085; max-width: 720px; margin: 0; }

.nwbl-lead {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 0;
  background: #fff; border: 1px solid #E4E7EC; border-radius: 16px; overflow: hidden;
  margin-bottom: 24px; box-shadow: 0 8px 24px rgba(16, 24, 40, .05);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.nwbl-lead:hover { border-color: #A9633A; box-shadow: 0 16px 38px rgba(16, 24, 40, .10); text-decoration: none; }
.nwbl-lead-img { position: relative; min-height: 280px; background: #F4F6F8; }
.nwbl-lead-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.nwbl-lead-b { padding: 30px 34px; display: flex; flex-direction: column; justify-content: center; }
.nwbl-lead-t { font: 800 27px/1.25 Inter, sans-serif; letter-spacing: -.02em; color: #101828; margin: 12px 0 10px; text-wrap: balance; }
.nwbl-lead-x { font: 400 14.5px/1.65 Inter, sans-serif; color: #667085; margin-bottom: 16px; }
.nwbl-lead-more { font: 700 13px Inter, sans-serif; color: #A9633A; }

.nwbl-secttl { font: 800 20px Inter, sans-serif; letter-spacing: -.02em; margin: 0 0 14px; }
.nwbl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }

/* мета-строка карточки: дата + время чтения */
.nwbl-meta, .nwart-relmeta { display: flex; align-items: center; gap: 8px; font: 600 11.5px Inter, sans-serif; color: #98A2B3; }

@media (max-width: 1080px) {
  .nwart-grid { grid-template-columns: minmax(0, 1fr); }
  .nwart-side { position: static; flex-direction: column; }
  .nwart-cta { display: none; }
}
@media (max-width: 900px) {
  .nwbl-lead { grid-template-columns: minmax(0, 1fr); }
  .nwbl-lead-img { min-height: 210px; }
  .nwbl-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 700px) {
  .nwart-head, .nwart-body { padding: 20px 18px; border-radius: 12px; }
  .nwart-hero-txt { padding: 20px 18px 16px; }
  .nwart-hero-img { aspect-ratio: 4 / 3; }
  .nwart-hero-ov { padding: 40px 16px 14px; align-items: flex-start; flex-direction: column; gap: 10px; }
  .nwart-hero-share { margin-left: 0; }
  .nwart-hero-share .nwart-sh-lbl { display: none; }
  .nwart-h1 { font-size: 27px; }
  .nwart-perex { font-size: 16px; }
  .nwart-by-share { margin-left: 0; width: 100%; }
  .nwart-sharebar { padding: 16px 18px; }
  .nwart-sharebar .nwart-shrow { margin-left: 0; }
  .nwart-pn { grid-template-columns: minmax(0, 1fr); }
  .nwart-pn-i--next { text-align: left; }
  .nwbl-lead-b { padding: 20px 18px; }
  .nwbl-lead-t { font-size: 21px; }
  .nwbl-head h1 { font-size: 26px; }
}
