:root {
  --color-bg: #0e1116;
  --color-surface: #171b22;
  --color-cell: #222831;
  --color-line: #2e3440;
  --color-accent: #f8ff13;
  --color-accent-hover: #e3ea00;
  --color-text: #ffffff;
  --color-muted: #98a2b3;
  --color-white: #ffffff;
  --color-black: #000000;
  --cta-bg: var(--color-accent);
  --cta-bg-hover: var(--color-accent-hover);
  --cta-text: var(--color-black);
  --card-border: rgba(148, 163, 184, 0.25);
  --font-base: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --header-height: 56px;
}

html {
  font-family: var(--font-base);
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  background: var(--color-bg);
  color: var(--color-text);
  overflow-x: hidden;
}

svg {
  fill: currentColor;
}

[id] {
  scroll-margin-top: calc(var(--header-height) + 16px);
}

.container {
  width: 100%;
  margin: 0 auto;
  padding: 0 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 14px;
  line-height: 20px;
  text-align: center;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.btn--dark {
  background: var(--color-black);
  color: var(--color-white);
}

.btn--dark:hover {
  background: var(--color-cell);
}

.btn--accent {
  background: var(--cta-bg);
  color: var(--cta-text);
  font-weight: 600;
}

.btn--accent:hover {
  background: var(--cta-bg-hover);
}

.btn--sm {
  min-height: 32px;
  padding: 6px 16px;
}

.btn--hero {
  width: 100%;
  min-height: 0;
  padding: 12px 24px;
  font-size: 16px;
  line-height: 24px;
  font-weight: 700;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 12px 0;
  background: var(--color-surface);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.site-header__logo {
  display: flex;
  align-items: center;
  flex: 0 1 auto;
  min-width: 0;
}

.site-header__logo img {
  width: auto;
  height: 32px;
  max-width: 100%;
}

.site-nav {
  display: none;
  align-items: center;
  gap: 24px;
}

.site-nav__link {
  color: var(--color-muted);
  transition: color 0.15s ease;
}

.site-nav__link:hover {
  color: var(--color-accent);
}

.site-header__actions {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 12px;
}

.site-header__search {
  display: none;
  color: var(--color-muted);
  transition: color 0.15s ease;
}

.site-header__search:hover {
  color: var(--color-white);
}

.site-header__search svg {
  width: 18px;
  height: 18px;
}

.site-lang {
  position: relative;
}

.site-lang__toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  color: var(--color-white);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
}

.site-lang__toggle:hover {
  border-color: rgba(250, 204, 21, 0.6);
}

.site-lang__flag {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  object-fit: cover;
}

.site-lang__caret {
  display: flex;
  width: 14px;
  height: 14px;
  transition: transform 0.15s ease;
}

.site-lang__caret svg {
  width: 14px;
  height: 14px;
}

.site-lang__toggle[aria-expanded="true"] .site-lang__caret {
  transform: rotate(180deg);
}

.site-lang__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 60;
  min-width: 150px;
  padding: 6px;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  background: var(--color-surface);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.site-lang__item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 6px;
  color: var(--color-muted);
  font-size: 14px;
  white-space: nowrap;
}

.site-lang__item:hover {
  background: var(--color-cell);
  color: var(--color-white);
}

.tabbar {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 8px 16px;
  border-top: 1px solid var(--color-line);
  background: var(--color-surface);
}

.tabbar__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--color-muted);
}

.tabbar__item svg {
  width: auto;
  height: 16px;
}

.tabbar__item span {
  margin-top: 4px;
  font-size: 12px;
  line-height: 16px;
}

.tabbar__item--active {
  color: var(--color-accent);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 16px 0 32px;
  background: var(--color-black);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxyZWN0IHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbGw9IiMwZjBmMGYiLz48cGF0aCBkPSJNMCwwIEwgMTAwLDUwIEwgMCwxMDAgWiAiIGZpbGw9IiNmYWMwMTUiIG9wYWNpdHk9IjAuMTUiLz48cGF0aCBkPSIxMDAsMCBMIDAsNTAgTCAxMDAsMTAwIFogIiBmaWxsPSIjZjRiNjAwIiBvcGFjaXR5PSIwLjEiLz48L3N2Zz4=");
  opacity: 0.2;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 10;
  background: linear-gradient(to right, var(--color-black), rgba(0, 0, 0, 0));
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 20;
  padding-top: 32px;
  padding-bottom: 32px;
}

