/* Premium mobile catalog drawer */
@media (max-width: 820px) {
  .catalog-modal.catalog-modal--premium-mobile {
    align-items: end;
    padding: 0;
  }

  .catalog-modal--premium-mobile .catalog-modal-backdrop {
    background: rgba(10, 25, 49, 0.56);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
  }

  .catalog-modal--premium-mobile .catalog-dialog {
    position: absolute;
    inset: auto 0 72px;
    width: 100%;
    height: min(88dvh, 780px);
    max-height: calc(100dvh - 84px);
    overflow: hidden;
    border: 0;
    border-radius: 28px 28px 0 0;
    background: #f5f8fd;
    box-shadow: 0 -18px 60px rgba(17, 50, 94, 0.24);
    transform: translateY(24px);
    opacity: 0;
    transition: transform 220ms ease, opacity 180ms ease;
  }

  .catalog-modal--premium-mobile.is-open .catalog-dialog {
    transform: translateY(0);
    opacity: 1;
  }

  .catalog-modal--premium-mobile .catalog-modal-head {
    position: relative;
    z-index: 3;
    min-height: 94px;
    padding: 20px 20px 17px;
    border-bottom: 1px solid #dbe6f4;
    background:
      radial-gradient(circle at 92% -30%, rgba(0, 91, 214, 0.11), transparent 44%),
      linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  }

  .catalog-modal--premium-mobile .catalog-modal-head::before {
    position: absolute;
    top: 8px;
    left: 50%;
    width: 44px;
    height: 4px;
    content: "";
    border-radius: 999px;
    background: #d5deeb;
    transform: translateX(-50%);
  }

  .catalog-modal--premium-mobile .catalog-modal-head h2 {
    margin-top: 8px;
    color: #0d1c33;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -0.025em;
  }

  .catalog-modal--premium-mobile .catalog-modal-head p {
    display: block;
    max-width: 270px;
    margin: 6px 0 0;
    color: #708096;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
  }

  .catalog-modal--premium-mobile .catalog-close-button {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border: 1px solid #d8e3f1;
    border-radius: 14px;
    color: #23344e;
    background: #fff;
    box-shadow: 0 6px 18px rgba(39, 74, 120, 0.08);
  }

  .catalog-modal--premium-mobile .catalog-modal-layout {
    position: relative;
    display: block;
    height: calc(100% - 94px);
    overflow: hidden;
  }

  .catalog-modal--premium-mobile .catalog-panel-sidebar,
  .catalog-modal--premium-mobile .catalog-panel-content {
    height: 100%;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: none;
  }

  .catalog-modal--premium-mobile .catalog-panel-sidebar::-webkit-scrollbar,
  .catalog-modal--premium-mobile .catalog-panel-content::-webkit-scrollbar {
    display: none;
  }

  .catalog-modal--premium-mobile .catalog-panel-sidebar {
    display: block;
    padding: 18px 16px 28px;
    border: 0;
    background: transparent;
  }

  .catalog-modal--premium-mobile .catalog-panel-search {
    position: sticky;
    top: 0;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 52px;
    margin: -2px 0 14px;
    overflow: hidden;
    border: 1px solid #cbd9ec;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 26px rgba(35, 76, 129, 0.08);
  }

  .catalog-modal--premium-mobile .catalog-panel-search input {
    min-width: 0;
    height: 52px;
    padding: 0 15px;
    border: 0;
    outline: 0;
    color: #12213a;
    background: transparent;
    font-size: 14px;
    font-weight: 650;
  }

  .catalog-modal--premium-mobile .catalog-panel-search input::placeholder {
    color: #92a0b4;
  }

  .catalog-modal--premium-mobile .catalog-panel-search button {
    display: grid;
    place-items: center;
    border: 0;
    color: #fff;
    background: linear-gradient(145deg, #096be4, #0057c8);
  }

  .catalog-modal--premium-mobile .catalog-panel-search button svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
  }

  .catalog-mobile-overview {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 2px 2px 12px;
  }

  .catalog-mobile-overview strong {
    color: #15243c;
    font-size: 13px;
    font-weight: 900;
  }

  .catalog-mobile-overview span {
    color: #7b8ba2;
    font-size: 11px;
    font-weight: 700;
  }

  .catalog-mobile-all-categories {
    display: flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-bottom: 12px;
    color: #0057c8;
    border: 1px solid #c7d9f0;
    border-radius: 15px;
    background: linear-gradient(180deg, #fff, #f8fbff);
    font-size: 13px;
    font-weight: 900;
  }

  .catalog-mobile-all-categories svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
  }

  .catalog-modal--premium-mobile .catalog-panel-menu {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 0;
  }

  .catalog-modal--premium-mobile .catalog-panel-menu-link {
    position: relative;
    display: grid;
    min-height: 132px;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto 1fr auto;
    gap: 10px 8px;
    align-items: start;
    padding: 14px;
    overflow: hidden;
    color: #16253d;
    border: 1px solid #d6e2f0;
    border-radius: 18px;
    background:
      radial-gradient(circle at 100% 0, rgba(16, 111, 229, 0.09), transparent 46%),
      #fff;
    box-shadow: 0 8px 24px rgba(33, 75, 128, 0.06);
  }

  .catalog-modal--premium-mobile .catalog-panel-menu-link:hover,
  .catalog-modal--premium-mobile .catalog-panel-menu-link:focus-visible {
    border-color: #9fc0eb;
    box-shadow: 0 12px 28px rgba(21, 87, 173, 0.12);
  }

  .catalog-modal--premium-mobile .catalog-panel-menu-link.is-mobile-featured {
    grid-column: 1 / -1;
    min-height: 102px;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    align-items: center;
    color: #fff;
    border-color: transparent;
    background:
      radial-gradient(circle at 88% 15%, rgba(255,255,255,.24), transparent 32%),
      linear-gradient(135deg, #0870e8 0%, #0054c4 68%, #0047a9 100%);
    box-shadow: 0 14px 34px rgba(0, 87, 200, 0.22);
  }

  .catalog-modal--premium-mobile .catalog-panel-icon {
    display: grid;
    width: 42px;
    height: 42px;
    grid-column: 1;
    grid-row: 1;
    place-items: center;
    color: #0867d9;
    border: 1px solid #d4e4f8;
    border-radius: 14px;
    background: #f5f9ff;
  }

  .catalog-modal--premium-mobile .catalog-panel-icon svg {
    width: 25px;
    height: 25px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
  }

  .catalog-modal--premium-mobile .is-mobile-featured .catalog-panel-icon {
    grid-row: 1 / 3;
    color: #fff;
    border-color: rgba(255,255,255,.28);
    background: rgba(255,255,255,.15);
  }

  .catalog-panel-menu-title {
    grid-column: 1 / -1;
    grid-row: 2;
    align-self: end;
    font-size: 14px;
    font-weight: 900;
    line-height: 1.2;
  }

  .catalog-panel-menu-meta {
    grid-column: 1 / -1;
    grid-row: 3;
    color: #8190a5;
    font-size: 10px;
    font-weight: 750;
  }

  .catalog-modal--premium-mobile .is-mobile-featured .catalog-panel-menu-title {
    grid-column: 2;
    grid-row: 1;
    align-self: end;
    font-size: 15px;
  }

  .catalog-modal--premium-mobile .is-mobile-featured .catalog-panel-menu-meta {
    grid-column: 2;
    grid-row: 2;
    align-self: start;
    color: rgba(255,255,255,.76);
  }

  .catalog-modal--premium-mobile .catalog-panel-chevron {
    width: 18px;
    height: 18px;
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    color: #8c9aaf;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
  }

  .catalog-modal--premium-mobile .is-mobile-featured .catalog-panel-chevron {
    grid-column: 3;
    grid-row: 1 / 3;
    color: #fff;
  }

  .catalog-mobile-empty {
    grid-column: 1 / -1;
    padding: 28px 20px;
    color: #7c899c;
    border: 1px dashed #c8d6e8;
    border-radius: 16px;
    background: #fff;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
  }

  .catalog-modal--premium-mobile .catalog-panel-content {
    display: none;
    padding: 16px 16px 30px;
    background: #f5f8fd;
  }

  .catalog-modal--premium-mobile.catalog-mobile-detail-open .catalog-panel-sidebar {
    display: none;
  }

  .catalog-modal--premium-mobile.catalog-mobile-detail-open .catalog-panel-content {
    display: block;
  }

  .catalog-mobile-back {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    padding: 0 13px;
    color: #075fcf;
    border: 1px solid #c9dbf1;
    border-radius: 13px;
    background: #fff;
    font-size: 12px;
    font-weight: 900;
  }

  .catalog-mobile-back svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
  }

  .catalog-modal--premium-mobile .catalog-panel-content-head {
    display: grid;
    gap: 12px;
    padding: 0 0 14px;
    border-bottom: 0;
  }

  .catalog-modal--premium-mobile .catalog-panel-content-head h2 {
    margin: 0;
    color: #10203a;
    font-size: 24px;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.025em;
  }

  .catalog-modal--premium-mobile .catalog-panel-content-head p {
    margin: 6px 0 0;
    color: #718198;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
  }

  .catalog-modal--premium-mobile .catalog-panel-all-link {
    display: inline-flex;
    width: fit-content;
    min-height: 44px;
    align-items: center;
    gap: 8px;
    padding: 0 13px;
    color: #fff;
    border-radius: 13px;
    background: linear-gradient(135deg, #0870e8, #0057c8);
    font-size: 12px;
    font-weight: 900;
    box-shadow: 0 10px 22px rgba(0,87,200,.16);
  }

  .catalog-modal--premium-mobile .catalog-panel-all-link svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
  }

  .catalog-modal--premium-mobile .catalog-panel-group {
    padding: 16px;
    border: 1px solid #d5e2f1;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(35, 75, 128, 0.07);
  }

  .catalog-modal--premium-mobile .catalog-panel-group-head {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 12px;
  }

  .catalog-modal--premium-mobile .catalog-panel-group-head h3 {
    margin: 0;
    color: #13223a;
    font-size: 16px;
    font-weight: 900;
  }

  .catalog-modal--premium-mobile .catalog-panel-group-icon {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    place-items: center;
    color: #0867d9;
    border-radius: 13px;
    background: #eef6ff;
  }

  .catalog-modal--premium-mobile .catalog-panel-group-icon svg {
    width: 25px;
    height: 25px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
  }

  .catalog-modal--premium-mobile .catalog-panel-sublist {
    display: grid;
    gap: 5px;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .catalog-modal--premium-mobile .catalog-panel-sublist .catalog-panel-sublist {
    margin: 5px 0 3px 12px;
    padding-left: 10px;
    border-left: 2px solid #e3edf8;
  }

  .catalog-modal--premium-mobile .catalog-panel-sublist a {
    display: flex;
    min-height: 44px;
    align-items: center;
    justify-content: space-between;
    padding: 8px 11px;
    color: #273750;
    border-radius: 12px;
    background: #f8fbff;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.3;
  }

  .catalog-modal--premium-mobile .catalog-panel-sublist a::after {
    flex: 0 0 auto;
    margin-left: 8px;
    content: "›";
    color: #1b6fdc;
    font-size: 18px;
    font-weight: 700;
  }
}

@media (max-width: 420px) {
  .catalog-modal--premium-mobile .catalog-dialog {
    inset-bottom: 68px;
    height: calc(100dvh - 78px);
    max-height: calc(100dvh - 78px);
    border-radius: 24px 24px 0 0;
  }

  .catalog-modal--premium-mobile .catalog-panel-menu {
    gap: 8px;
  }

  .catalog-modal--premium-mobile .catalog-panel-menu-link {
    min-height: 122px;
    padding: 12px;
  }
}
