/* ===== БАЗОВЫЕ СТИЛИ ===== */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: sans-serif;
  background: #1a1a1a;
  color: #fff;
  line-height: 1.6;
}

/* ===== КОНТЕЙНЕР ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ===== ХЕДЕР ===== */
.site-header {
  background: #2a2a2a;
  border-bottom: 2px solid #333;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.logo img {
  height: 50px;
  width: auto;
  transition: transform 0.2s ease;
}

.logo img:hover {
  transform: scale(1.05);
}

.main-nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2rem;
}

.main-nav li {
  position: relative;
}

.main-nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.3s ease;
  padding: 0.5rem 0;
  position: relative;
}

.main-nav a:hover {
  color: #f2b400;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #f2b400;
  transition: width 0.3s ease;
}

.main-nav a:hover::after {
  width: 100%;
}

.header-buttons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn {
  padding: 0.7rem 1.4rem;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s ease;
  text-align: center;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  transition: left 0.5s;
}

.btn:hover::before {
  left: 100%;
}

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

.btn-outline:hover {
  background: #333;
  border-color: #f2b400;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(242, 180, 0, 0.3);
}

.btn-primary {
  background: linear-gradient(135deg, #f2b400, #ffc42d);
  border: 2px solid #f2b400;
  color: #000;
  box-shadow: 0 2px 8px rgba(242, 180, 0, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #ffc42d, #ffdd55);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(242, 180, 0, 0.4);
}

/* ===== ГЕРОЙ БАННЕР ===== */
.hero-banner {
  background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
  padding: 4rem 0;
  text-align: center;
  border-bottom: 3px solid #333;
  position: relative;
  overflow: hidden;
}

.hero-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, rgba(242, 180, 0, 0.1), transparent 70%);
  pointer-events: none;
}

.hero-banner .container {
  position: relative;
  z-index: 2;
}

.hero-banner h1 {
  color: #fff;
  font-size: 3rem;
  margin: 1.5rem 0 0;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
  animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-image {
  max-width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
  transition: transform 0.3s ease;
  animation: fadeIn 1s ease-out;
}

.hero-image:hover {
  transform: scale(1.02);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ===== КОНТЕНТНАЯ ОБЛАСТЬ ===== */
.content-area {
  background: #fff;
  color: #333;
  padding: 4rem 3rem;
  margin: 3rem auto;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
  max-width: 1000px;
  position: relative;
  overflow: hidden;
}

.content-area::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #f2b400, #ffc42d, #f2b400);
}

.content-area h1,
.content-area h2,
.content-area h3,
.content-area h4,
.content-area h5,
.content-area h6 {
  color: #2a2a2a;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.content-area h1 {
  font-size: 2.5rem;
  border-bottom: 3px solid #f2b400;
  padding-bottom: 0.75rem;
  margin-bottom: 2rem;
  position: relative;
}

.content-area h1::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 60px;
  height: 3px;
  background: #ffc42d;
}

.content-area h2 {
  font-size: 1.8rem;
  color: #333;
  border-left: 4px solid #f2b400;
  padding-left: 1rem;
}

.content-area h3 {
  font-size: 1.4rem;
  color: #555;
}

.content-area p {
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
  line-height: 1.7;
}

.content-area a {
  color: #f2b400;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
  border-bottom: 1px solid transparent;
}

.content-area a:hover {
  color: #ffc42d;
  border-bottom-color: #ffc42d;
}

