.site-header__mobile-actions,
.mobile-menu,
.mobile-menu-backdrop,
.mobile-contact-bar {
  display: none;
}

.mobile-menu[hidden],
.mobile-menu-backdrop[hidden] {
  display: none !important;
}

@media (max-width: 768px) {
  body {
    padding-bottom: calc(84px + env(safe-area-inset-bottom));
  }

  main {
    padding-bottom: 16px;
  }

  body.mobile-menu-open {
    overflow: hidden;
  }

  .site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid #e6ebf1;
    box-shadow: 0 4px 16px rgba(8, 47, 99, 0.06);
    backdrop-filter: blur(8px);
  }

  .site-header__container {
    width: 100%;
    max-width: none;
    min-height: 68px;
    margin: 0;
    padding: 10px 16px;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .site-header .brand {
    min-width: 0;
    flex: 1 1 auto;
  }

  .site-header .brand img {
    display: block;
    width: 120px;
    height: auto;
    max-height: 48px;
    object-fit: contain;
  }

  .site-header__desktop-nav,
  .site-header__desktop-actions {
    display: none !important;
  }

  .site-header__mobile-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
  }

  .site-header__phone-button,
  .site-header__menu-button {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    flex: 0 0 44px;
    border: 1px solid #dfe7f0;
    border-radius: 50%;
    background: #fff;
    color: #082f63;
    cursor: pointer;
  }

  .site-header__phone-button {
    border-color: #ff712b;
    background: #ff712b;
  }

  .site-header__phone-button img {
    width: 22px;
    height: 22px;
  }

  .site-header__menu-button {
    position: relative;
    border-color: transparent;
  }

  .site-header__menu-button span,
  .site-header__menu-button::before,
  .site-header__menu-button::after {
    display: block;
    width: 28px;
    height: 3px;
    border-radius: 99px;
    background: currentColor;
    content: "";
    transition: transform .2s ease, opacity .2s ease;
  }

  .site-header__menu-button::before,
  .site-header__menu-button::after {
    position: absolute;
  }

  .site-header__menu-button::before { transform: translateY(-8px); }
  .site-header__menu-button::after { transform: translateY(8px); }
  .site-header.menu-open .site-header__menu-button span { opacity: 0; }
  .site-header.menu-open .site-header__menu-button::before { transform: rotate(45deg); }
  .site-header.menu-open .site-header__menu-button::after { transform: rotate(-45deg); }

  .mobile-menu-backdrop {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(8, 22, 40, .56);
  }

  .mobile-menu-backdrop:not([hidden]) {
    display: block;
  }

  .mobile-menu {
    position: absolute;
    top: 100%;
    right: 12px;
    left: 12px;
    z-index: 1000;
    max-height: calc(100vh - 82px);
    overflow-y: auto;
    padding: 20px 16px 22px;
    border: 1px solid #e1e8f0;
    border-top: 0;
    border-radius: 0 0 18px 18px;
    background: #fff;
    box-shadow: 0 18px 36px rgba(8, 47, 99, .18);
  }

  .mobile-menu:not([hidden]) {
    display: block;
  }

  .mobile-menu__nav {
    display: grid !important;
    gap: 4px;
    margin: 0;
  }

  .mobile-menu__nav a {
    display: flex;
    min-height: 48px;
    align-items: center;
    padding: 0 4px;
    color: #142a49;
    font-size: 16px;
    font-weight: 700;
  }

  .mobile-menu__contact {
    display: grid;
    gap: 4px;
    margin-top: 14px;
    padding-top: 16px;
    border-top: 1px solid #e6ebf1;
  }

  .mobile-menu__phone {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #142a49;
    font-size: 18px;
    font-weight: 800;
  }

  .mobile-menu__phone img {
    width: 22px;
    height: 22px;
    padding: 3px;
    border-radius: 50%;
    background: #ff712b;
  }

  .mobile-menu__hours {
    margin-left: 32px;
    color: #5f728b;
    font-size: 14px;
  }

  .mobile-menu__callback {
    display: flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    margin-top: 14px;
    border-radius: 12px;
    background: linear-gradient(180deg, #ff7a24, #ff6600);
    color: #fff;
    font-weight: 800;
  }

  .mobile-contact-bar {
    position: fixed;
    right: 12px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    left: 12px;
    z-index: 1001;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 8px;
    border: 1px solid #e1e8f0;
    border-radius: 16px;
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 10px 30px rgba(8, 47, 99, .16);
    backdrop-filter: blur(10px);
  }

  body:has(.privacy-consent-popup) .mobile-contact-bar {
    bottom: calc(190px + env(safe-area-inset-bottom));
  }

  .mobile-contact-bar a {
    display: flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 10px;
    font-weight: 800;
    text-decoration: none;
  }

  .mobile-contact-bar a img {
    width: 20px;
    height: 20px;
  }

  .mobile-contact-bar__call {
    background: #ff712b;
    color: #fff;
  }

  .mobile-contact-bar__message {
    border: 1px solid #ff712b;
    background: #fff;
    color: #ff6521;
  }
}
