/* Self-hosted fonts — subset (Latin + Cyrillic), replaces Google Fonts. */
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 300; font-display: swap; src: url('/assets/fonts/manrope-300.woff2') format('woff2'); }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/manrope-400.woff2') format('woff2'); }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 500; font-display: swap; src: url('/assets/fonts/manrope-500.woff2') format('woff2'); }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 600; font-display: swap; src: url('/assets/fonts/manrope-600.woff2') format('woff2'); }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 700; font-display: swap; src: url('/assets/fonts/manrope-700.woff2') format('woff2'); }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 800; font-display: swap; src: url('/assets/fonts/manrope-800.woff2') format('woff2'); }

:root {
  --bg-cream: #f4f4f2;
  --bg-white: #ffffff;
  --bg-paper: #ececea;
  --bg-dark: #1a1a1a;
  --bg-darker: #0f0f0f;

  --text-dark: #1a1a1a;
  --text-body: #3a3530;
  --text-muted: #8a847a;
  --text-light: #f5f3ef;

  --accent: #b8956a;
  --accent-soft: #c9a86a;
  --accent-bg: rgba(184, 149, 106, 0.08);

  --border: rgba(26, 26, 26, 0.08);

  --serif: 'Manrope', -apple-system, sans-serif;
  --sans: 'Manrope', -apple-system, sans-serif;

  --shadow-card: 0 1px 3px rgba(26,26,26,0.04), 0 4px 12px rgba(26,26,26,0.04);
  --shadow-hover: 0 8px 32px rgba(26,26,26,0.08);

  --read: 740px; /* ширина читаемой колонки */
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  font-family: var(--sans);
  background: var(--bg-cream);
  color: var(--text-dark);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, picture, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 2000;
  padding: 10px 14px; background: var(--text-dark); color: var(--text-light);
  border-radius: 8px; text-decoration: none; transform: translateY(-160%); transition: transform .2s ease;
}
.skip-link:focus { transform: translateY(0); }

/* ===================== HEADER (как на основном сайте) ===================== */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; }
.topbar {
  background: var(--bg-dark); color: rgba(245,243,239,.78);
  font-size: 12px; padding: 8px 48px; border-bottom: 1px solid rgba(245,243,239,.06);
}
.topbar-inner { max-width: 1280px; margin: 0 auto; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.topbar-item { display: inline-flex; align-items: center; gap: 7px; color: inherit; text-decoration: none; transition: color .2s; }
.topbar-item:hover { color: var(--accent); }
.topbar-icon { display: inline-flex; align-items: center; width: 14px; height: 14px; color: var(--accent); }
.topbar-icon svg { width: 100%; height: 100%; }
.topbar-address { margin-right: auto; }
.topbar-divider { width: 1px; height: 14px; background: rgba(245,243,239,.12); }

.nav {
  position: relative; padding: 16px 48px;
  background: rgba(244,244,242,.94);
  -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  transition: background .3s ease, border-color .3s ease;
}
.nav-logo { display: inline-flex; align-items: center; text-decoration: none; }
.nav-logo img { height: 30px; width: auto; display: block; filter: brightness(0); transition: filter .3s ease; }
.site-header:not(.scrolled) .nav-logo img { filter: none; }
.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a { color: var(--text-body); text-decoration: none; font-size: 13px; font-weight: 400; transition: color .2s; }
.nav-links a:hover { color: var(--accent); }
.nav-right { display: flex; align-items: center; gap: 18px; }
.nav-phone { font-size: 14px; font-weight: 600; color: var(--text-dark); text-decoration: none; white-space: nowrap; }
.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--bg-dark); color: var(--text-light);
  font-size: 13px; font-weight: 600; letter-spacing: .02em;
  padding: 11px 18px; border-radius: 100px; text-decoration: none;
  transition: background .2s, transform .2s; white-space: nowrap;
}
.nav-cta:hover { background: var(--accent); transform: translateY(-1px); }
.nav-cta-arrow { font-size: 14px; line-height: 1; transition: transform .2s; }
.nav-cta:hover .nav-cta-arrow { transform: translateX(2px); }
.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--border); border-radius: 50%;
  background: var(--bg-white); align-items: center; justify-content: center; flex-direction: column; gap: 4px; cursor: pointer;
}
.nav-toggle span { display: block; width: 17px; height: 2px; border-radius: 2px; background: var(--text-dark); transition: transform .2s ease, opacity .2s ease; }
.nav.is-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* прозрачная шапка над тёмным героем */
.site-header:not(.scrolled) { background: linear-gradient(to bottom, rgba(18,16,13,.62) 0%, rgba(18,16,13,.20) 58%, rgba(18,16,13,0) 100%); }
.site-header:not(.scrolled) .topbar { background: transparent; border-bottom-color: rgba(245,243,239,.14); }
.site-header:not(.scrolled) .nav { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; border-bottom-color: transparent; }
.site-header:not(.scrolled) .nav-links a { color: rgba(245,243,239,.86); }
.site-header:not(.scrolled) .nav-phone { color: var(--text-light); }
.site-header:not(.scrolled) .nav-toggle { background: rgba(245,243,239,.12); border-color: rgba(245,243,239,.4); }
.site-header:not(.scrolled) .nav-toggle span { background: var(--text-light); }

