/* batch 18 (2026-10-27): mobile-only utilities (<640px) used by the in-place patched chunks.
   Same class names as Tailwind v4 max-sm: variant, so a future `vite build` generates them natively.
   Unlayered on purpose: beats the @layer utilities base classes; desktop (>=640px) is untouched. */
@media (max-width: 639.98px) {
  .max-sm\:px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
  .max-sm\:px-0 { padding-left: 0; padding-right: 0; }
  .max-sm\:p-4 { padding: 1rem; }
  .max-sm\:p-5 { padding: 1.25rem; }
  .max-sm\:rounded-3xl { border-radius: 1.5rem; }
  .max-sm\:-mx-3 { margin-left: -0.75rem; margin-right: -0.75rem; }
  .max-sm\:w-\[calc\(100\%\+1\.5rem\)\] { width: calc(100% + 1.5rem); }
  .max-sm\:text-left { text-align: left; }
}

/* batch 20 (2026-10-27): footer «Подписывайтесь» icons in one row on phones (SocialLinks ul) */
@media (max-width: 639.98px) {
  .max-sm\:flex-nowrap { flex-wrap: nowrap; }
  .max-sm\:justify-between { justify-content: space-between; }
  .max-sm\:gap-0\!.max-sm\:gap-0\! { gap: 0 !important; } /* doubled class: beats late-loaded .footer-social-icons{gap:1.5rem!important} */
  .max-sm\:\[\&_a\]\:px-3\! a { padding-left: 0.75rem !important; padding-right: 0.75rem !important; }
}
/* b24: phone heroes grow to fit content, clear fixed header (2026-10-29) */
@media (max-width:639px){
  section.relative.overflow-hidden.items-center[class*="h-[70vh]"],
  section.relative.overflow-hidden.items-center[class*="h-[80vh]"],
  section.relative.overflow-hidden.items-center[class*="h-[85vh]"],
  section.relative.overflow-hidden.items-center[class*="h-[90vh]"]{
    height:auto!important;min-height:80vh;min-height:80svh;
    padding-top:7rem!important;padding-bottom:3rem!important;}
}

/* b26 header: option D, full-width minimal 52px bar, plain phone icon (2026-10-29) */
header.fixed.top-0{padding:0!important;background:#fff;border-bottom:1px solid #E8E2D6}
header.fixed.top-0 > nav{border:0!important;border-radius:0!important;box-shadow:none!important;height:52px;padding:0 4px 0 16px!important}
header.fixed.top-0 > nav > button:first-child > div{width:30px!important;height:30px!important}
header.fixed.top-0 > nav > button:first-child span{font-size:1rem!important}
html body header.fixed.top-0 a.phone-btn{background:transparent!important;background-color:transparent!important;color:#2F6DB5!important;box-shadow:none!important;width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important}
html body header.fixed.top-0 a.phone-btn svg{width:22px!important;height:22px!important} html body header.fixed.top-0 a.phone-btn svg path{fill:#2F6DB5!important}
@media(max-width:1023px){header.fixed.top-0 > nav button.lg\:hidden{width:44px;height:44px;display:flex;align-items:center;justify-content:center}}
@media(min-width:1024px){header.fixed.top-0 > nav{height:60px;padding:0 32px!important}header.fixed.top-0 .phone-btn{background:transparent!important}}
/* b26: b24 hero top padding re-tuned for 52px header */
@media (max-width:639px){section.relative.overflow-hidden.items-center[class*="h-[70vh]"],section.relative.overflow-hidden.items-center[class*="h-[80vh]"],section.relative.overflow-hidden.items-center[class*="h-[85vh]"],section.relative.overflow-hidden.items-center[class*="h-[90vh]"]{padding-top:4.5rem!important}}

/* b26b menu: full-width panel under header D (2026-10-29) */
div[role="dialog"][aria-label="Мобильное меню"]{top:53px!important;left:0!important;right:0!important;border-radius:0!important;padding:4px 0 16px!important;background:#fff!important;border-top:1px solid #E8E2D6;border-bottom:1px solid #E8E2D6;box-shadow:0 8px 16px -8px rgba(26,33,30,.18)!important;max-height:calc(100vh - 53px)!important;max-height:calc(100dvh - 53px)!important;overflow-y:auto!important;-webkit-overflow-scrolling:touch;overscroll-behavior:contain}
@media(min-width:1024px){div[role="dialog"][aria-label="Мобильное меню"]{top:61px!important;max-height:calc(100dvh - 61px)!important}}
div[role="dialog"][aria-label="Мобильное меню"] nav > div > div{padding:0!important;border-bottom:1px solid #F0EBE1!important}
div[role="dialog"][aria-label="Мобильное меню"] .compact-nav-item{display:flex!important;align-items:center;min-height:48px!important;padding:0 20px!important;font-size:1rem;-webkit-tap-highlight-color:transparent}
div[role="dialog"][aria-label="Мобильное меню"] .compact-nav-item:hover,div[role="dialog"][aria-label="Мобильное меню"] .compact-nav-item:active,div[role="dialog"][aria-label="Мобильное меню"] .compact-nav-item:focus-visible{background:#F5F1E9;color:#756148!important}
div[role="dialog"][aria-label="Мобильное меню"] > *:not(nav){margin-left:20px;margin-right:20px}
div[role="dialog"][aria-label="Мобильное меню"] nav ~ * button,div[role="dialog"][aria-label="Мобильное меню"] nav ~ * a{min-height:44px}
div[role="dialog"][aria-label="Мобильное меню"] [class*="bg-[#756148]"]{width:calc(100% - 40px)!important;margin-left:20px!important;margin-right:20px!important}
