/* /stocks/ — токены акций за USDT (seo-1107, зона page-stocks).
   Только токены r26 (assets/r26.css): тёмная тема — без атрибута, светлая — html[data-theme="light"]
   (через сами токены). Приставка stk-. Телефон: 899 / 719 / 359. RTL — логические свойства. */

/* ── Первый экран: картинка + пример чека ── */
.stk-art { flex-direction: column; align-items: center; justify-content: center; }
.stk-art .stk-art-img { width: 220px; height: 220px; }
.stk-rcpt {
  position: relative; margin-top: -64px; margin-inline-start: 72px;
  width: 270px; max-width: 100%; box-sizing: border-box; padding: 18px 18px 16px; border-radius: 22px;
  background: var(--r-surface-3); border: 1px solid var(--r-line-3); box-shadow: var(--r-pop-shadow);
  display: flex; flex-direction: column; gap: 10px; text-align: start;
}
.stk-rcpt-k { font-size: 11px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--r-faint); }
.stk-rcpt-name { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.stk-rcpt-name b { font-size: 18px; font-weight: 800; color: var(--r-text); }
.stk-pill {
  font-size: 11px; font-weight: 800; padding: 4px 9px; border-radius: 999px;
  background: var(--r-brand-tint); color: var(--r-link); white-space: nowrap;
}
.stk-rcpt-row { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--r-muted); }
.stk-rcpt-row b { color: var(--r-text); font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.stk-rcpt-btn {
  margin-top: 4px; height: 40px; border-radius: 12px; background: var(--r-brand); color: #FFFFFF;
  font-size: 13px; font-weight: 800; display: flex; align-items: center; justify-content: center;
}

/* ── Общие мелочи ── */
.stk-h3 { margin: 0; font-size: 19px; font-weight: 800; line-height: 1.25; color: var(--r-text); letter-spacing: -0.01em; }
.stk-foot { margin: 0; font-size: 14px; color: var(--r-muted); line-height: 1.55; max-width: 760px; }
.stk-k-warn { color: var(--r-red); }

/* ── Что вы покупаете ── */
.stk-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stk-duo-c { padding: 30px 32px; display: flex; flex-direction: column; gap: 18px; box-shadow: var(--r-block-shadow); }
.stk-duo-c--no { border-color: var(--r-red-line); }
.stk-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.stk-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; line-height: 1.5; color: var(--r-text-2); }
.stk-ic {
  width: 26px; height: 26px; flex: none; border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
}
.stk-ic--ok { background: var(--r-green-tint); color: var(--r-green); }
.stk-ic--no { background: var(--r-red-line); color: var(--r-red); }

