/* ==========================================================================
   assets/css/style.css — Единый файл стилей блога (§13 SPEC_v5.md)
   Светлая тема, Inter с кириллицей, адаптивная сетка по макетам.
   ========================================================================== */

/* --- 1. Шрифты (Inter Cyrillic + Latin, локальные WOFF2) --- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/inter-cyrillic-400.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/inter-latin-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/inter-cyrillic-500.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/inter-latin-500.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/inter-cyrillic-600.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/inter-latin-600.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/inter-cyrillic-700.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/inter-latin-700.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/assets/fonts/inter-cyrillic-800.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/assets/fonts/inter-latin-800.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Inter';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/inter-cyrillic-400-italic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Inter';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/inter-latin-400-italic.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --- 2. CSS-переменные --- */
:root {
  /* Палитра (по макетам) */
  --color-bg: #FFFFFF;
  --color-text: #111827;           /* основной текст */
  --color-text-secondary: #4B5563; /* описание, вводный текст */
  --color-text-muted: #6B7280;     /* метаданные, подписи */
  --color-border: #E5E7EB;         /* разделители и рамки */
  --color-border-hover: #D1D5DB;
  --color-bg-subtle: #F9FAFB;      /* подложка карточек, врезок, цитат */
  --color-bg-subtle-hover: #F3F4F6;
  --color-accent: #2563EB;         /* ссылки, активные акценты */
  --color-accent-hover: #1D4ED8;

  /* Шрифты и размеры */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-size-base: 15px;
  --line-height-base: 1.6;

  /* Сетка и контейнеры */
  --container-max: 1140px;
  --article-max: 680px;
  --article-breakout-max: 680px;
  --header-height: 58px;

  /* Скругления */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-pill: 9999px;

  /* Переходы */
  --transition: 0.15s ease;
}

/* --- 3. Сброс и базовые стили --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: var(--line-height-base);
  color: #334155;
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: #334155;
  background-color: #FFFFFF;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition), border-color var(--transition), background-color var(--transition);
}

ul, ol {
  list-style: none;
}

/* Плашка тестовых данных */
.test-fixture-banner {
  background-color: #FEF3C7;
  border-bottom: 1px solid #FDE68A;
  color: #92400E;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 16px;
  text-align: center;
  position: relative;
  z-index: 100;
}

/* --- 4. Шапка сайта (Header) --- */
.site-header {
  height: var(--header-height);
  border-bottom: 1px solid var(--color-border);
  background-color: var(--color-bg);
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-header__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  height: 100%;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header__logo {
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #0F172A;
  white-space: nowrap;
}

.site-header__logo:hover {
  color: var(--color-accent);
}

.site-header__nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-header__link {
  font-size: 14.5px;
  font-weight: 500;
  color: #4B5563;
}

.site-header__link:hover,
.site-header__link--active {
  color: #0F172A;
}

.site-header__actions {
  display: flex;
  align-items: center;
}

.site-header__search-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: #4B5563;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition), background-color var(--transition);
}

.site-header__search-btn:hover {
  color: #0F172A;
  background-color: var(--color-bg-subtle);
}

/* --- 5. Основной контейнер --- */
.main-content {
  flex: 1 0 auto;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.container--article {
  max-width: var(--article-max);
  margin: 0 auto;
  padding: 28px 20px 60px;
}

.container--article .breadcrumbs {
  display: flex;
}

.container--article .article-header,
.container--article .article-body > * {
  max-width: 100%;
}

.container--article .article-breakout,
.container--article .article-table-wrap,
.container--article .article-cta-card,
.container--article .article-cta-box,
.container--article .article-calc-card,
.container--article .related-articles {
  max-width: 100% !important;
  width: 100%;
}

/* --- 6. Главная страница (Home) --- */
.home-hero {
  padding-top: 56px;
  padding-bottom: 40px;
}

.home-hero__tagline {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-bottom: 14px;
}

.home-hero__title {
  font-size: 46px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--color-text);
  max-width: 900px;
  margin-bottom: 20px;
}

.home-hero__intro {
  font-size: 19px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--color-text-secondary);
  max-width: 820px;
  margin-bottom: 32px;
}