/* прогресс-бар чтения */
.read-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--accent); z-index: 1100; transition: width .1s linear; }

/* ===================== ARTICLE HERO ===================== */
.article-hero {
  position: relative; padding: 168px 48px 112px;
  background: var(--bg-darker);
  color: var(--text-light);
  overflow: hidden;
}
.article-hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center;
  opacity: .6;
}
.article-hero-video {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity .9s ease; pointer-events: none;
}
.article-hero-video.is-ready { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .article-hero-video { display: none; } }
.article-hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(15,12,10,.55) 0%, rgba(15,12,10,.78) 100%);
}
.article-hero-inner { position: relative; z-index: 2; max-width: var(--read); margin: 0 auto; }
.breadcrumbs { font-size: 12px; color: rgba(245,243,239,.6); margin-bottom: 22px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.breadcrumbs a { color: rgba(245,243,239,.6); text-decoration: none; transition: color .2s; }
.breadcrumbs a:hover { color: var(--accent-soft); }
.breadcrumbs .sep { opacity: .4; }
.article-cat {
  display: inline-block; font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--accent-soft); font-weight: 700; margin-bottom: 18px;
}
.article-hero h1 {
  font-family: var(--serif); font-weight: 700; font-size: 44px; line-height: 1.12; letter-spacing: -.01em;
  margin-bottom: 22px;
}
.article-hero h1 em { font-style: normal; color: var(--accent-soft); }
.article-sub { font-size: 18px; line-height: 1.55; color: rgba(245,243,239,.75); max-width: 640px; }

