﻿:root {
  --line: #d9e1f0;
  --line-strong: #b8c6de;
  --text: #0f172a;
  --muted: #526079;
  --accent: #1d4ed8;
  --accent-2: #0ea5e9;
  --mint: #10b981;
  --bg: #f4f7fd;
  --card: #ffffff;
  --shadow-soft: 0 14px 32px rgba(15, 23, 42, .08);
  --shadow-strong: 0 24px 46px rgba(15, 23, 42, .14);
}
* { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scrollbar-gutter: stable;
}
body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  color: var(--text);
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background:
    radial-gradient(1200px 560px at 110% -10%, rgba(14, 165, 233, .16), transparent 62%),
    radial-gradient(960px 520px at -10% 30%, rgba(16, 185, 129, .10), transparent 58%),
    radial-gradient(900px 600px at 50% 120%, rgba(59, 130, 246, .10), transparent 55%),
    var(--bg);
}
main {
  width: min(1080px, calc(100% - 24px));
  margin: 22px auto 32px;
  display: grid;
  gap: 16px;
}
h1 {
  margin: 0;
  font-size: clamp(32px, 4.6vw, 68px);
  line-height: 1.04;
  overflow-wrap: anywhere;
  color: var(--text);
  letter-spacing: -.035em;
  font-weight: 900;
  text-wrap: balance;
  text-shadow: 0 10px 28px rgba(255, 255, 255, .35);
}
h2 {
  margin: 0 0 10px;
  font-size: clamp(21px, 2.5vw, 30px);
  line-height: 1.2;
  overflow-wrap: anywhere;
  color: var(--text);
  letter-spacing: -.01em;
}
p {
  margin: 0 0 12px;
  line-height: 1.56;
  color: #334155;
  overflow-wrap: anywhere;
}
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(560px 280px at 104% -18%, var(--hero-glow-a, rgba(59, 130, 246, .24)), transparent 70%),
    radial-gradient(520px 260px at -8% 116%, var(--hero-glow-b, rgba(16, 185, 129, .22)), transparent 72%),
    linear-gradient(148deg, rgba(255, 255, 255, .92) 0%, rgba(244, 249, 255, .94) 52%, rgba(238, 251, 246, .92) 100%);
  border: 1px solid #d8e5f5;
  border-radius: 30px;
  padding: 22px 24px;
  box-shadow:
    0 24px 60px rgba(15, 23, 42, .1),
    inset 0 1px 0 rgba(255, 255, 255, .94);
  backdrop-filter: blur(16px);
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border-radius: 999px;
  filter: blur(10px);
  opacity: .65;
}
.hero::before {
  right: -80px;
  top: -80px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle at center, var(--hero-glow-a, rgba(59, 130, 246, .24)), rgba(59, 130, 246, 0));
}
.hero::after {
  left: -90px;
  bottom: -110px;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle at center, var(--hero-glow-b, rgba(16, 185, 129, .24)), rgba(16, 185, 129, 0));
}
.hero > * {
  position: relative;
  z-index: 1;
}
.hero-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.hero-main {
  max-width: min(920px, 100%);
  display: grid;
  gap: 16px;
}
.hero-kicker {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #2563eb;
}
.hero-lead {
  margin: 0;
  max-width: 880px;
  font-size: clamp(16px, 1.55vw, 20px);
  line-height: 1.72;
  color: #516174;
}
.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.hero-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .72);
  background: rgba(255, 255, 255, .72);
  color: #526079;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .05);
  backdrop-filter: blur(10px);
}
.hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.hero-metric {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .64);
  border: 1px solid rgba(214, 226, 243, .95);
  color: #49576b;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 10px 22px rgba(15, 23, 42, .05);
}
.hero-metric-accent {
  color: #0f766e;
  background: linear-gradient(180deg, rgba(236, 253, 245, .98) 0%, rgba(209, 250, 229, .92) 100%);
  border-color: rgba(110, 231, 183, .9);
}
.crumbs {
  margin: 0;
  font-size: 13px;
  color: #64748b;
  line-height: 1.35;
  overflow-wrap: anywhere;
  background: rgba(255, 255, 255, .7);
  border: 1px solid rgba(203, 213, 225, .75);
  border-radius: 999px;
  padding: 7px 12px;
  backdrop-filter: blur(4px);
}
.crumbs a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}
.crumbs a:hover { text-decoration: underline; }
.hero-home {
  text-decoration: none;
  border: 1px solid #b7cbe7;
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 800;
  color: #1f2f48;
  background: linear-gradient(180deg, #ffffff 0%, #eef5ff 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .95),
    0 8px 16px rgba(15, 23, 42, .08);
}
.hero-home:hover {
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .96),
    0 12px 20px rgba(15, 23, 42, .12);
}
.meta {
  margin: 10px 0 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #41506a;
  border-radius: 999px;
  border: 1px solid rgba(191, 219, 254, .9);
  background: rgba(239, 246, 255, .8);
  padding: 7px 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .85);
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 0;
}
.media-actions {
  margin: -2px 0 4px;
}
.btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 11px 18px;
  border-radius: 15px;
  text-decoration: none;
  font-weight: 800;
  border: 1px solid #c6d6ea;
  color: #12243e;
  background: linear-gradient(180deg, rgba(255, 255, 255, .95) 0%, rgba(239, 247, 255, .94) 100%);
  line-height: 1.25;
  text-align: center;
  max-width: 100%;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .96),
    inset 0 -10px 16px rgba(148, 163, 184, .12),
    0 10px 22px rgba(15, 23, 42, .12);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, filter .18s ease;
}
.btn::before {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  top: 3px;
  height: 42%;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .94) 0%, rgba(255, 255, 255, .12) 100%);
  pointer-events: none;
  z-index: 0;
  opacity: .85;
}
.btn > * {
  position: relative;
  z-index: 1;
}
.btn:hover {
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .98),
    inset 0 -12px 18px rgba(148, 163, 184, .15),
    0 14px 26px rgba(15, 23, 42, .16);
  border-color: #9eb5d1;
  filter: saturate(1.05);
}
.btn.primary {
  border-color: #3f82f2;
  color: #fff;
  background: linear-gradient(145deg, #3f8dff 0%, #2e66e6 64%, #1e4ec8 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .3),
    0 14px 28px rgba(29, 78, 216, .35);
}
.btn.primary::before {
  background: linear-gradient(180deg, rgba(255, 255, 255, .46) 0%, rgba(255, 255, 255, 0) 100%);
  opacity: .9;
}
.btn.primary:hover {
  border-color: #1e40af;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .36),
    0 18px 32px rgba(29, 78, 216, .42);
}
.media-card {
  background:
    radial-gradient(360px 200px at 100% 0, rgba(59, 130, 246, .08), transparent 72%),
    linear-gradient(160deg, rgba(255, 255, 255, .9) 0%, rgba(247, 251, 255, .96) 100%);
  border: 1px solid #d8e5f5;
  border-radius: 30px;
  padding: 18px;
  box-shadow:
    0 24px 56px rgba(15, 23, 42, .08),
    inset 0 1px 0 rgba(255, 255, 255, .95);
  backdrop-filter: blur(14px);
}
.media-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr);
  gap: 20px;
  align-items: start;
}
.media-layout.media-layout-single {
  grid-template-columns: 1fr;
}
.media-main {
  min-width: 0;
  display: grid;
  gap: 16px;
}
.media-image-wrap {
  position: relative;
  margin: 0;
  border-radius: 30px;
  padding: 14px;
  background:
    radial-gradient(280px 160px at 100% 0, var(--stage-glow-b, rgba(14, 165, 233, .28)), transparent 72%),
    radial-gradient(260px 180px at 0 100%, var(--stage-glow-a, rgba(16, 185, 129, .32)), transparent 74%),
    linear-gradient(145deg, var(--stage-from, #0f766e) 0%, var(--stage-via, #155e75) 50%, var(--stage-to, #1d4ed8) 100%);
  box-shadow:
    0 28px 60px rgba(15, 23, 42, .22),
    inset 0 1px 0 rgba(255, 255, 255, .12);
  overflow: hidden;
}
.media-image-wrap::before {
  content: "";
  position: absolute;
  left: 22px;
  right: 22px;
  top: 14px;
  height: 58px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .16) 0%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
}
.media-preview-head {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.media-preview-badge,
.media-preview-format {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .14);
  color: #f8fafc;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}
.media-preview-format {
  background: rgba(255, 255, 255, .88);
  color: #0f172a;
  border-color: rgba(255, 255, 255, .5);
}
.media-image-shell {
  position: relative;
  z-index: 1;
  border-radius: 26px;
  padding: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .98) 0%, rgba(248, 250, 252, .95) 100%);
  border: 1px solid rgba(255, 255, 255, .58);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .98),
    0 18px 40px rgba(15, 23, 42, .18);
}
.media-image-badge {
  position: absolute;
  left: 14px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .34);
  background: rgba(15, 23, 42, .72);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  padding: 9px 14px;
  box-shadow: 0 10px 18px rgba(15, 23, 42, .24);
  backdrop-filter: blur(3px);
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}
.media-side {
  min-width: 0;
  display: grid;
  gap: 16px;
  align-content: start;
}
.side-panel {
  border: 1px solid #d8e3f3;
  border-radius: 26px;
  padding: 18px;
  background:
    radial-gradient(260px 120px at 100% 0, rgba(59, 130, 246, .14), transparent 65%),
    radial-gradient(220px 140px at 0 100%, rgba(16, 185, 129, .12), transparent 72%),
    linear-gradient(180deg, rgba(255, 255, 255, .96) 0%, rgba(247, 251, 255, .96) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .9),
    0 18px 40px rgba(15, 23, 42, .08);
}
.side-panel-kicker {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #38bdf8;
}
.side-panel-title {
  margin: 0 0 12px;
  font-size: clamp(24px, 2.3vw, 34px);
  line-height: 1.08;
  letter-spacing: -.03em;
}
.side-panel-text {
  margin: 0 0 16px;
  font-size: 16px;
  line-height: 1.65;
  color: #475569;
}
.side-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.side-fact {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .98) 0%, rgba(248, 251, 255, .94) 100%);
  border: 1px solid rgba(215, 227, 243, .95);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .92),
    0 10px 22px rgba(15, 23, 42, .05);
}
.side-fact-label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #64748b;
}
.side-fact-value {
  font-size: 17px;
  font-weight: 900;
  line-height: 1.3;
  color: #0f172a;
}
.side-panel-note {
  margin: 14px 0 0;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .74);
  border: 1px solid rgba(214, 226, 243, .92);
  color: #475569;
  font-size: 14px;
  line-height: 1.6;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .05);
}
.related-side {
  border: 1px solid #d8e3f3;
  border-radius: 26px;
  padding: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .96) 0%, rgba(247, 251, 255, .96) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .92),
    0 18px 40px rgba(15, 23, 42, .07);
}
.related-side-top {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.related-side h3 {
  margin: 0;
  font-size: clamp(26px, 2.6vw, 40px);
  line-height: 1.2;
  color: #0f172a;
  letter-spacing: -.03em;
}
.related-side-link {
  text-decoration: none;
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}
.related-side-list {
  display: grid;
  gap: 12px;
}
.related-side-item {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  border: 1px solid #d8e3f3;
  border-radius: 18px;
  padding: 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .98) 0%, rgba(248, 251, 255, .98) 100%);
  box-shadow: 0 12px 24px rgba(15, 23, 42, .05);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.related-side-item:hover {
  transform: translateY(-1px);
  border-color: #bfd0ea;
  box-shadow: 0 12px 20px rgba(15, 23, 42, .1);
}
.related-side-item:focus-within {
  border-color: #93c5fd;
  box-shadow: 0 0 0 2px rgba(147, 197, 253, .35);
}
.related-side-thumb {
  position: relative;
  display: block;
  text-decoration: none;
  border-radius: 9px;
  overflow: hidden;
  line-height: 0;
  align-self: stretch;
}
.related-side-thumb img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 9px;
  background: #eef2f7;
  border: 1px solid #dce4f1;
  user-select: none;
  -webkit-user-drag: none;
}
.related-side-badge {
  position: absolute;
  left: 6px;
  bottom: 6px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .32);
  background: rgba(15, 23, 42, .72);
  color: #fff;
  font-size: 8px;
  font-weight: 700;
  line-height: 1;
  padding: 4px 7px;
  box-shadow: 0 6px 12px rgba(15, 23, 42, .2);
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}
.related-side-title {
  color: #153252;
  text-decoration: none;
  font-weight: 800;
  line-height: 1.3;
  font-size: 15px;
  display: block;
  overflow: hidden;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}