/* Чипы-фильтры (чистые ссылки) */
.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 48px;
}

.filter-chip {
  display: inline-block;
  padding: 8px 18px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  background-color: var(--color-bg);
  white-space: nowrap;
}

.filter-chip:hover {
  background-color: var(--color-bg-subtle);
  border-color: var(--color-border-hover);
  color: var(--color-text);
}

.filter-chip--active {
  background-color: var(--color-bg-subtle-hover);
  border-color: var(--color-border-hover);
  color: var(--color-text);
  font-weight: 600;
}

/* Главная: Featured карточка */
.featured-card {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-color: var(--color-bg);
  margin-bottom: 64px;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.featured-card:hover {
  border-color: var(--color-border-hover);
  box-shadow: 0 6px 24px -4px rgba(0, 0, 0, 0.06);
}

.featured-card__media {
  position: relative;
  background-color: var(--color-bg-subtle);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.featured-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 16 / 11;
}

.featured-card__content {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-card__meta {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--color-text-muted);
  margin-bottom: 14px;
}

.featured-card__title {
  font-size: 27px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--color-text);
  margin-bottom: 16px;
}

.featured-card__title a:hover {
  color: var(--color-accent);
}

.featured-card__desc {
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--color-text-secondary);
  margin-bottom: 28px;
}

/* Сетка материалов */
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 28px;
}

.section-header__title {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

.section-header__link {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-accent);
}

.section-header__link:hover {
  color: var(--color-accent-hover);
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 32px;
}

.article-card {
  display: flex;
  flex-direction: column;
}

.article-card__media {
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: var(--color-bg-subtle);
  border: 1px solid var(--color-border);
  margin-bottom: 16px;
  aspect-ratio: 16 / 9;
}

.article-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.article-card:hover .article-card__img {
  transform: scale(1.02);
}

.article-card__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #F1F5F9;
  color: #64748B;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Аккуратные типографические обложки для карточек без hero.webp */
.article-card__media-cover {
  width: 100%;
  height: 100%;
  min-height: 200px;
  aspect-ratio: 16 / 9;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px 20px;
  box-sizing: border-box;
  background-color: #0F172A;
  overflow: hidden;
}

.article-card__media-pattern {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: 
    radial-gradient(circle at 100% 0%, rgba(255, 255, 255, 0.22) 0%, transparent 60%),
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 100% 100%, 20px 20px, 20px 20px;
  opacity: 0.85;
}

.article-card__media-badge {
  position: relative;
  z-index: 2;
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 4px 10px;
  border-radius: 9999px;
}

