/* rau-guides-20261007.css — стили 50 практических статей и хаба /voprosy/.
   Всё строго в области .rg-page / .rg-hub; глобальные header/footer не затрагиваются.
   Бренд: тёмно-синий #173354, бирюзовый #12a8a2, белый, светлый серо-голубой фон. */

.rg-page, .rg-hub {
  --rg-navy: #173354;
  --rg-navy-soft: #21456e;
  --rg-teal: #12a8a2;
  --rg-teal-dark: #0c7d78;
  --rg-teal-bg: #e6f4f3;
  --rg-ink: #22303e;
  --rg-mut: #5b6b7a;
  --rg-line: #d9e3ec;
  --rg-bg: #f3f7fa;
  --rg-card: #ffffff;
  --rg-amber: #8a5d0b;
  --rg-amber-bg: #fbf4e2;
  --rg-amber-line: #e3bd63;
  --rg-radius: 16px;
  --rg-shadow: 0 1px 2px rgba(23, 51, 84, .05), 0 10px 28px -18px rgba(23, 51, 84, .25);
}

.rg-page *, .rg-hub * { box-sizing: border-box; }

/* ==================== каркас ==================== */

.rg-page, .rg-hub {
  max-width: 1160px;
  margin: 0 auto;
  padding: 26px clamp(16px, 3.4vw, 40px) 56px;
  background: var(--rg-bg);
  border-radius: 22px;
  color: var(--rg-ink);
  font-size: 17px;
  line-height: 1.65;
  overflow-wrap: break-word;
}

.rg-page p, .rg-hub p { margin: 0 0 14px; }
.rg-page p:last-child, .rg-hub p:last-child { margin-bottom: 0; }

.rg-page a, .rg-hub a { color: var(--rg-teal-dark); }

.rg-page h1, .rg-hub h1 {
  margin: 14px 0 16px;
  font-size: clamp(30px, 3.6vw, 42px);
  line-height: 1.16;
  letter-spacing: -.015em;
  color: var(--rg-navy);
  max-width: 24ch;
  text-wrap: balance;
}

.rg-page h2, .rg-hub h2 {
  margin: 0 0 16px;
  font-size: clamp(21px, 2.4vw, 26px);
  line-height: 1.25;
  letter-spacing: -.01em;
  color: var(--rg-navy);
}

.rg-crumbs {
  margin: 0 0 18px;
  font-size: 13px;
  color: var(--rg-mut);
}
.rg-crumbs a { color: var(--rg-mut); text-decoration: none; }
.rg-crumbs a:hover { color: var(--rg-teal-dark); }
.rg-crumbs span { margin: 0 7px; color: #9fabb8; }

/* ==================== герой ==================== */

.rg-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 292px;
  gap: clamp(24px, 3vw, 40px);
  align-items: stretch;
  padding: clamp(24px, 3vw, 38px);
  background: var(--rg-card);
  border: 1px solid var(--rg-line);
  border-radius: var(--rg-radius);
  box-shadow: var(--rg-shadow);
}

.rg-hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin: 0 0 6px;
}

.rg-chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--rg-teal-bg);
  color: var(--rg-teal-dark);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
}

.rg-hero__num {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--rg-mut);
}

.rg-lead {
  font-size: 19px;
  line-height: 1.6;
  color: #425262;
  max-width: 66ch;
}

