/* Content-driven breakpoints: desktop >1100, tablet 601–1100, phone <=600. */
.container { width: min(1320px, calc(100% - 48px)); }
.header__main > *, .section__heading > *, .product-layout > *,
.cart-layout > *, .checkout-layout > *, .catalog > *, .form-grid > *,
.story-layout > *, .contact-layout > *, .newsletter__inner > * { min-width: 0; }
.breadcrumb { flex-wrap: wrap; }
.category-card { display: flex; flex-direction: column; }
.category-card h3 { min-height: 0; line-height: 1.25; }
.category-card > span:last-child { margin-top: auto; gap: 12px; }
.section__heading > div { flex: 1; }
.section__heading .text-link { flex-shrink: 0; }
input, select, textarea { max-width: 100%; }
.quantity button, .icon-button { min-width: 44px; min-height: 44px; }
.mobile-nav[hidden] { display: none; }

@media (max-width: 1100px) {
  .header__main { display: grid; grid-template-columns: 44px auto minmax(160px, 1fr) auto; gap: 18px; height: 84px; }
  .header__menu { display: inline-flex !important; }
  .header .nav { display: none; }
  .header__search { width: 100%; }
  .header__search input { padding-left: 16px; }
  .header__actions { gap: 8px; }
  .logo { font-size: 25px; }
  .logo i { font-size: 29px; }
  .mobile-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; padding: 16px 24px; }
  .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .hero__copy { padding: 38px 0 38px 32px; }
  .hero h1 { font-size: clamp(48px, 6.2vw, 68px); }
  .hero__visual { min-height: 500px; }
  .hero__product--one { width: 49%; top: 80px; }
  .hero__product--three { bottom: 45px; }
  .hero__sticker { width: 112px; height: 112px; right: 6%; }
  .hero__sticker strong { font-size: 20px; }
  .benefits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; font-size: 13px; }
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .category-card { display: grid; grid-template-columns: 110px minmax(0, 1fr); grid-template-rows: 1fr auto; gap: 10px 20px; padding: 24px; align-items: center; }
  .category-card .product-art { grid-column: 1; grid-row: 1 / 3; width: 110px; aspect-ratio: 1; margin: 0; }
  .category-card h3 { grid-column: 2; margin: 0; max-width: none; font-size: 21px; align-self: end; }
  .category-card > span:last-child { grid-column: 2; align-self: start; font-size: 13px; }
  .category-card__icon { display: none; }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 20px; }
  .catalog { grid-template-columns: minmax(0, 1fr); gap: 25px; }
  .filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 20px; }
  .filters h2 { grid-column: 1 / -1; margin: 0; }
  .filters label[for=filter-category] { grid-column: 1; grid-row: 2; }
  .filters #filter-category { grid-column: 1; grid-row: 3; }
  .filters label[for=filter-price] { grid-column: 2; grid-row: 2; }
  .filters #filter-price { grid-column: 2; grid-row: 3; }
  .filters .checkbox { margin: 0; min-height: 44px; }
  .filters #reset-filters { justify-self: end; }
  .filters__note { display: none; }
  .catalog .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .deal { padding: 36px; }
  .deal__circle { right: 20px; top: 20px; padding: 20px 15px; }
  .product-layout { gap: 30px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .product-info h1 { font-size: 34px; }
  .product-info__purchase { flex-wrap: wrap; }
  .product-info__purchase .button { min-width: 180px; }
  .cart-layout, .checkout-layout { grid-template-columns: minmax(0, 1.2fr) minmax(280px, 1fr); gap: 24px; }
  .brand-note { padding: 45px 20px 60px; gap: 30px; }
  .newsletter__inner { gap: 30px; }
  .newsletter__inner > form { width: 50%; }
  .newsletter__field { flex-wrap: wrap; }
  .newsletter__field input { flex: 1 1 200px; }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
}

