/* ============================================================
   news-article.css
   Страница одной новости: breadcrumb, header, hero, body, серия
   фото, lightbox-thumbnails, prev/next навигация
   ------------------------------------------------------------
   Зависит от: photo-filter.css (переменные --photo-filter-*)
   Используется на: /news/*.html (77 страниц)
   ============================================================ */

/* ============ ARTICLE CONTAINER ============ */
.article {
  background: #FAF7EE;
  color: #1A1F2E;
  padding:
    clamp(5rem, 10vh, 8rem)
    clamp(1.25rem, 5vw, 3rem)
    clamp(4rem, 8vh, 6rem);
}

.article__container {
  max-width: 900px;
  margin: 0 auto;
}

/* ============ BREADCRUMB ============ */
.article__breadcrumb {
  font-family: "Inter", sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6B7280;
  margin: 0 0 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.article__breadcrumb a {
  color: #1B3A5C;
  text-decoration: none;
  transition: color 250ms ease;
}

.article__breadcrumb a:hover {
  color: #B8860B;
}

.article__breadcrumb-sep {
  color: rgba(27, 58, 92, 0.4);
  font-weight: 400;
}

/* ============ HEADER ============ */
.article__header {
  margin-bottom: clamp(2.5rem, 5vh, 4rem);
  padding-bottom: clamp(1.5rem, 3vh, 2rem);
  border-bottom: 1px solid rgba(27, 58, 92, 0.14);
}

.article__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.article__category {
  font-family: "Inter", sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #7A1E2E;
  text-decoration: none;
  padding: 6px 12px;
  border: 1px solid rgba(122, 30, 46, 0.24);
  transition: all 300ms ease;
}

.article__category:hover {
  background: #7A1E2E;
  color: #FAF7EE;
}

.article__date {
  font-family: "Inter", sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6B7280;
}

.article__title {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 300;
  font-style: italic;
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #1B3A5C;
  margin: 0 0 20px;
}

.article__subtitle {
  font-family: "Literata", Georgia, serif;
  font-style: italic;
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.5;
  color: #3D4454;
  margin: 0;
  max-width: 720px;
}

/* ============ HERO IMAGE ============ */
.article__hero {
  margin: 0 0 clamp(2rem, 5vh, 3.5rem);
}

.article__hero-media {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #1B3A5C;
  border-radius: 2px;
}

.article__hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  /* filter/transition — в photo-filter.css */
}

.article__caption,
.article__hero-caption {
  font-family: "Literata", Georgia, serif;
  font-style: italic;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(27, 58, 92, 0.62);
  margin: 12px 0 0;
  max-width: 720px;
}

/* ============ BODY ============ */
.article__body {
  max-width: 720px;
  margin: 0 auto;
  font-family: "Literata", Georgia, serif;
  font-size: clamp(1rem, 1.2vw, 1.125rem);
  line-height: 1.7;
  color: #1A1F2E;
}

.article__body > * + * {
  margin-top: 1.2em;
}

.article__body p {
  margin: 0 0 1.2em;
}

.article__body p:last-child {
  margin-bottom: 0;
}

.article__body h2 {
  font-family: "Fraunces", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.4rem, 2.4vw, 1.875rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: #1B3A5C;
  margin: 2.4em 0 0.7em;
}

.article__body h3 {
  font-family: "Fraunces", Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.15rem, 1.6vw, 1.375rem);
  line-height: 1.3;
  color: #1B3A5C;
  margin: 2em 0 0.6em;
}

.article__body a {
  color: #B8860B;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 250ms ease;
}

.article__body a:hover {
  color: #7A1E2E;
  text-decoration-color: #7A1E2E;
}

.article__body strong {
  font-weight: 600;
  color: #1B3A5C;
}

.article__body em {
  font-style: italic;
}

.article__body blockquote {
  border-left: 2px solid #B8860B;
  padding: 8px 0 8px 24px;
  margin: 2em 0;
  font-family: "Fraunces", Georgia, serif;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.15rem, 1.8vw, 1.375rem);
  line-height: 1.4;
  color: #1B3A5C;
}

.article__body ul,
.article__body ol {
  padding-left: 1.4em;
  margin: 1.2em 0;
}

.article__body li + li {
  margin-top: 0.4em;
}

.article__body hr {
  border: 0;
  border-top: 1px solid rgba(27, 58, 92, 0.14);
  margin: 2.4em 0;
}

/* ============ INLINE FIGURE ============ */
.article__body .figure--inline,
.article__inline {
  margin: clamp(2rem, 4vh, 3rem) auto;
  max-width: 720px;
}

.article__inline-media {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #1B3A5C;
  border-radius: 2px;
}

.article__inline img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ============ SERIES (мульти-фото после текста) ============ */
.article__series {
  max-width: 1200px;
  margin: clamp(3rem, 6vh, 5rem) auto 0;
  padding-top: clamp(2rem, 4vh, 3rem);
  border-top: 1px solid rgba(27, 58, 92, 0.14);
}

.article__series-title {
  font-family: "Fraunces", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  line-height: 1.2;
  color: #1B3A5C;
  margin: 0 0 24px;
}

.article__series-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}

.article__series-grid a {
  display: block;
  aspect-ratio: 1 / 1;           /* квадраты компактнее для серии */
  overflow: hidden;
  background: #1B3A5C;
  cursor: zoom-in;
  position: relative;
}

.article__series-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition:
    filter 500ms cubic-bezier(.2, .7, .2, 1),
    transform 700ms cubic-bezier(.2, .7, .2, 1);
  /* базовый filter берётся из photo-filter.css через селектор
     .article__series-grid img */
}

@media (hover: hover) {
  .article__series-grid a:hover img {
    transform: scale(1.04);
  }

  .article__series-grid a:focus-visible {
    outline: 2px solid #B8860B;
    outline-offset: 2px;
  }
}

/* ============ PREV / NEXT NAV ============ */
.article__nav {
  max-width: 1200px;
  margin: clamp(3rem, 6vh, 5rem) auto 0;
  padding-top: clamp(2rem, 4vh, 3rem);
  border-top: 1px solid rgba(27, 58, 92, 0.14);
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 24px;
}

.article__nav-link {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-decoration: none;
  color: inherit;
  flex: 1 1 0;
  min-width: 0;
  padding: 16px 0;
  transition: color 300ms ease;
}

.article__nav-link--next {
  text-align: right;
  align-items: flex-end;
}

.article__nav-direction {
  font-family: "Inter", sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #7A1E2E;
}

.article__nav-label {
  font-family: "Fraunces", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  line-height: 1.35;
  color: #1B3A5C;
  transition: color 300ms ease;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

@media (hover: hover) {
  .article__nav-link:hover .article__nav-label {
    color: #B8860B;
  }
}

/* ============ MOBILE ============ */
@media (max-width: 640px) {
  .article__series-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .article__nav {
    flex-direction: column;
    gap: 8px;
  }

  .article__nav-link--next {
    text-align: left;
    align-items: flex-start;
    border-top: 1px solid rgba(27, 58, 92, 0.1);
    padding-top: 16px;
  }
}

/* ============ REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {
  .article__series-grid img,
  .article__nav-link,
  .article__nav-label {
    transition: none !important;
    transform: none !important;
  }
}

/* News language note (visible only on RU/EN; UZ has empty data-attr) */
.news-lang-note {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--ink-muted, #6B7280);
  font-style: italic;
  padding: 12px 0;
  border-bottom: 1px solid rgba(27, 58, 92, 0.1);
  margin: 16px 0 24px;
}
.news-lang-note:empty { display: none; }
