/*
 * Hellsworld Blocks — blocks.css
 * Все правила имеют префикс .hwb- чтобы не конфликтовать
 * со стилями темы сайта hellstar.alex-web.pp.ua
 *
 * На фронтенде подключается ТОЛЬКО на главной странице (is_front_page).
 */

/* ── Шрифт (локально — без внешних запросов к Google CDN) ───────────────── */
@font-face { font-family:'Manrope'; src:url('fonts/manrope-v20-latin-700.woff2') format('woff2'); font-weight:700; font-style:normal; font-display:swap; }
@font-face { font-family:'Manrope'; src:url('fonts/manrope-v20-latin-800.woff2') format('woff2'); font-weight:800; font-style:normal; font-display:swap; }
@font-face { font-family:'Plus Jakarta Sans'; src:url('fonts/plus-jakarta-sans-v12-latin-regular.woff2') format('woff2'); font-weight:400; font-style:normal; font-display:swap; }
@font-face { font-family:'Plus Jakarta Sans'; src:url('fonts/plus-jakarta-sans-v12-latin-500.woff2') format('woff2'); font-weight:500; font-style:normal; font-display:swap; }
@font-face { font-family:'Plus Jakarta Sans'; src:url('fonts/plus-jakarta-sans-v12-latin-600.woff2') format('woff2'); font-weight:600; font-style:normal; font-display:swap; }
@font-face { font-family:'Plus Jakarta Sans'; src:url('fonts/plus-jakarta-sans-v12-latin-700.woff2') format('woff2'); font-weight:700; font-style:normal; font-display:swap; }

/* ── CSS-переменные ─────────────────────────────────────────────────────── */
:root {
    --hwb-black:    #0a0a0a;
    --hwb-white:    #ffffff;
    --hwb-alt:      #f5f5f5;
    --hwb-border:   #e5e5e5;
    --hwb-muted:    #5c5c5c;
    --hwb-light:    #999999;
    --hwb-green:    #22c55e;
    --hwb-amber:    #f59e0b;
    --hwb-red:      #e53935;
    --hwb-r:        14px;           /* border-radius */
    --hwb-px:       clamp(16px, 5vw, 48px);
    --hwb-font-h:   'Manrope', sans-serif;
    --hwb-font-b:   'Plus Jakarta Sans', sans-serif;
}

/* ── Базовые обёртки ────────────────────────────────────────────────────── */
.hwb-wrap {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--hwb-px);
    padding-right: var(--hwb-px);
}
.hwb-wrap--narrow { max-width: 700px; }
.hwb-center { text-align: center; }

.hwb-section {
    padding-top:    clamp(48px, 8vw, 88px);
    padding-bottom: clamp(48px, 8vw, 88px);
    padding-left:   var(--hwb-px);
    padding-right:  var(--hwb-px);
}
.hwb-section--alt  { background: var(--hwb-alt); }
.hwb-section--dark { background: var(--hwb-black); }

/* ── Сетка ──────────────────────────────────────────────────────────────── */
.hwb-grid {
    display: grid;
    gap: 16px;
}
.hwb-products-grid { grid-template-columns: repeat(var(--hwb-cols, 4), 1fr); }
.hwb-cats-grid     { grid-template-columns: repeat(3, 1fr); }
.hwb-steps-grid    { grid-template-columns: repeat(4, 1fr); }
.hwb-reviews-grid  { grid-template-columns: repeat(3, 1fr); }

/* ── Кнопки ─────────────────────────────────────────────────────────────── */
.hwb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--hwb-font-b);
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 12px 26px;
    border-radius: 100px;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.15s ease;
    white-space: nowrap;
    line-height: 1;
}
.hwb-btn:hover  { opacity: 0.85; }
.hwb-btn:active { transform: scale(0.97); }
.hwb-btn--lg  { font-size: 13px; padding: 15px 34px; }
.hwb-btn--sm  { font-size: 11px; padding: 8px 18px; }

