/* ===================================
   Reset & Base Styles
=================================== */
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-family: Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #ffffff;
}

body {
    background-color: #1a1a1a;
    overflow-x: hidden;
}

img {
    display: block;
    margin: 20px auto;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Центрирование контейнера для изображения */
.img-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin: 10px 0;
}

/* Контейнер для кнопок */
.buttons-container {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Links */
a {
    text-decoration: none;
    color: inherit;
}

/* Buttons */
.btn {
    font-weight: 600;
    border: none;
    cursor: pointer;
    border-radius: 6px;
    padding: 0.5em 1.2em;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
    font-size: 0.9rem;
}

.btn--primary {
    background-color: #ffb805;
    color: #000000;
    border: 2px solid #ffb805;
}

.btn--primary:hover {
    background-color: #ffb805;
}

.btn--secondary {
    background-color: #017a2a;
    color: #000000;
    border: 2px solid #017a2a;
}

.btn--secondary:hover {
    background-color: #ffb805;
    color: #fff;
}

/* Containers */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Header */
.header {
    background-color: #1a1a1a;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    border-bottom: 2px solid #ffb805;
    position: sticky;
    top: 0;
    z-index: 999;
}

.header__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
}

/* Logo */
.logo img {
    display: block;
    max-width: 100%;
    height: auto;
}

.logo-glow img {
    max-width: 180px;
    height: 36px;
}

.footer__logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer__logo img.age {
    width: 50px;
    height: auto;
    opacity: 0.8;
}

.footer__logo img.logo {
    width: 100px;
    height: auto;
}

/* Navigation */
.nav {
    display: flex;
    gap: 6px;
    justify-content: center;
    position: relative;
    background-color: #1a1a1a; /* ← замени на свой цвет сайта */
    opacity: 1; /* полностью непрозрачно */
}

.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    background: none;
    border: none;
}

.nav__toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #ffb805;
    border-radius: 2px;
}

.button-nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    background-color: #1a1a1a;
    padding: 0 5px;
    position: sticky;
    top: 40px;
    z-index: 998;
    flex-wrap: wrap;
    box-shadow: 0 2px 5px #1a1a1a;
}

.nav-button {
    background-color: #ffb805;
    color: #000;
    padding: 4px 8px;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}

.nav-button:hover,
.nav-button.active {
    background-color: #fff;
    color: #000;
}

/* Mobile nav */
@media (max-width: 1200px) {
  .container {
    max-width: 100%;
    padding-left: 16px;
    padding-right: 16px;
  }
}

@media (max-width: 900px) {
  .section {
    padding: 24px 10px;
  }
}

@media (max-width: 768px) {
  body {
    overflow-x: hidden;
  }
  
  .header__container {
    padding: 6px;
  }

  .nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 75%;
    height: 100vh;
    background-color: #1a1a1a;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 24px;
    padding: 80px 32px 32px 32px;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.7);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 2000;
  }

  .nav--open {
    transform: translateX(0);
  }

  .nav__toggle {
    display: flex;
  }

  .nav__close {
    display: block;
  }

  .nav>.btn {
    width: 100%;
    margin-bottom: 12px;
    padding: 12px 16px;
    font-size: 1rem;
  }
  
  .nav .nav-button {
    display: block;
    width: 100%;
    padding: 12px 16px;
    margin-bottom: 8px;
    font-size: 1rem;
    text-align: left;
  }
  table {
    overflow-x: auto;
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    -ms-overflow-style: -ms-autohiding-scrollbar;
  }
}

