/* AmigoPay blog pages. All new styles are isolated with the ab- prefix. */
.ab-page {
  --ab-ink: var(--ink, #11101d);
  --ab-soft: var(--ink-soft, #292642);
  --ab-muted: var(--muted, #74798f);
  --ab-purple: var(--purple, #6923d2);
  --ab-purple-deep: var(--purple-deep, #4d0ead);
  --ab-orange: var(--orange, #ff8a10);
  --ab-green: #20a76b;
  --ab-line: rgba(76, 46, 111, 0.12);
  --ab-panel: rgba(255, 255, 255, 0.78);
  --ab-shadow: 0 20px 58px rgba(65, 35, 92, 0.075);
  color: var(--ab-ink);
}

.ab-page *,
.ab-page *::before,
.ab-page *::after {
  box-sizing: border-box;
}

.ab-page a {
  color: inherit;
}

.ab-page button,
.ab-page input {
  font: inherit;
}

.ab-page a:focus-visible,
.ab-page button:focus-visible,
.ab-page input:focus-visible {
  outline: 3px solid rgba(105, 35, 210, 0.3);
  outline-offset: 3px;
}

.ab-main {
  min-width: 0;
  padding-top: 34px;
}

.ab-section {
  margin-top: 48px;
}

.ab-section-heading {
  margin: 0 0 18px;
  font-size: clamp(27px, 2.25vw, 38px);
  font-weight: 780;
  letter-spacing: -0.045em;
  line-height: 1.12;
}

.ab-kicker {
  display: inline-flex;
  min-height: 25px;
  align-items: center;
  border-radius: 999px;
  padding: 4px 10px;
  background: #f1eaff;
  color: #6423ca;
  font-size: 12px;
  font-weight: 760;
  line-height: 1.2;
}

.ab-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: 13px;
  padding: 0 20px;
  background: transparent;
  font-size: 14px;
  font-weight: 760;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease, box-shadow 220ms ease;
}

.ab-button:hover {
  transform: translateY(-2px);
}

.ab-button-primary {
  background: linear-gradient(135deg, #7836e2, #4e10b1);
  box-shadow: 0 13px 28px rgba(85, 24, 177, 0.2);
  color: #fff;
}

.ab-button-primary:hover {
  box-shadow: 0 16px 32px rgba(85, 24, 177, 0.27);
}

/* Общий цвет ссылок не должен перекрашивать фиолетовые кнопки в чёрный. */
.ab-page .ab-button-primary,
.ab-page a.ab-button-primary,
.ab-page button.ab-button-primary,
.ab-page .manager-cta,
.ab-page .message-form button,
.ab-page .ab-filter.is-active {
  color: #fff;
}

.ab-button-secondary {
  border-color: rgba(105, 35, 210, 0.2);
  background: rgba(255, 255, 255, 0.76);
  color: #5d20bf;
}

.ab-button-secondary:hover {
  border-color: rgba(105, 35, 210, 0.42);
  background: #fff;
}

.ab-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}

/* Blog index hero */
.ab-blog-hero {
  display: grid;
  min-height: 300px;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
  align-items: center;
  gap: 42px;
}

.ab-blog-hero-copy h1 {
  max-width: 640px;
  margin: 0;
  font-size: clamp(45px, 4.5vw, 70px);
  font-weight: 790;
  letter-spacing: -0.058em;
  line-height: 1.02;
}

.ab-blog-hero-copy > p {
  max-width: 590px;
  margin: 18px 0 0;
  color: var(--ab-muted);
  font-size: 17px;
  line-height: 1.62;
}

.ab-blog-hero-art {
  position: relative;
  display: grid;
  min-width: 0;
  place-items: center;
}

.ab-blog-hero-art::before {
  position: absolute;
  width: 78%;
  height: 64%;
  border-radius: 50%;
  background: rgba(126, 58, 220, 0.11);
  content: "";
  filter: blur(38px);
}

.ab-blog-hero-art img {
  position: relative;
  width: min(100%, 610px);
  max-height: 310px;
  object-fit: contain;
}

.ab-blog-hero-calculator,
.ab-article-hero-calculator {
  min-width: 0;
}

.ab-blog-hero-calculator .calculator-card {
  width: 100%;
  height: auto;
  min-height: 640px;
}

/* В статье используется тот же калькулятор, но в компактном представлении. */
.ab-article-hero-calculator {
  width: 100%;
  max-width: none;
  justify-self: stretch;
}

.ab-article-hero-calculator .calculator-card {
  width: 100%;
  height: auto;
  min-height: 0;
  padding: 18px;
  border-radius: 21px;
}

.ab-article-hero-calculator .calculator-heading {
  gap: 12px;
}

.ab-article-hero-calculator .calculator-heading-icon {
  width: 44px;
  height: 44px;
  flex-basis: 44px;
}

.ab-article-hero-calculator .calculator-heading-icon svg {
  width: 24px;
  height: 24px;
}

.ab-article-hero-calculator .calculator-heading h2 {
  font-size: 15px;
  line-height: 1.25;
}

.ab-article-hero-calculator .calculator-heading p {
  display: none;
}

.ab-article-hero-calculator .calculator-mode-switch {
  gap: 5px;
  margin-top: 10px;
  padding: 3px;
}

.ab-article-hero-calculator .calculator-mode-switch button {
  min-height: 34px;
  padding: 5px 7px;
  font-size: 10px;
}

.ab-article-hero-calculator .calculator-tabs {
  display: none !important;
}

.ab-article-hero-calculator .calculator-tab-list,
.ab-article-hero-calculator .calculator-tab-list-three {
  height: 42px !important;
  gap: 6px !important;
}

.ab-article-hero-calculator .calculator-tab {
  height: 42px !important;
  gap: 5px !important;
  padding: 0 7px !important;
  font-size: 10px !important;
}

.ab-article-hero-calculator .calculator-tab svg {
  width: 15px;
  height: 15px;
}

.ab-article-hero-calculator .calculator-form {
  margin-top: 9px;
  padding: 10px 12px;
}

.ab-article-hero-calculator .field-label {
  margin-bottom: 4px;
  font-size: 10px;
}

.ab-article-hero-calculator .money-field {
  height: 48px;
  grid-template-columns: minmax(0, 1fr) 100px;
}

.ab-article-hero-calculator .money-field input,
.ab-article-hero-calculator .money-field output,
.ab-article-hero-calculator .result-field input,
.ab-article-hero-calculator .result-field output {
  font-size: 20px;
}

.ab-article-hero-calculator .currency-picker-trigger {
  gap: 4px;
  padding: 0 7px;
}

.ab-article-hero-calculator .currency-flag-img {
  width: 21px;
  height: 21px;
  flex-basis: 21px;
}

.ab-article-hero-calculator .currency-picker-trigger > strong {
  font-size: 11px;
}

.ab-article-hero-calculator .exchange-divider {
  height: 25px;
}

.ab-article-hero-calculator .exchange-divider span {
  width: 25px;
  height: 25px;
}

.ab-article-hero-calculator .calculator-quick-panel {
  display: none;
}

.ab-article-hero-calculator .manager-cta {
  height: 40px;
  margin-top: 8px;
  font-size: 14px;
}

.ab-card-arrow {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(105, 35, 210, 0.16);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.84);
  color: var(--ab-purple);
}

/* Articles */
.ab-articles-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.ab-articles-header .ab-section-heading {
  margin: 0;
}

.ab-filter-list {
  display: flex;
  max-width: 100%;
  gap: 8px;
  overflow-x: auto;
  padding: 4px;
  scrollbar-width: none;
}

.ab-filter-list::-webkit-scrollbar {
  display: none;
}

.ab-filter {
  min-height: 40px;
  flex: 0 0 auto;
  border: 1px solid var(--ab-line);
  border-radius: 999px;
  padding: 0 18px;
  background: rgba(255, 255, 255, 0.7);
  color: #444159;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 200ms ease, color 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.ab-filter:hover {
  border-color: rgba(105, 35, 210, 0.3);
  color: var(--ab-purple);
}

.ab-filter.is-active {
  border-color: transparent;
  background: linear-gradient(135deg, #7938e2, #5315b8);
  box-shadow: 0 8px 20px rgba(88, 24, 181, 0.18);
  color: #fff;
}

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

.ab-card {
  position: relative;
  display: grid;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--ab-line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 15px 40px rgba(65, 39, 85, 0.04);
  color: var(--ab-ink);
  text-decoration: none;
  transition: transform 240ms ease, border-color 240ms ease, box-shadow 240ms ease;
}

.ab-article-grid .ab-card {
  height: 410px;
  grid-template-rows: 210px minmax(0, 1fr);
}

.ab-card:hover {
  border-color: rgba(105, 35, 210, 0.3);
  box-shadow: 0 20px 42px rgba(65, 36, 91, 0.09);
  transform: translateY(-3px);
}

.ab-card-media {
  position: relative;
  display: grid;
  min-height: 135px;
  overflow: hidden;
  place-items: center;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.85), transparent 28%),
    linear-gradient(135deg, #f4efff, #fbf8ff 52%, #eee4ff);
}

.ab-card-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 260ms ease;
}

.ab-card:hover .ab-card-media img {
  transform: scale(1.035);
}

.ab-card-body {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  padding: 16px 17px;
}

.ab-card h3 {
  margin: 9px 0 0;
  font-size: 18px;
  font-weight: 760;
  letter-spacing: -0.032em;
  line-height: 1.24;
}

.ab-card p {
  display: -webkit-box;
  margin: 8px 0 0;
  overflow: hidden;
  color: var(--ab-muted);
  font-size: 12.5px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.ab-card-footer {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: auto;
  padding-top: 13px;
  color: #85879a;
  font-size: 11px;
  line-height: 1.3;
}

.ab-card-footer .ab-card-arrow {
  width: 31px;
  height: 31px;
  flex: 0 0 31px;
  margin-left: auto;
  border: 0;
  background: transparent;
  transition: transform 220ms ease;
}

.ab-card:hover .ab-card-footer .ab-card-arrow {
  transform: translateX(4px);
}

.ab-load-more {
  display: flex;
  margin: 22px auto 0;
}

.ab-no-results {
  margin-top: 16px;
  border: 1px solid var(--ab-line);
  border-radius: 22px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.72);
  text-align: center;
}

.ab-no-results h3 {
  margin: 0;
  font-size: 22px;
}

.ab-no-results p {
  margin: 8px 0 18px;
  color: var(--ab-muted);
  line-height: 1.55;
}

.ab-results-status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Channel CTA */
.ab-channel-cta {
  position: relative;
  display: grid;
  min-height: 150px;
  grid-template-columns: minmax(250px, 0.95fr) minmax(520px, 1.6fr) 220px;
  align-items: center;
  gap: 24px;
  overflow: hidden;
  border: 1px solid var(--ab-line);
  border-radius: 25px;
  padding: 25px 30px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: var(--ab-shadow);
}

.ab-channel-cta h2 {
  margin: 0;
  font-size: 24px;
  letter-spacing: -0.035em;
}

.ab-channel-cta p {
  margin: 7px 0 0;
  color: var(--ab-muted);
  font-size: 13px;
  line-height: 1.55;
}

.ab-channel-actions {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 12px;
}

.ab-channel-art {
  position: absolute;
  right: -18px;
  bottom: -42px;
  width: 250px;
  pointer-events: none;
}

/* Article heading inside the content card */
.ab-article-hero-copy {
  margin-bottom: 36px;
}

.ab-article-hero-copy h1 {
  max-width: none;
  margin: 18px 0 0;
  font-size: clamp(40px, 4vw, 62px);
  font-weight: 790;
  letter-spacing: -0.058em;
  line-height: 1.03;
}

.ab-article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
  color: #787b91;
  font-size: 13px;
}

.ab-article-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.ab-article-meta svg {
  width: 18px;
  height: 18px;
  color: #6b2bd0;
}

/* Article layout and typography */
.ab-article-layout {
  display: grid;
  width: 100%;
  grid-template-columns: minmax(0, 1fr) 340px;
  grid-template-areas: "content sidebar";
  align-items: start;
  column-gap: 32px;
}

.ab-article-sidebar {
  display: flex;
  min-width: 0;
  grid-area: sidebar;
  flex-direction: column;
  gap: 18px;
}

.ab-article-content {
  grid-area: content;
  min-width: 0;
  border: 1px solid var(--ab-line);
  border-radius: 26px;
  padding: 34px;
  background: rgba(255, 255, 255, 0.67);
  box-shadow: var(--ab-shadow);
}

.ab-prose {
  color: #36344a;
  font-size: 17px;
  line-height: 1.72;
}

.ab-prose img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 24px auto;
  border-radius: 16px;
}

.ab-prose iframe,
.ab-prose video {
  max-width: 100%;
}

.ab-prose table {
  width: 100%;
  border-collapse: collapse;
}

.ab-prose > * {
  max-width: none;
}

.ab-prose h2,
.ab-prose h3,
.ab-prose h4 {
  color: var(--ab-ink);
  font-weight: 770;
  letter-spacing: -0.038em;
  line-height: 1.2;
  scroll-margin-top: 96px;
}

.ab-prose h2 {
  margin: 42px 0 13px;
  font-size: 30px;
}

.ab-prose h3 {
  margin: 34px 0 11px;
  font-size: 24px;
}

.ab-prose h4 {
  margin: 28px 0 9px;
  font-size: 19px;
}

.ab-prose p {
  margin: 0 0 18px;
}

.ab-prose a:not(.ab-button) {
  color: #5f22c5;
  font-weight: 650;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.ab-prose ul,
.ab-prose ol {
  margin: 0 0 21px;
  padding-left: 25px;
}

.ab-prose li + li {
  margin-top: 8px;
}

.ab-prose blockquote {
  margin: 28px 0;
  border-left: 4px solid var(--ab-purple);
  border-radius: 0 14px 14px 0;
  padding: 18px 22px;
  background: #f7f2ff;
  color: #4b4660;
}

.ab-prose code {
  border-radius: 6px;
  padding: 2px 6px;
  background: #efe9f8;
  color: #4f168e;
  font-size: 0.9em;
}

.ab-prose pre {
  max-width: 100%;
  overflow-x: auto;
  border-radius: 16px;
  padding: 20px;
  background: #1f1930;
  color: #faf8ff;
  font-size: 14px;
  line-height: 1.6;
}

.ab-prose pre code {
  padding: 0;
  background: none;
  color: inherit;
}

.ab-summary {
  max-width: 100%;
  margin-bottom: 34px;
}

.ab-summary h2 {
  margin: 0 0 15px;
  font-size: 25px;
}

.ab-summary-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 17px;
  border: 1px solid rgba(105, 35, 210, 0.12);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(248, 244, 255, 0.96), rgba(255, 255, 255, 0.88));
  list-style: none;
}