.hwb-btn--dark         { background: var(--hwb-black); color: var(--hwb-white)!important; border-color: var(--hwb-black); }
.hwb-btn--white        { background: var(--hwb-white); color: var(--hwb-black); }
.hwb-btn--outline      { background: transparent;      color: var(--hwb-black); border-color: var(--hwb-black); }
.hwb-btn--outline-light{ background: transparent;      color: var(--hwb-white); border-color: rgba(255,255,255,.45); }

/* ── Типографика секций ─────────────────────────────────────────────────── */
.hwb-section-title {
    text-align: center;
    max-width: 580px;
    margin: 0 auto 40px;
}
.hwb-overline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-family: var(--hwb-font-b);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--hwb-light);
    margin-bottom: 12px;
}
.hwb-overline--light { color: rgba(255,255,255,.5); }
.hwb-heading {
    font-family: var(--hwb-font-h);
    font-size: clamp(24px, 5vw, 42px);
    font-weight: 700;
    color: var(--hwb-black);
    line-height: 1.08;
    letter-spacing: -0.025em;
    margin: 0;
}
.hwb-section--dark .hwb-heading { color: var(--hwb-white); }
.hwb-subtitle {
    font-family: var(--hwb-font-b);
    font-size: 14px;
    color: var(--hwb-muted);
    margin-top: 14px;
    line-height: 1.65;
}
.hwb-section--dark .hwb-subtitle { color: rgba(255,255,255,.55); }

/* ── Бейджи ─────────────────────────────────────────────────────────────── */
.hwb-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 100px;
    font-family: var(--hwb-font-b);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}
.hwb-badge--verified { background: #f0fdf4; color: #16a34a; }
.hwb-badge--sale     { 
    background: var(--hwb-red);
    color: var(--hwb-white);
    width: 250px;
    display: flex;
    justify-content: center;
}
.hwb-badge--rare     { background: #fffbeb; color: #d97706; }

/* ── Placeholder ────────────────────────────────────────────────────────── */
.hwb-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 180px;
    background: linear-gradient(145deg, #f0f0f0, #e0e0e0);
    color: var(--hwb-light);
    font-size: 11px;
    font-family: var(--hwb-font-b);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: var(--hwb-r);
}

.hwb-empty {
    text-align: center;
    color: var(--hwb-muted);
    font-size: 14px;
    padding: 32px 0;
}

/* ════════════════════════════════════════════════════════════════════════════
   HERO
   ════════════════════════════════════════════════════════════════════════════ */
.hwb-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background: #111;
}
/* Фоновое изображение героя — через <picture> + <img> */
.hwb-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: block;
    margin: 0;
    padding: 0;
}
.hwb-hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}
.hwb-hero__overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    /* background задаётся инлайн из PHP (overlay color + opacity) */
}
.hwb-hero__inner {
    position: relative;
    z-index: 2;
    width: 100%;
    padding-top:    clamp(40px, 6vw, 72px);
    padding-bottom: clamp(48px, 6vw, 80px);
}
.hwb-hero__heading {
    font-family: var(--hwb-font-h);
    font-size: clamp(38px, 8vw, 72px);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -0.03em;
    color: var(--hwb-white);
    max-width: 700px;
    margin: 14px 0 18px;
}
.hwb-hero__sub {
    font-size: clamp(14px, 2vw, 17px);
    line-height: 1.7;
    color: rgba(255,255,255,.85);
    max-width: 480px;
    margin-bottom: 32px;
    font-family: var(--hwb-font-b);
}
.hwb-hero__ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}
.hwb-hero__badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--hwb-font-b);
    font-size: 13px;
    font-weight: 500;
    color: rgba(255,255,255,.5);
}

/* ════════════════════════════════════════════════════════════════════════════
   TRUST STRIP
   ════════════════════════════════════════════════════════════════════════════ */
