:root {
  --bg: #7f0e12;
  --bg-soft: #9c1a1e;
  --surface: #fff7f0;
  --surface-strong: #ffffff;
  --surface-muted: #f8e9dd;
  --border: rgba(107, 4, 25, 0.18);
  --text: #fff6ed;
  --text-dark: #2a1111;
  --text-muted: #694d4d;
  --accent: #e48f56;
  --accent-strong: #f4a977;
  --accent-contrast: #6b0419;
  --shadow: 0 18px 40px rgba(53, 5, 12, 0.28);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --container: 1120px;
  --header-height: 92px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 300px;
  font-family: "Segoe UI", Arial, sans-serif;
  background:
    radial-gradient(circle at top, rgba(255, 220, 190, 0.12), transparent 34%),
    linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 24%, #8f1318 100%);
  color: var(--text);
  line-height: 1.65;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent-strong);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  color: #ffd2ad;
}

button,
input,
textarea,
select {
  font: inherit;
}

.container {
  width: min(calc(100% - 32px), var(--container));
  margin: 0 auto;
}

.site-shell {
  padding-bottom: 56px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(107, 4, 25, 0.82);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-header__inner {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand img {
  width: 210px;
  max-width: min(56vw, 210px);
  max-height: 64px;
  object-fit: contain;
}

.site-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.site-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.16);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.site-action:hover,
.site-action:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.2);
}

.site-action--primary {
  background: var(--accent);
  color: var(--accent-contrast);
}

.site-action--secondary {
  background: var(--accent-contrast);
  color: var(--accent);
  border-color: rgba(228, 143, 86, 0.35);
}

.site-nav {
  margin-left: 16px;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav__link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  color: #ffe7d1;
  font-weight: 600;
}

.site-nav__link:hover,
.site-nav__link:focus-visible,
.site-nav__link[aria-current="page"] {
  background: rgba(255, 255, 255, 0.1);
  color: #fff5ec;
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: currentColor;
}

.page-main {
  padding-top: 34px;
}

.article {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.06));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 32px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.article__hero {
  padding: 38px 38px 28px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(228, 143, 86, 0.08));
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.article__title {
  margin: 0;
  max-width: 16ch;
  font-size: clamp(2rem, 4.6vw, 3.55rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.article__body {
  padding: 36px 38px 42px;
}

.article__body > *:first-child {
  margin-top: 0;
}

.article__body > *:last-child {
  margin-bottom: 0;
}

.article__body p,
.article__body ul,
.article__body ol,
.article__body blockquote {
  margin: 0 0 1.15em;
}

.article__body ul,
.article__body ol {
  padding-left: 1.35em;
}

.article__body li + li {
  margin-top: 0.45em;
}

.article__body h2,
.article__body h3 {
  margin: 2.1em 0 0.85em;
  color: #fff8f1;
  line-height: 1.18;
}

.article__body h2 {
  font-size: clamp(1.55rem, 3vw, 2.25rem);
}

.article__body h3 {
  font-size: clamp(1.22rem, 2.4vw, 1.55rem);
}

.article__body figure,
.article__body .article-media {
  margin: 1.5em 0;
}

.article__body img {
  width: 100%;
  border-radius: 22px;
  box-shadow: 0 18px 36px rgba(46, 7, 12, 0.22);
}

.toc {
  margin: 1.6em 0 2.1em;
  background: var(--surface);
  color: var(--text-dark);
  border: 1px solid rgba(107, 4, 25, 0.14);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 28px rgba(58, 17, 17, 0.12);
  overflow: hidden;
}

.toc__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
}

.toc__title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--accent-contrast);
}

.toc__switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  font-size: 0.95rem;
  color: var(--text-muted);
  cursor: pointer;
}

.toc__switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.toc__switch-box {
  position: relative;
  width: 50px;
  height: 28px;
  border-radius: 999px;
  background: rgba(107, 4, 25, 0.18);
  transition: background 0.2s ease;
}

.toc__switch-box::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s ease;
}

.toc__switch input:checked + .toc__switch-box {
  background: var(--accent);
}

.toc__switch input:checked + .toc__switch-box::after {
  transform: translateX(22px);
}

.toc__body {
  padding: 0 20px 20px;
}

.toc__body[hidden] {
  display: none;
}

.toc__body ul {
  margin: 0;
  padding-left: 1.15em;
}