.ab-summary-list li {
  display: grid;
  grid-template-columns: 27px minmax(0, 1fr);
  align-items: start;
  gap: 11px;
}

.ab-check {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c38e2, #5215b7);
  box-shadow: 0 6px 14px rgba(94, 30, 194, 0.18);
  color: #fff;
}

.ab-check svg {
  width: 14px;
  height: 14px;
}

.ab-note,
.ab-warning {
  max-width: 100%;
  margin: 25px 0;
  border: 1px solid rgba(105, 35, 210, 0.13);
  border-radius: 17px;
  padding: 18px 20px;
  background: #f7f2ff;
}

.ab-warning {
  border-color: rgba(255, 138, 16, 0.23);
  background: #fff7ec;
}

.ab-note strong,
.ab-warning strong {
  display: block;
  margin-bottom: 5px;
  color: var(--ab-ink);
}

.ab-process {
  display: grid;
  max-width: 100%;
  grid-template-columns: 1fr 42px 1fr 42px 1fr;
  align-items: center;
  gap: 8px;
  margin: 24px 0 30px;
  border: 1px solid var(--ab-line);
  border-radius: 19px;
  padding: 17px;
  background: rgba(255, 255, 255, 0.82);
}

.ab-process-step {
  display: grid;
  min-width: 0;
  justify-items: center;
  gap: 10px;
  text-align: center;
}

