/* =========================
   НАВИГАЦИЯ
========================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--primary-color);
  box-shadow: 0 2px 8px rgba(0,0,0,.18);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 80px;
  display: flex;
  align-items: center;
  gap: 32px;
}

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

.site-nav {
  flex: 1;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 4px;
  align-items: center;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  color: rgba(255,255,255,.88);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 6px;
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
  transition: background .2s, color .2s;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link--active {
  background: rgba(255,255,255,.12);
  color: #fff;
}

.nav-arrow {
  font-size: 0.75em;
  transition: transform .2s;
}

.nav-dropdown-toggle[aria-expanded="true"] .nav-arrow {
  transform: rotate(180deg);
}

/* Дропдаун */
.nav-item--dropdown {
  position: relative;
}

.nav-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 260px;
  background: var(--primary-color);
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0,0,0,.32);
  border: 1px solid rgba(255,255,255,.1);
  padding: 8px 0;
  list-style: none;
  margin: 0;
  z-index: 200;
}

.nav-item--dropdown:has(.nav-dropdown-toggle[aria-expanded="true"]) .nav-dropdown,
.nav-dropdown:focus-within {
  display: block;
}

.nav-dropdown-link {
  display: block;
  padding: 10px 20px;
  color: rgba(255,255,255,.85);
  text-decoration: none;
  font-size: 0.9rem;
  transition: background .15s, color .15s;
}

.nav-dropdown-link:hover {
  background: rgba(255,255,255,.1);
  color: #fff;
}

.nav-dropdown-divider {
  height: 1px;
  background: rgba(255,255,255,.15);
  margin: 6px 12px;
}

/* CTA в шапке */
.header-cta {
  flex-shrink: 0;
  padding: 9px 20px;
  background: #fff;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 6px;
  transition: opacity .2s;
  white-space: nowrap;
}

.header-cta:hover { opacity: .88; }

/* Бургер */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
}

.nav-burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}

.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Мобильное меню */
.mobile-menu {
  background: var(--primary-color);
  border-top: 1px solid rgba(255,255,255,.12);
}

.mobile-nav-list {
  list-style: none;
  margin: 0;
  padding: 12px 0 20px;
}

.mobile-nav-link {
  display: block;
  padding: 11px 24px;
  color: rgba(255,255,255,.88);
  text-decoration: none;
  font-size: 0.95rem;
  transition: background .15s;
}

.mobile-nav-link:hover {
  background: rgba(255,255,255,.08);
  color: #fff;
}

.mobile-nav-section {
  display: block;
  padding: 14px 24px 4px;
  color: rgba(255,255,255,.45);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.mobile-nav-divider {
  height: 1px;
  background: rgba(255,255,255,.12);
  margin: 8px 24px;
}

.mobile-nav-cta {
  display: block;
  margin: 12px 24px 0;
  padding: 12px;
  text-align: center;
  background: #fff;
  color: var(--primary-color);
  font-weight: 700;
  text-decoration: none;
  border-radius: 6px;
}

/* Подвал */
.site-footer {
  background: var(--primary-color);
  color: rgba(255,255,255,.7);
  padding: 24px 0;
  margin-top: 80px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

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

.footer-contacts a {
  color: rgba(255,255,255,.8);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color .2s;
}
.footer-contacts a:hover { color: #fff; }

.footer-copy {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
}

.footer-copy a {
  color: rgba(255,255,255,.6);
  text-decoration: underline;
}
.footer-copy a:hover { color: rgba(255,255,255,.9); }

.footer-sep { color: rgba(255,255,255,.3); }

/* Cookie-баннер */
#cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #1a1a2e;
  color: #f0f0f0;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  z-index: 9999;
  box-shadow: 0 -2px 12px rgba(0,0,0,.35);
  font-size: .88rem;
  line-height: 1.5;
}
#cookie-banner p { margin: 0; flex: 1 1 260px; }
#cookie-banner a { color: #7eb8f7; text-decoration: underline; }
.cookie-banner__actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-btn {
  padding: 8px 20px; border: none; border-radius: 4px;
  cursor: pointer; font-size: .88rem; font-weight: 600; transition: opacity .2s;
}
.cookie-btn:hover { opacity: .85; }
.cookie-btn--accept { background: #4a90d9; color: #fff; }
.cookie-btn--decline { background: transparent; color: #aaa; border: 1px solid #555; }

/* =========================
   ГЛОБАЛЬНЫЕ УТИЛИТЫ
========================= */

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-title {
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  color: var(--primary-color);
  margin-bottom: 32px;
  text-align: center;
}

@media (prefers-color-scheme: dark) {
  .section-title { color: #7eb8f7; }
}

/* Skip link */
.skip-link {
  position: absolute; top: -40px; left: 0;
  background: var(--primary-color); color: #fff;
  padding: 8px 16px; z-index: 9999;
  transition: top .2s;
}
.skip-link:focus { top: 0; }

/* =========================
   МОБИЛЬНАЯ АДАПТАЦИЯ
========================= */
@media (max-width: 768px) {
  .site-nav, .header-cta { display: none; }
  .nav-burger { display: flex; }
  .header-inner { gap: 16px; }
}