.toc__body li + li {
  margin-top: 0.55em;
}

.toc__body a {
  color: var(--accent-contrast);
}

.table-wrap {
  margin: 1.45em 0;
  overflow-x: auto;
  border-radius: 20px;
  box-shadow: 0 14px 32px rgba(32, 8, 8, 0.16);
}

.content-table {
  width: 100%;
  min-width: 540px;
  border-collapse: collapse;
  background: var(--surface-strong);
  color: var(--text-dark);
}

.content-table th,
.content-table td {
  padding: 14px 16px;
  text-align: left;
  border: 1px solid rgba(107, 4, 25, 0.12);
}

.content-table th {
  background: var(--accent-contrast);
  color: #fff7f0;
  font-weight: 700;
}

.content-table tbody tr:nth-child(odd) td {
  background: #fffaf5;
}

.content-table tbody tr:nth-child(even) td {
  background: #fff2e8;
}

.review-box {
  margin: 1.5em 0;
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.review-card {
  padding: 22px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(107, 4, 25, 0.14);
  background: var(--surface-strong);
  color: var(--text-dark);
  box-shadow: 0 14px 32px rgba(55, 15, 15, 0.1);
}

.review-card--positive {
  background: linear-gradient(180deg, #fffdf8 0%, #fff5eb 100%);
}

.review-card--negative {
  background: linear-gradient(180deg, #fff7f2 0%, #ffede5 100%);
}

.review-card__title {
  margin: 0 0 14px;
  font-size: 1.05rem;
  color: var(--accent-contrast);
}

.review-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.review-item {
  position: relative;
  padding-left: 24px;
}

.review-item + .review-item {
  margin-top: 10px;
}

.review-item::before {
  position: absolute;
  left: 0;
  top: 0.05em;
  font-weight: 900;
}

.review-item--positive::before {
  content: "+";
  color: #1c8b44;
}

.review-item--negative::before {
  content: "-";
  color: #c63b3b;
}

.faq {
  margin: 2.4em 0 0;
  padding: 24px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
}

.faq__title {
  margin: 0 0 18px;
  font-size: 1.3rem;
}

.faq-item + .faq-item {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  font-weight: 700;
  cursor: pointer;
}

.faq-question::after {
  content: "+";
  flex: 0 0 auto;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--accent);
  transition: transform 0.18s ease;
}

.faq-question[aria-expanded="true"]::after {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 0 18px;
  color: rgba(255, 246, 237, 0.88);
}

.faq-answer[hidden] {
  display: none;
}

.faq-item {
  padding: 0 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-item + .faq-item {
  margin-top: 12px;
  border-top: 0;
}

.faq-item.active {
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.faq-item.active .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer span,
.faq-answer p {
  display: block;
  margin: 0;
}

.casino-popup {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 24px;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at top, rgba(244, 169, 119, 0.18), transparent 36%),
    rgba(30, 4, 10, 0.92);
  backdrop-filter: blur(12px);
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.casino-popup.show {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.roulette-wheel {
  position: relative;
  width: 120px;
  height: 120px;
  animation: spin 3s linear infinite;
}

.wheel-inner {
  position: relative;
  width: 100%;
  height: 100%;
  border: 3px solid rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    #f4a977 0deg 45deg,
    #6b0419 45deg 90deg,
    #f0b86a 90deg 135deg,
    #7f0e12 135deg 180deg,
    #f4a977 180deg 225deg,
    #6b0419 225deg 270deg,
    #f0b86a 270deg 315deg,
    #7f0e12 315deg 360deg
  );
  box-shadow: 0 0 34px rgba(244, 169, 119, 0.24);
}

.wheel-center {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff6ed;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.55);
}

.ball {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #6b0419;
  animation: ballBounce 0.6s ease-in-out infinite alternate;
}

.redirect-notice {
  max-width: 560px;
  text-align: center;
  animation: fadeInUp 0.35s ease;
}

.notice-title {
  margin: 0;
  color: #fffaf5;
  font-size: clamp(1.2rem, 2.8vw, 1.7rem);
  font-weight: 800;
  line-height: 1.25;
}

.progress-container {
  width: min(100%, 320px);
  text-align: center;
}

.progress-bar {
  width: 100%;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.progress-fill {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #e48f56 0%, #ffd2ad 50%, #e48f56 100%);
  background-size: 200% 100%;
  transition: width 0.1s linear;
  animation: progressShine 1.6s linear infinite;
}

.progress-text {
  margin-top: 12px;
  color: #ffd9bb;
  font-size: 0.95rem;
  font-weight: 700;
}

.author-card {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  margin: 28px 0 0;
  padding: 22px 24px;
  background: var(--surface);
  color: var(--text-dark);
  border: 1px solid rgba(107, 4, 25, 0.14);
  border-radius: 22px;
  box-shadow: 0 18px 38px rgba(44, 13, 13, 0.14);
}

.author-card__photo {
  flex: 0 0 80px;
}

.author-card__photo img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
}

.author-card__name {
  margin: 0;
  font-size: 1.1rem;
  color: var(--accent-contrast);
}

.author-card__role {
  margin: 4px 0 0;
  color: var(--text-muted);
}

.author-card__dates {
  margin-top: 12px;
  color: var(--text-muted);
}

.author-card__dates div + div {
  margin-top: 4px;
}

.author-card__socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.author-card__socials a {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(107, 4, 25, 0.16);
  color: var(--accent-contrast);
  background: #fff;
}

.author-card__socials a:hover,
.author-card__socials a:focus-visible {
  background: var(--accent);
  color: var(--accent-contrast);
}

.author-card__socials svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
}

.site-footer {
  margin-top: 34px;
}

.site-footer__nav,
.site-footer__bottom {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  box-shadow: 0 18px 38px rgba(41, 7, 12, 0.18);
}

.site-footer__nav {
  padding: 10px;
}

.site-footer__bottom {
  margin-top: 14px;
  padding: 18px 20px;
  text-align: center;
  color: rgba(255, 246, 237, 0.82);
}

.scrolltop {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 90;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-contrast);
  box-shadow: 0 16px 30px rgba(38, 7, 7, 0.24);
  cursor: pointer;
}

.scrolltop::before {
  content: "↑";
  font-size: 1.3rem;
  line-height: 1;
}

.scrolltop[hidden] {
  display: none;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes ballBounce {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(1.28);
  }
}

@keyframes progressShine {
  from {
    background-position: -200% 0;
  }

  to {
    background-position: 200% 0;
  }
}

@media (max-width: 991px) {
  .site-header__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px 16px;
  }

  .menu-toggle {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    order: 3;
    justify-self: end;
  }

  .site-actions {
    display: flex;
    flex-wrap: wrap;
    order: 2;
    grid-column: 1 / -1;
    width: 100%;
    margin-left: 0;
    justify-content: flex-start;
  }

  .site-action {
    flex: 1 1 220px;
  }

  .site-nav {
    order: 4;
    grid-column: 1 / -1;
    width: 100%;
    margin: 0;
  }

  .site-nav[hidden] {
    display: none;
  }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    padding-top: 12px;
  }

  .site-nav__link {
    justify-content: center;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.06);
  }

  .article__hero,
  .article__body {
    padding-left: 24px;
    padding-right: 24px;
  }

  .review-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .site-header__inner {
    gap: 14px;
  }

  .site-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    justify-content: stretch;
  }

  .site-action {
    width: 100%;
    flex: 1 1 auto;
  }

  .toc__header {
    align-items: flex-start;
    flex-direction: column;
  }

  .author-card {
    flex-direction: column;
  }

  .casino-popup {
    gap: 16px;
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .container {
    width: min(calc(100% - 20px), var(--container));
  }

  .article {
    border-radius: 24px;
  }

  .article__hero,
  .article__body,
  .faq,
  .author-card {
    padding-left: 18px;
    padding-right: 18px;
  }

  .site-action {
    width: 100%;
  }

  .content-table {
    min-width: 460px;
  }

  .faq-item {
    padding-left: 14px;
    padding-right: 14px;
  }

  .notice-title {
    font-size: 1.08rem;
  }

  .roulette-wheel {
    width: 104px;
    height: 104px;
  }

  .progress-container {
    width: 100%;
  }
}

@media (max-width: 360px) {
  .brand img {
    max-width: min(70vw, 168px);
  }

  .article__title {
    font-size: 1.85rem;
  }

  .toc__switch {
    width: 100%;
    justify-content: space-between;
  }
}

@media (max-width: 300px) {
  body {
    min-width: 300px;
  }
}
