@media (max-width: 1500px) {
  :root { --container: 1380px; --header-height: 92px; }
  .site-header__inner { gap: 16px; grid-template-columns: auto auto minmax(240px,1fr) auto auto; }
  .site-logo__text { font-size: clamp(1.7rem, 2.5vw, 2.4rem); }
  .site-logo__cat { width: 48px; height: 48px; }
  .catalog-button { min-width: 220px; }
  .header-action-button { min-width: 205px; }
  .products-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 1220px) {
  .site-header__inner { grid-template-columns: auto 1fr auto; padding: 12px 0; }
  .site-logo { grid-column: 1 / 2; }
  .header-actions { display: contents; }
  .catalog-button { grid-column: 2 / 3; width: 100%; min-width: 0; }


  .header-action-button { grid-column: 3 / 4; min-width: 190px; }
  .hero-section { min-height: auto; padding: 22px 0 36px; }
  .pz-main-visual__image { aspect-ratio: 2.75 / 1; }
  .products-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .product-hero-card { grid-template-columns: 1fr; }
  .product-detail-section { grid-template-columns: 1fr; }
}

@media (max-width: 1024px) {
  .container { width: min(var(--container), calc(100% - 28px)); }
  .site-header__inner { grid-template-columns: 1fr auto; gap: 12px; }
  .site-logo { grid-column: 1 / 2; }
  .catalog-button { grid-column: 1 / -1; height: 54px; }


  .header-action-button { grid-column: 1 / -1; height: 54px; width: 100%; }
  .pz-main-visual { border-radius: 24px; }
  .pz-main-visual__image { aspect-ratio: 2.25 / 1; object-position: center 26%; }
  .pz-main-visual__button { min-height: 52px; padding: 0 26px; bottom: 8%; }
  .category-pills { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 8px; scrollbar-width: none; }
  .category-pills::-webkit-scrollbar { display: none; }
  .category-pill { flex: 0 0 auto; }
  .products-grid, .related-products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-extra-info { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  :root { --header-height: auto; }
  .container { width: min(var(--container), calc(100% - 20px)); }
  .site-logo__cat { width: 40px; height: 40px; border-radius: 14px; }
  .site-logo__small { font-size: .65rem; }
  .site-logo__text { font-size: 1.22rem; }
  .header-action-button { display: none; }
  .hero-section { padding: 14px 0 26px; }
  .pz-main-visual { border-radius: 18px; }
  .pz-main-visual__image { aspect-ratio: 1.42 / 1; object-position: center 20%; }
  .pz-main-visual__button { position: static; transform: none; width: calc(100% - 24px); margin: 12px; min-height: 50px; }
  .section-heading { align-items: flex-start; flex-direction: column; margin-bottom: 16px; }
  .section-heading h2 { font-size: clamp(1.45rem, 8vw, 2.1rem); }
  .categories-section, .products-section { padding: 30px 0; }
  .products-grid, .related-products-grid { grid-template-columns: 1fr; gap: 16px; }
  .product-card { border-radius: 20px; }
  .product-card__media { aspect-ratio: .96 / 1; }
  .mobile-catalog-drawer { width: min(90vw, 350px); }
  .product-hero-card { padding: 16px; border-radius: 22px; }
  .product-actions { flex-direction: column; }
  .product-actions .primary-neon-button, .product-actions .secondary-neon-button { width: 100%; }
  .toast-stack { left: 12px; right: 12px; bottom: 12px; }
  .toast { min-width: 0; max-width: none; }
  .site-footer__inner { flex-direction: column; }
  .site-footer__links { justify-content: flex-start; }
}

@media (max-width: 430px) {
  .site-logo__text { font-size: 1rem; }
  .site-logo__small { font-size: .56rem; }
.catalog-button { border-radius: 14px; }
  .pz-main-visual__image { aspect-ratio: 1.15 / 1; }
  .category-pill { min-height: 46px; padding: 0 18px; font-size: .92rem; }
  .product-card__price-row strong { font-size: 1.24rem; }
}

@media (hover: none) {.catalog-button:hover, .header-action-button:hover, .primary-neon-button:hover, .secondary-neon-button:hover, .product-card__button:hover, .drawer-close:hover { transform: none; }
  .product-card:hover { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}


/* POLISH 2026-04-25 RESPONSIVE */
@media (max-width: 1220px) {
  .perks-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .pz-main-visual__image {
    aspect-ratio: auto;
    object-fit: contain;
  }

  .perks-grid {
    grid-template-columns: 1fr;
  }

  .social-cta {
    align-items: stretch;
    flex-direction: column;
  }

  .social-cta__actions {
    justify-content: stretch;
  }

  .social-cta__actions a {
    width: 100%;
  }
}

@media (max-width: 430px) {
  .pz-main-visual__image {
    aspect-ratio: auto;
  }
}


/* INFO PAGES RESPONSIVE */
@media (max-width: 900px) {
  .info-grid {
    grid-template-columns: 1fr;
  }

  .support-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .info-hero {
    padding: 36px 0 22px;
  }

  .info-section {
    padding: 26px 0 50px;
  }

  .info-card,
  .info-card--wide,
  .support-panel {
    padding: 18px;
    border-radius: 22px;
  }

  .support-float {
    right: 14px;
    bottom: 14px;
    min-height: 50px;
    padding-right: 14px;
  }

  .support-float__text {
    display: none;
  }
}


/* PROTECTION RESPONSIVE POLISH */
@media (max-width: 640px) {
  .support-float {
    bottom: 78px;
  }

  .product-card__media::before,
  .product-gallery__main::before,
  .pz-main-visual::before {
    font-size: 0.58rem;
    right: 8px;
    bottom: 8px;
  }
}


/* RESPONSIVE HOTFIX — header, hero, mobile auth */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

img,
video {
  max-width: 100%;
}

@media (min-width: 1221px) {
  :root {
    --header-height: 78px;
  }

  .site-header__inner {
    min-height: 78px;
    grid-template-columns:
      minmax(250px, auto)
      minmax(190px, 250px)
      minmax(320px, 1fr)
      minmax(180px, 230px)
      58px;
    gap: 14px;
    padding: 8px 0;
  }

  .site-logo {
    gap: 10px;
  }

  .site-logo__cat {
    width: 44px;
    height: 44px;
    border-radius: 15px;
  }

  .site-logo__small {
    font-size: 0.68rem;
    letter-spacing: 0.1em;
  }

  .site-logo__text {
    font-size: clamp(1.7rem, 2.25vw, 2.45rem);
  }

  .catalog-button,
  .header-action-button {
    height: 52px;
    border-radius: 16px;
  }

  .catalog-button {
    min-width: 0;
    padding: 0 18px;
  }

  .header-action-button {
    min-width: 0;
    padding: 0 18px;
  }

  .hero-section {
    min-height: auto;
    padding: 18px 0 30px;
  }

  .pz-main-visual {
    border-radius: 26px;
  }

  .pz-main-visual__image {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 3.45 / 1;
    object-fit: cover;
    object-position: center center;
  }
}

@media (max-width: 1220px) {
  .site-header__inner {
    grid-template-columns: 1fr auto;
    gap: 10px;
    padding: 10px 0;
  }

  .site-logo {
    min-width: 0;
    overflow: hidden;
  }

  .site-logo__group {
    min-width: 0;
  }

  .site-logo__text,
  .site-logo__small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .catalog-button {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    min-width: 0;
  }


  .header-action-button {
    grid-column: 1 / -1;
    grid-row: 4;
    width: 100%;
    min-width: 0;
  }

  .hero-section {
    min-height: auto;
    padding: 14px 0 28px;
  }
}

@media (max-width: 900px) {
  .container {
    width: min(var(--container), calc(100% - 20px));
  }

  .site-header {
    position: sticky;
  }

  .site-logo__cat {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    flex: 0 0 auto;
  }

  .site-logo__small {
    display: none;
  }

  .site-logo__text {
    font-size: clamp(1.08rem, 6.4vw, 1.55rem);
    letter-spacing: 0.02em;
  }

  .catalog-button,
  .header-action-button {
    height: 48px;
    border-radius: 15px;
  }

  .catalog-button {
    justify-content: center;
  }


  .header-action-button {
    display: inline-flex !important;
    justify-content: center;
    font-size: 0.95rem;
  }

  .pz-main-visual {
    border-width: 1px;
    border-radius: 18px;
  }

  .pz-main-visual__image {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: auto;
    object-fit: contain;
    object-position: center;
    background: rgba(8, 3, 16, 0.92);
  }

  .pz-main-visual__button {
    position: static;
    transform: none;
    width: calc(100% - 20px);
    min-height: 48px;
    margin: 10px;
    border-radius: 14px;
  }

  .categories-section,
  .products-section {
    padding: 24px 0;
  }

  .category-pills {
    margin-inline: -10px;
    padding-inline: 10px;
  }

  .product-card__media {
    aspect-ratio: 1.08 / 1;
  }

  .support-float {
    right: 12px;
    bottom: 12px;
    min-height: 46px;
    padding: 0 12px;
    border-radius: 999px;
  }

  .support-float__text {
    display: none;
  }
}

@media (max-width: 520px) {
  .site-header__inner {
    gap: 8px;
    padding: 8px 0;
  }

  .site-logo__cat {
    width: 38px;
    height: 38px;
  }

  .site-logo__text {
    font-size: clamp(0.95rem, 7vw, 1.25rem);
  }

  .catalog-button,
  .header-action-button {
    height: 44px;
    font-size: 0.88rem;
  }

  .hero-section {
    padding-top: 10px;
  }

  .pz-main-visual {
    border-radius: 16px;
  }

  .pz-main-visual__button {
    min-height: 44px;
    font-size: 0.92rem;
  }

  .section-heading h2 {
    font-size: clamp(1.35rem, 8vw, 1.9rem);
  }

  .products-grid,
  .related-products-grid {
    gap: 14px;
  }
}

@media (max-width: 380px) {
  .site-logo__text {
    font-size: 0.92rem;
  }

  .catalog-button span:last-child,
  .header-action-button span:last-child {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}


/* HERO LIVE NEWS PANEL RESPONSIVE 2026-05-10 */
@media (max-width: 1024px) {
  .hero-live-panel__title {
    font-size: clamp(1.8rem, 4.4vw, 2.8rem);
  }
}

@media (max-width: 720px) {
  .hero-live-panel {
    border-radius: 20px;
  }

  .hero-live-panel__top,
  .hero-live-panel__footer {
    padding: 14px 16px;
  }

  .hero-live-panel__body {
    padding: 18px 16px 16px;
    min-height: auto;
  }

  .hero-live-panel__top,
  .hero-live-panel__footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-live-panel__controls {
    width: 100%;
    justify-content: flex-end;
  }

  .hero-live-panel__title {
    padding-right: 24px;
    font-size: clamp(1.55rem, 7vw, 2.25rem);
  }

  .hero-live-panel__text {
    font-size: 0.96rem;
    line-height: 1.65;
  }

  .hero-live-panel__footer {
    gap: 12px;
  }

  .hero-live-panel__ticker {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .hero-live-panel__branch--left {
    width: 110px;
  }

  .hero-live-panel__branch--right {
    width: 110px;
  }
}

@media (max-width: 430px) {
  .hero-live-panel__badge {
    font-size: 0.7rem;
    letter-spacing: 0.08em;
  }

  .hero-live-panel__control {
    width: 38px;
    height: 38px;
  }

  .hero-live-panel__link {
    width: 100%;
  }
}


/* HERO PHOTO NEWS JSON RESPONSIVE 2026-05-10 */
@media (max-width: 900px) {
  .hero-live-panel__body {
    grid-template-columns: 1fr;
  }

  .hero-live-panel__media {
    aspect-ratio: 16 / 8.6;
  }
}

@media (max-width: 520px) {
  .hero-live-panel__media {
    aspect-ratio: 1.35 / 1;
    border-radius: 18px;
  }
}


/* START INTRO RESPONSIVE 2026-05-10 */
@media (max-width: 1024px) {
  .pz-start-intro {
    display: none !important;
  }
}

@media (max-width: 1280px) and (min-width: 1025px) {
  .pz-start-intro__content {
    width: min(680px, calc(100% - 42px));
    padding: 34px;
  }

  .pz-start-intro__title {
    font-size: clamp(2.8rem, 6vw, 5.4rem);
  }
}

/* STEP 6 UI CLEANUP RESPONSIVE 2026-05-11 */
@media (max-width: 640px) {
  .support-float {
    right: 12px;
    bottom: 14px;
    width: 48px;
    height: 48px;
    min-height: 48px;
    padding: 0;
    justify-content: center;
  }

  .support-float__icon {
    width: 34px;
    height: 34px;
  }

  .support-float__text {
    display: none !important;
  }
}


/* STEP 7 DESKTOP POLISH RESPONSIVE 2026-05-11 */
@media (min-width: 1025px) and (max-width: 1280px) {
  .hero-live-panel__body {
    grid-template-columns: 280px minmax(0, 1fr);
  }

  .hero-live-panel__title {
    font-size: clamp(1.55rem, 2.7vw, 2.35rem);
  }

  .hero-live-panel__text {
    font-size: .92rem;
  }
}


/* PATCH 15 — MOBILE LAYOUT POLISH 2026-05-15
   Goal: mobile should look like a native mobile layout, not a tiny compressed desktop page. */
@media (max-width: 720px) {
  .site-header {
    background: linear-gradient(180deg, rgba(7, 2, 13, .96), rgba(11, 3, 20, .91));
    box-shadow: 0 12px 30px rgba(0,0,0,.34), 0 0 22px rgba(255,79,216,.08);
  }

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

  .site-logo {
    width: 100%;
    min-width: 0;
    gap: 12px;
    align-items: center;
  }

  .site-logo__cat {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    padding: 5px;
    background: rgba(255,255,255,.055);
    box-shadow: 0 0 22px rgba(255,79,216,.18), inset 0 0 14px rgba(255,79,216,.06);
  }

  .site-logo__text {
    font-size: clamp(1.34rem, 7vw, 1.72rem);
    color: #ff8fe8;
    opacity: 1;
    text-shadow: 0 0 10px rgba(255,79,216,.54), 0 0 22px rgba(142,77,255,.22);
  }

  .catalog-button,
  .header-action-button {
    height: 50px;
    border-radius: 18px;
    font-size: .96rem;
  }

  .catalog-button {
    grid-row: auto;
    padding: 0 16px;
    box-shadow: 0 12px 28px rgba(142,77,255,.18), 0 0 24px rgba(255,79,216,.16);
  }


  .header-action-button {
    display: inline-flex !important;
    justify-content: center;
    min-width: 0;
    padding: 0 16px;
  }

  .hero-section {
    padding: 12px 0 28px;
  }

  .pz-main-visual {
    border-radius: 22px;
    border-width: 1px;
    box-shadow: 0 14px 34px rgba(0,0,0,.30), 0 0 24px rgba(255,79,216,.12);
  }

  .pz-main-visual__image {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    object-fit: cover;
    object-position: center center;
  }

  .hero-live-panel {
    margin-top: 22px;
    border-radius: 22px;
    box-shadow: 0 16px 36px rgba(0,0,0,.28), 0 0 22px rgba(255,79,216,.08);
  }

  .hero-live-panel__top {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 14px 14px 10px;
  }

  .hero-live-panel__controls {
    width: auto;
    justify-content: flex-end;
  }

  .hero-live-panel__control {
    width: 42px;
    height: 42px;
    border-radius: 16px;
  }

  .hero-live-panel__body {
    padding: 14px;
    gap: 14px;
  }

  .hero-live-panel__media {
    aspect-ratio: 16 / 9;
    max-height: 320px;
    border-radius: 20px;
  }

  .hero-live-panel__copy {
    padding: 0 2px 2px;
  }

  .hero-live-panel__eyebrow {
    font-size: .74rem;
    letter-spacing: .12em;
  }

  .hero-live-panel__title {
    padding-right: 0;
    font-size: clamp(1.45rem, 7vw, 2.05rem);
    line-height: 1.08;
    letter-spacing: -.02em;
  }

  .hero-live-panel__text {
    font-size: .96rem;
    line-height: 1.58;
  }

  .hero-live-panel__footer {
    padding: 10px 14px 14px;
  }

  .perk-card,
  .products-empty,
  .social-cta,
  .info-card {
    border-radius: 22px;
  }

  .perk-card {
    padding: 18px;
  }

  .perk-card h3 {
    font-size: 1.02rem;
    line-height: 1.25;
  }

  .perk-card p,
  .products-empty p,
  .social-cta p {
    font-size: .96rem;
    line-height: 1.58;
  }

  .social-cta {
    padding: 20px;
    gap: 16px;
  }

  .social-cta h2 {
    font-size: clamp(1.32rem, 7vw, 1.9rem);
    line-height: 1.12;
  }

  .theme-switcher {
    gap: 10px;
  }

  .theme-switcher__options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }
}

@media (max-width: 430px) {
  .container {
    width: min(var(--container), calc(100% - 18px));
  }

  .site-logo__cat {
    width: 44px;
    height: 44px;
  }

  .site-logo__text {
    font-size: clamp(1.18rem, 7vw, 1.42rem);
  }

  .catalog-button,
  .header-action-button {
    height: 48px;
    font-size: .92rem;
  }

  .pz-main-visual {
    border-radius: 20px;
  }

  .pz-main-visual__image {
    aspect-ratio: 16 / 9;
    object-position: center center;
  }

  .hero-live-panel__badge {
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .hero-live-panel__control {
    width: 40px;
    height: 40px;
  }

  .hero-live-panel__title {
    font-size: clamp(1.32rem, 7vw, 1.82rem);
  }

  .hero-live-panel__media {
    max-height: 260px;
  }

  .support-float {
    width: 46px;
    height: 46px;
    min-height: 46px;
  }
}


/* PATCH 22 — mobile polish for decorative UI */
@media (max-width: 720px) {
  .perks-section::before,
  .products-section::before,
  .social-cta-section::before,
  .info-section::before {
    left: 18px;
    right: 18px;
  }

  .pz-main-visual::after {
    right: 12px;
    bottom: 12px;
    padding: 7px 11px;
    font-size: .72rem;
  }

  .products-status {
    width: 100%;
    justify-content: center;
  }

  .products-empty {
    min-height: 104px;
    padding: 22px 18px;
  }

  .products-empty::after {
    right: 18px;
    bottom: 14px;
    font-size: .66rem;
  }

  .social-cta__actions a {
    width: 100%;
    min-width: 0;
  }
}

/* PATCH 147 — DESKTOP HEADER ROW RESET
   The legacy max-width: 1220px rule placed the catalogue and account controls
   on grid rows 2 and 4. That rule overlaps the current desktop breakpoint
   (1181px and wider), producing a four-row header between 1181px and 1220px.
   Keep the compact desktop column layout, but force all desktop header controls
   back onto the first grid row. Mobile behavior below 1181px is unchanged. */
@media (min-width: 1181px) and (max-width: 1220px) {
  .site-header__inner > .catalog-button,
  .site-header__inner > .header-action-button {
    grid-row: 1 !important;
  }
}
