.topbar {
  background: var(--color-primary-night);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.nav {
  background: var(--grad-nav);
  position: sticky;
  top: 0;
  z-index: 500;
  transition: box-shadow var(--transition);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.nav.is-scrolled {
  background: var(--grad-nav);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 4px 28px rgba(15,34,51,0.35);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
  gap: var(--space-lg);
}

/* Logo — icon only, no text */
.nav__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  padding: 4px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.nav__logo:hover {
  background: rgba(255,255,255,0.08);
}

.nav__logo-img {
  height: 42px;
  width: auto;
  filter: brightness(0) invert(1) drop-shadow(0 1px 4px rgba(0,0,0,0.3));
}

/* Hide logo text everywhere */
.nav__logo-text {
  display: none;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  flex: 1;
  justify-content: center;
}

.nav__link {
  display: block;
  padding: 7px 12px;
  color: rgba(255,255,255,0.88);
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  white-space: nowrap;
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 1px;
  left: 12px;
  right: 12px;
  height: 2px;
  background: var(--color-accent);
  transform: scaleX(0);
  transition: transform var(--transition);
  border-radius: 2px;
}

.nav__link:hover,
.nav__link.is-active {
  color: white;
  background: rgba(255,255,255,0.1);
}

.nav__link.is-active::after {
  transform: scaleX(1);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* Contacts block inside nav */
.nav__contacts {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.nav__contact-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: white;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition);
  white-space: nowrap;
  line-height: 1.25;
  letter-spacing: 0.2px;
}

.nav__contact-item svg {
  flex-shrink: 0;
  color: var(--color-accent);
  width: 14px;
  height: 14px;
}

.nav__contact-item:hover { color: var(--color-accent); }

.nav__contact-item--email {
  color: rgba(255,255,255,0.65);
  font-size: 12px;
  font-weight: 500;
}
.nav__contact-item--email:hover { color: white; }

/* Vertical divider */
.nav__divider {
  width: 1px;
  height: 28px;
  background: rgba(255,255,255,0.15);
  flex-shrink: 0;
  margin: 0 2px;
}

/* Icon-only buttons */
.nav__icon-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  text-decoration: none;
  flex-shrink: 0;
  border: 1px solid transparent;
}

.nav__icon-btn svg { width: 17px; height: 17px; }

.nav__icon-btn--phone {
  background: rgba(255,255,255,0.16);
  color: #fff;
  border-color: rgba(255,255,255,0.3);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15),
              inset 0 1px 0 rgba(255,255,255,0.18);
}
.nav__icon-btn--phone:hover {
  background: rgba(255,255,255,0.26);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.22),
              inset 0 1px 0 rgba(255,255,255,0.22);
}

.nav__icon-btn--wa {
  background: rgba(37,211,102,0.26);
  color: #90FFD8;
  border-color: rgba(37,211,102,0.45);
  box-shadow: 0 2px 10px rgba(37,211,102,0.22),
              inset 0 1px 0 rgba(255,255,255,0.12);
}
.nav__icon-btn--wa:hover {
  background: rgba(37,211,102,0.4);
  color: #B8FFE8;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37,211,102,0.35),
              inset 0 1px 0 rgba(255,255,255,0.15);
}

.nav__icon-btn--tg {
  background: rgba(34,158,217,0.26);
  color: #A0DCFF;
  border-color: rgba(34,158,217,0.45);
  box-shadow: 0 2px 10px rgba(34,158,217,0.22),
              inset 0 1px 0 rgba(255,255,255,0.12);
}
.nav__icon-btn--tg:hover {
  background: rgba(34,158,217,0.4);
  color: #C2EEFF;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(34,158,217,0.35),
              inset 0 1px 0 rgba(255,255,255,0.15);
}

