:root {
  --bg: #f7f9f6;
  --surface: #ffffff;
  --surface-soft: #eef4f0;
  --surface-tint: #f9fbfa;
  --section-wash: #f1f7f3;
  --section-warm: #fbf7ed;
  --ink: #111614;
  --text: #18221e;
  --muted: #64716b;
  --line: #dbe5df;
  --line-strong: #b9cac1;
  --accent: #0f7a53;
  --accent-dark: #084b35;
  --accent-blue: #215f86;
  --accent-2: #a85f2d;
  --warning-bg: #fff7df;
  --warning-line: #dfc58e;
  --radius: 6px;
  --shadow: 0 22px 56px rgba(17, 22, 20, 0.09);
  --shadow-soft: 0 12px 30px rgba(17, 22, 20, 0.06);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: clip;
  background:
    linear-gradient(180deg, rgba(15, 122, 83, 0.06) 0, rgba(247, 249, 246, 0) 420px),
    radial-gradient(circle at 88% 8%, rgba(33, 95, 134, 0.12), transparent 260px),
    var(--bg);
  background-size: auto, auto, auto;
  color: var(--text);
  font-family: "Segoe UI", Tahoma, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

body::before {
  content: none;
}

a {
  color: var(--accent);
  text-decoration: none;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent-dark);
  text-decoration: underline;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(15, 122, 83, 0.32);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: 12px;
  z-index: 20;
  transform: translateY(-160%);
  padding: 10px 14px;
  color: #fff;
  background: var(--ink);
  border-radius: var(--radius);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(247, 249, 246, 0.88);
  border-bottom: 1px solid rgba(185, 202, 193, 0.78);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: grid;
  grid-template-columns: minmax(210px, 280px) minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  min-width: 0;
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  color: var(--ink);
}

.brand:hover {
  text-decoration: none;
}

.brand-image {
  display: block;
  width: min(100%, 248px);
  height: auto;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  font-size: 14px;
}

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 10px;
  color: var(--text);
  border: 1px solid transparent;
  border-radius: var(--radius);
}

.nav a:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.74);
  border-color: var(--line);
  text-decoration: none;
}

.breadcrumbs {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px 32px 0;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumbs li {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.breadcrumbs li + li::before {
  content: ">";
  margin-right: 7px;
  color: #8b9892;
}

.breadcrumbs a {
  color: var(--muted);
}

.breadcrumbs span {
  overflow-wrap: anywhere;
}

.hero,
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 60px 32px;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  padding-top: 78px;
  padding-bottom: 72px;
}

.hero::before {
  content: none;
  position: absolute;
  inset: 36px 32px auto 32px;
  height: 340px;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 26% 34%, rgba(15, 122, 83, 0.13), transparent 58%),
    linear-gradient(90deg, rgba(17, 22, 20, 0.075) 1px, transparent 1px),
    linear-gradient(180deg, rgba(17, 22, 20, 0.052) 1px, transparent 1px);
  background-size: auto, 44px 44px, 44px 44px;
  mask-image:
    linear-gradient(90deg, transparent 0, #000 9%, #000 72%, transparent 100%),
    linear-gradient(180deg, transparent 0, #000 16%, #000 80%, transparent 100%);
  mask-composite: intersect;
  opacity: 0.5;
}

.hero-copy {
  position: relative;
  max-width: 920px;
}

.hero h1,
.catalog-hero h1,
main.article h1 {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(38px, 5vw, 70px);
  line-height: 0.98;
}

.lead {
  max-width: 760px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.58;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  font-weight: 800;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.button:hover {
  border-color: rgba(15, 122, 83, 0.52);
  box-shadow: 0 12px 26px rgba(17, 22, 20, 0.09);
  text-decoration: none;
  transform: translateY(-1px);
}

.button.primary {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

.button.primary:hover {
  background: var(--accent-dark);
}

.note-panel {
  position: relative;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(249, 251, 250, 0.92)),
    var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.note-panel::before {
  content: "";
  display: block;
  width: 48px;
  height: 5px;
  margin-bottom: 18px;
  background: linear-gradient(90deg, var(--accent), var(--accent-blue));
  border-radius: 99px;
}

.note-panel h2 {
  margin: 0 0 16px;
  color: var(--ink);
  font-size: 22px;
}

.route-list,
.learning-path {
  display: grid;
  gap: 14px;
  margin: 0;
  padding-left: 22px;
}

.route-list li,
.learning-path li {
  padding-left: 6px;
}

.route-list a,
.learning-path a {
  font-weight: 800;
}

.section {
  border-top: 1px solid rgba(219, 229, 223, 0.9);
}

.section:nth-of-type(odd) {
  max-width: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.64), rgba(241, 247, 243, 0.72)),
    var(--section-wash);
}

.section:nth-of-type(odd) > * {
  max-width: 1116px;
  margin-left: auto;
  margin-right: auto;
}

.section:nth-of-type(even) {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(251, 247, 237, 0.34));
}

.section.compact {
  padding-top: 52px;
  padding-bottom: 52px;
}

.section.band {
  max-width: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(231, 242, 235, 0.82)),
    var(--section-wash);
}