.related-side-title:hover { text-decoration: underline; color: #1d4ed8; }
.media-image {
  width: 100%;
  max-height: 620px;
  object-fit: contain;
  display: block;
  border-radius: 20px;
  background: linear-gradient(180deg, #f9fcff 0%, #f2f7ff 100%);
  margin: 0;
  border: 1px solid #d8e3f3;
  box-shadow: 0 18px 34px rgba(15, 23, 42, .1);
  user-select: none;
  -webkit-user-drag: none;
}
.media-description {
  margin: 0;
  font-size: 17px;
  line-height: 1.58;
  color: #334155;
  overflow-wrap: anywhere;
}
.media-seo {
  margin-top: 0;
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 20px 22px;
  background:
    radial-gradient(260px 140px at 100% 0, rgba(59, 130, 246, .08), transparent 68%),
    linear-gradient(145deg, rgba(255, 255, 255, .98) 0%, rgba(247, 251, 255, .98) 58%, rgba(242, 255, 251, .96) 100%);
  box-shadow: 0 20px 48px rgba(15, 23, 42, .08);
}
.media-seo-kicker {
  margin: 0 0 8px;
  color: #2563eb;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.media-seo-divider {
  height: 1px;
  margin: 16px 0 14px;
  background: linear-gradient(90deg, rgba(203, 213, 225, 0), rgba(203, 213, 225, .95), rgba(203, 213, 225, 0));
}
.media-seo h3 {
  margin: 0 0 10px;
  font-size: clamp(24px, 2.8vw, 38px);
  line-height: 1.2;
  overflow-wrap: anywhere;
  letter-spacing: -.03em;
}
.media-seo-section-title {
  margin-bottom: 8px;
  font-size: clamp(22px, 2.3vw, 32px);
}
.media-seo-about-text {
  margin: 0;
  font-size: 17px;
  line-height: 1.72;
  color: #334155;
}
.seo-hint {
  display: inline-flex;
  align-items: center;
  margin: -2px 0 12px;
  padding: 8px 12px;
  border-radius: 999px;
  color: #1d4ed8;
  background: rgba(239, 246, 255, .82);
  border: 1px solid rgba(191, 219, 254, .95);
  font-size: 13px;
  line-height: 1.35;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(59, 130, 246, .08);
}
.media-seo p {
  margin: 0 0 10px;
  font-size: 16px;
  line-height: 1.7;
  color: #334155;
}
.seo-points {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}
.seo-point {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .78);
  border: 1px solid rgba(214, 226, 243, .92);
  box-shadow: 0 8px 22px rgba(15, 23, 42, .05);
  color: #334155;
  font-size: 15px;
  line-height: 1.62;
}
.seo-point-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin-top: 1px;
  border-radius: 999px;
  background: linear-gradient(145deg, #34d399 0%, #10b981 100%);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 8px 16px rgba(16, 185, 129, .22);
  flex: 0 0 auto;
}
.related {
  margin-top: 2px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  background: linear-gradient(145deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: var(--shadow-soft);
}
.related h2 {
  margin-bottom: 12px;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}
.related-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px;
  background: #fff;
  box-shadow: 0 10px 20px rgba(15, 23, 42, .06);
  transition: transform .18s ease, box-shadow .18s ease;
}
.related-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 30px rgba(15, 23, 42, .14);
}
.related-image-link {
  position: relative;
  display: block;
  text-decoration: none;
  border-radius: 11px;
  overflow: hidden;
}
.related-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  margin: 0 0 9px;
  object-fit: cover;
  border-radius: 11px;
  background: #eef2f7;
  border: 1px solid #dce4f1;
  user-select: none;
  -webkit-user-drag: none;
}
.related-image-badge {
  position: absolute;
  left: 10px;
  bottom: 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .32);
  background: rgba(15, 23, 42, .72);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  padding: 8px 12px;
  box-shadow: 0 8px 16px rgba(15, 23, 42, .24);
  backdrop-filter: blur(2px);
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}
.related-title {
  color: var(--accent);
  text-decoration: none;
  font-weight: 800;
  line-height: 1.34;
  display: block;
  margin-bottom: 0;
}
.related-title:hover { text-decoration: underline; }
@media (max-width: 1050px) {
  .media-layout { grid-template-columns: 1fr; gap: 16px; }
}
@media (max-width: 900px) {
  .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  main { width: min(1080px, calc(100% - 16px)); margin: 14px auto 20px; gap: 12px; }
  .hero, .media-card, .media-seo, .related, .related-side, .side-panel { border-radius: 20px; padding: 14px; }
  .hero-home { width: 100%; text-align: center; }
  .crumbs { font-size: 12px; padding: 7px 10px; }
  .hero-main { gap: 12px; }
  .hero-chips { gap: 8px; }
  .hero-chip, .hero-metric { width: 100%; justify-content: center; }
  .hero-kicker { font-size: 11px; letter-spacing: .14em; }
  h1 { font-size: clamp(24px, 7.4vw, 40px); line-height: 1.08; }
  .hero-lead { font-size: 15px; line-height: 1.62; }
  h2 { font-size: clamp(20px, 5.6vw, 27px); }
  .media-seo h3 { font-size: clamp(22px, 6vw, 30px); }
  .meta { font-size: 13px; }
  .actions { gap: 10px; }
  .media-actions { margin: 0; }
  .btn { min-height: 44px; width: 100%; }
  .media-layout { grid-template-columns: 1fr; gap: 14px; }
  .media-image-wrap { padding: 10px; border-radius: 24px; }
  .media-preview-head { margin-bottom: 10px; }
  .media-preview-badge, .media-preview-format { min-height: 30px; padding: 7px 10px; font-size: 10px; }
  .media-image-shell { border-radius: 20px; padding: 10px; }
  .side-panel-title { font-size: 24px; }
  .side-panel-text { font-size: 15px; }
  .side-facts { grid-template-columns: 1fr; }
  .side-fact { padding: 10px 12px; }
  .side-fact-value { font-size: 15px; }
  .side-panel-note { margin-top: 12px; font-size: 13px; line-height: 1.55; }
  .related-side-item { grid-template-columns: 96px minmax(0, 1fr); gap: 10px; padding: 8px; }
  .related-side-title { font-size: 14px; -webkit-line-clamp: 2; }
  .related-side h3 { margin-bottom: 0; font-size: 28px; }
  .related-side-top { align-items: center; }
  .related-side-list { gap: 9px; }
  .related-side-badge {
    left: 8px;
    bottom: 8px;
    font-size: 10px;
    padding: 4px 7px;
  }
  .seo-point { grid-template-columns: 22px minmax(0, 1fr); padding: 11px 12px; font-size: 14px; }
  .seo-point-icon { width: 22px; height: 22px; font-size: 12px; }
  .media-image-badge {
    left: 10px;
    bottom: 10px;
    font-size: 12px;
    padding: 7px 11px;
  }
  .related-grid { grid-template-columns: 1fr; }
  .related-image { aspect-ratio: 16 / 9; }
  .related-image-badge {
    left: 8px;
    bottom: 16px;
    font-size: 11px;
    padding: 7px 10px;
  }
}
@media (hover: none) {
  .btn:hover,
  .related-card:hover,
  .hero-home:hover,
  .related-side-item:hover {
    transform: none;
    filter: none;
  }
}

