/* =====================================
   GLOBAL STYLES — base reset & typography
   ===================================== */

:root {
  --bplay-bg-darker: #0d0f11;
  --bplay-bg-dark: #14171c;
  --bplay-border: #1f242a;
  --bplay-text: #eaeef3;
  --bplay-orange: #ff5f00;
  --bplay-orange-light: #ff7a2a;
  --bplay-radius: 8px;
  --bplay-font: 'Poppins', 'Segoe UI', Roboto, sans-serif;
}

/* --- Global Reset --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
  background: var(--bplay-bg-dark);
  color: #ddd;
  font-family: var(--bplay-font);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* --- Typography --- */
h1, h2, h3, h4, h5 {
  color: #fff;
  font-weight: 700;
}

p, li, td, th {
  color: #ccc;
}

a {
  color: var(--bplay-orange);
  text-decoration: none;
  transition: color 0.25s ease;
}

a:hover {
  color: var(--bplay-orange-light);
  text-decoration: none;
}

/* ===========================
   HEADER BASE — исправленная версия
   =========================== */

/* чтобы контент не уезжал под фиксированную шапку */
body {
  padding-top: 130px !important; /* высота хедера = 70px, можно подогнать */
}

/* фиксируем шапку поверх всего */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1001;
  background: var(--bplay-bg-darker);
  border-bottom: 1px solid var(--bplay-border);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s ease-in-out;
}
.header.is-hidden {
  transform: translateY(-100%);
}

/* внутренний контейнер */
.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 70px; /* для стабильной высоты */
}

/* логотип */
.header-logo img {
  display: block;
  width: 100px;
  height: auto;
}

/* ===========================
   BURGER
   =========================== */

.burger {
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  border: 1px solid #232a32;
  background: #161a20;
  cursor: pointer;
  z-index: 1100;
}
.burger:focus {
  outline: 2px solid var(--bplay-orange);
  outline-offset: 2px;
}
.burger-box {
  position: relative;
  width: 18px;
  height: 14px;
}
.burger-line,
.burger-line::before,
.burger-line::after {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: #fff;
  content: "";
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.burger-line {
  top: 50%;
  transform: translateY(-50%);
}
.burger-line::before {
  top: -6px;
}
.burger-line::after {
  top: 6px;
}
/* активное состояние */
.burger[aria-expanded="true"] .burger-line {
  transform: rotate(45deg);
}
.burger[aria-expanded="true"] .burger-line::before {
  opacity: 0;
}
.burger[aria-expanded="true"] .burger-line::after {
  transform: rotate(-90deg);
}

/* ===========================
   DESKTOP NAV
   =========================== */
.nav-desktop {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  margin-left: auto;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  color: var(--bplay-text);
  text-transform: uppercase;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.3px;
  padding: 6px 10px;
  border-radius: 6px;
  transition: background 0.2s ease, color 0.2s ease;
}
.nav-link:hover {
  background: rgba(255, 95, 0, 0.15);
  color: #fff;
}

.actions {
  display: contents;
  align-items: center;
  text-align: center;
  gap: 10px;
}

/* ===========================
   BUTTONS
   =========================== */
.btn {
  display: inline-block;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 13px;
  padding: 8px 16px;
  border-radius: 8px;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--bplay-orange);
  color: #fff;
}
.btn-primary:hover {
  background: var(--bplay-orange-light);
  color: #fff;
}
.btn-ghost {
  background: #1f242a;
  color: #fff;
  border: 1px solid #2b323c;
}
.btn-ghost:hover {
  background: var(--bplay-orange);
  border-color: var(--bplay-orange);
  color: #fff;
}

/* ===========================
   MOBILE MENU
   =========================== */

