/* =====================
   RESET & BASE
===================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Arial, sans-serif;
  background: #0f0c1b;
  color: #f2f2f2;
  line-height: 1.6;
}

a {
  color: #ffcc00;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* =====================
   HEADER
===================== */
/* ===== HEADER ===== */

.site-header {
  background: linear-gradient(90deg, #6a00ff, #ff3c00);
  height: 95px;                 /* фиксированная высота */
  display: flex;
  align-items: center;          /* центрируем по вертикали */
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 180px;                 /* оптимальный размер */
  width: auto;
  display: block;
}

/* NAV */

.header-nav {
  display: flex;
  align-items: center;
}

.header-nav a {
  margin: 0 16px;
  font-weight: 500;
  font-size: 16px;
  color: #ffffff;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.header-nav a:hover {
  opacity: 0.8;
}

/* BUTTONS */

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}


/* =====================
   BUTTONS
===================== */
.btn {
  padding: 10px 18px;
  border-radius: 30px;
  font-weight: 600;
  transition: 0.3s ease;
  display: inline-block;
}

.btn-primary {
  background: #ffcc00;
  color: #000;
}

.btn-primary:hover {
  background: #ffd633;
  transform: translateY(-2px);
}

.btn-outline {
  border: 2px solid #fff;
  color: #fff;
}

.btn-outline:hover {
  background: #ffffff;
  color: #000;
}

.btn-ghost {
  background: transparent;
  border: 1px solid #aaa;
  color: #aaa;
}

.btn-ghost:hover {
  border-color: #fff;
  color: #fff;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 16px;
}

/* =====================
   HERO
===================== */
.hero {
  text-align: center;
  padding: 80px 0 60px;
  background: radial-gradient(circle at center, #1c1330 0%, #0f0c1b 70%);
}

.hero h1 {
  font-size: 42px;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 18px;
  margin-bottom: 30px;
  color: #ccc;
}

.hero-cta {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 25px;
}

.hero-badges {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 20px;
  font-size: 14px;
  color: #aaa;
  flex-wrap: wrap;
}

/* =====================
   SLOTS GRID
===================== */
.slots-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.slot-card {
  background: #111;
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.slot-card:hover {
  transform: translateY(-6px);
}

.slot-card img {
  width: 100%;
  aspect-ratio: 3 / 4; /* ключевая строка */
  object-fit: contain;
  background: #111; /* чтобы были аккуратные поля */
  display: block;
}

.slot-name {
  display: block;
  padding: 14px 10px;
  text-align: center;       /* центрируем */
  font-weight: 600;
  font-size: 16px;
  color: #ffc400;
  background: #111;         /* если нужен тёмный фон */
}

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


/* =====================
   TOC
===================== */
.toc {
  padding: 30px 0;
  background: #141021;
}

.toc summary {
  font-weight: bold;
  cursor: pointer;
}

.toc-nav ul {
  list-style: none;
  margin-top: 15px;
}

.toc-nav li {
  margin-bottom: 8px;
}

/* =====================
   CONTENT
===================== */
.content section {
  padding: 60px 0;
  border-bottom: 1px solid #1f1a2d;
}

.content h2 {
  font-size: 26px;
  margin-bottom: 20px;
}

.content h3 {
  font-size: 20px;
  margin-top: 20px;
  margin-bottom: 10px;
}

.content p {
  margin-bottom: 15px;
  color: #ccc;
}

/* =====================
   TABLES
===================== */
.table-wrap {
  overflow-x: auto;
  margin-top: 20px;
}

.styled-table {
  width: 100%;
  border-collapse: collapse;
  background: #1a1428;
  border-radius: 10px;
  overflow: hidden;
}

.styled-table th,
.styled-table td {
  padding: 12px 15px;
  border-bottom: 1px solid #2b2340;
  text-align: left;
}

.styled-table th {
  background: #241a38;
}

.styled-table tr:hover {
  background: #2b2340;
}

/* =====================
   REVIEWS
===================== */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.review-card {
  background: #1a1428;
  padding: 20px;
  border-radius: 12px;
  transition: 0.3s ease;
}

.review-card:hover {
  box-shadow: 0 6px 20px rgba(255, 204, 0, 0.2);
}

.review-stars {
  color: #ffcc00;
  margin-bottom: 10px;
}

/* =====================
   FAQ
===================== */
.faq-section details {
  background: #1a1428;
  margin-bottom: 10px;
  padding: 15px;
  border-radius: 8px;
  cursor: pointer;
}

.faq-section summary {
  font-weight: 600;
}

.faq-section p {
  margin-top: 10px;
}

/* =====================
   FOOTER
===================== */
.site-footer {
  background: #0c0915;
  padding: 50px 0 20px;
  font-size: 14px;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 30px;
}

.footer-col ul {
  list-style: none;
  margin-top: 10px;
}

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

.footer-bottom {
  border-top: 1px solid #1f1a2d;
  padding-top: 15px;
  text-align: center;
  color: #777;
}

/* =====================
   RESPONSIVE
===================== */
@media (max-width: 992px) {
  .slots-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

  .hero h1 {
    font-size: 32px;
  }
}
/* =====================
   MOBILE HEADER CLEANUP
===================== */
@media (max-width: 768px) {

  .header-nav {
    display: none;
  }

  .site-header {
    padding: 12px 0;
  }

  @media (max-width: 768px) {
    .logo img {
      height: 160px;
    }
  }
  
  

  .header-actions .btn {
    padding: 8px 14px;
    font-size: 14px;
  }

}
@media (max-width: 768px) {

  .header-inner {
    gap: 10px;
  }

  .header-actions {
    gap: 8px;
  }

}
/* =====================
   TOC IMPROVEMENT
===================== */

.toc details {
  background: #1a1428;
  border-radius: 10px;
  padding: 15px 20px;
}

.toc summary {
  cursor: pointer;
  font-size: 18px;
  font-weight: 600;
  position: relative;
  list-style: none;
}

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

.toc summary::after {
  content: "▾";
  position: absolute;
  right: 0;
  transition: 0.3s ease;
}

.toc details[open] summary::after {
  transform: rotate(180deg);
}

.toc-nav {
  margin-top: 15px;
}
