/* ==========================================================================
   Iron Bank Кыргызстан — page-home.css
   ========================================================================== */

/* ---------- Hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  padding: 56px 0 30px;
  background: var(--dark);
}

/* Фон и оверлей обрезаем внутри отдельной обёртки,
   чтобы панель кнопок с отрицательным отступом не обрезалась */
.hero__bg,
.hero__overlay {
  overflow: hidden;
}

@media (min-width: 1024px) {
  .hero {
    padding-top: 84px;
  }
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 32%;
}

@media (max-width: 767px) {
  .hero__bg img {
    object-position: 62% 30%;
  }
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(13, 27, 30, .62) 0%, rgba(13, 27, 30, .45) 34%, rgba(13, 27, 30, .78) 78%, var(--bg) 100%),
    radial-gradient(90% 60% at 50% 42%, rgba(13, 27, 30, 0) 0%, rgba(13, 27, 30, .5) 100%);
}

.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
}

.hero__panel {
  width: 100%;
  max-width: 780px;
  padding: clamp(26px, 4vw, 46px) clamp(20px, 4vw, 54px);
  text-align: center;
  background: rgba(13, 27, 30, .28);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255, 218, 131, .08);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 1.15rem + 2.6vw, 2.9rem);
  font-weight: 900;
  line-height: 1.18;
  margin: 0 0 .5em;
  color: var(--text);
  text-wrap: balance;
}

.hero__title .accent {
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lead {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, .95rem + .4vw, 1.15rem);
  line-height: 1.65;
  max-width: 56ch;
  margin-inline: auto;
}

.hero__cta-panel {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 560px;
  margin-bottom: -30px;
  padding: 20px;
  display: grid;
  gap: 14px;
  background: rgba(20, 43, 46, .82);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255, 218, 131, .07);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.hero__cta-panel .btn {
  width: 100%;
  padding-block: 17px;
}

/* ---------- Оглавление ---------- */

.toc {
  margin-top: 30px;
  padding: 22px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.toc__title {
  margin: 0 0 14px;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
}

.toc__list {
  margin: 0;
  padding: 0;
  list-style: none;
  columns: 1;
  column-gap: 40px;
  font-size: .95rem;
}

@media (min-width: 700px) {
  .toc__list {
    columns: 2;
  }
}

.toc__list li {
  break-inside: avoid;
  margin-bottom: 2px;
}

.toc__list a {
  display: inline-flex;
  align-items: baseline;
  gap: 9px;
  padding: 7px 4px;
  color: var(--muted);
  line-height: 1.4;
}

.toc__list a::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: none;
  transform: rotate(45deg) translateY(-1px);
  border: 1px solid var(--accent);
  border-radius: 1px;
}

.toc__list a:hover {
  color: var(--gold-2);
}

/* ---------- Текст + иллюстрация ---------- */

.split {
  display: grid;
  gap: 28px;
  align-items: center;
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: 1.05fr .95fr;
    gap: 48px;
  }

  .split--reverse .split__media {
    order: -1;
  }
}

.split__media {
  align-self: center;
}

.wide-media {
  margin-top: 26px;
}

/* ---------- CTA-ряд ---------- */

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.cta-row--center {
  justify-content: center;
}

.cta-row .btn {
  min-width: 190px;
}

@media (max-width: 560px) {
  .cta-row .btn {
    width: 100%;
  }
}

/* ---------- Карточки режимов фриспинов ---------- */

.mode-cards {
  display: grid;
  gap: 16px;
  margin: 1.6em 0;
}

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

.mode-card {
  position: relative;
  padding: 24px 22px 20px;
  background: linear-gradient(180deg, rgba(33, 69, 65, .55), rgba(27, 57, 56, .9));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.mode-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), rgba(232, 184, 91, 0));
}

.mode-card__spins {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  margin-bottom: 10px;
}