.mobile-menu {
  position: fixed;
  top: 0px;
  left: 0;
  right: 0;
  height: calc(100vh - 80px);
  background: var(--bplay-bg-dark);
  transform: translateY(-100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  z-index: 1000;
}
.mobile-menu.is-open {
  transform: translateY(0);
  border-top: 1px solid var(--bplay-border);
}

/* мобильный список */
.mobile-list {
  list-style: none;
  margin: 0;
  padding: 16px 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 10px;
}
.mobile-link {
  display: block;
  background: #161a20;
  border: 1px solid #232a32;
  color: var(--bplay-text);
  padding: 10px 12px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  text-align: center;
}
.mobile-link:hover {
  background: #1b2128;
}

.mobile-actions {
  padding: 12px;
  display: grid;
  gap: 8px;
  position: sticky;
  bottom: 0;
  background: var(--bplay-bg-dark);
}

/* ===========================
   RESPONSIVE
   =========================== */

/* скрываем бургер на десктопе */
@media (min-width: 1024px) {
  .burger {
    display: none !important;
  }
  .nav-desktop {
    display: flex !important;
  }
  .mobile-menu {
    display: none !important;
  }
}

/* на мобильных скрываем десктопное меню */
@media (max-width: 1023px) {
  .nav-desktop {
    display: none !important;
  }
  .mobile-list {
    grid-template-columns: 1fr 1fr;
  }
  @media (max-width: 420px) {
    .mobile-list {
      grid-template-columns: 1fr;
    }
  }
}

/* =====================================
   HERO SECTION — bplay Argentina
   ===================================== */

.page-hero-simple {
  background: linear-gradient(180deg, #1a1d21 0%, #0f1215 100%);
  text-align: center;
  padding: 80px 20px 60px;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.page-hero-simple::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255,95,0,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.page-hero-simple h1 {
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 28px;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.hero-btn {
  display: inline-block;
  background: var(--bplay-orange);
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 15px;
  padding: 14px 32px;
  border-radius: var(--bplay-radius);
  box-shadow: 0 4px 12px rgba(255,95,0,0.25);
  transition: all 0.3s ease;
}

.hero-btn:hover {
  background: var(--bplay-orange-light);
  box-shadow: 0 6px 14px rgba(255,95,0,0.35);
  transform: translateY(-1px);
  color: #fff;
}

.hero-btn:active {
  transform: translateY(0);
  box-shadow: 0 3px 8px rgba(255,95,0,0.25);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .page-hero-simple {
    padding: 60px 16px 50px;
  }

  .page-hero-simple h1 {
    font-size: 1.8rem;
    line-height: 1.3;
    margin-bottom: 24px;
  }

  .hero-btn {
    font-size: 14px;
    padding: 12px 28px;
  }
}

/* =====================================
   ARTICLE BODY — контент, таблицы, списки
   ===================================== */

.article-body {
  max-width: 880px;
  margin: 0 auto;
  padding: 40px 20px 60px;
  color: #d8d8d8;
  font-size: 17px;
  line-height: 1.65;
}

.article-body h1,
.article-body h2,
.article-body h3 {
  color: #fff;
  font-weight: 800;
  line-height: 1.3;
  margin-top: 60px;
  margin-bottom: 24px;
  text-wrap: balance;
}

.article-body h1 {
  font-size: 2rem;
  text-align: center;
}

.article-body h2 {
  font-size: 1.6rem;
  border-left: 4px solid var(--bplay-orange);
  padding-left: 12px;
}

.article-body h3 {
  font-size: 1.3rem;
  color: var(--bplay-orange-light);
}

.article-body p {
  margin-bottom: 18px;
  color: #dcdcdc;
}

.article-body strong {
  color: #fff;
  font-weight: 700;
}

.article-body a {
  color: var(--bplay-orange);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease;
}

.article-body a:hover {
  border-color: var(--bplay-orange);
}

/* --- Lists --- */
.article-body ul,
.article-body ol {
  margin: 18px 0 24px 22px;
}

.article-body ul li,
.article-body ol li {
  margin-bottom: 8px;
}

.article-body ul li::marker {
  color: var(--bplay-orange);
}

.article-body ol li::marker {
  color: var(--bplay-orange-light);
}

/* --- Tables --- */
.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 15px;
  border: 1px solid #2a2e33;
  border-radius: var(--bplay-radius);
  overflow: hidden;
}

.article-body th,
.article-body td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid #2a2e33;
}

.article-body th {
  background: #1a1d21;
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.article-body tr:nth-child(even) {
  background: #14171c;
}

.article-body tr:hover {
  background: rgba(255, 95, 0, 0.05);
}

/* --- Responsive tables for mobile --- */
@media (max-width: 768px) {
  .article-body table {
    display: block;
    width: 100%;
    overflow-x: auto;           /* горизонтальная прокрутка */
    -webkit-overflow-scrolling: touch;
    border-radius: var(--bplay-radius);
    white-space: nowrap;        /* чтобы ячейки не переносились */
  }

  .article-body th,
  .article-body td {
    padding: 8px 10px;
    font-size: 14px;
  }

  .article-body th {
    position: sticky;           /* заголовок остаётся видимым при прокрутке */
    top: 0;
    background: #1a1d21;
    z-index: 1;
  }

  .article-body tr:hover {
    background: rgba(255, 95, 0, 0.08);
  }
}

/* --- Ultra-small phones --- */
@media (max-width: 420px) {
  .article-body table {
    font-size: 13px;
  }
  .article-body th,
  .article-body td {
    padding: 6px 8px;
  }
}


/* --- Quotes --- */
.article-body blockquote {
  background: #191c21;
  border-left: 4px solid var(--bplay-orange);
  margin: 24px 0;
  padding: 14px 20px;
  font-style: italic;
  color: #ccc;
  border-radius: var(--bplay-radius);
}

/* --- Images --- */
.article-body img {
  display: block;
  margin: 28px auto;
  max-width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.35);
}

.article-body figure {
  text-align: center;
  margin: 30px 0;
}

.article-body figcaption {
  color: #aaa;
  font-size: 14px;
  margin-top: 8px;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .article-body {
    font-size: 16px;
    padding: 24px 16px 40px;
  }

  .article-body h1 {
    font-size: 1.6rem;
  }

  .article-body h2 {
    font-size: 1.3rem;
  }

  .article-body h3 {
    font-size: 1.1rem;
  }

  .article-body table {
    font-size: 14px;
  }
}

/* =====================================
   FAQ SECTION — collapsible Q&A
   ===================================== */

.faq-list {
  max-width: 880px;
  margin: 0 auto 80px;
  padding: 0 20px;
}

.faq-list h2 {
  text-align: center;
  color: #fff;
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 32px;
}

/* --- FAQ Items --- */
.faq-item {
  background: #1a1d21;
  border-radius: var(--bplay-radius);
  margin-bottom: 14px;
  border: 1px solid #2a2e33;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item summary {
  position: relative;
  cursor: pointer;
  font-weight: 700;
  color: #fff;
  padding: 16px 50px 16px 18px;
  list-style: none;
  user-select: none;
  background: #1c1f23;
  transition: background 0.3s ease;
}

.faq-item summary:hover {
  background: #22252a;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

/* --- Icon (+ / -) --- */
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--bplay-orange);
  font-weight: 900;
  font-size: 20px;
  transition: transform 0.3s ease, color 0.3s ease;
}

.faq-item[open] summary::after {
  content: "–";
  color: var(--bplay-orange-light);
  transform: translateY(-50%) rotate(180deg);
}

/* --- Answer Content --- */
.faq-content {
  padding: 0 18px 16px;
  font-size: 16px;
  color: #ccc;
  line-height: 1.6;
  border-top: 1px solid #2a2e33;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .faq-list h2 {
    font-size: 1.5rem;
  }

  .faq-item summary {
    padding: 14px 40px 14px 14px;
    font-size: 15px;
  }

  .faq-content {
    font-size: 15px;
  }
}
/* =====================================
   AUTHOR CARD — о авторе статьи
   ===================================== */