.article-card__media-title {
  position: relative;
  z-index: 2;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  color: #FFFFFF;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

/* Градиенты по архетипам */
.article-card__media-cover--loss_calc,
.article-card__media-cover--avito_sellers {
  background: linear-gradient(135deg, #0F172A 0%, #1E3A8A 55%, #2563EB 100%);
}

.article-card__media-cover--platform_rules {
  background: linear-gradient(135deg, #042F2E 0%, #0F766E 55%, #14B8A6 100%);
}

.article-card__media-cover--marketplace_migration {
  background: linear-gradient(135deg, #2E1065 0%, #6B21A8 55%, #9333EA 100%);
}

.article-card__media-cover--algorithm_case {
  background: linear-gradient(135deg, #1C1917 0%, #431407 55%, #EA580C 100%);
}

.article-card__media-cover--avitologists {
  background: linear-gradient(135deg, #1E1B4B 0%, #4338CA 55%, #6366F1 100%);
}

.featured-card__media-cover {
  height: 100%;
  min-height: 320px;
  padding: 32px 28px;
}

.featured-card__media-cover .article-card__media-title {
  font-size: 22px;
  -webkit-line-clamp: 4;
}

/* Чистая строка метаданных: [Рубрика] • [Дата] • [Время чтения] */
.article-card__meta-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13.5px;
  color: #64748B;
  margin-top: 14px;
}

.article-card__meta-bar .article-card__rubric,
.article-header__rubric {
  font-weight: 600;
  color: #2563EB;
}

.article-card__meta-bar .meta-sep,
.article-header__meta .meta-sep {
  color: #CBD5E1;
}

.article-card__meta {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

.article-card__title {
  font-size: 21px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--color-text);
  margin-bottom: 10px;
}

.article-card__title a:hover {
  color: var(--color-accent);
}

.article-card__desc {
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--color-text-secondary);
  margin-bottom: 18px;
  flex: 1 0 auto;
}

/* Строка автора в карточке */
.author-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--color-text-muted);
}

.author-bar__avatar {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-pill);
  object-fit: cover;
  flex-shrink: 0;
}

.author-bar__avatar--initials {
  background-color: #E5E7EB;
  color: #374151;
  font-size: 11.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.author-bar__name {
  font-weight: 600;
  color: var(--color-text);
}

.author-bar__dot {
  color: var(--color-border-hover);
}

/* Блок «Подход» */
.approach-block {
  background-color: var(--color-bg-subtle);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 40px;
  margin: 72px 0;
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 36px;
  align-items: center;
}

.approach-block__visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.approach-block__eyebrow {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

.approach-block__heading {
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--color-text);
  margin-bottom: 10px;
}

.approach-block__text {
  font-size: 15px;
  line-height: 1.55;
  color: var(--color-text-secondary);
}

/* --- 7. Страница статьи (Article) --- */
.article-header {
  margin-bottom: 20px;
}

.article-meta,
.article-header__meta {
  font-family: var(--font-sans);
  font-size: 13px;
  color: #64748B;
  font-weight: 400;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.article-header__meta time,
.article-header__meta .article-header__rubric,
.article-header__meta .article-header__author,
.article-header__meta span {
  color: #64748B;
  font-weight: 400;
}

.article-header__meta .meta-sep {
  color: #CBD5E1;
  font-size: 10px;
}

h1,
.article-title,
.article-header__title {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: #0F172A;
  margin: 0 0 20px 0;
}

@media (min-width: 768px) {
  h1,
  .article-title,
  .article-header__title {
    font-size: 30px;
  }
}

.article-hero,
.article-hero-media,
.article-content figure,
.article-body figure,
.article-figure,
.article-mockup {
  max-width: 100% !important;
  margin: 0 0 24px 0 !important;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: none;
  border: 1px solid #E2E8F0;
  background-color: #F8FAFC;
}

.article-hero img,
.article-hero-media__img,
.article-content img,
.article-body img,
.article-figure img,
.article-mockup img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.article-content p,
.article-body p {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  color: #334155;
  margin-bottom: 16px;
  letter-spacing: -0.005em;
}

.article-content strong,
.article-body strong,
.article-body p strong {
  font-weight: 600;
  color: #0F172A;
}

.article-body p a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-body p a:hover {
  color: var(--color-accent-hover);
}

h2,
.article-content h2,
.article-body h2 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: #0F172A;
  margin-top: 36px;
  margin-bottom: 14px;
}

h3,
.article-content h3,
.article-body h3 {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: #0F172A;
  margin-top: 26px;
  margin-bottom: 10px;
}

.article-body blockquote {
  border-left: 2px solid #CBD5E1;
  padding: 2px 0 2px 16px;
  margin: 22px 0;
  font-style: italic;
  font-size: 15px;
  line-height: 1.6;
  color: #334155;
  background-color: transparent;
}

.article-body ul,
.article-content ul {
  list-style: disc;
  padding-left: 22px;
  margin: 14px 0 18px;
}

.article-body ol,
.article-content ol {
  list-style: decimal;
  padding-left: 22px;
  margin: 14px 0 18px;
}

.article-body li,
.article-content li {
  font-size: 15px;
  line-height: 1.6;
  color: #334155;
  margin-bottom: 6px;
}

.article-body .article-bridge {
  font-size: 15px;
  line-height: 1.6;
  color: #1F2937;
  padding: 14px 18px;
  background-color: var(--color-bg-subtle);
  border-left: 3px solid var(--color-accent);
  border-radius: var(--radius-sm);
  margin: 24px 0;
}

/* Строка об авторе (Часть S): одна строка перед вопросами, ниже мелкая подпись */
.article-body .article-author-line {
  margin: 40px 0 32px;
  padding: 16px 20px;
  border-left: 3px solid var(--color-accent);
  background: var(--color-bg-subtle);
  border-radius: var(--radius-sm);
  font-size: 17px;
  line-height: 1.6;
}
.article-author-line p { margin: 0; }
.article-author-line .article-author-line__note {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.5;
  color: #6B7280;
}

/* GEO Блок прямого ответа (answer, §17 SPEC_v6.md) */
.article-answer {
  background-color: var(--color-bg-subtle);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 22px 26px;
  margin: 28px 0 32px;
}

.article-answer p {
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--color-text);
  margin-bottom: 0;
}

/* GEO Блок определения термина (definition, §17 SPEC_v6.md) */
.article-definition {
  padding: 12px 18px;
  margin: 24px 0;
  background-color: #F8FAFC;
  border-left: 3px solid #64748B;
  border-radius: var(--radius-sm);
  font-size: 15.5px;
  line-height: 1.55;
}

.article-definition__term {
  font-weight: 700;
  color: var(--color-text);
}

.article-definition__text {
  color: var(--color-text-secondary);
}

/* GEO Блок сравнительной таблицы (table, §17 SPEC_v6.md) */
.article-table-wrap {
  margin: 36px 0;
  overflow-x: auto;
}

.article-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.5;
  text-align: left;
}