/* ── Шаги ── */
.stk-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.stk-step { padding: 24px; display: flex; flex-direction: column; gap: 12px; box-shadow: var(--r-block-shadow); }
.stk-step p, .stk-for-c p { margin: 0; font-size: 14.5px; color: var(--r-muted); line-height: 1.55; }
.stk-step-top { display: flex; justify-content: space-between; align-items: center; }
.stk-step-ic {
  width: 50px; height: 50px; flex: none; border-radius: 16px; background: var(--r-brand-tint); color: var(--r-link);
  display: flex; align-items: center; justify-content: center;
}
.stk-step-n { font-size: 34px; font-weight: 800; color: var(--r-line-3); font-variant-numeric: tabular-nums; }
.stk-aside { margin: 0; font-size: 15px; color: var(--r-text-2); line-height: 1.55; }
.stk-aside a { color: var(--r-link); font-weight: 800; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.stk-aside a:hover { color: var(--r-link-hover); }

/* ── Бумаги ── */
.stk-names { gap: 8px; }

/* ── Таблица условий ── */
.stk-tbl-wrap { padding: 8px 28px; box-shadow: var(--r-block-shadow); }
.stk-tbl { width: 100%; border-collapse: collapse; }
.stk-tbl th, .stk-tbl td { padding: 16px 0; border-bottom: 1px solid var(--r-line-2); text-align: start; vertical-align: top; }
.stk-tbl tr:last-child th, .stk-tbl tr:last-child td { border-bottom: 0; }
.stk-tbl th { width: 38%; padding-inline-end: 24px; font-size: 14px; font-weight: 700; color: var(--r-muted); }
.stk-tbl td { font-size: 15.5px; font-weight: 700; color: var(--r-text); line-height: 1.45; }
.stk-tbl td small { display: block; margin-top: 4px; font-size: 13px; font-weight: 600; color: var(--r-faint); }

/* ── Пример расчёта ── */
.stk-calc { padding: 32px 36px; display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: start; }
.stk-calc-in { display: flex; flex-direction: column; gap: 22px; }
.stk-field { display: flex; flex-direction: column; gap: 10px; font-size: 14px; font-weight: 700; color: var(--r-text-2); }
.stk-field input[type="number"] {
  height: 54px; box-sizing: border-box; width: 100%; padding: 0 16px; border-radius: 14px;
  background: var(--r-fill-2); border: 1px solid var(--r-line-3); color: var(--r-text);
  font: inherit; font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums;
}
.stk-field input[type="number"]:focus-visible { outline: 2px solid var(--r-brand-2); outline-offset: 2px; }
.stk-range { display: flex; align-items: center; gap: 14px; }
.stk-range input[type="range"] { flex: 1; min-width: 0; accent-color: var(--r-brand); height: 28px; color-scheme: dark; }
html[data-theme="light"] .stk-range input[type="range"] { color-scheme: light; }
.stk-range output {
  min-width: 64px; text-align: center; padding: 6px 10px; border-radius: 10px; background: var(--r-fill-3);
  font-size: 15px; font-weight: 800; color: var(--r-text); font-variant-numeric: tabular-nums;
}
.stk-calc-note { margin: 0; font-size: 13px; color: var(--r-muted); line-height: 1.5; }
.stk-calc-out { margin: 0; display: flex; flex-direction: column; border-radius: 20px; background: var(--r-fill-2); border: 1px solid var(--r-line-2); padding: 6px 22px; }
.stk-calc-out > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--r-line-2); }
.stk-calc-out > div:last-child { border-bottom: 0; }
.stk-calc-out dt { font-size: 14px; color: var(--r-muted); font-weight: 600; }
.stk-calc-out dd { margin: 0; font-size: 15px; font-weight: 800; color: var(--r-text); white-space: nowrap; font-variant-numeric: tabular-nums; }
.stk-calc-total dd { font-size: 20px; }
.stk-calc-res dt { font-weight: 800; color: var(--r-text-2); }
.stk-calc-res.is-loss dd { color: var(--r-red); }
.stk-calc-res.is-gain dd { color: var(--r-green); }