.author-card {
  max-width: 880px;
  margin: 80px auto 100px;
  padding: 24px 28px;
  display: flex;
  align-items: center;
  gap: 22px;
  background: #1a1d21;
  border: 1px solid #2a2e33;
  border-radius: var(--bplay-radius);
  color: #d0d0d0;
  box-shadow: 0 4px 14px rgba(0,0,0,0.3);
}

.author-photo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--bplay-orange);
  flex-shrink: 0;
}

.author-info {
  flex: 1;
}

.author-name {
  color: #fff;
  font-weight: 800;
  font-size: 1.2rem;
  margin-bottom: 4px;
}

.author-bio {
  font-size: 15px;
  line-height: 1.5;
  color: #c7c7c7;
  margin-bottom: 8px;
}

.author-info a {
  color: var(--bplay-orange);
  font-weight: 700;
  text-decoration: none;
}

.author-info a:hover {
  text-decoration: underline;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .author-card {
    flex-direction: column;
    text-align: center;
    gap: 16px;
    padding: 20px;
  }

  .author-photo {
    width: 80px;
    height: 80px;
  }

  .author-name {
    font-size: 1.1rem;
  }

  .author-bio {
    font-size: 14px;
  }
}

/* =====================================
   FOOTER — нижний блок
   ===================================== */

.footer {
  background: #0d0f11;
  padding: 60px 20px;
  color: #aaa;
  border-top: 1px solid #1f242a;
}

.footer .container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
}

.footer h5 {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 14px;
  font-weight: 700;
}

.footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-list li {
  margin-bottom: 8px;
}

.footer-list a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.25s ease;
}

.footer-list a:hover {
  color: var(--bplay-orange);
}

.footer p {
  margin-top: 12px;
  font-size: 14px;
  color: #888;
}