/* Homepage style alignment for material pages */
body {
  font-family: Arial, Helvetica, sans-serif;
  color: #1f2937;
  background: #f5f6f8;
}
.topbar {
  background: #fff;
  border-bottom: 1px solid #dde1e7;
}
.topbar-inner {
  width: min(1180px, calc(100% - 24px));
  margin: 0 auto;
  min-height: 60px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 10px 0;
}
.topbar a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  color: #0f172a;
  text-decoration: none;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, .08);
  font-weight: 700;
  font-size: clamp(15px, 1.45vw, 17px);
  line-height: 1.1;
  white-space: nowrap;
  transition: background-color .16s ease, border-color .16s ease, box-shadow .16s ease, color .16s ease, transform .16s ease;
}
.topbar a:hover {
  border-color: #b8c3d2;
  background: #f8fafc;
  color: #0f172a;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(15, 23, 42, .12);
}
.topbar a:focus-visible {
  outline: 3px solid rgba(148, 163, 184, .30);
  outline-offset: 2px;
  border-color: #94a3b8;
}
.topbar a[aria-current="page"] {
  border-color: #94a3b8;
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 6px 14px rgba(15, 23, 42, .10);
}
@media (max-width: 1024px) {
  .topbar-inner {
    width: min(1180px, calc(100% - 20px));
    gap: 10px;
    min-height: 56px;
  }
  .topbar a {
    min-height: 46px;
    padding: 0 18px;
    font-size: 15px;
  }
}
main.material-page {
  width: min(1180px, calc(100% - 24px));
  margin: 22px auto 32px;
  gap: 14px;
}
h1 {
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.1;
  letter-spacing: normal;
  text-shadow: none;
  font-weight: 800;
  color: #0f172a;
}
h2 {
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.2;
  letter-spacing: normal;
}
.hero {
  border: 1px solid #dde1e7;
  border-radius: 14px;
  padding: 14px;
  background: #fff;
  box-shadow: 0 8px 16px rgba(15, 23, 42, .06);
  backdrop-filter: none;
}
.hero::before,
.hero::after {
  display: none;
}
.hero-top {
  margin-bottom: 10px;
}
.hero-main {
  max-width: 100%;
  gap: 10px;
}
.hero-kicker {
  font-size: 12px;
  letter-spacing: .08em;
  color: #475569;
}
.hero-lead {
  font-size: 15px;
  line-height: 1.55;
  color: #475569;
  max-width: 100%;
}
.hero-chips {
  gap: 8px;
}
.hero-chip {
  min-height: 32px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid #d9e7db;
  background: #ffffff;
  color: #22a447;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 4px 10px rgba(15, 23, 42, .08);
  backdrop-filter: none;
}
.hero-metrics {
  gap: 8px;
}
.hero-metric,
.hero-metric-accent {
  min-height: 34px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid #d2d9e4;
  background: #f8fafc;
  color: #334155;
  font-size: 13px;
  font-weight: 700;
  box-shadow: none;
}
.crumbs {
  border-radius: 10px;
  border: 1px solid #d2d9e4;
  background: #f8fafc;
  color: #64748b;
  padding: 8px 10px;
  backdrop-filter: none;
}
.hero-home {
  border: 1px solid #c7d1e1;
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 13px;
  color: #0f172a;
  background: #fff;
  box-shadow: 0 2px 6px rgba(15, 23, 42, .05);
}
.hero-home:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(15, 23, 42, .12);
}
.media-card,
.media-seo,
.related,
.related-side,
.side-panel {
  border: 1px solid #dde1e7;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 16px rgba(15, 23, 42, .06);
  backdrop-filter: none;
}
.media-card {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.media-card-flat {
  display: grid;
  grid-template-columns: 1fr;
  justify-content: center;
  justify-items: center;
  align-items: stretch;
  gap: 10px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}
.media-card-flat > .related-side {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  border: 1px solid #dbe3ef;
  border-radius: 16px;
  padding: 10px;
  box-shadow: 0 12px 24px rgba(15, 23, 42, .08);
}
.media-card-flat > .related-side .related-side-top {
  margin-bottom: 8px;
  align-items: center;
}
.media-card-flat > .related-side h3 {
  font-size: 20px;
  line-height: 1.2;
}
.media-card-flat > .related-side .related-side-link {
  font-size: 12px;
}
.media-card-flat > .related-side .related-side-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}
.media-card-flat > .related-side .related-side-item {
  display: flex;
  flex-direction: column;
  border-radius: 10px;
  padding: 0;
  gap: 0;
  box-shadow: none;
  border: 1px solid #dde1e7;
  overflow: hidden;
  background: #fff;
  height: 100%;
}
.media-card-flat > .related-side .related-side-thumb {
  display: block;
  width: 100%;
  border-radius: 8px;
}
.media-card-flat > .related-side .related-side-thumb img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.media-card-flat > .related-side .related-side-title {
  font-size: 10px;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 8px 10px 10px;
  margin: 0;
  color: #0f172a;
  min-height: calc(1.25em * 2 + 18px);
  max-height: calc(1.25em * 2 + 18px);
  box-sizing: border-box;
}
.media-card-flat > .related-side .related-side-badge {
  left: 6px;
  bottom: 6px;
  border-radius: 8px;
  border: 1px solid #d9e7db;
  background: #ffffff;
  color: #22a447;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  padding: 4px 7px;
  box-shadow: 0 4px 10px rgba(15, 23, 42, .08);
  max-width: calc(100% - 12px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.preview-top {
  width: min(100%, 1080px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 756px) minmax(0, 312px);
  gap: 12px;
  align-items: start;
  justify-content: center;
}
.preview-block {
  border: 1px solid #dbe3ef;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 12px 24px rgba(15, 23, 42, .08);
  padding: 12px;
  display: grid;
  gap: 10px;
  width: min(100%, 756px);
  margin: 0 auto;
}
.preview-side {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
  display: grid;
  gap: 12px;
  align-content: start;
}
.preview-side-card {
  position: relative;
  border: 1px solid rgba(255, 255, 255, .62);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .62) 0%, rgba(242, 248, 255, .46) 100%),
    radial-gradient(130% 120% at 100% 0, rgba(59, 130, 246, .14), transparent 58%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .78),
    0 14px 26px rgba(15, 23, 42, .09);
  -webkit-backdrop-filter: blur(14px) saturate(155%);
  backdrop-filter: blur(14px) saturate(155%);
  padding: 12px;
  display: grid;
  gap: 11px;
}
.preview-side-title {
  margin: 0;
  color: #4f5f76;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 700;
}
.preview-format-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.preview-format-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 15px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .7);
  background: linear-gradient(180deg, rgba(255, 255, 255, .74) 0%, rgba(233, 243, 255, .58) 100%);
  color: #0b2348;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: .01em;
  line-height: 1;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .84),
    0 8px 18px rgba(37, 99, 235, .1);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  backdrop-filter: blur(10px) saturate(140%);
}
.preview-side-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 2px;
}
.preview-side-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(167, 243, 208, .75);
  background: linear-gradient(180deg, rgba(240, 253, 244, .78) 0%, rgba(220, 252, 231, .64) 100%);
  color: #15803d;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 6px 14px rgba(22, 163, 74, .12);
  -webkit-backdrop-filter: blur(10px) saturate(135%);
  backdrop-filter: blur(10px) saturate(135%);
}
.preview-side-chip-muted {
  border-color: rgba(200, 216, 238, .78);
  background: linear-gradient(180deg, rgba(255, 255, 255, .72) 0%, rgba(241, 246, 254, .58) 100%);
  color: #1f2f49;
  box-shadow: 0 6px 14px rgba(51, 65, 85, .08);
  -webkit-backdrop-filter: blur(10px) saturate(130%);
  backdrop-filter: blur(10px) saturate(130%);
}
.preview-side-meta {
  display: grid;
  gap: 9px;
  border-top: 1px dashed #cfdaea;
  padding-top: 11px;
}
.preview-side-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 11px;
  border: 1px solid rgba(219, 230, 245, .78);
  background: linear-gradient(180deg, rgba(255, 255, 255, .68) 0%, rgba(244, 249, 255, .5) 100%);
  font-size: 13px;
  line-height: 1.25;
  color: #102542;
  -webkit-backdrop-filter: blur(10px) saturate(135%);
  backdrop-filter: blur(10px) saturate(135%);
}
.preview-side-label {
  color: #556881;
  font-weight: 600;
}
.preview-side-row strong {
  color: #1f3554;
  font-size: inherit;
  font-weight: 700;
  line-height: inherit;
}
.preview-side-open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid #23b100;
  background: #23b100;
  color: #ffffff;
  text-decoration: none;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  transition: filter .18s ease;
}
.preview-side-open:hover {
  filter: brightness(1.03);
}
.preview-author-card {
  gap: 10px;
  border-color: rgba(207, 224, 247, .72);
  background:
    radial-gradient(140% 120% at 100% 0, rgba(59, 130, 246, .16), transparent 48%),
    linear-gradient(180deg, rgba(255, 255, 255, .62) 0%, rgba(244, 249, 255, .46) 100%);
}
.preview-author-kicker {
  margin: 0;
  color: #3f5573;
  font-size: 13px;
  line-height: 1.25;
  font-weight: 700;
  text-transform: none;
  letter-spacing: normal;
  border-bottom: 0;
  padding-bottom: 0;
}
.preview-author-link {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(216, 229, 247, .8);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .7) 0%, rgba(247, 251, 255, .56) 100%);
  padding: 8px 10px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .82),
    0 8px 18px rgba(15, 23, 42, .05);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  backdrop-filter: blur(10px) saturate(140%);
}
.preview-author-avatar {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  border: 1px solid #d8e6fb;
  background: linear-gradient(180deg, #ffffff 0%, #f5f9ff 100%);
  object-fit: cover;
  flex: 0 0 auto;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .95),
    0 8px 18px rgba(15, 23, 42, .1);
}
.preview-author-name {
  font-size: 15px;
  line-height: 1.2;
  font-weight: 700;
  color: #0e2241;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.preview-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid #d9e7db;
  background: #ffffff;
  color: #22a447;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 4px 10px rgba(15, 23, 42, .08);
  white-space: nowrap;
}
.preview-chip-muted {
  color: #334155;
  border-color: #d2d9e4;
  background: #f8fafc;
}
.preview-title {
  margin: 0;
  font-size: clamp(12px, 1.2vw, 26px);
  line-height: 1.08;
  color: #0f172a;
  letter-spacing: normal;
  font-weight: 800;
  max-width: 920px;
}
.preview-search-lead {
  margin: 2px 0 0;
  font-size: 14px;
  line-height: 1.45;
  color: #334155;
}
.preview-subtitle {
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
  color: #475569;
}
.preview-subtitle-raw {
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.preview-list {
  margin: 8px 0 0;
  padding: 0 0 0 18px;
  display: grid;
  gap: 5px;
  color: #334155;
  font-size: 12px;
  line-height: 1.35;
}
.preview-list li {
  margin: 0;
}
.preview-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}
.preview-media {
  min-width: 0;
  display: grid;
  gap: 8px;
  align-content: start;
}
.preview-info {
  min-width: 0;
  display: grid;
  gap: 10px;
  align-content: start;
}
.preview-under {
  min-width: 0;
  display: grid;
  gap: 8px;
}
.media-image-open {
  display: block;
  text-decoration: none;
  color: inherit;
  line-height: 0;
}
.media-image-wrap-flat {
  position: relative;
}
.media-image-expand {
  position: absolute;
  left: 10px;
  right: auto;
  bottom: 10px;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid #c7d1e1;
  border-radius: 999px;
  background: rgba(255, 255, 255, .94);
  color: #0f172a;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 16px rgba(15, 23, 42, .15);
  backdrop-filter: blur(2px);
}
.media-image-expand:hover {
  filter: brightness(.98);
}
.preview-actions {
  margin-top: 2px;
  width: 100%;
}
.preview-actions .actions {
  display: block;
  width: 100%;
  margin: 0;
}
.preview-actions .btn {
  width: 100%;
  min-height: 30px;
  height: 30px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  justify-content: center;
  padding: 0 12px;
  box-shadow: none;
  transform: none;
  filter: none;
  transition: none;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}
