/* Blocksy Child - 1xBet: header / hero / footer / article styles */

:root {
  --xc-navy: #123a5e;
  --xc-navy-dark: #0d2c47;
  --xc-yellow: #ffc400;
  --xc-yellow-dark: #e0a800;
  --xc-green: #2fa84f;
  --xc-green-dark: #23833d;
  --xc-text: #1c2733;
  --xc-muted: #64707d;
  --xc-border: #e4e8ee;
  --xc-bg-alt: #f5f6f8;
  --xc-radius: 10px;
  --xc-container: 1100px;
}

/* !important - Blocksy подключает свой bundle (main.min.css) ПОСЛЕ этого файла и
   заново переопределяет --theme-font-stack-default / font-family на body и заголовках,
   поэтому обычная специфичность/порядок тут не работают. */
html body, h1, h2, h3, h4, h5, h6, button, input, select, textarea {
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol' !important;
}

/* Blocksy ставит заголовкам font-weight:800 - на системном шрифте это выглядело как обычный
   bold, но настоящий Roboto рендерит 800 честно и слишком жирно. Ограничиваем. */
h1, h2, h3 { font-weight: 700 !important; }
h4, h5, h6 { font-weight: 600 !important; }

.container { max-width: var(--xc-container); margin: 0 auto; padding: 0 16px; }

/* ==================== Header ==================== */

.site-topbar {
  background: var(--xc-navy); position: sticky; top: 0; z-index: 40;
  transition: box-shadow .25s ease;
}
.site-topbar.is-scrolled { box-shadow: 0 4px 16px rgba(0,0,0,.18); }
.site-topbar__inner {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; padding: 12px 16px; position: relative;
  transition: padding .2s ease;
}
.site-topbar.is-scrolled .site-topbar__inner { padding: 7px 16px; }

.site-brand { order: 1; display: inline-flex; align-items: center; gap: 8px; }
.site-brand__logo { display: block; height: 28px; width: auto; transition: height .2s ease; }
.site-brand__flag { display: block; height: 20px; width: auto; border-radius: 2px; margin-top: 6px; transition: height .2s ease; }
.site-topbar.is-scrolled .site-brand__logo { height: 22px; }
.site-topbar.is-scrolled .site-brand__flag { height: 16px; margin-top: 4px; }

/* Быстрые ссылки по разделам - по центру, только десктоп (на мобиле дублируются внутри drawer) */
.site-quicknav { display: none; }