@media (max-width: 600px) {
  .section {
    padding: 16px 10px;
  }

  .footer__container {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .footer__nav {
    gap: 16px;
  }

  .faq-block {
    padding: 24px 10px 24px 10px;
  }

  .faq-item {
    padding: 14px 8px;
  }

  .faq-cta {
    font-size: 1rem;
    padding: 10px 4px;
  }
  .btn {
    font-size:1rem;
    margin-right:0px;
  }
}

@media (max-width: 400px) {

  .logo,
  .footer__logo {
    font-size: 1rem;
  }
}

h1 {
  font-size: 2rem;
  text-align: center;
  color: var(--color-white);
}

h2 {
  font-size: 1.5rem;
  color: var(--color-white);
}

h3 {
  font-size: 1.2rem;
  color: var(--color-white);
}

h4 {
  font-size: 1rem;
  color: var(--color-white);
}

.section img {
  height: auto;
  border-radius: 16px;
  margin-bottom: 10px;
  max-width:75%;
  margin:0 auto;
  display: block;
}
@media (max-width: 768px) {
  .section img {
    max-width: 100%;
  }
}


/* Main Content */
.main-content {
    padding: 50px 0;
}
.main-content section {
  margin-left: 10px;
  margin-right: 10px;
}

.section {
    margin-bottom: 20px;
    background-color: #1a1a1a;
    padding: 10px;
    border-radius: 12px;
    box-shadow: 0 4px 12px #1a1a1a;
}

.section img {
    max-width: 100%;
    border-radius: 8px;
    margin: 20px 0;
}

/* Section actions */
.section__actions {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

/* Headings */
h1, h2, h3 {
    margin-bottom: 15px;
    font-weight: 700;
}

h1 { font-size: 2rem; color: #ffffff; }
h2 { font-size: 1.75rem; color: #ffffff; }
h3 { font-size: 1.25rem; color: #ffffff; }
h4 { font-size: 1.25rem; color: #ffb805; }

/* Lists */
ul, ol {
    margin-left: 20px;
    margin-bottom: 15px;
}

li {
    margin-bottom: 8px;
}

/* Tables */
.table-wrapper {
    overflow-x: auto;
    margin: 20px 0;
}

table {
    width: 100%;
    border-collapse: collapse;
}

table td, table th {
    padding: 12px 15px;
    border: 1px solid #ffb805;
    text-align: left;
}

table th {
    background-color: #1a1a1a;
    font-weight: 600;
}


/* Footer */
.footer { 
    background-color: #1a1a1a; 
    color: #ffb805; 
    padding: 30px 10px; 
    border-top: 2px solid #ffb805;
} 

.footer__container { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    flex-wrap: wrap; 
} 

.footer__logo img { 
    max-width: 100px; 
    margin-right: 10px; 
} 

.footer__nav { 
    display: flex; 
    gap: 20px; 
    flex-wrap: wrap; 
} 

.footer__link { 
    color: #ffb805; 
    transition: color 0.3s ease; 
} 

.footer__link:hover { 
    color: #ffffff; 
}

/* FAQ */
.faq-block {
    background-color: #1a1a1a;
    padding: 30px;
    border-radius: 12px;
}

.faq-item {
    margin-bottom: 15px;
    border-bottom: 1px solid #ffb805;
    padding-bottom: 10px;
}

.faq-question {
    font-weight: 600;
    cursor: pointer;
    position: relative;
    padding-right: 20px;
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 0;
    font-weight: bold;
}

.faq-item.open .faq-question::after {
    content: '-';
}

.faq-answer {
    display: none;
    margin-top: 10px;
}

.faq-item.open .faq-answer {
    display: block;
}

/* Responsive Typography & Layout */



.faq-answer {
  display: none;
  padding: 10px 0;
}

.faq-item.active .faq-answer {
  display: block;
}

.faq-question {
  cursor: pointer;
  position: relative;
  padding-right: 25px;
}

.faq-question::after {
  content: "+";
  position: absolute;
  right: 0;
  font-size: 20px;
  transition: transform 0.3s;
}

.faq-item.active .faq-question::after {
  content: "-";
  transform: rotate(180deg);
}
/* =========================
   MELBET HEADER PAGES + MOBILE MENU
========================= */

:root{
  --mb-bg:#141414;
  --mb-bg-2:#1b1b1b;
  --mb-text:#f2f2f2;

  --mb-yellow:#ffbf00;          /* таблетки */
  --mb-yellow-2:#f7b400;
  --mb-yellow-glow:rgba(255,191,0,.45);

  --mb-green:#0f7a2f;           /* Kirish */
  --mb-green-2:#0c5f25;
}

/* header base */
.header{
  background:linear-gradient(180deg,var(--mb-bg),#0f0f0f);
  border-bottom:2px solid rgba(255,191,0,.9);
}

.header__container{
  display:flex;
  align-items:center;
  gap:16px;
  padding:14px 0;
}

/* pages center */
.header__pages{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  flex:1;
  min-width:0;
  flex-wrap:wrap;               /* чтобы как на скрине — в ряд, но может переноситься */
}

/* yellow pill buttons (pages) */
.nav-button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  font-weight:700;
  font-size:14px;
  line-height:1;
  color:#0b0b0b;
  background:linear-gradient(180deg,var(--mb-yellow),var(--mb-yellow-2));
  padding:8px 12px;
  border-radius:999px;
  border:1px solid rgba(0,0,0,.18);
  box-shadow:0 10px 18px rgba(0,0,0,.18);
  transition:.2s ease;
  white-space:nowrap;
}

.nav-button:hover{
  transform:translateY(-1px);
  box-shadow:0 0 18px var(--mb-yellow-glow), 0 10px 18px rgba(0,0,0,.18);
}

/* auth right */
.header__auth{
  display:flex;
  align-items:center;
  gap:10px;
}

/* make existing buttons match screenshot */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  font-weight:800;
  padding:10px 16px;
  border-radius:10px;
  border:0;
  cursor:pointer;
  transition:.2s ease;
}

.btn--primary{
  background:linear-gradient(180deg,var(--mb-yellow),var(--mb-yellow-2));
  color:#0b0b0b;
  box-shadow:0 10px 18px rgba(0,0,0,.18);
}

.btn--primary:hover{
  transform:translateY(-1px);
  box-shadow:0 0 20px var(--mb-yellow-glow), 0 10px 18px rgba(0,0,0,.18);
}

.btn--secondary{
  background:linear-gradient(180deg,var(--mb-green),var(--mb-green-2));
  color:#fff;
  box-shadow:0 10px 18px rgba(0,0,0,.18);
}

.btn--secondary:hover{
  transform:translateY(-1px);
  box-shadow:0 0 18px rgba(15,122,47,.45), 0 10px 18px rgba(0,0,0,.18);
}

/* burger */
.nav__toggle{
  display:none;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.12);
  border-radius:12px;
  padding:10px;
  cursor:pointer;
  transition:.2s ease;
}

.nav__toggle:hover{
  background:rgba(255,255,255,.10);
  transform:translateY(-1px);
}

.nav__toggle span{
  display:block;
  width:26px;
  height:2px;
  margin:6px 0;
  background:#fff;
  transition:.35s cubic-bezier(.4,0,.2,1);
}

/* open -> X */
.nav__toggle[aria-expanded="true"] span:nth-child(1){
  transform:translateY(8px) rotate(45deg);
}
.nav__toggle[aria-expanded="true"] span:nth-child(2){
  opacity:0;
}
.nav__toggle[aria-expanded="true"] span:nth-child(3){
  transform:translateY(-8px) rotate(-45deg);
}

/* mobile menu (non-transparent) */
.mobile-menu{
  position:absolute;
  left:0;
  right:0;
  top:100%;
  padding:14px 0;
  background:rgba(0,0,0,.85);   /* плотный фон */
  border-top:1px solid rgba(255,191,0,.25);
}

.mobile-menu__inner{
  background:linear-gradient(180deg,var(--mb-bg-2),#101010);
  border:1px solid rgba(255,191,0,.18);
  border-radius:16px;
  padding:14px;
  box-shadow:0 18px 50px rgba(0,0,0,.45);
  display:flex;
  flex-direction:column;
  gap:12px;
}

.mobile-menu__pages{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.nav-button--mobile{
  width:100%;
  justify-content:flex-start;
  padding:12px 14px;
}

.mobile-menu__auth{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.mobile-menu__auth .btn{
  width:100%;
}

/* mobile tap feedback */
@media (hover:none){
  .nav-button:active{
    transform:scale(.98);
    box-shadow:0 0 18px var(--mb-yellow-glow), 0 10px 18px rgba(0,0,0,.18);
  }
}

/* adaptive */
@media (max-width: 992px){
  .header__pages{ display:none; }
  .header__auth{ display:none; }
  .nav__toggle{ display:inline-flex; margin-left:auto; }
}

/* body lock */
body.menu-open{ overflow:hidden; }

/* Выделение анкорных ссылок в тексте */
.main-content a {
  color: #ffae00;        /* неоново-зелёный */
  font-weight: 600;
  text-decoration: underline;
}

.main-content a:hover {
  color: #ff6e1a;
  text-decoration: none;
}
/* ===== TOC (Tabla de contenidos) — стиль как на примере (тёмный + неон/золото) ===== */
:root{
  --bg-0:#0b0f12;
  --bg-1:#0f141a;
  --bg-2:#141b23;
  --line:rgba(255,255,255,.10);

  --text:#e8eef6;
  --muted:rgba(232,238,246,.72);

  --brand:#19e68c;          /* неоновый зелёный */
  --brand-2:#0bbf78;
  --gold:#f7b500;           /* жёлтый/золото */
  --gold-2:#ffcf3d;

  --shadow:0 18px 40px rgba(0,0,0,.55);
  --radius:14px;
}

/* Контейнер (если нужно — оберни кнопку+nav в .toc-wrap) */
.toc-wrap{
  max-width: 980px;
  margin: 22px auto;
  padding: 0 14px;
}

/* Кнопка раскрытия */
.toc-toggle{
  appearance:none;
  border:1px solid rgba(247,181,0,.32);
  background:
    radial-gradient(120% 140% at 10% 0%, rgba(25,230,140,.18), transparent 55%),
    linear-gradient(180deg, #151c24 0%, #0f141a 100%);
  color: var(--text);
  font-weight: 800;
  letter-spacing:.2px;

  padding: 12px 14px;
  border-radius: 999px;
  cursor: pointer;

  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;

  box-shadow:
    0 0 0 1px rgba(25,230,140,.08) inset,
    0 10px 24px rgba(0,0,0,.55),
    0 0 18px rgba(25,230,140,.12);
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease, filter .15s ease;
  user-select:none;
  width: 100%;
  max-width: 520px;
  margin: 0 auto 12px;
}

.toc-toggle:hover{
  transform: translateY(-1px);
  border-color: rgba(25,230,140,.35);
  box-shadow:
    0 0 0 1px rgba(25,230,140,.18) inset,
    0 14px 28px rgba(0,0,0,.62),
    0 0 22px rgba(25,230,140,.18);
  filter: brightness(1.04);
}

.toc-toggle:active{ transform: translateY(0); }
.toc-toggle:focus-visible{
  outline: none;
  box-shadow:
    0 0 0 2px rgba(25,230,140,.55),
    0 0 0 1px rgba(0,0,0,.2) inset,
    0 14px 28px rgba(0,0,0,.62);
}

/* NAV TOC */
.toc{
  background:
    radial-gradient(140% 150% at 10% 0%, rgba(247,181,0,.12), transparent 60%),
    radial-gradient(120% 140% at 90% 10%, rgba(25,230,140,.14), transparent 60%),
    linear-gradient(180deg, #111822 0%, #0b1016 100%);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;

  /* По умолчанию скрыто (для работы с toggle) */
  max-height: 0;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;

  transition: max-height .28s ease, opacity .18s ease, transform .18s ease;
}

/* Добавляй/убирай класс .is-open на .toc через JS */
.toc.is-open{
  max-height: 70vh;         /* достаточно, чтобы раскрыть длинный список */
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Список */
.toc ul{
  list-style:none;
  margin: 0;
  padding: 12px;
  display:grid;
  gap: 8px;
}

/* Пункты */
.toc li{
  margin: 0;
}

/* Ссылки */
.toc a{
  display:flex;
  align-items:center;
  gap:10px;

  padding: 10px 12px;
  border-radius: 12px;

  text-decoration:none;
  color: var(--muted);
  font-weight: 650;
  line-height: 1.25;

  border: 1px solid rgba(255,255,255,.06);
  background:
    linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.015));
  box-shadow: 0 0 0 1px rgba(0,0,0,.12) inset;
  transition: transform .12s ease, border-color .12s ease, color .12s ease, background .12s ease, box-shadow .12s ease;
}

.toc a:hover{
  color: var(--text);
  border-color: rgba(25,230,140,.30);
  background:
    radial-gradient(120% 120% at 10% 0%, rgba(25,230,140,.14), transparent 55%),
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  box-shadow:
    0 0 0 1px rgba(25,230,140,.12) inset,
    0 10px 20px rgba(0,0,0,.45),
    0 0 18px rgba(25,230,140,.12);
  transform: translateY(-1px);
}

.toc a:active{ transform: translateY(0); }

.toc a:focus-visible{
  outline: none;
  box-shadow:
    0 0 0 2px rgba(247,181,0,.55),
    0 0 0 1px rgba(0,0,0,.12) inset,
    0 10px 20px rgba(0,0,0,.45);
}

/* Активная ссылка (если добавляешь класс .is-active на <a>) */
.toc a.is-active{
  color: var(--text);
  border-color: rgba(247,181,0,.45);
  background:
    radial-gradient(140% 140% at 10% 0%, rgba(247,181,0,.18), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  box-shadow:
    0 0 0 1px rgba(247,181,0,.14) inset,
    0 0 22px rgba(247,181,0,.12);
}

/* “Неоновая” полоска слева у каждого пункта */
.toc a::before{
  content:"";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(247,181,0,.75);
  box-shadow: 0 0 14px rgba(247,181,0,.35);
  flex: 0 0 auto;
}

.toc a:hover::before{
  background: rgba(25,230,140,.95);
  box-shadow: 0 0 16px rgba(25,230,140,.40);
}

/* Скролл внутри (когда список длинный) */
.toc.is-open{
  overflow:auto;
  scrollbar-gutter: stable;
}

/* WebKit scrollbars */
.toc.is-open::-webkit-scrollbar{ width: 10px; }
.toc.is-open::-webkit-scrollbar-track{
  background: rgba(255,255,255,.04);
}
.toc.is-open::-webkit-scrollbar-thumb{
  background: linear-gradient(180deg, rgba(25,230,140,.55), rgba(247,181,0,.45));
  border-radius: 999px;
  border: 2px solid rgba(10,14,18,.85);
}

/* Мобильная адаптация */
@media (max-width: 640px){
  .toc-toggle{
    max-width: 100%;
    font-size: 15px;
    padding: 11px 12px;
  }
  .toc ul{ padding: 10px; gap: 7px; }
  .toc a{ padding: 10px 10px; }
}

/* Если хочешь “липкий” TOC под шапкой — добавь классу .toc-wrap sticky */
.toc-wrap.is-sticky{
  position: sticky;
  top: 86px;  /* подстрой под высоту хедера */
  z-index: 10;
}