/* ============================================================
   rtl.css — RTL-слой темы matchsystems.
   Грузится движком ТОЛЬКО для RTL-языков (lang_is_rtl()), см. layout.php.
   Само-скоплен под [dir="rtl"] → инертен для LTR.
   Раскладка (margin/padding/inset/text-align/float/border-radius) переведена
   на CSS logical properties прямо в styles.css — одна таблица, зеркалится
   по dir="rtl" автоматически. Идиомы центрирования (left:50%+translate(-50%))
   и градиент-текст (background-clip:text) оставлены как есть — направление-
   нейтральны. Здесь: направление шрифта, transform/градиенты-заливки/rotate,
   background-position героев, асимметричные шорткоды, разворот бегущих лент.
   Арабский шрифт — self-hosted IBM Plex Sans Arabic (без CDN).
   ============================================================ */

@font-face { font-family:'IBM Plex Sans Arabic'; font-style:normal; font-weight:400; font-display:swap; src:url('fonts/ibmplexsansarabic-400.woff2') format('woff2'); unicode-range:U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family:'IBM Plex Sans Arabic'; font-style:normal; font-weight:500; font-display:swap; src:url('fonts/ibmplexsansarabic-500.woff2') format('woff2'); unicode-range:U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family:'IBM Plex Sans Arabic'; font-style:normal; font-weight:600; font-display:swap; src:url('fonts/ibmplexsansarabic-600.woff2') format('woff2'); unicode-range:U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family:'IBM Plex Sans Arabic'; font-style:normal; font-weight:700; font-display:swap; src:url('fonts/ibmplexsansarabic-700.woff2') format('woff2'); unicode-range:U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }

[dir="rtl"] {
  --font-sans: 'IBM Plex Sans Arabic', 'Geist', 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono: 'IBM Plex Sans Arabic', 'JetBrains Mono', 'IBM Plex Mono', ui-monospace, Menlo, Consolas, monospace;
}

/* бегущие лого-ленты/тикеры/кейсы/медиа-карусель направление-нейтральны → держим в LTR */
[dir="rtl"] .ticker,
[dir="rtl"] .ticker-track,
[dir="rtl"] .ms-cases-wrap,
[dir="rtl"] .ms-cases-track,
[dir="rtl"] .ms-media-carousel,
[dir="rtl"] .ms-media-track,
[dir="rtl"] .rln-ticker,
[dir="rtl"] .rln-ticker-track,
[dir="rtl"] .gal-car-viewport,
[dir="rtl"] .gal-car-track { direction: ltr; }