.site-burger {
  order: 2; margin-left: auto; width: 40px; height: 40px; border: 0; background: rgba(255,255,255,.08);
  border-radius: 8px; display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; cursor: pointer; transition: width .2s ease, height .2s ease;
}
.site-burger span {
  display: block; width: 20px; height: 2px; background: #fff; border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.site-topbar.is-scrolled .site-burger { width: 34px; height: 34px; }

/* Бургер -> крестик при открытом мобильном меню */
.site-burger.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.site-burger.is-open span:nth-child(2) { opacity: 0; }
.site-burger.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.site-nav {
  order: 3; flex-basis: 100%; display: none; position: relative;
  background: #17466f; border-radius: 10px; padding: 16px; margin-top: 4px;
}
.site-nav.is-open { display: block; }

.site-nav__list { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.site-nav__list li { border-top: 0; }
.site-nav__list a, .site-nav__list li a { display: block; padding: 10px 4px; color: #dce6f2; text-decoration: none; font-size: 14px; }
.site-nav__list a:hover { color: #fff; }

/* Кнопки Log In / Registration - на всю ширину и разного цвета на мобиле */
.site-nav__list .cta-form { display: block; }
.site-nav__btn.site-nav__btn {
  display: block; width: 100%; padding: 12px; border: 0; border-radius: 8px; font-family: inherit; font-size: 15px;
  font-weight: 700; text-align: center; cursor: pointer; color: #fff;
}
.site-nav__btn--login.site-nav__btn--login { background: #2f6ea3; }
.site-nav__btn--reg.site-nav__btn--reg { background: var(--xc-green); }
.site-nav__btn--login:hover { background: #3a80bb; }
.site-nav__btn--reg:hover { background: var(--xc-green-dark); }

/* Дублирующийся список быстрых ссылок внутри мобильного drawer'а (под кнопками) */
.site-nav__quicklist { list-style: none; margin: 14px 0 0; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.08); display: flex; flex-direction: column; }
.site-nav__quicklist li { border-top: 1px solid rgba(255,255,255,.08); }
.site-nav__quicklist li:first-child { border-top: 0; }
.site-nav__quicklist a { display: block; padding: 10px 4px; color: #dce6f2; text-decoration: none; font-size: 14px; }
.site-nav__quicklist a:hover { color: #fff; }

@media (min-width: 900px) {
  .site-topbar__inner { flex-wrap: nowrap; }
  .site-burger { display: none; }

  .site-quicknav { order: 2; display: flex; flex: 1 1 auto; justify-content: center; gap: 4px; }
  .site-quicknav a { color: #dce6f2; text-decoration: none; font-size: 13px; padding: 8px 12px; border-radius: 6px; white-space: nowrap; }
  .site-quicknav a:hover { background: rgba(255,255,255,.08); color: #fff; }

  .site-nav { order: 3; flex: 0 0 auto; flex-basis: auto; display: block !important; background: none; padding: 0; margin-top: 0; margin-left: auto; }
  .site-nav__quicklist { display: none !important; }
  .site-nav__list { flex-direction: row; gap: 8px; margin-top: 0; }
  .site-nav__btn.site-nav__btn { width: auto; padding: 8px 16px; font-size: 14px; transition: padding .2s ease; }
  .site-topbar.is-scrolled .site-nav__btn.site-nav__btn { padding: 6px 14px; }
}

/* ==================== Hero ==================== */

.hero { background: #fff; padding: 28px 0 12px; }
.hero__title { margin: 0 0 22px; font-size: 24px; line-height: 1.3; font-weight: 800; color: var(--xc-text); }

.hero__card { background: transparent; padding: 0; box-shadow: none; }

.hero__grid {
  display: grid;
  gap: 20px;
  grid-template-areas:
    "icon"
    "cta"
    "specs"
    "platforms";
}

.hero__icon { grid-area: icon; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.app-card { display: contents; }
.app-flag { width: 120px; }
.app-flag img { width: 100%; height: auto; display: block; filter: drop-shadow(0 14px 22px rgba(18,58,94,.35)); }
.rating {
  display: inline-flex; align-items: center; gap: 5px;
  background: #fff8e6; border: 1px solid #ffe8ad; border-radius: 999px;
  padding: 5px 12px; font-size: 13px;
}
.rating .star { color: var(--xc-yellow-dark); font-size: 14px; line-height: 1; }
.rating .ratingnumb { font-weight: 800; color: var(--xc-text); }

.cta-row { grid-area: cta; display: flex; flex-direction: column; gap: 10px; }
.cta-form { display: block; }
.btn.btn { display: inline-flex; width: 100%; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: var(--xc-radius); padding: 16px 18px; font-weight: 800; font-size: 16px; cursor: pointer; text-decoration: none; line-height: 1.2; transition: background-color .15s, transform .1s; }
.btn.btn--green { background: var(--xc-green) !important; color: #fff !important; }
.btn.btn--green:hover { background: var(--xc-green-dark) !important; }
.btn.btn--download { box-shadow: 0 10px 22px rgba(47,168,79,.35); }
.btn:active { transform: translateY(1px); }
.btn__icon { font-size: 14px; }

/* По решению клиента: кнопка Login и бонус-бейдж на первом экране не показываем - только Download.
   Данные при этом не удаляются, доступны в metaboxes/legacy-полях, просто скрыты в вёрстке. */
.btn.btn--yellow, .cta-form:has(.btn--yellow) { display: none !important; }
.badge { display: none !important; }
.cta-stack { display: block; }

.hero-specs { grid-area: specs; }
.hero-specs__grid { list-style: none; margin: 0; padding: 0; border: 1px solid var(--xc-border); border-radius: var(--xc-radius); overflow: hidden; }
.hero-specs__item { display: flex; align-items: center; padding: 0; font-size: 13px; }
.hero-specs__item:nth-child(odd) { background: var(--xc-bg-alt); }
.hero-specs__item + .hero-specs__item { border-top: 1px solid var(--xc-border); }
.hero-specs__label {
  color: var(--xc-text) !important; font-weight: 700; flex: 0 0 42%; padding: 14px 12px;
  border-right: 1px solid var(--xc-border); align-self: stretch; display: flex; align-items: center;
}
.hero-specs__value {
  color: var(--xc-text) !important; font-weight: 700; text-align: left; min-width: 0; flex: 1;
  padding: 14px 12px;
}

/* Больше "воздуха" в ячейках на десктопе */
@media (min-width: 900px) {
  .hero-specs__grid { border-radius: 16px; }
  .hero-specs__label, .hero-specs__value { padding: 16px 20px; }
}

/* Длинные однословные значения (хэши и т.п.) - сокращаем с раскрытием по клику "More" */
.hero-specs__value-short { display: inline; }
.hero-specs__value-full { display: none; word-break: break-all; text-align: left; }
.hero-specs__value.is-expanded .hero-specs__value-short { display: none; }
.hero-specs__value.is-expanded .hero-specs__value-full { display: block; margin-top: 4px; }
.hero-specs__more {
  display: inline; margin-left: 4px; padding: 0; border: 0; background: none; color: var(--xc-navy);
  font-weight: 700; font-size: 12px; text-decoration: underline; cursor: pointer;
}


/* Trust-бейджи под кнопкой скачивания (замена ряда OS-иконок) */
.trust-badges { grid-area: platforms; list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; }
.trust-badges li { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--xc-muted); }
.trust-badges__icon { font-size: 13px; color: var(--xc-green); }

@media (min-width: 860px) {
  .hero__grid {
    grid-template-columns: 220px 1fr;
    grid-template-areas:
      "icon   specs"
      "icon   cta"
      "icon   platforms";
    align-items: start;
    column-gap: 32px;
  }
  .hero__title { font-size: 36px; }
  .trust-badges { justify-content: flex-start; }
}

/* ==================== Screenshots ==================== */

section.content { padding: 16px 0; }
.h2 { display: block; font-weight: 800; letter-spacing: .04em; font-size: 13px; color: var(--xc-muted); margin-bottom: 10px; }
.app-shots { padding-bottom: 6px; }
.app-shots, .app-shots__track { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; cursor: grab; }
.app-shots.is-dragging, .app-shots__track.is-dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.app-shots::-webkit-scrollbar, .app-shots__track::-webkit-scrollbar { display: none; }
.app-shots__item { flex: 0 0 auto; width: 120px; border-radius: 10px; overflow: hidden; border: 1px solid var(--xc-border); display: block; scroll-snap-align: start; }
.app-shots__item img { width: 100%; display: block; }

/* ==================== Table of contents (генерируется inc/table-contents.php) ==================== */

.quick-spoiler { background: var(--xc-bg-alt); border-radius: var(--xc-radius); margin: 16px 0; overflow: hidden; }
.quick-spoiler__toggle { position: absolute; opacity: 0; pointer-events: none; }
.quick-spoiler__summary { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; cursor: pointer; font-weight: 700; color: var(--xc-text); }
.quick-spoiler__chev { width: 10px; height: 10px; border-right: 2px solid var(--xc-muted); border-bottom: 2px solid var(--xc-muted); transform: rotate(45deg); transition: transform .2s; }
.quick-spoiler__content { max-height: 0; overflow: hidden; transition: max-height .25s ease; padding: 0 16px; }
.quick-spoiler__toggle:checked ~ .quick-spoiler__summary .quick-spoiler__chev { transform: rotate(-135deg); }
.quick-spoiler__toggle:checked ~ .quick-spoiler__content { max-height: 600px; padding-bottom: 14px; }
.quick-grid { display: grid; gap: 8px; }
.quick-list { margin: 0; padding-left: 18px; }
.quick-list a { color: var(--xc-navy); text-decoration: none; font-size: 14px; }
.quick-list a:hover { text-decoration: underline; }
@media (min-width: 700px) { .quick-grid { grid-template-columns: repeat(3, 1fr); } }

/* ==================== Article ==================== */

.article-section { padding: 16px 0 24px; }
.section-head { margin-bottom: 12px; }
.section-title { font-size: 20px; font-weight: 800; color: var(--xc-text); }

/* Белая карточка под текстом статьи - фон страницы вокруг остаётся серым */
.article-flow {
  background: #fff; border-radius: 18px; padding: 28px 30px;
  box-shadow: 0 6px 20px rgba(18,58,94,.06); border: 1px solid var(--xc-border);
}
.article-flow, .article-one, .article-card { color: var(--xc-text); font-size: 15.5px; line-height: 1.75; }

/* Страницы на стандартном шаблоне Blocksy (About/Contact/Privacy - не наш template-page-simple.php)
   у самого Blocksy шире контейнер (--theme-normal-container-max-width: 1290px), чем на главной
   (наш --xc-container: 1100px) - выравниваем ширину, чтобы не отличалась от главной. */
.type-page {
  --theme-normal-container-max-width: var(--xc-container);
}

/* Тот же белый "карточный" фон под контентом, чтобы не сливалось с серым фоном страницы. */
.type-page .entry-content {
  background: #fff; border-radius: 18px; padding: 28px 30px; margin-top: 20px; margin-bottom: 20px;
  box-shadow: 0 6px 20px rgba(18,58,94,.06); border: 1px solid var(--xc-border);
  color: var(--xc-text); font-size: 15.5px; line-height: 1.75;
}
.type-page .entry-content h2 { font-size: 20px; font-weight: 800; margin: 28px 0 14px; color: var(--xc-text); }
.type-page .entry-content h2:first-child { margin-top: 0; }
.type-page .entry-content ul { padding-left: 22px; }
.type-page .entry-content a { color: var(--xc-navy); font-weight: 600; }

@media (max-width: 600px) {
  .type-page .entry-content { padding: 20px 18px; border-radius: 14px; }
}

@media (max-width: 600px) {
  .article-flow { padding: 20px 18px; border-radius: 14px; }
}

/* H2 - крупный заголовок секции с цветным акцентом слева, не просто жирный текст */
.article-one h2, .article-card h2 {
  font-size: 20px; font-weight: 800; line-height: 1.3; color: var(--xc-text);
  margin: 40px 0 16px; padding-left: 14px; border-left: 4px solid var(--xc-green);
  scroll-margin-top: 90px;
}
.article-one h2:first-child, .article-card h2:first-child { margin-top: 0; }
.article-one h3, .article-card h3 { font-size: 17px; font-weight: 700; margin: 24px 0 10px; color: var(--xc-navy); scroll-margin-top: 90px; }

@media (min-width: 900px) {
  .article-one h2, .article-card h2, .type-page .entry-content h2, .howto-title, .section-title { font-size: 27px; }
  .article-one h3, .article-card h3 { font-size: 22px; }
}

/* Первый абзац сразу после заголовка - крупнее и светлее, как лид-текст */
.article-one h2 + p, .article-card h2 + p { font-size: 16.5px; color: #3a4652; }

.article-one p, .article-card p { margin: 0 0 16px; }
.article-one a, .article-card a { color: var(--xc-navy); font-weight: 600; text-decoration: underline; text-decoration-color: rgba(18,58,94,.35); text-underline-offset: 2px; }
.article-one a:hover, .article-card a:hover { text-decoration-color: var(--xc-navy); }
.article-one img, .article-card img { max-width: 100%; height: auto; border-radius: 12px; box-shadow: 0 10px 24px rgba(18,58,94,.12); }
.article-one center, .article-card center { display: block; margin: 20px 0; }

/* Превью-скрины в статьях (About и т.п.) - компактнее и по центру, чтобы не забивали
   собой весь текст; полный оригинал открывается в лайтбоксе по клику. */
.about-img { display: block; width: 100%; max-width: 380px; margin: 12px auto 22px; }
.about-img img { display: block; width: 100%; height: auto; }

/* Обычные списки (без спец. класса) - аккуратные маркеры вместо browser-default */
.article-one ul:not(.list--ul), .article-card ul:not(.list--ul) { margin: 0 0 16px; padding-left: 4px; list-style: none; }
.article-one ul:not(.list--ul) li, .article-card ul:not(.list--ul) li { position: relative; padding-left: 20px; margin-bottom: 6px; }
.article-one ul:not(.list--ul) li::before, .article-card ul:not(.list--ul) li::before { content: "-"; position: absolute; left: 0; color: var(--xc-navy); font-weight: 700; }
.article-one ol:not(.list--ul), .article-card ol:not(.list--ul) { margin: 0 0 16px; padding-left: 22px; }

/* Чек-лист преимуществ: <ul class="list list--ul"> - карточка с зелёными галочками */
.article-one ul.list--ul, .article-card ul.list--ul {
  list-style: none; margin: 20px 0; padding: 16px 18px; display: grid; gap: 12px;
  background: var(--xc-bg-alt); border-radius: var(--xc-radius); border: 1px solid var(--xc-border);
}
.article-one ul.list--ul li, .article-card ul.list--ul li { position: relative; padding-left: 30px; }
.article-one ul.list--ul li::before, .article-card ul.list--ul li::before {
  content: "✓"; position: absolute; left: 0; top: 1px; width: 19px; height: 19px; border-radius: 999px;
  background: var(--xc-green); color: #fff; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.article-one ul.list--ul b, .article-card ul.list--ul b { color: var(--xc-navy); }

/* Пошаговые инструкции: <ol class="list list--ul"> - те же цвета, но с номером шага, а не галочкой */
.article-one ol.list--ul, .article-card ol.list--ul {
  list-style: none; margin: 20px 0; padding: 0; counter-reset: xc-step; display: grid; gap: 18px;
}
.article-one ol.list--ul li, .article-card ol.list--ul li { position: relative; padding-left: 34px; counter-increment: xc-step; }
.article-one ol.list--ul li::before, .article-card ol.list--ul li::before {
  content: counter(xc-step); position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 999px;
  background: var(--xc-navy); color: #fff; font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center;
}

/* Таблицы в статье (.table-wrap > .data-table) */
.table-wrap { overflow-x: auto; margin: 18px 0; border: 1px solid var(--xc-border); border-radius: var(--xc-radius); -webkit-overflow-scrolling: touch; }
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table th, .data-table td { padding: 10px 14px; text-align: left; white-space: nowrap; }
.data-table thead th { background: var(--xc-navy); color: #fff; font-weight: 700; }
.data-table tbody tr:nth-child(odd) { background: var(--xc-bg-alt); }
.data-table tbody tr + tr { border-top: 1px solid var(--xc-border); }
.data-table .__cf_email__ { color: inherit; }

/* Карточки поддержки - замена таблицы с пустыми ячейками (JS: .data-table -> .support-cards) */
.support-cards { display: grid; grid-template-columns: 1fr; gap: 12px; margin: 18px 0; }
.support-card {
  background: var(--xc-bg-alt); border: 1px solid var(--xc-border); border-radius: var(--xc-radius);
  padding: 14px 16px;
}
.support-card__head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.support-card__icon {
  flex: 0 0 auto; width: 32px; height: 32px; border-radius: 999px; background: #fff;
  border: 1px solid var(--xc-border); display: inline-flex; align-items: center; justify-content: center; font-size: 15px;
}
.support-card__channel { flex: 1; font-weight: 800; font-size: 15px; color: var(--xc-text); }
.support-card__response {
  font-size: 11px; font-weight: 700; color: var(--xc-navy); background: #fff; border: 1px solid var(--xc-border);
  border-radius: 999px; padding: 3px 10px; white-space: nowrap;
}
.support-card__best { margin: 0 0 0 42px; color: var(--xc-muted); font-size: 13px; }
.support-card__contact {
  margin: 8px 0 0 42px; padding-top: 8px; border-top: 1px dashed var(--xc-border);
  font-size: 13px; font-weight: 700; color: var(--xc-green);
}

@media (min-width: 620px) {
  .support-cards { grid-template-columns: 1fr 1fr; }
}

/* Блок пошаговой инструкции (.howto-card / .howto-step) - слайдер карточек: заголовок → картинка → текст */
.howto-card {
  margin: 32px 0; background: var(--xc-bg-alt); border: 1px solid var(--xc-border);
  border-radius: 18px; padding: 24px 0 24px 26px;
}
.howto-head { margin-bottom: 18px; padding-right: 26px; }
.howto-title { font-size: 20px; font-weight: 800; margin: 0 0 8px; color: var(--xc-text); }
.howto-subtitle { color: var(--xc-muted); font-size: 14px; line-height: 1.6; margin: 0; }
.howto-figure { margin: 16px 26px 0 0; text-align: center; }
.howto-figure img { max-width: 260px; width: 100%; height: auto; border-radius: 14px; box-shadow: 0 12px 26px -8px rgba(18,58,94,.25); }

/* Ряд-слайдер: карточки шагов едут горизонтально (авто-прокрутка - assets/js/main.js) */
/* !important - .howto-steps может оказаться на <ol>, у которого уже есть более специфичное
   правило для обычных списков статьи (margin/padding-left/list-style); гарантируем свой вид. */
.howto-steps {
  display: flex !important; list-style: none !important; margin: 24px 0 !important; padding: 0 26px 4px 0 !important;
  gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; cursor: grab;
}
.howto-steps::-webkit-scrollbar { display: none; }
.howto-steps.is-dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }

/* Пустые "невидимые" абзацы (битая разметка) - на случай, если JS выключен */
.howto-steps > p:empty { display: none !important; }

/* Заключительная строка под слайдером (JS выносит её из ряда сразу после .howto-steps) */
.howto-card > p,
.howto-note {
  margin: 18px 0 20px !important; padding-top: 16px; border-top: 1px solid var(--xc-border);
  font-size: 14px; color: var(--xc-muted); line-height: 1.6;
}

/* Внутри карточки: display:contents на body "распаковывает" head/text, чтобы их можно было
   расставить по отдельности через order вместе с картинкой (которая физически не сосед body -
   see: битая исходная HTML-разметка статьи). */
.howto-step {
  display: flex !important; flex-direction: column; gap: 12px; margin: 0 !important; list-style: none !important;
  flex: 0 0 260px; width: 260px; scroll-snap-align: start;
  background: #fff; border: 1px solid var(--xc-border); border-radius: 16px; padding: 18px;
  box-shadow: 0 10px 24px -8px rgba(18,58,94,.15);
}
.howto-step__body { display: contents; }
.howto-step > p { margin: 0; }

.howto-step__head { order: 1; display: flex; align-items: center; gap: 10px; }
.howto-step__num {
  width: 30px; height: 30px; border-radius: 999px; background: var(--xc-navy); color: #fff; font-weight: 800;
  font-size: 13px; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
  box-shadow: 0 6px 14px rgba(18,58,94,.3);
}
.howto-step__title { margin: 0 !important; font-size: 16px !important; font-weight: 800; color: var(--xc-text); }

/* Картинка лежит внутри <p>-обёртки (битая исходная разметка) - реальный flex-item это <p>,
   не сама <a>, поэтому order ставим именно на него через :has(). */
.howto-step > p:has(> a.howto-step__shot) { order: 2; }

a.howto-step__shot.howto-step__shot {
  order: 2; width: 100% !important; max-width: 100% !important; flex: 0 0 auto !important;
  position: relative; display: block; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--xc-border); background: var(--xc-bg-alt);
}
.howto-step__shot img { width: 100% !important; max-width: 100% !important; height: auto !important; display: block; margin: 0 !important; border-radius: 0; }
.howto-step__zoomhint { width: auto !important; position: absolute; inset: auto 0 0 0; background: rgba(18,58,94,.85); color: #fff; font-size: 11px; text-align: center; padding: 6px 0; }

.howto-step__text { order: 3; margin: 0 !important; color: var(--xc-muted); font-size: 14px; line-height: 1.6; }

@media (max-width: 680px) {
  .howto-card { padding: 18px 0 18px 16px; }
  .howto-head { padding-right: 16px; }
  .howto-steps { padding-right: 16px; }
  .howto-step { flex-basis: 240px; width: 240px; }
  .howto-card > p { margin-right: 16px !important; }
}

/* ==================== Author review ==================== */

.author-review { padding: 8px 0 24px; }
.author-review__card {
  position: relative; display: flex; align-items: center; flex-wrap: wrap; gap: 10px 12px;
  background: var(--xc-bg-alt); border: 1px solid var(--xc-border); border-radius: var(--xc-radius);
  padding: 12px 14px; overflow: hidden;
}
.author-review__accent { position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--xc-green); }
.author-review__avatar { border-radius: 999px; object-fit: cover; width: 52px !important; height: 52px !important; flex: 0 0 52px; }
.author-review__content { flex: 1 1 auto; min-width: 0; }
.author-review__name { font-weight: 800; font-size: 14px; color: var(--xc-text); }
.author-review__role { margin: 1px 0 0; font-size: 12px; color: var(--xc-muted); }
.author-review__side {
  flex: 1 1 100%; display: flex; align-items: center; justify-content: space-between;
  margin-top: 6px; padding-top: 8px; border-top: 1px solid var(--xc-border); font-size: 12px; color: var(--xc-muted);
}
.author-review__side-date { font-weight: 700; color: var(--xc-text); }

@media (min-width: 900px) {
  .author-review__card { padding: 16px 20px; gap: 14px; }
  .author-review__avatar { width: 64px !important; height: 64px !important; flex: 0 0 64px; }
  .author-review__name { font-size: 16px; }
  .author-review__role { font-size: 13px; }
  .author-review__side {
    flex: 0 0 auto; flex-direction: column; align-items: flex-end; text-align: right;
    margin-top: 0; margin-left: auto; padding-top: 0; border-top: 0;
  }
  .author-review__side-date { display: block; }
}

/* ==================== FAQ ==================== */

.faq-section { padding: 8px 0 32px; }
.faq-grid { display: grid; gap: 10px; }
.faq__item { border: 1px solid var(--xc-border); border-radius: var(--xc-radius); padding: 4px 14px; background: #fff; }
.faq__summary { display: flex; align-items: center; gap: 10px; padding: 12px 0; cursor: pointer; list-style: none; font-weight: 700; color: var(--xc-text); }
.faq__summary::-webkit-details-marker { display: none; }
.faq__icon { width: 20px; height: 20px; flex: 0 0 auto; border-radius: 999px; background: var(--xc-navy); color: #fff; font-size: 12px; display: inline-flex; align-items: center; justify-content: center; }
.faq__chev { margin-left: auto; width: 9px; height: 9px; border-right: 2px solid var(--xc-muted); border-bottom: 2px solid var(--xc-muted); transform: rotate(45deg); }
details[open] .faq__chev { transform: rotate(-135deg); }
.faq__content { padding: 0 0 14px 30px; color: var(--xc-muted); line-height: 1.7; }

/* ==================== Footer ==================== */

.site-footer { background: var(--xc-navy-dark); color: #cfdbe8; margin-top: 24px; }
.site-footer__grid { display: grid; gap: 28px; padding: 28px 24px; }
.site-footer__col { min-width: 0; }
.site-footer__title { display: block; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #7f92a8; margin: 0 0 10px; }
.site-footer__copy { font-size: 13px; margin: 10px 0 0; color: #9fb0c2; }

.site-footer__contacts { display: flex; flex-direction: column; gap: 4px; margin-top: 12px; }
.site-footer__contacts a { color: #cfdbe8; text-decoration: none; font-size: 13px; }
.site-footer__contacts a:hover { color: #fff; }

.site-footer__social { display: flex; gap: 8px; margin-top: 14px; }
.site-footer__social a { width: 32px; height: 32px; border-radius: 999px; background: rgba(255,255,255,.08); display: inline-flex; align-items: center; justify-content: center; color: #cfdbe8; }
.site-footer__social a:hover { background: rgba(255,255,255,.16); color: #fff; }

.site-footer__nav { display: flex; flex-direction: column; gap: 10px; }
.site-footer__nav a { color: #cfdbe8; text-decoration: none; font-size: 13px; }
.site-footer__nav a:hover { color: #fff; }

.site-footer__payment-list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.payment-badge {
  display: inline-flex; align-items: center; justify-content: center; height: 34px; padding: 4px 10px;
  border-radius: 6px; background: #fff;
}
.payment-badge img { width: 90px; height: 100%; object-fit: contain; display: block; }

/* Базовые стили иконок-кнопок платформ (используются в футере) */
.platform-icons { display: flex; gap: 6px; }
.picon.picon { width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--xc-border); background: #fff !important; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 5px; }
.picon img { width: 100%; height: 100%; object-fit: contain; }

.site-footer .platform-icons { gap: 8px; }
.site-footer .platform-icons .picon { background: rgba(255,255,255,.06) !important; border-color: rgba(255,255,255,.15); width: 34px; height: 34px; }

.site-footer__legal { padding: 16px 24px; border-top: 1px solid rgba(255,255,255,.08); display: grid; gap: 8px; }
.site-footer__legal small { display: block; font-size: 11px; color: #94a7bb; line-height: 1.5; }
.site-footer__badges { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 8px; }
.site-footer__badges img { height: 28px !important; width: auto !important; max-width: none !important; }
.site-footer__col--brand > img { height: 28px !important; width: auto !important; display: block; }

@media (min-width: 760px) {
  .site-footer__grid { grid-template-columns: 1.3fr 0.8fr 1fr; align-items: start; }
}

/* ==================== Lightbox / back-to-top (общий фронтенд-функционал) ==================== */

.lightbox { position: fixed; inset: 0; display: none; z-index: 100; }
.lightbox.is-open { display: block; }
.lightbox__overlay { position: absolute; inset: 0; background: rgba(10,18,28,.85); }
.lightbox__dialog { position: relative; height: 100%; display: flex; align-items: center; justify-content: center; padding: 24px; }
.lightbox__img { max-width: 100%; max-height: 78vh; border-radius: 8px; }
.lightbox__close { position: absolute; top: 18px; right: 18px; width: 36px; height: 36px; border-radius: 999px; border: 0; background: rgba(255,255,255,.15); color: #fff; font-size: 18px; cursor: pointer; }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 999px; border: 0; background: rgba(255,255,255,.15); color: #fff; font-size: 20px; cursor: pointer; }
.lightbox__nav--prev { left: 12px; }
.lightbox__nav--next { right: 12px; }
.lightbox__bottom { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: #fff; font-size: 13px; }

.to-top { position: fixed; right: 16px; bottom: 16px; width: 44px; height: 44px; border-radius: 999px; border: 0; background: var(--xc-navy); color: #fff; font-size: 18px; opacity: 0; pointer-events: none; transition: opacity .2s; cursor: pointer; z-index: 30; }
.to-top.is-visible { opacity: 1; pointer-events: auto; }

body.is-locked { overflow: hidden; }

/* ==================== Payment / Withdrawal / Partners ==================== */

.methods-section { padding: 8px 0 32px; }
.methods-section .section-title { margin-bottom: 12px; }

.icon-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.icon-grid__item {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  background: var(--xc-bg-alt); border: 1px solid var(--xc-border); border-radius: var(--xc-radius);
  padding: 14px 8px; text-align: center;
}
.icon-grid__item img { max-height: 32px; max-width: 100%; width: auto; object-fit: contain; }
.icon-grid__item span { font-size: 12px; font-weight: 700; color: var(--xc-text); line-height: 1.3; }

.partners-scroll, .partners-track {
  display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; cursor: grab; padding-bottom: 4px;
}
.partners-scroll.is-dragging, .partners-track.is-dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.partners-scroll::-webkit-scrollbar, .partners-track::-webkit-scrollbar { display: none; }
.partners-track__item {
  flex: 0 0 auto; width: 130px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  background: var(--xc-navy); border-radius: var(--xc-radius); padding: 14px 10px; scroll-snap-align: start; text-align: center;
}
.partners-track__item img { max-height: 46px; max-width: 100%; width: auto; object-fit: contain; }
.partners-track__item span { font-size: 11px; font-weight: 700; color: #fff; line-height: 1.3; }

@media (min-width: 900px) {
  .partners-track__item { width: 160px; padding: 18px 12px; }
  .partners-track__item img { max-height: 56px; }
  .partners-track__item span { font-size: 12px; }
}

@media (min-width: 620px) {
  .icon-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 900px) {
  .icon-grid { grid-template-columns: repeat(4, 1fr); gap: 14px; }
  .icon-grid__item { padding: 18px 10px; }
  .icon-grid__item img { max-height: 38px; }
  .partners-grid img { height: 36px; max-width: 120px; }
}

.app-content-section{
  margin: 30px 0;
  padding: 24px 26px;
  background: #f7f9fb;
  border: 1px solid var(--xc-border);
  border-radius: 16px;
}

.article-card.app-content-section h2{
  margin: 0 0 18px;
  padding-left: 14px;
  border-left: 4px solid var(--xc-green);
}

.article-card.app-content-section p{
  margin: 0 0 16px;
  color: #344150;
  line-height: 1.78;
}

.article-card.app-content-section p:last-child{
  margin-bottom: 0;
}

.app-content-note{
  margin: 20px 0;
  padding: 15px 18px;
  background: #ffffff;
  border: 1px solid var(--xc-border);
  border-left: 4px solid var(--xc-navy);
  border-radius: 10px;
  box-shadow: 0 5px 14px rgba(18,58,94,.05);
}

.app-content-note strong{
  display: block;
  margin-bottom: 5px;
  color: var(--xc-navy);
  font-size: 15px;
  font-weight: 700;
}

.article-card .app-content-note p{
  margin: 0;
  color: var(--xc-muted);
  font-size: 14px;
  line-height: 1.65;
}

.app-content-note--warning{
  border-left-color: var(--xc-yellow-dark);
}

.app-content-note--warning strong{
  color: #725800;
}

@media (max-width: 600px){
  .app-content-section{
    margin: 24px 0;
    padding: 19px 17px;
    border-radius: 12px;
  }

  .article-card.app-content-section h2{
    margin-bottom: 15px;
  }

  .article-card.app-content-section p{
    line-height: 1.7;
  }

  .app-content-note{
    margin: 17px 0;
    padding: 13px 14px;
  }
}