.article-meta {
  display: flex; align-items: center; gap: 14px; margin-top: 30px; flex-wrap: wrap;
}
.meta-author { display: inline-flex; align-items: center; gap: 11px; }
.meta-avatar { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(245,243,239,.18); background: var(--bg-paper); }
/* Имя и должность — в две строки: инлайновые span сливались в одну и наезжали. */
.meta-person { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.meta-name { font-size: 14px; font-weight: 600; color: var(--text-light); line-height: 1.2; }
.meta-role { font-size: 12px; line-height: 1.3; color: rgba(245,243,239,.55); }
.meta-dot { width: 4px; height: 4px; border-radius: 50%; background: rgba(245,243,239,.3); }
.meta-info { font-size: 13px; color: rgba(245,243,239,.6); }

/* ===================== ARTICLE BODY ===================== */
.article-body { max-width: var(--read); margin: 0 auto; padding: 56px 48px 24px; }

.article-cover { margin: 0 0 44px; }
.article-cover img { width: 100%; border-radius: 14px; box-shadow: var(--shadow-card); }
.article-cover figcaption { font-size: 13px; color: var(--text-muted); margin-top: 10px; text-align: center; }

.article-lead { font-size: 20px; line-height: 1.55; color: var(--text-dark); font-weight: 500; margin-bottom: 32px; }

.article-body p { font-size: 17px; line-height: 1.72; color: var(--text-body); margin-bottom: 22px; }
.article-body p a { color: var(--accent); text-decoration: none; border-bottom: 1px solid rgba(184,149,106,.35); transition: border-color .2s; }
.article-body p a:hover { border-color: var(--accent); }

.article-body h2 {
  font-family: var(--serif); font-weight: 700; font-size: 30px; line-height: 1.2;
  margin: 48px 0 18px; letter-spacing: -.01em; scroll-margin-top: 100px;
}
.article-body h3 {
  font-family: var(--serif); font-weight: 700; font-size: 22px; line-height: 1.25;
  margin: 36px 0 14px; scroll-margin-top: 100px;
}
.article-body strong { font-weight: 700; color: var(--text-dark); }

/* списки с «плюс»-маркером как на сайте */
.article-body ul { list-style: none; margin: 0 0 26px; padding: 0; }
.article-body ul li {
  position: relative; padding-left: 30px; margin-bottom: 13px;
  font-size: 17px; line-height: 1.6; color: var(--text-body);
}
.article-body ul li::before {
  content: "+"; position: absolute; left: 0; top: -1px;
  color: var(--accent); font-weight: 700; font-size: 18px;
}
.article-body ol { margin: 0 0 26px; padding-left: 22px; }
.article-body ol li { font-size: 17px; line-height: 1.6; color: var(--text-body); margin-bottom: 13px; padding-left: 6px; }
.article-body ol li::marker { color: var(--accent); font-weight: 700; }

/* картинка внутри текста */
.figure { margin: 36px 0; }
.figure img { width: 100%; border-radius: 12px; box-shadow: var(--shadow-card); }
.figure figcaption { font-size: 13px; color: var(--text-muted); margin-top: 10px; }
.figure--wide { margin-left: calc((var(--read) - 100vw) / 2 + 48px); margin-right: calc((var(--read) - 100vw) / 2 + 48px); }
.figure--duo { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.figure--duo figcaption { grid-column: 1 / -1; }

/* ЦИТАТА со спикером (аватар + имя + роль) */
.pullquote {
  margin: 40px 0; padding: 32px 34px; background: var(--bg-white);
  border-radius: 16px; border: 1px solid var(--border);
  border-left: 4px solid var(--accent); box-shadow: var(--shadow-card); position: relative;
}
.pullquote::before {
  content: "\201C"; position: absolute; top: 6px; right: 24px;
  font-family: Georgia, serif; font-size: 92px; line-height: 1; color: var(--accent); opacity: .12;
}
.pullquote-text { font-size: 21px; line-height: 1.5; font-weight: 500; color: var(--text-dark); position: relative; z-index: 1; }
.pullquote-author { display: flex; align-items: center; gap: 14px; margin-top: 22px; }
.pullquote-avatar { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; background: var(--bg-paper); border: 1px solid var(--border); }
.pullquote-name { font-size: 15px; font-weight: 700; color: var(--text-dark); line-height: 1.25; }
.pullquote-role { font-size: 13px; color: var(--text-muted); margin-top: 2px; }

/* ВИДЕО (клик открывает модалку) */
.article-video { margin: 40px 0; }
.video-embed {
  position: relative; width: 100%; padding-top: 56.25%; border-radius: 14px; overflow: hidden;
  background: #000; cursor: pointer; box-shadow: var(--shadow-card);
}
.video-embed video, .video-embed img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video-embed-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 76px; height: 76px; border-radius: 50%;
  background: rgba(184,149,106,.92); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; padding-left: 5px; transition: transform .25s, background .25s; z-index: 2;
}
.video-embed:hover .video-embed-play { transform: translate(-50%,-50%) scale(1.06); background: var(--accent); }
.video-embed-badge {
  position: absolute; left: 16px; top: 16px; z-index: 2;
  background: rgba(15,13,11,.7); color: #fff; font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  padding: 5px 11px; border-radius: 100px;
}
.article-video figcaption { font-size: 13px; color: var(--text-muted); margin-top: 10px; }

/* вертикальные медиа в тексте — не растягиваем на всю ширину колонки */
.article-video--portrait, .figure--portrait { max-width: 380px; margin-left: auto; margin-right: auto; }
.article-video--portrait video {
  display: block; width: 100%; aspect-ratio: 9 / 16;
  border-radius: 14px; background: #000; box-shadow: var(--shadow-card);
}

/* callout — «важно знать» */
.callout {
  margin: 36px 0; padding: 24px 26px; border-radius: 14px;
  background: var(--accent-bg); border: 1px solid rgba(184,149,106,.22);
}
.callout-title { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); font-weight: 700; margin-bottom: 10px; }
.callout p { font-size: 16px; line-height: 1.6; color: var(--text-body); margin: 0; }

