:root {
  --ink: #101827;
  --ink-soft: #405066;
  --paper: #f5f0e6;
  --paper-deep: #ebe2d2;
  --card: #fffdf8;
  --line: #d7cbb9;
  --accent: #e74e2f;
  --accent-dark: #a92e1a;
  --teal: #0f756d;
  --teal-soft: #dcefeb;
  --gold: #dba52b;
  --shadow: 0 20px 60px rgba(30, 39, 53, 0.12);
  --radius: 22px;
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 92% 3%, rgba(219, 165, 43, 0.16), transparent 25rem),
    radial-gradient(circle at 5% 18%, rgba(15, 117, 109, 0.12), transparent 28rem),
    var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.72;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--accent-dark);
  text-decoration-thickness: 0.09em;
  text-underline-offset: 0.17em;
}

a:hover {
  color: var(--accent);
}

a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
  border-radius: 4px;
}

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

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

.wrap {
  width: min(calc(100% - 40px), var(--max));
  margin-inline: auto;
}

.site-header {
  border-bottom: 1px solid rgba(16, 24, 39, 0.12);
  background: rgba(245, 240, 230, 0.92);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  min-height: 74px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-weight: 900;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
  color: #fff;
  background: var(--accent);
  font-size: 14px;
  letter-spacing: -0.08em;
  transform: rotate(-4deg);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 18px;
  font-size: 14px;
  font-weight: 750;
}

.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--accent-dark);
}

.hero {
  padding: 58px 0 44px;
}

.crumbs {
  margin-bottom: 24px;
  color: var(--ink-soft);
  font-size: 14px;
}

.crumbs a {
  color: inherit;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.55fr);
  gap: 36px;
  align-items: end;
}

.eyebrow {
  display: inline-flex;
  margin: 0 0 15px;
  padding: 7px 11px;
  border: 1px solid rgba(15, 117, 109, 0.25);
  border-radius: 999px;
  color: var(--teal);
  background: var(--teal-soft);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.09;
  text-wrap: balance;
}

h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(2.65rem, 6vw, 5.7rem);
  letter-spacing: -0.055em;
}

h2 {
  margin: 2.4em 0 0.65em;
  font-size: clamp(1.75rem, 4vw, 2.65rem);
  letter-spacing: -0.035em;
}

h3 {
  margin: 1.8em 0 0.5em;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.lede {
  max-width: 790px;
  margin: 24px 0 0;
  color: var(--ink-soft);
  font-size: clamp(1.08rem, 2vw, 1.28rem);
}

.hero-card {
  position: relative;
  overflow: hidden;
  padding: 26px;
  border: 1px solid rgba(16, 24, 39, 0.14);
  border-radius: var(--radius);
  color: #fff;
  background: var(--ink);
  box-shadow: var(--shadow);
}

.hero-card::after {
  position: absolute;
  right: -34px;
  bottom: -54px;
  width: 150px;
  height: 150px;
  border: 24px solid rgba(231, 78, 47, 0.55);
  border-radius: 50%;
  content: "";
}

.hero-card span,
.hero-card small {
  position: relative;
  z-index: 1;
  display: block;
}

.hero-card span {
  margin-bottom: 14px;
  color: #f4c95d;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-card strong {
  position: relative;
  z-index: 1;
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.65rem;
  line-height: 1.15;
}

.hero-card small {
  margin-top: 18px;
  color: #cbd5e1;
}

.article-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  gap: 54px;
  align-items: start;
  padding-bottom: 70px;
}

.article {
  min-width: 0;
  padding: 42px clamp(22px, 5vw, 62px) 56px;
  border: 1px solid rgba(16, 24, 39, 0.11);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}

.article > p:first-child {
  margin-top: 0;
}

.article p,
.article li {
  max-width: 74ch;
}

.article strong {
  font-weight: 800;
}

.toc {
  position: sticky;
  top: 24px;
  padding: 22px;
  border-top: 5px solid var(--teal);
  border-radius: 0 0 16px 16px;
  background: rgba(255, 253, 248, 0.78);
}

