/* =========================================================
   HEADER + NAV — LIGHT DESKTOP / DARK MOBILE (NO VARIABLES)
   - Desktop: transparent header, dark text links, dark buttons
   - Mobile: dark overlay, light text, neon accents
========================================================= */

/* ========= Reset / base ========= */
* { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* Scroll lock (menu open) */
body.no-scroll {
  position: fixed;
  inset: 0;
  overflow: hidden;
  width: 100%;
}

/* Focus */
a:focus-visible,
button:focus-visible {
  outline: none;
  border-color: rgba(15,23,32,.22) !important;
  box-shadow: 0 0 0 6px rgba(15,23,32,.12);
}

/* ========= Header (DESKTOP DEFAULT: transparent) ========= */
.site-header {
  position: relative;
  left: 0; right: 0; top: 0;
  z-index: 1000;

  /* transparent on desktop */
  background: transparent;
  box-shadow: none;
}

/* header inner */
.header-inner {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* ========= Logo (dark text on desktop) ========= */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: rgba(15,23,32,.92);
}
.logo img {
  display: block;
  width: auto;
  max-width: 200px;
  height: auto;
  filter: none;
}

/* ========= Links (dark on desktop) ========= */
header a {
  font-size: 16px;
  color: rgba(15,23,32,.85);
  text-decoration: none;
}

/* ========= Pillbar (light glass, dark text) ========= */
.pillbar {
  display: flex;
  gap: 0.5rem;

  background: linear-gradient(180deg, rgba(255,255,255,.72), rgba(255,255,255,.48));
  border-radius: 999px;
  padding: 6px;

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.pillbar a {
  padding: 0.5rem 0.9rem;
  border-radius: 999px;

  color: rgba(15,23,32,.70);
  font-weight: 700;
  background: transparent;

  transition: background .18s ease, color .18s ease, transform .18s ease;
}

.pillbar a:hover {
  background: rgba(15,23,32,.06);
  color: rgba(15,23,32,.92);
  transform: translateY(-1px);
}

/* Active (dark pill) */
.pillbar a.active {
  background: linear-gradient(180deg, rgba(15,23,32,.96), rgba(15,23,32,.82));
  color: #ffffff;
  box-shadow: 0 10px 30px rgba(15,23,32,.18);
}

/* ========= Nav common ========= */
.nav { display: flex; align-items: center; gap: 12px; }
.nav-close { display: none; }

/* ========= Burger (desktop style: light button + dark bars) ========= */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;

  height: 42px;
  aspect-ratio: 1;
  align-items: center;

  border-radius: 10px;
  border: 1px solid rgba(15,23,32,.14);
  background: linear-gradient(180deg, rgba(255,255,255,.72), rgba(255,255,255,.48));
  cursor: pointer;

  z-index: 50000;
  box-shadow: 0 12px 34px rgba(15,23,32,.10);
}

.nav-toggle:hover {
  box-shadow: 0 18px 46px rgba(15,23,32,.14);
  transform: translateY(-1px);
}

.nav-toggle .bar {
  display: block;
  width: 20px;
  height: 2px;
  background: rgba(15,23,32,.85);
  border-radius: 2px;
  transition: transform .22s ease, opacity .22s ease;
}

.nav-toggle.open .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open .bar:nth-child(2) { opacity: 0; }
.nav-toggle.open .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ========= Mobile panel (default hidden) ========= */
.nav-panel {
  position: fixed;
  inset: 0;
  padding: 24px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;

  /* MOBILE OVERLAY STYLE (will be used on <=1024) */
  background: rgba(7,8,12,.94);
  backdrop-filter: saturate(120%) blur(10px);
  -webkit-backdrop-filter: saturate(120%) blur(10px);

  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;

  transition: transform 0.35s ease, opacity 0.25s ease, visibility 0.25s;
}

.nav-panel.open {
  transform: none;
  opacity: 1;
  visibility: visible;
}

/* wrappers */
.nav-menu,
.nav-actions {
  background: transparent;
  border-radius: 999px;
  box-shadow: 0 18px 70px rgba(0,0,0,.55);
}

/* nav-menu list */
.nav-menu {
  list-style: none;
  margin: 0;
  padding: 6px;

  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.5rem;

  min-width: min(520px, 92vw);
}

/* menu items (mobile dark cards, light text) */
.nav-menu a {
  display: flex;
  align-items: center;
  justify-content: center;

  text-decoration: none;
  color: rgba(230,236,255,.92);

  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  padding: 12px 16px;
  border-radius: 12px;

  text-transform: uppercase;
  letter-spacing: .6px;
  font-weight: 800;

  border: 1px solid rgba(230,236,255,.10);
  transition: background .18s ease, transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.nav-menu a:hover {
  transform: translateY(-2px);
  background: linear-gradient(180deg, rgba(88,225,255,.08), rgba(169,139,255,.05));
  border-color: rgba(88,225,255,.22);
  box-shadow: 0 18px 50px rgba(0,0,0,.55);
}

/* actions block */
.nav-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px;
  width: 100%;
}

/* cart button (mobile dark) */
.nav-cart {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;

  text-decoration: none;
  color: rgba(230,236,255,.92);

  padding: 10px 14px;
  border-radius: 999px;

  border: 1px solid rgba(230,236,255,.10);
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  justify-content: center;

  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.nav-cart:hover {
  transform: translateY(-1px);
  border-color: rgba(169,139,255,.22);
  box-shadow: 0 0 0 6px rgba(169,139,255,.10), 0 0 40px rgba(169,139,255,.16);
}

.nav-cart__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 20px;
  height: 20px;
  padding: 0 6px;

  font-size: 12px;
  font-weight: 800;
  line-height: 1;

  background: linear-gradient(90deg, rgba(88,225,255,0.18), rgba(169,139,255,0.14));
  color: rgba(230,236,255,.92);

  border: 1px solid rgba(230,236,255,.10);
  border-radius: 20px;
}

/* chip button (DESKTOP: dark button, MOBILE: neon) */
.chip-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  text-decoration: none;

  /* DESKTOP DEFAULT: dark button */
  color: #ffffff;
  font-weight: 800;

  background: linear-gradient(180deg, rgba(15,23,32,.96), rgba(15,23,32,.82));
  border-radius: 999px;
  padding: 12px 18px;

  box-shadow: 0 14px 40px rgba(15,23,32,.18);
  border: 1px solid rgba(15,23,32,.10);

  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.chip-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 60px rgba(15,23,32,.22);
}

