/* ============================================================
   CASINO AFFILIATE SITE — MAIN STYLESHEET (LIGHT THEME)
   Все размеры в rem, цвета через CSS-переменные.
   Для смены цветовой схемы — редактируй :root ниже.
   ============================================================ */

/* ---------- ПЕРЕМЕННЫЕ (светлая тема) ---------- */
:root {
  --bg-body:       #f5f6f9;
  --bg-card:       #ffffff;
  --bg-card-logo:  #e8eaef;
  --bg-bonus:      #f0f2f6;
  --color-text:    #2d3142;
  --color-muted:   #6b7280;
  --color-border:  #e2e4ec;
  --color-accent:  #059669;
  --color-accent-h:#047857;
  --color-gold:    #d97706;
  --color-white:   #ffffff;
  --radius-card:   12px;
  --radius-btn:    8px;
  --shadow-card:   0 2px 12px rgba(0,0,0,.08);
  --font:          system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --max-w:         960px;
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img { display: block; max-width: 100%; height: auto; }
a  { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---------- BASE ---------- */
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg-body);
  color: var(--color-text);
  font-size: 16px;
  line-height: 1.65;
}

/* ---------- CONTAINER ---------- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 16px;
}

/* Visually hidden label for select (accessibility) */
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ---------- HEADER ---------- */
.header {
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  padding: 14px 0;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.logo {
  flex-shrink: 0;
}
.logo img { height: 40px; width: auto; max-width: 180px; }

/* Language switcher dropdown in header */
.lang-switcher {
  font-size: .85rem;
  font-weight: 600;
  color: var(--color-text);
  background: var(--bg-bonus);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-btn);
  padding: 6px 28px 6px 10px;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  transition: border-color .2s, background-color .2s;
}
.lang-switcher:hover {
  border-color: var(--color-accent);
}
.lang-switcher:focus {
  outline: none;
  border-color: var(--color-accent);
}

/* ---------- ANCHOR NAV ---------- */
.anchor-nav {
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
}
.anchor-nav__list {
  display: flex;
  padding: 0 16px;
  max-width: var(--max-w);
  margin: 0 auto;
}
.anchor-nav__link {
  display: inline-block;
  padding: 10px 14px;
  font-size: .85rem;
  color: var(--color-muted);
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}
.anchor-nav__link:hover { color: var(--color-text); border-bottom-color: var(--color-accent); }

/* ---------- HERO / INTRO ---------- */
.hero { padding: 32px 0 8px; }
.hero h1 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 12px;
  color: var(--color-text);
}
.hero p { color: var(--color-muted); margin-bottom: 8px; font-size: .95rem; }
.hero ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 24px;
}
.hero ul li {
  background: var(--bg-bonus);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: .82rem;
  color: var(--color-accent);
}

/* ---------- СЕКЦИЯ ---------- */
.section { padding: 32px 0; }
.section-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--color-accent);
  display: inline-block;
}
.section-subtitle {
  color: var(--color-muted);
  font-size: .9rem;
  margin-bottom: 20px;
}

/* ============================================================
   КАРТОЧКИ КАЗИНО
   ============================================================ */
.offer { display: flex; flex-direction: column; gap: 16px; margin-top: 8px; }

