/* Shared navigation treatment with the CARRO.Бизнес blog. */
.mobile-menu {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100vh;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom);
  border: 0;
  border-radius: 0;
  background: var(--page, #fff);
  color: var(--ink);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.mobile-menu::backdrop { background: var(--page, #fff); backdrop-filter: none; }
.mobile-menu[open] { animation: menu-reveal 220ms ease-out both; }
.mobile-menu-top {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.mobile-menu-close {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 44px;
  min-height: 44px;
  padding: 8px 0 8px 12px;
  color: var(--muted);
  background: none;
  border: 0;
  font-size: 13px;
}
.menu-cross { position: relative; width: 20px; height: 20px; }
.menu-cross::before, .menu-cross::after {
  content: '';
  position: absolute;
  top: 9px;
  left: 0;
  width: 20px;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  transform: rotate(45deg);
}
.menu-cross::after { transform: rotate(-45deg); }
.mobile-menu-links { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding-block: 36px 56px; }
.mobile-menu-links > a {
  display: block;
  max-width: 100%;
  padding-block: 9px;
  font-size: clamp(32px, 7vw, 48px);
  font-weight: 550;
  line-height: 1.25;
  letter-spacing: -.045em;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.mobile-menu[open] .mobile-menu-links > a {
  animation: menu-item-reveal 320ms cubic-bezier(.2,.7,.2,1) both;
  animation-delay: calc(35ms + var(--item-index) * 35ms);
}
.mobile-menu-links > a:hover { color: var(--muted); }
.header .nav { gap: 18px; }
@keyframes menu-reveal { from { opacity: 0; } to { opacity: 1; } }
@keyframes menu-item-reveal { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 1200px) {
  .header .nav { display: none; }
  .header .header-actions { margin-left: auto; }
  .header .header-actions > .button { display: none; }
  .header .menu-toggle { display: grid; width: 44px; height: 44px; }
}
@media (max-width: 700px) { .mobile-menu-top { min-height: 68px; } }
@media (max-width: 540px) {
  .mobile-menu-links { padding-top: 30px; gap: 10px; }
  .mobile-menu-close { font-size: 12px; gap: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  .mobile-menu[open], .mobile-menu[open] .mobile-menu-links > a { animation: none; }
}
