@charset "UTF-8";
/* ILYK CSS bundle «chrome» — inc/css-bundle.php; файли: ilyk-header, ilyk-page-transitions, ilyk-search, ilyk-footer */

/* ── ilyk-header ── */
html,
body {
    overflow-x: hidden;
}

:root {
    --ilyk-header-h: 72px;
    --ilyk-header-bg: #ffffff;
    --ilyk-header-border: #e2e8f0;
    --ilyk-header-z: 200;
    --ilyk-clr-primary: #5169F1;
    --ilyk-clr-primary-hover: #3a52d4;
    --ilyk-clr-primary-rgb: 81, 105, 241;
    --ilyk-clr-dark: #1e293b;
    --ilyk-clr-muted: #64748b;
    --ilyk-clr-search-bg: #f4f4f2;
}

/* ── Головна обгортка ── */
.ilyk-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: var(--ilyk-header-z);
    height: var(--ilyk-header-h);
    background: rgba(255, 255, 255, 0.52);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.35);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
    transition: background 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.ilyk-header.is-scrolled {
    background: rgba(255, 255, 255, 0.70);
    border-bottom-color: rgba(226, 232, 240, 0.5);
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
}

/* ── Внутрішній рядок ── */
.ilyk-header__inner {
    max-width: 100% !important;
    padding: 0 32px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
    height: 100%;
}

/* ── Логотип ── */
.ilyk-header__logo {
    display: flex;
    align-items: flex-end;
    gap: 0;
    text-decoration: none;
    flex-shrink: 0;
    padding-right: 0;
    border-right: none;
}
.ilyk-header__logo-img { max-height: 30px; width: auto; height: auto; display: block; }
.ilyk-header__logo-text { font-size: 18px; font-weight: 800; color: var(--ilyk-clr-dark); }
.ilyk-header__logo-divider {
    display: block; width: 2px; height: 30px;
    background: #fadc78; margin: 0 10px; flex-shrink: 0;
    align-self: flex-end;
}
.ilyk-header__logo-tagline {
    font-size: 10px; font-weight: 700; line-height: 1;
    color: var(--ilyk-clr-dark); text-transform: uppercase;
    letter-spacing: 0.02em; max-width: 155px;
	padding-bottom: 2px; 
}

/* ── Великий пошук (home >= 1760px) ── */
.ilyk-header__search {
    display: flex;
    align-items: center;
    background: #f4f4f2 !important;
    border: 1px solid #e1e1de !important;
    border-radius: 6px !important;
    padding: 0 14px !important;
    gap: 8px !important;
    width: 280px;
    height: 40px !important;
    box-sizing: border-box !important;
    flex-shrink: 0;
    transition: border-color 0.2s, background 0.2s;
}
.ilyk-header__search:focus-within {
    border-color: #cbd5e1 !important;
    background: #ffffff !important;
}
.ilyk-header__search-input {
    border: none !important;
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    outline: none !important;
    padding: 0 !important;
    margin: 0 !important;
    height: 100% !important;
    width: 100% !important;
    font-size: 14px !important;
    color: var(--ilyk-clr-dark) !important;
    font-family: inherit;
}
.ilyk-header__search-input::placeholder { color: #94a3b8; }
.ilyk-header__search-btn {
    border: none !important;
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    height: 100% !important;
    width: auto !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    color: #1e293b !important;
    transition: color 0.2s;
}
.ilyk-header__search-btn:hover { color: var(--ilyk-clr-primary) !important; }

/* ── Навігація ── */
.ilyk-header__nav { flex: 1; display: flex; justify-content: center; }
.ilyk-header__nav-list {
    display: flex; align-items: center; gap: 4px;
    list-style: none; margin: 0; padding: 0;
}
.ilyk-header__nav-item {
    position: relative;
    height: var(--ilyk-header-h);
    display: flex; align-items: center;
}
.ilyk-header__nav-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    font-size: 14.5px;
    font-weight: 400;
    color: #334155;
    text-decoration: none;
    border: none;
    background: transparent;
    cursor: pointer;
    font-family: inherit;
    transition: color 0.2s;
    white-space: nowrap;
    position: relative;
}
.ilyk-header__nav-link::after {
    content: '';
    position: absolute;
    bottom: 0; left: 10px; right: 10px;
    height: 2px;
    background-color: var(--ilyk-clr-primary);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.25s ease-in-out;
}
.ilyk-header__nav-link:hover,
.ilyk-header__nav-item:hover > .ilyk-header__nav-link,
.ilyk-header__nav-item.is-open > .ilyk-header__nav-link { color: var(--ilyk-clr-primary); }
.ilyk-header__nav-link:hover::after,
.ilyk-header__nav-item:hover > .ilyk-header__nav-link::after,
.ilyk-header__nav-item.is-open > .ilyk-header__nav-link::after { transform: scaleX(1); }
.ilyk-header__nav-link i { font-size: 10px; transition: transform 0.2s; opacity: 0.7; }
.ilyk-header__nav-item:hover > .ilyk-header__nav-link i,
.ilyk-header__nav-item.is-open > .ilyk-header__nav-link i { transform: rotate(180deg); }

/* ── Dropdown ── */
.ilyk-header__dropdown {
    position: absolute;
    top: calc(100% + var(--ilyk-menu-gap, 12px)); /* [ILYK 16.11.2026] відступ від хедера; було 100% - 10px (налазило) */
    left: 0;
    min-width: 210px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.08), 0 0 1px rgba(15, 23, 42, 0.05);
    border: 1px solid #e2e8f0;
    padding: 8px;
    list-style: none;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.22s cubic-bezier(0.25, 1, 0.5, 1),
                transform 0.22s cubic-bezier(0.25, 1, 0.5, 1),
                visibility 0.22s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 10;
}
.ilyk-header__nav-item.is-open .ilyk-header__dropdown {
    opacity: 1; visibility: visible; transform: translateY(0);
}
.ilyk-header__dropdown li { margin-bottom: 2px; }
.ilyk-header__dropdown li:last-child { margin-bottom: 0; }
.ilyk-header__dropdown li a {
    display: flex; align-items: center;
    padding: 9px 12px; padding-left: 16px;
    font-size: 14px; font-weight: 400; color: #475569;
    text-decoration: none; border-radius: 6px;
    position: relative; overflow: hidden;
    transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}