.hwb-trust-strip {
    display: flex;
    gap: 28px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 16px var(--hwb-px);
    border-top: 1px solid var(--hwb-border);
    border-bottom: 1px solid var(--hwb-border);
    justify-content: space-around;
}
.hwb-trust-strip::-webkit-scrollbar { display: none; }
.hwb-trust-strip__item {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    font-family: var(--hwb-font-b);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--hwb-muted);
    white-space: nowrap;
}

/* ════════════════════════════════════════════════════════════════════════════
   PRODUCTS GRID
   ════════════════════════════════════════════════════════════════════════════ */
.hwb-filters {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    justify-content: center;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 28px;
    padding-bottom: 4px;
}
.hwb-filters::-webkit-scrollbar { display: none; }
.hwb-filter-btn {
    flex-shrink: 0;
    padding: 8px 18px;
    border-radius: 100px;
    border: 1.5px solid var(--hwb-border);
    background: transparent;
    color: var(--hwb-muted);
    font-family: var(--hwb-font-b);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s ease;
}
.hwb-filter-btn--active,
.hwb-filter-btn:hover {
    background: var(--hwb-black);
    border-color: var(--hwb-black);
    color: var(--hwb-white);
}

.hwb-product-card {
    background: var(--hwb-white);
    border-radius: var(--hwb-r);
    overflow: hidden;
    border: 1px solid var(--hwb-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
}
.hwb-product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 48px rgba(0,0,0,.08);
}
.hwb-product-card__img-wrap {
    display: block;
    position: relative;
    overflow: hidden;
    text-decoration: none;
}
.hwb-product-card__img-wrap img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.hwb-product-card:hover .hwb-product-card__img-wrap img { transform: scale(1.04); }
.hwb-product-card__img-wrap .hwb-badge {
    position: absolute;
    top: 8px;
    left: 8px;
}
.hwb-product-card__cat {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0,0,0,.65);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 100px;
    letter-spacing: 0.04em;
    font-family: var(--hwb-font-b);
    text-transform: uppercase;
}
.hwb-product-card__body { padding: 12px 14px 14px; }
.hwb-product-card__name {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    margin: 0 0 10px;
    font-family: var(--hwb-font-b);
}
.hwb-product-card__name a {
    color: var(--hwb-black);
    text-decoration: none;
}
.hwb-product-card__name a:hover { text-decoration: underline; }
.hwb-product-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}
.hwb-product-card__price {
    font-family: var(--hwb-font-h);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--hwb-black);
}

/* ════════════════════════════════════════════════════════════════════════════
   DEAL + TIMER
   ════════════════════════════════════════════════════════════════════════════ */