.hero__text {
  max-width: 672px;
}

.hero__title {
  margin-bottom: 16px;
  font-size: 24px;
  line-height: 32px;
  font-weight: 700;
}

.hero__lead {
  margin-bottom: 24px;
  color: var(--color-muted);
  font-size: 14px;
  line-height: 20px;
}

.hero__media {
  display: block;
  margin-top: 16px;
}

.hero__media img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.toc {
  max-width: 768px;
  margin: 24px auto;
  border: 1px solid rgba(250, 204, 21, 0.4);
  border-radius: 12px;
  background: var(--color-surface);
}

.toc__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px 20px;
  color: var(--color-text);
  font-weight: 600;
  text-align: left;
}

.toc__label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.toc__emoji {
  font-size: 18px;
  line-height: 28px;
}

.toc__name {
  font-size: 16px;
  line-height: 24px;
}

.toc__icon {
  font-size: 20px;
  line-height: 28px;
}

.toc__body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.toc__body--open {
  max-height: 1000px;
}

.toc .toc__list {
  margin: 0;
  padding: 0 20px 20px 32px;
  color: var(--color-muted);
  font-size: 16px;
  line-height: 24px;
  list-style: decimal;
}

.toc .toc__list > li + li {
  margin-top: 8px;
}

.toc .toc__list li::marker {
  color: inherit;
}

.toc .toc__sub {
  margin: 8px 0 0;
  padding-left: 28px;
  font-size: 14px;
  line-height: 20px;
  list-style: disc;
}

.toc .toc__sub li + li {
  margin-top: 6px;
}

.content .toc {
  margin: 0 0 24px;
}

.toc__list a {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  transition: color 0.15s ease;
}

.toc__list a:hover {
  color: var(--color-accent);
}

.section {
  padding: 32px 0;
}

.section--slots {
  padding-bottom: 64px;
}

.section-title {
  margin-bottom: 24px;
  font-size: 20px;
  line-height: 28px;
  font-weight: 700;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.feature-card {
  position: relative;
  display: block;
  overflow: hidden;
  padding: 16px;
  border-radius: 12px;
  background: var(--color-surface);
}

.feature-card__icon {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-accent);
  color: var(--color-black);
  transition: transform 0.15s ease;
}

.feature-card__icon svg {
  width: auto;
  height: 20px;
}

.feature-card:hover .feature-card__icon {
  transform: scale(1.1);
}

.feature-card__glow {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 80px;
  height: 80px;
  border-top-left-radius: 9999px;
  background: var(--color-accent);
  opacity: 0.1;
}

.feature-card__title {
  display: block;
  margin-bottom: 12px;
  font-size: 20px;
  line-height: 28px;
  font-weight: 700;
}

.sport-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.sport-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--card-border);
  border-radius: 12px;
  background: var(--color-surface);
  transition: transform 0.18s ease-out, box-shadow 0.18s ease-out, border-color 0.18s ease-out;
}

.sport-card:last-child {
  grid-column: span 2;
}

.sport-card:hover,
.game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  border-color: rgba(250, 204, 21, 0.7);
}

.sport-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 4px;
  border-radius: 50%;
  background: var(--color-accent);
  color: var(--color-black);
}

.sport-card__icon svg {
  width: auto;
  height: 22px;
}

.sport-card__name {
  font-size: 16px;
  line-height: 24px;
  font-weight: 700;
}

.sport-card__text {
  color: var(--color-muted);
  font-size: 14px;
  line-height: 20px;
}

.sport-card .btn {
  width: 100%;
  margin-top: auto;
  padding: 6px 12px;
}

.slots-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  max-width: 960px;
  margin: 0 auto;
}

.game-card {
  display: block;
  overflow: hidden;
  border: 1px solid var(--card-border);
  border-radius: 12px;
  background: var(--color-surface);
  transition: transform 0.18s ease-out, box-shadow 0.18s ease-out, border-color 0.18s ease-out;
}

