/* ФОП Помічник — сторінки «Реквізити для сплати податків ФОП» (/rekvizyty).
   Підключається після styles.css і бере з нього токени (кольори, радіуси, тіні, шрифт). */

/* ---------- Перший екран ---------- */

.rq-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: calc(var(--header-h) + clamp(20px, 3vw, 36px)) 0 clamp(40px, 5vw, 64px);
  color: #fff;
  background: var(--grad-header);
  border-radius: 0 0 clamp(28px, 4vw, 48px) clamp(28px, 4vw, 48px);
}

.rq-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(255, 255, 255, 0.14) 1.2px, transparent 1.3px);
  background-size: 34px 34px;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 85% 30%, #000 0%, transparent 75%);
  mask-image: radial-gradient(ellipse 60% 70% at 85% 30%, #000 0%, transparent 75%);
}

.rq-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 640px;
  height: 640px;
  right: -200px;
  top: -200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(121, 134, 220, 0.42) 0%, rgba(57, 73, 171, 0) 62%);
  pointer-events: none;
}

.rq-crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 0;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
  font-size: 0.875rem;
  font-weight: 600;
}

.rq-crumbs li {
  display: inline-flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.72);
}

.rq-crumbs li + li::before {
  content: "";
  width: 6px;
  height: 6px;
  margin: 0 10px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.6;
}

.rq-crumbs a {
  color: inherit;
}

.rq-crumbs a:hover {
  color: #fff;
}

.rq-crumbs [aria-current] {
  color: #fff;
}

.rq-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  color: var(--gold-300);
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rq-eyebrow::before {
  content: "";
  width: 22px;
  height: 3px;
  border-radius: 2px;
  background: var(--gold);
}

.rq-h1 {
  max-width: 22ch;
  font-size: clamp(2rem, 1.25rem + 3vw, 3.5rem);
  letter-spacing: -0.04em;
  line-height: 1.04;
}

.rq-h1 span {
  color: var(--gold-300);
}

.rq-h1--hub {
  max-width: 16ch;
  font-size: clamp(2.5rem, 1.4rem + 4.2vw, 4.5rem);
}

.rq-sub {
  max-width: 44rem;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  line-height: 1.6;
}

.rq-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
  list-style: none;
}

.rq-chips li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
  font-size: 0.9375rem;
  font-weight: 600;
}

.rq-chips .icon {
  font-size: 18px;
  color: var(--gold-300);
}

/* «Коротка відповідь» — для людей і для відповідей пошуковиків */
.rq-answer {
  max-width: 860px;
  margin-top: clamp(24px, 3vw, 32px);
  padding: clamp(20px, 2.6vw, 28px);
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.09);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16), 0 20px 50px -24px rgba(13, 22, 66, 0.6);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.rq-answer__label {
  margin-bottom: 8px;
  color: var(--gold-300);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.rq-answer__text {
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.92);
}

.rq-answer__text b,
.rq-answer__iban {
  color: #fff;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
  word-break: break-word;
}

.rq-answer__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-top: 20px;
}

.rq-answer .icon {
  font-size: 20px;
}

.rq-checked {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9375rem;
  font-weight: 600;
}

.rq-answer > .rq-checked {
  margin-top: 14px;
}

.rq-checked .icon {
  color: #81c784;
  font-size: 20px;
}

/* ---------- Пошук ---------- */

.rq-search,
.rq-filter {
  position: relative;
  max-width: 720px;
  margin-top: 28px;
}

.rq-filter {
  margin-top: 18px;
}

.rq-search > .icon,
.rq-filter > .icon {
  position: absolute;
  left: 20px;
  top: 50%;
  translate: 0 -50%;
  font-size: 24px;
  color: var(--navy-500);
  pointer-events: none;
}

.rq-search input,
.rq-filter input {
  width: 100%;
  height: 64px;
  padding: 0 20px 0 56px;
  border: 0;
  border-radius: var(--r-md);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 1.125rem;
  font-weight: 600;
  box-shadow: 0 18px 40px -18px rgba(13, 22, 66, 0.55);
  -webkit-appearance: none;
  appearance: none;
}

.rq-filter input {
  height: 56px;
  font-size: 1.0625rem;
}

.rq-search input::placeholder,
.rq-filter input::placeholder {
  color: var(--hint);
  font-weight: 500;
}