/* ===== FAQ БЛОКИ ===== */
.faq-block {
  margin: 3rem 0;
  background: linear-gradient(135deg, #f9f9f9, #f5f5f5);
  border-radius: 20px;
  padding: 2.5rem;
  border: 1px solid #e0e0e0;
  box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.faq-heading {
  text-align: center;
  color: #2a2a2a;
  font-size: 2.5rem;
  margin-bottom: 2.5rem;
  text-transform: uppercase;
  font-weight: 700;
  position: relative;
  padding-bottom: 1rem;
}

.faq-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #f2b400, #ffc42d);
  border-radius: 2px;
}

.faq-item {
  background: #fff;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  box-shadow: 0 3px 15px rgba(0,0,0,0.08);
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid #f0f0f0;
}

.faq-item:hover {
  box-shadow: 0 8px 25px rgba(0,0,0,0.12);
  transform: translateY(-3px);
}

.faq-item h3 {
  background: linear-gradient(135deg, #f2b400, #ffc42d);
  color: #000;
  padding: 1.25rem 2rem;
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.faq-item h3::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.6s;
}

.faq-item h3:hover::before {
  left: 100%;
}

.faq-item h3::after {
  content: '+';
  position: absolute;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: bold;
  transition: transform 0.3s ease;
}

.faq-item.active h3::after {
  transform: translateY(-50%) rotate(45deg);
}

.faq-item div {
  padding: 2rem;
  color: #444;
  line-height: 1.7;
  font-size: 1.05rem;
}

.faq-item div p {
  margin: 0 0 1rem;
}

.faq-item div p:last-child {
  margin-bottom: 0;
}

/* ===== ТАБЛИЦА СОДЕРЖАНИЯ ===== */
#TableOfContents {
  background: linear-gradient(135deg, #f8f8f8, #f0f0f0);
  border: 2px solid #e0e0e0;
  border-radius: 15px;
  padding: 2rem;
  margin: 2.5rem 0;
  font-size: 0.95rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  position: relative;
}

#TableOfContents::before {
  content: 'TOC';
  position: absolute;
  top: -12px;
  left: 20px;
  background: #f2b400;
  color: #000;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
}

#TableOfContents > ul {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

#TableOfContents ul {
  list-style: none;
}

#TableOfContents li {
  margin: 0.75rem 0;
  padding-left: 1.5rem;
  border-left: 3px solid #f2b400;
  position: relative;
  transition: all 0.2s ease;
}

#TableOfContents li::before {
  content: '';
  position: absolute;
  left: -6px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background: #f2b400;
  border-radius: 50%;
  transition: all 0.2s ease;
}

#TableOfContents li:hover {
  padding-left: 2rem;
}

#TableOfContents li:hover::before {
  background: #ffc42d;
  transform: translateY(-50%) scale(1.2);
}

#TableOfContents a {
  color: #333;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
  line-height: 1.5;
}

#TableOfContents a:hover {
  color: #f2b400;
}

#TableOfContents ul ul {
  margin-top: 0.5rem;
  padding-left: 1.5rem;
}

#TableOfContents ul ul li {
  border-left: 2px solid #ccc;
  font-size: 0.9em;
}

#TableOfContents ul ul li::before {
  width: 6px;
  height: 6px;
  background: #ccc;
}

/* ===== ФУТЕР ===== */
.site-footer {
  background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
  color: #ccc;
  text-align: center;
  padding: 3rem 0;
  border-top: 3px solid #333;
  margin-top: 3rem;
  position: relative;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #f2b400, #ffc42d, #f2b400);
}

.site-footer p {
  margin: 0;
  font-size: 1rem;
  font-weight: 400;
}

/* ===== МОБИЛЬНАЯ АДАПТАЦИЯ ===== */
@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
    padding: 1rem 0.5rem;
  }

  .main-nav ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }

  .header-buttons {
    justify-content: center;
    width: 100%;
  }

  .hero-banner {
    padding: 2.5rem 0;
  }

  .hero-banner h1 {
    font-size: 2.2rem;
  }

  .content-area {
    margin: 1.5rem auto;
    padding: 2.5rem 1.5rem;
    border-radius: 15px;
  }

  .content-area h1 {
    font-size: 2rem;
  }

  .faq-block {
    margin: 2rem 0;
    padding: 1.5rem;
  }

  .faq-heading {
    font-size: 2rem;
  }

  .faq-item h3 {
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
  }

  .faq-item div {
    padding: 1.5rem;
  }

  #TableOfContents {
    padding: 1.5rem;
    margin: 2rem 0;
  }
}

@media (max-width: 480px) {
  .btn {
    font-size: 0.8rem;
    padding: 0.6rem 1rem;
  }

  .hero-banner h1 {
    font-size: 1.8rem;
    letter-spacing: 0.5px;
  }

  .content-area {
    padding: 2rem 1rem;
  }

  .content-area h1 {
    font-size: 1.7rem;
  }

  .content-area h2 {
    font-size: 1.5rem;
  }

  .faq-heading {
    font-size: 1.7rem;
  }

  .faq-item h3 {
    padding: 1rem;
    font-size: 1rem;
  }

  .faq-item h3::after {
    right: 1rem;
  }

  .faq-item div {
    padding: 1rem;
  }

  #TableOfContents {
    padding: 1rem;
  }

  .main-nav ul {
    gap: 0.5rem;
  }

  .main-nav a {
    font-size: 0.9rem;
  }
}