/* =============================================================
   Dalaoban frontend — «Ноутбуки под заказ из Китая»
   Дашборд-таблица по моку var6. BEM prefix: .dlb-*
   Акцент: orange #ff7a00 (мок var6).
   ============================================================= */

.dlb-page { padding-bottom: 60px; background: #f4f6f8; }
.dlb-page .container-fluid { background: transparent; }

/* ── Hero ─────────────────────────────────────────────── */
.dlb-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 30px;
    padding: 32px 28px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.05);
    margin: 20px 0 26px;
    border-top: 4px solid #ff7a00;
}
.dlb-hero__main { display: flex; flex-direction: column; gap: 20px; }
.dlb-hero__lead { font-size: 19px; line-height: 1.5; color: #2d3748; margin: 0; max-width: 560px; font-weight: 500; }
.dlb-hero__usp { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.dlb-usp { display: flex; align-items: flex-start; gap: 12px; padding: 14px; background: #fff8f1; border-radius: 10px; border: 1px solid #ffe8d4; }
.dlb-usp__icon { font-size: 24px; line-height: 1; flex-shrink: 0; }
.dlb-usp__text { font-size: 13px; line-height: 1.4; color: #555; }
.dlb-usp__text b { color: #1a1a1a; display: block; font-size: 14px; margin-bottom: 2px; }
.dlb-hero__stats { display: flex; flex-direction: column; gap: 14px; justify-content: center; }
.dlb-stat { display: block; text-align: center; padding: 22px 18px; background: linear-gradient(135deg, #ff7a00 0%, #ff9633 100%); color: #fff; border-radius: 12px; user-select: none; box-shadow: 0 8px 24px rgba(255, 122, 0, 0.22); }
.dlb-stat__num { font-size: 38px; font-weight: 800; line-height: 1; margin-bottom: 4px; }
.dlb-stat__label { font-size: 13px; opacity: 0.95; }
@media (max-width: 900px) { .dlb-hero { grid-template-columns: 1fr; padding: 24px 20px; } .dlb-hero__usp { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .dlb-hero { padding: 20px 16px; } .dlb-hero__lead { font-size: 16px; } .dlb-stat__num { font-size: 32px; } }

/* ── Section title ─────────────────────────────────────── */
.dlb-section__title { font-size: 24px; font-weight: 700; margin: 32px 0 18px; color: #1a1a1a; }

/* ── How it works ──────────────────────────────────────── */
.dlb-how__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.dlb-step { background: #fff; border-radius: 12px; padding: 22px 20px; box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05); border-top: 3px solid #ff7a00; transition: transform 0.15s, box-shadow 0.15s; }
.dlb-step:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08); }
.dlb-step__num { width: 38px; height: 38px; background: #ff7a00; color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 17px; margin-bottom: 14px; box-shadow: 0 4px 12px rgba(255, 122, 0, 0.3); }
.dlb-step__title { font-size: 16px; font-weight: 600; margin: 0 0 8px; color: #1a1a1a; }
.dlb-step__text { font-size: 14px; color: #555; margin: 0; line-height: 1.5; }
@media (max-width: 991px) { .dlb-how__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .dlb-how__grid { grid-template-columns: 1fr; } }

/* ═════════════ DASHBOARD (мок var6) ═════════════ */
.dlb-dash {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    padding: 20px 24px;
    margin-bottom: 20px;
}
.dlb-frow { display: flex; align-items: flex-start; margin-bottom: 14px; }
.dlb-frow:last-of-type { margin-bottom: 0; }
.dlb-flabel {
    font-size: 11px; font-weight: 800; color: #4a5568; text-transform: uppercase;
    letter-spacing: 0.5px; width: 120px; flex-shrink: 0; padding-top: 5px;
}
.dlb-fopts { display: flex; flex-wrap: wrap; gap: 6px; }
.dlb-fopts--gpu { gap: 4px; }

/* Плашка фильтра */
.dlb-ftag {
    border: none; padding: 4px 10px; border-radius: 4px; font-size: 11px; font-weight: 700;
    cursor: pointer; transition: filter 0.15s, background-color 0.15s, color 0.15s;
    user-select: none; display: inline-flex; justify-content: center; align-items: center;
    line-height: 1.5;
}
.dlb-ftag:hover:not(.is-active) { filter: brightness(0.93); }
.dlb-ftag.is-active {
    background-color: #ff7a00 !important; color: #fff !important;
    box-shadow: 0 2px 4px rgba(255, 122, 0, 0.15);
}
.dlb-ftag--all { width: 56px; padding-left: 0; padding-right: 0; }
.dlb-ftag--fixed { min-width: 56px; padding-left: 4px; padding-right: 4px; }
.dlb-ftag--gpu { padding: 4px 6px; }

/* Цвета плашек фильтра (палитра var6) */
.dlb-ftag--brand { background: #faebeb; color: #a35252; }
.dlb-ftag--disp  { background: #e2e8f0; color: #1a202c; }
.dlb-ftag--panel { background: #e6fffb; color: #08979c; }
.dlb-ftag--gpu   { background: #efdbff; color: #6b5a82; }

/* Нижняя панель: поиск / цена / сброс */
.dlb-dash__bottom {
    display: flex; align-items: flex-end; gap: 20px;
    margin-top: 20px; padding-top: 20px; border-top: 1px solid #e2e8f0;
}
.dlb-dash__search { flex-grow: 1; }
.dlb-dash__ilabel {
    font-size: 11px; font-weight: 800; color: #4a5568; text-transform: uppercase;
    letter-spacing: 0.5px; margin-bottom: 8px; display: block;
}
.dlb-input-search {
    padding: 8px 12px; border: 1px solid #e2e8f0; border-radius: 4px; font-size: 13px;
    width: 100%; outline: none; color: #111; box-sizing: border-box; transition: border-color 0.2s;
}
.dlb-input-search:focus, .dlb-input-price:focus { border-color: #ff7a00; }
.dlb-dash__price { display: flex; flex-direction: column; }
.dlb-price-inputs { display: flex; align-items: center; gap: 8px; }
.dlb-input-price {
    padding: 8px 12px; border: 1px solid #e2e8f0; border-radius: 4px; font-size: 13px;
    width: 100px; outline: none; color: #111; text-align: left; box-sizing: border-box;
}
.dlb-price-sep { color: #555; font-weight: 600; }
.dlb-btn-reset {
    background: #fff; color: #111; border: 1px solid #e2e8f0; padding: 8px 16px;
    border-radius: 4px; font-size: 13px; font-weight: 600; cursor: pointer;
    transition: all 0.2s; height: 35px;
}
.dlb-btn-reset:hover { border-color: #cbd5e1; background: #f4f6f8; }
.dlb-dash__stats { margin-top: 16px; font-size: 13px; color: #555; }
.dlb-dash__stats #dlb-visible-count { font-weight: 800; color: #ff7a00; font-size: 15px; }

/* ── Таблица ── */
.dlb-catalog { margin-bottom: 30px; }
.dlb-tblwrap {
    background: #fff; border-radius: 8px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}
.dlb-tbl { width: 100%; }
.dlb-trow {
    display: grid;
    grid-template-columns: 58px 92px minmax(180px, 1fr) minmax(300px, 1.5fr) 104px 122px;
    gap: 12px; align-items: center; padding: 14px 20px; border-bottom: 1px solid #e2e8f0;
}
.dlb-trow:last-child { border-bottom: none; }
#dlb-rows .dlb-trow:hover { background: #fafbfc; }
.dlb-thead {
    font-size: 11px; font-weight: 700; color: #4a5568; text-transform: uppercase;
    letter-spacing: 0.5px; background: #edf2f7; padding-top: 12px; padding-bottom: 12px;
    border-bottom: 2px solid #cbd5e1;
}
.dlb-th-price { text-align: right; }

/* Плашки в строке */
.dlb-tag {
    padding: 4px 8px; border-radius: 4px; font-size: 11px; font-weight: 700;
    white-space: nowrap; display: inline-block; text-align: center; line-height: 1.5;
}
.dlb-tag--type  { background: #cce3ff; color: #003a8c; }
.dlb-tag--brand { background: #faebeb; color: #a35252; text-transform: uppercase; }
.dlb-tag--disp  { background: #e2e8f0; color: #1a202c; }
.dlb-tag--panel { background: #e6fffb; color: #08979c; }
.dlb-tag--cpu   { background: #ffe7ba; color: #ad4e00; }
.dlb-tag--ram   { background: #bae7ff; color: #0050b3; }
.dlb-tag--ssd   { background: #d9f7be; color: #237804; }
.dlb-tag--gpu   { background: #efdbff; color: #6b5a82; }

.dlb-model { display: flex; flex-direction: column; gap: 3px; padding-right: 10px; min-width: 0; }
.dlb-model__title { font-size: 14px; font-weight: 700; color: #111; line-height: 1.3; }
.dlb-model__pn { font-size: 11px; color: #555; font-weight: 500; letter-spacing: 0.2px; line-height: 1.4; }
.dlb-pn-div { color: #888; margin: 0 4px; font-weight: 400; }

.dlb-specs { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }

.dlb-price-val { font-size: 16px; font-weight: 700; color: #111; text-align: right; white-space: nowrap; }
.dlb-price-val--req { font-size: 13px; font-weight: 600; color: #718096; }

.dlb-action { text-align: right; }
.dlb-order {
    background: #ff7a00; color: #fff; border: none; padding: 8px 16px; border-radius: 5px;
    font-size: 13px; font-weight: 700; cursor: pointer; transition: background-color 0.15s; width: 100%;
}
.dlb-order:hover { background: #e66e00; }

.dlb-empty { padding: 40px 20px; text-align: center; color: #888; background: #fff; }

/* ── Адаптив таблицы: карточки на ≤1200px ── */
@media (max-width: 1200px) {
    .dlb-trow { grid-template-columns: 1fr; gap: 10px; padding: 16px; }
    .dlb-thead { display: none; }
    .dlb-price-val, .dlb-action { text-align: left; }
    .dlb-order { width: auto; }
    .dlb-model { padding-right: 0; }
    .dlb-dash__bottom { flex-direction: column; align-items: stretch; gap: 16px; }
    .dlb-dash__search, .dlb-dash__price, .dlb-btn-reset { width: 100%; }
    .dlb-input-price { flex: 1; width: auto; }
}
@media (max-width: 640px) {
    .dlb-frow { flex-direction: column; }
    .dlb-flabel { padding-top: 0; margin-bottom: 8px; width: auto; }
    .dlb-dash { padding: 16px; }
    .dlb-trow { padding: 14px; }
}

/* ── Buttons (модалка) ── */
.dlb-btn { padding: 9px 18px; border: none; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.15s; }
.dlb-btn--submit { background: #ff7a00; color: #fff; padding: 14px 22px; font-size: 15px; box-shadow: 0 4px 14px rgba(255, 122, 0, 0.3); }
.dlb-btn--submit:hover { background: #e66e00; transform: translateY(-1px); box-shadow: 0 6px 18px rgba(255, 122, 0, 0.4); }
.dlb-btn--block { width: 100%; display: block; }
.dlb-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ── FAQ ── */
.dlb-faq__list { display: flex; flex-direction: column; gap: 10px; }
.dlb-faq__item { border-radius: 10px; padding: 0; background: #fff; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04); transition: box-shadow 0.15s; }
.dlb-faq__item:hover { box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07); }
.dlb-faq__item[open] { box-shadow: 0 4px 20px rgba(255, 122, 0, 0.12); border-left: 3px solid #ff7a00; }
.dlb-faq__q { padding: 16px 20px; cursor: pointer; font-weight: 600; color: #1a1a1a; list-style: none; position: relative; }
.dlb-faq__q h3 { display: inline; font-size: 16px; font-weight: 600; margin: 0; }
.dlb-faq__q::-webkit-details-marker { display: none; }
.dlb-faq__q::after { content: '+'; position: absolute; right: 22px; top: 14px; font-size: 24px; color: #ff7a00; transition: transform 0.2s; font-weight: 400; }
.dlb-faq__item[open] .dlb-faq__q::after { content: '−'; }
.dlb-faq__a { padding: 0 20px 18px; color: #555; font-size: 14px; line-height: 1.6; }

/* ── Modal ── */
.dlb-modal { position: fixed; inset: 0; z-index: 9999; display: none; align-items: center; justify-content: center; animation: dlb-fade-in 0.18s ease-out; }
.dlb-modal--open { display: flex; }
@keyframes dlb-fade-in { from { opacity: 0; } to { opacity: 1; } }
.dlb-modal__backdrop { position: absolute; inset: 0; background: rgba(20, 20, 30, 0.6); backdrop-filter: blur(2px); }
.dlb-modal__dialog { position: relative; background: #fff; border-radius: 16px; padding: 0; width: 95%; max-width: 480px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3); max-height: 92vh; overflow-y: auto; animation: dlb-slide-up 0.22s cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes dlb-slide-up { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.dlb-modal__close { position: absolute; top: 14px; right: 14px; background: rgba(0, 0, 0, 0.04); border: none; width: 32px; height: 32px; border-radius: 50%; font-size: 22px; color: #555; cursor: pointer; line-height: 1; display: flex; align-items: center; justify-content: center; transition: background 0.15s; }
.dlb-modal__close:hover { background: rgba(0, 0, 0, 0.1); color: #1a1a1a; }
.dlb-modal__head { padding: 28px 28px 0; }
.dlb-modal__title { margin: 0 0 6px; font-size: 22px; font-weight: 700; color: #1a1a1a; line-height: 1.25; }
.dlb-modal__subtitle { margin: 0 0 18px; font-size: 13px; color: #888; }
.dlb-modal__product { margin: 0 28px 20px; padding: 14px 16px; background: linear-gradient(135deg, #fff8f1 0%, #ffeada 100%); border-radius: 10px; border-left: 3px solid #ff7a00; }
.dlb-modal__model { font-weight: 700; color: #1a1a1a; font-size: 14px; margin-bottom: 4px; line-height: 1.35; }
.dlb-modal__price { color: #ff7a00; font-weight: 700; font-size: 15px; }
#dlb-form { padding: 0 28px 28px; }
.dlb-modal__label { display: block; margin-bottom: 14px; }
.dlb-modal__label span { display: block; font-size: 12px; color: #555; margin-bottom: 5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.dlb-modal__label input, .dlb-modal__label textarea { width: 100%; padding: 11px 14px; border: 1px solid #e0e0e0; border-radius: 8px; font-size: 14px; font-family: inherit; box-sizing: border-box; transition: border-color 0.15s, box-shadow 0.15s; }
.dlb-modal__label input:focus, .dlb-modal__label textarea:focus { outline: none; border-color: #ff7a00; box-shadow: 0 0 0 3px rgba(255, 122, 0, 0.12); }
.dlb-modal__trust { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; padding: 12px 14px; background: #f8f9fb; border-radius: 8px; }
.dlb-modal__trust-item { font-size: 13px; color: #2d6b2d; font-weight: 500; }
.dlb-modal__consent { display: block; position: relative; padding-left: 28px; margin: 0 0 14px; font-size: 13px; line-height: 1.45; color: #6b7280; cursor: pointer; user-select: none; }
.dlb-modal__consent input[type="checkbox"] { position: absolute; left: 0; top: 1px; width: 18px; height: 18px; margin: 0; accent-color: #ff7a00; cursor: pointer; }
.dlb-modal__consent a { color: inherit; text-decoration: underline; text-underline-offset: 2px; text-decoration-color: #c7ccd3; transition: text-decoration-color 0.15s; }
.dlb-modal__consent a:hover { text-decoration-color: #ff7a00; }
.dlb-modal__status { margin: 14px 0 0; padding: 11px 14px; border-radius: 8px; font-size: 13px; display: none; font-weight: 500; }
.dlb-modal__status--success { display: block; background: #e8f5e9; color: #1b5e20; border-left: 3px solid #2d6b2d; }
.dlb-modal__status--error { display: block; background: #fbeaea; color: #b91c1c; border-left: 3px solid #b91c1c; }
.dlb-modal__fallback { margin: 16px 0 0; font-size: 13px; color: #888; text-align: center; }
.dlb-modal__fallback a { color: #ff7a00; font-weight: 700; }
@media (max-width: 560px) {
    .dlb-modal__head { padding: 22px 20px 0; }
    .dlb-modal__product { margin: 0 20px 16px; }
    #dlb-form { padding: 0 20px 22px; }
    .dlb-modal__title { font-size: 19px; }
}
