/* ==========================================================================
   Golden Crown Casino — стили
   Основная палитра настраивается через CSS-переменные ниже.
   ========================================================================== */

:root {
  /* Базовые тёмные оттенки сайта (как просил заказчик) */
  --bg-body:        #16181c;
  --bg-header:      #16181c;
  --bg-surface:     #1c1e24;
  --bg-surface-2:   #24262c;
  --bg-card:        #24262c;
  --bg-card-hover:  #2c2f36;
  --border-soft:    #2f323a;

  /* Акцентные цвета (легко поменять под свой бренд) */
  --accent-gold:    #f2b83d;
  --accent-gold-2:  #e7a91a;
  --accent-green:   #3ddc84;
  --accent-purple:  #7c5cff;

  /* Текст */
  --text-primary:   #f4f5f7;
  --text-secondary: #b6b9c3;
  --text-muted:     #7d8087;

  /* Прочее */
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-pill: 999px;
  --shadow-card: 0 8px 24px rgba(0, 0, 0, 0.35);
  --max-width: 1280px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg-body);
  color: var(--text-primary);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }

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

.section-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin: 0;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 48px 0 20px;
}

.link-more {
  color: var(--accent-gold);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}
.link-more:hover { text-decoration: underline; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: var(--radius-pill);
  padding: 11px 22px;
  font-weight: 700;
  font-size: 14px;
  transition: transform .15s ease, filter .15s ease;
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: linear-gradient(180deg, var(--accent-gold) 0%, var(--accent-gold-2) 100%);
  color: #221a05;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-soft);
  color: var(--text-primary);
}
.btn-outline:hover { border-color: var(--accent-gold); }

.btn-block { width: 100%; }

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-header);
  border-bottom: 1px solid var(--border-soft);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 14px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.burger-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: var(--radius-md);
  background: var(--bg-surface-2);
  flex: 0 0 auto;
}
.burger-btn span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: var(--text-primary);
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
  white-space: nowrap;
}
.logo .crown-icon { font-size: 22px; }
.logo span.accent { color: var(--accent-gold); }

.header-spacer { flex: 1; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ==========================================================================
   HERO CAROUSEL
   ========================================================================== */
.hero {
  padding: 24px 0 8px;
}

.hero-carousel {
  position: relative;
}

.hero-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 4px;
}

.hero-track::-webkit-scrollbar { height: 6px; }
.hero-track::-webkit-scrollbar-thumb { background: var(--border-soft); border-radius: 4px; }

.promo-card {
  scroll-snap-align: start;
  min-height: 230px;
  border-radius: var(--radius-lg);
  padding: 22px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-card);
  color: #fff;
}

.promo-card__tag {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  opacity: .85;
  display: flex;
  align-items: center;
  gap: 6px;
}

.promo-card h3 {
  font-size: 20px;
  margin: 6px 0 0;
  line-height: 1.2;
}

.promo-card__desc {
  font-size: 14px;
  font-weight: 700;
  margin-top: auto;
  background: rgba(0,0,0,0.35);
  display: inline-block;
  padding: 4px 8px;
  border-radius: 6px;
  width: fit-content;
}

/* Декоративная картинка внутри промо-карточки.
   z-index: -1 держит её под текстом, но над градиентным фоном.
   Подгони width / right / bottom под свою картинку. */
.promo-card__art {
  position: absolute;
  right: -12px;
  bottom: -12px;
  width: 180px;
  height: auto;
  z-index: -1;
  pointer-events: none;
  user-select: none;
}