.article-table th {
  padding: 12px 16px;
  background-color: var(--color-bg-subtle);
  color: var(--color-text);
  font-weight: 600;
  border-bottom: 2px solid var(--color-border);
  white-space: nowrap;
}

.article-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text);
}

.article-table tr:hover td {
  background-color: #FAFAFA;
}

.article-table__summary {
  font-size: 13.5px;
  color: var(--color-text-muted);
  font-style: italic;
  margin-top: 10px;
  line-height: 1.45;
}

/* Ширины колонок таблицы рынка (SPEC ЧАСТЬ J): цена 25%, функции 40% */
@media (min-width: 641px) {
  .article-table--market th:nth-child(1),
  .article-table--market td:nth-child(1) {
    width: 18%;
  }
  .article-table--market th:nth-child(2),
  .article-table--market td:nth-child(2) {
    width: 17%;
  }
  .article-table--market th:nth-child(3),
  .article-table--market td:nth-child(3) {
    width: 25%;
  }
  .article-table--market th:nth-child(4),
  .article-table--market td:nth-child(4) {
    width: 40%;
  }
}

.table-scroll-hint {
  display: none;
  font-size: 12px;
  color: var(--color-text-muted);
  font-weight: 600;
  margin-bottom: 6px;
  text-align: right;
  letter-spacing: 0.02em;
}

.article-table-wrap--comparison {
  position: relative;
}

/* GEO Блок FAQ (faq, §17 SPEC_v6.md) */
.article-faq {
  margin: 48px 0;
  padding-top: 36px;
  border-top: 1px solid var(--color-border);
}

.article-faq__title {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--color-text);
  margin-bottom: 24px;
}

.article-faq__list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.article-faq__item {
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 18px;
}

.article-faq__item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.article-faq__question {
  font-size: 17px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 8px;
}

.article-faq__answer {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--color-text-secondary);
  margin: 0;
}

.article-body .article-figure,
.article-mockup {
  margin: 28px auto 10px;
  padding: 0;
  border: none;
  background: none;
}

.article-mockup__frame {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: none;
  border: 1px solid #E2E8F0;
  background-color: #F8FAFC;
  padding: 8px;
}

.article-body .article-figure__img,
.article-mockup__img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
}

.article-body .article-figure__caption,
.article-mockup__caption {
  font-style: italic;
  font-size: 12.5px;
  color: #64748B;
  margin-top: 8px;
  text-align: center;
  line-height: 1.5;
}

/* Конверсионная карточка оффера (CTA-box) по референсу */
.article-cta-box {
  background-color: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 20px 22px;
  margin: 36px auto 24px;
  box-shadow: none;
}

.article-cta-badge {
  display: none;
}