.preview-actions .btn.primary {
  border-color: #23b100;
  background: #23b100;
  color: #ffffff;
}
.preview-actions .btn::before {
  content: none;
  display: none;
}
.preview-actions .btn:hover,
.preview-actions .btn:active {
  transform: none !important;
  filter: none !important;
  box-shadow: none !important;
  border-color: #23b100;
  background: #23b100;
  color: #ffffff;
}
.preview-actions .btn:focus,
.preview-actions .btn:focus-visible {
  outline: none;
  box-shadow: none;
  transform: none !important;
  filter: none !important;
  border-color: #23b100;
  background: #23b100;
  color: #ffffff;
}
.preview-description-inline {
  border: 1px solid #dde1e7;
  border-radius: 10px;
  background: #f8fafc;
  padding: 8px 10px;
  display: grid;
  gap: 6px;
}
.preview-topic-links {
  border: 1px solid #dde1e7;
  border-radius: 10px;
  background: #ffffff;
  padding: 9px 10px;
  display: grid;
  gap: 8px;
}
.preview-topic-links-title {
  margin: 0;
  font-size: 16px;
  line-height: 1.25;
  color: #0f172a;
  font-weight: 800;
}
.preview-topic-link-list {
  display: grid;
  gap: 6px;
}
.preview-topic-link {
  display: block;
  text-decoration: none;
  color: #0f172a;
  border: 1px solid #dbe5f5;
  border-radius: 9px;
  background: #f8fbff;
  padding: 7px 9px;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 600;
}
.preview-topic-link:hover {
  background: #eef4ff;
  border-color: #c9d7ef;
}
.preview-description-title {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
  color: #0f172a;
  font-weight: 800;
}
.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 23, 42, .88);
}
.image-lightbox[hidden] {
  display: none;
}
.image-lightbox img {
  width: auto;
  height: auto;
  max-width: min(1400px, 96vw);
  max-height: 90vh;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
}
.image-lightbox-close {
  position: absolute;
  right: 14px;
  top: 14px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 999px;
  background: rgba(15, 23, 42, .68);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.media-layout {
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr);
  gap: 14px;
}
.media-main,
.media-side {
  gap: 12px;
}
.media-image-wrap {
  border: 0;
  border-radius: 12px;
  padding: 0;
  background: transparent;
  box-shadow: none;
}
.media-image-wrap-flat {
  border: 1px solid #dde1e7;
  border-radius: 12px;
  padding: 0;
  background: #ffffff;
  box-shadow: none;
  margin: 0;
  overflow: hidden;
}
.media-gallery {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px;
  gap: 10px;
  align-items: stretch;
  min-width: 0;
}
.media-gallery-main {
  min-width: 0;
  position: relative;
}
.media-gallery-rail {
  min-width: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  gap: 8px;
}
.media-gallery-thumbs {
  display: grid;
  gap: 8px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 2px;
  scrollbar-width: thin;
}
.media-gallery-thumb {
  border: 1px solid #d5dce8;
  border-radius: 10px;
  background: #f8fafc;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  min-height: 72px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.media-gallery-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #fff;
}
.media-gallery-thumb.is-active {
  border-color: #1d4ed8;
  box-shadow: 0 0 0 2px rgba(29, 78, 216, .16);
}
.media-gallery-main-nav {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 6;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
.media-gallery-nav-btn {
  width: 46px;
  height: 46px;
  min-height: 46px;
  border: 1px solid #cfa900;
  border-radius: 10px;
  background: linear-gradient(180deg, #ffde2a 0%, #f4c400 100%);
  color: #1f2937;
  font-size: 0;
  line-height: 0;
  font-weight: 700;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 14px rgba(191, 148, 0, .35);
  padding: 0;
}
.media-gallery-nav-btn:hover {
  filter: brightness(.98);
}
.media-gallery-nav-btn:active {
  transform: translateY(1px);
}
.media-gallery-nav-icon {
  display: block;
  width: 12px;
  height: 12px;
  border-right: 3px solid #101828;
  border-bottom: 3px solid #101828;
}
.media-gallery-nav-icon-up {
  transform: rotate(-135deg);
  margin-top: 4px;
}
.media-gallery-nav-icon-down {
  transform: rotate(45deg);
  margin-top: -3px;
}
.media-image-wrap::before {
  display: none;
}
.media-preview-head {
  margin-bottom: 8px;
}
.media-preview-badge,
.media-preview-format {
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: .04em;
  border: 1px solid #d2d9e4;
  backdrop-filter: none;
}
.media-preview-badge {
  background: #ffffff;
  color: #22a447;
  border-color: #d9e7db;
}
.media-preview-format {
  background: #f8fafc;
  color: #334155;
}
.media-image-shell {
  border-radius: 10px;
  border: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.media-image-shell-flat {
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.media-image-shell-flat .media-image {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: #ffffff;
}
.media-image {
  max-height: none;
  border-radius: 10px;
  border: 0;
  box-shadow: none;
  background: #fff;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.related-side-thumb img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.related-image {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.media-image-badge {
  display: none;
}
.actions,
.media-actions {
  gap: 8px;
  margin: 0;
}
.btn {
  min-height: 36px;
  padding: 0 14px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  border: 1px solid #e5e7eb;
  color: #111827;
  background: #e5e7eb;
  box-shadow: none;
}
.btn::before {
  content: none;
}
.btn.primary {
  border-color: #23b100;
  color: #ffffff;
  background: #23b100;
  box-shadow: none;
}
.btn:hover {
  transform: translateY(-1px);
  filter: brightness(.97);
  border-color: inherit;
  box-shadow: none;
}
.side-panel,
.related-side {
  padding: 12px;
}
.side-panel-kicker {
  font-size: 11px;
  letter-spacing: .14em;
  color: #2563eb;
}
.side-panel-title {
  font-size: 24px;
  line-height: 1.12;
  letter-spacing: normal;
  margin-bottom: 10px;
}
.side-panel-text {
  font-size: 15px;
  line-height: 1.55;
  margin-bottom: 12px;
}
.side-facts {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.side-fact {
  border-radius: 10px;
  padding: 10px;
  border: 1px solid #dde1e7;
  background: #fff;
  box-shadow: none;
}
.side-fact-label {
  font-size: 11px;
  letter-spacing: .06em;
}
.side-fact-value {
  font-size: 15px;
  line-height: 1.3;
}
.side-panel-note {
  margin-top: 10px;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #dde1e7;
  background: #f8fafc;
  box-shadow: none;
  font-size: 13px;
  line-height: 1.5;
}
.related-side h3 {
  font-size: 22px;
  letter-spacing: normal;
}
.related-side-list {
  gap: 8px;
}
.related-side-item {
  border: 1px solid #dde1e7;
  border-radius: 10px;
  padding: 8px;
  background: #fff;
  box-shadow: none;
}
.related-side-item:hover {
  transform: translateY(-1px);
  border-color: #cbd5e1;
  box-shadow: 0 8px 16px rgba(15, 23, 42, .08);
}
.related-side-thumb img {
  border-radius: 8px;
  border: 1px solid #dde1e7;
  background: #fff;
}
.related-side-badge {
  border-radius: 8px;
  border: 1px solid #d9e7db;
  background: #ffffff;
  color: #22a447;
  font-size: 10px;
  padding: 4px 7px;
  box-shadow: 0 4px 10px rgba(15, 23, 42, .08);
}
.related-side-title {
  color: #0f172a;
  font-size: 14px;
  font-weight: 700;
}
.related-side-title:hover {
  color: #1d4ed8;
}
.media-seo {
  padding: 14px;
  margin-top: 0;
}
.media-seo-kicker {
  margin-bottom: 6px;
  font-size: 11px;
  letter-spacing: .14em;
}
.media-seo h3 {
  font-size: clamp(22px, 2.3vw, 30px);
  letter-spacing: normal;
  margin-bottom: 8px;
}
.media-seo-section-title {
  font-size: clamp(20px, 2.1vw, 28px);
}
.media-seo-about-text,
.media-seo p {
  font-size: 15px;
  line-height: 1.6;
  color: #475569;
}
.seo-hint {
  font-size: 12px;
  padding: 7px 10px;
  box-shadow: none;
}
.seo-point {
  border-radius: 10px;
  padding: 10px;
  border: 1px solid #dde1e7;
  box-shadow: none;
  font-size: 14px;
  line-height: 1.55;
}
.seo-point-icon {
  width: 20px;
  height: 20px;
  font-size: 11px;
  box-shadow: none;
}
@media (max-width: 1050px) {
  .media-layout {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 960px) {
  .media-card-flat > .related-side .related-side-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
}
@media (max-width: 980px) {
  .media-card-flat {
    justify-items: center;
  }
  .preview-top {
    width: min(100%, 756px);
    grid-template-columns: 1fr;
  }
  .preview-block {
    width: 100%;
    max-width: 756px;
  }
  .preview-side {
    width: 100%;
  }
  .preview-layout {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 760px) {
  .topbar-inner {
    width: min(1180px, calc(100% - 12px));
    display: flex;
    flex-wrap: nowrap;
    gap: 3px;
    min-height: auto;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 4px 1px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .topbar-inner::-webkit-scrollbar {
    display: none;
  }
  .topbar a {
    width: auto;
    min-height: 30px;
    padding: 0 7px;
    font-size: 11px;
    text-align: center;
    white-space: nowrap;
    flex: 0 0 auto;
  }
  main.material-page {
    width: min(1180px, calc(100% - 16px));
    margin: 14px auto 20px;
    gap: 10px;
  }
  .hero,
  .media-card,
  .media-seo,
  .related-side,
  .side-panel {
    border-radius: 12px;
    padding: 10px;
  }
  .media-card {
    padding: 0;
  }
  .media-card-flat {
    justify-items: center;
    gap: 8px;
  }
  .preview-top {
    width: 100%;
    gap: 8px;
  }
  .preview-block {
    border-radius: 12px;
    padding: 9px;
    gap: 8px;
    width: 100%;
  }
  .preview-side {
    border-radius: 0;
    padding: 0;
    gap: 8px;
  }
  .preview-side-card {
    border-radius: 12px;
    padding: 10px 9px 9px;
    gap: 8px;
  }
  .preview-side-title {
    font-size: 13px;
  }
  .preview-format-pill {
    min-height: 32px;
    font-size: 15px;
    padding: 0 12px;
  }
  .preview-side-chip {
    min-height: 30px;
    font-size: 12px;
    padding: 0 11px;
  }
  .preview-side-row {
    font-size: 14px;
    padding: 7px 8px;
  }
  .preview-side-open {
    min-height: 40px;
    font-size: 16px;
  }
  .preview-author-avatar {
    width: 50px;
    height: 50px;
  }
  .preview-author-name {
    font-size: 14px;
  }
  .preview-layout {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .preview-info {
    gap: 8px;
  }
  .media-gallery {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .media-gallery-rail {
    grid-template-rows: auto;
    gap: 6px;
  }
  .media-gallery-thumbs {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 2px;
  }
  .media-gallery-thumb {
    flex: 0 0 76px;
    min-height: 56px;
  }
  .media-gallery-nav-btn {
    width: 40px;
    height: 40px;
    min-height: 40px;
  }
  .media-gallery-main-nav {
    right: 8px;
    bottom: 8px;
  }
  .media-image-expand {
    left: 8px;
    right: auto;
    bottom: 8px;
    min-height: 28px;
    padding: 0 9px;
    font-size: 11px;
  }
  .media-card-flat > .related-side {
    width: 100%;
    border-radius: 12px;
    padding: 9px;
  }
  .media-card-flat > .related-side h3 {
    font-size: 18px;
  }
  .media-card-flat > .related-side .related-side-list {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .media-card-flat > .related-side .related-side-item {
    padding: 0;
    gap: 0;
  }
  .media-card-flat > .related-side .related-side-title {
    font-size: 13px;
    line-height: 1.3;
    min-height: calc(1.3em * 2 + 17px);
    max-height: calc(1.3em * 2 + 17px);
    padding: 8px 9px 9px;
  }
  .preview-title {
    font-size: clamp(9px, 2.7vw, 12px);
    line-height: 1.12;
  }
  .preview-search-lead {
    font-size: 12px;
    line-height: 1.4;
  }
  .preview-subtitle {
    font-size: 11px;
  }
  .preview-list {
    font-size: 11px;
    line-height: 1.3;
    padding-left: 16px;
    gap: 4px;
  }
  .preview-description-inline {
    padding: 7px 9px;
  }
  .preview-topic-links {
    padding: 7px 9px;
  }
  .preview-topic-links-title {
    font-size: 14px;
  }
  .preview-topic-link {
    font-size: 12px;
  }
  .preview-description-title {
    font-size: 16px;
  }
  .preview-chip {
    min-height: 28px;
    font-size: 11px;
    padding: 6px 9px;
  }
  .hero-top {
    gap: 8px;
  }
  .hero-home {
    width: 100%;
    text-align: center;
  }
  h1 {
    font-size: clamp(24px, 7vw, 34px);
  }
  .hero-lead {
    font-size: 14px;
  }
  .hero-chip,
  .hero-metric {
    width: 100%;
    justify-content: center;
  }
  .media-preview-head {
    margin-bottom: 6px;
  }
  .media-image-shell {
    padding: 6px;
  }
  .media-image-badge {
    left: 8px;
    top: 8px;
    font-size: 10px;
    padding: 4px 8px;
  }
  .btn {
    width: 100%;
  }
  .side-facts {
    grid-template-columns: 1fr;
  }
  .related-side-item {
    grid-template-columns: 94px minmax(0, 1fr);
  }
  .related-side h3 {
    font-size: 20px;
  }
}
@media (max-width: 420px) {
  .topbar-inner {
    width: min(1180px, calc(100% - 10px));
    gap: 3px;
  }
  .topbar a {
    min-height: 28px;
    padding: 0 6px;
    font-size: 10px;
  }
}