.promo-card--1 { background: linear-gradient(135deg, #3a2a17, #6b4a22); }
.promo-card--2 { background: linear-gradient(135deg, #1b2733, #223a4d); }
.promo-card--3 { background: linear-gradient(135deg, #3a2470, #5b34a8); }
.promo-card--4 { background: linear-gradient(135deg, #123842, #1c5a68); }

.promo-card__cta {
  align-self: flex-start;
  margin-top: 10px;
}

@media (max-width: 980px) {
  .hero-track { grid-template-columns: repeat(4, 78%); }
}

/* ==========================================================================
   PAYMENT STRIP
   ========================================================================== */
.payments-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 36px 0;
  opacity: .8;
}
.payments-strip__item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--text-secondary);
  font-size: 15px;
}
.payments-strip__item .pay-icon {
  font-size: 20px;
}

/* ==========================================================================
   FEATURE CARDS
   ========================================================================== */
.features {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  padding: 8px 0 16px;
}

.feature-card {
  background: var(--bg-surface-2);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 26px 20px;
  text-align: center;
}
.feature-card__icon {
  font-size: 34px;
  margin-bottom: 14px;
}
.feature-card h4 {
  margin: 0 0 8px;
  font-size: 16px;
}
.feature-card p {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}

@media (max-width: 980px) {
  .features { grid-template-columns: repeat(2, 1fr); }
}

/* ==========================================================================
   TABS (Casino / Sport)
   ========================================================================== */
.mode-tabs {
  display: flex;
  gap: 32px;
  border-bottom: 1px solid var(--border-soft);
  margin-top: 24px;
}

.mode-tabs button {
  background: none;
  border: none;
  padding: 18px 4px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: .04em;
  color: var(--text-muted);
  border-bottom: 3px solid transparent;
}

.mode-tabs button.active {
  color: var(--text-primary);
  border-bottom-color: var(--accent-gold);
}

/* ==========================================================================
   GAME GRID
   ========================================================================== */
.game-row {
  position: relative;
}

.game-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(170px, 1fr);
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 6px;
  scroll-snap-type: x mandatory;
}
.game-track::-webkit-scrollbar { height: 6px; }
.game-track::-webkit-scrollbar-thumb { background: var(--border-soft); border-radius: 4px; }

.game-card {
  scroll-snap-align: start;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  transition: transform .15s ease, border-color .15s ease;
}
.game-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-gold);
}

.game-card__thumb {
  height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 800;
  text-align: center;
  padding: 12px;
  color: #fff;
  position: relative;
}
.game-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Плавный переход снизу картинки в тон фона карточки,
   чтобы яркая обложка игры не обрывалась резко на границе с текстом.
   Проценты в градиенте — где начинается затемнение (подгони под себя). */
.game-card__thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(36, 38, 44, 0) 55%, var(--bg-card) 100%);
  pointer-events: none;
}

.game-card__thumb .provider-tag {
  position: absolute;
  bottom: 8px;
  left: 8px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .05em;
  background: rgba(0,0,0,.4);
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
}

.game-card__info {
  padding: 10px 12px 14px;
}
.game-card__info .game-name {
  font-size: 13px;
  font-weight: 700;
  margin: 0 0 2px;
}
.game-card__info .game-provider {
  font-size: 11px;
  color: var(--text-muted);
}