.article-cta-title {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: #0F172A;
  line-height: 1.35;
  margin-top: 0;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.article-cta-desc {
  font-family: var(--font-sans);
  font-size: 13.5px;
  line-height: 1.55;
  color: #334155;
  margin-bottom: 0;
}

.article-cta-desc a,
.article-cta-box a {
  color: #2563EB;
  font-weight: 500;
  text-decoration: none;
}

.article-cta-desc a:hover,
.article-cta-box a:hover {
  text-decoration: underline;
  color: #1D4ED8;
}

.article-cta-btn {
  display: inline-block;
  margin-top: 10px;
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 600;
  color: #FFFFFF !important;
  background-color: #2563EB;
  border-radius: 6px;
  text-decoration: none !important;
  transition: background-color 0.15s ease;
}

.article-cta-btn:hover {
  background-color: #1D4ED8;
}

/* Минималистичный подвал страницы статьи (по референсу Photo 2) */
.site-footer--article {
  border-top: 1px solid var(--color-border);
  padding: 24px 0 36px;
  background-color: var(--color-bg);
  margin-top: 40px;
}

.container--article-footer {
  max-width: var(--article-max);
  margin: 0 auto;
  padding: 0 20px;
}

.site-footer--article .site-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13.5px;
  color: #6B7280;
}

.site-footer--article .site-footer__socials {
  display: flex;
  align-items: center;
  gap: 20px;
}

.site-footer--article .site-footer__socials a {
  color: #6B7280;
  text-decoration: none;
  transition: color var(--transition);
}

.site-footer--article .site-footer__socials a:hover {
  color: #0F172A;
}

@media (max-width: 640px) {
  .article-cta-box {
    padding: 18px 16px;
    margin: 30px auto 20px;
  }
  .article-cta-title {
    font-size: 15px;
  }
  .article-cta-desc {
    font-size: 13px;
  }
  .article-cta-btn {
    width: 100%;
    text-align: center;
  }
}

/* Карточка конверсии (CTA-блок / Callout legacy) */
.article-cta-card,
.article-callout {
  background-color: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 26px 30px;
  margin: 52px auto 36px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.article-cta-card__title,
.article-callout__title {
  font-size: 19px;
  font-weight: 800;
  color: #0F172A;
  margin-bottom: 12px;
}

.article-cta-card__text,
.article-callout__text {
  font-size: 15.5px;
  line-height: 1.6;
  color: #475569;
  margin-bottom: 18px;
}

.article-cta-card__text a,
.article-callout__text a {
  color: var(--color-accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-cta-card__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.article-cta-card__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #2563EB;
  color: #FFFFFF !important;
  font-size: 14.5px;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 8px;
  text-decoration: none !important;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.article-cta-card__btn:hover {
  background-color: #1D4ED8;
  transform: translateY(-1px);
}

/* Связанные статьи */
.related-articles {
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid var(--color-border);
}

.related-articles__title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--color-text);
  margin-bottom: 24px;
}

.related-articles__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.related-card {
  display: flex;
  flex-direction: column;
}

.related-card__title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--color-text);
  margin-bottom: 8px;
}

.related-card__title a:hover {
  color: var(--color-accent);
}

.related-card__meta {
  font-size: 12px;
  color: var(--color-text-muted);
}

/* Хлебные крошки */
.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 24px;
}

.breadcrumbs__item a {
  color: var(--color-text-muted);
}

.breadcrumbs__item a:hover {
  color: var(--color-text);
}

.breadcrumbs__sep {
  color: var(--color-border);
}

/* --- 8. Подвал (Footer) --- */
.site-footer {
  border-top: 1px solid var(--color-border);
  background-color: var(--color-bg);
  padding: 64px 0 40px;
  margin-top: 80px;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px 32px;
  margin-bottom: 56px;
}

.site-footer__brand-name {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-text);
  margin-bottom: 12px;
}

.site-footer__desc {
  font-size: 14px;
  line-height: 1.55;
  color: var(--color-text-secondary);
  max-width: 320px;
  margin-bottom: 20px;
}

.site-footer__copy {
  font-size: 13px;
  color: var(--color-text-muted);
}

.site-footer__col-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 16px;
}

.site-footer__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.site-footer__link {
  font-size: 14px;
  color: var(--color-text-secondary);
}

