.nav {
  background: #fff;
  border-bottom: 1px solid #e0e0e0;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  position: sticky;
  top: 0;
  z-index: 100;
}
.logo { font-size: 20px; font-weight: 700; color: #222; letter-spacing: .04em; }
.logo span { color: #2d9e00; }
.nav-links { display: flex; gap: 28px; list-style: none; flex: 1; justify-content: center; }
.nav-links a { font-size: 13px; color: #555; font-weight: 600; }
.nav-links a:hover { color: #2d9e00; }
.nav-links a.active { color: #2d9e00; }
.nav-phone { font-size: 14px; font-weight: 700; color: #2d9e00; }

/* ── Search ── */
.nav-search { display: flex; align-items: center; position: relative; margin-right: 14px; }
.nav-search form {
  display: flex;
  align-items: center;
  background: #f4f5f7;
  border-radius: 24px;
  border: 1.5px solid transparent;
  padding: 0 4px 0 14px;
  gap: 4px;
  transition: border-color .2s, background .2s;
}
.nav-search form:focus-within {
  background: #fff;
  border-color: #2d9e00;
  box-shadow: 0 0 0 3px rgba(45,158,0,.08);
}
.search-icon {
  color: #aaa;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  transition: color .2s;
}
.nav-search form:focus-within .search-icon { color: #2d9e00; }
.search-input {
  border: none;
  background: transparent;
  padding: 8px 6px 8px 0;
  font-size: 13px;
  outline: none;
  width: 190px;
  color: #333;
}
.search-input::placeholder { color: #bbb; }
.search-btn {
  background: #2d9e00;
  color: #fff;
  border: none;
  width: 30px; height: 30px;
  border-radius: 50%;
  font-size: 0;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background .15s, transform .15s;
}
.search-btn:hover { background: #259000; transform: scale(1.08); }
.search-btn svg { pointer-events: none; }

/* ── Social icons ── */
.nav-social {
  display: flex;
  align-items: center;
  gap: 2px;
  background: #f4f5f7;
  border-radius: 24px;
  padding: 4px 6px;
}
.nav-social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  text-decoration: none;
  transition: background .15s, transform .15s;
  flex-shrink: 0;
}
.nav-social-btn:hover { transform: scale(1.15); }
.nav-social-btn[aria-label="Telegram"]  { color: #2CA5E0; }
.nav-social-btn[aria-label="Telegram"]:hover  { background: rgba(44,165,224,.12); }
.nav-social-btn[aria-label="Instagram"] { color: #E1306C; }
.nav-social-btn[aria-label="Instagram"]:hover { background: rgba(225,48,108,.12); }
.nav-social-btn[aria-label="YouTube"]   { color: #FF0000; }
.nav-social-btn[aria-label="YouTube"]:hover   { background: rgba(255,0,0,.1); }
.nav-social-btn[aria-label="TikTok"]   { color: #010101; }
.nav-social-btn[aria-label="TikTok"]:hover   { background: rgba(1,1,1,.1); }

/* ── Map button ── */
.nav-map-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  color: #2d9e00;
  text-decoration: none;
  background: #f0fbea;
  transition: background .15s, transform .15s;
  flex-shrink: 0;
  margin-left: 14px;
}
.nav-map-btn:hover { background: #e0f5d0; transform: scale(1.08); }

/* ── Burger button ── */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: none; border: none; cursor: pointer;
  padding: 4px; flex-shrink: 0;
}
.burger span {
  display: block;
  width: 24px; height: 2px;
  background: #333;
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
  transform-origin: center;
}
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile overlay ── */
.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
  overflow: hidden;
}
.mobile-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

/* ── Mobile menu panel ── */
.mobile-menu {
  position: absolute;
  top: 0; right: 0;
  width: min(320px, 85vw);
  height: 100%;
  background: #fff;
  padding: 20px 0 32px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform .28s ease;
  box-shadow: -4px 0 24px rgba(0,0,0,.15);
}
.mobile-overlay.open .mobile-menu {
  transform: translateX(0);
}

.mobile-menu-close {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  background: none; border: none;
  font-size: 22px; color: #555;
  cursor: pointer;
  padding: 0 20px 16px;
  line-height: 1;
}
.mobile-menu-close:hover { color: #2d9e00; }

/* ── Mobile nav links ── */
.mobile-nav-links {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}
.mobile-nav-links > li > a,
.mobile-catalog-toggle {
  display: block;
  padding: 14px 24px;
  font-size: 15px; font-weight: 600; color: #222;
  font-family: inherit; line-height: inherit;
  text-decoration: none;
  border-bottom: 1px solid #f0f0f0;
  background: none; border-left: none; border-right: none; border-top: none;
  width: 100%; text-align: left; cursor: pointer;
  transition: color .15s, background .15s;
}
.mobile-nav-links > li > a:hover,
.mobile-catalog-toggle:hover { color: #2d9e00; background: #f7fcf4; }
.mobile-nav-links > li > a.active { color: #2d9e00; }

/* Catalog submenu */
.mobile-submenu {
  list-style: none;
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
  background: #f9f9f9;
}
.mobile-dropdown.open .mobile-submenu { max-height: 600px; }

/* Звичайні пункти підменю */
.mobile-submenu li a {
  display: block;
  padding: 12px 24px 12px 36px;
  font-size: 14px; color: #444;
  border-bottom: 1px solid #eee;
  text-decoration: none;
  transition: color .15s, background .15s;
}
.mobile-submenu li a:hover { color: #2d9e00; background: #f2f9ee; }


/* ── Mobile search ── */
.mobile-search {
  display: flex;
  align-items: center;
  margin: 0 16px 16px;
  background: #f4f5f7;
  border-radius: 24px;
  border: 1.5px solid transparent;
  padding: 0 4px 0 14px;
  gap: 4px;
  transition: border-color .2s, background .2s;
}
.mobile-search:focus-within {
  background: #fff;
  border-color: #2d9e00;
  box-shadow: 0 0 0 3px rgba(45,158,0,.08);
}
.mobile-search .search-icon {
  color: #aaa;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  transition: color .2s;
}
.mobile-search:focus-within .search-icon { color: #2d9e00; }
.mobile-search input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  padding: 10px 6px 10px 0;
  font-size: 14px;
  outline: none;
  color: #333;
}
.mobile-search input::placeholder { color: #bbb; }
.mobile-search button {
  background: #2d9e00; color: #fff;
  border: none;
  width: 32px; height: 32px;
  border-radius: 50%;
  font-size: 0;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background .15s;
}
.mobile-search button:hover { background: #259000; }

/* ── Mobile social row in drawer ── */
.mobile-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 20px 16px;
}
.mobile-social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  text-decoration: none;
  transition: background .15s, transform .15s;
  flex-shrink: 0;
}
.mobile-social-btn:hover { transform: scale(1.1); }
.mobile-social-btn[aria-label="Telegram"]  { color: #2CA5E0; background: rgba(44,165,224,.1); }
.mobile-social-btn[aria-label="Instagram"] { color: #E1306C; background: rgba(225,48,108,.1); }
.mobile-social-btn[aria-label="YouTube"]   { color: #FF0000; background: rgba(255,0,0,.07); }
.mobile-social-btn[aria-label="TikTok"]   { color: #010101; background: rgba(1,1,1,.07); }
.mobile-social-btn[aria-label="Карта"]     { color: #2d9e00; background: #f0fbea; }

/* ── Mobile phone link in drawer ── */
.mobile-phone-link {
  display: block;
  margin: 0 20px 16px;
  text-align: center;
  background: #2d9e00;
  color: #fff;
  padding: 14px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: .02em;
}
.mobile-phone-link:hover { background: #259000; }

@media (max-width: 1024px) {
  .burger { display: flex; }
  .nav-links { display: none; }
  .nav-search { display: none; }
  .nav-social { display: none; }
  .nav-map-btn { display: none; }
  .mobile-overlay { display: block; }
  .nav { padding: 0 16px; height: 60px; }
  /* Fix logo overflow — inline height:68px overrides to 44px */
  .nav > a > img { height: 44px !important; }
}
