/**
 * Стилі головної сторінки (braslet.kh.ua)
 * Усі класи в неймспейсі .bbn-* / .bbn__* щоб не конфліктувати з темою.
 *
 * Редизайн 07.2026 — ролі кольорів:
 *   червоний  (--c-primary)   = дія і гроші: кнопки замовлення, ціни, акції
 *   синій     (--c-secondary) = каркас: заголовки, меню, другорядні кнопки
 *   жовтий    (--c-accent)    = ярлики «Хіт» та підсвітка сум
 */

:root {
    --c-primary: #e31e24;
    --c-primary-dark: #b31920;
    --c-secondary: #153475;
    --c-secondary-light: #1f4a9e;
    --c-accent: #FFF454;
    --c-text: #1a1a1a;
    --c-text-muted: #6b6f75;
    --c-border: #e3e5e8;
    --c-bg: #ffffff;
    --c-bg-light: #f7f8fa;
    --c-bg-dark: #0e1f4a;
    --c-instock: #1e9e3e;
    --radius: 8px;
    --radius-lg: 12px;
    --shadow-sm: 0 2px 8px rgba(15, 30, 60, 0.06);
    --shadow-md: 0 8px 24px rgba(15, 30, 60, 0.1);
}

/* Скоп для наших секцій, щоб не конфліктувати з темою */
.bbn { font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; color: var(--c-text); }
.bbn *, .bbn *::before, .bbn *::after { box-sizing: border-box; }
.bbn img { max-width: 100%; height: auto; display: block; }
.bbn a { transition: color .2s; }
.bbn h1, .bbn h2, .bbn h3, .bbn h4 { font-weight: 800; line-height: 1.2; color: var(--c-secondary); margin: 0; }
.bbn p { margin: 0; }
.bbn ul { list-style: none; padding: 0; margin: 0; }

.bbn__container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.bbn__section { padding: 52px 0; }
.bbn__section--alt { background: var(--c-bg-light); }
.bbn__section-title { font-size: 28px; margin-bottom: 10px; }
.bbn__section-subtitle { color: var(--c-text-muted); font-size: 16px; max-width: 720px; margin: 0 auto; }
.bbn__section-head { text-align: center; margin-bottom: 36px; }