.ilyk-header__dropdown li a::before {
    content: '';
    position: absolute; left: 6px; top: 50%;
    transform: translateY(-50%) scaleY(0);
    width: 3px; height: 16px;
    background-color: var(--ilyk-clr-primary);
    border-radius: 2px; opacity: 0;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1),
                opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}
.ilyk-header__dropdown li a:hover {
    background: #f0f4ff; color: var(--ilyk-clr-primary); padding-left: 24px;
}
.ilyk-header__dropdown li a:hover::before {
    transform: translateY(-50%) scaleY(1); opacity: 1;
}

/* ── Мегаменю ── */
.ilyk-header__mega {
    position: absolute;
    top: calc(100% + var(--ilyk-menu-gap, 12px)); left: 50%; /* [ILYK 16.11.2026] було 100% — впиралось у хедер */
    transform: translateY(-6px);
    width: 1368px; max-width: 90vw;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.10), 0 0 0 1px rgba(15,23,42,0.03);
    opacity: 0; visibility: hidden;
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
    z-index: calc(var(--ilyk-header-z) - 1);
    pointer-events: none;
}
.ilyk-header__nav-item.is-open .ilyk-header__mega {
    opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto;
}
.ilyk-header__mega-inner { padding: 24px 28px; transition: opacity 0.5s ease; }

/* ── [ILYK 16.11.2026] Відступ від хедера, «місток» і дзьобик ──
   Місток (::before) — невидима смуга на всю ширину відступу: миша йде з пункту меню до панелі
   і не «провалюється» в щілину (панель — нащадок пункту, тож mouseleave не спрацьовує).
   Дзьобик (::after) — повернутий квадрат з тією ж рамкою, що й панель; X — змінна --ilyk-beak-x,
   її ставить js/header.js (placeBeak) по центру пункту меню. Відкат: _backup-header-menu-20261116/ */
.ilyk-header__dropdown::before,
.ilyk-header__mega::before {
    content: '';
    position: absolute;
    left: 0; right: 0;
    bottom: 100%;
    height: calc(var(--ilyk-menu-gap, 12px) + 2px);
}
.ilyk-header__dropdown::after,
.ilyk-header__mega::after {
    content: '';
    position: absolute;
    top: -7px;
    left: calc(var(--ilyk-beak-x, 32px) - 6px);
    width: 12px; height: 12px;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    border-left: 1px solid #e2e8f0;
    border-top-left-radius: 3px;
    transform: rotate(45deg);
    pointer-events: none;
}
.ilyk-header__mega-inner.is-switching { opacity: 0; }
.ilyk-header__mega-inner.is-entering { opacity: 0; transition: none; }

/* ── Actions (права частина) ── */
.ilyk-header__actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

.ilyk-header__cta-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 20px;
    background: rgba(var(--ilyk-clr-primary-rgb), 0.9);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    color: #ffffff !important;
    font-size: 14px; font-weight: 600;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 2px 8px rgba(var(--ilyk-clr-primary-rgb), 0.35), inset 0 1px 0 rgba(255,255,255,0.15);
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap; flex-shrink: 0;
}
.ilyk-header__cta-btn:hover {
    background: rgba(var(--ilyk-clr-primary-rgb), 0.95);
    box-shadow: 0 4px 16px rgba(var(--ilyk-clr-primary-rgb), 0.45), inset 0 1px 0 rgba(255,255,255,0.15);
    transform: translateY(-1px);
}
.ilyk-header__cta-btn i { font-size: 15px; opacity: 0.9; }

.ilyk-header__donate-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; padding: 0;
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    color: var(--ilyk-clr-primary) !important;
    border-radius: 8px;
    border: 1px solid rgba(var(--ilyk-clr-primary-rgb), 0.25);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06), inset 0 1px 0 rgba(255,255,255,0.8);
    text-decoration: none; transition: all 0.2s ease; flex-shrink: 0;
}
.ilyk-header__donate-btn:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(var(--ilyk-clr-primary-rgb), 0.45);
    box-shadow: 0 4px 14px rgba(var(--ilyk-clr-primary-rgb), 0.15), inset 0 1px 0 rgba(255,255,255,0.8);
    transform: translateY(-1px); color: var(--ilyk-clr-primary) !important;
}
.ilyk-header__donate-btn svg { display: block; flex-shrink: 0; }
.ilyk-header__donate-btn--offcanvas { width: auto; padding: 10px 18px; gap: 8px; justify-content: center; }

/* ── Burger і search-toggle (базово сховані) ── */
.ilyk-header__search-toggle,
.ilyk-header__burger {
    display: none;
    width: 40px; height: 40px;
    border: none; background: transparent;
    cursor: pointer; align-items: center; justify-content: center;
    border-radius: 6px; transition: background 0.2s; flex-shrink: 0;
}
.ilyk-header__search-toggle {
    font-size: 20px; color: var(--ilyk-clr-dark); background: transparent; border: none; box-shadow: none;
}
.ilyk-header__search-toggle:hover { background: transparent !important; color: var(--ilyk-clr-primary); box-shadow: none; }
.ilyk-header__burger {
    font-size: 22px; color: var(--ilyk-clr-dark); background: transparent; border: none; box-shadow: none;
}
.ilyk-header__burger:hover { background: transparent !important; color: var(--ilyk-clr-primary); box-shadow: none; }
.ilyk-burger-open, .ilyk-burger-close { transition: opacity 0.2s; }
.ilyk-header__burger .ilyk-burger-close { display: none !important; }
.ilyk-header__burger .ilyk-burger-open  { display: inline !important; }
.ilyk-header__burger.is-open .ilyk-burger-open  { display: none !important; }
.ilyk-header__burger.is-open .ilyk-burger-close { display: inline !important; }

