.hydrogel-promo {
  scroll-margin-top: 85px;
}

.hydrogel-promo__card {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--bg2);
  box-shadow: 0 8px 26px rgb(26 33 45 / 8%);
}

.hydrogel-promo__copy {
  align-self: center;
  padding: clamp(24px, 4vw, 48px);
  overflow-wrap: anywhere;
}

.hydrogel-promo__copy:only-child {
  grid-column: 1 / -1;
}

.hydrogel-promo__copy h2 {
  margin: 0;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.hydrogel-promo__price {
  display: block;
  margin-top: 10px;
  color: var(--accent);
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 700;
  line-height: 1.15;
}

.hydrogel-promo__copy p {
  max-width: 39ch;
  margin: 14px 0 24px;
  color: #55555a;
  font-size: 16px;
  line-height: 1.5;
}

.hydrogel-promo__copy a {
  max-width: 100%;
  min-height: 48px;
  height: auto;
  padding-block: 10px;
  text-align: center;
  transition: background-color .18s, box-shadow .18s;
}

.hydrogel-promo__copy p strong {
  color: var(--accent);
}

@media (hover: hover) {
  .hydrogel-promo__copy a:hover {
    background: var(--accent-h);
    box-shadow: 0 4px 12px var(--accent-glow-2);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hydrogel-promo__copy a { transition: none; }
  .hydrogel-promo__copy a:hover { transform: none; }
}

.hydrogel-promo__copy a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.hydrogel-promo__image {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

@media (max-width: 699px) {
  .hydrogel-promo__card {
    grid-template-columns: minmax(0, 1fr);
  }

  .hydrogel-promo__image {
    height: auto;
  }
}

.apple-category-icon {
  display: block;
  object-fit: contain;
}

.catalog-categories {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.catalog ~ .page-hdr:last-child {
  padding-block: clamp(24px, 3vw, 40px);
}

.catalog + .page-hdr:last-child {
  padding-top: 0;
}

.catalog-categories .device-tile {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-content: space-between;
  align-items: center;
  gap: 16px 12px;
  min-height: 124px;
  padding: 18px 20px;
  border: 1px solid var(--border-lt);
  text-align: start;
}

.catalog-categories .device-tile__icon {
  grid-column: 1 / -1;
  justify-content: flex-start;
  width: 100%;
  height: 44px;
  margin: 0;
}

.catalog-categories .device-tile__icon--brand img {
  max-width: min(112px, 100%);
  width: auto;
  height: auto;
  max-height: 36px;
}

.catalog-categories .device-tile__name {
  min-width: 0;
  font-size: clamp(15px, 1.4vw, 18px);
  font-weight: 700;
  line-height: 1.25;
}

#app .catalog-categories .device-tile a:focus-visible {
  outline: none;
}

.catalog-categories .device-tile::after {
  content: "";
  width: 8px;
  height: 8px;
  margin-inline-end: 2px;
  border-block-start: 2px solid currentColor;
  border-inline-end: 2px solid currentColor;
  color: var(--text2);
  transform: rotate(45deg);
  pointer-events: none;
}

.model-filters[data-accessory-categories] {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 24px;
  overflow: visible;
}

[data-accessory-categories] > .fpill:first-child {
  grid-column: 1 / -1;
  justify-self: start;
  min-height: 44px;
}

[data-accessory-categories] > .fpill:not(:first-child) {
  justify-content: flex-start;
  gap: 14px;
  height: auto;
  padding: 10px;
  border-radius: var(--radius);
  white-space: normal;
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: 15px;
  line-height: 1.25;
}

[data-accessory-categories] .fpill img {
  flex: none;
  width: 36px;
  height: 36px;
  object-fit: contain;
}

@media (hover: hover) {
  .catalog-categories .device-tile:hover,
  [data-accessory-categories] .fpill:not(.active):hover {
    background: var(--accent-soft);
    border-color: var(--accent);
  }
}

@media (max-width: 900px) {
  .catalog-categories { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .catalog-categories,
  .model-filters[data-accessory-categories] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  [data-accessory-categories] > .fpill:not(:first-child) {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 12px;
    font-size: 14px;
  }

  [data-accessory-categories] .fpill img {
    width: 32px;
    height: 32px;
  }
}

.brand-card__info h3 a::before {
  content: "";
  position: absolute;
  inset: 0;
}

.pc:has(a:focus-visible),
.device-tile:has(a:focus-visible) {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.pc a:focus-visible,
.device-tile a:focus-visible {
  outline: none;
}

.brand-card__info,
.device-tile__name,
.page-hdr:has(.search-page__form) .page-hdr__sub {
  overflow-wrap: anywhere;
}

.brand-links .fpill {
  height: auto;
  min-height: 36px;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}

.breadcrumbs,
.search-page__section-count,
.pc__base {
  color: var(--text2);
}

.trade-banner__link,
.info-bar__link,
.pc__tradein {
  color: var(--success-deep);
}

.pc .badge--rustore {
  color: #644194;
}

.pc .badge--warning {
  color: #905200;
}

.cat-filters .fpill:focus-visible,
.model-filters .fpill:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -3px;
}

.cat-filters.new .fpill.active {
  color: var(--on-accent);
}

@media (max-width: 899px), (pointer: coarse) {
  .cat-filters .fpill,
  .model-filters .fpill,
  .brand-links .fpill {
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
  }

  .trade-banner__link,
  .info-bar__link,
  .brand-catalog .breadcrumbs a,
  .brand-pagination a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }

  .search-page__input,
  .search-page__submit {
    min-height: 44px;
  }
}

@media (max-width: 767px) {
  .catalog .pc__img {
    aspect-ratio: 10 / 9;
  }

  .catalog .brand-card__photo {
    aspect-ratio: 25 / 18;
  }

  .catalog :is(.pc__img, .brand-card__photo) > img {
    width: 90%;
  }

  .catalog .pc .icase-payment-prices > div:first-child dd {
    font-size: 1.75rem;
    line-height: 1.1;
  }

  .catalog .pc .icase-payment-prices > div:nth-child(2) dd {
    font-size: .9375rem;
    font-weight: 600;
    color: var(--text2);
  }

  .catalog-categories .device-tile {
    display: flex;
    gap: 8px;
    min-height: 52px;
    padding: 8px 10px;
    border-radius: var(--radius);
  }

  .catalog-categories .device-tile__icon {
    flex: 0 0 30px;
    width: 30px;
    height: 28px;
    justify-content: center;
  }

  .catalog-categories .device-tile__icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
  }

  .catalog-categories .device-tile__name {
    font-size: 14px;
  }

  .catalog-categories .device-tile::after {
    content: none;
  }

  .cat-filters {
    padding-block: 0;
  }

  .cat-filters__scroll {
    gap: 6px;
    padding-block: 6px;
  }

  .cat-filters .fpill {
    position: relative;
    height: auto;
    min-height: 32px;
    padding: 4px 10px;
  }

  .cat-filters .fpill::after {
    content: "";
    position: absolute;
    inset: -7px 0;
  }
}

@media (max-width: 599px) {
  #viewHome .big-banner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: clamp(20px, 5vw, 28px);
  }

  #viewHome .big-banner__text {
    display: contents;
  }

  #viewHome .big-banner__text h3,
  #viewHome .big-banner__text p {
    grid-column: 1 / -1;
    margin: 0;
  }

  #viewHome .big-banner__text h3 {
    font-size: clamp(22px, 5.6vw, 27px);
    line-height: 1.2;
  }

  #viewHome .big-banner__cta {
    justify-self: start;
    justify-content: center;
    min-height: 48px;
    height: auto;
    padding: 8px 12px;
    font-size: clamp(14px, 3.8vw, 15px);
    text-align: center;
    text-wrap: balance;
  }

  #viewHome .big-banner__visual svg {
    display: block;
    width: clamp(32px, 8vw, 44px);
    height: auto;
  }
}

