/* FavbetBrasil.com — стилі сайту-огляду */

:root {
  --bg: #0f1420;
  --bg-alt: #161d2e;
  --card: #1c2438;
  --border: #2a3450;
  --text: #e8ecf4;
  --text-muted: #a7b0c4;
  --accent: #f0b429;
  --accent-dark: #c8921a;
  --accent-2: #2ec4b6;
  --danger: #e0525c;
  --radius: 14px;
  --max-width: 1120px;
  font-size: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
}

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

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  text-decoration: underline;
}

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

/* Верхня попереджувальна смуга */
.top-disclaimer {
  background: var(--danger);
  color: #fff;
  font-size: 0.85rem;
  text-align: center;
  padding: 8px 12px;
}

.top-disclaimer strong {
  font-weight: 700;
}

/* Хедер / навігація */
.site-header {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 20;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  gap: 20px;
  flex-wrap: wrap;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text);
}

.logo img {
  width: 40px;
  height: 40px;
}

.logo .logo-sub {
  display: block;
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--text-muted);
}

.main-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0;
  padding: 0;
}

.main-nav a {
  color: var(--text);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
}

.main-nav a:hover,
.main-nav a:focus-visible,
.main-nav a[aria-current="page"] {
  background: var(--card);
  color: var(--accent);
  text-decoration: none;
}

.age-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  font-weight: 800;
  color: var(--accent);
  font-size: 0.8rem;
}

/* Хіро-секція */
.hero {
  padding: 56px 0;
  background: radial-gradient(ellipse at top right, rgba(46, 196, 182, 0.18), transparent 55%),
    radial-gradient(ellipse at bottom left, rgba(240, 180, 41, 0.14), transparent 55%);
  border-bottom: 1px solid var(--border);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  margin: 0 0 16px;
  line-height: 1.25;
}

.hero p.lead {
  color: var(--text-muted);
  font-size: 1.08rem;
  margin-bottom: 24px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #1a1305;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  filter: brightness(1.08);
  text-decoration: none;
}

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

.btn-outline:hover,
.btn-outline:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}

.hero-art {
  width: 100%;
}

/* Секції */
section {
  padding: 52px 0;
}

section.alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  max-width: 700px;
  margin: 0 auto 32px;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  margin-bottom: 10px;
}

.section-head p {
  color: var(--text-muted);
}

/* Картки */
.grid {
  display: grid;
  gap: 22px;
}

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

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

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.card img.icon {
  width: 46px;
  height: 46px;
  margin-bottom: 14px;
}

.card h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
}

.card p {
  color: var(--text-muted);
  margin: 0;
}

/* Таблиці */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 480px;
}

th,
td {
  padding: 13px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}

th {
  background: var(--bg-alt);
  color: var(--accent);
  font-weight: 700;
}

tr:last-child td {
  border-bottom: none;
}

/* Кроки */
.steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 18px;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding: 20px 20px 20px 68px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #1a1305;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.steps h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}

.steps p {
  margin: 0;
  color: var(--text-muted);
}

/* FAQ */
details.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 12px;
}

details.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1.02rem;
  list-style: none;
}

details.faq-item summary::-webkit-details-marker {
  display: none;
}

details.faq-item summary::after {
  content: "+";
  float: right;
  color: var(--accent);
  font-size: 1.3rem;
}

details.faq-item[open] summary::after {
  content: "−";
}

details.faq-item p {
  color: var(--text-muted);
  margin: 12px 0 0;
}

/* Попередження / відповідальна гра */
.notice {
  background: rgba(224, 82, 92, 0.12);
  border: 1px solid rgba(224, 82, 92, 0.4);
  border-radius: var(--radius);
  padding: 20px 24px;
}

.notice h3 {
  margin-top: 0;
  color: var(--danger);
}

.notice-soft {
  background: rgba(46, 196, 182, 0.1);
  border: 1px solid rgba(46, 196, 182, 0.35);
  border-radius: var(--radius);
  padding: 20px 24px;
}

/* Хлібні крихти */
.breadcrumbs {
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 16px 0 0;
}

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

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

/* Контент-стаття */
.article {
  max-width: 820px;
  margin: 0 auto;
}

.article h1 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  margin-bottom: 12px;
}

.article .meta {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 28px;
}

.article h2 {
  margin-top: 40px;
  font-size: 1.4rem;
}

.article h3 {
  margin-top: 26px;
  font-size: 1.15rem;
}

.article p {
  color: #d5dae6;
}

.article ul,
.article ol {
  color: #d5dae6;
  padding-left: 22px;
}

.article li {
  margin-bottom: 8px;
}

/* Футер */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 40px 0 24px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 30px;
  margin-bottom: 28px;
}

.footer-grid h4 {
  color: var(--text);
  margin: 0 0 14px;
  font-size: 1rem;
}

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

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

.footer-grid a {
  color: var(--text-muted);
}

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

.footer-legal {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  font-size: 0.8rem;
  line-height: 1.7;
}

.footer-bottom {
  margin-top: 18px;
  text-align: center;
  font-size: 0.8rem;
}

/* Респонсивність */
@media (max-width: 860px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 560px) {
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }

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

  .header-inner {
    justify-content: center;
    text-align: center;
  }
}