.site-footer__link:hover {
  color: var(--color-text);
}

.site-footer__link--contact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-text);
  font-weight: 500;
}

.site-footer__link--contact:hover {
  color: var(--color-accent);
}

/* --- 9. Адаптивность (390, 768, 1440) --- */

@media (max-width: 1024px) {
  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  :root {
    --font-size-base: 16.5px;
    --header-height: 64px;
  }

  .site-header__nav {
    gap: 18px;
  }

  .site-header__link {
    font-size: 14px;
  }

  .home-hero {
    padding-top: 36px;
    padding-bottom: 28px;
  }

  .home-hero__title {
    font-size: 32px;
    line-height: 1.2;
  }

  .home-hero__intro {
    font-size: 17px;
  }

  .featured-card {
    grid-template-columns: 1fr;
  }

  .featured-card__content {
    padding: 24px;
  }

  .featured-card__title {
    font-size: 22px;
  }

  .articles-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .approach-block {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 28px 24px;
  }

  .approach-block__visual {
    justify-content: flex-start;
  }

  .article-header__title {
    font-size: 28px;
  }

  .article-body h2 {
    font-size: 22px;
  }

  .container--article {
    padding: 32px 16px 64px;
  }

  .related-articles__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .site-footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 560px) {
  .site-header {
    height: auto;
  }

  .site-header__inner {
    padding: 10px 16px;
    flex-wrap: wrap;
    row-gap: 8px;
  }

  .site-header__logo {
    font-size: 17px;
  }

  .site-header__nav {
    order: 3;
    width: 100%;
    padding-top: 6px;
    border-top: 1px solid var(--color-border);
    gap: 16px;
    justify-content: flex-start;
  }

  .site-header__link {
    font-size: 13.5px;
  }

  .site-header__search-btn {
    padding: 2px;
  }
}

@media (max-width: 480px) {
  .home-hero__title {
    font-size: 28px;
  }

  .filter-chips {
    gap: 8px;
    margin-bottom: 36px;
  }

  .filter-chip {
    padding: 6px 14px;
    font-size: 13px;
  }

  .article-header__title {
    font-size: 24px;
  }

  .article-body blockquote {
    padding-left: 16px;
    font-size: 16.5px;
    margin: 24px 0;
  }

  .article-body .article-figure {
    padding: 16px;
  }

  .article-table th,
  .article-table td {
    padding: 8px 12px;
    font-size: 13.5px;
  }

  .featured-card__content {
    padding: 20px 16px;
  }

  .approach-block {
    padding: 24px 16px;
  }

  /* Подсказка и тень для таблицы сравнения (SPEC ЧАСТЬ J) */
  .table-scroll-hint {
    display: block;
  }

  .article-table-wrap--comparison {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: inset -12px 0 10px -8px rgba(15, 23, 42, 0.28);
    border-radius: var(--radius-sm, 6px);
  }

  /* Таблицы уже 600 px превращаются в карточки строк с подписями столбцов */
  .article-table--responsive-cards {
    display: block;
    width: 100%;
    border: none;
  }

  .article-table--responsive-cards thead {
    display: none;
  }

  .article-table--responsive-cards tbody {
    display: block;
    width: 100%;
  }

  .article-table--responsive-cards tr {
    display: block;
    width: 100%;
    margin-bottom: 14px;
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md, 8px);
    padding: 12px 14px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  }

  .article-table--responsive-cards tr:hover td {
    background-color: transparent;
  }

  .article-table--responsive-cards td {
    display: flex;
    flex-direction: column;
    padding: 8px 0;
    border: none;
    border-bottom: 1px solid #f1f5f9;
    font-size: 14px;
    line-height: 1.45;
    width: 100% !important;
  }

  .article-table--responsive-cards td:last-child {
    border-bottom: none;
  }

  .article-table--responsive-cards td::before {
    content: attr(data-label);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    font-weight: 700;
    margin-bottom: 3px;
  }

  /* Padding блока «Как считали» и callout на мобильном 16 px (SPEC ЧАСТЬ J) */
  .article-callout,
  .article-calc-card {
    padding: 18px 16px !important;
    margin: 28px 0 !important;
  }
}