/* ── Кому подходит ── */
.stk-for { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.stk-for-c { padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.stk-not { align-items: flex-start; }

/* ── Риски ── */
.stk-risk { padding: 40px 44px; display: flex; flex-direction: column; gap: 28px; border-color: var(--r-red-line); }
.stk-risks { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 36px; }
.stk-risk-i { display: flex; gap: 14px; align-items: flex-start; }
.stk-risk-i > div { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.stk-risk-i p { margin: 0; font-size: 14.5px; color: var(--r-muted); line-height: 1.55; }
.stk-risk-ic {
  width: 40px; height: 40px; flex: none; border-radius: 12px; background: var(--r-red-line); color: var(--r-red);
  display: flex; align-items: center; justify-content: center;
}
.stk-legal { margin: 0; padding-top: 20px; border-top: 1px solid var(--r-line-2); font-size: 13.5px; color: var(--r-muted); line-height: 1.55; }

/* ── Вопросы ── */
.stk-qa { display: flex; flex-direction: column; border-bottom: 1px solid var(--r-line-2); max-width: 900px; }
.stk-qa-i { border-top: 1px solid var(--r-line-2); padding: 20px 0; }
.stk-qa-i summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-size: 18px; font-weight: 800; color: var(--r-text);
}
.stk-qa-i summary::-webkit-details-marker { display: none; }
.stk-qa-i summary:focus-visible { outline: 2px solid var(--r-brand-2); outline-offset: 4px; border-radius: 6px; }
.stk-qa-ic {
  width: 34px; height: 34px; flex: none; border-radius: 999px; background: var(--r-fill-3); color: var(--r-text-2);
  display: flex; align-items: center; justify-content: center;
}
.stk-qa-i[open] .stk-qa-ic { background: var(--r-brand); color: #FFFFFF; }
.stk-qa-i[open] .stk-v { display: none; }
.stk-qa-i p { margin: 10px 0 0; font-size: 15px; color: var(--r-muted); line-height: 1.6; max-width: 760px; }

/* ── Читайте по теме ── */
.stk-links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.stk-links--sib { margin-top: -12px; }
.stk-link {
  position: relative; padding: 20px 22px 44px; display: flex; flex-direction: column; gap: 6px;
  text-decoration: none; color: var(--r-text); transition: background 0.15s ease, transform 0.15s ease;
}
.stk-link:hover { background: var(--r-surface-3); transform: translateY(-2px); }
.stk-link:focus-visible { outline: 2px solid var(--r-brand-2); outline-offset: 2px; }
.stk-link b { font-size: 15.5px; font-weight: 800; line-height: 1.35; }
.stk-link > span { font-size: 13.5px; color: var(--r-muted); line-height: 1.5; }
.stk-link > .stk-link-k { font-size: 11px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--r-accent); }
.stk-arr { position: absolute; inset-inline-end: 20px; bottom: 18px; color: var(--r-link); }
[dir="rtl"] .stk-arr { transform: scaleX(-1); }

/* ── Финальный призыв ── */
.stk-final { padding: 44px 48px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.stk-final-txt { position: relative; display: flex; flex-direction: column; gap: 12px; max-width: 640px; }
.stk-final .r-btns { position: relative; flex: none; }

/* ── Буквы без разрядки там, где она рвёт письмо ── */
html[lang="ar"] .stk-rcpt-k, html[lang="hi"] .stk-rcpt-k, html[lang="zh"] .stk-rcpt-k,
html[lang="ar"] .stk-link-k, html[lang="hi"] .stk-link-k, html[lang="zh"] .stk-link-k { letter-spacing: 0; }

/* ── Планшет ── */
@media (max-width: 1099px) {
  .stk-steps, .stk-for, .stk-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 899px) {
  .stk-art .stk-art-img { width: 180px; height: 180px; }
  .stk-rcpt { margin-top: -50px; margin-inline-start: 0; }
  .stk-duo, .stk-calc, .stk-risks { grid-template-columns: 1fr; }
  .stk-calc { gap: 24px; }
  .stk-final { flex-direction: column; align-items: flex-start; }
}

/* ── Телефон ── */
@media (max-width: 719px) {
  .stk-art .stk-art-img { width: 150px; height: 150px; }
  .stk-rcpt { width: 260px; }
  .stk-steps, .stk-for, .stk-links { grid-template-columns: 1fr; }
  .stk-links--sib { margin-top: -16px; }
  .stk-duo-c { padding: 24px 22px; }
  .stk-step, .stk-for-c { padding: 22px; }
  .stk-tbl-wrap { padding: 4px 20px; }
  .stk-tbl th, .stk-tbl td { display: block; width: auto; padding: 0; border: 0; }
  .stk-tbl tr { display: block; padding: 14px 0; border-bottom: 1px solid var(--r-line-2); }
  .stk-tbl tr:last-child { border-bottom: 0; }
  .stk-tbl th { margin-bottom: 4px; font-size: 13px; padding-inline-end: 0; }
  .stk-calc { padding: 24px 20px; }
  .stk-calc-out { padding: 4px 16px; }
  .stk-calc-out > div { flex-wrap: wrap; gap: 4px 12px; }
  .stk-calc-out dd { margin-inline-start: auto; }
  .stk-risk { padding: 28px 20px; gap: 22px; }
  .stk-qa-i summary { font-size: 16.5px; }
  .stk-final { padding: 30px 22px; }
  .stk-final .r-btns, .stk-final .r-btn { width: 100%; }
  .stk-hero .r-btns .r-btn { flex: 1 1 auto; }
}
@media (max-width: 359px) {
  .stk-rcpt { width: 100%; padding: 14px; }
  .stk-duo-c, .stk-step, .stk-for-c { padding: 20px 16px; }
  .stk-tbl-wrap { padding: 4px 16px; }
  .stk-calc { padding: 20px 14px; }
  .stk-risk { padding: 24px 16px; }
  .stk-risk-i { gap: 12px; }
  .stk-final { padding: 26px 16px; }
}

/* qa seo-1107: на узком телефоне (320–375) длинная подпись кнопки (de/pt/fr) переносится, а не вылезает за кнопку. */
@media (max-width: 379px) {
  main .r-btn { white-space: normal; height: auto; min-height: 52px; padding-top: 10px; padding-bottom: 10px; line-height: 1.25; text-align: center; }
}
