@media (max-width: 768px) {
  html { scroll-padding-top: 72px; }
  .site-header { background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: 0 1px 8px rgba(0,0,0,.06); }
  .site-header .container { padding-inline: 12px; gap: 8px; }
  .site-header .logo img { width: clamp(110px,34vw,156px); }
  .site-header .actions { gap: 8px; }
  .site-header .mobile-nav__call-row { display: inline-flex; align-items: center; gap: 8px; margin: 0; }
  .site-header .mobile-nav__call-logo { width: clamp(92px,28vw,148px); }
  .site-header .nav-call-button { display: inline-flex; min-width: unset; padding: 12px 16px; font-size: 14px; }
  .burger-menu { width: 24px; height: 24px; background: transparent; }
  .mobile-nav { padding: 20px 16px 32px; background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .mobile-nav .nav { gap: 20px; }
  .mobile-nav .nav a { font-size: 18px; }
  body:not(.page-about) .hero,
  body:not(.page-about) .contact-hero { min-height: auto !important; padding-top: calc(var(--header-height) + 5.33px) !important; align-items: flex-start !important; }
  body:not(.page-about) .hero-title { margin-top: 10.67px !important; }
  .hero,
  .hero-service,
  .hero-coding,
  .hero-snyatie-pohmelya,
  .hero-premium-hangover,
  .contact-hero { background-attachment: scroll !important; }
  .hero-title .hero-location { gap: 8px; align-items: flex-start; }
  .hero-title .hero-location img { width: 52px; }
  .hero-title .hero-location__text { font-size: .95rem; }
  .hero-subtitle { font-size: 1rem; }
  .hero-buttons { gap: 12px; }
  .cta-button { padding: 16px 18px; font-size: 1rem; }
  .service-card .service-card__cta.cta-button { padding: 12px 16px; font-size: 14px; }
  .solution-new,
  .urgent-call-section { background-attachment: scroll !important; }
}

@media (max-width: 768px), (prefers-reduced-motion: reduce) {
  *, *:before, *:after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .cta-button-pulse, .anim { animation: none !important; }
  .site-header, .mobile-nav { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
}

.fab-btn picture { display: flex; align-items: center; justify-content: center; width: 60%; height: 60%; }
.fab-btn picture img { width: 100%; height: 100%; object-fit: contain; margin: 0 auto; }
.fab-tg img, .fab-chat img { transform: translateX(2px); }

/* --- Mobile header: phone link hidden by default --- */
.header-phone { display: none; }

@media (max-width: 1024px) {
  .site-header .logo img { display: block !important; }
}

@media (max-width: 768px) {
  /* Show main logo on mobile — preserve aspect ratio */
  .site-header .logo img {
    display: block !important;
    width: auto !important;
    height: 28px !important;
    max-width: 160px;
    transform: none;
  }

  /* Two-row mobile header */
  .site-header .container {
    flex-wrap: wrap !important;
    padding: 10px 16px 8px !important;
  }

  .site-header .logo {
    order: 1 !important;
    flex: 0 0 auto;
  }

  .site-header .burger-menu {
    order: 2 !important;
    margin-left: auto;
    margin-right: 0 !important;
    width: 24px !important;
    height: 24px !important;
    background: transparent !important;
    padding: 0 !important;
  }

  .site-header .burger-menu span {
    width: 22px;
    height: 2px;
  }

  /* Row 2: phone + call button */
  .site-header .actions {
    order: 3 !important;
    flex: 0 0 100% !important;
    width: 100% !important;
    margin-left: 0 !important;
    padding-top: 4px;
    gap: 8px !important;
    justify-content: space-between !important;
  }

  .site-header .mobile-nav__call-row {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 10px;
    margin: 0 !important;
  }

  /* Hide duplicate logo on mobile */
  .site-header .mobile-nav__call-logo { display: none !important; }

  /* Show phone number on mobile */
  .header-phone {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 700;
    color: #0b1220;
    text-decoration: none;
    white-space: nowrap;
    min-width: 0;
  }

  .header-phone__icon { flex-shrink: 0; }

  /* Pill-shaped call button — compact for mobile */
  .site-header .nav-call-button {
    display: inline-flex !important;
    padding: 8px 14px !important;
    font-size: 13px !important;
    border-radius: 999px !important;
    height: auto !important;
    max-width: none !important;
    margin-right: 0 !important;
    line-height: 1.2 !important;
    box-shadow: none !important;
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    overflow: visible !important;
    width: auto !important;
  }
}

