/* Quadro Extreme — Топбар, nav, дропдаун, бургер, мобильное меню */

/* ─── TOP BAR ─── */
.topbar {
  background: #070707; border-bottom: 1px solid rgba(107,255,42,0.1);
  padding: 12px 48px; display: flex; align-items: center; justify-content: flex-end; gap: 24px;
  font-size: 15px; font-weight: 600; color: var(--muted);
}
.topbar a { color: var(--muted); text-decoration: none; display: flex; align-items: center; gap: 6px; transition: color 0.2s; }
.topbar a:hover { color: var(--green); }
.topbar .phone { color: #f0f0f0; font-weight: 800; }
.topbar .sep { opacity: 0.2; }

/* ─── NAV ─── */
nav {
  position: sticky; top: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 48px; height: 62px;
  background: rgba(8,8,8,0.97); backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(107,255,42,0.08);
}
.nav-logo { display: flex; align-items: center; text-decoration: none; }
.nav-logo img { height: 46px; width: auto; max-width: 200px; object-fit: contain; }
.nav-links { display: flex; align-items: center; gap: 20px; list-style: none; }
.nav-links > li > a {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 16px; font-weight: 800; letter-spacing: 0.03em; text-transform: uppercase;
  color: #d6d6d6; text-decoration: none; transition: color 0.2s; white-space: nowrap;
}
.nav-links > li > a:hover { color: var(--green); }
.nav-links > li > a.is-active { color: var(--green); }
.nav-cta {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 13px; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--black); background: var(--green); border: none; padding: 8px 20px; cursor: pointer;
  clip-path: polygon(8px 0%,100% 0%,calc(100% - 8px) 100%,0% 100%);
  transition: background 0.2s; text-decoration: none; display: inline-block;
}
.nav-cta:hover { background: #85ff3a; }

/* Dropdown */
.has-dropdown { position: relative; }
/* Невидимый «мостик» — перекрывает зазор между пунктом и выпадашкой,
   чтобы курсор не терял :hover при переходе вниз (иначе меню мигает). */
.has-dropdown::after {
  content: ""; position: absolute; left: -10px; right: -10px; top: 100%; height: 18px;
}
.dropdown {
  display: none; position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%);
  background: rgba(10,10,10,0.98); border: 1px solid var(--border); border-radius: 8px;
  min-width: 210px; padding: 8px 0; list-style: none; z-index: 400; backdrop-filter: blur(12px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.5);
}
.dropdown li a {
  display: block; padding: 11px 20px; white-space: nowrap;
  font-family: "Barlow Condensed", sans-serif; font-size: 15px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255,255,255,0.78); text-decoration: none;
  transition: color 0.2s, background 0.2s;
}
.dropdown li a:hover { color: var(--green); background: rgba(107,255,42,0.06); }
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown { display: block; }

/* Burger */
.burger { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 36px; height: 36px; background: none; border: none; cursor: pointer; padding: 4px; }
.burger span { display: block; width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: all 0.3s; }
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 500;
  flex-direction: column;
  background: rgba(8,8,8,0.98);
  backdrop-filter: blur(16px);
  overflow-y: auto;
  padding-bottom: 32px;
  transform: translateX(-100%);
  transition: transform 0.32s cubic-bezier(0.4,0,0.2,1);
}
.mobile-menu.open {
  display: flex;
  transform: translateX(0);
}
/* Close button inside menu */
.mobile-menu__close {
  display: flex;
  justify-content: flex-end;
  padding: 20px 20px 8px;
}
.mobile-menu__close-btn {
  width: 40px; height: 40px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 50%;
  color: rgba(255,255,255,0.7);
  font-size: 18px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, color 0.2s;
}
.mobile-menu__close-btn:hover { background: rgba(107,255,42,0.12); color: var(--green); }
/* Book CTA inside menu — top priority */
.mobile-menu__book {
  margin: 8px 20px 24px;
  display: block;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 18px; font-weight: 800;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--black);
  background: var(--green);
  text-align: center;
  padding: 18px 24px;
  text-decoration: none;
  border-radius: 4px;
  clip-path: polygon(10px 0%, 100% 0%, calc(100% - 10px) 100%, 0% 100%);
  animation: pulseGreen 2.2s ease-in-out infinite;
}
@keyframes pulseGreen {
  0%, 100% { box-shadow: 0 0 0 0 rgba(107,255,42,0.45); }
  50% { box-shadow: 0 0 0 8px rgba(107,255,42,0); }
}
.mobile-menu ul { list-style: none; width: 100%; border-top: 1px solid rgba(255,255,255,0.06); }
.mobile-menu ul li a { display: block; padding: 16px 24px; font-family: "Barlow Condensed", sans-serif; font-size: 20px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.8); text-decoration: none; border-bottom: 1px solid rgba(255,255,255,0.05); transition: color 0.2s, padding-left 0.2s; }
.mobile-menu ul li a:hover { color: var(--green); padding-left: 32px; }
.mobile-cta { margin: 20px 24px 0; font-family: "Barlow Condensed", sans-serif; font-size: 22px; font-weight: 800; color: var(--green); text-decoration: none; display: flex; align-items: center; gap: 8px; }
.mobile-section { padding: 12px 24px 4px; font-family: "Barlow Condensed", sans-serif; font-size: 12px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(107,255,42,0.6); }
.mobile-sub a { padding-left: 40px !important; font-size: 16px !important; color: rgba(255,255,255,0.55) !important; }


/* Каретка выпадающего пункта меню */
.nav-caret { font-size: 0.7em; opacity: 0.75; }