.section.band > * {
  max-width: 1116px;
  margin-left: auto;
  margin-right: auto;
}

main.article .related-materials {
  width: auto;
  max-width: none;
  margin: 52px calc(50% - 50vw) 0;
  transform: none;
  padding: 60px max(32px, calc((100vw - 1116px) / 2));
  border-top: 1px solid rgba(219, 229, 223, 0.9);
}

main.article .related-materials.section {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.64), rgba(241, 247, 243, 0.72)),
    var(--section-wash);
}

.section-head {
  max-width: 760px;
  margin: 0 auto 30px;
  text-align: center;
}

.section-head.align-left {
  margin-left: 0;
  text-align: left;
}

h1,
h2,
h3 {
  line-height: 1.2;
}

h2 {
  margin: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 32px;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 20px;
}

.section-head p,
.note-panel p,
.footer p {
  margin: 10px 0 0;
  color: var(--muted);
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.card,
.section-link {
  position: relative;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(249, 251, 250, 0.92));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.82) inset, var(--shadow-soft);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
  overflow: hidden;
}

.card::after,
.section-link::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-blue), var(--accent-2));
  opacity: 0;
  transition: opacity 0.18s ease;
}

.card {
  display: block;
  min-height: 196px;
  padding: 20px;
}

.card:hover,
.section-link:hover {
  border-color: rgba(15, 122, 83, 0.42);
  box-shadow: 0 18px 36px rgba(17, 22, 20, 0.1);
  text-decoration: none;
  transform: translateY(-3px);
}

.card:hover::after,
.section-link:hover::after {
  opacity: 1;
}