/* Yellow CTA button */
.nav__cta-btn {
  background: linear-gradient(135deg, #D4620A 0%, #E8832A 45%, #F5A623 100%);
  color: white;
  border: none;
  border-radius: var(--radius-full);
  padding: 9px 18px;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  letter-spacing: 0.2px;
  box-shadow: 0 2px 14px rgba(212,98,10,0.4);
}

.nav__cta-btn:hover {
  background: linear-gradient(135deg, #BF570A 0%, #D4720A 45%, #E8962A 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(212,98,10,0.55);
}

/* Burger */
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 0;
  transition: var(--transition);
}
.nav__burger-line {
  display: block;
  width: 20px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: var(--transition);
}
.nav__burger.is-open .nav__burger-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.is-open .nav__burger-line:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav__burger.is-open .nav__burger-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: min(280px, 75vw);
  height: 100vh;
  background: linear-gradient(to bottom, #011e2b 0%, #024d61 60%, #0a7a8a 100%);
  z-index: 600;
  padding: 76px 20px 20px;
  transition: right var(--transition-slow);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.nav__drawer.is-open {
  right: 0;
  box-shadow: -8px 0 40px rgba(0,0,0,0.45);
}

.nav__drawer-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: none;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.nav__drawer-close:hover { background: rgba(255,255,255,0.16); }

.nav__drawer-menu {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.nav__drawer-menu .nav__link {
  font-size: var(--text-md);
  padding: 12px 14px;
  border-radius: var(--radius-md);
}

.nav__drawer-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.nav__drawer-actions .btn {
  font-size: 1rem;
  min-height: 54px;
  margin-top: 12px;
}

.nav__drawer-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  color: white;
  font-weight: 600;
  font-size: var(--text-md);
  padding: 12px 14px;
  background: rgba(255,255,255,0.06);
  border-radius: var(--radius-md);
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.08);
}

.nav__drawer-contacts-row {
  display: flex;
  gap: 10px;
}

.nav__drawer-icon-btn {
  flex: 1;
  height: 54px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: var(--transition);
}

.nav__drawer-icon-btn--phone {
  background: rgba(255,255,255,0.1);
  color: white;
  border: 1px solid rgba(255,255,255,0.15);
}
.nav__drawer-icon-btn--phone:hover {
  background: rgba(255,255,255,0.18);
  transform: translateY(-2px);
}

.nav__drawer-icon-btn--wa {
  background: #25D366;
  color: white;
}
.nav__drawer-icon-btn--wa:hover {
  background: #1ebe5a;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(37,211,102,0.4);
}

.nav__drawer-icon-btn--tg {
  background: #229ED9;
  color: white;
}
.nav__drawer-icon-btn--tg:hover {
  background: #1b8ec2;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(34,158,217,0.4);
}

@media (max-width: 1200px) {
  .nav__contacts { display: none; }
  .nav__divider   { display: none; }
}

@media (max-width: 1060px) {
  .nav__menu { gap: 0; }
  .nav__link { padding: 7px 9px; font-size: 13px; }
}

@media (max-width: 900px) {
  .nav__menu    { display: none; }
  .nav__actions { display: none; }
  .nav__burger  { display: flex; }
}

@media (min-width: 901px) {
  .nav__drawer { display: none; }
}

/* ── 24/7 badge — mobile only ── */
.nav__badge-247 {
  display: none;
}

.nav__badge-247__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2EE87A;
  flex-shrink: 0;
  box-shadow: 0 0 6px rgba(46,232,122,0.7);
  animation: pulse-dot 2s infinite;
}

@media (max-width: 900px) {
  .nav__badge-247 {
    display: flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, rgba(34,197,94,0.2), rgba(0,210,120,0.12));
    border: 1.5px solid rgba(74,222,128,0.5);
    color: #2EE87A;
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.8px;
    padding: 6px 13px;
    border-radius: var(--radius-full);
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 0 12px rgba(46,232,122,0.18);
    text-shadow: 0 0 8px rgba(46,232,122,0.35);
    margin-left: auto;
    margin-right: 10px;
  }
}
