
html, body {
  -webkit-text-size-adjust: 100%;
}

button, a, input, select, textarea {
  -webkit-tap-highlight-color: transparent;
}

.site-nav::-webkit-scrollbar {
  display: none;
}

.site-nav {
  scrollbar-width: none;
}

@media (max-width: 820px) {
  html,
  body {
    overflow-x: hidden;
  }

  .section {
    padding: 28px 0 42px;
  }

  .container {
    width: min(var(--container), calc(100% - 24px));
  }

  .site-header {
    backdrop-filter: blur(18px);
    background: rgba(246, 247, 244, 0.94);
  }

  .site-header__inner {
    grid-template-columns: 1fr auto;
    gap: 10px;
    padding: 10px 0;
  }

  .brand {
    gap: 10px;
  }

  .brand__mark,
  .brand__logo {
    width: 34px;
    height: 34px;
    border-radius: 11px;
  }

  .brand__text {
    font-size: 0.98rem;
    line-height: 1.04;
  }

  .brand__text small {
    margin-top: 4px;
    font-size: 0.67rem;
    line-height: 1.2;
  }

  .site-mobile-actions {
    gap: 6px;
  }

  .site-mobile-actions .icon-button--compact,
  .nav-toggle {
    min-height: 42px;
    border-radius: 14px;
  }

  .site-mobile-actions .icon-button--compact {
    min-width: 42px;
    padding: 0 10px;
  }

  .site-mobile-actions .icon-button__count {
    min-width: 20px;
    min-height: 20px;
    font-size: 0.7rem;
  }

  .nav-toggle {
    gap: 8px;
    padding: 0 12px;
  }

  .nav-toggle span {
    width: 15px;
  }

  .nav-toggle strong {
    font-size: 0.84rem;
  }

  .mobile-menu {
    top: 66px;
  }

  .mobile-menu__inner {
    gap: 12px;
  }

  .mobile-nav__link {
    min-height: 52px;
    padding: 0 16px;
    border-radius: 18px;
  }

  .mobile-menu__meta {
    padding: 16px;
    border-radius: 20px;
  }

  .mobile-tabbar {
    left: 10px;
    right: 10px;
    bottom: 10px;
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
    border-radius: 20px;
  }

  .mobile-tabbar__link {
    gap: 3px;
    font-size: 0.66rem;
  }

  .mobile-tabbar__link img {
    width: 17px;
    height: 17px;
  }

  .mobile-tabbar__count {
    right: 4px;
    top: -1px;
  }

  .page-heading {
    margin-bottom: 20px;
  }

  .page-heading h1 {
    font-size: clamp(2rem, 8.4vw, 2.55rem);
    line-height: 1.03;
    letter-spacing: 0;
  }

  .page-heading__text {
    font-size: 0.98rem;
    line-height: 1.6;
  }

  .section-heading {
    gap: 8px;
    margin-bottom: 18px;
  }

  .section-heading h2 {
    font-size: clamp(1.55rem, 6vw, 2rem);
  }

  .hero {
    padding-top: 18px;
  }

  .hero__grid {
    gap: 16px;
  }

  .hero__visual {
    order: -1;
    padding: 10px;
  }

  .hero__visual img {
    border-radius: 20px;
  }

  .hero__content h1 {
    font-size: clamp(2.05rem, 10vw, 2.8rem);
    line-height: 1.02;
  }

  .hero__text {
    margin-bottom: 18px;
    font-size: 0.98rem;
    line-height: 1.62;
  }

  .hero__actions {
    margin-bottom: 18px;
  }

  .hero__actions .btn,
  .contact-cta-grid .btn,
  .store-card__actions .btn,
  .product-actions .btn {
    width: 100%;
  }

  .hero__stats {
    gap: 10px;
    margin-bottom: 14px;
  }

  .hero__stats li,
  .selection-card,
  .service-card,
  .step-card,
  .faq-card,
  .brand-showcase-card,
  .info-card,
  .contact-form,
  .cart-summary,
  .store-card,
  .filters,
  .store-map-card,
  .mini-card,
  .product-panel,
  .product-gallery,
  .spec-card {
    padding: 16px;
    border-radius: 22px;
  }

  .hero__stats strong {
    font-size: 1.2rem;
  }

  .hero__stats span,
  .selection-card p,
  .service-card p,
  .step-card p,
  .faq-card p,
  .brand-showcase-card p,
  .mini-card p,
  .accent-card__text,
  .contact-list li,
  .route-list,
  .store-card__address,
  .store-card__meta,
  .form-note {
    font-size: 0.95rem;
    line-height: 1.58;
  }

  .hero__trust {
    padding: 15px 16px;
    border-radius: 20px;
  }

  .hero__trust strong {
    font-size: 1rem;
  }

  .selection-card h3,
  .service-card h3,
  .step-card h3,
  .faq-card h3,
  .brand-showcase-card h3,
  .mini-card h3,
  .product-panel h1,
  .store-card h2,
  .info-card h2,
  .contact-form h2 {
    font-size: 1.08rem;
    line-height: 1.3;
  }

  .brand-showcase-card__tag,
  .chip,
  .product-tag,
  .store-feature {
    font-size: 0.82rem;
  }

  .chips {
    gap: 8px;
  }

  .products-grid,
  .mini-grid,
  .contact-cta-grid,
  .mobile-menu__actions,
  .hero__stats,
  .selection-grid,
  .service-grid,
  .steps-grid,
  .faq-list,
  .brand-grid,
  .brand-grid--four {
    grid-template-columns: 1fr;
  }

  .products-grid {
    gap: 16px;
  }

  .product-card {
    border-radius: 24px;
  }

  .product-card__image {
    min-height: auto;
    max-height: none;
    aspect-ratio: 1 / 1;
    padding: 18px 14px 16px;
  }

  .product-card__image img,
  .product-card__image--catalog img {
    max-width: 86%;
    max-height: 86%;
    object-fit: contain;
    object-position: center center;
  }

  .product-card__badge {
    top: 12px;
    left: 12px;
    padding: 7px 10px;
    font-size: 0.75rem;
  }

  .product-card__content {
    gap: 10px;
    padding: 14px;
  }

  .product-card__meta {
    font-size: 0.8rem;
    gap: 6px 10px;
  }

  .product-card__title {
    font-size: 1rem;
    line-height: 1.25;
    min-height: 2.5em;
  }

  .product-card__desc {
    font-size: 0.92rem;
    line-height: 1.52;
    -webkit-line-clamp: 3;
  }

  .product-card__bottom {
    gap: 10px;
  }

  .product-card__swatches {
    gap: 6px;
  }

  .product-card__swatches span {
    width: 16px;
    height: 16px;
  }

  .product-card__price-row {
    gap: 10px;
  }

  .price strong {
    font-size: 1.08rem;
  }

  .price span {
    font-size: 0.84rem;
    line-height: 1.45;
  }

  .card-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .card-actions .btn {
    min-height: 42px;
    padding: 0 10px;
    border-radius: 15px;
    font-size: 0.9rem;
  }

  .btn {
    min-height: 48px;
    padding: 0 18px;
  }

  .icon-button {
    min-height: 44px;
    padding: 0 14px;
  }

  .catalog-layout {
    gap: 14px;
  }

  .catalog-mobile-toggle {
    display: inline-flex;
    position: sticky;
    top: 74px;
    z-index: 20;
    margin-bottom: 12px;
  }

  .catalog-toolbar {
    padding: 14px;
    border-radius: 20px;
  }

  .filters.is-open {
    margin-bottom: 12px;
  }

  .field {
    gap: 8px;
  }

  .field input,
  .field textarea,
  .field select,
  .sort select {
    min-height: 46px;
    padding: 12px 14px;
  }

  .sort {
    gap: 8px;
  }

  .stores-hero-layout,
  .stores-layout,
  .contact-layout,
  .cart-layout,
  .product-layout,
  .spec-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .store-card__top,
  .store-card__actions,
  .product-price-row,
  .product-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .store-map-card--large,
  .store-map-card--frame iframe {
    min-height: 300px;
  }

  .store-card__actions,
  .product-actions,
  .contact-cta-grid {
    gap: 10px;
  }

  .route-list {
    gap: 10px;
  }

  .contact-list {
    gap: 12px;
    margin: 14px 0 16px;
  }

  .product-gallery__frame,
  .room-preview {
    border-radius: 20px;
  }

  .product-preview {
    margin-top: 16px;
    padding: 14px;
    border-radius: 20px;
  }

  .toast {
    right: 10px;
    left: 10px;
    bottom: 84px;
  }

  .footer-grid {
    gap: 18px;
  }
}

