:root {
  --ink: #26150e;
  --accent: #d86a16;
  --paper: #fff9f2;
  --line: #ded9d5;
  --muted: #745f54;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    16px/1.5 Arial,
    sans-serif;
}
a {
  color: inherit;
  text-decoration: none;
}
.container {
  width: min(1280px, 92%);
  margin: 0 auto;
}
body > header {
  height: 68px;
  background: #2d180f;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 calc((100% - min(1280px, 92%)) / 2);
}
body > header img {
  display: block;
  width: 42px;
  height: 42px;
  object-fit: contain;
}
nav {
  display: flex;
  gap: 12px;
}
nav a,
#hero a,
#tools a {
  font-weight: 700;
  border-radius: 4px;
}
nav a {
  padding: 9px 15px;
  background: #b85b17;
  color: #fff;
  border: 1px solid #df7a2a;
}
#hero {
  position: relative;
  min-height: 530px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #8e3717;
}
#hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
#hero:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(209, 93, 18, 0.81),
    rgba(208, 93, 19, 0.22) 70%,
    rgba(0, 0, 0, 0.18)
  );
}
#hero div {
  position: relative;
  z-index: 1;
  width: min(1280px, 92%);
  padding: 70px 0;
  color: #fff;
}
h1 {
  max-width: 1000px;
  margin: 0 0 24px;
  font-size: clamp(40px, 5vw, 78px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}
#hero a {
  display: inline-flex;
  padding: 15px 22px;
  background: #fff;
  color: var(--accent);
  font-size: 18px;
  gap: 12px;
}
#catalog {
  padding: 34px 0 16px;
}
#tools {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 6px;
}
#tools a:first-child {
  padding: 13px 16px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--muted);
}
#tools a:first-child span {
  font-size: 27px;
  vertical-align: -3px;
  margin-right: 8px;
}
#tools a:last-child {
  padding: 13px 20px;
  background: var(--accent);
  color: #fff;
}
h2 {
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.15;
  margin: 34px 0 20px;
  letter-spacing: -0.035em;
}
#games {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 18px 16px;
}
#games a {
  position: relative;
  min-width: 0;
  font-size: 14px;
  font-weight: 700;
}
#games img {
  display: block;
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 5px;
  transition: 0.25s;
}
#games span {
  position: absolute;
  top: calc(50% - 23px);
  left: calc(50% - 23px);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  color: var(--accent);
  opacity: 0;
  transform: scale(0.8);
  transition: 0.25s;
  z-index: 1;
}
#games a:hover img {
  filter: blur(3px) brightness(0.68);
}
#games a:hover span {
  opacity: 1;
  transform: scale(1);
}
#games b,
#games small {
  display: block;
  margin-top: 6px;
}
#games small {
  color: #8d695c;
  font-weight: 400;
  margin-top: 2px;
}
#reviews {
  padding: 12px 0 36px;
}
#reviews > div {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 20px 24px;
}
article header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--line);
  font-size: 19px;
}
article i {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  background: var(--accent);
  color: #fff;
  border-radius: 9px;
  font-style: normal;
  font-weight: 700;
}
article p:first-of-type {
  display: flex;
  justify-content: space-between;
  color: #aa512c;
  font-weight: 700;
  letter-spacing: 1px;
}
time {
  color: var(--ink);
  letter-spacing: 0;
  font-size: 14px;
}
article footer {
  display: flex;
  gap: 18px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  font-size: 13px;
  color: #4d4a48;
}
#faq {
  padding: 12px 0 44px;
}
details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 12px 0;
  padding: 0 16px;
}
details[open] {
  border-color: var(--accent);
  box-shadow: 0 10px 24px #c4672733;
}
summary {
  cursor: pointer;
  padding: 16px 0;
  font-size: 18px;
  font-weight: 700;
}
details p {
  margin: 0;
  padding: 0 0 16px;
  color: #4e433e;
}
body > footer {
  border-top: 1px solid var(--line);
  padding: 56px 4% 20px;
  text-align: center;
  color: #4e433e;
  font-size: 14px;
}
body > footer p {
  max-width: 900px;
  margin: 0 auto 22px;
}
body > footer hr {
  border: 0;
  border-top: 1px solid var(--line);
  max-width: 1215px;
  margin: 28px auto 16px;
}
@media (max-width: 1000px) {
  #games {
    grid-template-columns: repeat(4, 1fr);
  }
  #reviews > div {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 620px) {
  body > header {
    padding: 0 4%;
  }
  #hero {
    min-height: 430px;
  }
  h1 {
    font-size: 42px;
  }
  #tools {
    grid-template-columns: 1fr;
  }
  #games {
    grid-template-columns: repeat(2, 1fr);
  }
  article {
    padding: 18px;
  }
  nav a {
    padding: 8px 10px;
    font-size: 14px;
  }
}

/* */

.content-section {
  background: #fff;
  border: 1px solid #e6e0db;
  border-radius: 14px;
  padding: 32px;
  margin: 24px auto;
  box-shadow: 0 6px 22px rgba(55, 28, 14, 0.05);
}

/* mob */
@media (max-width: 768px) {
  section,
  .content-section,
  .about,
  .reviews,
  .faq,
  .providers,
  .games-section {
    padding: 22px 16px;
    border-radius: 10px;
  }
}

/* table */
/* Обгортка секції */
.table-wrap {
  background: #fff;
  border: 1px solid #e5dfd9;
  border-radius: 14px;
  padding: 32px 40px;
  margin: 24px auto;
  box-shadow: 0 6px 22px rgba(55, 28, 14, 0.05);
  overflow-x: auto;
}

/* Таблиця всередині */
.table-wrap table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 16px;
}

.table-wrap th,
.table-wrap td {
  padding: 14px 12px;
  text-align: left;
  border-bottom: 1px solid #ddd7d1;
}

.table-wrap th {
  font-weight: 700;
  color: #2d1a10;
  background: #fff;
}

.table-wrap tbody tr:nth-child(odd) {
  background: #fff5e5;
}

.table-wrap tbody tr:last-child td {
  border-bottom: 0;
}

.table-wrap td:first-child {
  width: 32%;
  font-weight: 600;
}

@media (max-width: 768px) {
  .table-wrap {
    padding: 22px 16px;
    border-radius: 10px;
  }
}
