* {
   margin: 0;
   padding: 0;
   box-sizing: border-box;
}

:root {
   --bg-dark: #0b0b0f;
   --bg-card: #14141c;
   --surface: #1e1e2a;
   --primary: #fbbf24;
   --primary-dark: #f59e0b;
   --primary-glow: rgba(251, 191, 36, 0.3);
   --accent: #fcd34d;
   --text-main: #f3f4f6;
   --text-muted: #9ca3af;
   --border-color: #2a2a3a;
   --radius: 24px;
   --radius-sm: 16px;
   --container: 1280px;
   --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
   font-family: 'Inter', sans-serif;
   background-color: var(--bg-dark);
   color: var(--text-main);
   line-height: 1.6;
   scroll-behavior: smooth;
}

.container {
   max-width: var(--container);
   margin: 0 auto;
   padding: 0 2rem;
}

/* Типографика */
h1,
h2,
h3,
h4 {
   font-family: 'Space Grotesk', sans-serif;
   font-weight: 700;
   line-height: 1.2;
}

h1 {
   font-size: 3.5rem;
   background: linear-gradient(to right, #fff, var(--primary));
   -webkit-background-clip: text;
   -webkit-text-fill-color: transparent;
   margin-bottom: 1rem;
}

h2 {
   font-size: 2.5rem;
   margin-bottom: 1rem;
   background: linear-gradient(to right, var(--primary), #fde68a);
   -webkit-background-clip: text;
   -webkit-text-fill-color: transparent;
   display: inline-block;
}

h3 {
   font-size: 1.5rem;
   color: #fff;
   margin-bottom: 0.75rem;
}

.section-subtitle {
   font-size: 1.125rem;
   color: var(--text-muted);
   max-width: 600px;
   margin: 0 auto 3rem;
   text-align: center;
}

/* Кнопки */
.btn {
   display: inline-flex;
   align-items: center;
   justify-content: center;
   padding: 0.875rem 2rem;
   border-radius: 60px;
   font-weight: 600;
   font-size: 1rem;
   border: none;
   cursor: pointer;
   transition: all var(--transition);
   text-decoration: none;
   background: transparent;
   border: 2px solid transparent;
}

.btn--primary {
   background: linear-gradient(135deg, var(--primary), var(--primary-dark));
   color: #0b0b0f;
   box-shadow: 0 8px 20px var(--primary-glow);
}

.btn--primary:hover {
   transform: translateY(-3px);
   box-shadow: 0 15px 30px var(--primary-glow);
}

.btn--outline {
   border-color: var(--primary);
   color: var(--primary);
}

.btn--outline:hover {
   background: rgba(251, 191, 36, 0.1);
   border-color: var(--accent);
}

.btn--large {
   padding: 1rem 2.5rem;
   font-size: 1.125rem;
}

/* Шапка */
.header {
   position: sticky;
   top: 0;
   z-index: 100;
   background: rgba(11, 11, 15, 0.8);
   backdrop-filter: blur(12px);
   border-bottom: 1px solid var(--border-color);
}

.header__container {
   display: flex;
   align-items: center;
   justify-content: space-between;
   height: 80px;
}

.logo {
   font-size: 2rem;
   font-weight: 700;
   font-family: 'Space Grotesk', sans-serif;
   background: linear-gradient(135deg, var(--primary), #fde68a);
   -webkit-background-clip: text;
   -webkit-text-fill-color: transparent;
   text-decoration: none;
}

.nav__list {
   display: flex;
   gap: 2.5rem;
   list-style: none;
}

.nav__link {
   text-decoration: none;
   color: var(--text-muted);
   font-weight: 500;
   transition: color var(--transition);
   position: relative;
}

.nav__link::after {
   content: '';
   position: absolute;
   bottom: -5px;
   left: 0;
   width: 0;
   height: 2px;
   background: linear-gradient(90deg, var(--primary), #fde68a);
   transition: width var(--transition);
}

.nav__link:hover {
   color: #fff;
}

.nav__link:hover::after {
   width: 100%;
}

.nav__link.active {
   color: var(--primary);
}

.header__actions {
   display: flex;
   gap: 1rem;
}

.burger {
   display: none;
   flex-direction: column;
   justify-content: space-between;
   width: 24px;
   height: 20px;
   background: transparent;
   border: none;
   cursor: pointer;
}

.burger span {
   width: 100%;
   height: 2px;
   background: var(--text-main);
   transition: var(--transition);
}

/* Страница FAQ */
.page-header {
   padding: 4rem 0 2rem;
   text-align: center;
}

/* Поиск */
.search-section {
   max-width: 600px;
   margin: 0 auto 4rem;
}

.search-box {
   position: relative;
}

.search-box i {
   position: absolute;
   left: 1.25rem;
   top: 50%;
   transform: translateY(-50%);
   color: var(--text-muted);
   font-size: 1.1rem;
}

.search-box input {
   width: 100%;
   padding: 1rem 1rem 1rem 3rem;
   background: var(--bg-card);
   border: 1px solid var(--border-color);
   border-radius: 60px;
   color: var(--text-main);
   font-size: 1rem;
   transition: var(--transition);
}

.search-box input:focus {
   outline: none;
   border-color: var(--primary);
   box-shadow: 0 0 0 3px var(--primary-glow);
}

.search-box input::placeholder {
   color: var(--text-muted);
}

/* Категории FAQ */
.categories-grid {
   display: grid;
   grid-template-columns: repeat(4, 1fr);
   gap: 1.5rem;
   margin-bottom: 3rem;
}

.category-card {
   background: var(--bg-card);
   border: 1px solid var(--border-color);
   border-radius: var(--radius-sm);
   padding: 1.5rem;
   text-align: center;
   cursor: pointer;
   transition: var(--transition);
}

.category-card:hover {
   border-color: var(--primary);
   transform: translateY(-3px);
   box-shadow: 0 10px 20px -8px var(--primary-glow);
}

.category-card.active {
   border-color: var(--primary);
   background: rgba(251, 191, 36, 0.1);
}

.category-icon {
   font-size: 2rem;
   color: var(--primary);
   margin-bottom: 0.75rem;
}

.category-card h4 {
   font-size: 1.1rem;
   margin-bottom: 0.25rem;
}

.category-card span {
   color: var(--text-muted);
   font-size: 0.875rem;
}

/* FAQ Аккордеон */
.faq-section {
   margin-bottom: 3rem;
}

.faq-category-title {
   display: flex;
   align-items: center;
   gap: 0.75rem;
   margin-bottom: 1.5rem;
   padding-bottom: 0.5rem;
   border-bottom: 1px solid var(--border-color);
}

.faq-category-title i {
   font-size: 1.5rem;
   color: var(--primary);
}

.faq-category-title h3 {
   margin: 0;
}

.faq-grid {
   display: grid;
   gap: 1rem;
}

.faq-item {
   background: var(--bg-card);
   border: 1px solid var(--border-color);
   border-radius: var(--radius-sm);
   overflow: hidden;
   transition: var(--transition);
}

.faq-item:hover {
   border-color: var(--primary);
}

.faq-question {
   padding: 1.25rem;
   display: flex;
   justify-content: space-between;
   align-items: center;
   cursor: pointer;
   user-select: none;
}

.faq-question h4 {
   font-size: 1.1rem;
   margin: 0;
   color: var(--text-main);
   font-weight: 600;
}

.faq-question i {
   color: var(--primary);
   font-size: 1rem;
   transition: transform var(--transition);
}

.faq-item.active .faq-question i {
   transform: rotate(180deg);
}

.faq-answer {
   max-height: 0;
   padding: 0 1.25rem;
   overflow: hidden;
   transition: all var(--transition);
   border-top: 0 solid var(--border-color);
}

.faq-item.active .faq-answer {
   max-height: 500px;
   padding: 0 1.25rem 1.25rem;
   border-top-width: 1px;
}

.faq-answer p {
   color: var(--text-muted);
   margin-top: 1rem;
}

.faq-answer ul,
.faq-answer ol {
   color: var(--text-muted);
   margin: 0.5rem 0 0 1.5rem;
}

.faq-answer li {
   margin-bottom: 0.25rem;
}

.faq-answer a {
   color: var(--primary);
   text-decoration: none;
}

.faq-answer a:hover {
   text-decoration: underline;
}

/* Все еще вопросы? */
.contact-section {
   background: linear-gradient(135deg, var(--bg-card), #1a1a24);
   border-radius: var(--radius);
   padding: 3rem;
   text-align: center;
   margin: 4rem 0;
   border: 1px solid var(--border-color);
   position: relative;
   overflow: hidden;
}

.contact-section::before {
   content: '';
   position: absolute;
   top: -30%;
   left: -20%;
   width: 500px;
   height: 500px;
   background: radial-gradient(circle, rgba(251, 191, 36, 0.15), transparent 70%);
   border-radius: 50%;
}

.contact-section h2 {
   color: white;
   background: none;
   -webkit-text-fill-color: white;
}

.contact-section p {
   color: var(--text-muted);
   max-width: 500px;
   margin: 1rem auto 2rem;
}

.contact-buttons {
   display: flex;
   gap: 1rem;
   justify-content: center;
   flex-wrap: wrap;
}

/* Футер */
.footer {
   background: var(--bg-card);
   border-top: 1px solid var(--border-color);
   padding: 4rem 0 2rem;
   margin-top: 4rem;
}

.footer__container {
   display: grid;
   grid-template-columns: 2fr 1fr 1fr 1fr;
   gap: 2rem;
   margin-bottom: 3rem;
}

.footer__logo {
   font-size: 2rem;
   font-weight: 700;
   font-family: 'Space Grotesk', sans-serif;
   background: linear-gradient(135deg, var(--primary), #fde68a);
   -webkit-background-clip: text;
   -webkit-text-fill-color: transparent;
   display: inline-block;
   margin-bottom: 1rem;
   text-decoration: none;
}

.footer__col p {
   color: var(--text-muted);
   margin: 0.5rem 0;
}

.footer__col h4 {
   color: #fff;
   margin-bottom: 1rem;
}

.footer__col ul {
   list-style: none;
}

.footer__col li {
   margin-bottom: 0.5rem;
}

.footer__col a {
   color: var(--text-muted);
   text-decoration: none;
   transition: color var(--transition);
}

.footer__col a:hover {
   color: var(--primary);
}

.footer__bottom {
   text-align: center;
   padding-top: 2rem;
   border-top: 1px solid var(--border-color);
   color: var(--text-muted);
}

/* Адаптив */
@media (max-width: 1024px) {
   .categories-grid {
      grid-template-columns: repeat(2, 1fr);
   }
}

@media (max-width: 768px) {
   .nav {
      position: fixed;
      top: 80px;
      left: 0;
      right: 0;
      background: var(--bg-dark);
      backdrop-filter: blur(12px);
      padding: 2rem;
      border-bottom: 1px solid var(--border-color);
      transform: translateY(-150%);
      opacity: 0;
      transition: var(--transition);
      pointer-events: none;
   }

   .nav.active {
      transform: translateY(0);
      opacity: 1;
      pointer-events: all;
   }

   .nav__list {
      flex-direction: column;
      align-items: center;
      gap: 1.5rem;
   }

   .burger {
      display: flex;
   }

   .burger.active span:nth-child(1) {
      transform: rotate(45deg) translate(5px, 5px);
   }

   .burger.active span:nth-child(2) {
      opacity: 0;
   }

   .burger.active span:nth-child(3) {
      transform: rotate(-45deg) translate(7px, -6px);
   }

   .header__actions {
      display: none;
   }

   .categories-grid {
      grid-template-columns: 1fr;
   }

   .footer__container {
      grid-template-columns: 1fr;
   }

   .contact-buttons {
      flex-direction: column;
   }
}

/* Анимации */
.fade-up {
   opacity: 0;
   transform: translateY(20px);
   animation: fadeUp 0.6s ease forwards;
}

@keyframes fadeUp {
   to {
      opacity: 1;
      transform: translateY(0);
   }
}