@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Montserrat:wght@600;700;800;900&display=swap");

:root {
  --bg: #ffffff;
  --panel: #f2e8c7;
  --panel-soft: #eadfb6;
  --text: #2d2717;
  --muted: #6f6856;
  --line: #d9cfab;
  --accent: #2c7dff;
  --accent-2: #00c2ff;
  --success: #1fd37b;
  --gold: #d8ac47;
  --silver: #acb6c8;
  --bronze: #9d6a3a;
  --rank-dark: #d5c28e;
  --font-body: "Inter", Arial, Helvetica, sans-serif;
  --font-heading: "Montserrat", Arial, Helvetica, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: #2257aa;
  text-decoration: none;
}

a:hover {
  color: #163d7d;
}

.container {
  width: min(1160px, calc(100% - 2rem));
  margin: 0 auto;
}

.section {
  padding: 2.6rem 0;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.2;
  margin: 0 0 1rem;
}

button,
input,
select,
textarea {
  font-family: var(--font-body);
}

.site-nav a,
.btn,
.btn-review,
.btn-claim,
.faq-question {
  font-family: var(--font-heading);
  font-weight: 700;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(118, 101, 60, 0.2);
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 8px 18px rgba(96, 77, 38, 0.18);
}

.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 1rem;
}

.logo {
  width: 148px;
  height: 42px;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-nav a {
  padding: 0.4rem 0.6rem;
  border-radius: 8px;
  color: #2d2717;
  font-size: 0.94rem;
}

.site-nav a:hover {
  background: rgba(111, 88, 42, 0.1);
}

.burger-btn {
  display: none;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 10px;
  width: 42px;
  height: 42px;
  padding: 8px;
  cursor: pointer;
}

.burger-btn span {
  display: block;
  height: 2px;
  background: #2d2717;
  margin: 5px 0;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.45rem 0 0.8rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.breadcrumbs a {
  color: #2d2717;
}

.hero h1 {
  margin-bottom: 0.8rem;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
}

.hero.section {
  padding-top: 1.2rem;
  padding-bottom: 1.6rem;
}

.hero-meta {
  display: grid;
  grid-template-columns: minmax(260px, 1fr);
  gap: 1rem;
  margin-bottom: 0.8rem;
}

.author-short {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.9rem;
}

.author-short {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.author-short img {
  width: 74px;
  height: 74px;
  border-radius: 10px;
  object-fit: cover;
}

.eyebrow {
  margin: 0 0 0.2rem;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.hero-intro {
  margin: 0;
}

.hero-more-text {
  margin-top: 0.45rem;
}

#casinos.section {
  padding-top: 0.9rem;
}

.read-more-inline {
  border: 0;
  background: transparent;
  color: #2257aa;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  padding: 0;
  margin-left: 0.35rem;
  text-decoration: underline;
}

.read-more-inline:hover {
  color: #163d7d;
}

.editorial-note-toggle {
  border: 0;
  background: transparent;
  color: #2257aa;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  padding: 0;
  margin-top: 0.2rem;
  text-decoration: underline;
}

.editorial-note-toggle:hover {
  color: #163d7d;
}

.editorial-note-text {
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
  color: #3d3522;
}

.is-hidden {
  display: none;
}

.btn {
  border: 0;
  border-radius: 10px;
  padding: 0.62rem 1rem;
  cursor: pointer;
  font-weight: 700;
}

.btn-secondary {
  background: #5c4a1f;
  color: #fffdf8;
}

.btn-secondary:hover {
  background: #725b24;
}

.section-head {
  margin-bottom: 1rem;
}

.verified-box {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.9rem;
  margin: 0 0 0.9rem;
}

.verified-box h3 {
  margin: 0 0 0.45rem;
}

.verified-box p {
  margin: 0 0 0.6rem;
  color: #3d3522;
}

.verified-list {
  margin: 0;
  padding-left: 1.1rem;
}

.verified-list li {
  margin-bottom: 0.35rem;
  overflow-wrap: anywhere;
}

.section-head h2 {
  margin-bottom: 0.4rem;
}

.casino-cards {
  display: grid;
  gap: 0.75rem;
}

.casino-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.75rem;
  display: grid;
  grid-template-columns: 70px minmax(220px, 320px) 1fr auto;
  align-items: center;
  gap: 0.75rem;
}

.casino-card > * {
  min-width: 0;
}

.rank-badge {
  border-radius: 10px;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 800;
  color: #111;
}

.rank-1 { background: var(--gold); }
.rank-2 { background: var(--silver); }
.rank-3 { background: var(--bronze); }
.rank-other { background: var(--rank-dark); color: #2d2717; }

.casino-info {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.casino-info img {
  width: 68px;
  height: 68px;
  padding: 6px;
  border-radius: 10px;
  object-fit: contain;
  object-position: center;
  border: 1px solid var(--line);
  background: #d8d3c0;
}

.casino-name {
  margin: 0;
  font-size: 1.1rem;
}

.casino-checked {
  margin-top: 0.15rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.casino-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.35rem;
}

.casino-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.18rem 0.55rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: #2d2717;
  max-width: 100%;
}

.casino-badge a {
  color: inherit;
  text-decoration: underline;
}

.casino-badge-privacy {
  background: rgba(31, 211, 123, 0.18);
  border-color: rgba(31, 211, 123, 0.35);
}

.casino-badge-limits {
  background: rgba(44, 125, 255, 0.12);
  border-color: rgba(44, 125, 255, 0.28);
}

.bonus-box {
  border-radius: 10px;
  padding: 0.7rem 0.8rem;
  font-size: 0.93rem;
  font-weight: 700;
}

.actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.btn-review {
  display: inline-block;
  background: #3c4f7f;
  color: #ffffff;
  padding: 0.58rem 0.85rem;
  border-radius: 10px;
  font-weight: 700;
  border: 1px solid #375188;
}

.btn-claim {
  display: inline-block;
  color: #031124;
  font-weight: 800;
  letter-spacing: 0.01em;
  background: linear-gradient(90deg, #ffcf40, #ff8a00);
  border-radius: 10px;
  padding: 0.62rem 1rem;
  box-shadow: 0 0 0 rgba(255, 173, 0, 0.5);
  animation: pulse-glow 1.8s infinite;
}

.btn-claim:hover {
  filter: brightness(1.07);
  transform: translateY(-1px);
}

@keyframes pulse-glow {
  0% { box-shadow: 0 0 0 0 rgba(255, 157, 0, 0.4); }
  70% { box-shadow: 0 0 0 12px rgba(255, 157, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 157, 0, 0); }
}

.review-blocks {
  display: grid;
  gap: 1rem;
}

.review-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem;
}

.review-title {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.8rem;
}

.review-title img {
  width: 48px;
  height: 48px;
  padding: 4px;
  border-radius: 10px;
  object-fit: contain;
  object-position: center;
  border: 1px solid var(--line);
  background: #d8d3c0;
}

.carousel {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  margin-bottom: 0.9rem;
  min-height: 240px;
  background: #1a1a1a;
}

.carousel::before {
  content: "";
  position: absolute;
  inset: -20px;
  background-image: var(--carousel-blur-bg, none);
  background-size: cover;
  background-position: center;
  filter: blur(20px) saturate(1.05);
  transform: scale(1.1);
  opacity: 0.9;
  z-index: 0;
}

.carousel-slide {
  display: none;
  width: 100%;
  height: 240px;
  object-fit: contain;
  position: relative;
  z-index: 1;
  background: transparent;
}

.carousel-slide.is-active {
  display: block;
}

.carousel-controls {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.carousel-btn {
  pointer-events: all;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(75, 61, 30, 0.72);
  color: #fff;
  cursor: pointer;
}

.carousel-btn.prev { left: 12px; }
.carousel-btn.next { right: 12px; }

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 0.6rem;
  margin-top: 0.8rem;
}

.info-grid div {
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.65rem;
  font-size: 0.92rem;
}

.welcome-box {
  margin-top: 0.9rem;
  border-radius: 12px;
  padding: 0.8rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.6rem;
  align-items: center;
}

.limits-wrap {
  margin-top: 0.85rem;
}

.limits-wrap h4 {
  margin-bottom: 0.45rem;
}

.limits-table,
.network-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--panel-soft);
  table-layout: fixed;
}

.limits-table th,
.limits-table td,
.network-table th,
.network-table td {
  padding: 0.62rem 0.7rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}

.limits-table tr:last-child th,
.limits-table tr:last-child td,
.network-table tr:last-child td {
  border-bottom: 0;
}

.limits-table th,
.network-table th {
  font-weight: 700;
}

.network-table-wrap {
  margin-top: 0.75rem;
}

.text-section p {
  margin: 0 0 1rem;
  color: #3d3522;
}

.text-section h3 {
  margin-top: 1.3rem;
}

.rg-list {
  padding-left: 1.1rem;
  margin: 0;
}

.rg-list li {
  margin-bottom: 0.6rem;
  overflow-wrap: anywhere;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  margin-bottom: 0.65rem;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 0.9rem 1rem;
  border: 0;
  color: #2d2717;
  background: transparent;
  font-size: 1.03rem;
  font-weight: 700;
  cursor: pointer;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
  border-top: 1px solid transparent;
}

.faq-answer p {
  margin: 0;
  padding: 0.85rem 1rem 1rem;
  color: #3d3522;
}

.faq-item.is-open .faq-answer {
  max-height: 340px;
  border-top-color: var(--line);
}

.about-author-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  display: flex;
  gap: 0.9rem;
  padding: 0.9rem;
}