.hwb-deal {
    background: var(--hwb-black);
    border-radius: 16px;
    overflow: hidden;
    margin: 0 var(--hwb-px) clamp(48px, 8vw, 88px);
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
}
.hwb-deal__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
}
.hwb-deal__image {
    position: relative;
    min-height: 300px;
    overflow: hidden;
}
.hwb-deal__image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hwb-deal__content {
    padding: clamp(28px, 4vw, 52px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
}
.hwb-deal__heading {
    font-family: var(--hwb-font-h);
    font-size: clamp(22px, 3.5vw, 34px);
    font-weight: 800;
    color: var(--hwb-white);
    letter-spacing: -0.025em;
    line-height: 1.12;
    margin: 0;
}
.hwb-deal__sub {
    font-family: var(--hwb-font-b);
    font-size: 13px;
    color: rgba(255,255,255,.5);
    margin: 0;
}

.hwb-timer {
    display: flex;
    gap: 8px;
}
.hwb-timer__unit { text-align: center; }
.hwb-timer__val {
    display: block;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 10px;
    padding: 10px 14px;
    font-family: var(--hwb-font-h);
    font-size: 24px;
    font-weight: 800;
    color: var(--hwb-white);
    min-width: 52px;
    letter-spacing: -0.02em;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}
.hwb-timer__label {
    display: block;
    font-family: var(--hwb-font-b);
    font-size: 9px;
    font-weight: 600;
    color: rgba(255,255,255,.3);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 5px;
}

/* ════════════════════════════════════════════════════════════════════════════
   SALE BANNER
   ════════════════════════════════════════════════════════════════════════════ */
.hwb-sale-banner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-radius: 16px;
    overflow: hidden;
    background: var(--hwb-black);
    transition: box-shadow 0.3s ease;
}
.hwb-sale-banner:hover { box-shadow: 0 20px 56px rgba(0,0,0,.15); }
.hwb-sale-banner__image {
    position: relative;
    min-height: 300px;
    overflow: hidden;
}
.hwb-sale-banner__image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hwb-sale-banner__content {
    padding: clamp(28px, 5vw, 60px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
}
.hwb-sale-banner__heading {
    font-family: var(--hwb-font-h);
    font-size: clamp(24px, 5vw, 48px);
    font-weight: 800;
    color: var(--hwb-white);
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin: 0;
}
.hwb-sale-banner__sub {
    font-family: var(--hwb-font-b);
    font-size: clamp(13px, 1.5vw, 15px);
    color: rgba(255,255,255,.55);
    line-height: 1.65;
    margin: 0;
    max-width: 380px;
}
.hwb-sale-banner__actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}
.hwb-sale-banner__disclaimer {
    font-family: var(--hwb-font-b);
    font-size: 11px;
    color: rgba(255,255,255,.3);
}

/* ════════════════════════════════════════════════════════════════════════════
   CATEGORIES
   ════════════════════════════════════════════════════════════════════════════ */
.hwb-cat-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #1a1a1a;
    cursor: pointer;
    transition: transform 0.3s ease;
}
.hwb-cat-card:hover { transform: translateY(-5px); }
.hwb-cat-card__img {
    height: 300px;
    min-height: 300px;
    overflow: hidden;
    position: relative;
}
.hwb-cat-card__img img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.4s ease;
}
.hwb-cat-card:hover .hwb-cat-card__img img { transform: scale(1.05); }
.hwb-cat-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.78) 0%, rgba(0,0,0,.2) 55%, transparent 100%);
    pointer-events: none;
}
.hwb-cat-card__btn {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: clamp(16px, 2.5vw, 26px);
    display: block;
    text-align: center;
    font-family: var(--hwb-font-h);
    font-size: clamp(14px, 1.8vw, 18px);
    font-weight: 700;
    color: var(--hwb-white);
    text-decoration: none;
    background: rgba(255,255,255,.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-top: 1px solid rgba(255,255,255,.12);
    transition: background 0.2s ease;
}
.hwb-cat-card__btn:hover { background: rgba(255,255,255,.2); color: var(--hwb-white); }

/* ════════════════════════════════════════════════════════════════════════════
   HOW IT WORKS
   ════════════════════════════════════════════════════════════════════════════ */
.hwb-step {
    background: var(--hwb-alt);
    border-radius: var(--hwb-r);
    padding: clamp(20px, 3vw, 30px);
}
.hwb-step--dark {
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.08);
}
.hwb-step__num {
    font-family: var(--hwb-font-h);
    font-size: clamp(30px, 4vw, 40px);
    font-weight: 800;
    color: rgba(0,0,0,.07);
    line-height: 1;
    margin-bottom: 14px;
}
.hwb-step--dark .hwb-step__num { color: rgba(255,255,255,.08); }
.hwb-step__title {
    font-family: var(--hwb-font-b);
    font-size: 14px;
    font-weight: 700;
    color: var(--hwb-black);
    margin: 0 0 8px;
}
.hwb-step--dark .hwb-step__title { color: var(--hwb-white); }
.hwb-step__desc {
    font-family: var(--hwb-font-b);
    font-size: 13px;
    line-height: 1.65;
    color: var(--hwb-muted);
    margin: 0;
}
.hwb-step--dark .hwb-step__desc { color: rgba(255,255,255,.45); }