@media (max-width: 480px) {
  body {
    padding-bottom: 86px;
  }

  .container {
    width: min(var(--container), calc(100% - 16px));
  }

  .site-header__inner {
    padding: 8px 0;
  }

  .brand__text {
    font-size: 0.92rem;
  }

  .brand__text small {
    display: none;
  }

  .nav-toggle strong {
    display: none;
  }

  .mobile-menu {
    top: 60px;
  }

  .page-heading h1,
  .hero__content h1 {
    letter-spacing: 0;
  }

  .hero__text,
  .page-heading__text {
    font-size: 0.95rem;
  }

  .hero__stats li,
  .selection-card,
  .service-card,
  .step-card,
  .faq-card,
  .brand-showcase-card,
  .info-card,
  .contact-form,
  .cart-summary,
  .store-card,
  .filters,
  .store-map-card,
  .mini-card,
  .product-panel,
  .product-gallery,
  .spec-card {
    padding: 14px;
    border-radius: 20px;
  }

  .section-heading h2 {
    font-size: 1.42rem;
  }

  .product-card__image {
    padding: 16px 12px 14px;
  }

  .product-card__content {
    padding: 12px;
  }

  .product-card__desc {
    -webkit-line-clamp: 2;
  }

  .card-actions .btn {
    min-height: 44px;
    font-size: 0.86rem;
  }

  .price strong {
    font-size: 1rem;
  }

  .mobile-tabbar__link {
    font-size: 0.62rem;
  }
}
