/* ============================================================
   body-retail-formats — "Для яких форматів рітейлу:"
   Розмітка: retail-formats.html | Скрипт: retail-formats.js
   ============================================================ */

.body-retail-formats *,
.body-retail-formats *::before,
.body-retail-formats *::after { box-sizing: border-box; }

.body-retail-formats {
    --brf-blue:    #3a93f7;
    --brf-blue-2:  #2d7ff9;
    --brf-navy:    #15264a;
    --brf-ink:     #2b3242;
    --brf-gray:    #5b6678;
    --brf-row: rgb(29 147 255 / 0.15);
    --brf-row--desc: rgb(29 147 255 / 0.05);;
    --brf-row-alt: rgb(29 147 255 / 0.15);
    --brf-line:    #dce8f7;
    --brf-maxw:    1320px;

    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
    /* фон: світлий зверху -> голубий на ~75% висоти */
    background: linear-gradient(180deg, #ffffff 0%, #ffffff 12%, #e3effb 38%, #dbeafa 75%, #eaf3fd 100%);
    color: var(--brf-ink);
    font-family: "Inter", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    padding: 40px 24px 56px;
}

.body-retail-formats .brf-inner {
    max-width: var(--brf-maxw);
    margin: 0 auto;
}

/* ---------- title ---------- */
.body-retail-formats .brf-title {
    margin: 0 0 24px;
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -.2px;
    color: var(--brf-navy);
}

/* ---------- table ---------- */
.body-retail-formats .brf-table {
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(40, 70, 130, .08);
}

.body-retail-formats .brf-row {
    display: grid;
    grid-template-columns: 320px 1fr;
}

/* header */
.body-retail-formats .brf-row--head {
    background: linear-gradient(180deg, #4a9bf8 0%, #2f7bee 100%);
}
.body-retail-formats .brf-row--head .brf-cell {
    color: #ffffff;
    font-size: 24px;
    font-weight: 800;
    padding: 22px 28px;
}

/* body rows: zebra */
.body-retail-formats .brf-row:not(.brf-row--head):nth-of-type(odd)  { background: var(--brf-row); }
.body-retail-formats .brf-row:not(.brf-row--head):nth-of-type(even) { background: var(--brf-row-alt); }
.body-retail-formats .brf-row:not(.brf-row--head) + .brf-row:not(.brf-row--head) {
    border-top: 1px solid var(--brf-line);
}

/* cells */
.body-retail-formats .brf-cell {
    padding: 40px 28px;
    display: flex;
    align-items: center;
    line-height: 1.5;
}
.body-retail-formats .brf-cell--name {
    font-size: 21px;
    font-weight: 800;

    background: var(--brf-row--desc);
    color: var(--brf-navy);
    border-right: 1px solid var(--brf-line);
}
.body-retail-formats .brf-row--head .brf-cell--name { border-right-color: rgba(255,255,255,.25); }
.body-retail-formats .brf-cell--desc {
    font-size: 21px;
    color: var(--brf-gray);
}

/* ---------- responsive ---------- */
@media (max-width: 760px) {
    .body-retail-formats { padding: 32px 16px 44px; }
    .body-retail-formats .brf-row { grid-template-columns: 1fr; }
    .body-retail-formats .brf-cell { padding: 16px 18px; }
    .body-retail-formats .brf-cell--name { border-right: 0; }
    /* у тілі — назва зверху, опис знизу, з лінією між ними */
    .body-retail-formats .brf-row:not(.brf-row--head) .brf-cell--name {
        padding-bottom: 6px;
    }
    .body-retail-formats .brf-row:not(.brf-row--head) .brf-cell--desc {
        padding-top: 0;
    }
    /* у шапці ховаємо другу колонку-підпис, лишаємо один заголовок */
    .body-retail-formats .brf-row--head { grid-template-columns: 1fr; }
    .body-retail-formats .brf-row--head .brf-cell--desc { display: none; }
}
@media (max-width: 480px) {
    .body-retail-formats .brf-title { font-size: 18px; }
}

/* ---------- поява при скролі (вмикається скриптом) ---------- */
.body-retail-formats.brf-anim .brf-title,
.body-retail-formats.brf-anim .brf-table {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .55s ease, transform .55s ease;
}
.body-retail-formats.brf-anim .brf-table { transition-delay: .08s; }
.body-retail-formats.brf-anim.is-in .brf-title,
.body-retail-formats.brf-anim.is-in .brf-table {
    opacity: 1;
    transform: none;
}
@media (prefers-reduced-motion: reduce) {
    .body-retail-formats.brf-anim .brf-title,
    .body-retail-formats.brf-anim .brf-table {
        opacity: 1;
        transform: none;
        transition: none;
    }
}