/* 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;
}

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

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

.site-topbar { background: var(--xc-navy); position: relative; z-index: 40; }
.site-topbar__inner { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; padding: 12px 16px; position: relative; }

.site-brand { order: 1; display: inline-flex; align-items: center; }
.site-brand__logo { display: block; height: 28px; width: auto; }

.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; }
.site-burger span { display: block; width: 20px; height: 2px; background: #fff; border-radius: 2px; }

.site-nav { order: 3; flex-basis: 100%; display: none; }
.site-nav.is-open { display: block; }
.site-nav__list { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; }
.site-nav__list li { border-top: 1px solid rgba(255,255,255,.08); }
.site-nav__list li:first-child { border-top: 0; }
.site-nav__list a, .site-nav__list li a,
.site-nav__list .cta-form, .site-nav__btn.site-nav__btn {
  display: block; width: 100%; padding: 10px 4px; color: #dce6f2; text-decoration: none; font-size: 14px;
}
.site-nav__btn.site-nav__btn {
  background: transparent !important; border: 0; text-align: left; font-family: inherit; font-weight: 400; cursor: pointer;
}
.site-nav__list a:hover, .site-nav__btn:hover { color: #fff; }

@media (min-width: 900px) {
  .site-topbar__inner { flex-wrap: nowrap; }
  .site-burger { display: none; }
  .site-nav { order: 2; flex-basis: auto; display: block !important; margin-left: auto; }
  .site-nav__list { flex-direction: row; gap: 4px; }
  .site-nav__list li { border-top: 0; }
  .site-nav__list a, .site-nav__list li a,
  .site-nav__list .cta-form, .site-nav__btn.site-nav__btn { padding: 8px 14px; border-radius: 6px; width: auto; text-align: center; }
  .site-nav__list a:hover, .site-nav__btn:hover { background: rgba(255,255,255,.08); }
}

/* ==================== 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"
    "specs"
    "cta"
    "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; justify-content: space-between; gap: 12px; padding: 14px 16px; 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-muted) !important; font-weight: 600; letter-spacing: .02em; }
.hero-specs__value { color: var(--xc-text) !important; font-weight: 700; text-align: right; }

/* 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) —
   тот же белый "карточный" фон под контентом, чтобы не сливалось с серым фоном страницы. */
.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; }

/* Обычные списки (без спец. класса) — аккуратные маркеры вместо 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; gap: 14px; flex-wrap: wrap; background: var(--xc-bg-alt); border: 1px solid var(--xc-border); border-radius: var(--xc-radius); padding: 16px; 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: 72px !important; height: 72px !important; flex: 0 0 72px; }
.author-review__name { font-weight: 800; color: var(--xc-text); }
.author-review__role { margin: 2px 0 0; font-size: 13px; color: var(--xc-muted); }
.author-review__side { margin-left: auto; text-align: right; font-size: 12px; color: var(--xc-muted); }
.author-review__side-date { display: block; font-weight: 700; color: var(--xc-text); }

/* ==================== 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; }
