/* =========================================================================
   Нова головна ricoma.ua — ЕТАП 1 (статична верстка).
   Усе ізольовано під .ric-home, класи з префіксом ric- (БЕМ).
   Mobile-first. Брейкпоінти: 768 (tablet), 1024 (desktop).
   Дизайн-токени взяті з поточної теми (оранжевий #f37c22, Open Sans).
   ========================================================================= */

.ric-home {
    --ric-orange: #f37c22;
    --ric-orange-dark: #d96a16;
    --ric-text: #333;
    --ric-muted: #6b6c6e;
    --ric-dark: #2a2a2a;
    --ric-bg: #fff;
    --ric-bg-soft: #f7f7f7;
    --ric-border: #e6e6e7;
    --ric-radius: 5px;
    --ric-radius-lg: 12px;
    --ric-container: 1170px;

    font-family: 'Open Sans', Helvetica, sans-serif;
    color: var(--ric-text);
    line-height: 1.6;
}
.ric-home *,
.ric-home *::before,
.ric-home *::after { box-sizing: border-box; }

/* ---- Контейнер ---- */
.ric-home .ric-container {
    width: 100%;
    max-width: var(--ric-container);
    margin: 0 auto;
    padding: 0 16px;
}
.ric-home .ric-container--narrow { max-width: 860px; }

/* ---- Секція ---- */
.ric-home .ric-sec {
    padding: 40px 0;
    background-image: radial-gradient(rgba(0,0,0,.025) 1px, transparent 1px);
    background-size: 24px 24px;
}
.ric-home section[id] { scroll-margin-top: 150px; } /* щоб якорі не ховались під фікс-хедером */
.ric-home .ric-accent { color: var(--ric-orange); }
.ric-home .ric-sec--soft {
    background-color: var(--ric-bg-soft);
    background-image: radial-gradient(rgba(0,0,0,.04) 1.2px, transparent 1.2px);
    background-size: 22px 22px;
}
.ric-home .ric-sec__head { text-align: center; margin-bottom: 28px; }
.ric-home .ric-sec__title {
    margin: 0 0 14px;
    color: var(--ric-text);
    font-size: 30px;
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -.02em;
}
.ric-home .ric-sec__title::after {
    content: "";
    display: block;
    width: 56px;
    height: 3px;
    margin: 14px auto 0;
    background: var(--ric-orange);
    border-radius: 2px;
}
.ric-home .ric-sec__lead {
    max-width: 720px;
    margin: 0 auto;
    color: var(--ric-muted);
    font-size: 16px;
}

/* ---- Кнопки ---- */
.ric-home .ric-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 26px;
    border: 2px solid transparent;
    border-radius: var(--ric-radius);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .15s ease;
}
.ric-home .ric-btn--lg { padding: 15px 32px; font-size: 16px; }
.ric-home .ric-btn--primary { background: var(--ric-orange); border-color: var(--ric-orange); color: #fff; }
.ric-home .ric-btn--primary:hover { background: var(--ric-orange-dark); border-color: var(--ric-orange-dark); color: #fff; }
.ric-home .ric-btn--outline { background: transparent; border-color: var(--ric-orange); color: var(--ric-orange); }
.ric-home .ric-btn--outline:hover { background: var(--ric-orange); color: #fff; }
.ric-home .ric-btn:active { transform: scale(.98); }

/* ---- Плейсхолдери ---- */
.ric-home .ric-ph {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    overflow: hidden;
    background: #eceef0;
    border: 1px dashed #cfd3d7;
    border-radius: var(--ric-radius-lg);
    color: #9aa0a6;
    font-size: 14px;
    text-align: center;
    padding: 16px;
}
/* Реальне зображення з ACF заповнює рамку плейсхолдера */
.ric-home .ric-ph .ric-img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.ric-home .ric-ph .ric-img--contain { object-fit: contain; padding: 12px; }
.ric-home .ric-ph--hero { min-height: 280px; font-size: 16px; }
.ric-home .ric-ph--cat { flex-direction: column; min-height: 200px; font-size: 32px; color: var(--ric-orange); }
.ric-home .ric-ph--model { min-height: 180px; }
.ric-home .ric-ph--director { min-height: 460px; }
.ric-home .ric-ph--director .ric-img { object-position: center top; }
.ric-home .ric-ph--logo { height: 80px; }

/* ---- Анімація появи ---- */
.ric-home .ric-reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1); }
.ric-home .ric-reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .ric-home .ric-reveal { opacity: 1; transform: none; transition: none; }
}

