/* ========= Vars & base ========= */
:root {
  --bg: #ffffff;
  --bg-soft: #f4f6f8;
  --text: #111213;
  --muted: #6b7280;
  --chip: #111213; /* тёмная пилюля */
--accent: #b10000ce;/* жёлтая кнопка */
  --stroke: #e6e8eb;
  --radius: 14px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.08);
}

* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  color: var(--text);
  background: var(--bg-soft);
  line-height: 1.25;
}

/* блокировка скролла для оверлея (JS уже меняет top) */
body.no-scroll {
  position: fixed;
  inset: 0;
  overflow: hidden;
  width: 100%;
}

/* ========= Layout helpers ========= */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ========= Header ========= */
.site-header {
  position: RELATIVE;
  top: 0;
  z-index: 1000;
  background: transparent;
  box-shadow: 0 1px 0 var(--stroke);
}

header a{
  font-size:16px;
}
.header-inner {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.pillbar {
  display: flex;
  gap: 0.5rem;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 999px;
  padding: 6px;
}
.pillbar a {
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  color: #374151;
  font-weight: 600;
}
.pillbar a.active {
  background: #111827;
  color: #fff;
}

/* logo */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.logo img {
  display: block;
  height: 28px;
  width: auto;
}

/* ========= Nav common ========= */
.nav {
  display: flex;
  align-items: center;
}

.nav-close {
  display: none;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--stroke);
  background: #fff;
  cursor: pointer;
  z-index:50000;
}
.nav-toggle .bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
}
/* крестик */
.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 (<=1024) ========= */
.nav-panel {
  position: fixed;
  inset: 0;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  background: rgba(0, 0, 0, 0.38);
  backdrop-filter: saturate(120%) blur(4px);
  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;
}

/* белая карточка меню внутри оверлея */
.nav-menu,
.nav-actions {
  background: #fff;
  border-radius: 999px;
  box-shadow: var(--shadow-md);
}
.nav-menu {
  list-style: none;
  margin: 0;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  min-width: min(520px, 92vw);

  display: flex;
  gap: 0.5rem;
  background: #fff;
  border: 1px solid #eee;
 
  padding: 6px;
}
.nav-menu a {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--text);
  padding: 12px 16px;
  border-radius: 10px;
}
.nav-menu a:hover {
  background: var(--bg-soft);
}

/* блок действий */
.nav-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px;
  width: 100%;
}
.nav-cart {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text);
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: #fff;
}
.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: 700;
  line-height: 1;
  background: #fff;
  color: #111;
  border: 1px solid var(--stroke);
  border-radius: 20px;
}
.chip-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  color: #ffffffff;
  font-weight: 700;
  background: var(--accent);
  border-radius: var(--radius-pill);
  padding: 12px 18px;
  box-shadow: var(--shadow-sm);
}
.chip-btn:active {
  transform: translateY(1px);
}
@media (max-width: 1024px) {
  .nav-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: #fff;
    color: #111;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    display: flex !important;
    align-items: center;
    justify-content: center;
    z-index: 3; /* поверх карточек */
  }
  .nav-close:hover {
    background: var(--bg-soft);
  }
 .nav-menu,
.nav-actions {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
  }

/* ========= Desktop (>=1024px) ========= */
@media (min-width: 1024px) {
  .nav-toggle {
    display: none;
  }

  .nav-panel {
    position: static;
    inset: auto;
    padding: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 22px;
    background: transparent;
    transform: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
  }

  .nav-menu {
    box-shadow: none;

    min-width: unset;
    padding: 0;
    flex-direction: row;
    align-items: center;
    gap: 6px;
  }
  .nav-menu a {
    padding: 10px 12px;
    border-radius: var(--radius-pill);
  }
  .nav-menu a:hover {
    background: #efeff1;
  }

  .nav-actions {
    background: transparent;
    box-shadow: none;
    padding: 0;
    gap: 12px;
    width: auto;
  }
  .nav-cart {
    border: 1px solid var(--stroke);
  }
}

/* ========= Small screens fine-tune ========= */
@media (max-width: 420px) {
  .nav-menu {
    min-width: unset;
    width: 100%;
  }
  .nav-actions {
    flex-direction: column;
  }
  .nav-cart,
  .chip-btn {
    width: 100%;
  }
}