@media (max-width: 900px) {
  .header__main { grid-template-columns: 44px minmax(0, 1fr) auto; height: auto; padding-block: 12px; gap: 10px 16px; }
  .header__search { grid-row: 2; grid-column: 1 / -1; }
  .header__search input { min-height: 46px; font-size: 16px; }
  .header__actions { justify-self: end; }
  .promo-bar { justify-content: center; font-size: 12px; padding: 8px 16px; }
  .promo-bar > span:first-child, .promo-bar > a { display: none; }
  .section__heading { flex-direction: column; align-items: flex-start; gap: 18px; }
  .section__heading .text-link { white-space: nowrap; font-size: 14px; }
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero__copy { padding: 36px 32px 0; }
  .hero h1 { font-size: clamp(52px, 9vw, 76px); }
  .hero__copy p { max-width: 520px; }
  .hero__visual { min-height: 390px; max-width: 560px; width: 100%; margin: auto; }
  .hero__caption { top: 18px; }
  .hero__product--one { top: 35px; left: 5%; width: 40%; }
  .hero__product--two { top: 70px; right: 8%; width: 34%; }
  .hero__product--three { left: 20%; bottom: 26px; width: 31%; }
  .hero__sticker { right: 12%; bottom: 22px; }
  .product-layout, .cart-layout, .checkout-layout, .contact-layout, .story-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .product-gallery { width: min(100%, 620px); margin-inline: auto; }
  .checkout-layout > aside { grid-row: auto; }
  .checkout-form { grid-row: 2; }
  .checkout-layout > aside { grid-row: 1; }
  .product-info__purchase { flex-wrap: nowrap; }
  .story__art { max-width: 520px; width: 100%; margin: auto; }
  .newsletter__inner { display: block; }
  .newsletter__inner > form { width: 100%; margin-top: 24px; }
  .newsletter__field { flex-wrap: nowrap; }
  .brand-note > span { font-size: 100px; }
  .footer__bottom { flex-wrap: wrap; gap: 12px; }
}

/* Compact tablets retain two balanced cards without a squeezed text column. */
@media (min-width: 601px) and (max-width: 740px) {
  .category-card { display: flex; padding: 22px; gap: 12px; }
  .category-card .product-art { width: 100%; aspect-ratio: 1.2; }
  .category-card h3 { align-self: stretch; font-size: 21px; }
  .category-card > span:last-child { align-self: stretch; }
}