/* ---- Бейдж ---- */
.ric-home .ric-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    background: var(--ric-orange);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .3px;
    padding: 4px 10px;
    border-radius: 20px;
}

/* =================== Hero =================== */
.ric-home .ric-hero { padding: 32px 0; background: linear-gradient(180deg, #fff 0%, var(--ric-bg-soft) 100%); }
.ric-home .ric-hero__inner { display: flex; flex-direction: column; gap: 28px; }
.ric-home .ric-hero__title { margin: 0 0 18px; font-size: 36px; font-weight: 800; line-height: 1.05; letter-spacing: -.025em; color: var(--ric-text); }
.ric-home .ric-hero__subtitle { margin: 0 0 24px; font-size: 16px; color: var(--ric-muted); max-width: 560px; }
.ric-home .ric-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.ric-home .ric-hero__markers { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 14px 22px; }
.ric-home .ric-hero__markers li { display: inline-flex; align-items: center; gap: 11px; font-size: 14px; color: var(--ric-text); font-weight: 600; }
.ric-home .ric-hero__markers i {
    display: inline-flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; border-radius: 50%;
    background: #fff3e9; color: var(--ric-orange); font-size: 19px;
}
.ric-home .ric-hero__media { width: 100%; }

/* =================== 3. Переваги =================== */
.ric-home .ric-adv__grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.ric-home .ric-adv__card {
    background: var(--ric-bg);
    border: 1px solid var(--ric-border);
    border-radius: var(--ric-radius-lg);
    padding: 24px;
    transition: transform .2s ease, box-shadow .2s ease;
}
.ric-home .ric-adv__card:hover { transform: translateY(-4px); box-shadow: 0 10px 28px rgba(0,0,0,.08); }
.ric-home .ric-adv__icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 56px; height: 56px; margin-bottom: 16px;
    background: #fff3e9; color: var(--ric-orange); border-radius: 12px; font-size: 24px;
}
.ric-home .ric-adv__title { margin: 0 0 10px; font-size: 21px; font-weight: 800; letter-spacing: -.01em; }
.ric-home .ric-adv__text { margin: 0; color: var(--ric-muted); font-size: 15px; }

/* =================== 4. Що входить =================== */
.ric-home .ric-incl__steps {
    list-style: none; margin: 0 0 32px; padding: 0;
    display: grid; grid-template-columns: 1fr; gap: 16px; counter-reset: ric-step;
}
.ric-home .ric-incl__step {
    position: relative; background: var(--ric-bg); border: 1px solid var(--ric-border);
    border-radius: var(--ric-radius-lg); padding: 24px; padding-top: 28px;
}
.ric-home .ric-incl__num { display: block; font-size: 34px; font-weight: 800; color: var(--ric-orange); line-height: 1; margin-bottom: 12px; }
.ric-home .ric-incl__step-title { margin: 0 0 8px; font-size: 17px; font-weight: 700; }
.ric-home .ric-incl__step-text { margin: 0; color: var(--ric-muted); font-size: 14px; }
.ric-home .ric-incl__guarantee {
    list-style: none; margin: 0; padding: 0;
    display: grid; grid-template-columns: 1fr; gap: 12px;
}
.ric-home .ric-incl__guarantee-item {
    display: flex; align-items: center; gap: 12px;
    background: var(--ric-bg); border: 1px solid var(--ric-border); border-left: 4px solid var(--ric-orange);
    border-radius: var(--ric-radius); padding: 14px 18px;
}
.ric-home .ric-incl__guarantee-item i { color: var(--ric-orange); font-size: 22px; }
.ric-home .ric-incl__guarantee-num { font-weight: 800; font-size: 18px; }
.ric-home .ric-incl__guarantee-text { color: var(--ric-muted); font-size: 14px; }

/* =================== 5. Категорії =================== */
.ric-home .ric-cats__grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.ric-home .ric-cats__card {
    display: flex; flex-direction: column;
    background: var(--ric-bg); border: 1px solid var(--ric-border);
    border-radius: var(--ric-radius-lg); overflow: hidden; transition: transform .2s ease, box-shadow .2s ease;
}
.ric-home .ric-cats__card:hover { transform: translateY(-4px); box-shadow: 0 10px 28px rgba(0,0,0,.08); }
.ric-home .ric-cats__media .ric-ph { border: none; border-radius: 0; gap: 6px; }
.ric-home .ric-cats__media .ric-ph span { font-size: 13px; }
.ric-home .ric-cats__body { display: flex; flex-direction: column; align-items: flex-start; padding: 22px 24px; }
.ric-home .ric-cats__name { margin: 0 0 10px; font-size: 21px; font-weight: 800; letter-spacing: -.01em; }
.ric-home .ric-cats__text { margin: 0 0 12px; color: var(--ric-muted); font-size: 14px; }
.ric-home .ric-cats__link { color: var(--ric-orange); font-weight: 700; font-size: 14px; text-decoration: none; }
.ric-home .ric-cats__link i { font-size: 12px; transition: transform .2s ease; }
.ric-home .ric-cats__card:hover .ric-cats__link i { transform: translateX(4px); }
.ric-home .ric-software {
    display: flex; flex-direction: column; align-items: flex-start; gap: 14px;
    margin-top: 24px; padding: 24px;
    background: var(--ric-dark); color: #fff; border-radius: var(--ric-radius-lg);
}
.ric-home .ric-software__icon { font-size: 30px; color: var(--ric-orange); }
.ric-home .ric-software__title { margin: 0 0 4px; font-size: 18px; font-weight: 700; color: #fff; }
.ric-home .ric-software__text p { margin: 0; color: #cfcfcf; font-size: 14px; }

/* =================== 6. Моделі =================== */
.ric-home .ric-models__grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.ric-home .ric-models__card {
    display: flex; flex-direction: column; height: 100%;
    background: var(--ric-bg); border: 1px solid var(--ric-border);
    border-radius: var(--ric-radius-lg); overflow: hidden; transition: transform .2s ease, box-shadow .2s ease;
}
.ric-home .ric-models__card:hover { transform: translateY(-4px); box-shadow: 0 10px 28px rgba(0,0,0,.08); }
.ric-home .ric-models__media { position: relative; }
.ric-home .ric-models__media .ric-ph { border: none; border-radius: 0; min-height: 220px; }
.ric-home .ric-models__body { display: flex; flex-direction: column; flex: 1 1 auto; padding: 20px; }
.ric-home .ric-models__name { margin: 0 0 14px; font-size: 23px; font-weight: 800; letter-spacing: -.01em; }
.ric-home .ric-models__params { list-style: none; margin: 0 0 18px; padding: 0; }
.ric-home .ric-models__params li { font-size: 14px; color: var(--ric-muted); padding: 3px 0; }
.ric-home .ric-models__params i { color: var(--ric-orange); margin-right: 6px; font-size: 12px; }
.ric-home .ric-models__btn { width: 100%; margin-top: auto; }
.ric-home .ric-models__more { text-align: center; margin-top: 28px; }

/* =================== 7. Калькулятор =================== */
.ric-home .ric-calc__grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.ric-home .ric-calc__inputs {
    background: var(--ric-bg); border: 1px solid var(--ric-border);
    border-radius: var(--ric-radius-lg); padding: 24px;
}
.ric-home .ric-field { display: block; margin-bottom: 18px; }
.ric-home .ric-field:last-child { margin-bottom: 0; }
.ric-home .ric-field__label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; color: var(--ric-text); }
.ric-home .ric-field__label b { color: var(--ric-orange); }
.ric-home .ric-field input[type="number"],
.ric-home .ric-field input[type="text"],
.ric-home .ric-field input[type="tel"],
.ric-home .ric-field textarea {
    width: 100%; padding: 11px 14px; font-size: 15px; font-family: inherit;
    color: var(--ric-text); background: #fff; border: 1px solid #d3d6da; border-radius: var(--ric-radius);
}
.ric-home .ric-field input:focus,
.ric-home .ric-field textarea:focus { outline: none; border-color: var(--ric-orange); box-shadow: 0 0 0 3px rgba(243,124,34,.15); }
.ric-home .ric-field input[type="range"] { width: 100%; accent-color: var(--ric-orange); }
.ric-home .ric-calc__result {
    background: var(--ric-dark); color: #fff;
    border-radius: var(--ric-radius-lg); padding: 28px; display: flex; flex-direction: column;
}
.ric-home .ric-calc__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.ric-home .ric-calc__label { font-size: 15px; color: #cfcfcf; }
.ric-home .ric-calc__value { font-size: 24px; font-weight: 800; white-space: nowrap; }
.ric-home .ric-calc__row--accent .ric-calc__value { color: var(--ric-orange); font-size: 28px; }
.ric-home .ric-calc__note { margin: 16px 0 20px; font-size: 12px; color: #a9a9a9; }
.ric-home .ric-calc__cta { margin-top: auto; width: 100%; }

/* =================== 8. Розстрочка (повноекранний блок + анімація) =================== */
/* Вища специфічність, щоб перебити media-query .ric-sec{padding} на планшеті/десктопі. */
.ric-home .ric-sec.ric-instal { padding: 0; }
.ric-home .ric-instal > .ric-container { max-width: 100%; width: 100%; padding: 0; }
.ric-home .ric-instal__box {
    width: 100%;
    background: linear-gradient(135deg, #f7902f 0%, var(--ric-orange) 45%, var(--ric-orange-dark) 100%);
    background-size: 200% 200%;
    animation: ric-grad 8s ease infinite;
    color: #fff; border-radius: 0; padding: 56px 0;
}
.ric-home .ric-instal__content { width: 100%; max-width: 1170px; margin: 0 auto; padding: 0 24px; }
.ric-home .ric-instal__title { margin: 0 0 16px; font-size: clamp(26px, 4vw, 46px); font-weight: 800; line-height: 1.08; letter-spacing: -.02em; color: #fff; }
.ric-home .ric-instal__text { margin: 0 0 24px; font-size: clamp(15px, 1.6vw, 18px); color: #fff4ea; max-width: 760px; }
.ric-home .ric-instal__list { list-style: none; margin: 0 0 26px; padding: 0; display: grid; grid-template-columns: 1fr; gap: 14px; }
.ric-home .ric-instal__list li {
    display: flex; align-items: center; gap: 14px;
    background: rgba(255,255,255,.12); border-radius: 12px; padding: 14px 16px;
    font-size: 15px; font-weight: 600;
    transition: transform .2s ease, background-color .2s ease;
}
.ric-home .ric-instal__list li:hover { transform: translateY(-3px); background: rgba(255,255,255,.22); }
.ric-home .ric-instal__ico {
    flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
    width: 64px; height: 64px; border-radius: 50%; background: #fff; color: var(--ric-orange); font-size: 30px;
    transition: transform .3s ease;
}
.ric-home .ric-instal__list li:hover .ric-instal__ico { transform: scale(1.12); }
.ric-home .ric-instal__label { line-height: 1.35; font-size: 16px; }

/* Анімації блока розстрочки */
@keyframes ric-pop  { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
@keyframes ric-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.22); } }
@keyframes ric-grad { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.ric-home .ric-instal__box.is-visible .ric-instal__ico { animation: ric-pop .5s both; animation-delay: calc(var(--ric-i, 0) * .12s); }
.ric-home .ric-instal__kicker i { animation: ric-pulse 1.6s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) {
    .ric-home .ric-instal__box,
    .ric-home .ric-instal__box.is-visible .ric-instal__ico,
    .ric-home .ric-instal .ric-btn--primary,
    .ric-home .ric-instal__kicker i { animation: none; }
}
/* CTA рассрочки: більша, по центру, пульсуюча */
.ric-home .ric-instal .ric-btn--primary {
    background: #fff; border-color: #fff; color: var(--ric-orange-dark);
    display: flex; width: fit-content; margin: 14px auto 0;
    padding: 18px 48px; font-size: 18px;
    animation: ric-cta-pulse 2.2s infinite;
}
.ric-home .ric-instal .ric-btn--primary:hover { background: var(--ric-dark); border-color: var(--ric-dark); color: #fff; transform: translateY(-2px); }
@keyframes ric-cta-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(255,255,255,.55); }
    70%  { box-shadow: 0 0 0 22px rgba(255,255,255,0); }
    100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}

/* =================== 9. Кейси =================== */
.ric-home .ric-cases__videos { display: grid; grid-template-columns: 1fr; gap: 16px; margin-bottom: 28px; }
.ric-home .ric-video {
    position: relative; aspect-ratio: 16 / 9; border-radius: var(--ric-radius-lg);
    overflow: hidden; cursor: pointer; background: #000;
}
.ric-home .ric-video__thumb { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .85; transition: opacity .2s ease, transform .3s ease; }
.ric-home .ric-video:hover .ric-video__thumb { opacity: 1; transform: scale(1.04); }
.ric-home .ric-video__play {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 66px; height: 66px; border-radius: 50%; background: rgba(243,124,34,.92);
    color: #fff; display: flex; align-items: center; justify-content: center; font-size: 22px; padding-left: 4px;
}
.ric-home .ric-video iframe { width: 100%; height: 100%; border: 0; display: block; }
.ric-home .ric-cases__grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.ric-home .ric-cases__card { background: var(--ric-bg); border: 1px solid var(--ric-border); border-top: 4px solid var(--ric-orange); border-radius: var(--ric-radius-lg); padding: 22px; }
.ric-home .ric-cases__name { margin: 0 0 10px; font-size: 16px; font-weight: 700; }
.ric-home .ric-cases__income { margin: 0 0 8px; font-size: 19px; font-weight: 800; color: var(--ric-orange); }
.ric-home .ric-cases__payback { margin: 0; font-size: 14px; color: var(--ric-muted); }
.ric-home .ric-cases__payback i { margin-right: 5px; }
.ric-home .ric-cases__disclaimer { margin: 22px 0 0; text-align: center; font-size: 12px; color: #9aa0a6; }

/* =================== 10. FAQ =================== */
.ric-home .ric-faq__item { background: var(--ric-bg); border: 1px solid var(--ric-border); border-radius: var(--ric-radius); margin-bottom: 12px; overflow: hidden; }
.ric-home .ric-faq__q {
    width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 18px 20px; background: none; border: none; cursor: pointer;
    font-family: inherit; font-size: 16px; font-weight: 600; color: var(--ric-text); text-align: left;
}
.ric-home .ric-faq__chevron { color: var(--ric-orange); transition: transform .3s ease; flex-shrink: 0; }
.ric-home .ric-faq__item.is-open .ric-faq__chevron { transform: rotate(180deg); }
.ric-home .ric-faq__a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.ric-home .ric-faq__a p { margin: 0; padding: 0 20px 20px; color: var(--ric-muted); font-size: 15px; }

/* =================== 11. Директор =================== */
.ric-home .ric-director__inner { display: flex; flex-direction: column; gap: 24px; }
.ric-home .ric-director__title { margin: 0 0 16px; font-size: 24px; font-weight: 800; }
.ric-home .ric-director__quote { margin: 0 0 16px; padding: 0 0 0 18px; border-left: 4px solid var(--ric-orange); font-size: 17px; line-height: 1.6; font-style: italic; color: var(--ric-text); }
.ric-home .ric-director__sign { margin: 0 0 8px; font-weight: 700; }
.ric-home .ric-director__note { margin: 0; font-size: 14px; color: var(--ric-muted); }

/* =================== 12. CTA =================== */
.ric-home .ric-cta { background: var(--ric-dark); }
.ric-home .ric-cta__inner { display: flex; flex-direction: column; gap: 28px; }
.ric-home .ric-cta__title { margin: 0 0 16px; font-size: clamp(28px, 4vw, 44px); font-weight: 800; line-height: 1.1; letter-spacing: -.02em; color: #fff; }
.ric-home .ric-cta__text { margin: 0 0 22px; font-size: 16px; color: #cfcfcf; }
.ric-home .ric-cta__contacts { display: flex; flex-direction: column; gap: 12px; }
.ric-home .ric-cta__contact { color: #fff; font-size: 15px; text-decoration: none; display: inline-flex; align-items: center; gap: 10px; }
.ric-home .ric-cta__contact i { color: var(--ric-orange); width: 18px; text-align: center; }
.ric-home .ric-cta__form { background: #fff; border-radius: var(--ric-radius-lg); padding: 24px; }
.ric-home .ric-cta__form .ric-field__label { color: var(--ric-text); }
.ric-home .ric-cta__submit { width: 100%; margin-top: 4px; }
/* Contact Form 7 у CTA — під дизайн */
.ric-home .ric-cta__form .wpcf7-form-control-wrap { display: block; }
.ric-home .ric-cta__form .wpcf7-submit { width: 100%; }
.ric-home .ric-cta__form .wpcf7-not-valid-tip { color: #d23; font-size: 12px; margin-top: 5px; }
.ric-home .ric-cta__form input.wpcf7-not-valid,
.ric-home .ric-cta__form textarea.wpcf7-not-valid { border-color: #d23; }
.ric-home .ric-cta__form .wpcf7-response-output { margin: 14px 0 0; padding: 10px 14px; border-radius: var(--ric-radius); font-size: 14px; line-height: 1.4; }
.ric-home .ric-cta__form .wpcf7-spinner { margin: 8px auto 0; display: block; }

/* =================== 13. Логотипи =================== */
/* Мінімальна сіра сітка: 1px-зазори на сірому фоні контейнера дають тонкі лінії. */
.ric-home .ric-clients__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: #e6e7e9;
    border: 1px solid #e6e7e9;
    border-radius: 14px;
    overflow: hidden;
}
.ric-home .ric-clients .ric-ph--logo { border-radius: 0; background: #fff; height: 96px; }
/* Єдиний «бокс» для всіх лого: однакові межі по висоті/ширині — вирівнює розмір. */
.ric-home .ric-clients .ric-img--contain {
    position: static;
    width: auto; height: auto;
    max-width: 76%; max-height: 44px;
    padding: 0;
    object-fit: contain;
    filter: grayscale(1); opacity: .72;
    transition: filter .3s ease, opacity .3s ease;
}
.ric-home .ric-clients .ric-ph--logo:hover .ric-img--contain { filter: grayscale(0); opacity: 1; }

/* =========================================================================
   ОНОВЛЕННЯ ДИЗАЙНУ: кікери, патерни, статистика, шапка
   ========================================================================= */

/* ---- Кікер (надзаголовок секції) ---- */
.ric-home .ric-sec__kicker {
    display: inline-block;
    margin-bottom: 12px;
    padding: 6px 15px;
    background: #fff3e9;
    color: var(--ric-orange-dark);
    border-radius: 24px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .6px;
}
.ric-home .ric-sec__kicker--light { background: rgba(255,255,255,.14); color: #fff; }

/* ---- Патерни на фонах (чистий CSS, без зображень) ---- */

.ric-home .ric-hero { position: relative; overflow: hidden; }
.ric-home .ric-hero::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background-image: radial-gradient(rgba(243,124,34,.10) 1.5px, transparent 1.5px);
    background-size: 24px 24px; pointer-events: none;
}
.ric-home .ric-hero__inner { position: relative; z-index: 1; }

/* Анімовані частинки на фоні hero */
.ric-home .ric-hero__particles { position: absolute; top: 0; left: 0; right: 0; bottom: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.ric-home .ric-hero__particles span {
    position: absolute; bottom: -24px;
    width: 10px; height: 10px; border-radius: 50%;
    background: rgba(243,124,34,.22);
    animation: ric-float 15s linear infinite;
}
@keyframes ric-float {
    0%   { transform: translateY(0) scale(1); opacity: 0; }
    10%  { opacity: 1; }
    85%  { opacity: 1; }
    100% { transform: translateY(-560px) scale(.4); opacity: 0; }
}
.ric-home .ric-hero__particles span:nth-child(1)  { left: 4%;  width: 8px;  height: 8px;  animation-duration: 17s; animation-delay: 0s;   }
.ric-home .ric-hero__particles span:nth-child(2)  { left: 14%; width: 14px; height: 14px; animation-duration: 21s; animation-delay: 3s;   }
.ric-home .ric-hero__particles span:nth-child(3)  { left: 24%; width: 6px;  height: 6px;  animation-duration: 13s; animation-delay: 1.5s; }
.ric-home .ric-hero__particles span:nth-child(4)  { left: 34%; width: 11px; height: 11px; animation-duration: 19s; animation-delay: 5s;   }
.ric-home .ric-hero__particles span:nth-child(5)  { left: 44%; width: 7px;  height: 7px;  animation-duration: 16s; animation-delay: 2s;   }
.ric-home .ric-hero__particles span:nth-child(6)  { left: 54%; width: 13px; height: 13px; animation-duration: 23s; animation-delay: 6s;   }
.ric-home .ric-hero__particles span:nth-child(7)  { left: 63%; width: 8px;  height: 8px;  animation-duration: 15s; animation-delay: 4s;   }
.ric-home .ric-hero__particles span:nth-child(8)  { left: 72%; width: 10px; height: 10px; animation-duration: 20s; animation-delay: 1s;   }
.ric-home .ric-hero__particles span:nth-child(9)  { left: 80%; width: 6px;  height: 6px;  animation-duration: 14s; animation-delay: 7s;   }
.ric-home .ric-hero__particles span:nth-child(10) { left: 87%; width: 12px; height: 12px; animation-duration: 22s; animation-delay: 2.5s; }
.ric-home .ric-hero__particles span:nth-child(11) { left: 93%; width: 9px;  height: 9px;  animation-duration: 18s; animation-delay: 5.5s; }
.ric-home .ric-hero__particles span:nth-child(12) { left: 97%; width: 7px;  height: 7px;  animation-duration: 16s; animation-delay: 3.5s; }
@media (prefers-reduced-motion: reduce) {
    .ric-home .ric-hero__particles { display: none; }
}

.ric-home .ric-instal__box { position: relative; overflow: hidden; }
.ric-home .ric-instal__box::after {
    content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background-image: radial-gradient(rgba(255,255,255,.13) 1.6px, transparent 1.6px);
    background-size: 22px 22px; pointer-events: none;
}
.ric-home .ric-instal__content { position: relative; z-index: 1; }
.ric-home .ric-instal__kicker {
    display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px;
    padding: 6px 15px; background: rgba(255,255,255,.18); color: #fff;
    border-radius: 24px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
}

.ric-home .ric-cta { position: relative; overflow: hidden; }
.ric-home .ric-cta::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background-image: radial-gradient(rgba(255,255,255,.06) 1.5px, transparent 1.5px);
    background-size: 22px 22px; pointer-events: none;
}
.ric-home .ric-cta__inner { position: relative; z-index: 1; }

/* ---- Hero: кікер + статистика ---- */
.ric-home .ric-hero__kicker {
    display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px;
    padding: 7px 16px; background: #fff3e9; color: var(--ric-orange-dark);
    border-radius: 24px; font-size: 13px; font-weight: 700;
}
.ric-home .ric-hero__kicker i { color: var(--ric-orange); }
/* Hero-статистику прибрано (дублювала переваги). Шапка/месенджери — глобально у header.php. */

/* =========================================================================
   TABLET (>= 768px)
   ========================================================================= */
@media (min-width: 768px) {
    .ric-home .ric-sec { padding: 56px 0; }
    .ric-home .ric-sec__title { font-size: 38px; }

    .ric-home .ric-hero__title { font-size: 50px; }

    .ric-home .ric-adv__grid { grid-template-columns: repeat(2, 1fr); }
    .ric-home .ric-incl__steps { grid-template-columns: repeat(2, 1fr); }
    .ric-home .ric-incl__guarantee { grid-template-columns: repeat(3, 1fr); }
    .ric-home .ric-cats__grid { grid-template-columns: repeat(2, 1fr); }
    .ric-home .ric-models__grid { grid-template-columns: repeat(2, 1fr); }
    .ric-home .ric-instal__list { grid-template-columns: repeat(2, 1fr); }
    .ric-home .ric-cases__videos { grid-template-columns: repeat(2, 1fr); }
    .ric-home .ric-cases__grid { grid-template-columns: repeat(3, 1fr); }
    .ric-home .ric-clients__grid { grid-template-columns: repeat(4, 1fr); }

    .ric-home .ric-software { flex-direction: row; align-items: center; gap: 20px; }
    .ric-home .ric-software__text { flex: 1; }

    .ric-home .ric-calc__grid { grid-template-columns: 1.1fr 1fr; align-items: stretch; }
    .ric-home .ric-director__inner { flex-direction: row; align-items: center; }
    .ric-home .ric-director__media { flex: 0 0 40%; }
    .ric-home .ric-director__content { flex: 1; }

    .ric-home .ric-cta__inner { flex-direction: row; align-items: flex-start; }
    .ric-home .ric-cta__content { flex: 1; }
    .ric-home .ric-cta__form { flex: 0 0 380px; }
}

/* =========================================================================
   DESKTOP (>= 1024px)
   ========================================================================= */
@media (min-width: 1024px) {
    .ric-home .ric-sec { padding: 72px 0; }
    .ric-home .ric-sec__title { font-size: 48px; }
    .ric-home .ric-sec__head { margin-bottom: 48px; }

    .ric-home .ric-hero { padding: 56px 0; }
    .ric-home .ric-hero__inner { flex-direction: row; align-items: center; }
    .ric-home .ric-hero__content { flex: 1 1 52%; }
    .ric-home .ric-hero__media { flex: 1 1 48%; }
    .ric-home .ric-hero__title { font-size: 64px; }
    .ric-home .ric-ph--hero { min-height: 400px; }

    .ric-home .ric-adv__grid { grid-template-columns: repeat(3, 1fr); }
    .ric-home .ric-incl__steps { grid-template-columns: repeat(4, 1fr); }
    .ric-home .ric-cats__grid { grid-template-columns: repeat(3, 1fr); }
    .ric-home .ric-models__grid { grid-template-columns: repeat(3, 1fr); }
    .ric-home .ric-instal__list { grid-template-columns: repeat(4, 1fr); }
    .ric-home .ric-clients__grid { grid-template-columns: repeat(5, 1fr); }

    .ric-home .ric-instal__box { padding: 76px 0; }
    .ric-home .ric-instal__list { gap: 18px; }
}
