/* site.css — ручные правки поверх сгенерированного main.css.
   Сюда выносим то, что на статике (без WP/JS) нужно поправить вручную.
   Подключается ПОСЛЕ main.css. */

/* Карусель скриншотов (Shortcodes Ultimate / Flickity) на оригинале
   раскладывалась JS-ом в горизонтальный слайдер. На статике JS нет, поэтому
   воспроизводим тот же вид статичной горизонтальной лентой со скроллом. */
.su-image-carousel {
  display: flex;
  flex-wrap: nowrap;
  gap: 2.8%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.su-image-carousel .su-image-carousel-item {
  flex: 0 0 22.6%;
  width: 22.6%;
  margin-right: 0 !important;
  scroll-snap-align: start;
}
/* На узких экранах показываем по ~2 скриншота в ленте. */
@media (max-width: 768px) {
  .su-image-carousel .su-image-carousel-item {
    flex-basis: 46%;
    width: 46%;
  }
}

/* ============================================================
   Главная страница — гибридная компоновка.
   Тёмная зона (герой + рейтинг) в фирменном индиго шапки (#150b54)
   с золотым акцентом (#fcd730); ниже — светлый блок-гид.
   ============================================================ */

/* Шапка встык с героем (убираем её нижний отступ только на главной),
   чтобы индиго шапки перетекало в индиго героя без шва. */
.home .header { margin-bottom: 0; }

/* На главной контент идёт во всю ширину .wrap (сайдбар отключён). */
.page-left-col--full { width: 100%; }

/* Padding/border входят в ширину — иначе карточки с width/flex-basis:100%
   (оффер, подиум) переполняют контейнер и обрезаются по краю на мобиле. */
.home-hero, .home-hero *,
.app-rank, .app-rank *,
.home-guide, .home-guide * { box-sizing: border-box; }

/* Общие кнопки геро/рейтинга */
.btn-gold,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 6px;
  padding: 13px 22px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: filter 200ms ease, border-color 200ms ease;
}
.btn-gold { background: #fcd730; color: #150b54; border: 1px solid #fcd730; }
.btn-gold:hover { filter: brightness(1.07); }
.btn-ghost { background: transparent; color: #fff; border: 1px solid #4a3f86; }
.btn-ghost:hover { border-color: #fcd730; }
.btn-gold .fa,
.btn-ghost .fa { font-size: 15px; }

/* ---------- Hero (индиго, встык с шапкой) ---------- */
.home-hero { background: #150b54; }
.home-hero .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 36px;
  padding: 48px 0;
}
.home-hero__text { flex: 1 1 360px; }
.home-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #fcd730;
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.home-hero__eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: #fcd730; }
.home-hero h1 {
  color: #fff;
  font-size: 34px;
  line-height: 1.2;
  font-weight: 700;
  margin: 14px 0 12px;
}
.home-hero h1 b { color: #fcd730; font-weight: 700; }
.home-hero__lead {
  color: #bfb9e6;
  font-size: 16px;
  line-height: 1.6;
  max-width: 520px;
  margin-bottom: 22px;
}
.home-hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.home-hero__chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #cfcaec;
  background: #1d1370;
  border: 1px solid #34298f;
  border-radius: 30px;
  padding: 7px 14px;
  font-size: 13px;
}
.chip .fa { color: #fcd730; }

.home-hero__offer {
  flex: 0 0 320px;
  background: #1d1370;
  border: 1.5px solid #fcd730;
  border-radius: 12px;
  padding: 22px;
}
.home-hero__offer .o-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.o-logo { height: 30px; width: auto; }
.o-badge {
  background: #fcd730;
  color: #150b54;
  font-weight: 700;
  font-size: 12px;
  border-radius: 30px;
  padding: 3px 11px;
}
.o-stars { font-size: 15px; color: #fcd730; margin-bottom: 14px; }
.o-stars .empty { color: #5046a0; }
.o-label { color: #bfb9e6; font-size: 13px; }
.o-bonus { color: #fcd730; font-size: 38px; font-weight: 700; line-height: 1; margin: 4px 0 18px; }
.btn-gold.full,
.btn-ghost.full { width: 100%; box-sizing: border-box; }
.o-fine { color: #8a83bf; font-size: 12px; text-align: center; margin-top: 12px; }

/* ---------- Ranking (глубже индиго для отбивки от героя) ---------- */
.app-rank { background: #0f0840; padding: 38px 0 46px; }
.app-rank__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}
.app-rank__head h2 { color: #fff; font-size: 24px; font-weight: 700; }
.app-rank__head .upd { color: #8a83bf; font-size: 13px; }

.podium { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 18px; }
.pcard {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: #19115f;
  border: 1px solid #2c2188;
  border-radius: 12px;
  padding: 20px;
}
.pcard.win { border-color: #fcd730; }
.pcard__rank { align-self: flex-start; color: #8a83bf; font-size: 13px; }
.pcard.win .pcard__rank { color: #fcd730; }
.pcard__logo { height: 32px; width: auto; margin: 10px 0 12px; }
.pcard__stars { color: #fcd730; font-size: 15px; margin-bottom: 12px; }
.pcard__stars .empty { color: #5046a0; }
.pcard__bonus { color: #fff; font-size: 13px; margin-bottom: 16px; }
.pcard__bonus b { display: block; color: #fcd730; font-size: 22px; font-weight: 700; margin-top: 2px; }
.pcard .btn-gold.full { padding: 11px; }
.pcard .btn-ghost.full { padding: 10px; margin-top: 8px; }

.rank-list { display: flex; flex-direction: column; gap: 6px; }
.rank-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  background: #160d57;
  border: 1px solid #2a2080;
  border-radius: 8px;
  padding: 12px 18px;
}
.rank-row__pos { flex-shrink: 0; width: 22px; text-align: center; color: #8a83bf; font-size: 14px; }
.rank-row__logo { flex-shrink: 0; height: 26px; width: 100px; object-fit: contain; object-position: left center; }
.rank-row__name { flex: 1; min-width: 90px; color: #fff; font-size: 15px; font-weight: 500; }
.rank-row__stars { flex-shrink: 0; color: #fcd730; font-size: 13px; }
.rank-row__stars .empty { color: #5046a0; }
.rank-row__bonus { flex-shrink: 0; min-width: 84px; color: #fcd730; font-size: 15px; font-weight: 700; }
.rank-row__btns { flex-shrink: 0; display: flex; gap: 8px; }
.rank-row__btns a { font-size: 13px; font-weight: 600; border-radius: 5px; padding: 8px 14px; text-decoration: none; }
.rank-row__btns .an { color: #fff; border: 1px solid #fcd730; background: none; }
.rank-row__btns .dl { color: #150b54; background: #fcd730; }
.rank-row__btns .dl:hover { filter: brightness(1.07); }

/* ---------- Светлый блок-гид (статья-карточки на тёмном фоне) ---------- */
.home-guide {
  max-width: 900px;
  margin: 40px auto 12px;
  background: #fbfbf9;
  border-top: 4px solid #fcd730;
  border-radius: 12px;
  padding: 34px 40px;
  color: #23282d;
}
.home-guide h2 { color: #161b20; font-size: 22px; font-weight: 700; margin: 26px 0 12px; }
.home-guide h2:first-of-type { margin-top: 18px; }
.home-guide p { color: #3a4046; font-size: 16px; line-height: 1.7; margin-bottom: 14px; }
.home-guide .guide-lead { font-size: 17px; }
.home-guide strong { color: #161b20; }

.guide-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 16px 0 6px; }
.guide-card { background: #f4f4f1; border: 1px solid #e7e7e2; border-radius: 10px; padding: 18px 20px; }
.guide-card h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #161b20;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
}
.guide-card h3 .fa { color: #150b54; font-size: 19px; }

/* Нумерованный «степпер»: тема сбрасывает list-style:none глобально, поэтому
   рисуем номера сами кружком-счётчиком — не зависит от list-style. */
.guide-steps { list-style: none; counter-reset: gstep; margin: 0; padding: 0; }
.guide-steps li {
  counter-increment: gstep;
  position: relative;
  padding: 3px 0 3px 38px;
  margin-bottom: 10px;
  color: #3a4046;
  font-size: 15px;
  line-height: 1.5;
}
.guide-steps li:last-child { margin-bottom: 0; }
.guide-steps li::before {
  content: counter(gstep);
  position: absolute;
  left: 0;
  top: 1px;
  width: 25px;
  height: 25px;
  background: #150b54;
  color: #fff;
  border-radius: 50%;
  text-align: center;
  line-height: 25px;
  font-size: 12px;
  font-weight: 700;
}
.guide-steps--wide li { font-size: 16px; padding-top: 4px; padding-bottom: 4px; }

.guide-checks { list-style: none; margin: 6px 0 0; padding: 0; }
.guide-checks li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  color: #3a4046;
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 11px;
}
.guide-checks li .fa { color: #1e9e57; font-size: 18px; margin-top: 2px; flex-shrink: 0; }

.guide-conc {
  display: flex;
  gap: 12px;
  background: #f3f1fb;
  border: 1px solid #e1ddf3;
  border-radius: 10px;
  padding: 16px 18px;
  margin-top: 24px;
  color: #3a4046;
  font-size: 15px;
  line-height: 1.65;
}
.guide-conc .fa { color: #150b54; font-size: 20px; flex-shrink: 0; margin-top: 1px; }

/* ---------- Адаптив ---------- */
@media (max-width: 860px) {
  /* Тема не даёт боковых отступов .wrap на мобиле — добавляем их секциям,
     иначе контент и бейдж «#1» прилипают к краю экрана. */
  .home-hero .wrap,
  .app-rank .wrap { padding-left: 16px; padding-right: 16px; }
  .home-hero .wrap { padding-top: 32px; padding-bottom: 32px; }
  .home-hero h1 { font-size: 27px; }
  .home-hero__offer { flex-basis: 100%; }
  .podium { grid-template-columns: 1fr; }
  .rank-row__name { order: -1; flex-basis: 100%; }
  .guide-cards { grid-template-columns: 1fr; }
  .home-guide { margin-left: 12px; margin-right: 12px; padding: 24px 20px; }
}
