@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;
  }

  .shop-product-info p {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-overflow: clip;
  }

  .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,
  .help-metric {
    grid-template-columns: 1fr;
  }

  .chat-input {
    grid-template-columns: minmax(0, 1fr) 34px 34px;
  }

  .chat-input > button[type="submit"] {
    grid-column: 1 / -1;
    width: 100%;
  }

  .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);
  }
}

@media (max-width: 1120px) {
  .tiannis-header {
    grid-template-columns: 180px auto auto;
    padding: 24px 26px 16px;
    gap: 18px;
  }

  .tiannis-menu {
    display: inline-flex;
    flex-direction: column;
    gap: 5px;
    justify-self: end;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, .22);
  }

  .tiannis-menu span {
    width: 18px;
    height: 2px;
    background: #fff;
  }

  .tiannis-nav {
    position: fixed;
    top: 78px;
    left: 18px;
    right: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, .14);
    background: rgba(8, 10, 10, .96);
  }

  .tiannis-nav.open { display: flex; }
  .tiannis-nav a { padding: 15px 8px; }
  .tiannis-nav a.active::after,
  .tiannis-nav a:hover::after { left: 8px; transform: none; }

  .hero-content {
    padding-left: 46px;
  }

  .hero-shower {
    width: 70vw;
    opacity: .72;
  }

  .advantage-band,
  .factory-section,
  .solutions-section,
  .quality-section,
  .inquiry-section {
    grid-template-columns: 1fr;
  }

  .advantage-grid,
  .solution-cards,
  .quality-grid,
  .news-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .tiannis-header {
    grid-template-columns: 1fr auto;
    padding: 18px;
  }

  .tiannis-actions {
    grid-column: 1 / -1;
    justify-content: space-between;
  }

  .tiannis-outline {
    min-height: 38px;
    padding: 0 18px;
  }

  .tiannis-hero {
    min-height: 760px;
    height: auto;
  }

  .hero-content {
    width: auto;
    padding: 170px 24px 0;
  }

  .hero-content h1 {
    font-size: 44px;
  }

  .hero-shower {
    right: -170px;
    bottom: 72px;
    width: 760px;
    opacity: .5;
  }

  .hero-cta {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-pager {
    left: 24px;
    right: auto;
  }

  .advantage-band,
  .factory-section,
  .solutions-section,
  .quality-section,
  .inquiry-section,
  .news-section {
    padding: 52px 22px;
  }

  .advantage-grid,
  .solution-cards,
  .quality-grid,
  .news-list,
  .form-row {
    grid-template-columns: 1fr;
  }

  .advantage-grid article {
    min-height: 0;
    padding: 22px 0;
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, .12);
  }

  .factory-mosaic {
    grid-template-columns: 1fr;
  }

  .factory-main {
    grid-row: auto;
  }

  .inquiry-form {
    padding: 22px;
  }

  .tiannis-footer {
    grid-template-columns: 1fr;
    gap: 34px;
    padding: 42px 22px 24px;
  }

  .tiannis-footer .footer-brand {
    max-width: 100%;
  }

  .tiannis-footer .footer-nav-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 18px;
  }

  .tiannis-footer .footer-bottom {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 10px;
    margin-left: 0;
    margin-right: 0;
  }
}

@media (max-width: 520px) {
  .tiannis-footer .footer-nav-grid {
    grid-template-columns: 1fr;
  }
}
