/* ============================================
   ГЛОБАЛЬНЫЙ СБРОС (как в первом коде)
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
}

/* Шрифт */
@import url('https://fonts.googleapis.com/css2?family=Onest:wght@400;500;600;700&display=swap');

/* ============================================
   ГЛОБАЛЬНЫЕ ПЕРЕМЕННЫЕ
   ============================================ */
:root {
  --base: #ffffff;
  --text: #0a0a0f;
  --light: #4a4957;
  --line: #e2e2ea;
  --dark: #0a0a12;
  --primary: #6c3cff;
  --primary-hover: #542cd0;
  --bg-soft: #fbfaff;
  --radius-card: 28px;
  --radius-btn: 40px;
  --transition: all 0.2s ease;
}

body {
  font-family: 'Onest', sans-serif;
  background: var(--bg-soft);
  background-image: 
    radial-gradient(circle at 88% 8%, rgba(108,60,255,.08), transparent 30%),
    radial-gradient(circle at 8% 26%, rgba(108,60,255,.05), transparent 28%),
    radial-gradient(circle at 92% 58%, rgba(108,60,255,.06), transparent 32%);
  color: var(--text);
  line-height: 1.5;
}

/* ============================================
   ХЕДЕР
   ============================================ */
header.topbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 12px 0;  /* Добавляем padding как в первом коде */
  background: rgba(255,255,255,.76);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(108,60,255,.08);
}

.topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* Убираем height: 80px — пусть высота определяется контентом */
}

/* ============================================
   СТРАНИЦА СО СТАТЬЯМИ — правильный отступ под хедер
   ============================================ */
.articles-list-page {
  padding: 170px 0 60px;  /* Меняем 100px на 170px — как в первом коде */
}

/* ============================================
   Если у вас есть hero-блок на странице статей
   ============================================ */
.articles-hero {
  padding: 0 0 40px;  /* Убираем лишние отступы, если есть */
}

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

.logo-img {
  height: 44px;
  width: auto;
  display: block;
}

.menu-area {
  display: flex;
  justify-content: center;
}

.menu-shell {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 12px 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .06);
}

.menu-link {
  text-decoration: none;
  color: var(--light);
  font-size: 15px;
  line-height: 1;
  white-space: nowrap;
  transition: color .2s ease;
  font-family: 'Onest', sans-serif;
}

.menu-link:hover,
.menu-link:focus {
  color: var(--text);
}

.action-btn {
  text-decoration: none;
  background: var(--dark);
  color: #fff;
  padding: 12px 18px;
  border-radius: 999px;
  font-size: 15px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .2);
  transition: transform .15s ease, box-shadow .2s ease;
  font-family: 'Onest', sans-serif;
  flex-shrink: 0;
  margin-left: 20px;
}

.action-btn:hover {
  transform: translateY(-1px);
}

.action-btn:active {
  transform: translateY(0);
}

.burger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.burger span {
  display: block;
  height: 3px;
  width: 100%;
  background: var(--dark);
  border-radius: 2px;
  transition: .3s;
}

.menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  z-index: 900;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}

.menu-backdrop.is-active {
  opacity: 1;
  pointer-events: auto;
}

/* ============================================
   ХЛЕБНЫЕ КРОШКИ
   ============================================ */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 14px;
}

.breadcrumbs__item a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

.breadcrumbs__item a:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

.breadcrumbs__separator {
  color: var(--light);
}

/* ============================================
   КОНТЕЙНЕР (как в первом коде)
   ============================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  /* margin-top убран — отступы как в первом коде */
}

/* ============================================
   СТРАНИЦА СО СТАТЬЯМИ
   ============================================ */
.articles-list-page {
  padding: 100px 0 60px; /* Компенсация фиксированного хедера */
}

.page-header h1 {
  font-size: 69px;
  font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--text);
  margin-bottom: 24px;
  margin-top: 0;
}

.categories-nav {
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(4px);
  padding: 16px 24px;
  border-radius: 60px;
  border: 1px solid rgba(108,60,255,.12);
  margin-bottom: 48px;
  display: inline-block;
  width: auto;
  box-shadow: 0 8px 20px rgba(0,0,0,.02), 0 2px 6px rgba(0,0,0,.02);
}

.categories-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.category-link {
  padding: 8px 20px;
  border-radius: 40px;
  background: #fff;
  color: var(--light);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
  border: 1px solid var(--line);
}

.category-link:hover {
  background: #f3e8ff;
  border-color: var(--primary);
  color: var(--primary);
}

.category-link.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.articles-list {
  display: flex;
  flex-direction: column;
  gap: 48px;
  max-width: 860px;
}

