/* Betjam Argentina - секции контента S1-S15 (каталог в sat-work/betjam-ar/design.md) */

.bj-main { display: block; }
.bj-section { margin-top: var(--bj-gap); scroll-margin-top: 100px; }
.bj-section > p, .bj-section > h2, .bj-section > h3, .bj-prose { max-width: 820px; }
.bj-section ul, .bj-section ol { margin: 0 0 1em; }

/* S1 hero */
.bj-hero { margin-top: 12px; }
.bj-hero--a .bj-hero__box {
  display: grid; gap: 20px; padding: 20px 16px; border-radius: var(--bj-radius);
  background: linear-gradient(90deg, #3A0070, #2E005C); border: 1px solid var(--bj-line);
}
.bj-hero__lead { max-width: 600px; }
.bj-hero__ctas { display: flex; flex-wrap: wrap; gap: 12px 16px; margin: 4px 0 0; padding: 0; list-style: none; }
.bj-hero__ctas li { display: flex; flex-direction: column; gap: 6px; flex: 1 1 200px; max-width: 280px; }
.bj-hero__ctas .bj-btn { min-height: 44px; font-size: 15px; font-weight: 700; text-transform: uppercase; }
.bj-hero__sub { font-size: 13px; color: var(--bj-muted); text-align: center; line-height: 1.3; }
.bj-hero__age { margin: 14px 0 0; font-size: 13px; color: var(--bj-muted); }
.bj-hero__figure { margin: 0; }
.bj-hero--b { margin-bottom: 8px; }
@media (min-width: 1024px) {
  .bj-hero { margin-top: 16px; }
  .bj-hero--a .bj-hero__box { padding: 36px 40px; }
  .bj-hero--a.bj-hero--fig .bj-hero__box { grid-template-columns: 1fr 1fr; align-items: center; gap: 40px; }
}

/* Кадры */
.bj-shot { margin: 0; }
.bj-shot img { width: 100%; border-radius: var(--bj-radius); border: 1px solid var(--bj-line); background: var(--bj-panel); }
.bj-shot figcaption { margin-top: 8px; font-size: 13px; color: var(--bj-muted); line-height: 1.4; }

/* S2 fact-tiles */
.bj-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 20px 0 0; padding: 0; list-style: none; }
.bj-tiles li { background: var(--bj-tile); border-radius: var(--bj-radius); padding: 14px; }
.bj-tiles strong { display: block; font-size: 22px; line-height: 1.2; }
.bj-tiles span { font-size: 13px; color: var(--bj-muted); text-transform: uppercase; }
@media (min-width: 1024px) { .bj-tiles { grid-template-columns: repeat(4, 1fr); } }