.about-author-card img {
  width: 120px;
  height: 120px;
  border-radius: 12px;
  object-fit: cover;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #e9ddb8;
  padding: 1.4rem 0 1.6rem;
  margin-top: 1.5rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-inner p {
  margin: 0;
  color: var(--muted);
}

.footer-brand {
  max-width: 360px;
}

.footer-title {
  font-family: var(--font-heading);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.45rem;
  color: #2d2717;
  font-size: 0.88rem;
}

.footer-note + .footer-note {
  margin-top: 0.35rem;
}

.footer-links {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.footer-links-col {
  flex: 1 1 170px;
  min-width: 0;
}

.footer-links-col h4 {
  margin: 0 0 0.4rem;
  font-size: 0.92rem;
}

.footer-links-col a {
  display: block;
  font-size: 0.9rem;
  color: #2d2717;
  margin-bottom: 0.25rem;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.footer-links-col a:hover {
  text-decoration: underline;
}

.footer-logos-col {
  max-width: 260px;
}

.footer-logos-col .rg-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}

.footer-logos-col .rg-item a {
  display: block;
  font-size: 0.9rem;
  color: #2d2717;
  margin-bottom: 0;
}

.footer-logos-col .rg-item img {
  height: 24px;
  width: 70px;
  object-fit: contain;
  filter: grayscale(0.1);
  background: #fdf7e5;
  border-radius: 6px;
  padding: 2px 6px;
}

.footer-logos-row {
  display: none;
}

.footer-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.4rem;
  margin-left: auto;
}

.footer-age {
  border-radius: 999px;
  border: 1px solid var(--line);
  padding: 0.22rem 0.7rem;
  font-weight: 700;
  font-size: 0.9rem;
  background: #f6e8c4;
  color: #2d2717;
}

.footer-copy {
  font-size: 0.86rem;
}

@media (max-width: 768px) {
  .footer-inner {
    align-items: stretch;
  }

  .footer-meta {
    align-items: flex-start;
    margin-left: 0;
  }
}

@media (max-width: 980px) {
  .casino-card {
    grid-template-columns: 60px 1fr;
    grid-template-areas:
      "rank info"
      "bonus bonus"
      "actions actions";
  }

  .rank-badge { grid-area: rank; min-height: 66px; }
  .casino-info { grid-area: info; }
  .bonus-box { grid-area: bonus; }
  .actions { grid-area: actions; justify-content: flex-start; }
}

@media (max-width: 768px) {
  .header-main {
    min-height: 58px;
  }

  .breadcrumbs {
    display: none;
  }

  .burger-btn {
    display: block;
  }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 58px;
    background: rgba(246, 239, 220, 0.98);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    display: none;
    padding: 0.55rem 0.8rem 0.7rem;
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav.is-open {
    display: flex;
  }

  .hero-meta {
    grid-template-columns: 1fr;
    margin-bottom: 0.55rem;
  }

  .hero.section {
    padding-top: 0.6rem;
    padding-bottom: 0.9rem;
  }

  .hero h1 {
    margin-bottom: 0.55rem;
    font-size: clamp(1.45rem, 7vw, 1.95rem);
  }

  .author-short {
    padding: 0.58rem;
    gap: 0.55rem;
  }

  .author-short img {
    width: 52px;
    height: 52px;
  }

  .author-short p {
    margin: 0;
  }

  .author-short p + p {
    margin-top: 0.15rem;
  }

  .editorial-note-toggle {
    margin-top: 0.12rem;
  }

  #casinos.section {
    padding-top: 0.75rem;
  }

  .section-head {
    margin-bottom: 0.6rem;
  }

  .section-head p {
    margin: 0;
    font-size: 0.92rem;
  }

  .carousel,
  .carousel-slide {
    height: 190px;
    min-height: 190px;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .welcome-box {
    grid-template-columns: 1fr;
  }

  .about-author-card {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .container {
    width: min(1160px, calc(100% - 0.75rem));
  }

  .section {
    padding: 1.55rem 0;
  }

  .hero.section {
    padding-top: 0.35rem;
    padding-bottom: 0.6rem;
  }

  #casinos.section {
    padding-top: 0.5rem;
  }

  .section-head {
    margin-bottom: 0.45rem;
  }

  .casino-card {
    grid-template-columns: 52px 1fr;
    grid-template-areas:
      "rank info"
      "bonus bonus"
      "actions actions";
    gap: 0.55rem;
    padding: 0.58rem;
  }

  .bonus-box {
    padding: 0.55rem 0.6rem;
  }

  .rank-badge {
    min-height: 52px;
  }

  .casino-info {
    align-items: center;
    gap: 0.55rem;
  }

  .casino-info img {
    width: 52px;
    height: 52px;
    padding: 4px;
  }

  .actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.45rem;
  }

  .actions .btn-review,
  .actions .btn-claim {
    width: 100%;
    text-align: center;
    padding: 0.52rem 0.55rem;
    font-size: 0.82rem;
  }

  .carousel,
  .carousel-slide {
    height: 170px;
    min-height: 170px;
  }
}