.ab-process-step img {
  width: 106px;
  height: 86px;
  object-fit: contain;
}

.ab-process-step strong {
  color: var(--ab-ink);
  font-size: 13px;
  line-height: 1.35;
}

.ab-process-arrow {
  color: var(--ab-purple);
}

.ab-process-arrow svg {
  width: 28px;
  height: 28px;
}

.ab-table-wrap {
  max-width: 100%;
  overflow-x: auto;
  margin: 23px 0 30px;
  border: 1px solid var(--ab-line);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.82);
}

.ab-table {
  width: 100%;
  min-width: 690px;
  border-collapse: collapse;
  font-size: 13px;
  line-height: 1.48;
}

.ab-table th,
.ab-table td {
  padding: 14px 13px;
  border-bottom: 1px solid rgba(53, 42, 66, 0.08);
  text-align: left;
  vertical-align: top;
}

.ab-table th {
  background: #faf7ff;
  color: #454159;
  font-size: 12px;
}

.ab-table tr:last-child td {
  border-bottom: 0;
}

.ab-transfer-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ab-ink);
  font-weight: 760;
}

.ab-transfer-label span {
  display: grid;
  min-width: 47px;
  height: 27px;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, #7735de, #4d11af);
  color: #fff;
  font-size: 10px;
}