/* ════════════════════════════════════════════════════════════════════════════
   TESTIMONIALS
   ════════════════════════════════════════════════════════════════════════════ */
.hwb-review {
    background: var(--hwb-white);
    border-radius: var(--hwb-r);
    padding: clamp(20px, 3vw, 28px);
    border: 1px solid var(--hwb-border);
}
.hwb-stars {
    display: flex;
    gap: 3px;
    margin-bottom: 14px;
}
.hwb-review__text {
    font-family: var(--hwb-font-b);
    font-size: 14px;
    line-height: 1.7;
    color: var(--hwb-muted);
    margin: 0 0 18px;
    font-style: normal;
}
.hwb-review__author {
    display: flex;
    align-items: center;
    gap: 10px;
}
.hwb-review__avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--hwb-black);
    color: var(--hwb-white);
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-family: var(--hwb-font-b);
}
.hwb-review__name { font-size: 13px; font-weight: 600; color: var(--hwb-black); font-family: var(--hwb-font-b); }
.hwb-review__loc  { font-size: 11px; color: var(--hwb-light); font-family: var(--hwb-font-b); }

/* ════════════════════════════════════════════════════════════════════════════
   SELL SECTION
   ════════════════════════════════════════════════════════════════════════════ */
.hwb-sell-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    background: var(--hwb-alt);
    border-radius: 16px;
    border: 1px solid var(--hwb-border);
    padding: clamp(28px, 5vw, 56px);
}
.hwb-sell__content { display: flex; flex-direction: column; gap: 16px; }
.hwb-sell__points {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.hwb-sell__point {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--hwb-font-b);
    font-size: 13px;
    color: var(--hwb-muted);
}
.hwb-sell__image img {
    width: 100%;
    border-radius: var(--hwb-r);
    display: block;
}

/* ════════════════════════════════════════════════════════════════════════════
   FAQ
   ════════════════════════════════════════════════════════════════════════════ */
.hwb-faq { display: flex; flex-direction: column; gap: 8px; }
.hwb-faq__item {
    background: var(--hwb-white);
    border-radius: 12px;
    border: 1px solid var(--hwb-border);
    overflow: hidden;
    transition: border-color 0.2s ease;
}
.hwb-faq__item.is-open { border-color: var(--hwb-black); }
.hwb-faq__btn {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--hwb-font-b);
    font-size: 14px;
    font-weight: 600;
    color: var(--hwb-black);
    text-align: left;
    line-height: 1.4;
}
.hwb-faq__chevron { flex-shrink: 0; transition: transform 0.3s ease; }
.hwb-faq__answer {
    padding: 0 18px 18px;
}
.hwb-faq__answer p {
    font-family: var(--hwb-font-b);
    font-size: 13px;
    line-height: 1.7;
    color: var(--hwb-muted);
    margin: 0;
}

/* ════════════════════════════════════════════════════════════════════════════
   EMAIL CAPTURE
   ════════════════════════════════════════════════════════════════════════════ */
.hwb-email-card {
    background: var(--hwb-alt);
    border-radius: 16px;
    border: 1px solid var(--hwb-border);
    padding: clamp(28px, 5vw, 52px);
    text-align: center;
}
.hwb-email-form { max-width: 420px; margin: 0 auto 0; }
.hwb-email-form__row {
    display: flex;
    gap: 8px;
    margin-top: 20px;
}
.hwb-email-form__input {
    flex: 1;
    padding: 13px 18px;
    border: 1.5px solid var(--hwb-border);
    border-radius: 100px;
    font-family: var(--hwb-font-b);
    font-size: 13px;
    background: var(--hwb-white);
    color: var(--hwb-black);
    min-width: 0;
    transition: border-color 0.2s ease;
}
.hwb-email-form__input:focus {
    outline: none;
    border-color: var(--hwb-black);
}
.hwb-email-card__note {
    font-family: var(--hwb-font-b);
    font-size: 11px;
    color: var(--hwb-light);
    margin-top: 14px;
}
.hwb-success-msg {
    margin-top: 12px;
    padding: 10px 16px;
    background: #f0fdf4;
    color: #16a34a;
    border-radius: 8px;
    font-size: 13px;
    font-family: var(--hwb-font-b);
    font-weight: 600;
}