.mode-card__spins b {
  font-family: var(--font-display);
  font-size: 2.3rem;
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.mode-card__spins span {
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}

.mode-card h3 {
  margin: 0 0 8px;
  font-size: 1.12rem;
  color: var(--text);
}

.mode-card p {
  margin: 0;
  color: var(--muted);
  font-size: .93rem;
  line-height: 1.6;
}

/* ---------- Плюсы и минусы ---------- */

.pros-cons {
  display: grid;
  gap: 16px;
  margin-top: 1.6em;
}

@media (min-width: 820px) {
  .pros-cons {
    grid-template-columns: 1fr 1fr;
  }
}

.pros-cons__col {
  padding: 24px 24px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.pros-cons__col--pros {
  border-top: 3px solid var(--accent);
}

.pros-cons__col--cons {
  border-top: 3px solid var(--terra);
}

.pros-cons__col h3 {
  margin: 0 0 14px;
  font-size: 1.05rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.pros-cons__col--pros h3 {
  color: var(--accent-2);
}

.pros-cons__col--cons h3 {
  color: #e0a184;
}

.marked-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.marked-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: .96rem;
  line-height: 1.55;
}

.marked-list li::before {
  position: absolute;
  left: 0;
  top: 1px;
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  font-weight: 800;
  border-radius: 6px;
}

.marked-list--plus li::before {
  content: "+";
  color: #0d241d;
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
}

.marked-list--minus li::before {
  content: "−";
  color: #2a140c;
  background: linear-gradient(180deg, #d99a75, var(--terra));
}

/* ---------- Шаги ---------- */

.steps {
  margin: 1.4em 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  max-width: 46rem;
}

.steps li {
  position: relative;
  counter-increment: step;
  padding: 14px 0 14px 62px;
  border-bottom: 1px solid rgba(188, 203, 199, .1);
  color: var(--muted);
}

.steps li:last-child {
  border-bottom: 0;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 12px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--gold-2);
  background: rgba(232, 184, 91, .1);
  border: 1px solid var(--line-strong);
  border-radius: 50%;
}

/* ---------- Список с маркерами ---------- */

.check-list {
  margin: 1.2em 0;
  padding: 0;
  list-style: none;
  max-width: 46rem;
}

.check-list li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 12px;
  color: var(--muted);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: .52em;
  width: 8px;
  height: 8px;
  transform: rotate(45deg);
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  border-radius: 2px;
}

/* ---------- Карусель ---------- */

.carousel {
  position: relative;
  margin: 1.6em 0 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--dark);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.carousel__viewport {
  overflow: hidden;
}

.carousel__track {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
  transition: transform .45s ease;
}

.carousel__slide {
  flex: 0 0 100%;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(80% 90% at 50% 10%, rgba(54, 181, 143, .08), transparent 70%),
    var(--dark);
}

.carousel__slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 20, 22, .78);
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--gold-2);
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}

.carousel__btn:hover {
  background: rgba(27, 57, 56, .95);
  border-color: var(--gold);
}

.carousel__btn:active {
  transform: translateY(-50%) scale(.94);
}

.carousel__btn svg {
  width: 20px;
  height: 20px;
}

.carousel__btn--prev {
  left: 12px;
}

.carousel__btn--next {
  right: 12px;
}

.carousel__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 16px;
  border-top: 1px solid rgba(188, 203, 199, .1);
  background: rgba(13, 27, 30, .7);
}

.carousel__dots {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.carousel__dot {
  width: 11px;
  height: 11px;
  padding: 0;
  border: 1px solid var(--accent);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: background-color .2s ease, transform .2s ease;
}

.carousel__dot:hover {
  border-color: var(--gold);
}

.carousel__dot[aria-selected="true"] {
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  border-color: var(--gold);
  transform: scale(1.15);
}

.carousel__status {
  flex: none;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

@media (max-width: 560px) {
  .carousel__btn {
    width: 40px;
    height: 40px;
  }
}

/* ---------- FAQ ---------- */

.faq {
  max-width: 52rem;
}

.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color .2s ease;
}

.faq details[open] {
  border-color: var(--line-strong);
}

.faq summary {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 17px 52px 17px 20px;
  cursor: pointer;
  font-weight: 700;
  font-size: 1.02rem;
  line-height: 1.4;
  color: var(--text);
  list-style: none;
  transition: color .2s ease;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary:hover {
  color: var(--gold-2);
}

.faq summary::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 50%;
  width: 12px;
  height: 12px;
  margin-top: -8px;
  border-right: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: rotate(45deg);
  transition: transform .25s ease;
}

.faq details[open] summary::after {
  transform: rotate(225deg);
}

.faq__answer {
  padding: 0 20px 18px;
  color: var(--muted);
  font-size: .97rem;
  line-height: 1.65;
  border-top: 1px dashed rgba(188, 203, 199, .15);
  padding-top: 14px;
  margin: 0 20px 18px;
  padding-left: 0;
  padding-right: 0;
}

/* ---------- Финальный блок ---------- */

.final-note {
  margin-top: 26px;
  padding: 22px 24px;
  border: 1px solid rgba(182, 111, 75, .4);
  border-left: 3px solid var(--terra);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: rgba(182, 111, 75, .08);
  max-width: 46rem;
}

.final-note p {
  margin: 0;
  color: var(--text);
}

/* Компенсация наплыва панели кнопок hero */
.section--after-hero {
  padding-top: 74px;
}

@media (min-width: 1024px) {
  .section--after-hero {
    padding-top: 92px;
  }
}

/* Галерея правил перед заголовком «Как здесь собираются выигрышные комбинации» */
#kombinatsii .carousel:first-child {
  margin: 0 0 1.8em;
}