.card span {
  display: block;
  margin-bottom: 10px;
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.card strong {
  display: block;
  margin-bottom: 10px;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  line-height: 1.22;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.article-card {
  display: flex;
  flex-direction: column;
  min-height: 218px;
  overflow: hidden;
}

.article-card img {
  width: calc(100% + 36px);
  height: 150px;
  margin: -18px -18px 16px;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
  background: var(--surface-soft);
}

.card-image-placeholder,
.sidebar-card-placeholder {
  display: grid;
  place-items: center;
  color: rgba(8, 19, 16, 0.62);
  font-family: "Segoe UI", Tahoma, sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
  line-height: 1.25;
  text-align: center;
  text-transform: uppercase;
  background:
    linear-gradient(135deg, rgba(15, 122, 83, 0.08), rgba(176, 99, 42, 0.10)),
    repeating-linear-gradient(135deg, rgba(8, 19, 16, 0.04) 0 1px, transparent 1px 12px),
    var(--surface-soft);
  border: 1px dashed rgba(15, 122, 83, 0.34);
  border-radius: var(--radius);
}

.card-image-placeholder {
  width: calc(100% + 36px);
  height: 150px;
  margin: -18px -18px 16px;
  padding: 16px;
  border-bottom: 1px dashed rgba(15, 122, 83, 0.34);
  border-radius: var(--radius) var(--radius) 0 0;
}

.article-card span,
.article-card strong,
.article-card p {
  position: relative;
  z-index: 1;
}

.scenario-card strong {
  font-size: 21px;
}

.trust-section {
  max-width: 1180px;
  margin-inline: auto;
  padding-block: 54px;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.trust-grid div {
  min-height: 156px;
  padding: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(246, 250, 248, 0.92));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.trust-grid strong {
  display: block;
  margin-bottom: 10px;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  line-height: 1.2;
}

.trust-grid span {
  color: var(--muted);
}

.section-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.section-link {
  display: grid;
  gap: 9px;
  min-height: 140px;
  padding: 18px;
  overflow: hidden;
}

.section-link img {
  width: calc(100% + 36px);
  height: auto;
  margin: -18px -18px 8px;
  aspect-ratio: 1672 / 941;
  border-bottom: 1px solid var(--line);
  background: var(--surface-soft);
}

.section-link strong {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
}

.section-link span {
  color: var(--muted);
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 42px;
  align-items: start;
}

.learning-path {
  gap: 18px;
}

.learning-path li::marker {
  color: var(--accent);
  font-weight: 900;
}

.learning-path span {
  display: block;
  color: var(--muted);
}

.topic-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.topic-list li {
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 18px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  transition: background 0.16s ease;
}

.topic-list li:hover {
  background: var(--surface-tint);
}

.topic-list li:last-child {
  border-bottom: 0;
}

.topic-list a {
  font-weight: 800;
}

.topic-list span {
  color: var(--muted);
}

.guide-section .section-head {
  max-width: 840px;
}

.guide-section .topic-list {
  counter-reset: guide-step;
}

.guide-section .topic-list li {
  position: relative;
  grid-template-columns: 330px 1fr;
  padding-left: 64px;
}

.guide-section .topic-list li::before {
  counter-increment: guide-step;
  content: counter(guide-step);
  position: absolute;
  left: 18px;
  top: 16px;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: #fff;
  background: var(--ink);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.columns-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.82) inset, var(--shadow-soft);
}

.columns-list ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 19px;
}

.related-materials-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.related-materials-card {
  display: grid;
  align-content: start;
  gap: 16px;
  min-width: 0;
  padding: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 251, 249, 0.9));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.82) inset, var(--shadow-soft);
}

.related-materials-card-head {
  display: flex;
  gap: 12px;
  align-items: baseline;
  justify-content: space-between;
  min-width: 0;
}

.related-materials-card h3 {
  margin: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  line-height: 1.12;
}

.related-materials-card-head > a {
  flex: 0 0 auto;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.related-materials-card-head > a:hover {
  text-decoration: underline;
}

.related-materials-card ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.related-materials-card li {
  display: grid;
  gap: 4px;
  padding-top: 12px;
  border-top: 1px solid rgba(216, 226, 220, 0.9);
}

.related-materials-card li:first-child {
  padding-top: 0;
  border-top: 0;
}

.related-materials-card li > a {
  color: var(--accent);
  font-weight: 850;
  line-height: 1.22;
  text-decoration: none;
}

.related-materials-card li > a:hover {
  text-decoration: underline;
}

.related-materials-card li > span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.42;
}

.footer {
  max-width: none;
  margin: 0;
  padding: 30px 0 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(242, 248, 245, 0.9));
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(0, 1fr);
  align-items: center;
  gap: 32px;
  min-width: 0;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
}

.footer-logo:hover {
  text-decoration: none;
}

.footer-logo-image {
  display: block;
  width: min(100%, 260px);
  height: auto;
}

.footer-brand {
  display: grid;
  gap: 14px;
}

.footer-brand p {
  max-width: 660px;
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
}