/* --- Floating CTA --- */
.floating-cta {
  position: fixed;
  right: 20px;
  bottom: 28px;
  background: var(--bplay-orange);
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
  padding: 14px 26px;
  border-radius: 50px;
  box-shadow: 0 4px 14px rgba(255,95,0,0.35);
  text-decoration: none;
  transition: all 0.3s ease;
  z-index: 999;
}

.floating-cta:hover {
  background: var(--bplay-orange-light);
  transform: translateY(-2px);
  color: #fff;
}

/* --- Responsive Footer --- */
@media (max-width: 768px) {
  .footer {
    text-align: center;
  }

  .footer .container {
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }

  .floating-cta {
    right: 16px;
    bottom: 20px;
    padding: 12px 22px;
    font-size: 14px;
  }
}

/* ===== BASE FORM STYLES ===== */
form {
  max-width: 720px;
  margin: 0 auto;
  padding: 20px;
  background: var(--bplay-bg-dark, #14171c);
  border: 1px solid var(--bplay-border, #1f242a);
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
  color: #eee;
  font-size: 15px;
}

/* --- Label --- */
label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: #ccc;
  line-height: 1.3;
}

/* --- Inputs / Select / Textarea --- */
input[type="text"],
input[type="email"],
select,
textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #2b323c;
  border-radius: 6px;
  background: #0d0f11;
  color: #fff;
  font-size: 15px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--bplay-orange, #ff5f00);
  outline: none;
  box-shadow: 0 0 0 2px rgba(255,95,0,0.25);
}

/* --- Textarea --- */
textarea {
  min-height: 120px;
  resize: vertical;
}

/* --- Checkbox --- */
input[type="checkbox"] {
  accent-color: var(--bplay-orange, #ff5f00);
  margin-right: 6px;
}

/* --- Rows and fields --- */
.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 16px;
}

.form-field {
  flex: 1 1 300px;
  display: flex;
  flex-direction: column;
  margin-bottom: 16px;
}

/* --- Actions --- */
.form-actions {
  margin-top: 20px;
  text-align: center;
}

.form-actions .button {
  font-size: 15px;
  padding: 10px 26px;
  border-radius: 8px;
}

.text-muted {
  margin-top: 10px;
  font-size: 13px;
  color: #999;
  line-height: 1.4;
}

/* --- Links inside labels --- */
label a {
  color: var(--bplay-orange, #ff5f00);
  text-decoration: underline;
}
label a:hover {
  color: var(--bplay-orange-light, #ff7a2a);
}

/* --- Mobile adjustments --- */
@media (max-width: 600px) {
  form {
    padding: 16px;
  }
  .form-row {
    flex-direction: column;
    gap: 12px;
  }
  .form-field {
    margin-bottom: 12px;
  }
}


/* =====================================
   FINAL TOUCHES — TOC, scroll, selection, polish
   ===================================== */

/* --- Table of Contents --- */
#toc {
  background: #16191d;
  border: 1px solid #24282d;
  border-radius: var(--bplay-radius);
  padding: 20px 24px;
  margin: 40px auto;
  max-width: 760px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

#toc ul {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 2;
  column-gap: 24px;
}

#toc li {
  margin-bottom: 8px;
}

#toc a {
  color: #ccc;
  text-decoration: none;
  position: relative;
  padding-left: 12px;
  transition: color 0.25s ease;
}

#toc a::before {
  content: "›";
  position: absolute;
  left: 0;
  color: var(--bplay-orange);
  font-weight: 700;
  transition: transform 0.25s ease;
}

#toc a:hover {
  color: var(--bplay-orange-light);
}

#toc a:hover::before {
  transform: translateX(3px);
}

/* --- Responsive TOC --- */
@media (max-width: 768px) {
  #toc {
    padding: 16px 18px;
  }

  #toc ul {
    columns: 1;
  }

  #toc a {
    display: inline-block;
    padding-left: 10px;
    font-size: 15px;
  }
  
  ::-webkit-scrollbar {
    width: 2px !important;
  }
  
  body {
  	padding: 0 5px;
  }
}

/* --- Selection Highlight --- */
::selection {
  background: var(--bplay-orange);
  color: #fff;
}

/* --- Scrollbar (Webkit) --- */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #101214;
}

::-webkit-scrollbar-thumb {
  background: #2a2e33;
  border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--bplay-orange);
}

/* --- Smooth transitions and hover effects --- */
a,
button,
.summary {
  transition: all 0.25s ease;
}

/* --- Subtle fade-in for sections --- */
.main-content,
.header,
.footer {
  animation: fadePage 0.6s ease;
}

@keyframes fadePage {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- End of betano.css --- */