/* Блок расчёта и прогрессивный калькулятор (§13 SPEC_v6) */
.article-calc-card {
  background: var(--color-bg-subtle, #f8fafc);
  border: 1px solid var(--color-border, #e2e8f0);
  border-left: 4px solid var(--color-accent, #2563eb);
  border-radius: var(--radius-md, 8px);
  padding: 24px;
  margin: 36px 0;
}

.article-calc-card__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text, #0f172a);
  margin-bottom: 12px;
}

.article-calc-card__static p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-text-secondary, #334155);
  margin: 0;
}

.article-calc-card__interactive {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px dashed var(--color-border, #cbd5e1);
}

.calc-controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.calc-field label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--color-text, #0f172a);
  margin-bottom: 6px;
}

.calc-field input[type="range"] {
  width: 100%;
  accent-color: var(--color-accent, #2563eb);
}

.calc-results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  background: #ffffff;
  padding: 16px;
  border-radius: 6px;
  border: 1px solid var(--color-border, #e2e8f0);
}

.calc-results__item {
  display: flex;
  flex-direction: column;
}

.calc-results__label {
  font-size: 12px;
  color: var(--color-text-muted, #64748b);
  margin-bottom: 4px;
}

.calc-results__value {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-accent, #2563eb);
}

/* --- 10. Lightbox для интерактивного просмотра изображений --- */
.lightbox-trigger {
  cursor: zoom-in;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.lightbox-trigger:hover {
  opacity: 0.96;
}

.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  cursor: zoom-out;
}

.lightbox-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox-container {
  position: relative;
  max-width: 96vw;
  max-height: 94vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: scale(0.96);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: default;
}

.lightbox-overlay.is-open .lightbox-container {
  transform: scale(1);
}

.lightbox-figure {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 100%;
}

.lightbox-image {
  display: block;
  width: min(94vw, 1180px);
  max-width: 100%;
  max-height: 82vh;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.6);
  background-color: #0F172A;
}

.lightbox-caption {
  color: #E2E8F0;
  font-size: 13.5px;
  font-style: italic;
  margin-top: 14px;
  text-align: center;
  max-width: 820px;
  line-height: 1.45;
}

.lightbox-close {
  position: absolute;
  top: -44px;
  right: 0;
  background: rgba(255, 255, 255, 0.20);
  border: 1px solid rgba(255, 255, 255, 0.32);
  color: #FFFFFF;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.36);
  transform: scale(1.08);
}

body.lightbox-locked {
  overflow: hidden !important;
}

@media (max-width: 640px) {
  .lightbox-overlay {
    padding: 12px;
  }
  .lightbox-close {
    top: -38px;
    right: 4px;
    width: 30px;
    height: 30px;
    font-size: 18px;
  }
  .lightbox-image {
    max-height: 75vh;
  }
  .lightbox-caption {
    font-size: 12px;
  }
}

/* --- 11. Сетка каталога отраслей (/industries/) --- */
.industries-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 56px;
}

.industry-hub-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  text-decoration: none !important;
  color: inherit !important;
}

.industry-hub-card:hover {
  transform: translateY(-2px);
  border-color: #CBD5E1;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.06);
}

.industry-hub-card__badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #2563EB;
  background: #EFF6FF;
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 14px;
}

.industry-hub-card__title {
  font-size: 18px;
  font-weight: 700;
  color: #0F172A;
  margin: 0 0 10px;
  line-height: 1.35;
}

.industry-hub-card__desc {
  font-size: 14px;
  color: #475569;
  line-height: 1.55;
  margin: 0 0 20px;
  flex-grow: 1;
}

.industry-hub-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid #F1F5F9;
  font-size: 13px;
}

.industry-hub-card__count {
  font-weight: 600;
  color: #2563EB;
}

.industry-hub-card__count--empty {
  color: #94A3B8;
  font-weight: 400;
}

.industry-hub-card__link {
  color: #0F172A;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color 0.15s ease;
}

.industry-hub-card:hover .industry-hub-card__link {
  color: #2563EB;
}

@media (max-width: 1024px) {
  .industries-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .industries-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .industry-hub-card {
    padding: 20px;
  }
}