.toc strong {
  display: block;
  margin-bottom: 12px;
  font-size: 13px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.toc a {
  display: block;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
}

.toc a:last-child {
  border-bottom: 0;
}

.answer-box,
.note,
.myth,
.formula {
  margin: 30px 0;
  padding: 22px 24px;
  border-radius: 16px;
}

.answer-box {
  border-left: 6px solid var(--accent);
  background: #fff1ea;
}

.answer-box b,
.note b,
.myth b,
.formula b {
  display: block;
  margin-bottom: 5px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.answer-box p,
.note p,
.myth p,
.formula p {
  margin: 0;
}

.note {
  border: 1px solid rgba(15, 117, 109, 0.25);
  background: var(--teal-soft);
}

.myth {
  border: 1px dashed rgba(169, 46, 26, 0.5);
  background: #fff7f3;
}

.formula {
  border: 1px solid rgba(219, 165, 43, 0.45);
  background: #fff6d8;
  font-variant-numeric: tabular-nums;
}

.formula code {
  display: block;
  margin-top: 10px;
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: clamp(0.9rem, 2.5vw, 1.08rem);
  white-space: normal;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 28px 0;
}

.card-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mini-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

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

.mini-card b {
  display: block;
  margin-bottom: 7px;
  line-height: 1.25;
}

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

figure {
  margin: 34px 0;
}

.diagram {
  padding: 24px;
  border: 1px solid rgba(16, 24, 39, 0.14);
  border-radius: 18px;
  background: linear-gradient(135deg, #111a2b, #263750);
  color: #fff;
}

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

.diagram-cell {
  display: grid;
  min-height: 82px;
  place-items: center;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 1.75rem;
  font-weight: 900;
  text-align: center;
}

.diagram-cell small {
  display: block;
  color: #cbd5e1;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

figcaption {
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.45;
}

.meter {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
  margin: 28px 0 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.meter span {
  padding: 16px 10px;
  font-size: 13px;
  font-weight: 850;
  text-align: center;
}

.meter span:nth-child(1) {
  background: #d8efe9;
}

.meter span:nth-child(2) {
  background: #fff0bd;
}

.meter span:nth-child(3) {
  color: #fff;
  background: #c9472e;
}

table {
  width: 100%;
  margin: 28px 0;
  border-collapse: collapse;
  font-size: 16px;
}

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

th {
  color: #fff;
  background: var(--ink);
  font-size: 13px;
  letter-spacing: 0.04em;
}

tr:nth-child(even) td {
  background: rgba(235, 226, 210, 0.38);
}

.steps {
  margin: 28px 0;
  padding: 0;
  counter-reset: step;
  list-style: none;
}

.steps li {
  position: relative;
  min-height: 54px;
  margin: 0 0 18px;
  padding-left: 68px;
}

.steps li::before {
  position: absolute;
  top: -2px;
  left: 0;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--accent);
  content: counter(step);
  counter-increment: step;
  font-weight: 900;
}

.checklist {
  padding-left: 0;
  list-style: none;
}

.checklist li {
  position: relative;
  margin: 10px 0;
  padding-left: 31px;
}

.checklist li::before {
  position: absolute;
  top: 0;
  left: 0;
  color: var(--teal);
  content: "✓";
  font-weight: 950;
}

.faq {
  margin-top: 46px;
  padding-top: 4px;
  border-top: 1px solid var(--line);
}

details {
  border-bottom: 1px solid var(--line);
}

summary {
  padding: 18px 4px;
  cursor: pointer;
  font-weight: 820;
  line-height: 1.35;
}

details p {
  margin: -5px 4px 20px;
  color: var(--ink-soft);
}

.related {
  padding: 54px 0 66px;
  border-top: 1px solid rgba(16, 24, 39, 0.12);
  background: rgba(235, 226, 210, 0.45);
}

.related h2 {
  margin-top: 0;
}

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

.related a {
  display: flex;
  min-height: 145px;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  border: 1px solid rgba(16, 24, 39, 0.12);
  border-radius: 16px;
  color: var(--ink);
  background: var(--card);
  text-decoration: none;
}

.related a:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.related a small {
  color: var(--teal);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.related a b {
  margin-top: 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.22rem;
  line-height: 1.2;
}

.site-footer {
  padding: 34px 0 42px;
  color: #cbd5e1;
  background: var(--ink);
  font-size: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: start;
}

.site-footer p {
  max-width: 800px;
  margin: 0 0 10px;
}

.site-footer a {
  color: #fff;
}

.footer-tag {
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  color: #f4c95d;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .hero-grid,
  .article-grid {
    grid-template-columns: 1fr;
  }

  .hero-card {
    max-width: 560px;
  }

  .toc {
    position: static;
    order: -1;
  }

  .card-grid.three,
  .related-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 650px) {
  body {
    font-size: 17px;
  }

  .wrap {
    width: min(calc(100% - 24px), var(--max));
  }

  .header-inner {
    min-height: auto;
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 0;
  }

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

  .hero {
    padding-top: 36px;
  }

  h1 {
    font-size: clamp(2.45rem, 14vw, 4.15rem);
  }

  .article {
    padding: 30px 19px 40px;
    border-radius: 16px;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

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

  table {
    display: block;
    overflow-x: auto;
    white-space: normal;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .site-header,
  .toc,
  .related {
    display: none;
  }

  body {
    background: #fff;
  }

  .article {
    border: 0;
    box-shadow: none;
  }
}


/* --- добавлено SEO 2026-07-27: главная-хаб и блок оффера --- */
.rejilla{display:grid;gap:1rem;grid-template-columns:repeat(auto-fill,minmax(19rem,1fr));margin:1.4rem 0 2.6rem}
.tarjeta{display:block;padding:1.05rem 1.15rem;border:1px solid var(--line,#1d1b18);border-radius:.7rem;
  background:var(--panel,#fff);text-decoration:none;color:inherit;transition:transform .12s ease,box-shadow .12s ease}
.tarjeta:hover,.tarjeta:focus-visible{transform:translateY(-2px);box-shadow:0 6px 0 var(--line,#1d1b18)}
.tarjeta b{display:block;font-size:1.02rem;line-height:1.3;margin-bottom:.4rem}
.tarjeta span{display:block;font-size:.9rem;line-height:1.45;color:var(--muted,#5a544b)}
.kind-index .hero p{max-width:52rem}
.oferta{margin:2.2rem 0 .4rem;padding:1.15rem 1.2rem;border:1px solid var(--line,#1d1b18);
  border-radius:.7rem;background:var(--panel,#fff)}
.oferta-btn{display:inline-block;padding:.72rem 1.15rem;border-radius:.55rem;
  background:var(--accent,#ffb000);color:#14120f;font-weight:700;text-decoration:none;
  border:1px solid var(--line,#1d1b18)}
.oferta-btn:hover,.oferta-btn:focus-visible{filter:brightness(.95)}
.oferta-nota{margin:.7rem 0 0;font-size:.83rem;line-height:1.5;color:var(--muted,#5a544b)}
@media(max-width:640px){.oferta-btn{display:block;text-align:center}}