/* S4 prose-figure */
.bj-split { display: grid; gap: 20px; }
@media (min-width: 1024px) {
  .bj-split { grid-template-columns: 7fr 5fr; align-items: start; gap: 32px; }
  .bj-split--flip { grid-template-columns: 5fr 7fr; }
  .bj-split--flip > .bj-shot { order: -1; }
}
/* S4 --mob: вертикальный мобильный кадр узкой колонкой (не шире 300 px) */
.bj-split--mob > .bj-shot { width: 100%; max-width: 300px; justify-self: center; }
@media (min-width: 1024px) {
  .bj-split--mob { grid-template-columns: minmax(0, 1fr) 300px; }
  .bj-split--mob.bj-split--flip { grid-template-columns: 300px minmax(0, 1fr); }
}
/* S4 --wide: кадр-полоса на всю ширину под текстом (flip игнорируется) */
@media (min-width: 1024px) {
  .bj-split--wide, .bj-split--wide.bj-split--flip { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .bj-split--wide > .bj-shot { order: 0; }
}

/* S5 steps-shots */
.bj-steps { list-style: none; padding: 0; margin: 0 0 1em; counter-reset: bjstep; display: grid; gap: 20px; }
.bj-step { counter-increment: bjstep; display: grid; grid-template-columns: 32px 1fr; gap: 12px 14px; align-items: start; scroll-margin-top: 100px; }
.bj-step::before {
  content: counter(bjstep); display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%; background: var(--bj-accent); color: var(--bj-on-accent);
  font-weight: 700; font-size: 16px;
}
.bj-step__body h3 { margin: 3px 0 6px; }
.bj-step__body p { margin: 0; }
.bj-step .bj-shot { grid-column: 1 / -1; }
@media (min-width: 1024px) {
  .bj-steps { gap: 28px; }
  .bj-step { grid-template-columns: 32px 5fr 7fr; gap: 0 20px; }
  .bj-step .bj-shot { grid-column: auto; }
  .bj-step--plain .bj-step__body { grid-column: 2 / -1; max-width: 760px; }
}

/* S6 steps-plain */
.bj-cards-steps { list-style: none; padding: 0; margin: 0 0 1em; counter-reset: bjcard; display: grid; gap: 10px; }
.bj-cards-steps li {
  counter-increment: bjcard; position: relative; background: var(--bj-panel); border-radius: var(--bj-radius);
  padding: 14px 16px 14px 60px; min-height: 64px;
}
.bj-cards-steps li::before {
  content: counter(bjcard); position: absolute; left: 14px; top: 14px; display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%; background: var(--bj-violet-hi); color: #fff; font-weight: 700;
}
.bj-cards-steps h3 { font-size: 17px; margin: 4px 0 4px; }
.bj-cards-steps p { margin: 0; }
@media (min-width: 1024px) { .bj-cards-steps--2 { grid-template-columns: 1fr 1fr; } .bj-cards-steps--3 { grid-template-columns: repeat(3, 1fr); } }

/* S7 list */
.bj-leads { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 10px; }
.bj-leads li { background: var(--bj-panel); border-left: 3px solid var(--bj-violet-hi); border-radius: var(--bj-radius); padding: 14px 16px; }
.bj-leads strong { color: var(--bj-text); }
@media (min-width: 1024px) { .bj-leads--2 { grid-template-columns: 1fr 1fr; } .bj-leads--3 { grid-template-columns: repeat(3, 1fr); } }
.bj-bullets { list-style: none; padding: 0; margin: 0 0 1em; max-width: 820px; }
.bj-bullets li { position: relative; padding-left: 20px; }
.bj-bullets li + li { margin-top: 8px; }
.bj-bullets li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 6px; height: 6px; background: var(--bj-accent); }
@media (min-width: 1024px) { .bj-bullets--2 { columns: 2; column-gap: 32px; max-width: none; } .bj-bullets--2 li { break-inside: avoid; } }

/* S8 data-table */
.bj-table-wrap { overflow-x: auto; margin: 0 0 1em; border-radius: var(--bj-radius); border: 1px solid var(--bj-line); }
.bj-table { width: 100%; border-collapse: collapse; min-width: 560px; font-size: 15px; }
.bj-table caption { caption-side: top; text-align: left; padding: 10px 14px; font-size: 14px; color: var(--bj-muted); background: var(--bj-bg); }
.bj-table thead th { background: var(--bj-top); font-size: 13px; text-transform: uppercase; text-align: left; font-weight: 700; padding: 10px 14px; }
.bj-table td, .bj-table tbody th { padding: 10px 14px; text-align: left; vertical-align: top; border-top: 1px solid var(--bj-line); }
.bj-table tbody th { font-weight: 500; }
.bj-table tbody tr:nth-child(even) { background: var(--bj-panel); }
.bj-table--kv tbody th { width: 40%; }
.bj-table--compare thead th:first-child, .bj-table--compare tbody th { position: sticky; left: 0; background: var(--bj-top); }
/* <=600 px: стэк без горизонтального скролла. grid/compare - карточка на строку (th = заголовок,
   td с data-label из sections.mjs table()); kv - ключ над значением в одной рамке */
@media (max-width: 600px) {
  .bj-table-wrap { overflow: visible; border: 0; border-radius: 0; }
  .bj-table, .bj-table caption, .bj-table tbody, .bj-table tr, .bj-table td, .bj-table tbody th { display: block; }
  .bj-table { min-width: 0; font-size: 15px; }
  .bj-table caption { padding: 0 0 8px; background: none; }
  .bj-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
  .bj-table tbody { display: grid; gap: 10px; }
  .bj-table tbody tr, .bj-table tbody tr:nth-child(even) { border: 1px solid var(--bj-line); border-radius: var(--bj-radius); background: var(--bj-panel); overflow: hidden; }
  .bj-table tbody th, .bj-table--compare tbody th { position: static; width: auto; border-top: 0; background: var(--bj-top); font-weight: 700; }
  .bj-table td { overflow-wrap: anywhere; }
  .bj-table td[data-label]::before { content: attr(data-label); display: block; margin-bottom: 2px; font-size: 12px; font-weight: 700; text-transform: uppercase; color: var(--bj-muted); }
  .bj-table--kv tbody { gap: 0; border: 1px solid var(--bj-line); border-radius: var(--bj-radius); overflow: hidden; }
  .bj-table--kv tbody tr, .bj-table--kv tbody tr:nth-child(even) { border: 0; border-radius: 0; background: none; }
  .bj-table--kv tbody tr + tr { border-top: 1px solid var(--bj-line); }
  .bj-table--kv tbody tr:nth-child(even) { background: var(--bj-panel); }
  .bj-table--kv tbody th { width: auto; padding-bottom: 2px; background: none; font-size: 13px; font-weight: 700; text-transform: uppercase; color: var(--bj-muted); }
  .bj-table--kv td { border-top: 0; padding-top: 0; }
}