.rg-pub {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  font-size: 14px;
  color: var(--rg-mut);
}
.rg-pub time { color: var(--rg-ink); font-weight: 600; }
.rg-dot { color: #9fabb8; }

.rg-hero__fig {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 208px;
  padding: 18px;
  border-radius: 14px;
  background: linear-gradient(158deg, #ffffff 0%, #edf5f6 55%, #e4eff1 100%);
  border: 1px solid var(--rg-line);
}
.rg-hero__fig svg { width: 100%; max-width: 230px; height: auto; }

/* ==================== общий макет статьи ==================== */

.rg-cols {
  display: grid;
  grid-template-columns: 262px minmax(0, 1fr);
  gap: clamp(24px, 3.4vw, 44px);
  margin-top: 30px;
  align-items: start;
}

.rg-content { max-width: 752px; min-width: 0; }

/* ---- содержание ---- */

.rg-toc { position: sticky; top: 22px; }

.rg-toc__box {
  background: var(--rg-card);
  border: 1px solid var(--rg-line);
  border-radius: 14px;
  padding: 16px 6px 14px 16px;
  box-shadow: var(--rg-shadow);
}

.rg-toc__sum {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--rg-mut);
  cursor: pointer;
  list-style: none;
  padding: 2px 16px 10px 2px;
  display: block;
}
.rg-toc__sum::-webkit-details-marker { display: none; }
.rg-toc__sum::after {
  content: "";
  float: right;
  margin-right: -10px;
  width: 8px;
  height: 8px;
  border-right: 2px solid #9fabb8;
  border-bottom: 2px solid #9fabb8;
  transform: rotate(45deg);
  transition: transform .18s ease;
  margin-top: 3px;
}
.rg-toc__box[open] .rg-toc__sum::after { transform: rotate(225deg); margin-top: 7px; }

.rg-toc__list { margin: 0; padding: 0 0 0 2px; list-style: none; counter-reset: rgc; }
.rg-toc__list li {
  counter-increment: rgc;
  border-left: 2px solid transparent;
}
.rg-toc__list li::before {
  content: counter(rgc);
  display: inline-block;
  width: 22px;
  font-size: 12.5px;
  font-weight: 600;
  color: #9fabb8;
}
.rg-toc__list a {
  display: inline-block;
  width: calc(100% - 26px);
  padding: 5px 0;
  font-size: 14.5px;
  line-height: 1.45;
  color: #3d4c5c;
  text-decoration: none;
}
.rg-toc__list li:hover { border-left-color: #cfe5e4; }
.rg-toc__list a:hover { color: var(--rg-teal-dark); }
.rg-toc__list li.is-active { border-left-color: var(--rg-teal); }
.rg-toc__list li.is-active a { color: var(--rg-teal-dark); font-weight: 600; }

/* ---- быстрый ответ ---- */

.rg-quick {
  padding: 20px 24px 18px;
  background: var(--rg-card);
  border: 1px solid var(--rg-line);
  border-left: 4px solid var(--rg-teal);
  border-radius: 4px 14px 14px 4px;
  box-shadow: var(--rg-shadow);
}
.rg-quick__text { font-size: 17.5px; line-height: 1.66; color: #2c3b4a; }

.rg-lab {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.rg-lab--teal { color: var(--rg-teal-dark); }
.rg-lab--navy { color: var(--rg-navy); }
.rg-lab--amber { color: var(--rg-amber); }

/* ---- секции ---- */

.rg-sec { margin-top: 34px; scroll-margin-top: 24px; }
.rg-sec > h2 { scroll-margin-top: 24px; }
.rg-sec p { font-size: 17px; line-height: 1.7; color: #33424f; }

.rg-ul { margin: 4px 0 14px; padding: 0; list-style: none; }
.rg-ul li {
  position: relative;
  padding: 3px 0 3px 24px;
  font-size: 16.5px;
  line-height: 1.6;
  color: #33424f;
}
.rg-ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: .72em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--rg-teal);
}

/* ---- таблица ---- */

.rg-twrap {
  overflow-x: auto;
  border: 1px solid var(--rg-line);
  border-radius: 12px;
  background: var(--rg-card);
  box-shadow: var(--rg-shadow);
  -webkit-overflow-scrolling: touch;
}
.rg-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; }
.rg-table th {
  padding: 12px 14px;
  background: var(--rg-navy);
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .02em;
  text-align: left;
  white-space: nowrap;
}
.rg-table td {
  padding: 12px 14px;
  border-top: 1px solid var(--rg-line);
  vertical-align: top;
  line-height: 1.55;
  color: #33424f;
}
.rg-table tbody tr:nth-child(even) { background: #f8fbfd; }
.rg-table td:first-child { font-weight: 600; color: var(--rg-navy); }

/* ---- чек-лист ---- */

.rg-check .rg-checklist {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}
.rg-checklist li {
  position: relative;
  padding: 12px 16px 12px 48px;
  background: var(--rg-card);
  border: 1px solid var(--rg-line);
  border-radius: 12px;
  font-size: 16px;
  line-height: 1.55;
  color: #33424f;
}
.rg-checklist li::before {
  content: "✓";
  position: absolute;
  left: 14px;
  top: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--rg-teal-bg);
  color: var(--rg-teal-dark);
  font-size: 14px;
  font-weight: 700;
}

/* ---- условная ситуация ---- */

.rg-scen {
  margin-top: 34px;
  padding: 18px 22px;
  background: #eff4fa;
  border: 1px solid #d7e2ef;
  border-radius: 14px;
}
.rg-scen__text { font-size: 16.5px; line-height: 1.65; color: #33424f; font-style: italic; }

/* ---- важное ограничение ---- */

.rg-warn {
  margin-top: 26px;
  display: flex;
  gap: 14px;
  padding: 16px 20px;
  background: var(--rg-amber-bg);
  border: 1px solid var(--rg-amber-line);
  border-left: 4px solid var(--rg-amber-line);
  border-radius: 4px 12px 12px 4px;
}
.rg-warn__ico { flex: 0 0 auto; width: 22px; height: 22px; color: var(--rg-amber); margin-top: 2px; }
.rg-warn__text { font-size: 16px; line-height: 1.6; color: #4a3c1c; }

/* ---- FAQ ---- */

.rg-faq { display: grid; gap: 10px; }
.rg-faq__i {
  background: var(--rg-card);
  border: 1px solid var(--rg-line);
  border-radius: 12px;
  box-shadow: var(--rg-shadow);
  overflow: hidden;
}
.rg-faq__i summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 18px;
  font-size: 16.5px;
  font-weight: 600;
  color: var(--rg-navy);
  cursor: pointer;
  list-style: none;
}
.rg-faq__i summary::-webkit-details-marker { display: none; }
.rg-faq__i summary::after {
  content: "+";
  flex: 0 0 auto;
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
  color: var(--rg-teal-dark);
  transition: transform .18s ease;
}
.rg-faq__i[open] summary::after { content: "–"; }
.rg-faq__i[open] summary { border-bottom: 1px solid var(--rg-line); }
.rg-faq__a { padding: 14px 18px 16px; }
.rg-faq__a p { font-size: 16px; line-height: 1.65; color: #33424f; }

/* ---- источники ---- */

.rg-sources { margin: 0; padding: 0; list-style: none; counter-reset: rgsrc; display: grid; gap: 8px; }
.rg-sources li {
  counter-increment: rgsrc;
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 11px 14px;
  background: var(--rg-card);
  border: 1px solid var(--rg-line);
  border-radius: 10px;
}
.rg-sources li::before {
  content: counter(rgsrc);
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--rg-teal-bg);
  color: var(--rg-teal-dark);
  font-size: 12.5px;
  font-weight: 700;
}
.rg-sources a {
  font-size: 15.5px;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}
.rg-src__arr { color: #9fabb8; font-size: 14px; }

/* ---- читайте также ---- */

.rg-rel {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(224px, 1fr));
  gap: 12px;
}
.rg-relcard {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 16px 16px 14px;
  background: var(--rg-card);
  border: 1px solid var(--rg-line);
  border-radius: 13px;
  text-decoration: none;
  box-shadow: var(--rg-shadow);
  transition: border-color .16s ease, transform .16s ease;
}
.rg-relcard:hover { border-color: var(--rg-teal); transform: translateY(-2px); }
.rg-relcard__k {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--rg-teal-dark);
}
.rg-relcard__t { font-size: 15.5px; font-weight: 600; line-height: 1.4; color: var(--rg-navy); }
.rg-relcard:hover .rg-relcard__t { color: var(--rg-teal-dark); }
.rg-relcard__arr {
  margin-top: auto;
  align-self: flex-end;
  color: #9fabb8;
  font-size: 17px;
  transition: color .16s ease, transform .16s ease;
}
.rg-relcard:hover .rg-relcard__arr { color: var(--rg-teal-dark); transform: translateX(2px); }

/* ---- нижняя навигация ---- */

.rg-footnav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid var(--rg-line);
}
.rg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  border-radius: 11px;
  background: var(--rg-navy);
  color: #fff !important;
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none !important;
  transition: background .16s ease;
}
.rg-btn:hover { background: var(--rg-navy-soft); }
.rg-link {
  font-size: 15.5px;
  font-weight: 600;
  text-underline-offset: 3px;
}

