/* ════════════════════════════════════
   NAVIGATION — ONTO NOTHING / ex NIHILO
═══════════════════════════════════ */

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(236,238,242,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.6);
}
.nav-logo {
  font-family: "Oswald", sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: #16161A;
  text-decoration: none;
  text-transform: none;
}
.nav-logo:hover { color: #5F5FFF; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.nav-links a {
  font-family: "Jost", sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: #444450;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 6px;
  transition: all 0.18s;
  white-space: nowrap;
}
.nav-links a:hover { color: #16161A; background: rgba(95,95,255,0.08); }
.nav-links a.active { color: #5F5FFF; background: rgba(95,95,255,0.1); }

/* ── Дропдауны (группировка пунктов) ── */
.nav-group { position: relative; }
.nav-group-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  font-family: "Jost", sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: #444450;
  padding: 6px 12px;
  border: none;
  background: none;
  border-radius: 6px;
  transition: all 0.18s;
  white-space: nowrap;
}
.nav-group-toggle:hover { color: #16161A; background: rgba(95,95,255,0.08); }
.nav-group.active > .nav-group-toggle { color: #5F5FFF; background: rgba(95,95,255,0.1); }
.nav-group-toggle .caret {
  font-size: 0.6rem;
  line-height: 1;
  opacity: 0.55;
  transition: transform 0.18s;
  display: inline-block;
  margin-left: 2px;
}
.nav-group.open > .nav-group-toggle .caret { transform: rotate(180deg); }
.nav-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 200px;
  list-style: none;
  margin: 0;
  padding: 6px;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(95,95,255,0.14);
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(20,20,40,0.12);
  display: none;
  z-index: 120;
}
.nav-group.open .nav-dropdown { display: block; }
.nav-group:hover > .nav-dropdown { display: block; }
.nav-dropdown li { display: block; }
.nav-dropdown a {
  display: block;
  width: 100%;
  font-family: "Jost", sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: #444450;
  text-decoration: none;
  padding: 9px 12px;
  border-radius: 6px;
  transition: all 0.18s;
  white-space: nowrap;
}
.nav-dropdown a:hover { color: #16161A; background: rgba(95,95,255,0.08); }
.nav-dropdown a.active { color: #5F5FFF; background: rgba(95,95,255,0.1); }
.nav-cta {
  font-family: "Jost", sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff !important;
  background: #5F5FFF !important;
  padding: 6px 12px !important;
  border-radius: 6px !important;
  margin-left: 8px;
  transition: all 0.18s !important;
}
.nav-cta:hover { background: #4a4ae8 !important; }
/* NOTHING — вход на тёмный лендинг: чёрная пилюля, чтобы читалась как другой мир */
.nav-accent {
  font-family: "Jost", sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #fff !important;
  background: #16161A !important;
  padding: 6px 12px !important;
  border-radius: 6px !important;
  margin-right: 6px;
  transition: all 0.18s !important;
}
.nav-accent:hover,
.nav-accent.active { background: #000 !important; }
.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-right: 8px;
  padding: 3px 4px;
  border-radius: 999px;
  background: rgba(95,95,255,0.06);
  border: 1px solid rgba(95,95,255,0.15);
}
.lang-switch a {
  font-family: "Jost", sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: #444450;
  padding: 4px 10px;
  border-radius: 999px;
  transition: all 0.18s;
}
.lang-switch a:hover { color: #16161A; background: rgba(95,95,255,0.1); }
.lang-switch a.active { color: #fff; background: #5F5FFF; }
.lang-switch a.disabled { opacity: 0.4; pointer-events: none; cursor: default; }
.nav-burger { display: none; flex-direction: column; justify-content: center; align-items: center; gap: 5px; cursor: pointer; padding: 10px; margin: -10px -8px -10px 0; min-width: 44px; min-height: 44px; background: none; border: none; }
.nav-burger span { display: block; width: 22px; height: 2px; background: #16161A; border-radius: 2px; transition: all 0.25s; }

/* ═══════════════════════════════════
   FOOTER (3 ряда, без навигации)
══════════════════════════════════ */
.site-footer {
  position: relative;
  z-index: 10;
  background: #13131A;
  color: rgba(255,255,255,0.55);
}

/* ── Ряд 1: Бренд (полная ширина) ── */
.footer-row--brand {
  padding: 36px 24px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.footer-inner--brand {
  max-width: 1100px;
  margin: 0 auto;
}
.footer-brand {
  font-family: "Oswald", sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #fff;
  text-transform: uppercase;
}
.footer-desc {
  font-family: "Jost", sans-serif;
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.4);
  max-width: 600px;
  margin-top: 8px;
}

/* ── Ряд 2: Документы (полная ширина, 4 колонки в ряд, слева→направо) ── */
.footer-row--docs {
  padding: 28px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.footer-inner--docs {
  max-width: 1100px;
  margin: 0 auto;
}
.footer-docs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 36px 24px;
}
.footer-docs-section { display: flex; flex-direction: column; gap: 2px; }
.footer-docs-section-title {
  font-family: "Oswald", sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 8px;
}
.footer-docs-section .footer-links {
  list-style: none;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin: 0;
  padding: 0;
}
.footer-docs-section .footer-links a {
  font-family: "Jost", sans-serif;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: color 0.18s, background 0.18s;
  white-space: nowrap;
  display: inline-block;
  padding: 6px 10px;
  border-radius: 4px;
}
.footer-docs-section .footer-links a:hover {
  color: #fff;
  background: rgba(95,95,255,0.12);
}
.footer-docs-section .footer-links a:hover { color: #fff; }

/* ── Ряд 3: Нижняя полоса (копирайт + контакты + юридическая) ── */
.footer-row--bottom {
  padding: 28px 24px 40px;
}
.footer-inner--bottom {
  max-width: 1100px;
  margin: 0 auto;
}
.footer-copy-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px 24px;
}
.footer-copy {
  font-family: "Jost", sans-serif;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.38);
  letter-spacing: 0.03em;
  flex: 1;
  min-width: 200px;
  line-height: 1.5;
}
.footer-phone, .footer-email, .footer-telegram, .footer-tg-channel, .footer-yt-channel {
  font-family: "Jost", sans-serif;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  transition: color 0.18s, background 0.18s;
  display: inline-block;
  padding: 5px 9px;
  border-radius: 4px;
}
.footer-phone:hover, .footer-email:hover, .footer-telegram:hover, .footer-tg-channel:hover, .footer-yt-channel:hover {
  color: #fff;
  background: rgba(95,95,255,0.12);
}

.footer-legal-strip {
  font-family: "Jost", sans-serif;
  font-size: 0.85rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.5);
  margin-top: 14px;
}
.footer-disclaimer { margin-bottom: 8px; }
.footer-author-rights { margin-bottom: 8px; }
.footer-legal-contact { color: rgba(255,255,255,0.55); }
.footer-legal-contact a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color 0.18s, background 0.18s;
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
}
.footer-legal-contact a:hover {
  color: #fff;
  background: rgba(95,95,255,0.12);
}

/* ═══════════════════════════════════
   RESPONSIVE
══════════════════════════════════ */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(236,238,242,0.97);
    backdrop-filter: blur(16px);
    padding: 16px 24px 24px;
    gap: 4px;
    border-bottom: 1px solid rgba(0,0,0,0.08);
  }
  .nav-links.open a { width: 100%; font-size: 1rem; padding: 10px 12px; }
  .nav-cta { margin-left: 0 !important; }
  /* В мобильном меню дропдауны раскрываются как вложенный список */
  .nav-links.open .nav-group { position: static; }
  .nav-links.open .nav-dropdown {
    position: static;
    display: none;
    box-shadow: none;
    border: none;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: 0 0 4px 14px;
    min-width: 0;
  }
  .nav-links.open .nav-group.open .nav-dropdown { display: block; }
  .nav-links.open .nav-dropdown a { font-size: 0.92rem; padding: 8px 12px; }
  .nav-links.open .nav-group-toggle .caret { opacity: 0.55; }
}

@media (max-width: 800px) {
  .footer-docs-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 16px;
  }
}

@media (max-width: 500px) {
  .footer-docs-grid {
    grid-template-columns: 1fr;
  }
  .footer-copy-row { flex-direction: column; align-items: flex-start; }
  .footer-copy { min-width: 0; }
  .footer-brand { font-size: 1.15rem; }
}