@media (max-width: 374px) {
  .trade-banner,
  .info-bar {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 4px 10px;
  }

  .trade-banner__link,
  .info-bar__link {
    grid-column: 2;
    justify-self: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cat-tiles,
  .device-grid,
  .pgrid,
  .pc,
  .pc__img-loader {
    animation: none;
  }

  .pc,
  .device-tile,
  .preorder-card,
  .hero-btn {
    transition: none;
  }

  .pc:hover,
  .device-tile:hover,
  .preorder-card:hover,
  .hero-btn:hover {
    transform: none;
  }
}

.home-promo-pair {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.home-promo-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .95fr);
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  padding: clamp(20px, 3vw, 36px);
  border-radius: var(--radius-xl);
  text-decoration: none;
}

.home-promo-card--mac { background: #202123; color: #fff; }
.home-promo-card--airpods { background: var(--bg2); color: var(--text); }
.home-promo-card__copy { display: grid; align-content: center; gap: 8px; }
.home-promo-card h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.1;
  letter-spacing: -.035em;
}
.home-promo-card p { margin: 0; font-size: .9375rem; line-height: 1.4; }
.home-promo-card img {
  display: block;
  width: 100%;
  max-height: 170px;
  height: auto;
  object-fit: contain;
}
.home-promo-card__link {
  margin-top: 12px;
  font-size: .875rem;
  font-weight: 700;
}
.home-promo-card--mac .home-promo-card__link { color: var(--accent-fill); }
.home-promo-card__link::after { content: " →"; white-space: pre; }
.home-promo-card:is(:hover, :focus-visible) .home-promo-card__link { text-decoration: underline; }
@media (max-width: 799px) {
  .home-promo-pair { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .home-promo-card { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
}