.ab-inline-cta {
  position: relative;
  display: grid;
  max-width: 100%;
  min-height: 170px;
  grid-template-columns: 150px minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  overflow: hidden;
  margin: 34px 0;
  border: 1px solid rgba(105, 35, 210, 0.12);
  border-radius: 20px;
  padding: 20px 24px 20px 14px;
  background: linear-gradient(135deg, #f8f3ff, #fff);
}

.ab-inline-cta img {
  width: 165px;
  max-height: 150px;
  object-fit: contain;
}

.ab-inline-cta h2 {
  margin: 0;
  font-size: 26px;
}

.ab-inline-cta p {
  margin: 7px 0 15px;
  font-size: 15px;
  line-height: 1.55;
}

.ab-inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.ab-faq {
  max-width: 100%;
  margin-top: 36px;
}

.ab-faq > h2 {
  margin-bottom: 14px;
}

.ab-faq-item {
  border-bottom: 1px solid var(--ab-line);
}

.ab-faq-item h3 {
  max-width: 100%;
  margin: 0;
}

.ab-faq-item:first-of-type {
  border-top: 1px solid var(--ab-line);
}

.ab-faq-trigger {
  display: flex;
  width: 100%;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 0;
  padding: 13px 5px;
  background: transparent;
  color: var(--ab-ink);
  font-size: 15px;
  font-weight: 720;
  text-align: left;
  cursor: pointer;
}

.ab-faq-trigger span:last-child {
  font-size: 23px;
  font-weight: 400;
  transition: transform 220ms ease;
}

.ab-faq-trigger[aria-expanded="true"] span:last-child {
  transform: rotate(45deg);
}

.ab-faq-panel {
  overflow: hidden;
}

.ab-faq-panel-inner {
  padding: 0 5px 18px;
  color: var(--ab-muted);
  font-size: 15px;
  line-height: 1.65;
}

.ab-js .ab-faq-panel {
  height: 0;
  transition: height 260ms ease;
}

.ab-mobile-toc {
  display: none;
  margin-bottom: 18px;
  border: 1px solid var(--ab-line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.8);
}

.ab-mobile-toc summary {
  min-height: 52px;
  padding: 15px 17px;
  color: var(--ab-ink);
  font-weight: 740;
  cursor: pointer;
}

.ab-mobile-toc nav {
  display: grid;
  gap: 6px;
  padding: 0 17px 15px;
}

.ab-mobile-toc a {
  padding: 6px 0;
  color: #67667a;
  font-size: 13px;
  text-decoration: none;
}

.ab-article-aside {
  position: static;
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 18px;
}

.ab-article-aside .manager-shell {
  width: 100%;
  min-width: 0;
  grid-area: auto;
}

.ab-article-aside .manager-card {
  width: 100%;
}

@media (min-width: 901px) {
  .ab-article-aside .manager-card {
    display: flex;
    min-width: 0;
    height: 574px;
    min-height: 574px;
    max-height: 574px;
    flex-direction: column;
    padding: 26px 18px 21px;
    overflow: hidden;
  }

  .ab-article-aside .manager-status {
    justify-content: center;
  }

  .ab-article-aside .manager-response-time {
    text-align: center;
  }

  .ab-article-aside .manager-person {
    margin-top: 17px;
  }

  .ab-article-aside .manager-card > .chat-area,
  .ab-article-aside .manager-card.has-manager-reply > .chat-area {
    height: auto;
    min-height: 0;
    flex: 1 1 auto;
    margin: 20px 0 0;
    overflow-y: auto;
  }

  .ab-article-aside .manager-card.has-manager-reply > .chat-area {
    margin-top: 12px;
  }

  .ab-article-aside .manager-contact-block {
    flex: 0 0 auto;
    margin-top: 10px;
    align-self: auto;
  }

  .ab-article-aside .manager-planet {
    display: none;
  }
}

.ab-preview-banner {
  margin-bottom: 18px;
  border: 1px solid #e5b95b;
  border-radius: 14px;
  padding: 12px 16px;
  background: #fff7db;
  color: #72520d;
  font-weight: 750;
  text-align: center;
}

.ab-empty-article,
.ab-empty-content {
  border: 1px solid var(--ab-line);
  border-radius: 22px;
  padding: 32px;
  background: rgba(255, 255, 255, 0.78);
}

.ab-toc,
.ab-help-card {
  border: 1px solid var(--ab-line);
  border-radius: 20px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 15px 40px rgba(62, 37, 82, 0.04);
}

.ab-toc h2 {
  margin: 0 0 12px;
  font-size: 18px;
}

.ab-toc nav {
  display: grid;
  gap: 4px;
}

.ab-toc a {
  border-left: 2px solid transparent;
  padding: 7px 0 7px 11px;
  color: #717186;
  font-size: 12.5px;
  line-height: 1.45;
  text-decoration: none;
  transition: border-color 180ms ease, color 180ms ease;
}

.ab-toc a:hover,
.ab-toc a.is-active {
  border-left-color: var(--ab-purple);
  color: var(--ab-purple);
}

.ab-help-card {
  overflow: hidden;
  background: linear-gradient(145deg, #fbf8ff, #f1e8ff);
}

.ab-help-card img {
  width: 150px;
  height: 120px;
  margin: -14px auto 5px;
  object-fit: contain;
}

.ab-help-card h2 {
  margin: 0;
  font-size: 22px;
  letter-spacing: -0.04em;
  line-height: 1.16;
}

.ab-help-card p {
  margin: 9px 0 15px;
  color: var(--ab-muted);
  font-size: 13px;
  line-height: 1.58;
}

.ab-help-card .ab-button {
  width: 100%;
}

/* Related posts */
.ab-related {
  margin-top: 30px;
}

.ab-related .ab-section-heading {
  font-size: 28px;
}

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

.ab-related .ab-card {
  grid-template-columns: 120px minmax(0, 1fr);
}

.ab-related .ab-card-media {
  min-height: 160px;
}

.ab-related .ab-card-media img {
  object-fit: cover;
}

.ab-related .ab-card h3 {
  font-size: 16px;
}

.ab-related .ab-card p {
  display: none;
}

@media (max-width: 1170px) {
  .ab-blog-hero {
    grid-template-columns: minmax(0, 1fr) minmax(340px, 0.82fr);
    gap: 28px;
  }

  .ab-article-grid .ab-card {
    height: 390px;
    grid-template-rows: 180px minmax(0, 1fr);
  }

  .ab-channel-cta {
    grid-template-columns: minmax(220px, 0.8fr) minmax(450px, 1.45fr);
    padding-right: 25px;
  }

  .ab-channel-art {
    display: none;
  }

  .ab-article-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
    column-gap: 28px;
  }

  .ab-article-content {
    padding: 28px;
  }

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

  .ab-related .ab-card-media {
    min-height: 125px;
    max-height: 150px;
  }
}

@media (max-width: 900px) {
  .ab-main {
    padding-top: 26px;
  }

  .ab-blog-hero {
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .ab-blog-hero-art {
    order: -1;
  }

  .ab-blog-hero-calculator {
    order: -1;
  }

  .ab-blog-hero-art img {
    max-height: 255px;
  }

  .ab-blog-hero-copy {
    text-align: center;
  }

  .ab-blog-hero-copy > p {
    margin-right: auto;
    margin-left: auto;
  }

  .ab-articles-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .ab-filter-list {
    width: 100%;
  }

  .ab-article-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ab-channel-cta {
    grid-template-columns: 1fr;
  }

  .ab-article-layout {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  .ab-article-sidebar {
    display: contents;
  }

  .ab-article-sidebar-calculator {
    width: min(100%, 340px);
    align-self: center;
    order: 0;
  }

  .ab-article-content {
    order: 1;
  }

  .ab-article-aside {
    position: static;
    display: block;
    order: 2;
    margin-top: 0;
  }

  .ab-article-aside .ab-toc,
  .ab-article-aside .ab-help-card {
    display: none;
  }

  .ab-mobile-toc {
    display: block;
  }

  .ab-related-grid {
    grid-template-columns: 1fr;
  }

  .ab-related .ab-card {
    grid-template-columns: 150px minmax(0, 1fr);
  }
}

@media (max-width: 620px) {
  .ab-main {
    padding-top: 22px;
  }

  .ab-section {
    margin-top: 36px;
  }

  .ab-section-heading {
    font-size: 27px;
  }

  .ab-blog-hero {
    gap: 14px;
  }

  .ab-blog-hero-art img {
    max-height: 205px;
  }

  .ab-blog-hero-copy h1,
  .ab-article-hero-copy h1 {
    font-size: clamp(35px, 10.5vw, 44px);
  }

  .ab-blog-hero-copy > p {
    margin-top: 14px;
    font-size: 15px;
  }

  .ab-articles-header {
    gap: 12px;
  }

  .ab-article-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .ab-card,
  .ab-article-grid .ab-card {
    height: auto;
    min-height: 0;
    grid-row: auto;
    grid-template-rows: none;
    grid-template-columns: 130px minmax(0, 1fr);
  }

  .ab-card-media {
    min-height: 178px;
    max-height: none;
  }

  .ab-card-body {
    padding: 14px;
  }

  .ab-card h3 {
    margin-top: 7px;
    font-size: 16px;
  }

  .ab-card p {
    display: none;
  }

  .ab-card-footer {
    gap: 5px;
    font-size: 10px;
  }

  .ab-channel-cta {
    padding: 23px 18px;
  }

  .ab-channel-actions {
    grid-template-columns: 1fr;
  }

  .ab-article-hero-copy {
    text-align: left;
  }

  .ab-article-meta {
    justify-content: flex-start;
    margin-top: 18px;
  }

  .ab-article-content {
    margin-right: -12px;
    margin-left: -12px;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
    padding: 23px 16px;
  }

  .ab-prose {
    font-size: 16px;
    line-height: 1.7;
  }

  .ab-prose h2 {
    margin-top: 36px;
    font-size: 26px;
  }

  .ab-prose h3 {
    margin-top: 30px;
    font-size: 22px;
  }

  .ab-summary h2 {
    font-size: 23px;
  }

  .ab-process {
    grid-template-columns: 1fr;
  }

  .ab-process-arrow {
    transform: rotate(90deg);
  }

  .ab-inline-cta {
    grid-template-columns: 1fr;
    padding: 18px;
    text-align: center;
  }

  .ab-inline-cta img {
    margin: -8px auto -15px;
  }

  .ab-inline-actions {
    flex-direction: column;
  }

  .ab-inline-actions .ab-button {
    width: 100%;
  }

  .ab-related-grid {
    display: flex;
    overflow-x: auto;
    padding: 2px 20px 12px 0;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .ab-related-grid::-webkit-scrollbar {
    display: none;
  }

  .ab-related .ab-card {
    min-width: min(84vw, 320px);
    flex: 0 0 min(84vw, 320px);
    scroll-snap-align: start;
  }

}

@media (max-width: 380px) {
  .ab-card,
  .ab-article-grid .ab-card {
    grid-template-columns: 112px minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ab-page *,
  .ab-page *::before,
  .ab-page *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