/* Стрелки и скролл-бар слайдера — скрыты на десктопе, видны только на мобиле */
.hwb-slider-controls  { display: none; }
.hwb-slider-scrollbar { display: none; }

/* ════════════════════════════════════════════════════════════════════════════
   АДАПТИВНОСТЬ
   ════════════════════════════════════════════════════════════════════════════ */

/* ── 1100px ─────────────────────────────────────────────────────────────── */
@media (min-width: 769px) and (max-width: 1100px) {
    .hwb-products-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 1100px) {
    .hwb-steps-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── 900px ──────────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .hwb-reviews-grid { grid-template-columns: 1fr 1fr; }
    .hwb-cats-grid    { grid-template-columns: 1fr 1fr; }
}

/* ── 768px (планшет / большой телефон) ──────────────────────────────────── */
@media (max-width: 768px) {
    /* Секции — уменьшаем вертикальные отступы */
    .hwb-section {
        padding-top:    40px;
        padding-bottom: 40px;
    }

    /* Герой — центрируем всё по горизонтали */
    .hwb-hero { align-items: center; }
    .hwb-hero__inner { text-align: center; }
    .hwb-hero__heading { max-width: 100%; }
    .hwb-hero__sub { max-width: 100%; margin-left: auto; margin-right: auto; }
    .hwb-hero__ctas { justify-content: center; flex-direction: column; align-items: center; }
    .hwb-hero__ctas .hwb-btn { width: 100%; max-width: 320px; justify-content: center; }
    .hwb-hero__badge { justify-content: center; }
    .hwb-overline--light { justify-content: center; }

    /* Гриды → 1 колонка */
    .hwb-deal__grid,
    .hwb-sale-banner,
    .hwb-sell-inner   { grid-template-columns: 1fr; }

    /* Deal Timer — фото как фон на мобилке, контент поверх */
    .hwb-deal {
        position: relative;
        background: var(--hwb-deal-bg, none) center / cover no-repeat var(--hwb-black);
    }
    .hwb-deal::before {
        content: '';
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, var(--hwb-deal-overlay, 0.55));
        border-radius: inherit;
        z-index: 0;
    }
    .hwb-deal__grid    { position: relative; z-index: 1; }
    .hwb-deal__content { order: 1; }
    .hwb-deal__image   { display: none; }

    /* Sale Banner — контент сверху, фото снизу */
    .hwb-sale-banner__content { order: 1; }
    .hwb-sale-banner__image   { order: 2; min-height: 220px; }

    /* Прячем фото в Sell Section */
    /* .hwb-sell__image { display: none; } */

    /* Badge Sale — убираем фиксированную ширину */
    .hwb-badge--sale { width: auto; }

    /* Таймер — чуть меньше на планшете */
    .hwb-timer__val {
        font-size: 22px;
        min-width: 48px;
        padding: 9px 12px;
    }

    /* Email форма → вертикально */
    .hwb-email-form__row { flex-direction: column; }
    .hwb-email-form__row .hwb-btn { width: 100%; }

    /* Продукты — горизонтальный слайдер на мобиле */
    .hwb-products-wrap { overflow-x: clip; }
    .hwb-products-grid {
        display: flex !important;
        grid-template-columns: none !important;
        flex-wrap: nowrap !important;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 12px;
        padding: 4px 16px 16px;
        margin-left: calc(-1 * var(--hwb-px));
        margin-right: calc(-1 * var(--hwb-px));
        scroll-padding-left: 16px;
    }
    .hwb-products-grid::-webkit-scrollbar { display: none; }
    .hwb-product-card {
        flex: 0 0 var(--hwb-slider-card-w, 72vw);
        max-width: var(--hwb-slider-card-w, 72vw);
        scroll-snap-align: start;
    }

    /* Стрелки навигации слайдера */
    .hwb-slider-controls {
        display: flex;
        justify-content: flex-end;
        gap: 8px;
        margin-bottom: 12px;
    }
    .hwb-slider-arrow {
        width: 38px;
        height: 38px;
        border-radius: 50%;
        border: 1.5px solid var(--hwb-border);
        background: var(--hwb-white);
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        color: var(--hwb-black);
        transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
        flex-shrink: 0;
    }
    .hwb-slider-arrow:hover {
        background: var(--hwb-black);
        border-color: var(--hwb-black);
        color: var(--hwb-white);
    }
    .hwb-slider-arrow:disabled {
        opacity: 0.3;
        cursor: default;
        pointer-events: none;
    }

    /* Нижний скролл-бар */
    .hwb-slider-scrollbar {
        position: relative;
        height: 3px;
        background: var(--hwb-border);
        border-radius: 3px;
        margin: 8px 0 0;
        overflow: hidden;
    }
    .hwb-slider-scrollbar__thumb {
        position: absolute;
        left: 0;
        top: 0;
        height: 100%;
        width: 30%;
        background: var(--hwb-black);
        border-radius: 3px;
        transition: left 0.1s linear, width 0.1s linear;
    }

    /* Trustpilot — лого сверху, рейтинги в ряд */
    .hwb-trustpilot { flex-direction: column; align-items: center; gap: 12px; padding: 20px var(--hwb-px); }
    .hwb-trustpilot__logo { padding-right: 0; }
    .hwb-trustpilot__sep { width: 48px; height: 1px; margin-right: 0; }
    .hwb-trustpilot__ratings { width: 100%; justify-content: center; }
    .hwb-trustpilot__item { flex: 1; padding: 0 16px; }
}