.rq-search input:focus,
.rq-filter input:focus {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.rq-results {
  position: absolute;
  z-index: 20;
  inset: calc(100% + 8px) 0 auto;
  max-height: min(420px, 60vh);
  overflow-y: auto;
  margin: 0;
  padding: 6px;
  list-style: none;
  border-radius: var(--r-md);
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow-float);
}

.rq-results li a,
.rq-results li > span {
  display: grid;
  gap: 2px;
  padding: 12px 14px;
  border-radius: 12px;
  color: inherit;
}

.rq-results li a:hover,
.rq-results li a:focus-visible,
.rq-results li[aria-selected="true"] a {
  background: #eef0fb;
  outline: none;
}

.rq-results b {
  font-weight: 700;
}

.rq-results small {
  color: var(--muted);
  font-size: 0.875rem;
}

.rq-results mark {
  padding: 0 1px;
  border-radius: 3px;
  background: #fff3c4;
  color: inherit;
}

.rq-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 36px;
  margin-top: 32px;
  list-style: none;
}

.rq-stats li {
  display: grid;
}

.rq-stats b {
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--gold-300);
}

.rq-stats span {
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.9375rem;
  font-weight: 600;
}

/* ---------- Розкладка ---------- */

.rq-main {
  padding-top: clamp(36px, 5vw, 56px);
}

.rq-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 48px;
}

@media (min-width: 1140px) {
  .rq-layout {
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 56px;
  }

  .rq-aside {
    position: sticky;
    top: calc(var(--header-h) + 24px);
    align-self: start;
  }
}

@media (max-width: 1139px) {
  .rq-aside {
    display: none;
  }
}

.rq-toc {
  padding: 22px;
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: var(--shadow-card), inset 0 0 0 1px rgba(26, 35, 126, 0.05);
}