.bbn__btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 13px 26px;
    border-radius: var(--radius);
    font-weight: 700; font-size: 15px;
    transition: background .2s ease, border-color .2s ease, box-shadow .2s ease;
    white-space: nowrap; text-decoration: none;
    border: none; cursor: pointer;
}
.bbn__btn--primary { background: var(--c-primary); color: #fff !important; }
.bbn__btn--primary:hover { background: var(--c-primary-dark); color: #fff !important; box-shadow: var(--shadow-sm); }
.bbn__btn--secondary { background: #fff; color: var(--c-secondary) !important; border: 2px solid var(--c-border); }
.bbn__btn--secondary:hover { border-color: var(--c-secondary); }
.bbn__btn--lg { padding: 16px 32px; font-size: 16px; }

/* ============================================================ HERO (короткий) ============================================================ */
.bbn-hero { background: var(--c-bg); border-bottom: 1px solid var(--c-border); }
.bbn-hero .bbn__container { padding-top: 40px; padding-bottom: 32px; text-align: center; }
.bbn-hero__title { font-size: 38px; color: var(--c-secondary); margin-bottom: 12px; line-height: 1.15; }
.bbn-hero__title span { color: var(--c-primary); }
.bbn-hero__lead { font-size: 17px; color: var(--c-text-muted); margin: 0 auto 20px; max-width: 640px; line-height: 1.55; }
.bbn-hero__perks { display: flex; justify-content: center; gap: 10px 26px; flex-wrap: wrap; }
.bbn-hero__perks span {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 14px; font-weight: 600; color: var(--c-text);
}
.bbn-hero__perks svg { color: var(--c-secondary); flex-shrink: 0; }

.bbn-hero__delivery { background: var(--c-secondary); padding: 14px 0; color: #fff; }
.bbn-hero__delivery-inner { display: flex; align-items: center; justify-content: center; gap: 14px; font-size: 15px; font-weight: 600; text-align: center; flex-wrap: wrap; }

/* ============================================================ КАТЕГОРІЇ ============================================================ */
.bbn-cats__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.bbn-cat {
    background: #fff; border-radius: var(--radius-lg);
    padding: 24px; transition: box-shadow .2s ease, border-color .2s ease;
    border: 1px solid var(--c-border);
    text-decoration: none; color: inherit;
    display: block;
}
.bbn-cat:hover { border-color: var(--c-secondary); box-shadow: var(--shadow-md); }
.bbn-cat__image {
    width: 100%; height: 190px;
    background: var(--c-bg-light); border-radius: var(--radius);
    margin-bottom: 16px;
    overflow: hidden;
    display: flex; align-items: center; justify-content: center;
}
.bbn-cat__image img { width: 100%; height: 100%; object-fit: cover; }
.bbn-cat__title { font-size: 20px; color: var(--c-secondary); margin-bottom: 6px; }
.bbn-cat:hover .bbn-cat__title { color: var(--c-secondary-light); }
.bbn-cat__desc { color: var(--c-text-muted); font-size: 14px; margin-bottom: 14px; min-height: 40px; }
.bbn-cat__meta { display: flex; justify-content: space-between; align-items: center; }
.bbn-cat__price { color: var(--c-primary); font-weight: 800; font-size: 17px; }
.bbn-cat__price small { color: var(--c-text-muted); font-weight: 500; }
.bbn-cat__arrow { color: var(--c-secondary); transition: transform .2s; }
.bbn-cat:hover .bbn-cat__arrow { transform: translateX(4px); }

/* ============================================================ ТОП-ТОВАРИ (картки з палітрою) ============================================================ */
.bbn-top__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.bbn-prod {
    position: relative;
    background: #fff; border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    padding: 14px;
    display: flex; flex-direction: column;
    overflow: hidden;
    transition: box-shadow .2s ease;
}
.bbn-prod:hover { box-shadow: var(--shadow-md); }
.bbn-prod__ribbon {
    position: absolute; top: 18px; left: -38px;
    width: 150px; transform: rotate(-45deg);
    background: var(--c-accent); color: var(--c-secondary);
    font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em;
    text-align: center; padding: 5px 0;
    box-shadow: 0 1px 4px rgba(0,0,0,.2);
    z-index: 2;
}
.bbn-prod__image {
    display: block; position: relative;
    aspect-ratio: 4/3;
    background: var(--c-bg-light);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 12px;
}
.bbn-prod__image img { width: 100%; height: 100%; object-fit: cover; }
.bbn-prod__title {
    display: block;
    font-size: 15px; font-weight: 700; color: var(--c-secondary);
    text-align: center; text-decoration: none;
    min-height: 40px; margin-bottom: 10px; line-height: 1.3;
}
.bbn-prod__title:hover { color: var(--c-secondary-light); }
.bbn-prod__status {
    text-align: center; font-weight: 600; font-size: 12.5px;
    border: 1px solid; border-radius: 6px;
    padding: 4px 6px; margin-bottom: 10px;
}
.bbn-prod__status.is-instock { color: var(--c-instock); border-color: var(--c-instock); }
.bbn-prod__status.is-preorder { color: var(--c-primary); border-color: var(--c-primary); }
.bbn-prod__price { text-align: center; color: var(--c-primary); font-size: 21px; font-weight: 800; }
.bbn-prod__price span { font-size: 13px; font-weight: 600; }
.bbn-prod__unit { text-align: center; color: var(--c-text-muted); font-size: 12px; margin-top: 2px; }
.bbn-prod__colors {
    display: flex; justify-content: center; align-items: center;
    gap: 5px; flex-wrap: wrap;
    margin: 10px 0 12px;
}
.bbn-prod__color {
    width: 18px; height: 18px; border-radius: 50%;
    border: 1px solid rgba(0,0,0,.2);
    padding: 0; cursor: pointer; flex: 0 0 auto;
    transition: transform .15s ease;
}
.bbn-prod__color:hover { transform: scale(1.2); }
.bbn-prod__color.is-active { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--c-secondary); }
.bbn-prod__color:focus-visible { outline: 2px solid var(--c-secondary); outline-offset: 2px; }
.bbn-prod__colors-more {
    font-size: 11.5px; color: var(--c-text-muted); text-decoration: none; margin-left: 3px;
}
.bbn-prod__colors-more:hover { color: var(--c-secondary); }
.bbn-prod__btn { margin-top: auto; width: 100%; padding: 12px 16px; font-size: 14px; }

/* ============================================================ ЩО МИ НАНОСИМО ============================================================ */
.bbn-serv__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.bbn-serv {
    background: #fff; border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    padding: 22px 20px;
    display: flex; flex-direction: column;
}
.bbn-serv__icon {
    width: 52px; height: 52px;
    background: var(--c-bg-light); color: var(--c-secondary);
    border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 14px;
}
.bbn-serv__title { font-size: 16px; color: var(--c-secondary); margin-bottom: 6px; }
.bbn-serv__desc { color: var(--c-text-muted); font-size: 13.5px; line-height: 1.5; margin-bottom: 14px; flex: 1; }
.bbn-serv__price { color: var(--c-primary); font-weight: 800; font-size: 15px; }
.bbn-serv__price--link { text-decoration: none; }
.bbn-serv__price--link:hover { color: var(--c-primary-dark); }

/* ============================================================ ЯК МИ ПРАЦЮЄМО ============================================================ */
.bbn-how__grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.bbn-how__step {
    background: #fff; border: 1px solid var(--c-border);
    border-radius: var(--radius-lg); padding: 20px 16px 18px;
    text-align: center;
}
.bbn-how__step-num {
    width: 36px; height: 36px; margin: 0 auto 12px;
    background: var(--c-secondary); color: #fff;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 15px;
}
.bbn-how__step-title { font-size: 15px; margin-bottom: 6px; color: var(--c-secondary); }
.bbn-how__step-desc { color: var(--c-text-muted); font-size: 13px; line-height: 1.4; }

/* ============================================================ FAQ ============================================================ */
.bbn-faq__inner { max-width: 900px; margin: 0 auto; }
.bbn-faq__item {
    background: #fff; border: 1px solid var(--c-border);
    border-radius: var(--radius); margin-bottom: 12px;
    overflow: hidden;
}
.bbn-faq__q {
    width: 100%; padding: 18px 22px;
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
    text-align: left; font-weight: 700; color: var(--c-secondary);
    font-size: 16px; font-family: inherit;
    background: none; border: none; cursor: pointer;
}
.bbn-faq__q:hover { background: var(--c-bg-light); }
.bbn-faq__q-icon { width: 24px; height: 24px; color: var(--c-secondary); transition: transform .2s; flex-shrink: 0; }
.bbn-faq__item.is-open .bbn-faq__q-icon { transform: rotate(45deg); }
.bbn-faq__a { max-height: 0; overflow: hidden; transition: max-height .3s ease, padding .3s ease; padding: 0 22px; color: var(--c-text-muted); }
.bbn-faq__item.is-open .bbn-faq__a { max-height: 400px; padding: 0 22px 18px; }

/* ============================================================ CTA-ФОРМА ============================================================ */
.bbn-cta { border-top: 1px solid var(--c-border); }
.bbn-cta__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.bbn-cta__title { font-size: 28px; color: var(--c-secondary); margin-bottom: 14px; }
.bbn-cta__lead { color: var(--c-text-muted); font-size: 16px; margin-bottom: 22px; line-height: 1.6; }
.bbn-cta__perks { display: flex; flex-direction: column; gap: 12px; margin-bottom: 26px; }
.bbn-cta__perks li { display: flex; align-items: center; gap: 12px; color: var(--c-text); font-size: 15px; font-weight: 500; }
.bbn-cta__perks li svg {
    color: #fff; background: var(--c-secondary);
    border-radius: 50%; padding: 4px;
    flex-shrink: 0;
    width: 24px; height: 24px;
}
.bbn-cta__contacts { display: flex; flex-direction: column; gap: 12px; padding-top: 22px; border-top: 1px solid var(--c-border); }
.bbn-cta__contact { display: flex; align-items: center; gap: 12px; color: var(--c-text); font-size: 15px; }
.bbn-cta__contact svg { color: var(--c-secondary); flex-shrink: 0; }
.bbn-cta__contact strong { color: var(--c-secondary); }
.bbn-cta__form {
    background: #fff;
    padding: 32px;
    border-radius: var(--radius-lg);
    color: var(--c-text);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--c-border);
}
.bbn-cta__form-title { color: var(--c-secondary); font-size: 22px; margin-bottom: 8px; }
.bbn-cta__form-sub { color: var(--c-text-muted); font-size: 14px; margin-bottom: 18px; }
.bbn-cta__form-field { margin-bottom: 14px; }
.bbn-cta__form-field input, .bbn-cta__form-field textarea, .bbn-cta__form-field select {
    width: 100%; padding: 12px 16px;
    border: 1px solid var(--c-border); border-radius: var(--radius);
    font-size: 14px; font-family: inherit; outline: none;
    transition: border-color .2s;
    background: var(--c-bg-light);
}
.bbn-cta__form-field input:focus, .bbn-cta__form-field textarea:focus, .bbn-cta__form-field select:focus { border-color: var(--c-secondary); background: #fff; }
.bbn-cta__form-field textarea { resize: vertical; min-height: 80px; }
.bbn-cta__form-hint { color: var(--c-text-muted); font-size: 12px; margin-top: 12px; text-align: center; }

/* ============================================================ АДАПТИВ ============================================================ */
@media (max-width: 1100px) {
    .bbn-hero__title { font-size: 32px; }
    .bbn-cats__grid { grid-template-columns: repeat(2, 1fr); }
    .bbn-top__grid { grid-template-columns: repeat(3, 1fr); }
    .bbn-serv__grid { grid-template-columns: repeat(2, 1fr); }
    .bbn-how__grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .bbn__section { padding: 40px 0; }
    .bbn__section-title { font-size: 24px; }
    .bbn-hero .bbn__container { padding-top: 28px; padding-bottom: 24px; }
    .bbn-hero__title { font-size: 26px; }
    .bbn-hero__lead { font-size: 15px; }
    .bbn-hero__perks { gap: 8px 18px; }
    .bbn-hero__perks span { font-size: 13px; }
    .bbn-cats__grid { grid-template-columns: 1fr; }
    .bbn-top__grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .bbn-prod { padding: 10px; }
    .bbn-prod__title { font-size: 13px; min-height: 34px; }
    .bbn-prod__price { font-size: 18px; }
    .bbn-serv__grid { grid-template-columns: 1fr; }
    .bbn-how__grid { grid-template-columns: 1fr; }
    .bbn-cta__inner { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 440px) {
    .bbn-top__grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .bbn-prod__ribbon { font-size: 9px; width: 130px; top: 14px; left: -36px; }
    .bbn-prod__btn { padding: 10px 8px; font-size: 12.5px; }
    .bbn-prod__color { width: 16px; height: 16px; }
}
@media (prefers-reduced-motion: reduce) {
    .bbn *, .bbn *::before, .bbn *::after { transition: none !important; }
}