.game-card__thumb {
  position: relative;
  display: block;
  overflow: hidden;
  padding-bottom: 100%;
  border-radius: 12px 12px 0 0;
}

.game-card__thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease-out;
}

.game-card:hover .game-card__thumb img {
  transform: scale(1.06);
}

.game-card__name {
  display: block;
  padding: 8px 8px 12px;
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
}

.section--content {
  padding: 16px 0;
}

.section--page {
  padding-top: 32px;
}

.content {
  max-width: 768px;
  margin: 16px auto 0;
  padding: 16px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--color-surface);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  color: var(--color-muted);
  font-size: 16px;
  line-height: 26px;
}

.content h1,
.content h2,
.content h3 {
  color: var(--color-text);
  font-weight: 700;
}

.content h1 {
  margin-bottom: 16px;
  font-size: 30px;
  line-height: 36px;
}

.content h2 {
  margin: 40px 0 16px;
  font-size: 24px;
  line-height: 32px;
}

.content h2:first-child {
  margin-top: 0;
}

.content h3 {
  margin: 24px 0 8px;
  font-size: 18px;
  line-height: 28px;
}

.content p,
.content ul,
.content ol {
  margin-bottom: 16px;
}

.content ul,
.content ol {
  padding-left: 24px;
}

.content ul {
  list-style: disc;
}

.content ol {
  list-style: decimal;
}

.content li + li {
  margin-top: 6px;
}

.content li::marker {
  color: var(--color-accent);
}