/* ── Мобільний пошук ── */
.ilyk-header__search-mobile {
    padding: 10px 16px 14px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(226, 232, 240, 0.6);
    /* Тінь що падає вниз на сторінку — позначає межу хедера */
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.14), 0 4px 10px rgba(15, 23, 42, 0.08);
}
.ilyk-header__search-mobile form {
    display: flex; align-items: center;
    background: #f4f6fb;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 0 6px 0 14px;
    height: 46px;
    gap: 8px;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.ilyk-header__search-mobile form:focus-within {
    border-color: #e2e8f0;
    background: #ffffff;
    box-shadow: none;
}
.ilyk-header__search-mobile .ilyk-header__search-input {
    flex: 1;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    outline: none !important;
    padding: 0 !important;
    font-size: 14px; font-family: inherit;
    color: var(--ilyk-clr-dark);
}
.ilyk-header__search-mobile .ilyk-header__search-input::placeholder { color: #94a3b8; }
.ilyk-header__search-mobile button {
    display: flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; flex-shrink: 0;
    border: none;
    background: transparent;
    color: var(--ilyk-clr-primary);
    border-radius: 8px; cursor: pointer; font-size: 14px;
    transition: color 0.2s;
    -webkit-appearance: none;
    appearance: none;
}
.ilyk-header__search-mobile button:hover { color: var(--ilyk-clr-primary-hover); background: transparent; }
.ilyk-header__search-mobile button:focus { outline: none; background: transparent; }
.ilyk-header__search-mobile button:active { background: transparent; }

/* ── Компенсація висоти ── */
body {
    padding-top: var(--ilyk-header-h) !important;
    overflow-x: hidden !important;
    width: 100% !important;
    /* Sticky footer — футер завжди внизу екрана */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Admin bar: хедер зміщується вниз, body отримує додатковий відступ */
.admin-bar .ilyk-header {
    top: 32px;
}
.admin-bar body {
    padding-top: calc(var(--ilyk-header-h) + 32px) !important;
}
.admin-bar {
    --ilyk-admin-bar-h: 32px;
}

/* 783px–600px: WP admin bar стає вищим — 46px */
@media (max-width: 782px) {
    .admin-bar .ilyk-header {
        top: 46px;
    }
    .admin-bar body {
        padding-top: calc(var(--ilyk-header-h) + 46px) !important;
    }
    .admin-bar {
        --ilyk-admin-bar-h: 46px;
    }
}

/* ≤600px: WP admin bar стає position:fixed і ховається при скролі.
   top хедера керується динамічно через header.js */
@media (max-width: 600px) {
    .admin-bar body {
        padding-top: calc(var(--ilyk-header-h) + 46px) !important;
    }
    .admin-bar {
        --ilyk-admin-bar-h: 46px;
    }
}

/* =====================================================
   INLINE SEARCH
   Абсолютна форма — розкривається вліво ПОВЕРХ елементів,
   не зміщує нічого в рядку хедера.
   Базово wrap схований; показується через breakpoints.
   ===================================================== */

.ilyk-header__search-inline-wrap {
    display: none; /* показується через breakpoints */
    position: relative;
    align-items: center;
    flex-shrink: 0;
}

/* Кнопка-іконка */
.ilyk-header__search-inline-toggle {
    width: 40px; height: 40px;
    border: none; background: transparent;
    color: var(--ilyk-clr-dark); font-size: 17px;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    border-radius: 8px; transition: color 0.2s; flex-shrink: 0;
    position: relative; z-index: 2;
}
.ilyk-header__search-inline-toggle:hover { color: var(--ilyk-clr-primary); }
.ilyk-header__search-inline-wrap.is-open .ilyk-header__search-inline-toggle { color: var(--ilyk-clr-primary); }

/* Форма — абсолютна, розкривається вліво поверх nav/donate */
.ilyk-header__search-inline {
    position: absolute;
    right: 44px; top: 50%;
    transform: translateY(-50%);
    display: flex; align-items: center; gap: 6px;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(var(--ilyk-clr-primary-rgb), 0.3);
    border-radius: 8px; padding: 0 12px;
    height: 40px; width: 0;
    overflow: hidden; opacity: 0; pointer-events: none;
    transition: width 0.3s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.25s ease, border-color 0.2s;
    box-shadow: 0 4px 16px rgba(var(--ilyk-clr-primary-rgb), 0.12);
    white-space: nowrap; z-index: 1;
}
.ilyk-header__search-inline-wrap.is-open .ilyk-header__search-inline {
    width: 260px; opacity: 1; pointer-events: auto;
}
.ilyk-header__search-inline-input {
    border: none !important; background: transparent !important;
    box-shadow: none !important; outline: none !important; padding: 0 !important;
    font-size: 14px !important; color: var(--ilyk-clr-dark) !important;
    width: 100%; font-family: inherit; min-width: 0;
}
.ilyk-header__search-inline-input::placeholder { color: #94a3b8; opacity: 1; transition: opacity 0.15s ease; }
.ilyk-header__search-inline-input:focus::placeholder { opacity: 0.5; }
.ilyk-header__search-inline button[type="submit"] {
    border: none !important; background: transparent !important; padding: 0 !important;
    cursor: pointer; font-size: 14px; color: var(--ilyk-clr-primary);
    display: flex; align-items: center; flex-shrink: 0; transition: transform 0.2s;
}
.ilyk-header__search-inline button[type="submit"]:hover { transform: translateX(2px); }

/* =====================================================
   BREAKPOINTS
   ===================================================== */

/* ── >= 1760px: ПОВНИЙ ХЕДЕР ── */
/* [ILYK 04.12.2026] Було від 1535: на головній з великим пошуком хедер виходив за край на 108px
   (кнопка «Особистий кабінет» обрізалась на поширених 1536px). Лого+пошук+меню+дії разом ≈1700px. */
@media (min-width: 1760px) {
    /* home: великий пошук є, inline toggle схований */
    body.home .ilyk-header__search             { display: flex; }
    body.home .ilyk-header__search-inline-wrap { display: none !important; }

    /* Розділювач після лого — тільки там де є великий пошук */
    body.home .ilyk-header__logo { padding-right: 20px; border-right: 1px solid #e2e8f0; }

    /* інші: великий пошук схований, inline toggle є */
    body:not(.home) .ilyk-header__search             { display: none !important; }
    body:not(.home) .ilyk-header__search-inline-wrap { display: flex; }
}

/* ── 1200-1759px: СЕРЕДНІЙ ДЕСКТОП ── */
/* Nav є. Великий пошук схований скрізь. Inline toggle є скрізь (і на home). */
@media (min-width: 1200px) and (max-width: 1759px) {
    .ilyk-header__search             { display: none !important; }
    .ilyk-header__search-inline-wrap { display: flex !important; }

    .ilyk-header__inner    { gap: 16px; padding: 0 24px; }
    .ilyk-header__nav-link { padding: 8px 7px; font-size: 14px; }
}
/* [ILYK 04.12.2026] 1200–1439: лого без підпису — інакше лого 267 + меню 600 + дії 360 не влазили в 1200–1366
   («Особистий кабінет» виходив за край до 84px). Підпис повертається з 1440. */
@media (min-width: 1200px) and (max-width: 1439px) {
    .ilyk-header__logo-tagline,
    .ilyk-header__logo-divider { display: none; }
}

/* ── 992-1199px: МАЛИЙ ДЕСКТОП ── */
/* Тільки: лого | inline-toggle | donate | CTA | burger. Nav схований. */
@media (min-width: 992px) and (max-width: 1199px) {
    .ilyk-header__search             { display: none !important; }
    .ilyk-header__nav                { display: none !important; }
    .ilyk-header__search-inline-wrap { display: flex !important; }

    .ilyk-header__inner { justify-content: space-between; gap: 12px; padding: 0 20px; }

    /* donate і CTA залишаються видимими */
    .ilyk-header__actions .ilyk-header__donate-btn { display: inline-flex; }
    .ilyk-header__actions .ilyk-header__cta-btn    { display: inline-flex; }

    .ilyk-header__burger { display: flex; }
}

/* ── < 992px: МОБАЙЛ / ПЛАНШЕТ ── */
@media (max-width: 991px) {
    .ilyk-header__search   { display: none !important; }
    .ilyk-header__nav      { display: none !important; }
    .ilyk-header__nav-item { height: auto; }

    /* donate і CTA ховаємо в хедері — вони є в offcanvas */
    .ilyk-header__actions .ilyk-header__cta-btn    { display: none; }
    .ilyk-header__actions .ilyk-header__donate-btn { display: none; }

    .ilyk-header__search-toggle { display: flex; }
    .ilyk-header__burger        { display: flex; }
    .ilyk-header__inner         { justify-content: space-between; }
}

@media (max-width: 575px) {
    .ilyk-header__logo-tagline { display: none; }
    .ilyk-header__logo-divider { display: none; }
    .ilyk-header__logo { border-right: none; padding-right: 0; }
}

/* ── iOS zoom fix ──
   Safari на iOS зумить сторінку коли font-size інпута < 16px.
   Піднімаємо до 16px на touch-девайсах для всіх полів пошуку в хедері.
   ── */
@media (hover: none) and (pointer: coarse) {
    .ilyk-header__search-input          { font-size: 16px !important; }
    .ilyk-header__search-inline-input   { font-size: 16px !important; }
    .ilyk-header__search-mobile .ilyk-header__search-input { font-size: 16px !important; }
    .ilyk-offcanvas__search-input       { font-size: 16px !important; }
}

/* =====================================================
   OFFCANVAS
   ===================================================== */
.ilyk-offcanvas { position: fixed; inset: 0; z-index: calc(var(--ilyk-header-z) + 10); pointer-events: none; }
.ilyk-offcanvas.is-open { pointer-events: auto; }

.ilyk-offcanvas__overlay {
    position: absolute; inset: 0;
    background: rgba(15, 23, 42, 0.3); opacity: 0; transition: opacity 0.3s;
}
.ilyk-offcanvas.is-open .ilyk-offcanvas__overlay { opacity: 1; }

.ilyk-offcanvas__panel {
    position: absolute; top: 0; right: 0;
    width: 320px; max-width: 90vw; height: 100%;
    background: #fff;
    box-shadow: -8px 0 40px rgba(0,0,0,0.08);
    display: flex; flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
}
.ilyk-offcanvas.is-open .ilyk-offcanvas__panel { transform: translateX(0); }

.ilyk-offcanvas__topbar { display: flex; justify-content: flex-end; padding: 12px 16px 0; flex-shrink: 0; }
.ilyk-offcanvas__close {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 14px; border: none; background: #f1f5f9;
    border-radius: 20px; cursor: pointer;
    font-size: 13px; font-weight: 400; color: #64748b;
    font-family: inherit; transition: background 0.2s, color 0.2s;
}
.ilyk-offcanvas__close i { font-size: 15px; }
.ilyk-offcanvas__close:hover { background: #fee2e2; color: #ef4444; }

.ilyk-offcanvas__body {
    flex: 1; padding: 12px 0 0; overflow-y: auto; display: flex; flex-direction: column;
}
.ilyk-offcanvas__section { border-bottom: 1px solid #f1f5f9; }
.ilyk-offcanvas__section-toggle,
.ilyk-offcanvas__section-link {
    display: flex; align-items: center; justify-content: space-between;
    width: 100%; padding: 14px 20px;
    font-size: 15px; font-weight: 600; color: var(--ilyk-clr-dark);
    background: transparent; border: none; cursor: pointer;
    font-family: inherit; text-decoration: none; text-align: left;
    transition: background 0.15s, color 0.15s;
}
.ilyk-offcanvas__section-toggle:hover,
.ilyk-offcanvas__section-link:hover { background: #f8fafc; color: var(--ilyk-clr-primary); }
.ilyk-offcanvas__section-toggle[aria-expanded="true"] { color: var(--ilyk-clr-primary); }
.ilyk-offcanvas__section-toggle i { font-size: 12px; transition: transform 0.2s; opacity: 0.5; }
.ilyk-offcanvas__section-toggle[aria-expanded="true"] i { transform: rotate(180deg); }

.ilyk-offcanvas__section-body { padding: 4px 0 12px; background: #f8fafc; border-left: 3px solid #e0e4ff; margin-left: 20px; }
.ilyk-offcanvas__section-body .ilyk-megamenu-courses { list-style: none; margin: 0; padding: 0; }
.ilyk-offcanvas__section-body .ilyk-megamenu-course-link {
    display: flex; align-items: center; justify-content: space-between;
    padding: 9px 16px; text-decoration: none; gap: 8px;
    position: relative; transition: color 0.15s;
}
.ilyk-offcanvas__section-body .ilyk-megamenu-course-link::after {
    content: '';
    position: absolute; bottom: 0; left: 16px; right: 16px;
    height: 1px; background: var(--ilyk-clr-primary);
    transform: scaleX(0); transform-origin: left;
    transition: transform 0.22s ease; opacity: 0.45;
}
.ilyk-offcanvas__section-body .ilyk-megamenu-course-link:hover { color: var(--ilyk-clr-primary); }
.ilyk-offcanvas__section-body .ilyk-megamenu-course-link:hover::after { transform: scaleX(1); }
.ilyk-offcanvas__section-body .ilyk-megamenu-course-title { font-size: 14px; font-weight: 400; color: #475569; transition: color 0.15s; }

.ilyk-offcanvas__subnav { list-style: none; margin: 0; padding: 0; }
.ilyk-offcanvas__subnav li a {
    display: block; padding: 9px 16px; font-size: 14px; color: #475569;
    text-decoration: none; position: relative; transition: color 0.15s;
}
.ilyk-offcanvas__subnav li a::after {
    content: '';
    position: absolute; bottom: 0; left: 16px; right: 16px;
    height: 1px; background: var(--ilyk-clr-primary);
    transform: scaleX(0); transform-origin: left;
    transition: transform 0.22s ease; opacity: 0.45;
}
.ilyk-offcanvas__subnav li a:hover { color: var(--ilyk-clr-primary); }
.ilyk-offcanvas__subnav li a:hover::after { transform: scaleX(1); }

.ilyk-offcanvas__actions {
    padding: 16px 20px; display: flex; flex-direction: column; gap: 10px;
    border-bottom: 1px solid #f1f5f9; flex-shrink: 0;
}
.ilyk-offcanvas__actions .ilyk-header__cta-btn,
.ilyk-offcanvas__actions .ilyk-header__donate-btn { display: inline-flex !important; justify-content: center; }

/* ── Offcanvas: пошук ── */
.ilyk-offcanvas__search-wrap {
    padding: 4px 16px 12px;
    flex-shrink: 0;
}
.ilyk-offcanvas__search {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f4f6fb;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 0 6px 0 14px;
    height: 44px;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.ilyk-offcanvas__search:focus-within {
    border-color: rgba(var(--ilyk-clr-primary-rgb), 0.5);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(var(--ilyk-clr-primary-rgb), 0.08);
}
.ilyk-offcanvas__search-icon {
    font-size: 15px;
    color: #94a3b8;
    flex-shrink: 0;
}
.ilyk-offcanvas__search-divider {
    width: 1px;
    height: 18px;
    background: #e2e8f0;
    flex-shrink: 0;
    margin: 0 2px;
}
.ilyk-offcanvas__search-input {
    flex: 1;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    outline: none !important;
    padding: 0 !important;
    margin: 0 !important;
    font-size: 14px;
    color: var(--ilyk-clr-dark) !important;
    font-family: inherit;
    min-width: 0;
}
.ilyk-offcanvas__search-input::placeholder {
    color: #94a3b8;
}
.ilyk-offcanvas__search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    font-size: 15px;
    flex-shrink: 0;
    transition: color 0.2s;
}
.ilyk-offcanvas__search-btn:hover { color: var(--ilyk-clr-primary); }
.ilyk-offcanvas__search:focus-within .ilyk-offcanvas__search-btn { color: var(--ilyk-clr-primary); }

/* ── Offcanvas: контакти внизу ── */
.ilyk-offcanvas__contacts {
    margin-top: auto; padding: 16px 20px 24px;
    border-top: 1px solid #f1f5f9;
    display: flex; flex-direction: column; gap: 14px; flex-shrink: 0;
}
.ilyk-offcanvas__phone {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 14px; font-weight: 600; color: var(--ilyk-clr-dark);
    text-decoration: none; transition: color 0.2s;
}
.ilyk-offcanvas__phone i {
    width: 32px; height: 32px; background: #f0fdf4; color: #16a34a;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 13px; flex-shrink: 0; transition: background 0.2s;
}
.ilyk-offcanvas__phone:hover { color: #16a34a; }
.ilyk-offcanvas__phone:hover i { background: #dcfce7; }

.ilyk-offcanvas__socials { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.ilyk-offcanvas__social {
    width: 36px; height: 36px; border-radius: 50%; background: #f1f5f9; color: #64748b;
    display: flex; align-items: center; justify-content: center; font-size: 15px;
    text-decoration: none; transition: background 0.2s, color 0.2s, transform 0.2s;
}
.ilyk-offcanvas__social:hover { transform: translateY(-2px); }
.ilyk-offcanvas__social[aria-label="Instagram"]:hover { background: #fce7f3; color: #db2777; }
.ilyk-offcanvas__social[aria-label="Facebook"]:hover  { background: #dbeafe; color: #1d4ed8; }
.ilyk-offcanvas__social[aria-label="YouTube"]:hover   { background: #fee2e2; color: #dc2626; }

/* ── Offcanvas: підзаголовки Наживо/Онлайн ── */
.ilyk-offcanvas__subsection { padding: 8px 0 4px; }
.ilyk-offcanvas__subsection + .ilyk-offcanvas__subsection {
    border-top: 1px solid #eef0ff; margin-top: 4px; padding-top: 12px;
}
.ilyk-offcanvas__subsection-title {
    display: inline-flex; align-items: center;
    font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em;
    color: var(--ilyk-clr-primary); background: rgba(var(--ilyk-clr-primary-rgb), 0.1);
    border-radius: 20px; padding: 3px 10px; margin: 8px 16px 4px;
}
.ilyk-offcanvas__section-body .ilyk-megamenu-course-item { border-bottom: 1px solid #f1f5f9; }
.ilyk-offcanvas__section-body .ilyk-megamenu-course-item:last-child { border-bottom: none; }
.ilyk-offcanvas__all-link {
    display: inline-flex; align-items: center; gap: 6px;
    margin: 10px 16px 6px; padding: 5px 12px;
    font-size: 12px; font-weight: 700; letter-spacing: 0.01em;
    color: var(--ilyk-clr-primary);
    background: rgba(var(--ilyk-clr-primary-rgb), 0.07);
    border-radius: 20px;
    text-decoration: none; transition: background 0.2s, gap 0.2s;
}
.ilyk-offcanvas__all-link:hover { background: rgba(var(--ilyk-clr-primary-rgb), 0.14); gap: 9px; }
.ilyk-offcanvas__all-link i { font-size: 10px; }
.ilyk-offcanvas__subnav li { border-bottom: 1px solid #f1f5f9; }
.ilyk-offcanvas__subnav li:last-child { border-bottom: none; }

/* =====================================================
   LIVE ПОШУК — dropdown
   ===================================================== */
.ilyk-search-dropdown {
    position: fixed; z-index: calc(var(--ilyk-header-z) + 5);
    background: #fff; border: 1px solid #e2e8f0; border-radius: 12px;
    box-shadow: 0 16px 40px rgba(15,23,42,0.12);
    overflow: hidden; max-height: 520px;
    display: flex; flex-direction: column;
    opacity: 0; transform: translateY(-6px); pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.ilyk-search-dropdown.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.ilyk-sd__scroll {
    flex: 1; overflow-y: auto; min-height: 0;
    max-height: 460px;
    overscroll-behavior: contain;
}
.ilyk-sd__loading { padding: 24px; text-align: center; color: #94a3b8; font-size: 14px; }
.ilyk-sd__group { border-bottom: 1px solid #f1f5f9; }
.ilyk-sd__group:last-of-type { border-bottom: none; }
.ilyk-sd__group-head {
    display: flex; align-items: center; gap: 7px; padding: 10px 16px 6px;
    font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: #94a3b8;
}
.ilyk-sd__item {
    display: flex; align-items: center; gap: 12px; padding: 8px 16px;
    text-decoration: none; color: inherit; transition: background 0.15s;
}
.ilyk-sd__item:hover { background: #f8fafc; }
.ilyk-sd__thumb { width: 44px; height: 44px; border-radius: 6px; object-fit: cover; flex-shrink: 0; background: #f1f5f9; }
.ilyk-sd__thumb--icon {
    display: flex; align-items: center; justify-content: center;
    background: color-mix(in srgb, var(--clr) 10%, #f8fafc); color: var(--clr); font-size: 18px;
}
.ilyk-sd__info { flex: 1; min-width: 0; }
.ilyk-sd__title { display: block; font-size: 14px; font-weight: 400; color: #1e293b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ilyk-sd__excerpt { display: block; font-size: 12px; color: #94a3b8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.ilyk-sd__more {
    display: flex; align-items: center; gap: 6px; padding: 7px 16px;
    font-size: 12px; font-weight: 400; color: var(--ilyk-clr-primary);
    text-decoration: none; transition: gap 0.15s; background: #f8faff;
}
.ilyk-sd__more:hover { gap: 10px; }
.ilyk-sd__all {
    display: block; padding: 12px 16px; text-align: center;
    font-size: 13px; font-weight: 600; color: #fff;
    background: var(--ilyk-clr-primary); text-decoration: none; transition: background 0.15s;
    flex-shrink: 0; border-top: 1px solid rgba(255,255,255,0.15);
}
.ilyk-sd__all:hover { background: var(--ilyk-clr-primary-hover); color: #fff !important; }
/* =====================================================
   [ILYK 29.11.2026] Лого-SVG (inc/brand-mark.php). Анімацію щаблів власник прибрав —
   статичний вигляд як у img/logo.png (чорний + щаблі 50 %). Розмір дає .ilyk-header__logo-img.
   ===================================================== */
.ilyk-mark--header { display: block; color: #010101; fill: currentColor; overflow: visible; }
.ilyk-mark--header .ilyk-mark__rung { fill: currentColor; fill-opacity: .5; }

/* [ILYK 29.11.2026] Висота адмін-бару WP для липких елементів (вкладки курсу, сайдбар, фільтр архіву) —
   змінну використовували, але ніде не задавали, тож у залогінених адмінів липкі блоки заходили під хедер. */
body.admin-bar { --ilyk-admin-bar-h: 32px; }
@media screen and (max-width: 782px) { body.admin-bar { --ilyk-admin-bar-h: 46px; } }
/* ≤600px адмін-бар WP не фіксований (прокручується геть), тож липким елементам відступ під нього не потрібен */
@media screen and (max-width: 600px) { body.admin-bar { --ilyk-admin-bar-h: 0px; } }


/* ── ilyk-page-transitions ── */
/* =====================================================
   [ILYK 29.11.2026, переписано 03.12.2026] Плавні переходи між сторінками — вбудовані View Transitions браузера
   (cross-document, без JS-бібліотек). Стара сторінка м'яко гасне, нова проявляється.
   Браузери без підтримки (напр. Firefox) просто відкривають сторінку як раніше.
   Вимикається: системне «менше руху» і режим доступності html.a11y-motion.

   Хедер (03.12): раніше мав власний view-transition-name і на час переходу ставав непрозоро-білим (знімок
   окремого елемента не містить backdrop-filter) — на темних банерах це виглядало як мигання «скло → біле → скло».
   Тепер хедер лишається частиною знімка сторінки (там скло й розмиття вже намальовані правильно), а смуга
   хедера просто не бере участі в розчиненні: маска ріже знімки по --ilyk-vt-cut (низ хедера; ставить скрипт
   у <head>, inc/theme-setup.php). Стара сторінка гасне лише нижче хедера, нова — хедер одразу, решта проявляється.
   ===================================================== */

@view-transition { navigation: auto; }

@property --ilyk-vt-a {
    syntax: '<number>';
    inherits: false;
    initial-value: 1;
}

/* стара сторінка: смуга хедера не показується (над нею — новий хедер), решта лежить під новою без змін.
   [03.12] Раніше стара гасла (0,22 с) окремо від проявлення нової (0,06 с + 0,3 с) — посередині обидві були
   напівпрозорі й крізь них просвічувало біле тло: сторінка «блимала» світлим (на темних блоках яскравість
   стрибала майже вдвічі). Тепер нова просто проявляється поверх старої — чисте перетікання без провалу. */
::view-transition-old(root) {
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, transparent var(--ilyk-vt-cut, 0px), #000 var(--ilyk-vt-cut, 0px));
            mask-image: linear-gradient(to bottom, transparent 0, transparent var(--ilyk-vt-cut, 0px), #000 var(--ilyk-vt-cut, 0px));
    animation: none;
}
/* нова сторінка: смуга хедера видима одразу, решта проявляється за 0,3 с (анімуємо прозорість маски, не всього знімка) */
::view-transition-new(root) {
    -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 var(--ilyk-vt-cut, 0px), rgba(0, 0, 0, var(--ilyk-vt-a)) var(--ilyk-vt-cut, 0px));
            mask-image: linear-gradient(to bottom, #000 0, #000 var(--ilyk-vt-cut, 0px), rgba(0, 0, 0, var(--ilyk-vt-a)) var(--ilyk-vt-cut, 0px));
    animation: ilyk-vt-in .3s cubic-bezier(.25, .1, .25, 1) both;
}
@keyframes ilyk-vt-in  { from { --ilyk-vt-a: 0; } to { --ilyk-vt-a: 1; } }

@media (prefers-reduced-motion: reduce) {
    @view-transition { navigation: none; }
}
html.a11y-motion::view-transition-group(*),
html.a11y-motion::view-transition-old(*),
html.a11y-motion::view-transition-new(*) { animation: none !important; }


/* ── ilyk-search ── */
/* =====================================================
   ILYK — Сторінка пошуку
   css/search.css
   ===================================================== */

/* ── Hero ── */
.ilyk-search-page__hero {
    background: linear-gradient(135deg, #f8faff 0%, #eef1fe 100%);
    border-bottom: 1px solid #e2e8f0;
    padding: 60px 0 40px;
}
.ilyk-search-page__hero-inner {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 24px;
}
.ilyk-search-page__label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ilyk-clr-primary);
    margin: 0 0 10px;
}
.ilyk-search-page__title {
    font-size: clamp(24px, 4vw, 36px);
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 32px;
    line-height: 1.2;
}
.ilyk-search-page__title span {
    color: var(--ilyk-clr-primary);
}

/* ── Форма ── */
.ilyk-search-page__form-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 6px 6px 6px 20px;
    box-shadow: 0 4px 20px rgba(var(--ilyk-clr-primary-rgb), 0.08);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.ilyk-search-page__form-wrap:focus-within {
    border-color: rgba(var(--ilyk-clr-primary-rgb), 0.5);
    box-shadow: 0 4px 24px rgba(var(--ilyk-clr-primary-rgb), 0.15);
}
.ilyk-search-page__form-wrap > i {
    font-size: 18px;
    color: #94a3b8;
    flex-shrink: 0;
}
.ilyk-search-page__input {
    flex: 1;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    outline: none !important;
    padding: 10px 0 !important;
    font-size: 16px !important;
    color: #1e293b !important;
    font-family: inherit;
    min-width: 0;
}
/* Ховаємо вбудований браузерний хрестик */
.ilyk-search-page__input::-webkit-search-cancel-button { display: none; }
.ilyk-search-page__input::-ms-clear { display: none; }
.ilyk-search-page__input::placeholder { color: #94a3b8; }
.ilyk-search-page__clear {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f1f5f9;
    color: #64748b;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.2s, color 0.2s;
    flex-shrink: 0;
}
.ilyk-search-page__clear:hover { background: #fee2e2; color: #ef4444; }
.ilyk-search-page__submit {
    padding: 10px 24px;
    background: var(--ilyk-clr-primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s, transform 0.15s;
    flex-shrink: 0;
}
.ilyk-search-page__submit:hover {
    background: var(--ilyk-clr-primary-hover);
    transform: translateY(-1px);
}

/* ── Фільтри ── */
.ilyk-search-page__filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}
.ilyk-search-filter {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 20px;
    background: #fff;
    font-size: 13px;
    font-weight: 400;
    color: #64748b;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.18s;
}
.ilyk-search-filter span {
    font-size: 11px;
    font-weight: 700;
    background: #f1f5f9;
    color: #94a3b8;
    padding: 1px 6px;
    border-radius: 10px;
    transition: all 0.18s;
}
.ilyk-search-filter:hover {
    border-color: var(--ilyk-clr-primary);
    color: var(--ilyk-clr-primary);
}
.ilyk-search-filter.is-active {
    background: var(--ilyk-clr-primary);
    border-color: var(--ilyk-clr-primary);
    color: #fff;
}
.ilyk-search-filter.is-active span {
    background: rgba(255,255,255,0.25);
    color: #fff;
}

/* ── Body ── */
.ilyk-search-page__body {
    padding: 48px 0 80px;
}
.ilyk-search-page__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Порожній стан ── */
.ilyk-search-empty {
    text-align: center;
    padding: 80px 20px;
    color: #94a3b8;
}
.ilyk-search-empty > i {
    font-size: 56px;
    margin-bottom: 20px;
    display: block;
    opacity: 0.4;
}
.ilyk-search-empty h2 {
    font-size: 22px;
    font-weight: 600;
    color: #475569;
    margin: 0 0 10px;
}
.ilyk-search-empty p {
    font-size: 15px;
    margin: 0 0 32px;
}
.ilyk-search-empty__links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}
.ilyk-search-empty__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    border: 1.5px solid #e2e8f0;
    font-size: 14px;
    font-weight: 400;
    color: var(--clr);
    text-decoration: none;
    transition: all 0.18s;
}
.ilyk-search-empty__link:hover {
    border-color: var(--clr);
    background: color-mix(in srgb, var(--clr) 6%, transparent);
    transform: translateY(-1px);
}

/* ── Група результатів ── */
.ilyk-search-group {
    margin-bottom: 48px;
}
.ilyk-search-group__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--clr, #e2e8f0);
}
.ilyk-search-group__label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 700;
    color: var(--clr);
}
.ilyk-search-group__label i { font-size: 16px; }
.ilyk-search-group__more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 400;
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s, gap 0.2s;
}
.ilyk-search-group__more:hover { color: var(--ilyk-clr-primary); gap: 10px; }

/* ── Картки результатів ── */
.ilyk-search-results {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    align-items: start;
}

/* Бейдж типу контенту на thumbnail */
.ilyk-search-type-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: var(--badge-clr);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
    pointer-events: none;
    z-index: 2;
}

/* Плашка категорії курсу (програма / тренінг) */
.ilyk-course-card__cat-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 11px;
    border-radius: 50px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    pointer-events: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
    z-index: 2;
}
.ilyk-course-card__cat-badge--program  { background: var(--ilyk-clr-primary); color: #fff; }
.ilyk-course-card__cat-badge--training { background: #2D6E63; color: #fff; }

/* ── Адаптив ── */
@media (max-width: 640px) {
    .ilyk-search-page__hero { padding: 40px 0 28px; }
    .ilyk-search-results { grid-template-columns: 1fr; }
    .ilyk-search-page__submit { padding: 10px 16px; font-size: 13px; }
}


/* ── ilyk-footer ── */
/* =====================================================
   ILYK — Footer (Frosted Dark)
   css/footer.css
   ===================================================== */

.ilyk-footer {
    background: #080c1a;
    color: #fff;
    position: relative;
    overflow: hidden;
    margin-top: auto; /* sticky footer — притискає до низу */
}

/* Фонові декоративні кола (розмитий glow) */
.ilyk-footer::before,
.ilyk-footer::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(80px);
    opacity: 0.12;
}
.ilyk-footer::before {
    width: 500px;
    height: 500px;
    background: var(--ilyk-clr-primary);
    top: -120px;
    left: -100px;
}
.ilyk-footer::after {
    width: 400px;
    height: 400px;
    background: #7c3aed;
    bottom: -80px;
    right: -60px;
}

/* Топлайн — тонка лінія з градієнтом */
.ilyk-footer__topline {
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(var(--ilyk-clr-primary-rgb), 0.6) 30%,
        rgba(124, 58, 237, 0.6) 70%,
        transparent 100%
    );
}

/* ── Основна частина ── */
.ilyk-footer__main {
    padding: 64px 0 56px;
    position: relative;
    z-index: 1;
}
.ilyk-footer__inner {
    max-width: 1294px; /* [05.12] вміст 1230 (як секції головної) + поля 32×2 — краї збігаються з блоками */
    margin: 0 auto;
    padding: 0 32px;
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: 60px;
    align-items: start;
}
/* [ILYK 07.09.2026] Коли ввімкнена колонка розсилки (тумблер "футер") —
   4-та колонка під форму підписки, трохи ширша за контакти/посилання. */
.ilyk-footer__inner--with-newsletter {
    grid-template-columns: 1.3fr 0.85fr 0.85fr 1.15fr;
    gap: 48px;
}

/* ── Колонка розсилки ──
   [ILYK 07.09.2026] У розмітці (footer.php) колонка йде одразу після
   бренду — так вона природно опиняється другою на мобільному. На
   десктопі (>900px) переміщуємо її візуально в кінець (order), не
   чіпаючи HTML, щоб не ламати мобільний порядок. */
.ilyk-footer__col--newsletter {
    order: 4;
}
.ilyk-footer__col--newsletter .ilyk-sub-form__subtitle {
    font-size: 13px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.45);
    margin: 0 0 16px;
}

/* ── Колонка бренду ── */
.ilyk-footer__col--brand {}

.ilyk-footer__logo {
    display: inline-block;
    margin-bottom: 16px;
    text-decoration: none;
}
.ilyk-footer__logo img {
    height: 32px;
    width: auto;
    /* Білий логотип на темному фоні */
    filter: brightness(0) invert(1);
    opacity: 0.9;
}
.ilyk-footer__logo span {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
}

.ilyk-footer__tagline {
    font-size: 13px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.4);
    margin: 0 0 14px;
    font-weight: 400;
}

/* Соцмережі — [ILYK 07.09.2026] без круглої "рамки"-плашки, просто
   іконки трохи більшого розміру для гармонійнішого вигляду поряд з лого. */
.ilyk-footer__socials {
    display: flex;
    align-items: center;
    gap: 18px;
}
.ilyk-footer__social {
    width: auto;
    height: auto;
    background: none;
    border: none;
    border-radius: 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    color: rgba(255, 255, 255, 0.5);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
}
.ilyk-footer__social:hover {
    color: var(--ilyk-clr-primary, #5169F1);
    transform: translateY(-2px);
}

/* ── Заголовки колонок ── */
.ilyk-footer__heading {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.3);
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* ── Контакти ── */
.ilyk-footer__contacts {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.ilyk-footer__contacts li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.ilyk-footer__contacts i {
    font-size: 14px;
    color: rgba(var(--ilyk-clr-primary-rgb), 0.8);
    margin-top: 2px;
    flex-shrink: 0;
    width: 16px;
    text-align: center;
}
.ilyk-footer__contacts span,
.ilyk-footer__contacts a {
    font-size: 14px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    line-height: 1.5;
    transition: color 0.2s;
}
.ilyk-footer__contacts a:hover {
    color: #fff;
}

/* ── Посилання (документація) ── */
.ilyk-footer__links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.ilyk-footer__links a {
    font-size: 14px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s, transform 0.2s;
}
.ilyk-footer__links a::before {
    content: '';
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(var(--ilyk-clr-primary-rgb), 0.6);
    flex-shrink: 0;
    transition: background 0.2s;
}
.ilyk-footer__links a:hover {
    color: #fff;
    /* [ILYK 03.12.2026] Зсув через transform, а не gap: gap розширював посилання на 2px, і довге
       «Політика конфіденційності» переносилось на другий рядок, коли наводиш курсор. */
    transform: translateX(2px);
}
.ilyk-footer__links a:hover::before {
    background: var(--ilyk-clr-primary);
}

/* ── Нижній рядок ── */
.ilyk-footer__bottom {
    padding: 18px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    position: relative;
    z-index: 1;
}
.ilyk-footer__bottom-inner {
    max-width: 1294px; /* [05.12] вміст 1230 (як секції головної) + поля 32×2 — краї збігаються з блоками */
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.ilyk-footer__copy {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.25);
    font-weight: 400;
}
.ilyk-footer__made {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    gap: 5px;
}
.ilyk-footer__made i {
    font-size: 11px;
    color: rgba(220, 38, 38, 0.6);
}

/* ── Адаптив ── */
@media (max-width: 900px) {
    .ilyk-footer__inner,
    .ilyk-footer__inner--with-newsletter {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    .ilyk-footer__col--newsletter {
        grid-column: 1 / -1;
        max-width: 420px;
        order: 0;
    }
    .ilyk-footer__col--brand {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: auto 1fr;
        grid-template-rows: auto auto;
        gap: 0 32px;
        align-items: start;
    }
    .ilyk-footer__logo { grid-row: 1; }
    .ilyk-footer__tagline { grid-row: 2; margin-bottom: 0; }
    .ilyk-footer__socials { grid-column: 2; grid-row: 1 / 3; align-self: center; }
}
@media (max-width: 580px) {
    .ilyk-footer__inner,
    .ilyk-footer__inner--with-newsletter {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 0 20px;
    }
    .ilyk-footer__col--newsletter {
        max-width: none;
    }
    .ilyk-footer__col--brand {
        grid-template-columns: 1fr;
    }
    .ilyk-footer__socials { grid-column: 1; grid-row: auto; }
    .ilyk-footer__tagline { margin-bottom: 14px; }
    .ilyk-footer__main { padding: 48px 0 40px; }
    .ilyk-footer__bottom-inner { padding: 0 20px; flex-direction: column; gap: 6px; text-align: center; }
}
/* ── Платіжні іконки ── */
.ilyk-footer__payments {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    color: rgba(255, 255, 255, 0.35);
    transition: color 0.2s ease;
}

.ilyk-footer__payments i {
    cursor: default;
    transition: color 0.2s ease;
}
.ilyk-footer__payments i:hover {
    color: rgba(255, 255, 255, 0.7);
}


@media (max-width: 580px) {
    .ilyk-footer__bottom-inner {
        flex-direction: column;
        gap: 14px;
    }
}