/* таблица */
.article-table { width: 100%; border-collapse: collapse; margin: 34px 0; font-size: 15px; }
.article-table th, .article-table td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.article-table thead th { background: var(--bg-paper); font-weight: 700; color: var(--text-dark); }
.article-table tr:last-child td { border-bottom: none; }

/* ===================== AUTHOR CARD ===================== */
.author-card {
  /* Ширина — читаемая колонка, но не шире экрана за вычетом полей: иначе на
     узком экране карточка растягивается на всю ширину, а плашка расчёта под
     ней стоит с отступами, и края не совпадают. */
  max-width: min(var(--read), calc(100% - 40px)); margin: 48px auto 0; padding: 28px 32px;
  display: flex; gap: 20px; align-items: center;
  background: var(--bg-white); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow-card);
}
.author-card-avatar { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; background: var(--bg-paper); }
.author-card-label { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); font-weight: 700; margin-bottom: 5px; }
.author-card-name { font-size: 19px; font-weight: 700; color: var(--text-dark); }
.author-card-bio { font-size: 14px; line-height: 1.55; color: var(--text-muted); margin-top: 6px; }

/* ===================== CTA ===================== */
.article-cta {
  max-width: 1280px; margin: 64px auto 88px; padding: 0 48px;
}
.article-cta-inner {
  background: var(--bg-dark); color: var(--text-light); border-radius: 20px;
  padding: 52px 56px; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.article-cta h2 { font-family: var(--serif); font-weight: 700; font-size: 30px; line-height: 1.18; max-width: 560px; }
.article-cta h2 em { font-style: normal; color: var(--accent-soft); }
.article-cta p { font-size: 15px; color: rgba(245,243,239,.65); margin-top: 12px; max-width: 540px; }
/* Заливка та же, что у кнопок на главной (--grad-y из office.css): здесь
   --accent — приглушённое золото для мелкого текста, и кнопка из него выходила
   тусклее остальных. */
.cta-btn {
  display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto;
  background: var(--grad-y); color: #1a1a1a; font-weight: 700; font-size: 15px;
  padding: 17px 30px; border-radius: 100px; text-decoration: none;
  box-shadow: 0 6px 18px rgba(240, 165, 0, 0.28);
  transition: transform .2s, box-shadow .2s;
}
.cta-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(240, 165, 0, 0.4); }