/* Thumbnail palette placeholders — swap for real game art */
.thumb-1 { background: linear-gradient(135deg,#1b3a5c,#0f2036); }
.thumb-2 { background: linear-gradient(135deg,#5c1b52,#2b0e28); }
.thumb-3 { background: linear-gradient(135deg,#1f5c3a,#0e2b1c); }
.thumb-4 { background: linear-gradient(135deg,#5c3a1b,#2b1c0e); }
.thumb-5 { background: linear-gradient(135deg,#3a1b5c,#1c0e2b); }
.thumb-6 { background: linear-gradient(135deg,#5c1b1b,#2b0e0e); }

/* ==========================================================================
   PROMOTIONS
   ========================================================================== */
.promo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.promo-tile {
  background: var(--bg-surface-2);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.promo-tile__banner {
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  position: relative;
}

.promo-tile__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.promo-tile__body {
  padding: 16px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.promo-tile__body h4 {
  margin: 0;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.promo-tile__body .code {
  display: inline-block;
  background: var(--bg-card-hover);
  color: var(--accent-gold);
  font-weight: 800;
  letter-spacing: .05em;
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 12px;
  width: fit-content;
}

.promo-tile__body p {
  margin: 0;
  font-size: 13px;
  color: var(--text-secondary);
  flex: 1;
}

.promo-tile .btn { margin-top: 10px; }

@media (max-width: 980px) {
  .promo-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .promo-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   PROVIDERS STRIP
   ========================================================================== */
.providers-strip {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 6px;
}
.provider-pill {
  flex: 0 0 auto;
  background: var(--bg-surface-2);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 22px 34px;
  font-weight: 700;
  color: var(--text-secondary);
  white-space: nowrap;
}

/* ==========================================================================
   ARTICLE / TEXT CONTENT
   ========================================================================== */
.article-section {
  margin-top: 56px;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}

/* H1 / intro-blokk øverst på siden */
.intro {
  padding: 28px 24px 4px;
}
.intro h1 {
  color: var(--text-primary);
  font-size: 30px;
  margin: 0 0 14px;
}
.intro p {
  color: var(--text-secondary);
  font-size: 15px;
  max-width: 880px;
  margin: 0;
}

.article {
  max-width: 880px;
  margin: 0 auto;
  padding: 48px 24px 40px;
  color: var(--text-secondary);
}

.article h1 {
  color: var(--text-primary);
  font-size: 30px;
  margin: 0 0 20px;
}

.article h2 {
  color: var(--text-primary);
  font-size: 22px;
  margin: 36px 0 14px;
  padding-top: 8px;
}

.article h3 {
  color: var(--accent-gold);
  font-size: 17px;
  margin: 24px 0 10px;
}

.article p { margin: 0 0 14px; font-size: 15px; }
.article strong { color: var(--text-primary); }

.article ul.spin-table {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 24px;
  margin: 0 0 16px;
  padding: 16px 18px;
  background: var(--bg-surface-2);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
}
.article ul.spin-table li { font-size: 14px; }
.article ul.spin-table li b { color: var(--accent-gold); }

/* ==========================================================================
   FAQ ACCORDION
   ========================================================================== */
.faq {
  max-width: 880px;
  margin: 0 auto;
  padding: 8px 24px 56px;
}

.faq-item {
  border-bottom: 1px solid var(--border-soft);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 700;
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq-question .icon {
  flex: 0 0 auto;
  color: var(--accent-gold);
  font-size: 20px;
  transition: transform .2s ease;
}

.faq-item.open .faq-question .icon { transform: rotate(45deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s ease;
}

.faq-answer p {
  margin: 0 0 18px;
  color: var(--text-secondary);
  font-size: 14px;
  max-width: 760px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: var(--bg-header);
  border-top: 1px solid var(--border-soft);
  padding: 40px 0 24px;
  margin-top: 24px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr 1fr;
  gap: 24px;
  padding-bottom: 32px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.locale-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface-2);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-pill);
  padding: 6px 12px;
  width: fit-content;
  font-size: 13px;
  font-weight: 700;
}

.footer-copy {
  font-size: 12px;
  color: var(--text-muted);
  max-width: 320px;
}

.footer-col h5 {
  color: var(--text-primary);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin: 0 0 14px;
}
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  color: var(--text-secondary);
  font-size: 13px;
}
.footer-col a:hover { color: var(--accent-gold); }

.footer-support {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.age-badge {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 2px solid var(--border-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 15px;
}

.support-note {
  font-size: 11px;
  color: var(--text-muted);
  max-width: 220px;
}

.support-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.support-links a {
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
}
.support-links a:hover { border-color: var(--accent-gold); color: var(--accent-gold); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--border-soft);
}

.footer-badges {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  opacity: .6;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .03em;
  color: var(--text-muted);
}

.responsible-note {
  font-size: 11px;
  color: var(--text-muted);
  max-width: 640px;
}

@media (max-width: 980px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .footer-top { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .site-header__inner { flex-wrap: wrap; }
  .header-actions { width: 100%; justify-content: center; }
}

/* ==========================================================================
   MISC
   ========================================================================== */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent-gold);
  color: #221a05;
  padding: 10px 16px;
  z-index: 999;
}
.skip-link:focus { left: 12px; top: 12px; }