.footer-service {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  justify-content: flex-end;
  min-width: 0;
}

.footer-service a {
  color: var(--accent);
  font-weight: 750;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  min-width: 0;
  max-width: var(--max);
  margin-top: 22px;
  margin-right: auto;
  margin-left: auto;
  padding-top: 14px;
  padding-right: 32px;
  padding-left: 32px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}

.footer-bottom span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

main.article {
  max-width: 820px;
  margin: 0 auto;
  padding: 50px 32px;
}

main.article-with-sidebar {
  max-width: 1536px;
}

.article-layout {
  display: grid;
  gap: 52px;
}

.article-main-row {
  display: grid;
  grid-template-columns: 220px minmax(0, 820px) 340px;
  gap: 42px;
  align-items: start;
  justify-content: center;
}

.article-content {
  min-width: 0;
}

.article-sidebar {
  position: sticky;
  grid-column: 3;
  top: 92px;
  min-width: 0;
}

.market-sidebar {
  position: sticky;
  top: 92px;
  min-width: 0;
  transform: none;
}

.market-widget {
  display: grid;
  gap: 14px;
}

.market-widget-head {
  display: block;
}

main.article .market-widget h2 {
  margin: 0 0 2px;
  color: var(--muted);
  font-family: "Segoe UI", Tahoma, sans-serif;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.market-rates {
  display: grid;
  gap: 0;
  padding: 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(249, 251, 250, 0.94));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.market-rate-row {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 44px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.market-rate-row:last-child {
  border-bottom: 0;
}

a.market-rate-row {
  color: var(--text);
  text-decoration: none;
  transition: background 0.16s ease, transform 0.16s ease;
}

a.market-rate-row:hover {
  background: rgba(15, 122, 83, 0.045);
  text-decoration: none;
  transform: translateX(2px);
}

.market-rate-row.is-loading,
.market-rate-row.is-error {
  display: block;
  color: var(--muted);
  font-size: 14px;
}

.market-coin {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.market-coin-icon {
  display: block;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  border-radius: 50%;
  box-shadow: 0 6px 14px rgba(17, 22, 20, 0.08);
}

.market-coin-ticker {
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

.market-price {
  display: block;
  color: var(--ink);
  font-size: 15px;
  font-weight: 900;
  line-height: 1.2;
}

.market-change {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.2;
}

.market-change.is-up {
  color: var(--accent);
}

.market-change.is-down {
  color: #a53d2a;
}

.market-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 12px;
  justify-self: center;
  width: 100%;
  max-width: 188px;
  color: #fff;
  background: var(--accent);
  border-radius: var(--radius);
  font-weight: 900;
}

.market-cta:hover {
  color: #fff;
  background: var(--accent-dark);
  text-decoration: none;
}

main.article .market-widget p {
  justify-self: center;
  width: 100%;
  max-width: 188px;
  margin: -2px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.38;
  text-align: center;
}

.article-layout > .section-materials,
.article-layout > .related-materials {
  width: auto;
  max-width: none;
  margin: 0 calc(50% - 50vw);
  padding: 60px max(32px, calc((100vw - 1116px) / 2));
  transform: none;
}

.section-materials {
  border-top: 1px solid rgba(216, 226, 220, 0.82);
}

.sidebar-recommendations {
  display: grid;
  gap: 14px;
}

main.article .sidebar-recommendations h2 {
  margin: 0 0 2px;
  color: var(--muted);
  font-family: "Segoe UI", Tahoma, sans-serif;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.sidebar-recommendations-list {
  display: grid;
  gap: 12px;
}

.sidebar-article-card {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 98px;
  padding: 10px;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(249, 251, 250, 0.94));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.sidebar-article-card:hover {
  color: var(--text);
  border-color: rgba(15, 122, 83, 0.42);
  box-shadow: 0 18px 36px rgba(17, 22, 20, 0.11);
  text-decoration: none;
  transform: translateY(-2px);
}

.sidebar-article-card img {
  display: block;
  width: 118px;
  height: 82px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.sidebar-card-placeholder {
  width: 118px;
  height: 82px;
  padding: 8px;
  font-size: 10px;
}

.sidebar-article-card strong {
  display: block;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  line-height: 1.18;
}

main.article h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.08;
}

.article-hero-image {
  margin: 24px 0 24px;
}

.article-hero-image img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1672 / 941;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.article-hero-placeholder {
  display: grid;
  place-items: center;
  min-height: clamp(190px, 28vw, 340px);
  aspect-ratio: 1672 / 941;
  color: rgba(8, 19, 16, 0.62);
  font-family: "Segoe UI", Tahoma, sans-serif;
  font-size: clamp(14px, 1.5vw, 18px);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
  background:
    radial-gradient(circle at 18% 22%, rgba(15, 122, 83, 0.12), transparent 32%),
    radial-gradient(circle at 84% 72%, rgba(176, 99, 42, 0.13), transparent 30%),
    repeating-linear-gradient(135deg, rgba(8, 19, 16, 0.045) 0 1px, transparent 1px 16px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(238, 247, 243, 0.84));
  border: 1px dashed rgba(15, 122, 83, 0.36);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

main.article h2 {
  margin-top: 38px;
  margin-bottom: 16px;
  font-size: 29px;
}

main.article h3 {
  margin-top: 24px;
}

main.article p,
main.article li {
  font-size: 17px;
}

.article-meta {
  margin: 14px 0 22px;
  color: var(--muted);
  font-size: 14px;
}

.notice {
  position: relative;
  padding: 17px 18px 17px 20px;
  background: var(--warning-bg);
  border: 1px solid var(--warning-line);
  border-left: 5px solid var(--accent-2);
  border-radius: var(--radius);
  box-shadow: 0 12px 28px rgba(168, 95, 45, 0.08);
}

.toc,
.affiliate-box {
  margin: 30px 0;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.toc {
  display: grid;
  gap: 8px;
}

.toc strong {
  color: var(--ink);
}

.affiliate-box {
  border-color: #d8c3a7;
  background: #fffaf2;
}

.legal-page {
  width: 100%;
  max-width: none;
  margin: 0;
}

.legal-hero {
  padding-top: 58px;
  padding-bottom: 30px;
  border-top: 0;
}

.legal-hero h1 {
  max-width: 860px;
  margin: 0 auto;
  font-size: clamp(38px, 5vw, 66px);
  line-height: 1.02;
}

.legal-hero .lead {
  max-width: 820px;
  margin: 20px auto 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.55;
}

.legal-content {
  max-width: 860px;
  margin-right: auto;
  margin-left: auto;
  padding-top: 28px;
}

.legal-content h2 {
  margin-top: 34px;
  margin-bottom: 12px;
  font-size: clamp(25px, 3vw, 34px);
}

.legal-content p,
.legal-content li {
  color: var(--text);
  font-size: 17px;
  line-height: 1.75;
}

.legal-content ul {
  margin: 0 0 22px;
  padding-left: 24px;
}

.legal-content .notice {
  margin-top: 30px;
}

.nowrap {
  white-space: nowrap;
}

.catalog-hero {
  padding-top: 52px;
  padding-bottom: 30px;
  border-top: 0;
}

.site-search {
  display: grid;
  gap: 8px;
  max-width: 720px;
  margin-top: 24px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.site-search label {
  color: var(--ink);
  font-weight: 900;
}

.site-search input {
  width: 100%;
  min-height: 46px;
  padding: 10px 13px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  font: inherit;
}

.site-search p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.catalog-search {
  gap: 16px;
  max-width: none;
  padding: 22px;
}

.catalog-search-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.catalog-search-head h2 {
  margin: 0 0 4px;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  line-height: 1.2;
}

.catalog-search-head > span {
  flex: 0 0 auto;
  padding: 6px 10px;
  color: var(--accent-dark);
  background: rgba(15, 122, 83, 0.08);
  border: 1px solid rgba(15, 122, 83, 0.18);
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 850;
}

.catalog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 7px 10px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.filter-chip:hover {
  color: var(--ink);
  border-color: var(--line-strong);
}

.filter-chip[aria-pressed="true"] {
  color: #fff;
  background: var(--ink);
  border-color: var(--ink);
}

.filter-chip em {
  min-width: 22px;
  padding: 1px 6px;
  color: var(--accent-dark);
  background: rgba(15, 122, 83, 0.09);
  border-radius: 999px;
  font-size: 12px;
  font-style: normal;
  text-align: center;
}

.filter-chip[aria-pressed="true"] em {
  color: var(--ink);
  background: #fff;
}

[hidden] {
  display: none !important;
}

.articles-catalog .section {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: 32px;
  padding-right: 32px;
}

.articles-catalog .section:nth-of-type(odd),
.articles-catalog .section:nth-of-type(even) {
  background: transparent;
}

.articles-catalog .section:nth-of-type(odd) > * {
  max-width: none;
}

.articles-catalog .section-head {
  max-width: 760px;
}

.catalog-hero h1 {
  margin: 0;
  font-size: 46px;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.catalog-card {
  position: relative;
  display: flex;
  min-height: 332px;
  flex-direction: column;
  overflow: hidden;
  padding: 16px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.catalog-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
  text-decoration: none;
  transform: translateY(-2px);
}

.catalog-card img {
  width: calc(100% + 32px);
  height: 132px;
  margin: -16px -16px 14px;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
  background: var(--surface-soft);
}

.catalog-card span {
  margin-bottom: 9px;
  color: var(--accent-2);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.07em;
  line-height: 1.3;
  text-transform: uppercase;
}

.catalog-card strong {
  margin-bottom: 10px;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  line-height: 1.18;
}

.catalog-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.catalog-empty {
  text-align: center;
}

.catalog-empty h2 {
  margin-top: 0;
}

.table-wrap {
  width: 100%;
  margin: 22px 0 30px;
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

th,
td {
  padding: 13px 12px;
  text-align: left;
  vertical-align: top;
  border: 1px solid var(--line);
}

th {
  color: var(--ink);
  background: var(--surface-soft);
}

@media (max-width: 1540px) and (min-width: 981px) {
  main.article-with-sidebar {
    max-width: 1180px;
  }

  .article-main-row {
    grid-template-columns: 170px minmax(0, 620px) 270px;
    gap: 28px;
  }

  .article-sidebar {
    grid-column: 3;
  }

  .market-sidebar,
  .article-sidebar {
    position: sticky;
    top: 92px;
  }

  .market-rates {
    grid-template-columns: 1fr;
  }

  .market-rate-row {
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 8px;
    border-bottom: 1px solid var(--line);
  }

  .market-rate-row:nth-child(odd) {
    border-right: 0;
    padding-right: 0;
  }

  .market-coin {
    gap: 6px;
  }

  .market-coin-icon {
    width: 22px;
    height: 22px;
  }

  .market-coin-ticker {
    font-size: 11px;
  }

  .market-price {
    font-size: 14px;
  }

  .sidebar-article-card {
    grid-template-columns: 88px minmax(0, 1fr);
  }

  .sidebar-article-card img {
    width: 88px;
    height: 64px;
  }

  .sidebar-article-card strong {
    font-size: 16px;
  }
}

@media (max-width: 1179px) and (min-width: 981px) {
  main.article-with-sidebar {
    max-width: 820px;
  }

  .article-main-row {
    grid-template-columns: 1fr;
  }

  .article-content {
    order: 1;
  }

  .market-sidebar,
  .article-sidebar {
    position: static;
    grid-column: auto;
    width: 100%;
  }

  .market-sidebar {
    order: 2;
  }

  .article-sidebar {
    order: 3;
  }

  .market-rates,
  .sidebar-recommendations-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .header-inner,
  .hero,
  .two-column,
  .footer-inner,
  .article-main-row {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    align-items: start;
  }

  .footer-service {
    justify-content: flex-start;
  }

  main.article-with-sidebar {
    max-width: 820px;
  }

  .article-sidebar {
    position: static;
    grid-column: auto;
    width: 100%;
  }

  .market-sidebar {
    position: static;
    grid-column: auto;
    order: 2;
    width: 100%;
    transform: none;
  }

  .article-content {
    order: 1;
  }

  .article-sidebar {
    order: 3;
  }

  .sidebar-recommendations-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .market-rates {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 14px;
  }

  .market-rate-row:nth-child(odd) {
    border-right: 1px solid var(--line);
    padding-right: 14px;
  }

  .header-inner {
    gap: 12px;
  }

  .nav {
    justify-content: flex-start;
  }

  .hero {
    gap: 30px;
  }

  .article-grid,
  .section-grid,
  .catalog-grid,
  .trust-grid,
  .columns-list,
  .related-materials-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .header-inner,
  .hero,
  .section,
  main.article,
  .breadcrumbs {
    padding-left: 20px;
    padding-right: 20px;
  }

  .footer {
    padding-right: 0;
    padding-left: 0;
  }

  .footer-inner,
  .footer-bottom {
    padding-right: 20px;
    padding-left: 20px;
  }

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

  .articles-catalog .section {
    padding-left: 20px;
    padding-right: 20px;
  }

  .site-header {
    position: sticky;
  }

  .header-inner {
    padding-top: 10px;
    padding-bottom: 9px;
    overflow-x: clip;
  }

  .brand-image {
    width: min(100%, 218px);
  }

  .nav {
    flex-wrap: nowrap;
    gap: 6px;
    overflow-x: auto;
    overflow-y: hidden;
    contain: paint;
    padding-bottom: 3px;
    scrollbar-width: none;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .nav a {
    flex: 0 0 auto;
    min-height: 32px;
    padding: 5px 9px;
    font-size: 13px;
    background: rgba(255, 255, 255, 0.58);
    border-color: rgba(219, 229, 223, 0.84);
  }

  main.article .section-materials,
  main.article .related-materials {
    width: auto;
    padding: 48px 20px;
    margin: 0 calc(50% - 50vw);
    transform: none;
  }

  .hero {
    padding-top: 44px;
    padding-bottom: 52px;
  }

  .legal-hero h1 {
    font-size: clamp(31px, 9vw, 42px);
    overflow-wrap: anywhere;
  }

  .hero::before {
    inset: 28px 20px auto 20px;
    height: 260px;
  }

  .lead {
    font-size: 18px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .article-grid,
  .section-grid,
  .catalog-grid,
  .trust-grid,
  .columns-list,
  .related-materials-grid,
  .grid,
  .sidebar-recommendations-list {
    grid-template-columns: 1fr;
  }

  .topic-list li {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .catalog-search-head {
    display: grid;
  }

  .filter-chip {
    flex: 1 1 auto;
    justify-content: center;
  }

  .guide-section .topic-list li {
    grid-template-columns: 1fr;
    padding-left: 58px;
  }

  h2,
  main.article h2 {
    font-size: 26px;
  }

  main.article p,
  main.article li {
    font-size: 16px;
  }

  table {
    min-width: 100%;
    display: block;
    background: transparent;
    box-shadow: none;
  }

  .table-wrap {
    overflow-x: visible;
  }

  thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  tbody {
    display: grid;
    gap: 12px;
  }

  tr {
    display: block;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
  }

  td {
    display: grid;
    grid-template-columns: minmax(100px, 34%) minmax(0, 1fr);
    gap: 12px;
    padding: 12px 14px;
    border: 0;
    border-bottom: 1px solid var(--line);
    overflow-wrap: normal;
    word-break: normal;
    hyphens: auto;
  }

  td:last-child {
    border-bottom: 0;
  }

  td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.35;
  }
}
