/* ============================================
   LollyBet1.nl — базовые стили сайта
   ============================================ */

:root {
  --color-bg: #ffffff;
  --color-text: #1a1a1a;
  --color-muted: #5f5f5f;
  --color-primary: #d81f3c;
  --color-primary-dark: #a8172e;
  --color-dark: #16151a;
  --color-border: #e6e6e6;
  --color-table-stripe: #f7f7f9;
  --max-width: 1180px;
  --radius: 10px;
  --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

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

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

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Header ---------- */
.site-header {
  border-bottom: 1px solid var(--color-border);
  background: #fff;
}

.site-header .container {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.site-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  min-width: 0;
}

.site-logo img {
  height: 116px;
  width: auto;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
  border-radius: 6px;
  padding: 10px 18px;
  white-space: nowrap;
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 0.95rem;
  text-align: center;
}

.btn-outline {
  color: var(--color-dark);
  border-color: var(--color-dark);
  background: transparent;
}

.btn-outline:hover {
  background: var(--color-dark);
  color: #fff;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
}

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

.btn-large {
  padding: 14px 30px;
  font-size: 1.05rem;
}

@media (max-width: 480px) {
  .site-logo img {
    height: 76px;
  }
  .header-actions .btn {
    padding: 7px 10px;
    font-size: 0.78rem;
  }
}

/* ---------- Breadcrumbs ---------- */
.breadcrumbs {
  background: var(--color-table-stripe);
  border-bottom: 1px solid var(--color-border);
}

.breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 10px 0;
  font-size: 0.85rem;
  color: var(--color-muted);
}

.breadcrumbs li {
  display: flex;
  align-items: center;
}

.breadcrumbs li + li::before {
  content: "/";
  margin: 0 8px;
  color: #bbb;
}

.breadcrumbs a {
  color: var(--color-muted);
  text-decoration: none;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

.breadcrumbs .current {
  color: var(--color-text);
  font-weight: 600;
}

/* ---------- Hero ---------- */
.hero-section {
  padding-top: 24px;
}

.hero {
  position: relative;
  width: 100%;
  aspect-ratio: 1983 / 793;
  background-image: url("../img/banner.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
  border-radius: var(--radius);
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 5%;
  transform: translateY(-50%);
  width: 46%;
  color: #fff;
}

.hero-content .hero-title,
.hero-content p {
  margin: 0 0 0.6em 0;
}

.hero-content .hero-title {
  font-size: clamp(1.05rem, 4vw, 2.4rem);
  line-height: 1.2;
  font-weight: 800;
}

.hero-content p {
  font-size: clamp(0.7rem, 1.8vw, 1.1rem);
  color: #e8e8e8;
}

.hero-content .btn {
  font-size: clamp(0.65rem, 2vw, 1.05rem);
  padding: clamp(6px, 1.8vw, 14px) clamp(10px, 3vw, 30px);
}

@media (max-width: 560px) {
  .hero-content p {
    display: none;
  }
}

/* ---------- Main content / article ---------- */
main {
  display: block;
}

.content {
  padding-top: 30px;
  padding-bottom: 10px;
}

article h1 {
  font-size: clamp(1.5rem, 4vw, 2.1rem);
}

article h2 {
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  margin-top: 2em;
  border-left: 4px solid var(--color-primary);
  padding-left: 12px;
}

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.2em 0;
}

table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  font-size: 0.95rem;
  margin: 0;
}

th, td {
  border: 1px solid var(--color-border);
  padding: 8px 10px;
  text-align: left;
}

thead {
  background: var(--color-dark);
  color: #fff;
}

tbody tr:nth-child(even) {
  background: var(--color-table-stripe);
}

/* Stack tables as cards on narrow screens instead of scrolling horizontally */
@media (max-width: 640px) {
  .table-scroll {
    overflow-x: visible;
  }

  .table-scroll table {
    min-width: 0;
  }

  .table-scroll thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .table-scroll table,
  .table-scroll tbody,
  .table-scroll tr,
  .table-scroll td {
    display: block;
    width: 100%;
  }

  .table-scroll tr {
    border: 1px solid var(--color-border);
    border-radius: 8px;
    margin-bottom: 12px;
    overflow: hidden;
  }

  .table-scroll td {
    border: none;
    border-top: 1px solid var(--color-border);
    padding: 8px 12px;
  }

  .table-scroll td:first-child {
    border-top: none;
  }

  .table-scroll td[data-label] {
    text-align: right;
    position: relative;
    padding-left: 48%;
  }

  .table-scroll td[data-label]::before {
    content: attr(data-label);
    position: absolute;
    left: 12px;
    width: 42%;
    text-align: left;
    font-weight: 700;
    color: var(--color-muted);
  }

  .table-scroll td:not([data-label]) {
    background: var(--color-table-stripe);
    font-weight: 700;
  }

  .table-scroll tbody tr:nth-child(even) {
    background: transparent;
  }
}

/* ---------- TOC accordion (pure HTML <details>) ---------- */
.toc-accordion {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  margin: 24px 0;
  background: var(--color-table-stripe);
  padding: 0;
}

.toc-accordion summary {
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  padding: 14px 18px;
  position: relative;
}

.toc-accordion summary::-webkit-details-marker {
  display: none;
}

.toc-accordion summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.3rem;
  font-weight: 400;
}

.toc-accordion[open] summary::after {
  content: "\2212";
}

.toc-accordion .toc-body {
  padding: 0 18px 18px;
}

.toc-accordion ul {
  margin: 0;
  padding-left: 20px;
  columns: 2;
  -webkit-columns: 2;
}

@media (max-width: 600px) {
  .toc-accordion ul {
    columns: 1;
  }
}

.toc-accordion li {
  break-inside: avoid;
  margin-bottom: 6px;
}

.toc-accordion a {
  text-decoration: none;
  color: var(--color-text);
}

.toc-accordion a:hover {
  color: var(--color-primary);
}

/* ---------- Author box ---------- */
.author-box {
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-primary);
  background: var(--color-table-stripe);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 24px 0;
  font-size: 0.92rem;
}

.author-name {
  margin: 0 0 8px 0;
  color: var(--color-text);
}

.author-box p:last-child {
  margin-bottom: 0;
  color: var(--color-muted);
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--color-dark);
  color: #fff;
  text-align: center;
  padding: 40px 20px;
  border-radius: var(--radius);
  margin: 40px 0;
}

.cta-band h2 {
  border: none;
  padding: 0;
  margin: 0 0 10px 0;
  color: #fff;
}

.cta-band p {
  color: #cfcfcf;
  margin: 0 0 20px 0;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-dark);
  color: #cfcfcf;
  margin-top: 40px;
  padding: 40px 0 20px;
  font-size: 0.9rem;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 24px;
}

.footer-col {
  flex: 1 1 200px;
  min-width: 160px;
}

.footer-col h3 {
  color: #fff;
  font-size: 1rem;
  margin: 0 0 12px 0;
}

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

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

.footer-col a {
  color: #cfcfcf;
  text-decoration: none;
}

.footer-col a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid #33333a;
  padding-top: 16px;
  font-size: 0.8rem;
  color: #999;
}

.footer-disclaimer {
  font-size: 0.78rem;
  color: #888;
  margin-top: 10px;
  line-height: 1.5;
}

/* ---------- go.html redirect page ---------- */
.redirect-screen {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
}

.redirect-screen img {
  height: 60px;
  width: auto;
  margin-bottom: 24px;
}

.redirect-screen p {
  color: var(--color-muted);
  margin: 0 0 20px 0;
}