/* ── 540px (маленький телефон) ───────────────────────────────────────────── */
@media (max-width: 540px) {
    /* Секции — ещё меньше отступы */
    .hwb-section { padding-top: 32px; padding-bottom: 32px; }

    /* Герой — компактнее на маленьком телефоне */
    .hwb-hero__heading { font-size: clamp(28px, 9vw, 42px); }

    /* Гриды → 1 колонка */
    .hwb-cats-grid    { grid-template-columns: 1fr; }
    .hwb-reviews-grid { grid-template-columns: 1fr; }
    .hwb-steps-grid   { grid-template-columns: 1fr; }

    /* Продукты — карточка чуть шире на маленьком телефоне */
    .hwb-product-card { flex: 0 0 var(--hwb-slider-card-w, 80vw); max-width: var(--hwb-slider-card-w, 80vw); }

    /* Категории — меньше высота на маленьком телефоне */
    .hwb-cat-card__img { height: 220px; min-height: 220px; }

    /* Таймер — компактный */
    .hwb-timer { gap: 6px; }
    .hwb-timer__val {
        font-size: 18px;
        min-width: 40px;
        padding: 7px 9px;
    }

    /* Deal + Sale Banner — меньше паддинг контента */
    .hwb-deal__content { padding: 24px 20px; }
    .hwb-sale-banner__content { padding: 24px 20px; }

    /* Sell inner — меньше паддинг */
    .hwb-sell-inner { padding: 28px 24px; gap: 24px; }

    /* Trustpilot — компактнее на маленьком телефоне */
    .hwb-trustpilot__item { padding: 0 10px; }
    .hwb-trustpilot__star { width: 18px; height: 18px; }
    .hwb-trustpilot__star svg { width: 11px; height: 11px; }
    .hwb-trustpilot__item-score { font-size: 18px; }
    .hwb-trustpilot__item-label { font-size: 9px; letter-spacing: 0.04em; }

    /* Trust strip — перенос строк на маленьких экранах */
    .hwb-trust-strip {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px 20px;
    }

    /* Hero badge — перенос */
    .hwb-hero__badge { flex-wrap: wrap; }

    /* Карточки товаров — уменьшаем цену */
    .hwb-product-card__price { font-size: 15px; }
    .hwb-product-card__footer { flex-wrap: wrap; gap: 6px; }
}

