/* =========================================================
   Qazaq Älemi — стили (вариант D «Ақ орда»)
   Шрифт: Open Sans. Цвета задаются здесь, в одном месте.
   ========================================================= */

:root {
  --blue: #0B4F7C;      /* основной цвет */
  --blue-dark: #06324F;
  --gold: #E5A900;      /* орнамент, акценты */
  --gold-text: #8A6400; /* золото для текста (контраст) */
  --ink: #15233A;       /* основной текст */
  --muted: #3E4B5E;
  --muted-2: #556274;
  --line: #E3E7EC;
  --soft: #F4F7FA;
  --cream: #FBF7EC;
  --wrap: 1240px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; font-family: 'Open Sans', Arial, sans-serif; color: var(--ink); background: #fff; font-size: 16px; line-height: 1.5; overflow-wrap: break-word; }
img { max-width: 100%; height: auto; display: block; }
.ph { width: 100%; object-fit: cover; background: #DCE6EE; }
a { color: var(--blue); }
a:hover { color: var(--blue-dark); }
h1, h2, h3 { margin: 0; line-height: 1.15; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.eyebrow { margin: 0 0 14px; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-text); }
.rubric { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); }

/* ---------- Шапка: меню слева, логотип по центру, языки справа ---------- */
.site-header { border-bottom: 1px solid var(--line); background: #fff; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; }
.header-side { flex: 1 1 0; min-width: 0; display: flex; align-items: center; }
.header-side.right { justify-content: flex-end; gap: 10px; }
/* Логотип: место 200×100 px. Картинка вписывается целиком, без искажений */
.logo { flex: 0 0 200px; width: 200px; height: 100px; display: block; line-height: 0; }
.logo img { width: 200px; height: 100px; object-fit: contain; }

.main-nav { display: flex; flex-wrap: nowrap; gap: 2px; white-space: nowrap; }
.main-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 14px; }
.main-nav a.active { color: var(--blue); box-shadow: inset 0 -3px 0 var(--gold); }

.lang { display: flex; border: 1px solid #D3D9E0; border-radius: 8px; overflow: hidden; }
.lang a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px; font-size: 13px; font-weight: 700; color: var(--ink); text-decoration: none; }
.lang a.active { background: var(--blue); color: #fff; }

/* Бургер (работает без JavaScript: скрытый чекбокс + label) */
.menu-toggle { position: absolute; opacity: 0; pointer-events: none; }
.burger { display: none; width: 44px; height: 44px; border: 1px solid #D3D9E0; border-radius: 8px; cursor: pointer; align-items: center; justify-content: center; flex-direction: column; gap: 5px; }
.burger span { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; }
.mobile-nav { display: none; border-top: 1px solid var(--line); background: #fff; }
.mobile-nav a { display: flex; align-items: center; min-height: 52px; padding: 0 24px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 17px; }
.mobile-nav a.active { color: var(--blue); box-shadow: inset 4px 0 0 var(--gold); }

/* ---------- Кнопки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; border: 0; border-radius: 10px; background: var(--blue); color: #fff; font: 700 16px 'Open Sans', Arial, sans-serif; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--blue-dark); color: #fff; }

/* ---------- Рекламные места ---------- */
/* Баннер 300×300 — справа вверху на всех страницах */
.banner-300 { width: 300px; height: 300px; max-width: 100%; flex: 0 0 300px; overflow: hidden; }
/* Google AdSense. После вставки кода класс .ad-placeholder можно убрать */
.ad { width: 100%; text-align: center; overflow: hidden; }
.ad-728 { min-height: 90px; }
.ad-in-article { min-height: 250px; margin: 0 0 32px; }
.ad-300x600 { width: 300px; max-width: 100%; min-height: 600px; }
.ad-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; border: 2px dashed #B9C3CF; border-radius: 12px; background: #F7F9FB; color: var(--muted-2); font-size: 13px; font-weight: 600; }
.banner-300.ad-placeholder { border-color: var(--blue); background: #EEF3F8; color: var(--ink); font-size: 14px; }

/* ---------- Главная ---------- */
.hero { background: var(--soft); }
.hero .wrap { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; padding-top: 56px; padding-bottom: 56px; }
.hero-text { flex: 1 1 420px; min-width: 0; }
.hero h1 { font-weight: 800; font-size: 56px; line-height: 1.08; letter-spacing: -.02em; }
.hero p.lead { margin: 20px 0 28px; font-size: 19px; line-height: 1.6; color: var(--muted); max-width: 540px; }
.hero .banner-300 { margin-left: auto; }

.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; padding-top: 32px; padding-bottom: 40px; }
.tile { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; min-height: 170px; padding: 20px; border-radius: 16px; text-decoration: none; background: var(--blue); color: #fff; }
.tile strong { font-weight: 800; font-size: 22px; }
.tile span { font-size: 14px; opacity: .9; }
.tile.gold { background-color: var(--gold); color: var(--ink); }
.tile.white { background-color: #fff; color: var(--ink); border: 1px solid var(--line); }
.tile.dark { background-color: var(--ink); }


.section { padding-top: 56px; padding-bottom: 32px; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 28px; }
.section-head h2 { font-weight: 800; font-size: 36px; }
.section-title { font-size: 28px; font-weight: 800; margin-bottom: 20px; }

.latest { display: flex; flex-wrap: wrap; gap: 28px; }
.latest-main { flex: 2 1 520px; min-width: 0; }
.latest-main .ph { aspect-ratio: 16 / 9; border-radius: 16px; margin-bottom: 14px; }
.latest-main h3 { margin: 10px 0; font-weight: 800; font-size: 32px; }
.latest-main h3 a, .list-item, .card h2 a { color: var(--ink); text-decoration: none; }
.latest-list { flex: 1 1 320px; min-width: 0; }
.list-item { display: block; padding: 18px 0; border-bottom: 1px solid var(--line); }
.list-item strong { display: block; margin-top: 4px; font-size: 19px; line-height: 1.35; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1px solid #C9D1DB; border-radius: 999px; background: #fff; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; }
.chips a.active { background: var(--blue); border-color: var(--blue); color: #fff; }

/* ---------- Внутренние страницы ---------- */
.page-head { background: var(--soft); border-bottom: 1px solid var(--line); }
.page-head .wrap { padding-top: 32px; padding-bottom: 44px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; font-size: 14px; color: var(--muted-2); }
.crumbs a { color: var(--muted-2); }
.page-head h1 { font-weight: 800; font-size: 52px; letter-spacing: -.02em; }

.layout { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; padding-top: 40px; padding-bottom: 48px; }
.content { flex: 999 1 560px; min-width: 0; }
.sidebar { flex: 1 1 300px; max-width: 300px; display: flex; flex-direction: column; gap: 24px; }
.box { padding: 24px; border: 1px solid var(--line); border-radius: 16px; }
.box > a { display: block; padding: 10px 0; color: var(--ink); text-decoration: none; font-weight: 600; }

/* Список статей */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 36px 28px; margin: 36px 0; }
.card .ph { aspect-ratio: 4 / 3; border-radius: 14px; margin-bottom: 12px; }
.card h2 { margin: 8px 0; font-weight: 700; font-size: 21px; line-height: 1.3; }
.card p { margin: 0; color: var(--muted); }
.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 24px 0 80px; }
.pager a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 14px; border: 1px solid #C9D1DB; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 600; }
.pager a.active { background: var(--blue); border-color: var(--blue); color: #fff; }

/* Статья */
.tag { display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; border-radius: 999px; background: var(--gold); color: var(--ink); text-decoration: none; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.article-head h1 { margin: 18px 0 0; font-size: 52px; max-width: 860px; }
.article-lead { margin: 20px 0 0; max-width: 860px; font-size: 21px; line-height: 1.55; color: var(--muted); }
.meta { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 24px; color: var(--muted-2); font-size: 15px; }
.article-photo { margin: 0 0 32px; max-width: 760px; }
.article-photo .ph { aspect-ratio: 16 / 9; border-radius: 16px; }
.article-photo figcaption { margin-top: 10px; font-size: 14px; color: var(--muted-2); }

/* Предыдущая — следующая */
.prev-next { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.prev-next .wrap { display: flex; flex-wrap: wrap; }
.prev-next a { flex: 1 1 380px; min-width: 0; display: flex; align-items: center; gap: 20px; padding: 32px 0; color: var(--ink); text-decoration: none; }
.prev-next a.next { justify-content: flex-end; text-align: right; border-left: 1px solid var(--line); padding-left: 24px; }
.prev-next .arrow { flex: 0 0 56px; height: 56px; border-radius: 50%; border: 2px solid var(--blue); color: var(--blue); display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 700; }
.prev-next .next .arrow { background: var(--blue); color: #fff; }
.prev-next small { display: block; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-text); }
.prev-next strong { display: block; margin-top: 4px; font-size: 20px; line-height: 1.3; }

.related { background: var(--soft); padding: 56px 0 72px; }
.related h2 { font-size: 32px; font-weight: 800; margin-bottom: 24px; }

/* ---------- Подвал ---------- */
.site-footer { border-top: 4px solid var(--gold); background: var(--ink); color: #C5CED9; font-size: 15px; }
.footer-top { display: flex; flex-wrap: wrap; gap: 40px 48px; padding-top: 64px; padding-bottom: 48px; }
.footer-brand { flex: 2 1 300px; min-width: 0; }
.footer-brand .logo { margin-bottom: 20px; }
.footer-brand p { margin: 0 0 16px; line-height: 1.65; max-width: 380px; }
.footer-col { flex: 1 1 160px; min-width: 0; }
.footer-col.wide { flex: 2 1 300px; }
.footer-col h3 { margin: 0 0 16px; font-size: 14px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #F2C94C; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col.wide ul { columns: 2; column-gap: 24px; }
.footer-col li { margin: 0 0 4px; break-inside: avoid; }
.footer-col a { display: inline-flex; align-items: center; min-height: 36px; color: #E3E8EE; text-decoration: none; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-mail { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid #3A4B66; border-radius: 10px; color: #fff; text-decoration: none; font-weight: 600; }
.footer-mail:hover { color: #fff; border-color: #F2C94C; }
.footer-langs { display: flex; flex-direction: column; align-items: stretch; gap: 8px; max-width: 120px; }
.footer-langs a { justify-content: center; min-height: 40px; padding: 0 12px; border: 1px solid #3A4B66; border-radius: 8px; font-weight: 700; font-size: 13px; }
.footer-bottom { border-top: 1px solid #2A3A52; }
.footer-bottom .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-top: 20px; padding-bottom: 24px; font-size: 14px; color: #A9B3C2; }
.footer-bottom a { color: #A9B3C2; }

/* ---------- Планшеты ---------- */
@media (max-width: 1200px) {
  .main-nav { display: none; }
  .burger { display: flex; }
  .menu-toggle:checked ~ .mobile-nav { display: block !important; }
  .header-side.right .lang { display: flex; }
}

/* ---------- Телефоны (Samsung A21 и др., ~360 px) ---------- */
@media (max-width: 720px) {
  .wrap { padding: 0 16px; }
  .header-row { padding-top: 10px; padding-bottom: 10px; gap: 8px; }
  .lang a { padding: 0 8px; min-height: 36px; font-size: 12px; }
  .mobile-nav a { padding: 0 16px; }

  .hero .wrap { padding-top: 32px; padding-bottom: 32px; gap: 28px; }
  .hero h1 { font-size: 32px; }
  .hero p.lead { font-size: 17px; margin: 14px 0 22px; }
  .hero .btn { width: 100%; }
  .hero .banner-300 { margin: 0 auto; }

  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding-top: 20px; padding-bottom: 28px; }
  .tile { min-height: 120px; padding: 14px; }
  .tile strong { font-size: 18px; }
  .tile span { font-size: 13px; }

  .section { padding-top: 36px; padding-bottom: 20px; }
  .section-head h2 { font-size: 26px; }
  .section-title { font-size: 22px; }
  .latest-main h3 { font-size: 24px; }
  .list-item strong { font-size: 17px; }
  .chips { gap: 8px; }
  .chips a { padding: 0 14px; font-size: 14px; }

  .page-head .wrap { padding-top: 20px; padding-bottom: 28px; }
  .page-head h1, .article-head h1 { font-size: 30px; }
  .article-lead { font-size: 17px; }
  .article-photo { margin-bottom: 24px; }
  .article-photo .ph { border-radius: 12px; }
  .layout { gap: 32px; padding-top: 24px; }
  .sidebar { max-width: none; flex-basis: 100%; align-items: stretch; }
  .sidebar .banner-300, .sidebar .ad-300x600 { margin: 0 auto; }
  .cards { grid-template-columns: 1fr; gap: 28px; margin: 24px 0; }

  .prev-next a { flex-basis: 100%; padding: 20px 0; gap: 14px; }
  .prev-next a.next { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; }
  .prev-next .arrow { flex-basis: 44px; height: 44px; font-size: 18px; }
  .prev-next strong { font-size: 17px; }
  .related { padding: 36px 0 48px; }
  .related h2 { font-size: 24px; }

  .footer-top { padding-top: 40px; padding-bottom: 32px; gap: 32px; }
  .footer-brand, .footer-col, .footer-col.wide { flex-basis: 100%; }
  .footer-col { flex-basis: calc(50% - 16px); }
  .footer-col.wide { flex-basis: 100%; }
  .footer-bottom .wrap { flex-direction: column; }
}

/* Языки внутри мобильного меню */
.mobile-lang { display: flex; gap: 8px; padding: 16px; }
.mobile-lang a { flex: 1 1 0; justify-content: center; min-height: 48px; padding: 0; border: 1px solid #D3D9E0; border-bottom: 1px solid #D3D9E0; border-radius: 10px; font-size: 15px; font-weight: 700; }
.mobile-lang a.active { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: none; }
@media (max-width: 720px) {
  .header-side.right .lang { display: none; }
}

/* Рубрики в правой колонке */
.rubrics ul { list-style: none; margin: 0; padding: 0; }
.rubrics li { border-bottom: 1px solid var(--line); }
.rubrics li:last-child { border-bottom: 0; }
.rubrics a { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 6px 0; color: var(--ink); text-decoration: none; font-weight: 600; }
.rubrics a::before { content: ""; flex: 0 0 8px; height: 8px; background: var(--gold); transform: rotate(45deg); }
.rubrics a:hover { color: var(--blue); }
.footer-brand { flex: 3 1 360px; }

/* Телефон: кнопки языков в футере — столбиком, одна под другой */
@media (max-width: 720px) {
  .footer-langs { flex-direction: column; align-items: stretch; max-width: 160px; }
  .footer-langs a { justify-content: center; min-height: 44px; }
}


/* Главная: блок «Популярное» */
.section-more { margin-top: 56px; }
.cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; }
.cards-3 .card h2 { font-size: 19px; }
@media (max-width: 980px) { .cards-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .section-more { margin-top: 40px; } .cards-3 { grid-template-columns: 1fr; } }

/* Пагинация: кнопки «Назад» и «Дальше» */
.pager { align-items: center; }
.pager .pager-btn { padding: 0 20px; font-weight: 700; }
.pager a.pager-btn { background: #fff; border-color: var(--blue); color: var(--blue); }
.pager a.pager-btn:hover { background: var(--blue); color: #fff; }
.pager .pager-btn.disabled { display: inline-flex; align-items: center; min-height: 44px; border: 1px solid var(--line); border-radius: 10px; color: #A3ADBA; cursor: default; }
.page-num { font-weight: 600; color: var(--muted-2); font-size: .6em; }
@media (max-width: 720px) {
  .pager { gap: 6px; }
  .pager a { min-width: 40px; padding: 0 10px; }
  .pager .pager-btn { padding: 0 14px; }
}
@media (max-width: 720px) {
  /* Телефон: «Назад» и «Дальше» — первой строкой на всю ширину, номера страниц под ними */
  .pager .pager-btn { order: -1; flex: 1 1 calc(50% - 3px); justify-content: center; }
}

/* «Популярное» в правой колонке */
.popular ul { list-style: none; margin: 0; padding: 0; }
.popular li { border-bottom: 1px solid var(--line); }
.popular li:last-child { border-bottom: 0; }
.popular a { display: block; padding: 12px 0; color: var(--ink); text-decoration: none; font-weight: 600; line-height: 1.4; }
.popular a:hover { color: var(--blue); }
.popular .rubric { display: block; margin-bottom: 4px; font-size: 11px; }
.hero-text { max-width: 760px; }

/* =========================================================
   ТЕКСТ СТАТЬИ — типографика (как в WordPress)
   ========================================================= */
.article-body { max-width: 760px; font-size: 19px; line-height: 1.75; color: #22314A; }
.article-body > *:first-child { margin-top: 0; }
.article-body p { margin: 0 0 24px; }

/* Заголовки: H1 — только заголовок статьи вверху; в тексте H2, H3, H4 */
.article-body h2 { margin: 48px 0 16px; font-weight: 800; font-size: 32px; line-height: 1.2; color: var(--ink); }
.article-body h3 { margin: 36px 0 12px; font-weight: 700; font-size: 25px; line-height: 1.3; color: var(--ink); }
.article-body h4 { margin: 28px 0 10px; font-weight: 700; font-size: 20px; line-height: 1.35; color: var(--ink); }
.article-body h5, .article-body h6 { margin: 24px 0 8px; font-size: 15px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-text); }

/* Ссылки и выделение */
.article-body a { color: var(--blue); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.article-body a:hover { color: var(--blue-dark); text-decoration-thickness: 2px; }
.article-body strong, .article-body b { font-weight: 700; color: var(--ink); }
.article-body mark { background: #FCEFC2; color: inherit; padding: 0 3px; border-radius: 3px; }
.article-body small { font-size: .85em; color: var(--muted-2); }
.article-body abbr[title] { text-decoration: underline dotted; cursor: help; }
.article-body sup, .article-body sub { font-size: .7em; line-height: 0; }
.article-body code { font-family: Consolas, 'Courier New', monospace; font-size: .88em; background: var(--soft); padding: 2px 6px; border-radius: 4px; }
.article-body pre { margin: 0 0 24px; padding: 18px 20px; background: var(--soft); border-radius: 12px; overflow-x: auto; font-size: 15px; line-height: 1.6; }
.article-body pre code { background: none; padding: 0; }

/* Списки */
.article-body ul, .article-body ol { margin: 0 0 24px; padding-left: 28px; }
.article-body li { margin: 0 0 10px; padding-left: 4px; }
.article-body li > ul, .article-body li > ol { margin: 10px 0 0; }
.article-body ul { list-style: none; padding-left: 24px; }
.article-body ul > li { position: relative; }
.article-body ul > li::before { content: ""; position: absolute; left: -20px; top: .72em; width: 7px; height: 7px; background: var(--gold); transform: rotate(45deg); }
.article-body ol > li::marker { color: var(--blue); font-weight: 700; }

/* Цитата */
.article-body blockquote { margin: 32px 0; padding: 24px 28px; border-radius: 16px; background: var(--cream); font-size: 22px; line-height: 1.45; font-weight: 600; color: var(--ink); }
.article-body blockquote p { margin: 0 0 12px; }
.article-body blockquote p:last-child { margin-bottom: 0; }
.article-body blockquote small, .article-body blockquote cite { display: block; margin-top: 10px; font-size: 16px; font-weight: 400; font-style: italic; color: var(--muted); }
/* Крупная выносная цитата: <blockquote class="pullquote"> */
.article-body blockquote.pullquote { background: none; border-top: 3px solid var(--gold); border-bottom: 3px solid var(--gold); border-radius: 0; padding: 28px 0; text-align: center; font-size: 28px; font-weight: 700; }

/* Врезки: <div class="note">, <div class="note warning"> */
.article-body .note { margin: 0 0 24px; padding: 18px 22px; border-radius: 12px; background: #EEF3F8; font-size: 17px; line-height: 1.6; }
.article-body .note.warning { background: #FDF3DC; }
.article-body .note p:last-child { margin-bottom: 0; }

/* Разделитель */
.article-body hr { margin: 40px auto; width: 120px; border: 0; border-top: 3px solid var(--gold); }

/* Фото в тексте */
.article-body figure { margin: 32px 0; }
.article-body figure img { width: 100%; border-radius: 12px; }
.article-body figcaption { margin-top: 8px; font-size: 14px; line-height: 1.5; color: var(--muted-2); }
.article-body img.alignleft, .article-body figure.alignleft { float: left; width: 45%; margin: 6px 24px 16px 0; }
.article-body img.alignright, .article-body figure.alignright { float: right; width: 45%; margin: 6px 0 16px 24px; }
.article-body::after { content: ""; display: table; clear: both; }

/* Таблица */
.article-body .table-wrap { margin: 0 0 24px; overflow-x: auto; }
.article-body table { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.5; }
.article-body th, .article-body td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.article-body th { background: var(--soft); font-weight: 700; color: var(--ink); }
.article-body caption { caption-side: bottom; padding-top: 8px; font-size: 14px; color: var(--muted-2); text-align: left; }

/* Видео YouTube: <div class="video"><iframe ...></iframe></div> */
.article-body .video { position: relative; margin: 32px 0; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #000; }
.article-body .video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

@media (max-width: 720px) {
  .article-body { font-size: 17px; line-height: 1.7; }
  .article-body h2 { font-size: 24px; margin-top: 36px; }
  .article-body h3 { font-size: 21px; margin-top: 28px; }
  .article-body h4 { font-size: 18px; }
  .article-body blockquote { font-size: 19px; padding: 18px 20px; }
  .article-body blockquote.pullquote { font-size: 22px; padding: 20px 0; }
  .article-body img.alignleft, .article-body figure.alignleft,
  .article-body img.alignright, .article-body figure.alignright { float: none; width: 100%; margin: 24px 0; }
}
.article-body h2, .article-body h3, .article-body h4, .article-body blockquote, .article-body .note, .article-body hr,
.article-body .table-wrap, .article-body .video, .article-body ul, .article-body ol,
.article-body figure:not(.alignleft):not(.alignright), .article-body .ad { clear: both; }
.article-body figure img { background: #DCE6EE; }
.article-body .video:empty { background: var(--soft); }
.article-body .video:empty::after { content: "Видео YouTube"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--muted-2); font-size: 14px; font-weight: 600; }

/* Плитки рубрик: вариант на 3 рубрики (казахская и английская версии) */
.tiles.tiles-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 720px) { .tiles.tiles-3 { grid-template-columns: 1fr; } .tiles.tiles-3 .tile { min-height: 90px; } }

/* Логотип в подвале: то же место 200×100, прижат влево */
.footer-brand .logo img { object-position: left center; }
