/* =====================================================
   ILYK — нові блоки головної (конструктор, 05.12.2026) · inc/home-blocks.php
   Мова секцій головної (29.11): волосяні лінії, мікролейбл 12px uppercase + H2 36/800, один акцент,
   без іконок-плиток, нумерації, пігулок-надзаголовків і жовтих рисок. Ваги Mont — лише 400/600/700/800 (правило 4.39).
   Заклик (cta) і кнопка ▶ відео — розмітка й стилі css/home-sections.css (.ilyk-cta, .ilyk-dir__media).
   ===================================================== */

.ilyk-hb,
.ilyk-hb-cta {
    --hs-ink: #1e293b;
    --hs-muted: #64748b;
    --hs-hair: rgba(15, 23, 42, .12);
    --hs-accent: var(--ilyk-clr-primary, #095fcc);
    --hs-accent-rgb: var(--ilyk-clr-primary-rgb, 9, 95, 204);
    --hs-radius: 16px;
}
.ilyk-hb { width: 100%; color: var(--hs-ink); }
.ilyk-hb--bg-light { background: #f8fafc; }
.ilyk-hb--bg-dark { --hs-ink: #fff; --hs-muted: rgba(255, 255, 255, .78); --hs-hair: rgba(255, 255, 255, .2); background: #1e293b; color: #fff; }
.ilyk-hb__in { max-width: 1278px; /* [05.12] вміст 1230 + поля 24, як секції головної */ margin: 0 auto; padding: 96px 24px; }
.ilyk-hb--pad-compact .ilyk-hb__in { padding-top: 48px; padding-bottom: 48px; }
.ilyk-hb--pad-none .ilyk-hb__in { padding-top: 0; padding-bottom: 0; }

/* Заголовок */
.ilyk-hb__kicker { margin: 0 0 14px; font-size: 12px; font-weight: 700; line-height: 1.4; letter-spacing: .08em; text-transform: uppercase; color: var(--hs-accent); }
.ilyk-hb--bg-dark .ilyk-hb__kicker { color: rgba(255, 255, 255, .62); }
.ilyk-hb__h2 { margin: 0 0 20px; font-size: 36px; font-weight: 800; line-height: 1.2; color: var(--hs-ink); text-wrap: balance; }
.ilyk-hb__lead { max-width: 860px; font-size: 18px; line-height: 1.65; color: var(--hs-muted); text-wrap: pretty; }
.ilyk-hb__lead p, .ilyk-hb__text p { margin: 0 0 14px; }
.ilyk-hb__lead p:last-child, .ilyk-hb__text p:last-child { margin-bottom: 0; }
.ilyk-hb a:not([class]) { color: inherit; text-decoration: underline; text-decoration-color: rgba(var(--hs-accent-rgb), .35); text-underline-offset: 3px; }
.ilyk-hb a:not([class]):hover { color: var(--hs-accent); text-decoration-color: currentColor; }
.ilyk-hb--center .ilyk-hb__in { text-align: center; }
.ilyk-hb--center .ilyk-hb__lead { margin-left: auto; margin-right: auto; }
.ilyk-hb--heading.ilyk-hb--pad-normal .ilyk-hb__in { padding-bottom: 32px; }
.ilyk-hb--heading .ilyk-hb__h2:last-child { margin-bottom: 0; }

/* Текст і фото */
.ilyk-hb__split { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 72px; align-items: center; }
.ilyk-hb--media-left .ilyk-hb__col--media { order: -1; }
.ilyk-hb--media-left .ilyk-hb__split { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
.ilyk-hb--solo .ilyk-hb__split { grid-template-columns: minmax(0, 1fr); }
.ilyk-hb--solo .ilyk-hb__col--text { max-width: 860px; }
.ilyk-hb__text { font-size: 16px; line-height: 1.75; color: var(--hs-muted); text-wrap: pretty; }
.ilyk-hb__actions { margin: 32px 0 0; }
.ilyk-hb__media { position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--hs-radius); background: #e2e8f0; }
.ilyk-hb__media img { position: absolute; inset: 0; width: 100% !important; height: 100% !important; max-width: none; object-fit: cover; }
button.ilyk-hb__media { padding: 0; border: 0; cursor: pointer; background: #0f172a; }

/* Цитата */
.ilyk-hb__quote { max-width: 980px; margin: 0 auto; text-align: center; }
.ilyk-hb__quote blockquote { margin: 0; padding: 0; border: 0; font-size: 28px; font-weight: 600; line-height: 1.45; color: var(--hs-ink); text-wrap: balance; quotes: '«' '»'; }
.ilyk-hb__quote blockquote::before { content: open-quote; }
.ilyk-hb__quote blockquote::after { content: close-quote; }
.ilyk-hb__who { display: inline-flex; gap: 14px; align-items: center; margin: 32px 0 0; text-align: left; }
.ilyk-hb__who > span { display: flex; flex-direction: column; gap: 2px; }
.ilyk-hb__who strong { font-size: 15px; font-weight: 700; color: var(--hs-ink); }
.ilyk-hb__who span span { font-size: 14px; color: var(--hs-muted); }
.ilyk-hb__avatar { width: 56px !important; height: 56px !important; border-radius: 50%; object-fit: cover; }

/* Ряд карток — волосяна лінія над кожною, без тіней */
.ilyk-hb__cards { --cols: 3; display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: 40px 32px; list-style: none; margin: 48px 0 0; padding: 0; }
.ilyk-hb__card { position: relative; margin: 0; padding: 24px 0 0; border-top: 1px solid var(--hs-hair); }
.ilyk-hb__card-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; margin: 0 0 20px; border-radius: var(--hs-radius); background: #e2e8f0; }
.ilyk-hb__card-media img { position: absolute; inset: 0; width: 100% !important; height: 100% !important; max-width: none; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.ilyk-hb__card-title { margin: 0 0 8px; font-size: 20px; font-weight: 700; line-height: 1.3; color: var(--hs-ink); }
.ilyk-hb__card-title a { color: inherit !important; text-decoration: none !important; }
.ilyk-hb__card-title a::after { content: ''; position: absolute; inset: 0; } /* уся картка клікабельна */
.ilyk-hb__card-text { margin: 0; font-size: 15px; line-height: 1.65; color: var(--hs-muted); }
@media (hover: hover) {
    .ilyk-hb__card.has-link:hover .ilyk-hb__card-title { color: var(--hs-accent); }
    .ilyk-hb__card.has-link:hover .ilyk-hb__card-media img { transform: scale(1.03); }
}
.ilyk-hb__card:has(a:focus-visible) { outline: 2px solid rgba(var(--hs-accent-rgb), .5); outline-offset: 6px; border-radius: 4px; }

/* Відео */
.ilyk-hb__video { max-width: 1200px; margin: 40px auto 0; }
.ilyk-hb__video .ilyk-hb__media { aspect-ratio: 16 / 9; }

/* Заклик без фото — темне тло (з фото — як [ilyk_cta]) */
.ilyk-hb-cta--plain { background: #1e293b; }
.ilyk-hb-cta--plain::before { display: none; }
.ilyk-hb-cta .ilyk-cta__text p { margin: 0 0 14px; }
.ilyk-hb-cta .ilyk-cta__text p:last-child { margin-bottom: 0; }

/* Відступ */
.ilyk-hb-gap--s { height: 24px; } .ilyk-hb-gap--m { height: 56px; } .ilyk-hb-gap--l { height: 96px; }

/* Смуга перегляду чернетки (лише для адміністратора з ?ilyk_hb_preview=1) */
.ilyk-hb-preview-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9990; padding: 10px 20px; font-size: 14px; text-align: center; color: #fff; background: #d97706; }
.ilyk-hb-preview-bar a { color: #fff; font-weight: 700; text-decoration: underline; }

@media (max-width: 1199px) {
    .ilyk-hb__in { padding-top: 72px; padding-bottom: 72px; }
    .ilyk-hb__split { gap: 48px; }
    .ilyk-hb__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 991px) {
    .ilyk-hb__split, .ilyk-hb--media-left .ilyk-hb__split { grid-template-columns: minmax(0, 1fr); gap: 36px; }
    .ilyk-hb--media-left .ilyk-hb__col--media { order: 0; }
    .ilyk-hb__quote blockquote { font-size: 24px; }
}
@media (max-width: 767px) {
    .ilyk-hb__in { padding: 56px 20px; }
    .ilyk-hb--pad-compact .ilyk-hb__in { padding-top: 32px; padding-bottom: 32px; }
    .ilyk-hb__h2 { font-size: 28px; }
    .ilyk-hb__lead { font-size: 16px; }
    .ilyk-hb__cards { grid-template-columns: minmax(0, 1fr); gap: 32px; margin-top: 32px; }
    .ilyk-hb__quote blockquote { font-size: 20px; }
    .ilyk-hb__actions .ilyk-cta__btn { width: 100%; justify-content: center; }
    .ilyk-hb-gap--m { height: 40px; } .ilyk-hb-gap--l { height: 64px; }
}
@media (prefers-reduced-motion: reduce) { .ilyk-hb__card-media img { transition: none; } }
