/*
 * /freelancers/ — оплата от клиентов в USDT и вывод гонорара (seo-1108, зона aud-2).
 * Только токены r26 (assets/r26.css): тёмная тема — без атрибута, светлая — html[data-theme="light"].
 * Приставка frl-. Телефон: 899 / 719 / 359 px, без боковой прокрутки на 320. RTL — логические свойства.
 */

.frl .r-wrap :is(h1, h2) { text-wrap: balance; }
.frl-top { padding-top: 12px; }
.frl bdi { unicode-bidi: isolate; direction: ltr; white-space: nowrap; }

.frl-ico {
  flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  background: var(--r-brand-tint); color: var(--r-link);
}

/* ══ Первый экран: переписка с клиентом ═══════════════════════════════════ */
.frl-hero { grid-template-columns: 1.15fr 0.85fr; }
.frl-chips { padding-top: 4px; }
.frl-hero-art { min-width: 0; }
.frl-chat {
  width: 100%; max-width: 350px; box-sizing: border-box; padding: 18px; border-radius: 26px;
  background: var(--r-surface-3); border: 1px solid var(--r-line-2); box-shadow: var(--r-pop-shadow);
  display: flex; flex-direction: column; gap: 10px;
}
.frl-chat-b { max-width: 86%; padding: 12px 14px; border-radius: 18px; font-size: 14px; line-height: 1.45; }
.frl-chat-b--in { align-self: flex-start; background: var(--r-fill-3); color: var(--r-text-2); border-end-start-radius: 6px; }
.frl-chat-b--out {
  align-self: flex-end; background: var(--r-brand); color: #FFFFFF; border-end-end-radius: 6px;
  display: flex; flex-direction: column; gap: 6px; min-width: 70%;
}
.frl-chat-l { display: flex; justify-content: space-between; gap: 14px; font-size: 13px; }
.frl-chat-l span { opacity: .78; }
.frl-chat-l b { font-weight: 800; }
.frl-chat-ok {
  display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 14px;
  background: var(--r-green-tint); color: var(--r-green); font-size: 13px; font-weight: 800;
}
.frl-chat-ok span { flex: 1 1 auto; min-width: 0; }
.frl-chat-ok b { font-size: 15px; }

/* ══ Короткий ответ ═══════════════════════════════════════════════════════ */
.frl-ans {
  position: relative; padding: 28px 32px; border-radius: 24px; background: var(--r-brand-tint);
  border: 1px solid var(--r-line-2); display: flex; flex-direction: column; gap: 10px;
}
.frl-ans-h { margin: 0; font-size: clamp(21px, 1.2vw + 13px, 27px); font-weight: 800; line-height: 1.22; color: var(--r-text); }
.frl-ans-p { margin: 0; font-size: 17px; line-height: 1.65; color: var(--r-text-2); max-width: 920px; }

/* ══ Какую сеть дать клиенту ══════════════════════════════════════════════ */
.frl-nets { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 12px; }
.frl-net { padding: 22px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.frl-net-from { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--r-accent); }
.frl-net-ask { font-size: 16.5px; font-weight: 800; line-height: 1.35; color: var(--r-text); }
.frl-net-note { margin: 0; font-size: 14px; line-height: 1.55; color: var(--r-muted); }
.frl-foot { margin: 14px 0 0; font-size: 13px; color: var(--r-faint); line-height: 1.5; }
[lang="ar"] .frl-net-from, [lang="hi"] .frl-net-from, [lang="zh"] .frl-net-from { letter-spacing: 0; }
/* Заказчику (query-loop 11.11.2026): те же карточки, ссылка прижата к низу */
.frl-pay-a { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; font-size: 14.5px; font-weight: 700; line-height: 1.4; }
.frl-pay-a .frl-arr { flex: none; }
.frl-pay-a:hover span { text-decoration: underline; }

/* ══ Шаблон для клиента ═══════════════════════════════════════════════════ */
.frl-tpl { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 12px; align-items: start; }
.frl-tpl-card { padding: 28px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.frl-tpl-top { display: flex; align-items: center; gap: 12px; }
.frl-tpl-top b { font-size: 18px; font-weight: 800; color: var(--r-text); }
.frl-tpl-lines {
  list-style: none; margin: 0; padding: 16px 18px; border-radius: 16px; background: var(--r-fill-2);
  border: 1px dashed var(--r-line-3); display: flex; flex-direction: column; gap: 8px;
  font-size: 15px; line-height: 1.5; color: var(--r-text); overflow-wrap: anywhere;
}
.frl-tpl-ton { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--r-muted); }
.frl-copy { align-self: flex-start; gap: 8px; }
.frl-copy.is-done { border-color: var(--r-green); color: var(--r-green); }
.frl-tpl-tips { padding: 8px 4px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.frl-tpl-h { margin: 0 0 4px; font-size: 19px; font-weight: 800; color: var(--r-text); }
.frl-tip { display: flex; gap: 12px; align-items: flex-start; }
.frl-tip p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--r-text-2); }
.frl-tip-i {
  flex: none; width: 24px; height: 24px; margin-top: 1px; border-radius: 99px; display: grid; place-items: center;
  background: var(--r-green-tint); color: var(--r-green);
}

