/* ==========================================================================
   ТАЙГА — страница новости /novosti/<slug>/ (apps/news, news/news_page.html)
   Figma: taiga_brand-components NGl7bHthNDvxauwdpLY9nI, node 5968:12331
   («Новинка»), герои рубрик 5968:11930/11725/11534, 5947:10927, тёмный
   текст 6146:11539. Перенесено из сверенного прототипа design/news-detail.html.
   Переиспользует: .news-badge / .news-subscribe__form* (news.css),
   .arch-hero__btn* (architects.css), .arch-crumbs.
   ========================================================================== */

/* --- Герой (node 5968:12525): 628px, контент прижат к низу (pb 60) --- */
.nd-hero {
  position: relative;
  overflow: hidden;
  margin-top: 16px;
  height: 628px;
  padding: 60px calc((100% - 1200px) / 2);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: #C4C4C4; /* пока обложку не загрузили — серая заглушка, как в макете */
}

.nd-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

.nd-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180.91deg, rgba(0, 0, 0, 0) 1.925%, rgba(0, 0, 0, 0.3) 43.518%);
}

.nd-hero__content {
  position: relative;
  z-index: 1;
  width: 698px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 60px;
  color: #fff;
}

.nd-hero__text,
.nd-hero__head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.nd-hero__title {
  width: 846px; /* шире колонки 698 — так в макете */
  font-family: 'DINPro Cond Medium', 'Inter', Arial, sans-serif;
  font-weight: 500;
  font-size: 70px;
  line-height: 1.1;
  text-transform: uppercase;
  text-shadow: 0 4px 4px rgba(0, 0, 0, 0.05);
  text-box-trim: trim-both;
  text-box-edge: cap alphabetic;
}

.nd-hero__lead {
  width: 598px;
  font-family: 'DINPro Regular', 'Inter', Arial, sans-serif;
  font-size: 16px;
  line-height: 22px;
  text-shadow: 0 4px 4px rgba(0, 0, 0, 0.05);
}

.nd-hero__actions {
  display: flex;
  gap: 24px;
}

.nd-hero__actions .arch-hero__btn,
.nd-actions__btn--catalog {
  width: 195px;
  justify-content: center;
}

/* Тёмный текст — для афиш на белом фоне (Figma 6146:11539): без
   затемнения, заголовок #1D1E1C, описание серое, «Все новинки» зелёная,
   текст ближе к кнопкам (40 вместо 60) */
.nd-hero--dark::after {
  content: none;
}

.nd-hero--dark .nd-hero__content {
  gap: 40px;
  color: #1D1E1C;
}

.nd-hero--dark .nd-hero__lead {
  font-family: 'DINPro Medium', 'Inter', Arial, sans-serif;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.6);
}

.nd-hero--dark .arch-hero__btn--outline {
  background: #516B43;
  color: #fff;
}

/* --- Статья (node 5968:12360) --- */
.nd-article {
  margin-top: 100px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.nd-text {
  font-family: 'DINPro Regular', 'Inter', Arial, sans-serif;
  font-size: 16px;
  line-height: 22px;
  color: rgba(0, 0, 0, 0.6);
  text-box-trim: trim-both;
  text-box-edge: cap alphabetic;
}

/* Между абзацами в Figma пустая строка 22px. Остальное — то, что может
   прийти из редактора (и из старых новостей): списки, жирный, ссылки */
.nd-text > * + * {
  margin-top: 22px;
}

.nd-text ul,
.nd-text ol {
  padding-left: 22px;
}

.nd-text ul {
  list-style: disc;
}

.nd-text ol {
  list-style: decimal;
}

.nd-text strong,
.nd-text b {
  font-family: 'DINPro Medium', 'Inter', Arial, sans-serif;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.8);
}

.nd-text a {
  color: #E2480A;
  text-decoration: underline;
}

