/* Tablet layouts from Figma 367:25957 / 373:29956, 373:26869 / 373:31250,
   373:28024 / 373:32426. Kept separate so phone and desktop layouts do not change.
   Content stays in normal flow where the design's fixed-height examples clip it. */
@media (min-width:768px) and (max-width:1199px) {
  :root { --rd-gutter:32px; }
  .rd-header__in { gap:16px; }
  .rd-header__logo { width:236px; height:34.4px; margin-right:0; }
  .rd-header__logo img { width:183.2px; height:44.8px; }
  .rd-footer { padding:80px 0 48px; }
  .rd-tabbar { display:none; }

  .rd-home { --rd-home-gap:140px; }
  .rd-home .rd-eyebrow { font-size:12px; }
  .rd-home .rd-h2 { font-size:48px; line-height:1.05; }
  .rd-section-head { gap:24px; }
  .rd-section-head__titles { gap:16px; }
  .main-banner.rd-hero.uk-container { margin-top:24px; }
  .main-banner.rd-hero .main-banner__container { border-radius:28px; }
  .rd-hero-nav { margin-top:16px; }
  .rd-hero-nav__in { justify-content:space-between; min-height:44px; }
  .rd-hero-nav__side { display:flex; }
  .rd-hero-nav__dot { width:8px; height:24px; }
  .rd-hero-nav__dot::before { height:8px; margin-top:-4px; }
  .rd-hero-nav__dot.is-active { width:32px; }
  .rd-about { padding-top:120px; }
  .rd-about__row { gap:48px; }
  .rd-about__title { font-size:48px; line-height:1.05; }
  .rd-about__side { flex-basis:380px; padding-top:34px; }
  .rd-about__text { font-size:18px; line-height:1.5; }
  .rd-stats { gap:16px; margin-top:56px; flex-wrap:nowrap; }
  .rd-stat { flex:1 1 0; min-width:0; min-height:200px; padding:32px; border-radius:32px; justify-content:space-between; }
  .rd-stat--blue { flex:1 1 0; flex-direction:column; align-items:flex-start; }
  .rd-stat__value { font-size:60px; }
  .rd-stat__label { font-size:16px; }

  .rd-cats .rd-section-head { padding-bottom:32px; }
  .rd-cats__grid { grid-template-columns:repeat(12,minmax(0,1fr)); gap:16px; }
  .rd-cat { gap:8px; padding:28px; border-radius:32px; aspect-ratio:auto; }
  .rd-cat__link::after { border-radius:32px; }
  .rd-cat--phones { grid-column:1 / 7; grid-row:1 / 3; height:520px; padding:32px; }
  .rd-cat--watch { grid-column:7 / 13; grid-row:1; }
  .rd-cat--audio { grid-column:7 / 13; grid-row:2; }
  .rd-cat--watch,.rd-cat--audio { height:252px; padding:32px; }
  .rd-cat--pc,.rd-cat--tablet,.rd-cat--gadgets,.rd-cat--acc { grid-column:span 3; height:340px; }
  .rd-cat--tv,.rd-cat--vr,.rd-cat--home { grid-column:span 4; height:220px; }
  .rd-cat__title { max-width:180px; font-size:26px; line-height:1.05; letter-spacing:-.02em; }
  .rd-cat--phones .rd-cat__title { max-width:300px; font-size:40px; }
  .rd-cat--watch .rd-cat__title,.rd-cat--audio .rd-cat__title { max-width:260px; font-size:28px; }
  .rd-cat__sub,.rd-cat--phones .rd-cat__sub,.rd-cat--home .rd-cat__sub { display:block; max-width:180px; font-size:15px; line-height:1.4; }
  .rd-cat--phones .rd-cat__sub { max-width:300px; }
  .rd-cat--watch .rd-cat__sub,.rd-cat--audio .rd-cat__sub { max-width:260px; }
  .rd-cat__chips { display:flex; }
  .rd-cat__go { display:inline-flex; left:28px; bottom:28px; }
  .rd-cat--phones .rd-cat__go,.rd-cat--watch .rd-cat__go,.rd-cat--audio .rd-cat__go {
    left:32px; bottom:32px; width:48px; height:48px; padding:0; background:#fff; color:var(--rd-ink);
  }
  .rd-cat--phones .rd-cat__go .rd-icon { width:20px; height:20px; --rd-i:url(../img/redesign/icons/arrow-up-right-20.svg); }
  .rd-cat--phones .rd-cat__go-text { display:none; }
  .rd-cat--phones .rd-cat__img { left:auto; right:0; top:auto; bottom:0; width:55%; height:auto; }
  .rd-cat--watch .rd-cat__img,.rd-cat--audio .rd-cat__img { left:auto; right:16px; top:auto; bottom:16px; width:38%; height:150px; object-fit:contain; }
  .rd-cat--pc .rd-cat__img,.rd-cat--tablet .rd-cat__img,.rd-cat--gadgets .rd-cat__img,.rd-cat--acc .rd-cat__img {
    left:auto; right:16px; top:auto; bottom:20px; width:70%; height:160px; object-fit:contain;
  }
  .rd-cat--tv .rd-cat__img,.rd-cat--vr .rd-cat__img,.rd-cat--home .rd-cat__img {
    left:auto; right:8px; top:auto; bottom:14px; width:48%; height:125px; object-fit:contain;
  }
  .rd-cat--tv .rd-cat__title,.rd-cat--vr .rd-cat__title,.rd-cat--home .rd-cat__title { max-width:180px; font-size:24px; }
  .rd-cat--tv .rd-cat__sub,.rd-cat--vr .rd-cat__sub,.rd-cat--home .rd-cat__sub { max-width:165px; font-size:13px; }

  .rd-feed .rd-section-head { padding-bottom:40px; }
  .rd-feed__grid { gap:16px; }
  .rd-feed__foot { padding-top:32px; }
  .rd-feed__more { width:auto; min-width:260px; }
  /* The same functional card becomes vertical at tablet widths. No cards are
     hidden here: the feed controller owns pagination and the visible count. */
  .rd-wcard { grid-template-columns:minmax(0,1fr) auto; grid-template-rows:auto; column-gap:0; padding:8px 8px 20px; border-radius:30px; }
  .rd-wcard__media { grid-column:1 / -1; grid-row:1; width:100%; height:320px; margin:0; border-radius:24px; }
  .rd-wcard__photo img { left:11%; top:14%; width:78%; height:78%; }
  .rd-wcard__badges { left:16px; top:16px; right:68px; gap:6px; }
  .rd-wcard__badges .rd-badge { padding:6px 10px; font-size:11px; }
  .rd-wcard__head { display:contents; }
  .rd-wcard__name { grid-column:1 / -1; grid-row:2; margin:16px 16px 0; }
  .rd-wcard__title { font-size:20px; }
  .rd-wcard__sub { font-size:13px; }
  .rd-wcard__specs { grid-row:3; margin:12px 16px 0; }
  .rd-wcard__color { grid-row:4; margin:12px 16px 0; }
  .rd-wcard__price { grid-column:1; grid-row:5; align-self:center; margin:12px 0 0 16px; }
  .rd-wcard__buy { grid-column:2; grid-row:5; align-self:center; margin:12px 16px 0 12px; }
  .rd-wcard .rd-wcard__cart { flex:none; width:48px; height:48px; padding:0; font-size:0; border-radius:50%; }
  .rd-wcard .rd-wcard__cart .rd-icon { width:20px; height:20px; }
  .rd-wcard .rd-btn--dark.rd-wcard__cart { width:auto; min-height:48px; height:auto; max-width:150px; padding:10px 12px; font-size:12px; border-radius:24px; white-space:normal; }
  .rd-wcard__acts { position:absolute; grid-column:auto; grid-row:auto; z-index:3; right:24px; top:24px; flex-direction:column; gap:8px; margin:0; }
  .rd-wcard .rd-wcard__act { width:40px; height:40px; }
  .rd-wcard__links { grid-row:6; margin:12px 16px 0; }
  .rd-promo__grid { gap:16px; }
  .rd-promo__card { min-height:474px; padding:40px; border-radius:40px; }
  .rd-promo__title { font-size:40px; }
  .rd-sale-head { flex-direction:row; flex-wrap:wrap; align-items:center; gap:24px; padding:40px; margin-bottom:40px; border-radius:40px; }
  .rd-sale-head__titles { gap:12px; }
  .rd-sale-head__title { font-size:64px; }
  .rd-sale-head__deal { flex-direction:row; align-items:center; gap:20px; }
  .rd-sale-head__pct { font-size:72px; line-height:1; }
  .rd-sale-head__note { gap:8px; }
  .rd-sale-head__note b,.rd-sale-head__note span { font-size:16px; }
  .rd-sale-head__note b { font-weight:500; color:#fff; }
  .rd-sale-head__all { margin-top:0; }
  .rd-cartpage { padding-top:40px; padding-bottom:80px; }
  .rd-cartpage .rd-cartpage__crumbs { margin-bottom:28px; }
  .rd-cartpage__grid { gap:32px; }
  .simple-content.rd-co { padding-top:40px; }
  .rd-co-cart__head { gap:28px; margin-bottom:14px; }
  .rd-co .rd-co-cart__title { font-size:56px; line-height:60px; }
  .rd-co-cart__count { font-size:18px; }
  .rd-co-form > .rd-co-sum { margin-top:134px; }
}

@media (min-width:960px) and (max-width:1199px) {
  .rd-pp__hero { grid-template-columns:minmax(0,460fr) minmax(0,472fr); gap:28px; }
  .rd-pgal__stage { aspect-ratio:460 / 620; min-height:620px; border-radius:40px; }
  .rd-co-form { column-gap:32px; }
  /* A real cart title can include total weight and wrap. Let its row size itself
     instead of positioning the summary with a fixed heading-height offset. */
  .rd-cartpage__grid { row-gap:20px; }
  .rd-cartpage .rd-cartpage__main { display:contents; }
  .rd-cartpage__main > * { grid-column:1; }
  .rd-cartpage__main > .rd-co-cart__titlebar { grid-column:1 / -1; grid-row:1; }
  .rd-cartpage__form { grid-row:2; }
  .rd-cartpage__modules { grid-row:3; }
  .rd-cartpage .rd-cartpage__sum { grid-column:2; grid-row:2 / 4; margin-top:0; }
}

@media (min-width:768px) and (max-width:959px) {
  /* Tablet portrait retains the full primary actions and puts search on row 2. */
  .rd-topbar { height:48px; font-size:13px; }
  .rd-topbar__in { min-height:48px; }
  .rd-topbar__left { flex:none; justify-content:flex-start; gap:20px; }
  .rd-topbar__social { display:flex; }
  .rd-header { top:0; border-bottom:1px solid var(--rd-line); }
  .rd-header__in { gap:12px 16px; padding-top:22px; padding-bottom:22px; }
  .rd-header__logo { flex:1 1 0; width:auto; margin-right:0; }
  .rd-header__actions { gap:8px; }
  .rd-header__actions .rd-ibtn { width:52px; height:52px; }
  .rd-header__actions .rd-ibtn .rd-icon { width:24px; height:24px; }
  .rd-header__login,.rd-header__compare { display:inline-flex; }
  .rd-header__menu { display:none; }
  .rd-catalog__btn { display:inline-flex; }
  .rd-catalog__btn-more { display:none; }
  .rd-header__cart { width:auto; height:52px; padding:14px 20px 14px 18px; gap:10px; }
  .rd-header__cart-text { display:flex; }
  .rd-header__cart-label,.rd-header__cart-pcs { display:none; }
  .rd-header__cart-sum { font-size:15px; white-space:nowrap; }
  .rd-search { height:53px; padding:0 22px; gap:12px; }
  .rd-search input { height:100%; font-size:16px; }
  .rd-search__catalog { display:none; }
  .rd-home .rd-h2 { font-size:40px; }
  .rd-section-head__actions .rd-ibtn { display:inline-flex; }
  .rd-section-head__actions .rd-btn { width:auto; height:52px; padding:14px 24px; font-size:15px; border-radius:var(--rd-r-pill); box-shadow:inset 0 0 0 1px var(--rd-line); }
  .rd-section-head__actions .rd-btn .rd-icon { width:16px; height:16px; }
  .rd-listing-head .catalog__header-top { gap:20px; padding-top:28px!important; }
  .rd-listing-head .rd-display { font-size:72px; line-height:1.05; }
  .rd-listing-head .rd-pagehead__row { gap:20px; }
  .rd-listing-head .rd-pagehead__benefits { display:flex; align-self:flex-start; }
  .rd-listing-head .rd-pagehead__chips { display:none; }
  .rd-subcats { margin-top:36px; }
  .rd-subcats .rd-subcats__list,.rd-subcats--more.is-open .rd-subcats__list {
    display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; overflow:visible; margin:0; padding:0;
  }
  .rd-subcats .rd-subcats__item { width:auto; }
  .rd-subcats--more:not(.is-open) .rd-subcats__item--extra { display:none; }
  .rd-subcats__toggle { display:flex!important; }
  .rd-subcats__chips { flex-wrap:wrap; overflow:visible; margin:16px 0 0; padding:0; }
  .rd-tile { height:136px; padding:18px; border-radius:24px; }
  .rd-tile__name { font-size:20px; line-height:1.25; }
  .rd-tile__sub { font-size:12px; }
  .rd-tile__go { width:32px; height:32px; }
  .rd-tile__img { width:84px; height:84px; }
  .rd-about__row { flex-direction:column; gap:48px; }
  .rd-about__title { font-size:40px; }
  .rd-about__title .rd-br-d { display:initial; }
  .rd-about__side { flex:none; padding-top:0; gap:24px; }
  .rd-about__titles { gap:20px; }
  .rd-about__chip { padding:8px 14px; }
  .rd-stat { padding:28px 24px; }
  .rd-stat__value,.rd-stat--blue .rd-stat__value { font-size:48px; }
  .rd-cat--pc,.rd-cat--tablet,.rd-cat--gadgets,.rd-cat--acc { grid-column:span 6; }
  .rd-cat--phones .rd-cat__title { font-size:36px; }
  .rd-cat--phones .rd-cat__img { width:68%; }
  .rd-cat--watch .rd-cat__title,.rd-cat--audio .rd-cat__title { font-size:26px; }
  .rd-cat--watch .rd-cat__sub,.rd-cat--audio .rd-cat__sub { max-width:220px; font-size:13px; }
  .rd-cat--watch .rd-cat__img,.rd-cat--audio .rd-cat__img { height:130px; }
  .rd-cat--tv,.rd-cat--vr,.rd-cat--home { padding:24px; }
  .rd-cat--tv .rd-cat__title,.rd-cat--vr .rd-cat__title,.rd-cat--home .rd-cat__title { font-size:22px; }
  .rd-cat--tv .rd-cat__sub,.rd-cat--vr .rd-cat__sub,.rd-cat--home .rd-cat__sub { max-width:145px; font-size:12px; }
  .rd-cat--tv .rd-cat__img,.rd-cat--vr .rd-cat__img,.rd-cat--home .rd-cat__img { right:0; height:100px; width:45%; }
  .rd-cat--tv .rd-cat__go,.rd-cat--vr .rd-cat__go,.rd-cat--home .rd-cat__go { left:24px; bottom:24px; }
  .rd-promo__grid { grid-template-columns:minmax(0,1fr); }
  .rd-promo__card { min-height:340px; gap:16px; padding:32px; }
  .rd-promo__title { max-width:55%; font-size:36px; }
  .rd-promo__text { max-width:55%; font-size:16px; }
  .rd-promo__card .rd-promo__btn { position:static; margin-top:auto; padding:14px 24px; }
  .rd-promo__card .rd-promo__img { right:0; bottom:16px; width:42%; height:240px; }
  .rd-sale-head__deal { justify-content:flex-start; }
  .rd-sale-head__all { margin-top:8px; }
  #hide1.rd-subscribe .subscribe,#hide2.rd-subscribe .subscribe { min-height:540px; padding:48px; border-radius:28px; }
  #hide1.rd-subscribe .subscribe::before,#hide2.rd-subscribe .subscribe::before { background:linear-gradient(90deg,rgba(10,20,51,.65),rgba(10,20,51,.35) 55%,rgba(10,20,51,0)); }
  #hide1.rd-subscribe .rd-subscribe__photo,#hide2.rd-subscribe .rd-subscribe__photo { height:100%; object-position:68% center; }
  #hide1.rd-subscribe .subscribe > div,#hide2.rd-subscribe .subscribe > div { max-width:460px; gap:22px; }
  #hide1.rd-subscribe .subscribe__title,#hide2.rd-subscribe .subscribe__title { max-width:460px; font-size:36px; }
  #hide1.rd-subscribe .subscribe p,#hide2.rd-subscribe .subscribe p { max-width:400px; font-size:18px; color:#fff; }
  #hide1.rd-subscribe .subscribe .field__title { font-size:15px; }
  #hide1.rd-subscribe .subscribe input[type="text"] { height:58px; border-radius:12px; padding:0 20px; font-size:18px; }
  #hide1.rd-subscribe .subscribe .btn { min-height:54px; border-radius:27px; font-size:17px; }
  .rd-consult { padding-top:24px; }
  .rd-consult__card { padding:48px; gap:28px; border-radius:40px; }
  .rd-consult__title { max-width:460px; font-size:40px; }
  .rd-consult__hours { font-size:16px; }
  .rd-consult__phone { font-size:36px; }
  .rd-consult__side { gap:20px; }
  .rd-consult__rating { max-width:320px; width:100%; padding:16px 18px; border-radius:20px; }
  .rd-consult__score { font-size:22px; }
  .rd-consult__src { font-size:13px; }
  .rd-consult__count { font-size:12px; }

  .rd-pp__hero { grid-template-columns:minmax(0,1fr); gap:32px; }
  .rd-pgal { position:relative; top:auto; }
  .rd-pgal__stage { aspect-ratio:704 / 640; min-height:0; max-height:none; border-radius:40px; }
  .rd-pgal__img { left:27%; top:4%; width:59%; height:80%; }
  .rd-pgal__slide[data-rd-mark]::before { left:3%; top:auto; bottom:5%; font-size:18cqw; color:#fff; mix-blend-mode:normal; }
  .rd-pgal__ctrl,.rd-pgal__plaque { display:flex; }
  .rd-pgal .rd-pgal__thumbs.swiper-container { display:block; }
  .rd-pgal--single .rd-pgal__thumbs.swiper-container { display:none; }
  .rd-pgal__badges,.rd-pgal__acts,.rd-pgal__count,.rd-pgal .rd-pgal__top .rd-pgal__dots.swiper-pagination { display:none; }
  .rd-pbuy { gap:22px; padding-top:0; }
  .rd-pbuy > .rd-pbuy__pricebox,.rd-pbuy > .rd-popts,.rd-pbuy > .rd-pbuy__actions,.rd-pbuy > .rd-pdeliv,.rd-pbuy > .rd-pgifts { margin-top:0; }
  .rd-pbuy__badges { display:flex; }
  .rd-pbuy__title { font-size:15px; }
  .rd-pbuy__name { margin-bottom:8px; font-size:40px; line-height:1.05; }
  .rd-pbuy__pricebox { flex-direction:row; align-items:center; gap:12px 20px; padding:18px 24px; border-radius:26px; background:var(--rd-surface); }
  .rd-pbuy__prices { flex-direction:column; align-items:flex-start; gap:4px; }
  .rd-pbuy__price { font-size:36px; line-height:1; font-weight:700; }
  .rd-pbuy__cheaper { flex-direction:column; align-items:flex-end; gap:2px; text-align:right; }
  .rd-pbuy__cheaper-q { font-weight:600; color:var(--rd-ink); }
  .rd-popts { gap:22px; }
  .rd-popt__label { font-weight:600; color:var(--rd-ink); }
  .rd-popt__label .rd-popt__value { font-weight:400; color:var(--rd-muted); }
  .rd-popt--cards:not(.rd-popt--few) .rd-popt__list { flex-wrap:wrap; margin-right:0; padding-right:0; overflow:visible; }
  .rd-pp .rd-popt--cards .rd-popt__item { flex:0 0 calc((100% - 16px) / 3); flex-direction:row; align-items:center; justify-content:flex-start; gap:8px; padding:8px 12px 8px 8px; background:var(--rd-surface); font-size:13px; text-align:left; }
  .rd-pp .rd-popt--cards .rd-popt__item.is-active { background:#fff; box-shadow:inset 0 0 0 2px var(--rd-ink); }
  .rd-popt__img { width:34px; height:42px; }
  .rd-popt--seg .rd-popt__list { display:flex; flex-wrap:wrap; gap:4px; padding:4px; border-radius:16px; background:var(--rd-surface); }
  .rd-pp .rd-popt--seg .rd-popt__item { justify-content:center; min-height:0; padding:9px 6px; border-radius:12px; background:transparent; text-align:center; }
  .rd-pp .rd-popt--seg .rd-popt__item.is-active { box-shadow:0 1px 2px rgba(23,33,46,.06); background:#fff; }
  .rd-pbuy__actions .rd-btn { height:54px; padding:0 22px; font-size:15px; }
  .rd-pbuy__actions .rd-pbuy__icon { display:inline-flex; width:54px; height:54px; }
  .rd-pbuy__actions .rd-pbuy__one { flex:none; background:transparent; box-shadow:inset 0 0 0 1.5px var(--rd-line); }
  .rd-pbuy__one .rd-icon { display:none; }
  .rd-pdeliv { gap:2px; padding:6px; border:1px solid var(--rd-line); border-radius:24px; background:none; }
  .rd-pdeliv__row { padding:8px 14px 8px 12px; border:0; }
  .rd-pdeliv__icon { background:var(--rd-surface); }
  .rd-pp .rd-pgifts__list.product__present { flex-wrap:wrap; margin-right:0; padding-right:0; overflow:visible; }
  .rd-co-form > .rd-co-sum { margin-top:12px; }
  .rd-co .rd-co-sec { gap:20px; padding:26px 28px 28px; border-radius:var(--rd-r-md); }
  .rd-co .rd-co-sec__title { gap:12px; font-size:24px; }
  .rd-co-sec__num { width:32px; height:32px; font-size:14px; }
  .rd-co .rd-co-methods--pay { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
