/* ==========================================================================
   ФранцеАвто — тёмно-синяя тема, блоки ГЛАВНОЙ (29.09.2026)
   Подключается из home.html темы магазина.
   Палитра: фон #101d33, шапка/подвал #16243d, карточки #16243d, рамка #16243d,
            текст #e9eff9, приглушённый #9fb3d2, акцент #283870.
   Общее оформление сайта (шапка, меню, карточки, подвал) — в custom.css темы сайта.
   ========================================================================== */

.fa-d-hero {
    position: relative;
    background:
        radial-gradient(1100px 480px at 18% -10%, rgba(80, 104, 144, .20), transparent 65%),
        linear-gradient(180deg, #16243d 0%, #101d33 100%);
    border-bottom: 1px solid #16243d;
    padding: 34px 0 30px;
    margin: 0 0 22px;
}
.fa-d-wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.fa-d-tag {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(80, 104, 144, .20);
    border: 1px solid rgba(80, 104, 144, .30);
    color: #cfe0ff; font-size: 13.5px; font-weight: 600;
    padding: 8px 15px; border-radius: 999px; margin-bottom: 16px;
}
.fa-d-tag .dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: #45d07f; box-shadow: 0 0 0 4px rgba(69, 208, 127, .18);
}
.fa-d-hero h1 {
    color: #ffffff; font-size: 33px; line-height: 1.22; font-weight: 800;
    margin: 0 0 12px; max-width: 900px;
}
.fa-d-hero p {
    color: #b9c9e4; font-size: 15.5px; line-height: 1.6;
    margin: 0 0 20px; max-width: 820px;
}
.fa-d-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.fa-d-btn {
    display: inline-flex; align-items: center; height: 50px; padding: 0 26px;
    border-radius: 12px; font-size: 15.5px; font-weight: 700; text-decoration: none;
    background: linear-gradient(180deg, #283870, #283870);
    color: #fff !important; border: 1px solid rgba(255, 255, 255, .14);
    box-shadow: 0 10px 26px rgba(26, 110, 245, .35);
    transition: .18s;
}
.fa-d-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(26, 110, 245, .48); text-decoration: none; }
.fa-d-btn.ghost {
    background: rgba(80, 104, 144, .20);
    border: 1px solid rgba(80, 104, 144, .45);
    color: #cfe0ff !important; box-shadow: none;
}
.fa-d-btn.ghost:hover { background: rgba(80, 104, 144, .20); }

/* полоса преимуществ */
.fa-d-utp {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
    margin: 0 0 26px;
}
.fa-d-utp > div, .fa-d-u {
    background: #16243d; border: 1px solid #16243d; border-radius: 14px;
    padding: 16px 16px 15px;
}
.fa-d-utp > div b, .fa-d-u b { display: block; color: #e9eff9; font-size: 14.5px; margin-bottom: 4px; }
.fa-d-utp > div span, .fa-d-u i { display: block; font-style: normal; color: #9fb3d2; font-size: 12.8px; line-height: 1.45; }
.fa-d-utp > div .ic, .fa-d-u .ic { color: #283870; font-size: 17px; margin-right: 7px; }

/* заголовки разделов */
.fa-d-sec { margin: 0 0 30px; }
.fa-d-h2 {
    position: relative; color: #ffffff; font-size: 23px; font-weight: 800;
    margin: 0 0 16px; padding-left: 15px;
}
.fa-d-h2:before {
    content: ''; position: absolute; left: 0; top: 4px; bottom: 4px; width: 5px;
    border-radius: 3px; background: linear-gradient(180deg, #283870, #283870);
    box-shadow: 0 0 14px rgba(80, 104, 144, .55);
}

/* разделы «Что нужно?» */
.fa-d-sg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.fa-d-st {
    display: flex; align-items: center; gap: 14px;
    background: #16243d; border: 1px solid #16243d; border-radius: 16px;
    padding: 16px 16px; text-decoration: none; transition: .18s; position: relative;
}
.fa-d-st:hover { border-color: #3f68a8; background: #16243d; transform: translateY(-2px); text-decoration: none; }
.fa-d-st .si {
    flex: 0 0 auto; width: 46px; height: 46px; border-radius: 13px;
    background: rgba(80, 104, 144, .20); border: 1px solid rgba(80, 104, 144, .28);
    display: flex; align-items: center; justify-content: center; color: #a9c2e8;
}
.fa-d-st .si svg { width: 25px; height: 25px; }
.fa-d-st .tt { flex: 1; min-width: 0; }
.fa-d-st b { display: block; color: #e9eff9; font-size: 15px; line-height: 1.25; }
.fa-d-st i { font-style: normal; display: block; color: #9fb3d2; font-size: 12.6px; margin-top: 3px; }
.fa-d-st .ar { color: #4d7fc4; font-size: 18px; margin-left: 4px; }

/* марки */
.fa-d-bg { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.fa-d-bt {
    display: block; text-align: center; text-decoration: none;
    background: #16243d; border: 1px solid #16243d; border-radius: 16px;
    padding: 18px 12px 16px; transition: .18s; position: relative; overflow: hidden;
}
.fa-d-bt:hover { border-color: #3f68a8; background: #16243d; transform: translateY(-2px); text-decoration: none; }
.fa-d-bt img { width: 56px; height: 56px; object-fit: contain; display: block; margin: 0 auto 10px; }
.fa-d-bt b { display: block; color: #e9eff9; font-size: 15px; }
.fa-d-bt i { font-style: normal; display: block; color: #a9c2e8; font-size: 12.4px; margin-top: 4px; }

/* карточки товаров на главной получают оформление из custom.css */
#products .product-list { margin: 0; }

/* текстовый блок о магазине */
.fa-d-seo {
    background: #16243d; border: 1px solid #16243d; border-radius: 16px;
    padding: 20px 22px; color: #b9c9e4; font-size: 14.6px; line-height: 1.68;
}
.fa-d-seo h2, .fa-d-seo h3 { color: #ffffff; }
.fa-d-seo a { color: #a9c2e8; }

@media (max-width: 1100px) {
    .fa-d-sg { grid-template-columns: repeat(2, 1fr); }
    .fa-d-bg { grid-template-columns: repeat(3, 1fr); }
    .fa-d-utp { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
    .fa-d-hero { padding: 22px 0 20px; }
    .fa-d-hero h1 { font-size: 22px; }
    .fa-d-hero p { font-size: 14px; }
    .fa-d-btn { height: 46px; padding: 0 18px; font-size: 14.5px; flex: 1 1 auto; justify-content: center; }
    .fa-d-sg { grid-template-columns: 1fr; }
    .fa-d-bg { grid-template-columns: repeat(2, 1fr); }
    .fa-d-h2 { font-size: 19px; }
    .fa-d-st { padding: 13px 13px; }
    .fa-d-st .si { width: 40px; height: 40px; }
    .fa-d-st .si svg { width: 21px; height: 21px; }
}