.article-item {
  border-bottom: 1px solid rgba(108,60,255,.1);
  padding-bottom: 40px;
}

.article-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.article-title {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  line-height: 1.3;
}

.article-title a {
  color: var(--text);
  text-decoration: none;
  transition: var(--transition);
}

.article-title a:hover {
  color: var(--primary);
}

.article-description {
  color: var(--light);
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.article-footer {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.article-category {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 16px;
  border-radius: 40px;
  background: #f3e8ff;
  border: 1px solid var(--primary);
  color: var(--primary) !important; 
}

.article-date {
  color: #8e8c9c;
  font-size: 14px;
}

.no-articles {
  text-align: center;
  padding: 60px 32px;
  background: white;
  border-radius: var(--radius-card);
  border: 1px solid rgba(108,60,255,.1);
  box-shadow: 0 8px 20px rgba(0,0,0,.02);
}

.no-articles p {
  color: var(--light);
  margin-bottom: 24px;
}

.back-to-all {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 12px 28px;
  border-radius: var(--radius-btn);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

.back-to-all:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
}

/* ============================================
   COOKIE БАННЕР
   ============================================ */
.cookie-banner {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 380px;
  background: rgba(10, 10, 15, 0.95);
  backdrop-filter: blur(12px);
  color: #fff;
  padding: 20px 24px;
  font-size: 14px;
  line-height: 1.5;
  z-index: 999999;
  border-radius: 24px;
  display: none;
  box-shadow: 0 20px 35px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255,255,255,0.1);
}

.cookie-banner__btn {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  font-size: 14px;
  margin-top: 16px;
  border-radius: 40px;
  font-weight: 600;
  width: 100%;
  text-align: center;
  transition: var(--transition);
}

.cookie-banner__btn:hover {
  background: var(--primary-hover);
}

/* ============================================
   ПОДВАЛ
   ============================================ */
.site-footer {
  background: #0a0a0f;
  color: #fff;
  padding: 60px 0 30px;
  margin-top: 80px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 50px;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-logo img {
  height: 44px;
  width: auto;
}

.footer-subtitle {
  font-size: 14px;
  color: rgba(255,255,255,.6);
  max-width: 360px;
}

.footer-link {
  color: rgba(255,255,255,.7);
  text-decoration: none;
  font-size: 14px;
  transition: var(--transition);
}

.footer-link:hover {
  color: var(--primary);
}

.footer-contacts-title {
  font-weight: 600;
  margin-bottom: 12px;
  font-size: 16px;
}

.footer-contacts p {
  margin: 0 0 8px;
}

.footer-contacts a {
  color: rgba(255,255,255,.7);
  text-decoration: none;
}

.footer-contacts a:hover {
  color: var(--primary);
}

.footer-address p {
  color: rgba(255,255,255,.5);
  font-size: 14px;
}

.footer-privacy {
  margin-top: 10px;
  font-size: 12px;
  color: rgba(255,255,255,.4);
}

.footer-privacy a {
  color: rgba(255,255,255,.6);
  text-decoration: none;
}

.footer-privacy a:hover {
  color: var(--primary);
}

.policy-question {
  margin: 15px 0 5px;
  font-weight: 600;
  color: rgba(255,255,255,.8);
}

.map-container {
  width: 100%;
  height: 400px;
  border-radius: 28px;
  overflow: hidden;
  filter: grayscale(100%);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ============================================
   АДАПТИВ
   ============================================ */

/* До 1300px */
@media (max-width: 1300px) {
  .action-btn {
    display: none !important;
  }
}

/* До 980px */
@media (max-width: 980px) {
  .burger {
    display: flex;
  }
  
  .menu-area {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transform: translateY(-100%);
    transition: transform .3s ease;
    justify-content: center;
    align-items: center;
  }
  
  .menu-area.is-open {
    transform: translateY(0);
  }
  
  .menu-shell {
    flex-direction: column;
    gap: 32px;
    padding: 40px 20px;
    border: none;
    box-shadow: none;
  }
  
  .menu-link {
    font-size: 20px;
    color: var(--text);
  }
  
  .footer-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .map-container {
    height: 300px;
  }
}

/* До 768px */
@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }
  
  .articles-list-page {
    padding: 90px 0 50px;
  }
  
  .page-header h1 {
    font-size: 48px;
  }
  
  .articles-list {
    max-width: 100%;
  }
  
  .categories-nav {
    padding: 12px 20px;
    border-radius: 32px;
  }
  
  .cookie-banner {
    width: calc(100% - 40px);
    left: 20px;
    right: 20px;
    bottom: 20px;
  }
}



/* Доступность */
@media (prefers-reduced-motion: reduce) {
  header.topbar {
    transition: none;
  }
}