.card {
  background: var(--bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
}

/* --- Верхняя часть карточки --- */
.card_top {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 16px 0;
}
.flexbox { display: flex; align-items: center; }

/* --- Блок с логотипом казино --- */
.card .img {
  flex-shrink: 0;
  width: 110px;
  height: 70px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.card-logo { width: 90px; height: auto; object-fit: contain; }
.card .img { background: var(--bg-card-logo); }

/* --- Информация о казино --- */
.card-info { flex: 1; min-width: 0; }
.remark {
  display: inline-block;
  border-radius: 4px;
  padding: 2px 8px;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 4px;
}
.card-name {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 4px;
  transition: color .2s;
}
.card-name:hover { color: var(--color-accent); }

/* --- Рейтинг --- */
.rating { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.rating-star {
  position: relative;
  width: 72px;
  height: 14px;
  font-size: 14px;
  line-height: 1;
  color: #d1d5db;
}
.rating-star::before {
  content: '★★★★★';
  position: absolute;
  top: 0; left: 0;
  color: #d1d5db;
  white-space: nowrap;
}
.rating-span {
  position: absolute;
  top: 0; left: 0;
  height: 100%;
  overflow: hidden;
  color: var(--color-gold);
  white-space: nowrap;
}
.rating-span::before { content: '★★★★★'; }
.rating-rating { font-size: .8rem; color: var(--color-muted); }
.rating-number { color: var(--color-gold); font-weight: 700; font-size: .9rem; }

/* --- Принимает игроков --- */
.accepts {
  font-size: .78rem;
  color: var(--color-muted);
  gap: 5px;
}
.accepts-img { border-radius: 2px; flex-shrink: 0; }

/* --- Фичи (слоты, спорт, лайв) --- */
.feature {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-left: auto;
}
.feature__item {
  gap: 5px;
  font-size: .78rem;
  color: var(--color-muted);
  white-space: nowrap;
}
.feature-img { flex-shrink: 0; }

/* --- Бонус --- */
.bonus {
  background: var(--bg-bonus);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 10px 16px;
  margin-top: 12px;
}
.bonus-title {
  font-size: .75rem;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 2px;
}
.bonus-text {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
}

/* --- Платёжные методы --- */
.payment {
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--color-border);
}
.payment__item { display: flex; align-items: center; }
.payment-img {
  height: 18px;
  width: auto;
  max-width: 48px;
  object-fit: contain;
  opacity: .75;
  transition: opacity .2s;
}
.payment__item:hover .payment-img { opacity: 1; }

/* --- CTA кнопка --- */
.btn {
  display: block;
  margin: 12px 16px 8px;
  padding: 12px 24px;
  background: var(--color-accent);
  color: var(--color-white);
  font-weight: 700;
  font-size: .95rem;
  border-radius: var(--radius-btn);
  text-align: center;
  transition: background .2s, transform .1s;
}
.btn:hover { background: var(--color-accent-h); transform: scale(1.01); }
.btn:active { transform: scale(.99); }

/* --- Дисклеймер карточки --- */
.copy {
  text-align: center;
  font-size: .7rem;
  color: var(--color-muted);
  padding: 0 16px 12px;
}

/* ============================================================
   ТАБЛИЦА СРАВНЕНИЯ
   ============================================================ */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .88rem;
  margin-top: 16px;
  background: var(--bg-card);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.comparison-table th {
  background: var(--bg-bonus);
  color: var(--color-accent);
  font-weight: 600;
  text-align: left;
  padding: 10px 12px;
  border-bottom: 2px solid var(--color-accent);
}
.comparison-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text);
}
.comparison-table tr:nth-child(even) td { background: #fafbfc; }
.comparison-table tr:hover td { background: var(--bg-bonus); }
.comparison-table .table-link {
  color: var(--color-accent);
  font-weight: 600;
  font-size: .82rem;
}
.stars-text { color: var(--color-gold); letter-spacing: 1px; }
.scroll-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ============================================================
   ТЕКСТОВЫЙ КОНТЕНТ (about, how we rate)
   ============================================================ */
.text-content { color: var(--color-muted); font-size: .93rem; }
.text-content p { margin-bottom: 14px; }
.text-content h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 20px 0 8px;
}
.text-content ul {
  margin: 8px 0 14px 16px;
  list-style: disc;
}
.text-content ul li { margin-bottom: 4px; }

/* ============================================================
   ОТЗЫВЫ
   ============================================================ */
.reviews { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.review {
  background: var(--bg-card);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 14px 16px;
  box-shadow: var(--shadow-card);
}
.review__author {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.review__name { font-weight: 700; color: var(--color-text); font-size: .9rem; }
.review__stars { color: var(--color-gold); font-size: .85rem; }
.review__date { font-size: .75rem; color: var(--color-muted); margin-left: auto; }
.review p { font-size: .88rem; color: var(--color-muted); }

/* ============================================================
   FAQ АККОРДЕОН
   ============================================================ */
.faq { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  padding: 14px 16px;
  font-size: .93rem;
  font-weight: 600;
  color: var(--color-text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  transition: background .2s;
}
.faq-question:hover { background: var(--bg-bonus); }
.faq-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  color: var(--color-accent);
  transition: transform .3s;
}
.faq-item.is-open .faq-icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, padding .35s ease;
}
.faq-item.is-open .faq-answer { max-height: 400px; }
.faq-answer p {
  padding: 0 16px 14px;
  font-size: .88rem;
  color: var(--color-muted);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--color-white);
  border-top: 1px solid var(--color-border);
  padding: 20px 0;
  margin-top: 40px;
  box-shadow: 0 -1px 3px rgba(0,0,0,.06);
}
.footer .copy {
  text-align: center;
  font-size: .78rem;
  color: var(--color-muted);
  padding: 0;
}
.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 10px;
}
.footer-links a {
  font-size: .78rem;
  color: var(--color-muted);
  transition: color .2s;
}
.footer-links a:hover { color: var(--color-text); }

/* ============================================================
   АДАПТИВ
   ============================================================ */
@media (max-width: 600px) {
  .header .container {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .header .logo {
    display: block;
    text-align: center;
  }
  .header .logo img {
    max-width: none;
  }
  .lang-switcher {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--color-border);
    width: auto;
    max-width: 80px;
    align-self: flex-start;
    padding: 5px 22px 5px 8px;
    font-size: .8rem;
  }
  .card_top { flex-wrap: wrap; }
  .feature { display: none; }
  .card .img { width: 90px; height: 56px; }
  .bonus-text { font-size: .9rem; }
  .comparison-table { font-size: .8rem; }
  .section-title { font-size: 1.15rem; }
}
@media (max-width: 400px) {
  .card-info { flex: 1; }
  .card .img { display: none; }
}
