/* ============================================================
   7-7-7 (bestrucasinos.top) — стили
   Шрифт Montserrat, строгие радиусы 4px, мобильная версия сначала
   ============================================================ */

:root {
  /* Переопределяем радиусы Bootstrap — строго 4px */
  --bs-border-radius: 4px;
  --bs-border-radius-sm: 4px;
  --bs-border-radius-lg: 4px;
  --bs-border-radius-xl: 4px;
  --bs-border-radius-xxl: 4px;
  --bs-border-radius-pill: 4px;

  /* Палитра */
  --navy: #0b1e3c;
  --navy-soft: #16325c;
  --accent: #16a34a;
  --accent-dark: #12813a;
  --gold: #f5a623;
  --bg: #f4f6fa;
  --surface: #ffffff;
  --text: #0f1b2d;
  --text-secondary: #5a6b84;
  --text-on-navy: #b9c7dc;
  --border: #e4e9f0;
  --muted: #edf1f7;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
}

/* ---------- Шапка ---------- */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.navbar {
  padding: 0;
}

.navbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: 1px;
  color: var(--navy);
}

.navbar-brand:hover {
  color: var(--navy);
}

.navbar-brand img {
  width: 38px;
  height: 38px;
}

.navbar-nav {
  gap: 4px;
}

.navbar-nav .nav-link {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.5rem 0.85rem;
  border-radius: 4px;
}

.navbar-nav .nav-link:hover {
  color: var(--navy);
}

.navbar-nav .nav-item.active .nav-link {
  color: var(--navy);
  font-weight: 700;
}

.dropdown-menu {
  border: 1px solid var(--border);
  border-radius: 4px;
  box-shadow: 0 12px 30px rgba(15, 27, 45, 0.14);
  padding: 6px;
  min-width: 250px;
}

.dropdown-item {
  font-size: 0.88rem;
  padding: 0.55rem 0.75rem;
  border-radius: 4px;
}

.dropdown-item:hover {
  background: var(--muted);
  color: var(--navy);
}

.navbar-toggler {
  border: 0;
  box-shadow: none;
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, #0b1e3c 0%, #122b52 100%);
  color: #fff;
  padding: 60px 0;
  text-align: center;
}

.hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.6rem);
  font-weight: 800;
  margin-bottom: 16px;
}

.hero .intro {
  max-width: 760px;
  margin: 0 auto 24px;
  color: var(--text-on-navy);
  font-size: 1rem;
  line-height: 1.65;
}