/* краевые случаи (авто-дельта rtlcss, без центровок и градиент-текста) */
[dir="rtl"] .nav-links a::after { transform-origin: left; }
[dir="rtl"] .nav-links a:hover::after { transform-origin: right; }
[dir="rtl"] .nav-report-btn { background: linear-gradient(-90deg, #2092ef 0%, #1668c3 100%); }
[dir="rtl"] .nav--open .nav-burger .burger-top { transform: translateY(8.5px) rotate(-45deg); }
[dir="rtl"] .nav--open .nav-burger .burger-bot { transform: translateY(-8.5px) rotate(45deg); }
[dir="rtl"] .lang-dd-btn { padding: 5px 5px 5px 9px; }
[dir="rtl"] .lang-dd[data-open="true"] .lang-dd-caret { transform: rotate(-180deg); }
[dir="rtl"] .form-field select { background-position: left 14px center; }
[dir="rtl"] .form-check input[type="checkbox"]:checked::after { border-width: 0 0 2px 2px; transform: rotate(-45deg); }
[dir="rtl"] .author-card-bio { border-radius: 20px 0 0 20px; }
[dir="rtl"] .report-cta { background-image: linear-gradient(-90deg, #2092ef 0%, #1668c3 100%); }
[dir="rtl"] .report-cta::before { background-image: linear-gradient(-90deg, #1668c3 0%, #2092ef 100%); }
[dir="rtl"] .faq-more::after { transform-origin: left; }
[dir="rtl"] .faq-more:hover::after { transform-origin: right; }
[dir="rtl"] .footer-partner { padding: 5px 10px 5px 12px; }
[dir="rtl"] .footer-col a::after, [dir="rtl"] .footer-col .footer-link::after { transform-origin: left; }
[dir="rtl"] .footer-col a:hover::after, [dir="rtl"] .footer-col .footer-link:hover::after { transform-origin: right; }
[dir="rtl"] .page-body blockquote { border-radius: 8px 0 0 8px; }
[dir="rtl"] .faq-hero { background-position: top left; }
[dir="rtl"] .faq-hero--style-faq_default .faq-hero-text { transform: translateX(45px); }
[dir="rtl"] .faq-hero--style-faq_default.has-cover { background-position: left top, left 330px top 250px; }
@media (min-width: 901px) and (max-width: 1180px) {
  [dir="rtl"] .faq-hero--style-faq_default.has-cover { background-position: left top, left 0 top 210px; }
}
@media (min-width: 768px) and (max-width: 900px) {
  [dir="rtl"] .faq-hero--style-faq_default.has-cover { background-position: left top, left -10px top 250px; }
}
@media (max-width: 767px) {
  [dir="rtl"] .faq-hero--style-faq_default.has-cover { background-position: left top, center bottom 34px; }
}
[dir="rtl"] .faq-hero--style-faq_criminal.has-cover { background-position: left top, left bottom; }
@media (min-width: 768px) and (max-width: 1180px) {
  [dir="rtl"] .faq-hero--style-faq_criminal.has-cover { background-position: left top, left -90px bottom 15px; }
}
[dir="rtl"] .faq-hero--style-faq_markup_mockup.has-cover { background-position: left top, left -185px top 300px; }
@media (max-width: 900px) {
  [dir="rtl"] .faq-hero--style-faq_markup_mockup.has-cover { background-position: left top, left -170px bottom 40px; }
}
@media (max-width: 560px) {
  [dir="rtl"] .faq-hero.faq-hero--style-faq_markup_mockup.has-cover { background-position: left top, right 0 bottom; }
}
[dir="rtl"] .faq-content .page-body .report2, [dir="rtl"] .faq-content .page-body .faq-cta { background: linear-gradient(-90deg, #2092EF 0%, #1668C3 100%); }
[dir="rtl"] .faq-content .page-body .report2:hover, [dir="rtl"] .faq-content .page-body .faq-cta:hover { background: linear-gradient(-90deg, #1668C3 0%, #2093EF 100%); }
@media (max-width: 820px) {
  [dir="rtl"] .faq-hero { background-position: top left; }
}
@media (max-width: 520px) {
  [dir="rtl"] .faq-hero { background-position: top left; }
}
@media (max-width: 767px) {
  [dir="rtl"] .page-faq-item .faq-hero.faq-hero--style-faq_criminal.has-cover { background-position: left top, left -85px top 395px; }
}
@media (max-width: 767px) {
  [dir="rtl"] .page-faq-item .faq-hero.faq-hero--style-faq_default.has-cover { background-position: left top, center bottom 34px; }
}
[dir="rtl"] .cat-pill::after { transform-origin: left; }
[dir="rtl"] .cat-pill:hover::after, [dir="rtl"] .cat-pill.is-current::after { transform-origin: right; }
[dir="rtl"] .post-card-cover::after { background: linear-gradient(-90deg, rgba(0,0,0,.78) 0%, rgba(0,0,0,.50) 42%, rgba(0,0,0,.08) 100%); }
[dir="rtl"] .post-hero { background-position: center left; }
[dir="rtl"] .post-hero--style-blog_default_1 { background-position: center left; }
[dir="rtl"] .blog-post--style-blog_default_2.has-post-bg .post-hero { background-position: left max(20px, calc((100% - 1180px) / 2)) center, center; }
@media (max-width: 1024px) {
  [dir="rtl"] .blog-post--style-blog_default_2.has-post-bg .post-hero { background-position: left 20px center, center; }
}
[dir="rtl"] .blog-post--style-blog_default_3.has-post-cover .post-hero { background-position: left top, left bottom; }
@media (min-width: 768px) and (max-width: 1180px) {
  [dir="rtl"] .blog-post--style-blog_default_3.has-post-cover .post-hero { background-position: left top, left -90px bottom 15px; }
}
@media (max-width: 767px) {
  [dir="rtl"] .blog-post--style-blog_default_3.has-post-cover .post-hero { background-position: left top, left -85px top 395px; }
}
[dir="rtl"] .post-hero-dl { padding: 12px 20px 12px 16px; background-image: linear-gradient(-90deg, #2092ef 0%, #1668c3 100%); }
[dir="rtl"] .post-hero-dl::before { background-image: linear-gradient(-90deg, #1668c3 0%, #2092ef 100%); }
[dir="rtl"] .post-hero--style-blog_mockup { background-position: left -120px center; }
[dir="rtl"] .post-hero--style-blog_vault { background-position: left max(20px, calc((100vw - 1200px) / 2)) bottom; }
@media (max-width: 900px) {
  [dir="rtl"] .post-hero.post-hero--style-blog_vault { background-position: left 20px bottom; }
}
[dir="rtl"] .post-hero--style-blog_trustwallet { background-position: left max(20px, calc((100vw - 1200px) / 2)) bottom; }
@media (max-width: 900px) {
  [dir="rtl"] .post-hero.post-hero--style-blog_trustwallet { background-position: left 20px bottom; }
}
[dir="rtl"] .post-hero--style-blog_hacker { background-position: left center; }
@media (max-width: 900px) {
  [dir="rtl"] .post-hero.post-hero--style-blog_hacker { background-position: bottom left; }
}
[dir="rtl"] .page-hero { background-position: center left; }
[dir="rtl"] .page-hero--style-page_mockup { background-position: left -120px center; }
[dir="rtl"] .page-hero.page-hero--style-page_usdtfreeze { background-position: center left; }
[dir="rtl"] .page-hero.page-hero--style-page_usdtfreeze.has-cover { background-image:
    linear-gradient(-90deg, #000 0%, rgba(0,0,0,.97) 42%, rgba(0,0,0,.34) 68%, rgba(0,0,0,.58) 100%),
    var(--page-cover-image); background-position: center, center left; }
[dir="rtl"] .page-hero.page-hero--style-page_usdtfreeze .page-hero-btn { background: linear-gradient(-90deg, #2092ef 0%, #1668c3 100%); }
[dir="rtl"] .page-hero.page-hero--style-page_usdtfreeze .page-hero-btn:hover { background: linear-gradient(-90deg, #1668c3 0%, #2092ef 100%); }
[dir="rtl"] .usdt-step { padding: 20px 25px 35px 20px; }
[dir="rtl"] .usdt-cta-btn { background: linear-gradient(-90deg, #2092ef 0%, #1668c3 100%); }
[dir="rtl"] .usdt-cta-btn:hover { background: linear-gradient(-90deg, #1668c3 0%, #2092ef 100%); }
@media (max-width: 900px) {
  [dir="rtl"] .page-hero.page-hero--style-page_usdtfreeze { background-position: bottom left; }
  [dir="rtl"] .page-hero.page-hero--style-page_usdtfreeze.has-cover { background-position: center, bottom left; }
}
@media (max-width: 720px) {
  [dir="rtl"] .page-hero.page-hero--style-page_usdtfreeze.has-cover { background-image:
      linear-gradient(-180deg, #000 0%, rgba(0,0,0,.98) 42%, rgba(0,0,0,.42) 78%, rgba(0,0,0,.78) 100%),
      var(--page-cover-image); }
}
@media (max-width: 900px) {
  [dir="rtl"] .page-hero { background-position: bottom left; }
}
@media (max-width: 900px) {
  [dir="rtl"] .post-hero { background-position: bottom left; }
  [dir="rtl"] .post-hero--style-blog_default_1 { background-position: bottom left; }
}
[dir="rtl"] .h2-partner { padding: 6px 12px 6px 16px; }
[dir="rtl"] .ms-hero-btn { padding: 12px 20px 12px 16px; background-image: linear-gradient(-90deg, #2092ef 0%, #1668c3 100%); }
[dir="rtl"] .ms-hero-btn::before { background-image: linear-gradient(-90deg, #1668c3 0%, #2092ef 100%); }
[dir="rtl"] .ms-assess-btn { padding: 12px 20px 12px 16px; background-image: linear-gradient(-90deg, #2092ef 0%, #1668c3 100%); }
[dir="rtl"] .ms-assess-btn::before { background-image: linear-gradient(-90deg, #1668c3 0%, #2092ef 100%); }
[dir="rtl"] .ms-steps-card { padding: 0 0 0 30px; }
[dir="rtl"] .ldg-stamp { padding: 0 16px 0 0; }
[dir="rtl"] .rmodal-form .form-field .rmodal-amount input.rmodal-amount-cur { background-position: left 12px center !important; }
[dir="rtl"] .rmodal-consent input:checked ~ .rmodal-consent-mark::after { border-width: 0 0 2px 2px; transform: rotate(-45deg); }
[dir="rtl"] a.ms-faq-row:hover .ms-faq-q { transform: translateX(-6px); }
[dir="rtl"] .ms-help-tab.is-active { background: linear-gradient(-90deg, #2090EC 0%, #176BC6 100%); }
[dir="rtl"] .saa-submit { background-image: linear-gradient(-90deg, #2092ef 0%, #1668c3 100%); }
[dir="rtl"] .saa-submit::before { background-image: linear-gradient(-90deg, #1668c3 0%, #2092ef 100%); }
[dir="rtl"] .rwiz-next, [dir="rtl"] .rwiz-send { background-image: linear-gradient(-90deg, #2092ef 0%, #1668c3 100%); }
[dir="rtl"] .rwiz-next::before, [dir="rtl"] .rwiz-send::before { background-image: linear-gradient(-90deg, #1668c3 0%, #2092ef 100%); }
[dir="rtl"] .ms-footer-ctext::after { transform-origin: right; }
[dir="rtl"] .ms-footer-policies a::after { transform-origin: right; }
[dir="rtl"] .page-hero.page-hero--style-page_home .page-hero-btn { padding: 12px 20px 12px 16px; background-image: linear-gradient(-90deg, #2092ef 0%, #1668c3 100%); }
[dir="rtl"] .page-hero.page-hero--style-page_home .page-hero-btn::before { background-image: linear-gradient(-90deg, #1668c3 0%, #2092ef 100%); }
[dir="rtl"] .aml-btn--primary { background: linear-gradient(-90deg, #2092ef 0%, #1668c3 100%); }
[dir="rtl"] .aml-btn--primary:hover { background: linear-gradient(-90deg, #1668c3 0%, #2093ef 100%); }
[dir="rtl"] .aml-btn--ghost:hover { background: linear-gradient(-90deg, #1668c3 0%, #2093ef 100%); }
[dir="rtl"] .aml-plan-bar i { border-radius: 0 999px 999px 0; }
[dir="rtl"] .page-hero.page-hero--style-page_incident .page-hero-btn { background-image: linear-gradient(-90deg, #2092ef 0%, #1668c3 100%); }
[dir="rtl"] .incident-steps-card { padding: 0 0 0 30px; }
[dir="rtl"] .page-hero.page-hero--style-page_amlbot { background-position: center left; }
[dir="rtl"] .page-hero.page-hero--style-page_amlbot.has-cover { background-image:
    linear-gradient(-90deg, #000 0%, rgba(0,0,0,.97) 42%, rgba(0,0,0,.34) 68%, rgba(0,0,0,.58) 100%),
    var(--page-cover-image); background-position: center, center left; }
[dir="rtl"] .page-hero.page-hero--style-page_amlbot .page-hero-btn { background: linear-gradient(-90deg, #2092ef 0%, #1668c3 100%); }
[dir="rtl"] .page-hero.page-hero--style-page_amlbot .page-hero-btn:hover { background: linear-gradient(-90deg, #1668c3 0%, #2092ef 100%); }
@media (max-width: 900px) {
  [dir="rtl"] .page-hero.page-hero--style-page_amlbot { background-position: bottom left; }
  [dir="rtl"] .page-hero.page-hero--style-page_amlbot.has-cover { background-position: center, bottom left; }
}
@media (max-width: 720px) {
  [dir="rtl"] .page-hero.page-hero--style-page_amlbot.has-cover { background-image:
      linear-gradient(-180deg, rgba(0,0,0,.82) 0%, rgba(0,0,0,.70) 30%, rgba(0,0,0,.28) 60%, rgba(0,0,0,.08) 100%),
      var(--page-cover-image); }
}
[dir="rtl"] .amlck-dd.is-open .amlck-dd-chev { transform:rotate(-180deg); }
[dir="rtl"] .amlck-btn--primary, [dir="rtl"] .amlck-btn--report { background:linear-gradient(-90deg,#2092ef 0%,#1668c3 100%); }
[dir="rtl"] .amlck-gate { background:linear-gradient(-180deg, rgba(4,4,4,.06) 0%, var(--c-surface-2) 60%); }
@media (max-width:560px) {
  [dir="rtl"] .amlck-cats.is-expanded .amlck-cats-chev { transform:rotate(-180deg); }
}
[dir="rtl"] .amlck-gate { background:linear-gradient(-180deg, rgba(4,4,4,.05) 0%, var(--c-surface-2) 62%); }
