/* Главная: Рекомендуем / Новинки / #2beMan. Префикс hb-.
   Десктоп >=1200, планшет 768-1199, телефон <=767. Без !important. */
.hb-section{margin:0 0 48px;font-family:Manrope,Inter,Roboto,Arial,sans-serif;color:#000;clear:both}
.hb-head{display:flex;justify-content:space-between;align-items:flex-end;margin:0 0 18px}
.hb-title{position:relative;margin:0;padding:0 0 12px;font-size:30px;line-height:1.1;font-weight:400;letter-spacing:-.01em;color:#000;text-align:left;text-transform:none}
.hb-title::after{content:"";position:absolute;left:0;bottom:0;width:48px;height:3px;background:#D7FF00}
.hb-all,.hb-all:hover,.hb-all:focus{display:inline-flex;align-items:center;gap:10px;font-size:14px;font-weight:500;color:#000;text-decoration:none;padding-bottom:12px}
.hb-all svg{transition:transform .2s}
.hb-all:hover svg{transform:translateX(4px)}

/* ===== товары ===== */
.hb-grid{--hb-gap:16px;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:var(--hb-gap)}
.hb-card{position:relative;display:flex;flex-direction:column;background:#fff;border:1px solid #e6e6e6;border-radius:8px;padding:16px 16px 14px}
.hb-card a,.hb-card a:hover,.hb-card a:focus{color:#000;text-decoration:none}
.hb-card__link{display:block}
.hb-card__media{position:relative;display:block;aspect-ratio:1/1;margin-bottom:14px;overflow:hidden}
.hb-card__media img{position:absolute;top:0;left:0;width:100%;height:100%;max-width:none;max-height:none;object-fit:contain}
.hb-card__name{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;height:2.7em;overflow:hidden;font-size:15px;line-height:1.35;font-weight:400}
.hb-card__price{margin-top:10px;font-size:20px;line-height:1.2;font-weight:700;color:#000}
.hb-card__price s{margin-left:6px;font-size:14px;font-weight:400;color:#8a8a8a}

.hb-fav{position:absolute;top:12px;right:12px;width:32px;height:32px;padding:0;border:0;background:transparent;color:#000;cursor:pointer;display:flex;align-items:center;justify-content:center;-webkit-tap-highlight-color:transparent}
.hb-fav svg{transition:fill .15s;transform-origin:center}
.hb-fav:hover svg{opacity:.65}
.hb-fav.is-on svg{fill:currentColor;opacity:1}
.hb-fav.is-pulse svg{animation:hb-pulse .45s ease}
@keyframes hb-pulse{0%{transform:scale(1)}35%{transform:scale(1.4)}65%{transform:scale(.9)}100%{transform:scale(1)}}
@media (prefers-reduced-motion:reduce){.hb-fav.is-pulse svg{animation:none}}

.hb-buy,.hb-buy:hover,.hb-buy:focus{position:absolute;left:16px;right:16px;bottom:12px;height:36px;display:flex;align-items:center;justify-content:center;border:0;border-radius:6px;background:#D7FF00;color:#000;font:700 13px/1 Manrope,Inter,Roboto,Arial,sans-serif;letter-spacing:.05em;text-decoration:none;cursor:pointer;opacity:0;pointer-events:none;transform:translateY(4px);transition:opacity .2s,transform .2s}
.hb-buy.is-done{background:#000;color:#D7FF00}

.hb-dots{display:none;justify-content:center;gap:10px;margin:12px 0 0}
.hb-dots[hidden]{display:none}
.hb-dot{position:relative;width:8px;height:8px;padding:0;border:0;border-radius:50%;background:#d9d9d9;cursor:pointer;transition:background .2s}
.hb-dot::after{content:"";position:absolute;top:-8px;right:-5px;bottom:-8px;left:-5px}
.hb-dot.is-on{background:#D7FF00}

/* ===== #2beMan: статьи ===== */
.hb-articles{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:16px}
.hb-articles__list{display:contents}
.hb-art{position:relative;display:flex;flex-direction:column;background:#fff;border:1px solid #e6e6e6;border-radius:8px;overflow:hidden;transition:border-color .2s}
.hb-art:hover{border-color:#000}
.hb-art__media{display:block;aspect-ratio:4/3;overflow:hidden;background:#f3f3f3}
.hb-art__media img{display:block;width:100%;height:100%;object-fit:cover}
.hb-pill{position:absolute;top:12px;left:12px;padding:7px 12px;border-radius:999px;background:#fff;color:#000;font:600 11px/1 Manrope,Inter,Roboto,Arial,sans-serif;letter-spacing:.06em}
.hb-pill--style{background:#D7FF00}
.hb-art__body{display:flex;flex-direction:column;flex:1;padding:16px}
.hb-art__title{margin:0;font-size:16px;line-height:1.35;font-weight:600;height:2.7em;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.hb-art__title a,.hb-art__title a:hover{color:#000;text-decoration:none}
.hb-art__text{margin:8px 0 14px;font-size:14px;line-height:1.5;color:#7a7a7a;height:4.5em;overflow:hidden;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical}
.hb-round,.hb-round:hover,.hb-round:focus{margin-top:auto;align-self:flex-end;width:40px;height:40px;border:1px solid #cfcfcf;border-radius:50%;display:flex;align-items:center;justify-content:center;color:#000;text-decoration:none;background:#fff;transition:background .2s,border-color .2s}
.hb-art:hover .hb-round,.hb-round:hover{background:#D7FF00;border-color:#D7FF00}

.hb-mag,.hb-mag:hover,.hb-mag:focus{position:relative;display:flex;flex-direction:column;background:#D7FF00;border-radius:8px;padding:20px 20px 76px;overflow:hidden;color:#000;text-decoration:none}
.hb-mag__eyebrow{font-size:13px;font-weight:500}
.hb-mag__title{margin:10px 0 0;font-size:26px;line-height:1.15;font-weight:500;max-width:9em}
.hb-mag__pic{position:relative;flex:1;min-height:160px;margin-top:18px}
.hb-mag__pic img{position:absolute;left:0;bottom:0;max-width:100%;max-height:100%;width:auto;height:auto}
.hb-mag__stack span{position:absolute;bottom:0;width:46%;height:92%;background:#0b0b0b;border:1px solid #2a2a2a;border-radius:3px;transform:skewY(-5deg);transform-origin:left bottom}
.hb-mag__stack span:nth-child(1){left:34%}
.hb-mag__stack span:nth-child(2){left:27%}
.hb-mag__stack span:nth-child(3){left:20%}
.hb-mag__stack span:nth-child(4){left:13%}
.hb-mag__stack span:nth-child(5){left:6%}
.hb-mag__go{position:absolute;left:20px;bottom:20px;width:44px;height:44px;border-radius:50%;background:#fff;display:flex;align-items:center;justify-content:center;color:#000;transition:transform .2s}
.hb-mag:hover .hb-mag__go{transform:translateX(4px)}

/* ===== десктоп >=1200: 5 в ряд, карточка растёт при наведении ===== */
@media (min-width:1200px){
	.hb-grid>:nth-child(n+6){display:none}
}
@media (min-width:1200px) and (hover:hover){
	.hb-card:hover{padding-bottom:60px;margin-bottom:-46px;z-index:3;border-color:#000}
	.hb-card:hover .hb-buy,.hb-buy:focus-visible{opacity:1;pointer-events:auto;transform:none}
}

/* ===== тач и всё что уже 1200: кнопка «В КОРЗИНУ» всегда видна ===== */
@media (max-width:1199px),(hover:none){
	.hb-card{padding-bottom:62px}
	.hb-buy,.hb-buy:hover,.hb-buy:focus{opacity:1;pointer-events:auto;transform:none}
}

/* ===== планшет и телефон: ленты со свайпом, точки ===== */
@media (max-width:1199px){
	.hb-section{margin-bottom:32px}
	.hb-head{margin-bottom:14px}
	.hb-title{font-size:26px;padding-bottom:12px}
	.hb-grid{--hb-vis:3;grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:calc((100% - (var(--hb-vis) - 1) * var(--hb-gap)) / var(--hb-vis));overflow-x:auto;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;scrollbar-width:none}
	.hb-grid::-webkit-scrollbar{display:none}
	.hb-grid>*{scroll-snap-align:start}
	.hb-card__media{aspect-ratio:16/10}
	.hb-dots{display:flex}

	.hb-articles{grid-template-columns:1fr}
	.hb-articles__list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
	.hb-mag,.hb-mag:hover,.hb-mag:focus{min-height:200px;padding:22px 22px 78px}
	.hb-mag__title{font-size:30px;max-width:11em}
	.hb-mag__pic{position:absolute;top:0;right:0;bottom:0;width:46%;min-height:0;margin:0}
	.hb-mag__pic img{left:auto;right:0}
	.hb-mag__go{left:22px;bottom:22px}
}
@media (min-width:768px) and (max-width:1199px){
	.hb-articles__list>:nth-child(n+4){display:none}
	.hb-art__media{aspect-ratio:16/10}
}

/* ===== телефон: статьи горизонтальными карточками ===== */
@media (max-width:767px){
	.hb-section{margin-bottom:24px}
	.hb-head{margin-bottom:12px}
	.hb-title{font-size:22px;padding-bottom:8px}
	.hb-all,.hb-all:hover,.hb-all:focus{font-size:13px;padding-bottom:10px}
	.hb-grid{--hb-vis:2.5;--hb-gap:10px}
	.hb-card{padding:10px 10px 54px}
	.hb-card__media{aspect-ratio:4/3;margin-bottom:8px}
	.hb-card__name{font-size:13px}
	.hb-card__price{font-size:17px;margin-top:6px}
	.hb-buy,.hb-buy:hover,.hb-buy:focus{left:10px;right:10px;bottom:10px;height:34px;font-size:12px}

	.hb-articles__list{grid-template-columns:1fr;gap:10px}
	.hb-art{display:grid;grid-template-columns:38% minmax(0,1fr);height:120px;border-radius:10px}
	.hb-art__media{position:relative;aspect-ratio:auto}
	.hb-art__media img{position:absolute;top:0;left:0}
	.hb-pill{top:8px;left:8px;padding:6px 10px;font-size:10px}
	.hb-art__body{position:relative;padding:12px 58px 12px 14px;min-width:0}
	.hb-art__title{font-size:15px;height:auto;max-height:2.7em}
	.hb-art__text{margin:6px 0 0;font-size:12.5px;line-height:1.4;height:auto;max-height:2.8em;-webkit-line-clamp:2}
	.hb-art .hb-round{position:absolute;top:50%;right:12px;width:36px;height:36px;margin:0;transform:translateY(-50%)}

	.hb-mag,.hb-mag:hover,.hb-mag:focus{min-height:160px;padding:16px 16px 68px}
	.hb-mag__title{font-size:17px;max-width:62%;text-wrap:balance}
	.hb-mag__pic{width:44%}
	.hb-mag__go{left:16px;bottom:16px;width:40px;height:40px}
}

/* hb-reco-top: верхний отступ первого блока главной: 40 на десктопе (после баннера и плиток), 0 на планшете (30px даёт .body-content), 24 на телефоне */
.hb-section.hb-reco{margin-top:40px}
@media (max-width:1199px){.hb-section.hb-reco{margin-top:0}}
@media (max-width:767px){.hb-section.hb-reco{margin-top:24px}}

/* hb-fav-mobile: на телефоне сердечко у самого угла карточки, чтобы не попадать на фото товара */
@media (max-width:767px){
	.hb-fav{top:2px;right:2px;width:28px;height:28px}
}

/* hb-mag-bleed: обложки журнала выступают за край карточки и обрезаются ею (как на эскизе) */
.hb-mag__eyebrow,.hb-mag__title{position:relative;z-index:2}
.hb-mag__go{z-index:2}
@media (min-width:1200px){
	.hb-mag,.hb-mag:hover,.hb-mag:focus{overflow:visible}
	.hb-mag{--mag-w:102%;--mag-r:-14%;z-index:1}
	.hb-mag .hb-mag__pic{position:absolute;top:auto;left:auto;right:var(--mag-r);bottom:0;transform:translateY(10%);width:var(--mag-w);height:auto;min-height:0;margin:0;flex:none;pointer-events:none}
	.hb-mag .hb-mag__pic img{position:static;display:block;width:100%;height:auto;max-width:none;max-height:none}
}
@media (min-width:768px) and (max-width:1199px){
	.hb-mag,.hb-mag:hover,.hb-mag:focus{--mag-h:190%;--mag-r:6%;overflow:hidden}
	.hb-mag .hb-mag__pic{top:50%;left:auto;right:var(--mag-r);bottom:auto;transform:translateY(-33%);width:auto;height:var(--mag-h);aspect-ratio:1/1;pointer-events:none}
	.hb-mag .hb-mag__pic img{position:static;display:block;width:100%;height:100%;max-width:none;max-height:none;object-fit:contain;object-position:right bottom}
}
@media (max-width:767px){
	.hb-mag,.hb-mag:hover,.hb-mag:focus{--mag-h:194px;--mag-r:-5%;overflow:hidden}
	.hb-mag .hb-mag__pic{top:auto;left:auto;right:var(--mag-r);bottom:0;transform:translateY(10%);width:auto;height:var(--mag-h);aspect-ratio:1/1;pointer-events:none}
	.hb-mag .hb-mag__pic img{position:static;display:block;width:100%;height:100%;max-width:none;max-height:none;object-fit:contain;object-position:right bottom}
}