.rq-toc__title {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rq-toc ol {
  display: grid;
  gap: 2px;
  list-style: none;
}

.rq-toc a {
  display: block;
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 600;
}

.rq-toc a:hover,
.rq-toc a.is-active {
  background: #eef0fb;
  color: var(--navy);
}

.rq-section {
  margin-top: clamp(56px, 7vw, 88px);
}

.rq-section--first {
  margin-top: 0;
}

.rq-head {
  margin-bottom: 24px;
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.rq-head .kicker {
  margin-bottom: 12px;
}

.rq-h2 {
  font-size: clamp(1.625rem, 1.2rem + 1.6vw, 2.375rem);
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.rq-lead {
  max-width: 46rem;
  margin-top: 12px;
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 1.65;
}

.rq-muted {
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.rq-more {
  margin-top: 20px;
  color: var(--muted);
  font-weight: 600;
}

.rq-more a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 700;
}

.rq-arrow {
  rotate: -90deg;
  font-size: 20px;
}

.rq-nowrap {
  white-space: nowrap;
}

.rq-grid2,
.rq-grid3 {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
}

@media (min-width: 860px) {
  .rq-grid2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

/* ---------- Мітки платежів (кольори — як у застосунку) ---------- */

.rq-tag {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.rq-tag--ep {
  background: #e8eaf6;
  color: var(--navy);
}

.rq-tag--vz {
  background: #e0f2f1;
  color: var(--teal);
}

.rq-tag--esv {
  background: #f3e5f5;
  color: var(--purple);
}

/* ---------- Картка рахунку ---------- */

.rq-acc {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(20px, 2.6vw, 28px);
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: var(--shadow-card), inset 0 0 0 1px rgba(26, 35, 126, 0.05);
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.rq-acc--main {
  padding: clamp(24px, 3.4vw, 40px);
  box-shadow: 0 18px 50px -20px rgba(26, 35, 126, 0.28), inset 0 0 0 1px rgba(26, 35, 126, 0.06);
}

.rq-acc--main::before {
  content: "";
  position: absolute;
  inset: 0 24px auto;
  height: 4px;
  border-radius: 0 0 4px 4px;
  background: var(--grad-gold);
}

.rq-acc__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.rq-acc__code {
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.rq-acc__title {
  margin-top: 14px;
  font-size: clamp(1.1875rem, 1.05rem + 0.6vw, 1.5rem);
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.rq-acc--main .rq-acc__title {
  font-size: clamp(1.375rem, 1.1rem + 1vw, 1.875rem);
}

.rq-acc__lead {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.9875rem;
  line-height: 1.55;
}

.rq-fields {
  display: grid;
  gap: 0;
  margin: 20px 0 0;
}

.rq-field {
  display: grid;
  gap: 4px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.rq-field:first-child {
  border-top: 0;
}

.rq-field dt {
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.rq-field dd {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
}

.rq-val {
  font-weight: 700;
  line-height: 1.45;
  word-break: break-word;
  -webkit-user-select: all;
  user-select: all;
}

.rq-val--iban {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.03em;
}

.rq-field--iban .rq-val {
  font-size: clamp(1.125rem, 1rem + 0.7vw, 1.5rem);
  font-weight: 800;
  color: var(--navy);
}

/* У вузьких картках (військовий збір, ЄСВ) IBAN — у рядок, а кнопки — лише значком */
.rq-acc:not(.rq-acc--main) .rq-field--iban .rq-val {
  font-size: clamp(1.0625rem, 0.98rem + 0.35vw, 1.1875rem);
}

.rq-acc:not(.rq-acc--main) .rq-copy {
  width: 40px;
  justify-content: center;
  padding: 0;
}

.rq-acc:not(.rq-acc--main) .rq-copy span {
  display: none;
}

.rq-purpose {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.rq-copy {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  background: #eef0fb;
  color: var(--navy);
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, transform 0.15s;
}

.rq-copy .icon {
  font-size: 18px;
}

.rq-copy:hover {
  background: #e0e4f7;
}

.rq-copy:active {
  transform: scale(0.96);
}

.rq-copy--sm {
  height: 30px;
  padding: 0 8px;
  vertical-align: middle;
}

.rq-copy--sm span {
  display: none;
}

.rq-copy.is-copied,
.rq-copy-all.is-copied {
  background: #e8f5e9;
  color: var(--success-700);
}

@media (max-width: 520px) {
  .rq-copy:not(.rq-copy--sm) span {
    display: none;
  }

  .rq-copy {
    width: 40px;
    justify-content: center;
    padding: 0;
  }
}

.rq-acc__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.rq-validity {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 600;
}

.rq-validity .icon {
  font-size: 20px;
  color: var(--warning);
}

.rq-validity--ok .icon {
  color: var(--success);
}

.rq-copy-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 12px;
  background: var(--navy);
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.15s;
}

.rq-copy-all:hover {
  background: var(--navy-500);
}

.rq-copy-all .icon {
  font-size: 18px;
}

.rq-next {
  display: flex;
  gap: 12px;
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: var(--r);
  background: #fff8e1;
  box-shadow: inset 0 0 0 1px #fbe7b0;
}

.rq-next > .icon {
  flex: none;
  margin-top: 2px;
  font-size: 22px;
  color: #b45309;
}

.rq-next p + p {
  margin-top: 6px;
}

.rq-next .rq-copy {
  margin-left: 10px;
  vertical-align: middle;
}

/* ---------- Таблиці ---------- */

.rq-table-wrap {
  overflow-x: auto;
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: var(--shadow-card), inset 0 0 0 1px rgba(26, 35, 126, 0.05);
}

.rq-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9875rem;
}

.rq-table th,
.rq-table td {
  padding: 14px 18px;
  text-align: left;
  vertical-align: top;
  border-top: 1px solid var(--line);
}

.rq-table thead th {
  border-top: 0;
  background: #f8f9fd;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.rq-table tbody th {
  font-weight: 700;
}

.rq-table--rates td {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.rq-table--list tbody th a {
  color: var(--navy);
  font-weight: 700;
}

.rq-table--list tbody th a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.rq-table--list small {
  display: block;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 600;
}

.rq-table--list td:last-child {
  white-space: nowrap;
}

.rq-table tbody tr:hover {
  background: #fafbff;
}

@media (max-width: 640px) {
  .rq-table--list thead {
    display: none;
  }

  .rq-table--list tr {
    display: grid;
    gap: 2px;
    padding: 12px 16px;
    border-top: 1px solid var(--line);
  }

  .rq-table--list tbody tr:first-child {
    border-top: 0;
  }

  .rq-table--list th,
  .rq-table--list td {
    padding: 0;
    border: 0;
  }

  .rq-table--list td:nth-child(2) {
    color: var(--muted);
    font-size: 0.875rem;
  }

  .rq-table--list td:last-child {
    white-space: normal;
    font-size: 0.9375rem;
  }
}

/* Таблиця «Призначення платежу» на телефоні — картками */
@media (max-width: 640px) {
  .rq-table--stack thead {
    display: none;
  }

  .rq-table--stack tr {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 4px 10px;
    padding: 14px 16px;
    border-top: 1px solid var(--line);
  }

  .rq-table--stack tbody tr:first-child {
    border-top: 0;
  }

  .rq-table--stack th,
  .rq-table--stack td {
    padding: 0;
    border: 0;
  }

  .rq-table--stack td:nth-child(2) {
    color: var(--muted);
    font-size: 0.875rem;
    align-self: center;
  }

  .rq-table--stack td:nth-child(3) {
    grid-column: 1 / -1;
  }

  .rq-table--stack td:nth-child(4) {
    grid-column: 1 / -1;
    color: var(--muted);
    font-size: 0.875rem;
  }

  .rq-table--stack td:nth-child(4)::before {
    content: "До ";
  }
}

/* Ставки: на вузькому екрані таблиця гортається, а назва рядка лишається на місці */
.rq-table--rates tbody th,
.rq-table--rates thead th:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  background: #fff;
}

.rq-table--rates thead th:first-child {
  background: #f8f9fd;
}

.rq-note {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: var(--r);
  background: #f1f3fb;
  color: var(--ink);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.rq-note > .icon {
  flex: none;
  margin-top: 1px;
  font-size: 20px;
  color: var(--navy-500);
}

/* ---------- Строки ---------- */

.rq-timeline {
  display: grid;
  gap: 10px;
  list-style: none;
}

.rq-timeline__item {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border-radius: var(--r);
  background: #fff;
  box-shadow: var(--shadow-card), inset 4px 0 0 var(--navy-500);
}

.rq-timeline__item--military {
  box-shadow: var(--shadow-card), inset 4px 0 0 var(--teal);
}

.rq-timeline__item--esv {
  box-shadow: var(--shadow-card), inset 4px 0 0 var(--purple);
}

.rq-timeline__item--declaration {
  box-shadow: var(--shadow-card), inset 4px 0 0 var(--gold);
}

.rq-timeline time {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--navy);
}

.rq-timeline__what {
  font-weight: 700;
}

.rq-timeline__who {
  color: var(--muted);
  font-size: 0.9375rem;
}

@media (max-width: 520px) {
  .rq-timeline__item {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

/* ---------- Населені пункти ---------- */

.rq-places {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}

.rq-places li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 10px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(26, 35, 126, 0.1);
  font-size: 0.9375rem;
  font-weight: 600;
}

.rq-places li.is-center {
  background: var(--navy);
  color: #fff;
  box-shadow: none;
}

.rq-place__cat {
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 700;
}

.is-center .rq-place__cat {
  color: rgba(255, 255, 255, 0.7);
}

.rq-place__mark {
  margin-left: 2px;
  padding: 1px 7px;
  border-radius: 6px;
  background: var(--gold);
  color: var(--navy-900);
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.rq-places + .rq-note {
  margin-top: 20px;
}

.rq-places ~ .rq-muted {
  margin-top: 14px;
  font-size: 0.8125rem;
}

/* ---------- Кроки, факти, види платежів ---------- */

.rq-steps {
  display: grid;
  gap: 12px;
  counter-reset: rq-step;
  list-style: none;
}

.rq-steps li {
  position: relative;
  padding: 18px 20px 18px 66px;
  border-radius: var(--r);
  background: #fff;
  box-shadow: var(--shadow-card);
  line-height: 1.55;
  counter-increment: rq-step;
}

.rq-steps li::before {
  content: counter(rq-step);
  position: absolute;
  left: 18px;
  top: 16px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--grad-primary);
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 800;
}

.rq-facts {
  display: grid;
  gap: 12px;
  list-style: none;
}

@media (min-width: 860px) {
  .rq-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.rq-facts li {
  display: flex;
  gap: 14px;
  padding: 20px;
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: var(--shadow-card);
  line-height: 1.55;
}

.rq-facts li > .icon {
  flex: none;
  width: 40px;
  height: 40px;
  padding: 9px;
  border-radius: 12px;
  background: #eef0fb;
  color: var(--navy-500);
}

.rq-facts b {
  display: block;
  margin-bottom: 4px;
}

.rq-facts a {
  font-weight: 700;
}

.rq-kind {
  padding: 24px;
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: var(--shadow-card);
}

.rq-kind h3 {
  margin: 16px 0 8px;
  font-size: 1.375rem;
  letter-spacing: -0.02em;
}

.rq-kind p {
  color: var(--muted);
  line-height: 1.6;
}

/* ---------- Питання (стилі .qa — зі styles.css) ---------- */

.rq-faq .qa__a b {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  word-break: break-word;
}

/* ---------- Посилання на громади й області ---------- */

.rq-links {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
  list-style: none;
}

.rq-links a {
  display: grid;
  gap: 2px;
  height: 100%;
  padding: 14px 16px;
  border-radius: var(--r);
  background: #fff;
  color: var(--ink);
  font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(26, 35, 126, 0.08);
  transition: box-shadow 0.2s, transform 0.2s var(--ease);
}

.rq-links a:hover {
  box-shadow: var(--shadow-hover), inset 0 0 0 1px rgba(26, 35, 126, 0.12);
  transform: translateY(-2px);
}

.rq-links small {
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 600;
}

.rq-group + .rq-group {
  margin-top: 28px;
}

.rq-group__title {
  margin-bottom: 12px;
  font-size: 1.1875rem;
  letter-spacing: -0.015em;
}

.rq-group__title small {
  margin-left: 6px;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0;
}

.rq-empty {
  padding: 24px;
  border-radius: var(--r-lg);
  background: #fff;
  color: var(--muted);
  text-align: center;
}

/* ---------- Заклик до застосунку ---------- */

.rq-cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: clamp(56px, 7vw, 88px);
  padding: clamp(28px, 4vw, 48px);
  border-radius: var(--r-xl);
  background: var(--grad-header);
  color: #fff;
}

.rq-cta::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 520px;
  height: 520px;
  right: -160px;
  bottom: -260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(249, 168, 37, 0.32) 0%, rgba(249, 168, 37, 0) 62%);
}

.rq-cta__eyebrow {
  color: var(--gold-300);
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rq-cta h2 {
  max-width: 30ch;
  margin-top: 12px;
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.rq-cta__list {
  display: grid;
  gap: 12px;
  margin-top: 24px;
  list-style: none;
}

.rq-cta__list li {
  display: flex;
  gap: 12px;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.5;
}

.rq-cta__list .icon {
  flex: none;
  font-size: 22px;
  color: var(--gold-300);
}

.rq-cta__list b {
  color: #fff;
}

.rq-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

/* ---------- Джерела ---------- */

.rq-sources {
  margin-top: clamp(48px, 6vw, 72px);
  padding: 24px;
  border-radius: var(--r-lg);
  background: #eef0f7;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.65;
}

.rq-sources h2 {
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.rq-sources ul {
  display: grid;
  gap: 6px;
  margin-bottom: 10px;
  padding-left: 18px;
}

.rq-sources a {
  font-weight: 600;
  word-break: break-word;
}

/* Друк: лише реквізити */
@media print {
  .site-header,
  .site-footer,
  .rq-aside,
  .rq-cta,
  .rq-copy,
  .rq-copy-all,
  .rq-search,
  .rq-filter {
    display: none !important;
  }

  .rq-hero {
    padding: 0;
    color: var(--ink);
    background: none;
  }

  .rq-hero .rq-answer {
    box-shadow: none;
  }
}

/* ---------- Ставки на сторінці громади ---------- */

.rq-rates {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
}

.rq-rate {
  padding: 18px;
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: var(--shadow-card);
}

.rq-rate__who {
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.rq-rate__sum {
  margin-top: 6px;
  color: var(--navy);
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.rq-rate__unit {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.45;
}

.rq-parts {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.9375rem;
}

.rq-steps .rq-val--iban {
  -webkit-user-select: all;
  user-select: all;
}

/* ---------- Короткі картки рахунків області (на сторінці громади) ---------- */

.rq-mini {
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 22px;
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: var(--shadow-card), inset 4px 0 0 var(--teal);
}

.rq-mini--esv {
  box-shadow: var(--shadow-card), inset 4px 0 0 var(--purple);
}

.rq-mini__title {
  font-weight: 800;
}

.rq-mini__title span {
  margin-left: 6px;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 700;
}

.rq-mini__iban {
  color: var(--navy);
  font-size: 1.125rem;
  font-weight: 800;
}

.rq-mini__meta {
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.rq-mini .rq-copy-all {
  justify-self: start;
  margin-top: 6px;
}

.rq-mini__next {
  display: flex;
  gap: 8px;
  color: #b45309;
  font-size: 0.875rem;
  font-weight: 600;
}

.rq-head .rq-lead a {
  font-weight: 700;
}