/* S9 deposit-ladder */
.bj-ladder { list-style: none; padding: 0; margin: 0 0 1em; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bj-ladder li { background: var(--bj-tile); border-radius: var(--bj-radius); padding: 16px; }
.bj-ladder__step { font-size: 13px; font-weight: 700; text-transform: uppercase; color: var(--bj-muted); }
.bj-ladder__line { display: block; font-size: 14px; }
.bj-ladder__pct { display: block; font-size: 36px; font-weight: 700; color: var(--bj-accent); line-height: 1.15; }
@media (min-width: 1024px) { .bj-ladder { grid-template-columns: repeat(4, 1fr); } }

/* S10 promo-cards */
.bj-promos { display: grid; gap: 12px; margin: 0 0 1em; }
.bj-promo { background: var(--bj-tile); border-radius: var(--bj-radius); padding: 16px; }
.bj-promo h3 { font-size: 13px; text-transform: uppercase; color: var(--bj-muted); font-weight: 700; margin: 0 0 6px; }
.bj-promo__value { font-size: 20px; font-weight: 700; margin: 0 0 6px; }
.bj-promo p:last-child { font-size: 14px; margin: 0; }
@media (min-width: 768px) { .bj-promos { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .bj-promos--3 { grid-template-columns: repeat(3, 1fr); } }

/* S11 note */
.bj-note { --c: var(--bj-violet-hi); max-width: 820px; margin: 0 0 1em; padding: 14px 16px; border-left: 4px solid var(--c); border-radius: 0 var(--bj-radius) var(--bj-radius) 0; background: color-mix(in srgb, var(--c) 10%, transparent); }
.bj-note p:last-child { margin: 0; }
.bj-note--warn { --c: var(--bj-accent); }
.bj-note--info { --c: var(--bj-violet-hi); }
.bj-note--age { display: flex; gap: 14px; align-items: flex-start; }
.bj-note--code code { font-family: ui-monospace, Consolas, monospace; word-break: break-all; }

/* S12 cta-banner */
.bj-banner {
  display: grid; gap: 14px; margin-top: var(--bj-gap); padding: 20px 16px; border-radius: var(--bj-radius); background: var(--bj-banner);
  border: 1px solid var(--bj-line);
}
.bj-banner__title { margin: 0; font-size: 20px; font-weight: 700; text-transform: uppercase; line-height: 1.25; }
.bj-banner__text { margin: 4px 0 0; color: var(--bj-muted); }
.bj-banner .bj-btn { min-height: 44px; font-size: 15px; font-weight: 700; text-transform: uppercase; justify-self: start; }
@media (min-width: 1024px) {
  .bj-banner { grid-template-columns: 1fr auto; align-items: center; padding: 24px 32px; }
}

/* S13 faq */
.bj-faq { display: grid; gap: 8px; max-width: 900px; }
.bj-faq details { background: var(--bj-panel); border-radius: var(--bj-radius); }
.bj-faq summary {
  position: relative; list-style: none; cursor: pointer; padding: 14px 48px 14px 16px; font-size: 17px; font-weight: 500; line-height: 1.4;
}
.bj-faq summary::-webkit-details-marker { display: none; }
.bj-faq summary::after {
  content: ""; position: absolute; right: 18px; top: 50%; width: 9px; height: 9px; margin-top: -7px;
  border-right: 2px solid var(--bj-accent); border-bottom: 2px solid var(--bj-accent); transform: rotate(45deg); transition: transform .15s;
}
.bj-faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.bj-faq details > p { margin: 0; padding: 0 16px 16px; }

/* S14 figure-duo */
.bj-duo { display: grid; gap: 16px; margin: 0 0 1em; }
@media (min-width: 768px) { .bj-duo { grid-template-columns: 1fr 1fr; align-items: start; } }

/* S15 legal */
.bj-toc { background: var(--bj-panel); border-radius: var(--bj-radius); padding: 14px 16px; max-width: 820px; margin-top: 16px; }
.bj-toc ol { margin: 0; padding-left: 20px; }
.bj-legal h2 { scroll-margin-top: 100px; }