/* ===================== RELATED ===================== */
.related { max-width: 1280px; margin: 0 auto; padding: 80px 48px; }
.related-tag { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin-bottom: 14px; }
.related h2 { font-family: var(--serif); font-weight: 700; font-size: 32px; margin-bottom: 36px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.related-card { background: var(--bg-white); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; text-decoration: none; transition: transform .25s, box-shadow .25s; display: block; }
.related-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.related-card-img { aspect-ratio: 16/10; background: var(--bg-paper); background-size: cover; background-position: center; }
.related-card-body { padding: 20px 22px 24px; }
.related-card-cat { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.related-card h3 { font-size: 17px; line-height: 1.32; color: var(--text-dark); margin: 9px 0 0; font-weight: 700; }

/* ===================== FOOTER (как на основном сайте) ===================== */
/* Отступы подвала задаёт style.css: там же считается запас под нижнюю панель
   действий, и своё значение здесь его перебивало. */
.footer { background: var(--bg-darker); color: rgba(245,243,239,.7); font-size: 14px; }
.footer-inner { max-width: 1280px; margin: 0 auto; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.4fr; gap: 48px; padding-bottom: 56px; border-bottom: 1px solid rgba(245,243,239,.1); }
.footer-logo img { height: 46px; width: auto; display: block; margin-bottom: 18px; }
.footer-tagline { font-size: 14px; line-height: 1.55; color: rgba(245,243,239,.55); margin-bottom: 28px; max-width: 320px; }
.footer-socials { display: flex; flex-wrap: wrap; gap: 8px; }
.footer-social { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; background: rgba(245,243,239,.05); border: 1px solid rgba(245,243,239,.1); border-radius: 24px; color: rgba(245,243,239,.75); font-size: 12px; font-weight: 500; text-decoration: none; transition: background .2s, border-color .2s, color .2s; }
.footer-social:hover { background: rgba(184,149,106,.15); border-color: var(--accent); color: var(--text-light); }
.footer-social svg { width: 16px; height: 16px; }
.footer-col-title { font-weight: 700; font-size: 14px; color: var(--text-light); margin-bottom: 20px; letter-spacing: .02em; }
.footer-list { list-style: none; }
.footer-list li { margin-bottom: 11px; }
.footer-list a { color: rgba(245,243,239,.6); font-size: 14px; text-decoration: none; transition: color .2s; }
.footer-list a:hover { color: var(--accent-soft); }
.footer-col--contacts a { color: rgba(245,243,239,.75); text-decoration: none; transition: color .2s; }
.footer-col--contacts a:hover { color: var(--accent-soft); }
.footer-contact--main { font-weight: 700; font-size: 22px !important; color: var(--text-light) !important; margin-bottom: 22px; display: block; }
.footer-contact-block { margin-bottom: 16px; display: flex; flex-direction: column; gap: 3px; }
.footer-contact-label { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: rgba(245,243,239,.4); font-weight: 600; }
.footer-contact-text { font-size: 14px; color: rgba(245,243,239,.75); }
.footer-bottom { padding-top: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer-copy { font-size: 12px; color: rgba(245,243,239,.4); }
.footer-legal { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-legal a { color: rgba(245,243,239,.45); font-size: 12px; text-decoration: none; transition: color .2s; }
.footer-legal a:hover { color: var(--accent-soft); }

/* ===================== VIDEO MODAL ===================== */
.video-modal { position: fixed; inset: 0; z-index: 2000; display: none; align-items: center; justify-content: center; padding: 24px; }
.video-modal.is-open { display: flex; }
.video-modal-backdrop { position: absolute; inset: 0; background: rgba(15,13,11,.84); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.video-modal-box { position: relative; width: min(960px, 100%); }
.video-modal-frame { position: relative; padding-top: 56.25%; width: 100%; background: #000; border-radius: 12px; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.55); }
.video-modal-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-modal-close { position: absolute; top: -46px; right: 0; width: 38px; height: 38px; border: 0; border-radius: 50%; background: rgba(245,243,239,.14); color: #f5f3ef; font-size: 24px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .2s ease; }
.video-modal-close:hover { background: rgba(245,243,239,.3); }
@media (max-width: 560px) { .video-modal-close { top: auto; bottom: -46px; } }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1024px) {
  .topbar { display: none; }
  .nav-cta { display: none; }
  .nav { padding: 16px 20px; }
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: fixed; top: 72px; left: 16px; right: 16px; z-index: 999;
    display: flex; flex-direction: column; gap: 2px; padding: 12px;
    background: rgba(244,244,242,.98); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow-hover);
    opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-10px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
  }
  .nav.is-open .nav-links { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
  .nav-links a { display: block; padding: 13px 12px; border-radius: 10px; font-size: 15px; }
  .nav-links a:hover { background: var(--bg-paper); }
  body.nav-open { overflow: hidden; }

  .article-hero { padding: 132px 20px 88px; }
  .article-hero h1 { font-size: 32px; }
  .article-body { padding: 44px 20px 16px; }
  .figure--wide { margin-left: 0; margin-right: 0; }
  .related-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
  .article-cta-inner { padding: 40px 32px; }
  .article-cta, .related { padding-left: 20px; padding-right: 20px; }
}
@media (max-width: 600px) {
  .article-hero h1 { font-size: 28px; line-height: 1.16; }
  .article-sub { font-size: 16px; }
  .article-lead { font-size: 18px; }
  .article-body p, .article-body ul li, .article-body ol li { font-size: 16px; }
  .article-body h2 { font-size: 25px; }
  .pullquote { padding: 26px 22px; }
  .pullquote-text { font-size: 18px; }
  .figure--duo { grid-template-columns: 1fr; }
  /* Мета-строка на узком экране: автор, затем рубрика и время чтения — столбиком
     по левому краю. В строку они не помещались и разъезжались: часть уходила
     вбок, часть под аватар. Точки-разделители нужны только для строки. */
  .article-meta { flex-direction: column; align-items: flex-start; gap: 12px; }
  .meta-dot { display: none; }
  .meta-info { font-size: 13px; }
  .author-card { flex-direction: column; text-align: center; align-items: center; }
  .article-cta h2 { font-size: 24px; }
  .article-cta { margin: 48px auto 56px; }
  .footer-top { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* object facts */
.object-facts { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px 24px; margin: 0 0 38px; padding: 24px 28px; background: var(--bg-white); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-card); }
.object-facts dt { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); font-weight: 700; margin-bottom: 5px; }
.object-facts dd { font-size: 15px; color: var(--text-dark); line-height: 1.45; }
.story-label { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); margin: 30px 0 12px; }
@media (max-width: 600px) { .object-facts { grid-template-columns: 1fr; gap: 16px; padding: 20px; } }


/* gallery (умная плитка) */
.gallery { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; margin: 0 0 6px; }
.gallery--three { grid-template-columns: repeat(3,1fr); }
.g-tile { position: relative; overflow: hidden; border-radius: 12px; cursor: pointer; background: var(--bg-paper); box-shadow: var(--shadow-card); aspect-ratio: 3/4; }
.gallery--wide .g-tile { aspect-ratio: 16/11; }
.g-tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .45s ease; }
.g-tile:hover img { transform: scale(1.05); }
.g-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 68%, rgba(15,13,11,.28)); opacity: 0; transition: opacity .3s; }
.g-tile:hover::after { opacity: 1; }
.g-zoom { position: absolute; right: 11px; bottom: 11px; z-index: 2; width: 34px; height: 34px; border-radius: 50%; background: rgba(15,13,11,.55); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 15px; opacity: 0; transition: opacity .3s; }
.g-tile:hover .g-zoom { opacity: 1; }
.figure .gallery + figcaption { margin-top: 12px; }
@media (max-width: 700px) { .gallery--three { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 460px) { .gallery, .gallery--three, .gallery--wide { grid-template-columns: 1fr; } }

/* lightbox (слайдер) */
.lightbox { position: fixed; inset: 0; z-index: 2100; display: none; align-items: center; justify-content: center; padding: 24px; }
.lightbox.is-open { display: flex; }
.lightbox-bg { position: absolute; inset: 0; background: rgba(15,13,11,.93); }
.lightbox-fig { position: relative; margin: 0; max-width: 94vw; }
.lightbox-img { display: block; max-width: 94vw; max-height: 82vh; border-radius: 10px; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.lightbox-cap { margin-top: 12px; text-align: center; color: rgba(245,243,239,.82); font-size: 13px; line-height: 1.4; }
.lb-count { position: absolute; left: 0; right: 0; top: -28px; text-align: center; color: rgba(245,243,239,.55); font-size: 12px; letter-spacing: .04em; }
.lb-btn { position: fixed; z-index: 2; border: 0; background: rgba(245,243,239,.12); color: #f5f3ef; cursor: pointer; display: flex; align-items: center; justify-content: center; border-radius: 50%; transition: background .2s; }
.lb-btn:hover { background: rgba(245,243,239,.28); }
.lb-close { top: 22px; right: 22px; width: 44px; height: 44px; font-size: 26px; }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); width: 52px; height: 52px; font-size: 32px; line-height: 1; padding-bottom: 4px; }
.lb-prev { left: 22px; } .lb-next { right: 22px; }
@media (max-width: 600px) { .lb-prev { left: 8px; } .lb-next { right: 8px; } .lb-close { top: 12px; right: 12px; } .lb-prev, .lb-next { width: 44px; height: 44px; font-size: 26px; } }