/* ==================== хаб ==================== */

.rg-hub { padding-bottom: 48px; }

.rg-hub .rg-lead { max-width: 72ch; }

.rg-tools {
  margin-top: 22px;
  padding: 18px 20px;
  background: var(--rg-card);
  border: 1px solid var(--rg-line);
  border-radius: var(--rg-radius);
  box-shadow: var(--rg-shadow);
}

.rg-search {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--rg-line);
  border-radius: 11px;
  font: inherit;
  font-size: 16px;
  color: var(--rg-ink);
  background: #fbfdfe;
}
.rg-search::placeholder { color: #93a2b1; }
.rg-search:focus {
  outline: none;
  border-color: var(--rg-teal);
  box-shadow: 0 0 0 3px rgba(18, 168, 162, .16);
  background: #fff;
}

.rg-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.rg-chipbtn {
  padding: 8px 15px;
  border: 1px solid var(--rg-line);
  border-radius: 999px;
  background: #fff;
  color: var(--rg-mut);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: color .14s ease, border-color .14s ease, background .14s ease;
}
.rg-chipbtn:hover { color: var(--rg-navy); border-color: #b9cadb; }
.rg-chipbtn[aria-pressed="true"] {
  background: var(--rg-navy);
  border-color: var(--rg-navy);
  color: #fff;
}

.rg-count {
  margin: 12px 0 0;
  font-size: 13.5px;
  color: var(--rg-mut);
}

.rg-group { margin-top: 34px; }
.rg-group > h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.rg-group__n {
  padding: 2px 10px;
  border-radius: 999px;
  background: #e5edf4;
  color: var(--rg-navy);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
}

.rg-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(248px, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.rg-card {
  display: flex;
  flex-direction: column;
  gap: 7px;
  height: 100%;
  padding: 16px 17px 15px;
  background: var(--rg-card);
  border: 1px solid var(--rg-line);
  border-radius: 13px;
  text-decoration: none;
  box-shadow: var(--rg-shadow);
  transition: border-color .16s ease, transform .16s ease;
}
.rg-card:hover { border-color: var(--rg-teal); transform: translateY(-2px); }
.rg-card__k {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--rg-teal-dark);
}
.rg-card__t {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.42;
  color: var(--rg-navy);
}
.rg-card:hover .rg-card__t { color: var(--rg-teal-dark); }
.rg-card__d {
  font-size: 14px;
  line-height: 1.5;
  color: var(--rg-mut);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rg-empty {
  margin-top: 34px;
  padding: 42px 24px;
  text-align: center;
  background: var(--rg-card);
  border: 1.5px dashed #c4d3e0;
  border-radius: var(--rg-radius);
}
.rg-empty__t { margin: 0 0 6px; font-size: 19px; font-weight: 700; color: var(--rg-navy); }
.rg-empty__d { margin: 0 0 18px; font-size: 15px; color: var(--rg-mut); }
.rg-empty .rg-btn { margin: 0 auto; }

.rg-hub .rg-footnav { margin-top: 44px; }

/* ==================== адаптив ==================== */

@media (max-width: 1020px) {
  .rg-cols { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .rg-toc { position: static; }
  .rg-toc__box { padding-bottom: 12px; }
}

@media (max-width: 860px) {
  .rg-hero { grid-template-columns: 1fr; }
  .rg-hero__fig { min-height: 0; padding: 14px; order: -1; }
  .rg-hero__fig svg { max-width: 172px; }
}

@media (max-width: 700px) {
  .rg-page, .rg-hub { padding: 18px 14px 40px; border-radius: 16px; font-size: 16.5px; }
  .rg-hero { padding: 20px 18px; }
  .rg-page h1, .rg-hub h1 { font-size: clamp(27px, 7.4vw, 34px); }
  .rg-lead { font-size: 17.5px; }
  .rg-tools { padding: 14px; }
  .rg-cards { grid-template-columns: 1fr; }
  .rg-rel { grid-template-columns: 1fr; }
  .rg-quick { padding: 16px 16px 15px; }
  .rg-warn { padding: 14px 14px 14px 16px; }
  .rg-footnav { flex-direction: column; align-items: stretch; }
  .rg-footnav .rg-btn { width: 100%; }
}