table {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0 0 24px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

table::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

thead,
tbody {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 600px;
}

tbody:first-child {
  min-width: 280px;
}

tr {
  display: flex;
  width: 100%;
  transition: background-color 0.2s ease;
}

tr + tr {
  border-top: 1px solid var(--color-line);
}

thead + tbody tr:nth-child(even) {
  background-color: rgba(255, 255, 255, 0.03);
}

thead + tbody tr:hover {
  background-color: rgba(255, 255, 255, 0.06);
}

th,
td {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 110px;
  padding: 12px 16px;
  color: var(--color-muted);
  font-size: 16px;
  line-height: 24px;
  text-align: left;
  overflow-wrap: break-word;
}

th {
  background: var(--color-cell);
  color: var(--color-white);
  font-weight: 600;
  border-bottom: 2px solid var(--color-line);
}

tbody:first-child td {
  min-width: 0;
}

tbody:first-child td:first-child {
  flex: 0 0 33.333%;
  background: var(--color-cell);
  color: var(--color-white);
  font-weight: 600;
}

.content img {
  display: block;
  width: 100%;
  max-width: 800px;
  height: auto;
  margin: 20px auto;
  border-radius: 8px;
  object-fit: contain;
}

.site-footer {
  margin-top: 32px;
  padding: 32px 0;
  background: var(--color-surface);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.site-footer__title {
  margin-bottom: 12px;
  font-size: 16px;
  line-height: 24px;
  font-weight: 700;
}

.site-footer__list {
  list-style: none;
  color: var(--color-muted);
  font-size: 14px;
  line-height: 20px;
}

.site-footer__list li + li {
  margin-top: 4px;
}

.site-footer__list a {
  transition: color 0.15s ease;
}

.site-footer__list a:hover {
  color: var(--color-accent);
}

.site-footer__social {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-footer__social a {
  color: var(--color-muted);
  transition: color 0.15s ease;
}

.site-footer__social a:hover {
  color: var(--color-accent);
}

.site-footer__social svg {
  width: auto;
  height: 16px;
}

.site-trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 24px;
  list-style: none;
}

.site-trust__link {
  display: flex;
  align-items: center;
  opacity: 0.72;
  transition: opacity 0.15s ease;
}

.site-trust__link:hover {
  opacity: 1;
}

.site-trust__link img {
  width: auto;
  height: 24px;
}

.site-trust__link .site-trust__square {
  height: 32px;
}

.site-footer__bottom {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--color-line);
  color: var(--color-muted);
  font-size: 12px;
  line-height: 16px;
  text-align: center;
}

@media (max-width: 767px) {
  body {
    padding-bottom: 53px;
  }
}

@media (max-width: 768px) {
  .inset {
    padding-left: 16px;
    padding-right: 16px;
  }
}

@media (max-width: 479px) {
  .site-header__inner,
  .site-header__actions {
    gap: 8px;
  }

  .site-header__actions .btn {
    padding: 6px 10px;
  }

  .site-lang__toggle {
    gap: 4px;
    padding: 0 6px;
  }

  .site-lang__code {
    display: none;
  }

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

  .sport-card {
    display: grid;
    grid-template-columns: 48px 1fr;
    align-items: center;
    column-gap: 12px;
    row-gap: 0;
  }

  .sport-card:last-child {
    grid-column: auto;
  }

  .sport-card__icon {
    grid-row: span 2;
    margin-bottom: 0;
  }

  .sport-card .btn {
    grid-column: 1 / -1;
    margin-top: 12px;
  }

  th,
  td {
    padding: 12px;
    font-size: 15px;
  }

  tbody:first-child td:first-child {
    flex-basis: 42%;
  }
}

@media (min-width: 640px) {
  .container {
    max-width: 640px;
  }

  .site-header__search {
    display: block;
  }

  .btn--hero {
    width: auto;
    font-size: 18px;
    line-height: 28px;
  }

  .hero__title {
    font-size: 30px;
    line-height: 36px;
  }

  .hero__lead {
    font-size: 16px;
    line-height: 24px;
  }

  .sport-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .sport-card:last-child {
    grid-column: auto;
  }

  .slots-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .game-card__name {
    padding: 12px 12px 16px;
    font-size: 14px;
    line-height: 20px;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .site-header__inner {
    gap: 0;
  }

  .site-nav {
    gap: 16px;
  }

  .site-lang__code {
    display: none;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 768px;
  }

  .site-nav {
    display: flex;
  }

  .tabbar {
    display: none;
  }

  .hero__title {
    font-size: 36px;
    line-height: 40px;
  }

  .hero__lead {
    font-size: 18px;
    line-height: 28px;
  }

  .hero__media {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
  }

  .hero__media img {
    height: 100%;
  }

  .hero__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--color-black) 0%, rgba(0, 0, 0, 0.7) 30%, rgba(0, 0, 0, 0) 70%);
    pointer-events: none;
  }

  .toc__name {
    font-size: 18px;
    line-height: 28px;
  }

  .section--slots {
    padding-bottom: 48px;
  }

  .section-title {
    font-size: 24px;
    line-height: 32px;
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .content {
    padding: 24px;
  }

  .content h2 {
    font-size: 30px;
    line-height: 36px;
  }

  .content h3 {
    font-size: 20px;
    line-height: 28px;
  }

  .site-footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .container {
    max-width: 1024px;
  }

  .hero__title {
    font-size: 60px;
    line-height: 1;
  }

  .section-title {
    font-size: 30px;
    line-height: 36px;
  }

  .sport-grid {
    grid-template-columns: repeat(5, 1fr);
  }

  .slots-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .content {
    padding: 32px;
  }

  .content h1 {
    font-size: 36px;
    line-height: 40px;
  }

  .content h2 {
    font-size: 36px;
    line-height: 40px;
  }

  .site-footer__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1280px) {
  .container {
    max-width: 1280px;
  }
}

@media (min-width: 1536px) {
  .container {
    max-width: 1536px;
  }
}

/* --- parimatch-online.in.ua: акордеон FAQ (FAQPage з тих самих Q/A), бейдж 21+ --- */
.faq { display: grid; gap: 8px; margin-top: 16px; }
.faq__item { background: var(--color-surface); border-left: 3px solid var(--color-accent); border-radius: 6px; overflow: hidden; }
.faq__q { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; cursor: pointer; list-style: none; }
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after { content: "›"; flex: 0 0 auto; color: var(--color-accent); font-size: 24px; line-height: 1; transition: transform .25s ease; }
.faq__item[open] .faq__q::after { transform: rotate(90deg); }
.content .faq__q h3 { margin: 0; font-size: 17px; }
.faq__a { padding: 0 18px 14px; animation: faqOpen .25s ease; }
.faq__a p { margin: 0; }
@keyframes faqOpen { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.site-trust__age { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border: 2px solid var(--color-accent); border-radius: 8px; color: var(--color-accent); font-weight: 700; }
.content img { height: auto; }