/* Фото — те же плитки, что в галерее проекта (apps/core/gallery.py):
   во всю ширину 1200×650; ряд 648px из двух колонок — высокое фото или
   стопка из двух 588×308 (gap 32), между колонками 24 */
.nd-photo-wide {
  width: 100%;
  height: 650px;
  object-fit: cover;
}

.nd-gallery {
  display: flex;
  gap: 24px;
  height: 648px;
}

/* Ширина колонки — ровно половина ряда, а не flex:1: одинокая колонка
   (одно высокое фото) должна остаться 588px, а не растянуться на 1200 */
.nd-gallery__tall,
.nd-gallery__col {
  flex: 0 0 calc((100% - 24px) / 2);
  min-width: 0;
}

.nd-gallery__tall {
  height: 100%;
  object-fit: cover;
}

.nd-gallery__col {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.nd-gallery__img {
  width: 100%;
  height: 308px;
  object-fit: cover;
}

/* Кнопки под статьёй (node 6145:11461) — прижаты вправо, gap 14.
   Контурные в Figma 52px (рамка поверх line-height 50), залитая — 50;
   выровнены по верху */
.nd-actions {
  margin-top: 20px; /* 60 в Figma = 40 общего gap + 20 */
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 14px;
}

/* Остальные рубрики (node 5968:11960): «Все новости» + «Смотреть проект», по 200px */
.nd-actions--other .arch-hero__btn {
  width: 200px;
  justify-content: center;
}

.nd-actions__btn--line {
  height: 52px;
  padding: 0 20px;
  border: 1px solid #E2480A;
  background: #fff;
  color: #E2480A;
}

/* --- Подписка (node 5968:12386): фон #FBF8F4, 588px, форма 576 --- */
.nd-subscribe {
  margin-top: 100px;
  min-height: 588px;
  padding: 70px 100px 68px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  background: #FBF8F4;
  text-align: center;
}

.nd-subscribe__head {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.nd-subscribe__eyebrow {
  font-family: 'DINPro Regular', 'Inter', Arial, sans-serif;
  font-size: 16px;
  line-height: 22px;
  color: #E2480A;
  text-transform: uppercase;
}

.nd-subscribe__title {
  font-family: 'DINPro Cond Regular', 'Inter', Arial, sans-serif;
  font-size: 70px;
  line-height: 1.1;
  color: #000;
  text-transform: uppercase;
}

.nd-subscribe__accent {
  color: #E2480A;
}

.nd-subscribe__desc {
  font-family: 'DINPro Regular', 'Inter', Arial, sans-serif;
  font-size: 20px;
  line-height: 1.1;
  color: rgba(0, 0, 0, 0.5);
}

.nd-subscribe + .footer {
  margin-top: 0;
}

/* Светлая форма: те же поля, что на оранжевой карточке «Новостей»,
   но цвета инвертированы и шире (576 / согласие 556) */
.news-subscribe__form--light {
  width: 576px;
  text-align: left;
}

.news-subscribe__form--light .news-subscribe__input {
  border-color: #E2480A;
  color: #E2480A;
}

.news-subscribe__form--light .news-subscribe__input::placeholder {
  color: #E2480A;
}

.news-subscribe__form--light .news-subscribe__btn {
  background: #E2480A;
  color: #fff;
}

.news-subscribe__form--light .news-subscribe__consent {
  width: 556px;
}

.news-subscribe__form--light .news-subscribe__box {
  border-color: rgba(0, 0, 0, 0.8);
}

.news-subscribe__form--light .news-subscribe__check:checked + .news-subscribe__box::after {
  border-color: #E2480A;
}

.news-subscribe__form--light .news-subscribe__check:focus-visible + .news-subscribe__box {
  outline-color: #E2480A;
}

.news-subscribe__form--light .news-subscribe__consent-text {
  width: 502px;
  color: rgba(0, 0, 0, 0.8);
}

.news-subscribe__form--light .news-subscribe__status {
  color: rgba(0, 0, 0, 0.8);
}