@media (max-width: 600px) {
  .container { width: calc(100% - 32px); }
  .header__main { grid-template-columns: 44px minmax(0, 1fr) 88px; gap: 10px 6px; }
  .header__actions { gap: 0; }
  .header__actions .icon-button { width: 44px; }
  .header .logo { font-size: clamp(18px, 4.9vw, 25px); letter-spacing: -1px; }
  .header .logo i { font-size: 24px; margin-left: 2px; }
  .header__search input { font-size: 16px; padding-left: 15px; }
  .header__search button { padding-inline: 15px; }
  .mobile-nav { grid-template-columns: minmax(0, 1fr); padding-inline: 16px; max-height: 60dvh; }
  .mobile-nav a { padding-block: 14px; font-size: 16px; }
  .hero { margin-top: 16px; border-radius: 18px; }
  .hero__copy { padding: 28px 22px 0; }
  .hero h1 { font-size: clamp(44px, 10.8vw, 64px); }
  .hero__copy p { font-size: 15px; }
  .hero__note { font-size: 12px; }
  .hero__swirl { margin-left: 6px; }
  .hero__visual { min-height: 340px; }
  .hero__product { border-width: 5px; }
  .hero__product > span:last-child { font-size: 10px; padding: 5px 2px; }
  .hero__product--three { left: 13%; width: 36%; bottom: 20px; }
  .hero__sticker { width: 95px; height: 95px; right: 9%; bottom: 20px; font-size: 12px; }
  .hero__sticker strong { font-size: 18px; }
  .hero__caption { font-size: 9px; }
  .benefits { gap: 16px 12px; padding: 22px 0; font-size: 12px; }
  .benefits span { line-height: 1.6; }
  .benefits b { margin-left: 0; }
  .section { padding: 36px 0; }
  .section__heading { gap: 15px; margin-bottom: 24px; }
  .section__heading h2 { font-size: clamp(26px, 6.8vw, 34px); line-height: 1.16; }
  .eyebrow { font-size: 11px; line-height: 1.6; letter-spacing: .1em; }
  .category-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .category-card { grid-template-columns: 96px minmax(0, 1fr); gap: 10px 18px; padding: 20px; border-radius: 18px; }
  .category-card .product-art { width: 96px; aspect-ratio: 1; }
  .category-card h3 { font-size: 21px; line-height: 1.25; }
  .category-card > span:last-child { font-size: 13px; gap: 8px; line-height: 1.5; }
  .category-card > span:last-child b { font-size: 20px; }
  .product-grid, .catalog .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 14px; }
  .product-card h3 { font-size: 15px; line-height: 1.45; min-height: 0; }
  .product-card__category { font-size: 10px; line-height: 1.5; margin-top: 12px; }
  .product-card__badge { top: auto; bottom: 9px; left: 9px; font-size: 9px; padding: 4px 8px; }
  .product-card__wish { right: 5px; top: 5px; width: 44px; height: 44px; }
  .product-card__bottom { align-items: center; }
  .product-card__add { width: 44px; height: 44px; }
  .price { font-size: 16px; }
  .price del { display: block; font-size: 12px; margin-left: 0; }
  .deal { padding: 28px 22px; grid-template-columns: minmax(0, 1fr); }
  .deal h2 { font-size: 40px; }
  .deal__art { width: 80%; margin: 20px auto 0; }
  .deal__circle { top: auto; bottom: 20px; right: 15px; padding: 18px 14px; font-size: 12px; }
  .brand-note { padding: 35px 0 45px; display: block; }
  .brand-note > span { display: block; font-size: 72px; margin-bottom: 25px; }
  .brand-note h2 { font-size: 30px; }
  .brand-note p { font-size: 15px; }
  .newsletter { padding: 34px 0; }
  .newsletter h2 { font-size: 32px; }
  .newsletter__field { flex-direction: column; gap: 10px; }
  .newsletter__field input { flex: auto; }
  .newsletter__field button { width: 100%; }
  .footer { padding-top: 36px; }
  .footer__grid { gap: 28px 20px; }
  .footer__grid > div:first-child { grid-column: 1 / -1; }
  .footer h3 { line-height: 1.4; }
  .footer__grid > div > a:not(.logo) { font-size: 14px; padding: 4px 0; }
  .footer__bottom { display: block; font-size: 12px; }
  .footer__bottom > span { display: block; margin-bottom: 10px; }
  .page-intro { padding-top: 22px; }
  .page-intro h1 { font-size: clamp(32px, 8vw, 42px); }
  .breadcrumb { margin-bottom: 24px; }
  .filters { gap: 6px 12px; }
  .filters .checkbox { font-size: 12px; }
  .catalog__toolbar { flex-wrap: wrap; font-size: 13px; gap: 12px; }
  .catalog__toolbar label { width: 100%; justify-content: space-between; }
  .catalog__toolbar select { flex: 1; max-width: 220px; }
  .product-info h1 { font-size: 32px; }
  .product-info__purchase { flex-wrap: wrap; }
  .product-info__purchase .button { flex-basis: 100%; }
  .product-info .price del { display: inline; margin-left: 8px; }
  .gallery-thumbs { gap: 10px; }
  .gallery-thumbs button { flex: 1; max-width: 100px; min-width: 0; }
  .form-panel, .summary { padding: 22px; }
  .form-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .checkout-option { align-items: flex-start; font-size: 14px; }
  .cart-drawer { padding: 20px 16px; }
  .cart-line { grid-template-columns: 76px minmax(0, 1fr); gap: 14px; }
  .cart-line__controls { flex-wrap: wrap; }
  .quantity button { width: 44px; }
  .cart-line .quantity input { width: 36px; }
  .drawer__heading h2 { font-size: 23px; }
  .confirmation { padding: 28px 20px; }
  .confirmation h2 { font-size: 28px; }
  .faq-list summary { font-size: 16px; }
  .search-form { flex-direction: column; }
}

@media (max-width: 359px) {
  .header .logo { font-size: 18px; }
  .header .logo i { display: none; }
  .category-card { grid-template-columns: 82px minmax(0, 1fr); padding: 18px 16px; gap: 8px 16px; }
  .category-card .product-art { width: 82px; }
  .category-card h3 { font-size: 19px; }
  .hero__visual { min-height: 285px; }
  .hero__sticker { width: 84px; height: 84px; font-size: 11px; }
  .hero__sticker strong { font-size: 16px; }
  .product-grid, .catalog .product-grid { grid-template-columns: minmax(0, 1fr); }
  .product-card__image .product-art { aspect-ratio: 1.15; }
  .product-card__category { font-size: 12px; }
  .product-card h3 { font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