/* ══ Путь гонорара ════════════════════════════════════════════════════════ */
.frl-path { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.frl-path-i { padding: 22px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.frl-path-top { display: flex; justify-content: space-between; align-items: center; }
.frl-path-n { font-size: 13px; font-weight: 800; color: var(--r-accent); letter-spacing: .08em; }
.frl-path-t { margin: 0; font-size: 17px; font-weight: 800; line-height: 1.3; color: var(--r-text); }
.frl-path-d { margin: 0; font-size: 14px; line-height: 1.6; color: var(--r-muted); }

/* ══ Калькулятор ══════════════════════════════════════════════════════════ */
.frl-calc { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.frl-form { padding: 32px; display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.frl-f { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.frl-f-l { padding: 0; font-size: 13px; font-weight: 800; color: var(--r-text-2); line-height: 1.35; }
.frl-in {
  width: 100%; box-sizing: border-box; height: 54px; 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: 18px; font-weight: 800; text-align: start;
}
.frl-in:focus { outline: 2px solid var(--r-accent); outline-offset: 1px; border-color: transparent; }
.frl-in[aria-invalid="true"] { border-color: var(--r-red); }
.frl-seg { display: flex; gap: 6px; padding: 4px; border-radius: 16px; background: var(--r-fill-2); border: 1px solid var(--r-line-2); }
.frl-seg label { flex: 1 1 0; position: relative; min-width: 0; }
.frl-seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.frl-seg span {
  display: flex; align-items: center; justify-content: center; min-height: 42px; border-radius: 12px;
  font-size: 15px; font-weight: 800; color: var(--r-muted); cursor: pointer;
}
.frl-seg input:checked + span { background: var(--r-brand); color: #FFFFFF; }
.frl-seg input:focus-visible + span { outline: 2px solid var(--r-accent); outline-offset: 2px; }
.frl-out {
  padding: 32px; display: flex; flex-direction: column; gap: 12px; justify-content: center; min-width: 0;
  background: var(--r-fill-1); border-inline-start: 1px solid var(--r-line-2);
}
.frl-out-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 14.5px; color: var(--r-muted); }
.frl-out-row b { color: var(--r-text); font-size: 17px; font-weight: 800; }
.frl-out-total { padding-top: 12px; border-top: 1px solid var(--r-line-3); color: var(--r-text); font-weight: 700; }
.frl-out-total b { font-size: clamp(24px, 2vw + 12px, 32px); color: var(--r-green); }
.frl-msg { margin: 0; font-size: 13px; line-height: 1.5; color: var(--r-muted); min-height: 2.9em; }
.frl-msg.is-warn { color: var(--r-red); }
.frl-out-btn { align-self: flex-start; margin-top: 4px; }

/* ══ Куда вывести ═════════════════════════════════════════════════════════ */
.frl-tbl-wrap {
  overflow-x: auto; border-radius: 24px; border: 1px solid var(--r-line); background: var(--r-surface);
  box-shadow: var(--r-block-shadow); -webkit-overflow-scrolling: touch;
}
.frl-tbl-wrap:focus-visible { outline: 2px solid var(--r-accent); outline-offset: 2px; }
.frl-tbl { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; line-height: 1.45; }
.frl-tbl :is(th, td) { padding: 14px 20px; text-align: start; vertical-align: top; border-bottom: 1px solid var(--r-line); }
.frl-tbl tbody tr:last-child :is(th, td) { border-bottom: 0; }
.frl-tbl thead th { font-size: 12.5px; font-weight: 800; color: var(--r-muted); background: var(--r-fill-1); }
.frl-tbl tbody th { font-weight: 800; color: var(--r-text); }
.frl-tbl tbody th a { color: var(--r-link); text-decoration: none; }
.frl-tbl tbody th a:hover { color: var(--r-link-hover); text-decoration: underline; }
.frl-tbl td { color: var(--r-text-2); }
.frl-tbl td:nth-child(3) { font-weight: 800; color: var(--r-text); }
.frl-mp { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; }
.frl-mp-l { font-size: 14px; font-weight: 700; color: var(--r-muted); margin-inline-end: 4px; }
.frl-mp-a { text-decoration: none; color: var(--r-link); }
.frl-mp-a:hover { border-color: var(--r-brand-2); }

/* ══ Ограничения ══════════════════════════════════════════════════════════ */
.frl-lim { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.frl-lim-i {
  display: flex; gap: 12px; align-items: flex-start; padding: 20px; border-radius: 20px;
  background: var(--r-surface); border: 1px solid var(--r-red-line); min-width: 0;
}
.frl-lim-ic { flex: none; color: var(--r-red); margin-top: 2px; }
.frl-lim-i p { margin: 0; font-size: 14.5px; color: var(--r-muted); line-height: 1.55; }
.frl-lim-i b { color: var(--r-text); }
.frl-tax { margin: 16px 0 0; font-size: 14px; line-height: 1.55; color: var(--r-muted); max-width: 900px; }

/* ══ Вопросы ══════════════════════════════════════════════════════════════ */
.frl-qa { display: flex; flex-direction: column; gap: 10px; max-width: 900px; }
.frl-qa-i { border-radius: 20px; background: var(--r-surface); border: 1px solid var(--r-line); }
.frl-qa-i summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 22px; font-size: 16px; font-weight: 800; color: var(--r-text); line-height: 1.4;
}
.frl-qa-i summary::-webkit-details-marker { display: none; }
.frl-qa-i summary:focus-visible { outline: 2px solid var(--r-accent); outline-offset: -2px; border-radius: 20px; }
.frl-qa-ic {
  flex: none; width: 30px; height: 30px; border-radius: 99px; display: grid; place-items: center;
  background: var(--r-fill-3); color: var(--r-text-2); transition: transform .2s ease;
}
.frl-qa-i[open] .frl-qa-ic { transform: rotate(45deg); }
.frl-qa-i p { margin: 0; padding: 0 22px 20px; font-size: 15px; color: var(--r-text-2); line-height: 1.65; max-width: 75ch; }

/* ══ Блог и связанные разделы ═════════════════════════════════════════════ */
.frl-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.frl-link {
  position: relative; padding: 22px; padding-inline-end: 52px; display: flex; flex-direction: column; gap: 6px;
  text-decoration: none; color: var(--r-text); min-width: 0; transition: border-color .16s ease;
}
.frl-link:hover { border-color: var(--r-brand-2); }
.frl-link b { font-size: 16px; font-weight: 800; line-height: 1.35; }
.frl-link span { font-size: 14px; color: var(--r-muted); line-height: 1.5; }
.frl-link .frl-arr { position: absolute; inset-inline-end: 22px; top: 24px; color: var(--r-link); }
.frl-link:last-child:nth-child(odd) { grid-column: 1 / -1; }
[dir="rtl"] .frl-arr { transform: scaleX(-1); }
.sx-next.frl-rel { grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); }

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

/* ══ Планшет и телефон ════════════════════════════════════════════════════ */
@media (max-width: 1199px) {
  .frl-path { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .frl-lim { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 899px) {
  .frl-hero { grid-template-columns: 1fr; }
  .frl-hero-art { justify-content: flex-start; }
  .frl-tpl { grid-template-columns: 1fr; }
  .frl-calc { grid-template-columns: 1fr; }
  .frl-out { border-inline-start: 0; border-top: 1px solid var(--r-line-2); }
  .frl-links { grid-template-columns: 1fr; }
  .frl-final { flex-direction: column; align-items: flex-start; padding: 32px 28px; }
}
@media (max-width: 719px) {
  .frl-chat { max-width: none; }
  .frl-chat.r-float { animation: none; }
  .frl-ans { padding: 22px 20px; }
  .frl-ans-p { font-size: 16px; }
  .frl-path, .frl-lim { grid-template-columns: 1fr; }
  .frl-path-i, .frl-net { padding: 20px; }
  .frl-tpl-card { padding: 22px 20px; }
  .frl-copy { align-self: stretch; width: 100%; justify-content: center; }
  .frl-form, .frl-out { padding: 22px 20px; }
  .frl-out-btn, .frl-final .r-btns, .frl-final .r-btn { align-self: stretch; width: 100%; }
  .frl .r-hero-txt .r-btns .r-btn { flex: 1 1 100%; }
  /* Таблица стран на телефоне — карточками, без боковой прокрутки. */
  .frl-tbl-wrap { overflow: visible; border: 0; background: none; box-shadow: none; border-radius: 0; }
  .frl-tbl, .frl-tbl tbody, .frl-tbl tr, .frl-tbl th, .frl-tbl td { display: block; width: auto; min-width: 0; }
  .frl-tbl thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .frl-tbl tbody { display: grid; gap: 10px; }
  .frl-tbl tr { padding: 16px 18px; border-radius: 18px; background: var(--r-surface); border: 1px solid var(--r-line); }
  .frl-tbl tbody th, .frl-tbl td { padding: 0; border: 0; }
  .frl-tbl tbody th { padding-bottom: 4px; font-size: 16px; }
  .frl-tbl td { display: inline; font-size: 14px; }
  .frl-tbl td:nth-child(2)::after { content: ' · '; color: var(--r-faint); }
  .frl-tbl td:nth-child(3)::after { content: ' · '; color: var(--r-faint); }
  .frl-final { padding: 28px 20px; }
  .frl-qa-i summary { padding: 16px 18px; font-size: 15px; }
  .frl-qa-i p { padding: 0 18px 18px; }
}
@media (max-width: 359px) {
  .frl-chat { padding: 14px; }
  .frl-chat-b { max-width: 100%; }
  .frl-form, .frl-out { padding: 18px 16px; }
  .frl-in { font-size: 16px; }
  .frl-out-row { flex-wrap: wrap; }
  .frl .r-chip { white-space: normal; height: auto; min-height: 34px; padding: 6px 12px; }
}
@media (max-width: 379px) {
  .frl .r-btn { white-space: normal; height: auto; min-height: 52px; padding-top: 10px; padding-bottom: 10px; line-height: 1.25; text-align: center; }
}