/* ── Экранный ридер ─────────────────────────────────────────────────────── */
.screen-reader-text {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0);
    white-space: nowrap; border: 0;
}

/* ════════════════════════════════════════════════════════════════════════════
   TRUSTPILOT BLOCK
   ════════════════════════════════════════════════════════════════════════════ */
.hwb-trustpilot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    padding: 24px var(--hwb-px);
    border-top: 1px solid var(--hwb-border);
    border-bottom: 1px solid var(--hwb-border);
    background: var(--hwb-white);
}
.hwb-trustpilot__logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    padding-right: 32px;
}
.hwb-trustpilot__logo-img {
    display: block;
    height: 44px;
    width: auto;
}
.hwb-trustpilot__sep {
    width: 1px;
    height: 52px;
    background: var(--hwb-border);
    margin-right: 32px;
    flex-shrink: 0;
}
.hwb-trustpilot__ratings {
    display: flex;
    align-items: center;
}
.hwb-trustpilot__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 0 28px;
    border-right: 1px solid var(--hwb-border);
}
.hwb-trustpilot__item:last-child {
    border-right: none;
}
.hwb-trustpilot__stars {
    display: flex;
    gap: 2px;
}
.hwb-trustpilot__star {
    width: 22px;
    height: 22px;
    border-radius: 2px;
    background: #00B67A;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.hwb-trustpilot__star svg {
    width: 13px;
    height: 13px;
    fill: #fff;
}
.hwb-trustpilot__item-score {
    font-family: var(--hwb-font-h);
    font-size: 22px;
    font-weight: 800;
    color: var(--hwb-black);
    letter-spacing: -0.02em;
    line-height: 1;
}
.hwb-trustpilot__item-label {
    font-family: var(--hwb-font-b);
    font-size: 11px;
    color: var(--hwb-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* ════════════════════════════════════════════════════════════════════════════
   THEME OVERRIDES — только главная (body.home)
   ════════════════════════════════════════════════════════════════════════════ */
body.home .container {
    width: 100% !important;
    max-width: 100% !important;
}
body.home .hwb-sale-banner__image .hero-content__inner .img {
    min-height: 100% !important;
}
body.home .hwb-cat-card__img .hero-content__inner img {
    max-width: 100%;
    height: 100% !important;
    margin: 24px 0;
    object-fit: cover !important;
}
body.home .hero-content__inner a {
    color: #000000 !important;
    text-decoration: underline !important;
}
/* Все ссылки внутри HWB-блоков на главной — чёрные, без красного от темы */
body.home .hwb-wrap a:not(.hwb-btn):not(.hwb-trustpilot__logo) {
    color: inherit !important;
    text-decoration: none !important;
}
body.home .hwb-wrap a:not(.hwb-btn):not(.hwb-trustpilot__logo):hover {
    text-decoration: underline !important;
}

/* ════════════════════════════════════════════════════════════════════════════
   LEGAL NOTICE BLOCK
   ════════════════════════════════════════════════════════════════════════════ */
.hwb-legal-notice {
    padding: 20px var(--hwb-px);
    border-top: 1px solid var(--hwb-border);
    background: var(--hwb-white);
}
.hwb-legal-notice__card {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    padding: 18px 20px;
    background: var(--hwb-alt);
    border-radius: 12px;
    border: 1px solid var(--hwb-border);
}
.hwb-legal-notice__text {
    font-family: var(--hwb-font-b);
    font-size: 11px;
    line-height: 1.6;
    color: var(--hwb-light);
    margin: 0;
}