.chip-btn:active { transform: translateY(1px); }

/* ===== Mobile-only theme rules ===== */
@media (max-width: 1024px) {

  /* Mobile: header stays transparent, but burger/links can remain readable if your page background is light.
     If your mobile top background is light too — оставляем как есть. */

  /* Mobile close button */
  .nav-close {
    position: absolute;
    top: 16px;
    right: 16px;

    width: 44px;
    height: 44px;

    border: 1px solid rgba(230,236,255,.12);
    border-radius: 999px;

    background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
    color: rgba(230,236,255,.92);

    font-size: 28px;
    line-height: 1;
    cursor: pointer;

    box-shadow: 0 10px 30px rgba(0,0,0,.50);
    display: flex !important;
    align-items: center;
    justify-content: center;
    z-index: 3;
  }

  .nav-close:hover {
    box-shadow: 0 0 0 6px rgba(88,225,255,.10), 0 0 38px rgba(88,225,255,.18);
    border-color: rgba(88,225,255,.22);
  }

  /* Mobile CTA becomes neon */
  .chip-btn {
    color: #041018;
    background: linear-gradient(135deg, #58e1ff, #a98bff);
    border-radius: 12px;
    padding: 12px 28px;
    box-shadow: 0 16px 44px rgba(88,225,255,.10), 0 10px 26px rgba(169,139,255,.06);
    border: 1px solid rgba(255,255,255,0.06);
  }
}

/* ========= Desktop (>=1024px) ========= */
@media (min-width: 1024px) {
  .nav-toggle { display: none; }

  /* Desktop: nav-panel behaves as inline row, no dark overlay */
  .nav-panel {
    position: static;
    inset: auto;
    padding: 0;

    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 22px;

    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;

    transform: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
  }

  .nav-menu,
  .nav-actions {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    width: auto;
    padding: 0;
  }

  .nav-menu {
    min-width: unset;
    flex-direction: row;
    align-items: center;
    gap: 6px;
  }

  /* Desktop nav links: dark text, subtle hover */
  .nav-menu a {
    padding: 10px 12px;
    border-radius: 999px;

    background: transparent;
    border: 1px solid transparent;

    color: rgba(15,23,32,.78);
    text-transform: none;
    letter-spacing: 0;
    font-weight: 700;
    font-size: 14px;
  }

  .nav-menu a:hover {
    background: rgba(15,23,32,.06);
    border-color: rgba(15,23,32,.08);
    box-shadow: none;
    transform: translateY(-1px);
    color: rgba(15,23,32,.92);
  }

  .nav-actions {
    gap: 12px;
    width: auto;
  }

  /* Desktop cart: dark outline + light fill */
  .nav-cart{
    color: rgba(15,23,32,.90);
    border: 1px solid rgba(15,23,32,.12);
    background: linear-gradient(180deg, rgba(255,255,255,.72), rgba(255,255,255,.48));
    box-shadow: 0 12px 34px rgba(15,23,32,.10);
  }

  .nav-cart__badge{
    color: rgba(15,23,32,.92);
    border: 1px solid rgba(15,23,32,.14);
    background: linear-gradient(90deg, rgba(15,23,32,.10), rgba(15,23,32,.06));
  }

  .nav-close { display: none !important; }
}

/* ========= Small screens fine-tune ========= */
@media (max-width: 420px) {
  .nav-menu { min-width: unset; width: 100%; }
  .nav-actions { flex-direction: column; }
  .nav-cart { width: 100%; }
  .chip-btn { width: 100%; }
}