.hero-chips {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-chip {
  background: var(--navy-soft);
  color: #fff;
  padding: 8px 14px;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-chip svg {
  width: 15px;
  height: 15px;
  color: var(--gold);
  flex: 0 0 auto;
}

/* ---------- Контент ---------- */
.content {
  padding: 44px 0 64px;
}

.section {
  margin-bottom: 56px;
}

.eyebrow {
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 2px;
  font-size: 0.72rem;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.section-title {
  font-weight: 800;
  color: var(--text);
  font-size: clamp(1.35rem, 2.5vw, 1.7rem);
  margin-bottom: 10px;
}

.section-sub {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ---------- Карточка казино ---------- */
.casino-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 22px;
}

.casino-card {
  display: grid;
  grid-template-columns: 48px 84px minmax(0, 1fr) auto;
  grid-template-areas:
    "rank logo head side"
    "rank logo info side";
  column-gap: 20px;
  row-gap: 8px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 20px;
}

.casino-card.top {
  border-color: var(--gold);
}

.cc-rank {
  grid-area: rank;
  width: 48px;
  height: 48px;
  background: var(--navy);
  color: #fff;
  font-weight: 800;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}

.casino-card.top .cc-rank {
  background: var(--gold);
  color: var(--navy);
}

.cc-logo {
  grid-area: logo;
  width: 84px;
  height: 84px;
  background: var(--muted);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.cc-logo-letter {
  font-weight: 800;
  font-size: 1.7rem;
  color: var(--logo-color, var(--navy));
}

.cc-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
}

.cc-head {
  grid-area: head;
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.cc-name {
  font-weight: 700;
  font-size: 1.05rem;
  margin: 0;
  color: var(--text);
}

.cc-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.stars {
  color: var(--gold);
  font-size: 0.95rem;
  letter-spacing: 1px;
  white-space: nowrap;
}

.stars .star.off {
  color: #d8dfea;
}

.stars .star.half {
  background: linear-gradient(90deg, var(--gold) 50%, #d8dfea 50%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.cc-rating-value {
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 600;
}

.cc-info {
  grid-area: info;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.cc-bonus {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.cc-tags {
  margin: 0;
  color: #8a99b3;
  font-size: 0.76rem;
}

.cc-side {
  grid-area: side;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.promo-code {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--navy);
  border: 1px solid var(--gold);
  color: #fff;
  border-radius: 4px;
  padding: 9px 14px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.88rem;
  transition: background 0.15s ease, transform 0.1s ease;
}

.promo-code:hover {
  background: var(--navy-soft);
}

.promo-code:active {
  transform: scale(0.98);
}

.promo-label {
  font-size: 0.58rem;
  letter-spacing: 1px;
  color: #9fb3cc;
  font-weight: 700;
  text-transform: uppercase;
}

.promo-value {
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.3px;
}

.promo-code.copied .promo-value {
  color: #7ce3a0;
}

.promo-code svg {
  width: 14px;
  height: 14px;
  color: #fff;
  flex: 0 0 auto;
}

.cc-play {
  display: none;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 10px 22px;
  border-radius: 4px;
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
}

.cc-play:hover {
  background: var(--accent-dark);
  color: #fff;
}

.cc-review {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.8rem;
  text-decoration: none;
  white-space: nowrap;
}

.cc-review:hover {
  color: var(--accent-dark);
  text-decoration: underline;
}

/* ---------- SEO ---------- */
.seo p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.75;
}

/* ---------- FAQ ---------- */
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 20px;
  margin-bottom: 12px;
}

.faq-item h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 8px;
}

.faq-item p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ---------- Другие рейтинги ---------- */
#other-ratings-grid .col-12,
#other-ratings-grid [class*="col-"] {
  margin-bottom: 16px;
}

.tile {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 18px;
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.tile:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.tile-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 4px;
  background: #e8f7ee;
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.tile-icon svg {
  width: 21px;
  height: 21px;
}

.tile-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.tile-title {
  color: var(--text);
  font-weight: 700;
  font-size: 0.95rem;
}

.tile-desc {
  color: var(--text-secondary);
  font-size: 0.8rem;
}

.tile-arrow {
  margin-left: auto;
  color: var(--accent);
  font-weight: 700;
}

/* ---------- Как мы оцениваем + автор ---------- */
.criteria-item {
  display: flex;
  gap: 14px;
  margin-bottom: 18px;
}

.criteria-icon {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border-radius: 4px;
  background: #e8f7ee;
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.criteria-icon svg {
  width: 18px;
  height: 18px;
}

.criteria-item h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 3px;
}

.criteria-item p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.84rem;
  line-height: 1.5;
}

.author-card {
  background: var(--navy);
  border-radius: 4px;
  padding: 28px;
  color: #fff;
  height: 100%;
}

.author-avatar {
  width: 72px;
  height: 72px;
  border-radius: 4px;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.author-card .name {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 4px;
}

.author-card .role {
  color: var(--gold);
  font-weight: 700;
  font-size: 0.8rem;
  margin: 0 0 16px;
}

.author-card .bio {
  color: var(--text-on-navy);
  font-size: 0.88rem;
  line-height: 1.65;
  margin: 0 0 20px;
}

.author-stats {
  display: flex;
  gap: 12px;
}

.author-stat {
  flex: 1;
  background: var(--navy-soft);
  border-radius: 4px;
  padding: 12px;
}

.author-stat .value {
  font-size: 1.1rem;
  font-weight: 800;
}

.author-stat .label {
  font-size: 0.72rem;
  color: var(--text-on-navy);
}

/* ---------- Ответственная игра ---------- */
.responsible {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 24px;
}

.age-badge {
  width: 56px;
  height: 56px;
  flex: 0 0 auto;
  border-radius: 4px;
  background: var(--navy);
  color: #fff;
  font-weight: 800;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.responsible h2 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 6px;
}

.responsible p {
  margin: 0 0 8px;
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.6;
}

.responsible a {
  font-size: 0.85rem;
  font-weight: 700;
}

/* ---------- Футер ---------- */
.site-footer {
  background: var(--navy);
  color: var(--text-on-navy);
  padding: 48px 0 24px;
  margin-top: 8px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 1px;
  color: #fff;
  text-decoration: none;
  margin-bottom: 14px;
}

.footer-brand img {
  width: 38px;
  height: 38px;
}

.footer-tagline {
  font-size: 0.85rem;
  line-height: 1.6;
  max-width: 320px;
}

.site-footer h3 {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 14px;
}

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

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: var(--text-on-navy);
  font-size: 0.85rem;
  text-decoration: none;
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid var(--navy-soft);
  margin-top: 36px;
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
  font-size: 0.76rem;
}

/* ---------- Тост ---------- */
#toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 20px);
  background: var(--navy);
  color: #fff;
  padding: 12px 20px;
  border-radius: 4px;
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: 0 12px 30px rgba(15, 27, 45, 0.3);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 1080;
}

#toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- Мобильные ---------- */
@media (max-width: 991.98px) {
  .casino-card {
    grid-template-columns: 40px 56px minmax(0, 1fr);
    grid-template-areas:
      "rank logo head"
      "info info info"
      "side side side";
    gap: 12px;
    align-items: start;
    padding: 16px;
  }

  .cc-rank {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .cc-logo {
    width: 56px;
    height: 56px;
  }

  .cc-logo-letter {
    font-size: 1.2rem;
  }

  .cc-name {
    font-size: 0.98rem;
  }

  .cc-side {
    flex-direction: row;
    align-items: stretch;
    width: 100%;
  }

  .promo-code {
    flex: 1 1 auto;
    justify-content: space-between;
  }

  /* Кнопка «Играть» видна только на мобильных */
  .cc-play {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
  }

  .cc-review {
    display: none;
  }

  .hero {
    padding: 40px 0;
  }
}
