@media (min-width: 821px), (min-width: 768px) and (min-height: 981px) {
  .mobile-menu-toggle,
  .mobile-drawer,
  .mobile-drawer-backdrop {
    display: none !important;
  }
}

@media (max-width: 767px), (max-width: 820px) and (max-height: 980px) {
  body.mobile-drawer-open {
    overflow: hidden;
  }

  .site-header {
    padding: 0 !important;
    z-index: 80;
  }

  .site-header .wrap,
  .site-header__inner {
    width: min(100% - 28px, 1380px) !important;
  }

  .site-header__inner {
    box-sizing: border-box !important;
    display: flex !important;
    grid-template-columns: none !important;
    align-items: center !important;
    min-height: 116px !important;
    height: auto !important;
    gap: 10px !important;
    padding: 10px 0 !important;
    flex-wrap: wrap !important;
  }

  .brand {
    display: flex !important;
    align-items: center !important;
    min-width: 0 !important;
    min-height: 44px !important;
    order: 1 !important;
    flex: 1 1 auto !important;
  }

  .brand__name {
    font-size: 27px !important;
    line-height: .9 !important;
  }

  .brand__sub {
    font-size: 9px !important;
    line-height: 1.1 !important;
  }

  .site-header .nav {
    display: none !important;
  }

  .header-actions {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-column: auto !important;
    width: 100% !important;
    margin-left: 0 !important;
    order: 3 !important;
    flex: 0 0 100% !important;
    gap: 8px !important;
  }

  .header-actions .btn {
    min-height: 46px !important;
    height: 46px !important;
    padding: 0 12px !important;
    border-radius: 9px !important;
    font-size: 12px !important;
    line-height: 1 !important;
    flex: 1 1 auto !important;
  }

  .header-actions .btn--ghost {
    display: inline-flex !important;
  }

  body.mobile-has-hero-primary .site-header .header-actions {
    display: grid !important;
  }

  .mobile-menu-toggle {
    order: 2 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, .14);
    background: rgba(255, 255, 255, .06);
    color: #fff4dd;
    cursor: pointer;
  }

  .mobile-menu-toggle span,
  .mobile-menu-toggle::before,
  .mobile-menu-toggle::after {
    content: "";
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
  }

  .mobile-menu-toggle {
    flex-direction: column;
    gap: 4px;
  }

  .mobile-drawer-backdrop {
    position: fixed;
    inset: 0;
    z-index: 88;
    display: none;
    background: rgba(0, 0, 0, .58);
    backdrop-filter: blur(3px);
  }

  .mobile-drawer {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 90;
    display: flex;
    flex-direction: column;
    width: min(86vw, 360px);
    height: 100dvh;
    max-height: 100dvh;
    padding: 18px;
    transform: translateX(100%);
    transition: transform .22s ease;
    border-left: 1px solid rgba(255, 255, 255, .12);
    background: linear-gradient(180deg, rgba(12, 12, 12, .98), rgba(5, 5, 5, .98));
    box-shadow: -24px 0 60px rgba(0, 0, 0, .44);
    color: #fff8eb;
    overflow-y: auto;
  }

  body.mobile-drawer-open .mobile-drawer-backdrop {
    display: block;
  }

  body.mobile-drawer-open .mobile-drawer {
    transform: translateX(0);
  }

  .mobile-drawer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
  }

  .mobile-drawer__title {
    font-size: 13px;
    font-weight: 950;
    color: #f3d98b;
    text-transform: uppercase;
    letter-spacing: .12em;
  }

  .mobile-drawer__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, .14);
    background: rgba(255, 255, 255, .06);
    color: #fff;
    font-size: 24px;
    cursor: pointer;
  }

  .mobile-drawer__nav {
    display: grid;
    gap: 6px;
    padding: 16px 0;
  }

  .mobile-drawer__nav a,
  .mobile-drawer__guides-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 48px;
    padding: 0 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, .08);
    background: rgba(255, 255, 255, .035);
    color: #eee3d2;
    font-size: 15px;
    font-weight: 850;
    text-decoration: none;
  }

  .mobile-drawer__nav a:focus-visible,
  .mobile-drawer__guides-toggle:focus-visible,
  .mobile-drawer__close:focus-visible,
  .mobile-menu-toggle:focus-visible {
    outline: 2px solid #f3d98b;
    outline-offset: 2px;
  }

  .mobile-drawer__guides {
    display: grid;
    gap: 6px;
  }

  .mobile-drawer__guides-toggle {
    width: 100%;
    cursor: pointer;
  }

  .mobile-drawer__guides-toggle::after {
    content: "+";
    color: #f3d98b;
    font-size: 18px;
  }

  .mobile-drawer__guides[open] .mobile-drawer__guides-toggle::after {
    content: "-";
  }

  .mobile-drawer__guides-toggle::-webkit-details-marker {
    display: none;
  }

  .mobile-drawer__submenu {
    display: grid;
    gap: 6px;
    padding-left: 10px;
  }

  .mobile-drawer__submenu a {
    min-height: 44px;
    font-size: 14px;
    color: #d8cfbd;
  }

  .mobile-drawer__actions {
    display: grid;
    gap: 8px;
    padding-top: 14px;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, .1);
  }

  .mobile-drawer__actions a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, .12);
    font-weight: 950;
    text-decoration: none;
  }

  .mobile-drawer__register {
    color: #fff;
    background: linear-gradient(135deg, #ff4d45, #df2e2e);
  }

  .mobile-drawer__login {
    color: #f6f1e7;
    background: rgba(255, 255, 255, .055);
  }

  .hero {
    padding-top: 44px !important;
    padding-bottom: 34px !important;
  }

  .hero__inner {
    padding-top: 48px !important;
    padding-bottom: 78px !important;
  }

  .hero,
  .hero__inner {
    min-height: 500px !important;
  }

  .hero h1,
  .hero__title {
    font-size: clamp(32px, 10vw, 39px) !important;
  }

  .hero p,
  .hero__desc {
    font-size: 16px !important;
    line-height: 1.55 !important;
  }

  .hero__actions .btn,
  .hero-actions .btn {
    min-height: 48px !important;
  }

  .hero .hero__actions {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  .hero .hero__actions .btn {
    width: auto !important;
    min-width: 0 !important;
    padding: 0 12px !important;
  }

  .hero a[href*="login"],
  .hero__actions a[href*="login"],
  .hero-actions a[href*="login"] {
    display: none !important;
  }

  .hero__actions .btn--gold,
  .hero-actions .btn--ghost:not(:only-child) {
    min-height: 44px !important;
  }
}

@media (max-width: 360px) {
  .hero .hero__actions {
    grid-template-columns: 1fr !important;
  }
}
