/* ══════════════════════════════════════════
   NAV + PHONE BAR для страниц услуг
   Исправленная версия: clamp() вместо голых vw
   ══════════════════════════════════════════ */

/* ── STICKY PHONE BAR (мобильный) ── */
.phone-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 0.9rem 1rem;
  box-shadow: 0 -4px 20px rgba(232, 80, 10, 0.4);
}
.phone-bar a {
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}
.phone-bar-msg {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.85);
}
.phone-bar-close {
  position: absolute;
  right: 1rem;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.25rem;
}

@media (min-width: 1027px) {
  .phone-bar { display: none; }
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  height: clamp(60px, 5vw, 80px);
  background: rgba(17, 17, 17, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: all var(--transition);
}

.nav-logo img {
  height: clamp(32px, 4vw, 56px);
}

.nav-logo-fallback {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.04em;
}

.nav-links {
  display: flex;
  gap: clamp(0.75rem, 2vw, 2rem);
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.75);
  font-size: clamp(0.7rem, 1vw, 0.9rem);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color var(--transition);
}

.nav-links a:hover { color: var(--orange-light); }

.nav-phone {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255, 255, 255, 0.7) !important;
  font-size: clamp(0.7rem, 1vw, 0.9rem) !important;
  font-weight: 500 !important;
  text-transform: none !important;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.4rem 0.9rem;
  border-radius: 3px;
}
.nav-phone:hover {
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
}

.nav-cta {
  background: var(--orange);
  color: #fff !important;
  padding: 0.5rem 1.25rem;
  border-radius: 3px;
  font-weight: 600 !important;
  letter-spacing: 0.04em;
  transition: background var(--transition) !important;
}
.nav-cta:hover { background: var(--orange-light) !important; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  transition: all var(--transition);
}

@media (max-width: 1027px) {
  .hide_contakt { display: none; }
  .nav-links a {
    font-size: clamp(0.65rem, 1.1vw, 0.82rem);
  }
}

@media (max-width: 768px) {
  nav {
    height: 64px;
    padding: 0 5%;
  }
  .nav-logo img { height: 36px; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
}

@media (max-width: 480px) {
  nav { height: 56px; }
  .nav-logo img { height: 30px; }
}
