@media (max-width: 1500px) {
  .store-shell,
  .products-shell,
  .orders-shell,
  .guide-shell,
  .faq-shell,
  .contact-shell {
    width: min(100% - 48px, 1830px);
  }

  .store-header,
  .products-header,
  .orders-header,
  .guide-header,
  .faq-header,
  .contact-header {
    grid-template-columns: 360px minmax(0, 1fr) 230px;
  }

  .store-nav,
  .products-nav,
  .orders-nav,
  .guide-nav,
  .faq-nav,
  .contact-nav {
    gap: 28px;
  }

  .content-grid {
    grid-template-columns: minmax(0, 1fr) 470px;
  }

  .products-hero,
  .orders-hero {
    grid-template-columns: 390px minmax(0, 1fr) 500px;
  }

  .catalog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .query-card {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .contact-layout {
    grid-template-columns: 330px minmax(0, 1fr);
  }
}

@media (max-width: 1180px) {
  .store-shell,
  .products-shell,
  .orders-shell,
  .guide-shell,
  .faq-shell,
  .contact-shell {
    width: min(100% - 32px, 1830px);
    padding-top: 16px;
  }

  .store-header,
  .products-header,
  .orders-header,
  .guide-header,
  .faq-header,
  .contact-header {
    grid-template-columns: 1fr;
    height: auto;
    gap: 14px;
    padding: 14px 16px;
  }

  .store-brand {
    justify-content: center;
  }

  .store-nav,
  .products-nav,
  .orders-nav,
  .guide-nav,
  .faq-nav,
  .contact-nav {
    justify-content: flex-start;
    gap: 22px;
    width: 100%;
    min-height: 44px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 2px 4px;
    scrollbar-width: none;
    white-space: nowrap;
  }

  .store-nav::-webkit-scrollbar,
  .products-nav::-webkit-scrollbar,
  .orders-nav::-webkit-scrollbar,
  .guide-nav::-webkit-scrollbar,
  .faq-nav::-webkit-scrollbar,
  .contact-nav::-webkit-scrollbar {
    display: none;
  }

  .store-nav a,
  .products-nav a,
  .orders-nav a,
  .guide-nav a,
  .faq-nav a,
  .contact-nav a {
    flex: 0 0 auto;
    height: 44px;
  }

  .header-actions {
    justify-content: center;
    width: 100%;
  }

  .mf-hero,
  .products-hero,
  .orders-hero,
  .guide-hero,
  .faq-hero,
  .contact-hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 30px;
  }

  .hero-copy-block,
  .guide-hero-copy,
  .faq-hero-copy,
  .contact-hero-copy {
    padding: 0;
  }

  .hero-art,
  .market-art,
  .query-art,
  .guide-art,
  .faq-art,
  .contact-art {
    display: none;
  }

  .hero-features,
  .hero-tags {
    flex-wrap: wrap;
    gap: 18px;
  }

  .content-grid,
  .products-layout,
  .orders-layout,
  .guide-layout,
  .faq-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .side-column,
  .filter-column,
  .guide-sidebar,
  .faq-sidebar,
  .contact-sidebar {
    order: 2;
  }

  .products-content,
  .guide-content,
  .faq-main-card,
  .chat-panel {
    order: 1;
  }

  .products-toolbar,
  .orders-tabs,
  .chat-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .sort-row,
  .category-tabs,
  .orders-tabs > div,
  .faq-tabs {
    flex-wrap: wrap;
    gap: 10px;
  }

  .search-box,
  .faq-search {
    width: 100%;
  }

  .catalog-grid,
  .contact-cards,
  .service-metrics,
  .auto-grid,
  .notice-grid,
  .help-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-badges,
  .order-badges,
  .guide-help-band,
  .faq-help-band,
  .solution-band {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 22px;
  }

  .query-card {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .flow-steps,
  .code-preview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .flow-steps::before {
    display: none;
  }

  .store-footer,
  .guide-footer,
  .faq-footer,
  .contact-footer {
    grid-template-columns: 1fr;
    gap: 12px;
    min-height: 0;
    padding: 20px;
    text-align: center;
  }

  .store-footer nav,
  .guide-footer nav,
  .faq-footer nav,
  .contact-footer nav {
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
  }
}

@media (max-width: 760px) {
  .store-shell,
  .products-shell,
  .orders-shell,
  .guide-shell,
  .faq-shell,
  .contact-shell {
    width: min(100% - 20px, 1830px);
    padding-top: 10px;
  }

  .brand-title {
    font-size: 22px;
  }

  .brand-subtitle {
    display: none;
  }

  .store-logo {
    width: 36px;
    height: 36px;
  }

  .header-actions {
    gap: 10px;
  }

  .ghost-login,
  .register-button {
    min-width: 78px;
    height: 40px;
  }

  .theme-button {
    width: 34px;
    min-width: 34px;
    height: 40px;
  }

  .mf-hero,
  .products-hero,
  .orders-hero,
  .guide-hero,
  .faq-hero,
  .contact-hero {
    padding: 24px 18px;
  }

  .hero-copy-block h1,
  .products-hero h1,
  .orders-hero h1,
  .guide-hero h1,
  .faq-hero h1,
  .contact-hero h1 {
    font-size: 36px;
    line-height: 1.12;
  }

  .hero-copy-block p,
  .products-hero p,
  .orders-hero p,
  .guide-hero h2,
  .faq-hero p,
  .contact-hero p {
    font-size: 17px;
  }

  .hero-features,
  .hero-tags {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-feature {
    width: 100%;
  }

  .products-panel,
  .process-card,
  .notice-card,
  .security-card,
  .filter-card,
  .guide-panel,
  .faq-main-card,
  .faq-side-card,
  .side-panel,
  .chat-panel,
  .query-card,
  .orders-table-card {
    padding-left: 16px;
    padding-right: 16px;
  }

  .shop-product-row {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
  }

  .shop-product-buy {
    grid-column: 1 / -1;
    grid-template-columns: 1fr 120px;
    width: 100%;
  }

  .shop-product-buy .stock {
    display: none;
  }

  .shop-product-buy .price {
    text-align: left;
  }

  .product-title-line {
    flex-wrap: wrap;
  }

  .product-title-line h3,
  .shop-product-info p,
  .catalog-info h3 {
    white-space: normal;
  }

  .catalog-grid,
  .contact-cards,
  .service-metrics,
  .auto-grid,
  .notice-grid,
  .help-actions,
  .flow-steps,
  .code-preview-grid,
  .security-grid {
    grid-template-columns: 1fr;
  }

  .catalog-card {
    padding: 20px 16px 16px;
  }

  .catalog-card-head {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 14px;
  }

  .catalog-logo {
    width: 58px;
    height: 58px;
  }

  .products-toolbar,
  .sort-row,
  .pagination,
  .orders-pagination,
  .orders-tabs,
  .faq-tabs,
  .query-actions,
  .chat-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .sort-row button,
  .category-tabs button,
  .query-actions button,
  .chat-heading button {
    width: 100%;
  }

  .query-card {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .date-field div {
    grid-template-columns: 1fr;
    height: auto;
    padding: 8px;
  }

  .date-field b,
  .date-field i {
    display: none;
  }

  .orders-tabs > div {
    align-items: stretch;
    flex-direction: column;
    height: auto;
    width: 100%;
  }

  .tab-button {
    justify-content: space-between;
    height: 42px;
  }

  .orders-table,
  table {
    min-width: 980px;
  }

  .faq-search {
    grid-template-columns: 1fr;
  }

  .faq-question,
  .faq-question.wide {
    grid-template-columns: 24px minmax(0, 1fr) 20px;
    row-gap: 8px;
    padding: 10px 0;
  }

  .faq-question.wide .q-icon:nth-of-type(n + 2),
  .faq-question.wide span:nth-of-type(n + 4):not(.chevron) {
    display: none;
  }

  .mini-order-card dl,
  .success-card,
  .contact-methods button,
  .message-row,
  .chat-input,
  .help-metric {
    grid-template-columns: 1fr;
  }

  .quick-questions {
    padding: 12px 16px 28px;
  }

  .quick-questions button {
    width: 100%;
    height: auto;
    min-height: 34px;
    white-space: normal;
  }

  .message-bubble,
  .user-message {
    width: auto;
    max-width: 100%;
  }

  .user-message {
    margin-right: 16px;
    margin-left: 16px;
  }

  .solution-band a,
  .contact-cards button,
  .help-actions button {
    width: 100%;
    margin: 0 0 10px;
  }
}

@media (max-width: 420px) {
  .store-shell,
  .products-shell,
  .orders-shell,
  .guide-shell,
  .faq-shell,
  .contact-shell {
    width: min(100% - 14px, 1830px);
  }

  .store-header,
  .products-header,
  .orders-header,
  .guide-header,
  .faq-header,
  .contact-header {
    padding: 12px;
  }

  .hero-copy-block h1,
  .products-hero h1,
  .orders-hero h1,
  .guide-hero h1,
  .faq-hero h1,
  .contact-hero h1 {
    font-size: 31px;
  }

  .primary-button,
  .secondary-button,
  .danger-button,
  .icon-button,
  .buy-button,
  .catalog-buy {
    min-height: 40px;
  }

  .product-logo {
    width: 50px;
    height: 50px;
  }

  .shop-product-row {
    grid-template-columns: 50px minmax(0, 1fr);
  }
}
