/* ==========================================================================
   Mobile contacts UX — hero contacts row + navbar/burger phone helpers
   Stack: PHP views + Bootstrap + CSS
   ========================================================================== */

/* ----- Mobile navbar phone icon (site-wide) ----- */
.navbar-mobile-tools {
  flex-shrink: 0;
}

.navbar-mobile-phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.55rem;
  height: 2.55rem;
  min-width: 44px;
  min-height: 44px;
  border-radius: 0.65rem;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(15, 23, 42, 0.04);
  color: #0ea5e9 !important;
  text-decoration: none !important;
  transition: background 220ms ease, border-color 220ms ease, transform 220ms ease;
}

.navbar-mobile-phone svg {
  display: block;
  width: 1.15rem;
  height: 1.15rem;
}

.navbar-mobile-phone:hover,
.navbar-mobile-phone:focus-visible {
  background: rgba(14, 165, 233, 0.1);
  border-color: rgba(14, 165, 233, 0.35);
  transform: translateY(-1px);
  color: #0284c7 !important;
}

.navbar--home .navbar-mobile-phone {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.05);
  color: #22d3ee !important;
}

.navbar--home .navbar-mobile-phone:hover,
.navbar--home .navbar-mobile-phone:focus-visible {
  background: rgba(34, 211, 238, 0.12);
  border-color: rgba(34, 211, 238, 0.35);
  color: #67e8f9 !important;
}

/* ----- Phone row inside burger menu ----- */
.nav-mobile-phone-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  margin: 0.35rem 0 0.85rem;
  padding: 0.85rem 0.95rem;
  border-radius: 0.9rem;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.12), rgba(37, 99, 235, 0.1));
  border: 1px solid rgba(14, 165, 233, 0.28);
  color: #0f172a !important;
  text-decoration: none !important;
  min-height: 52px;
}

.nav-mobile-phone-card__icon {
  flex-shrink: 0;
  width: 2.35rem;
  height: 2.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.7rem;
  background: linear-gradient(135deg, #0ea5e9, #2563eb);
  color: #fff;
}

.nav-mobile-phone-card__icon svg {
  width: 1.15rem;
  height: 1.15rem;
}

.nav-mobile-phone-card__text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.nav-mobile-phone-card__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b !important;
}

.nav-mobile-phone-card__value {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a !important;
  line-height: 1.2;
  white-space: nowrap;
}

.navbar--home .nav-mobile-phone-card {
  background: rgba(34, 211, 238, 0.1);
  border-color: rgba(34, 211, 238, 0.28);
}

.navbar--home .nav-mobile-phone-card__label {
  color: #94a3b8 !important;
}

.navbar--home .nav-mobile-phone-card__value {
  color: #fff !important;
}

/* ----- Hero contacts row under primary CTA (phone + MAX + VK) ----- */
.hero-contacts-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  margin: 0.9rem auto 0;
  max-width: 100%;
  padding: 0 0.25rem;
}

.hero-contacts-row__phone {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #cbd5e1 !important;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none !important;
  white-space: nowrap;
  transition: color 200ms ease;
}

.hero-contacts-row__phone svg {
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
  color: #94a3b8;
}

.hero-contacts-row__phone:hover,
.hero-contacts-row__phone:focus-visible {
  color: #fff !important;
}

.hero-contacts-row__phone:hover svg,
.hero-contacts-row__phone:focus-visible svg {
  color: #22d3ee;
}

.hero-contacts-row__number {
  white-space: nowrap;
}

.hero-contacts-row__sep {
  flex-shrink: 0;
  width: 1px;
  height: 1rem;
  background: rgba(148, 163, 184, 0.45);
}

.hero-contacts-row__messengers {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.hero-contacts-row__msg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #fff !important;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  text-decoration: none !important;
  transition: background 200ms ease, border-color 200ms ease, box-shadow 200ms ease, transform 200ms ease, filter 200ms ease;
}

.hero-contacts-row__msg--max {
  background: linear-gradient(145deg, #8b6fff 0%, #5b3fe0 46%, #3422a0 100%);
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 4px 10px rgba(91, 63, 255, 0.35);
}

.hero-contacts-row__msg--vk {
  background: linear-gradient(145deg, #3d9bff 0%, #0077ff 48%, #0053bf 100%);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 4px 10px rgba(0, 119, 255, 0.28);
}

.hero-contacts-row__msg svg {
  display: block;
  width: 16px;
  height: 16px;
}

.hero-contacts-row__msg-mark {
  color: #fff;
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 0.5rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
}

.hero-contacts-row__msg:hover,
.hero-contacts-row__msg:focus-visible,
.hero-contacts-row__msg:active {
  filter: brightness(1.12);
  box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.35), 0 6px 14px rgba(0, 0, 0, 0.25);
  transform: translateY(-1px);
  color: #fff !important;
}

.hero-contacts-row__msg:focus-visible {
  outline: 2px solid #f97316;
  outline-offset: 2px;
}

@media (min-width: 768px) {
  .hero-contacts-row {
    margin-top: 1rem;
    gap: 0.65rem;
  }

  .hero-contacts-row__phone {
    font-size: 0.92rem;
  }
}
