@charset "UTF-8";/* Шаблон Joomla «usednet» — шар поверх site.css вітрини (план docs/joomla_template_plan.md).
   site.css — точна копія storefront/static/css/site.css (кладе joomla/build.sh): токени, шапка, hero, картки, підвал.
   Тут — лише те, чого у вітрини немає: розмітка ядра Joomla 6.2 (статті, блоги, форми, пагінація, повідомлення,
   позиції модулів) у тих самих токенах. Нових кольорів і шрифтів не вводимо — лише var(--…) з site.css.
   Bootstrap 5 ядра (bootstrap.css) іде першим: його змінні --bs-* переводимо на токени «Aurora». */

/* ── Bootstrap → токени «Aurora» ─────────────────────────────────────────── */
:root {
  --bs-body-font-family: var(--f-body);
  --bs-body-font-size: 15.5px;
  --bs-body-font-weight: 500;
  --bs-body-line-height: 1.55;
  --bs-body-color: var(--text);
  --bs-body-bg: var(--surface-solid);
  --bs-emphasis-color: var(--text);
  --bs-secondary-color: var(--muted);
  --bs-secondary-bg: var(--bg-2);
  --bs-tertiary-color: var(--faint);
  --bs-tertiary-bg: var(--surface-2);
  --bs-border-color: var(--border-strong);
  --bs-border-color-translucent: var(--border);
  --bs-border-radius: 12px;
  --bs-border-radius-sm: var(--r-sm);
  --bs-border-radius-lg: var(--r);
  --bs-link-color: var(--link);
  --bs-link-color-rgb: 23, 105, 200;
  --bs-link-hover-color: var(--accent);
  --bs-link-decoration: none;
  --bs-primary: #2f7cf6;
  --bs-primary-rgb: 47, 124, 246;
  --bs-success: #129a6b;
  --bs-success-rgb: 18, 154, 107;
  --bs-focus-ring-color: rgba(47, 124, 246, .18);
  --bs-heading-color: var(--text);
  --bs-code-color: var(--violet);
}

/* ── шапка ──────────────────────────────────────────────────────────────── */
.search-slot { flex: 1 1 360px; min-width: 0; }
.search-slot .search, .search-slot search { display: flex; width: 100%; }
.search-slot .awesomplete { flex: 1; }
.search-slot .awesomplete > ul { border-radius: var(--r); background: var(--surface-solid); box-shadow: var(--shadow-lg);
                                 border: 1px solid var(--border); z-index: 60; }
@media (max-width: 720px) { .search-slot { order: 3; flex-basis: 100%; } }

/* Меню в позиції «menu» з макетом «topnav» — a.top-link вітрини; активний пункт — як «пігулка» під наведенням. */
.top-link.is-active { background: var(--surface-solid); box-shadow: var(--glow); }
/* Меню з типовим макетом ядра в тій самій позиції — ті самі «пігулки». */
.top-nav .mod-menu { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.top-nav .mod-menu > li > a, .top-nav .mod-menu > li > span {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; font-weight: 700; color: var(--text);
  padding: 10px 16px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--border-strong);
  transition: box-shadow .25s var(--ease), background .25s var(--ease);
}
.top-nav .mod-menu > li > a:hover, .top-nav .mod-menu > li.current > a { background: var(--surface-solid); box-shadow: var(--glow); }
.top-nav .mod-menu__sub, .top-nav .mod-menu__toggle-sub { display: none; }
.top-link [class^="icon-"], .top-link [class*=" icon-"] { color: var(--brand); }

/* ── головне меню сайту (позиція «mainmenu») ─────────────────────────────────
   Стандартний макет модуля меню ядра 6.2: ul.mod-menu > li[.deeper] > a + button.mod-menu__toggle-sub + ul.mod-menu__sub.
   Підменю на ПК — скляна панель під пунктом: при наведенні, фокусі або коли скрипт mod_menu ядра відкрив його
   (aria-hidden="false"). Мобільний — кнопка «Меню» (чекбокс .nav-toggle), підменю розкриваються стрілкою ядра. */
.ico-menu { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M4 7h16M4 12h16M4 17h16'/%3E%3C/svg%3E"); }
.nav-toggle { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.nav-burger { display: none; }
.main-nav-row { border-top: 1px solid var(--border); }
.main-nav { padding-top: 6px; padding-bottom: 6px; }
.main-nav .mod-menu { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.main-nav .mod-menu > li { position: relative; display: flex; align-items: center; }
.main-nav .mod-menu > li > a, .main-nav .mod-menu > li > span:not([class*="icon-"]), .main-nav .mod-menu > li > button.mod-menu__toggle-sub:first-child {
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: 999px;
  color: var(--text); font: 700 .95rem/1.2 var(--f-body); white-space: nowrap; transition: background .25s var(--ease), color .25s var(--ease); }
.main-nav .mod-menu > li > a:hover, .main-nav .mod-menu > li:hover > a, .main-nav .mod-menu > li:focus-within > a { background: var(--surface-solid); color: var(--text); }
/* Поточний розділ — градієнтна риска під назвою (як рядок під шапкою вітрини). */
.main-nav .mod-menu > li.active > a { position: relative; }
.main-nav .mod-menu > li.active > a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 3px; height: 2px;
                                             border-radius: 2px; background: var(--grad); }
/* Кнопка-стрілка підменю — не градієнтна кнопка site.css, а тиха стрілка поруч із назвою. */
.main-nav .mod-menu__toggle-sub { --b-bg: transparent; background: none; box-shadow: none; color: var(--muted); padding: 6px; margin-left: -10px;
                                  border-radius: 999px; font-size: .8rem; }
.main-nav .mod-menu__toggle-sub:hover { background: var(--surface-2); color: var(--text); box-shadow: none; transform: none; }
.main-nav .mod-menu__toggle-sub:first-child { margin-left: 0; color: var(--text); gap: 6px; }       /* «Заголовок» / «Розділювач» з підменю */
.main-nav .mod-menu__toggle-sub .icon-chevron-down { margin: 0; transition: transform .25s var(--ease); }
.main-nav .mod-menu__toggle-sub[aria-expanded="true"] .icon-chevron-down { transform: rotate(180deg); }
.main-nav .mod-menu__sub {
  list-style: none; margin: 0; padding: 8px; min-width: 240px; font-size: .95rem;
  border-radius: var(--r); background: var(--surface-solid); box-shadow: inset 0 0 0 1px var(--border), var(--shadow-lg); }
/* Закрите за замовчуванням ще до скрипта ядра (його правило спирається на aria-hidden, який ставить скрипт). */
.main-nav .mod-menu > li > .mod-menu__sub { display: none; }
.main-nav .mod-menu > li > .mod-menu__sub[aria-hidden="false"] { display: block; }
@media (min-width: 861px) {
  .main-nav .mod-menu > li > .mod-menu__sub { position: absolute; left: 0; top: calc(100% + 6px); z-index: 60; }
  .main-nav .mod-menu > li > .mod-menu__sub::before { content: ""; position: absolute; left: 0; right: 0; top: -8px; height: 8px; } /* «місток» для курсора */
  .main-nav .mod-menu > li:hover > .mod-menu__sub, .main-nav .mod-menu > li:focus-within > .mod-menu__sub,
  .main-nav .mod-menu > li > .mod-menu__sub[aria-hidden="false"] { display: block; animation: fade-up .25s var(--ease) both; }
  .main-nav .mod-menu__sub .mod-menu__sub { position: static; min-width: 0; padding: 0 0 0 12px; box-shadow: none; background: none; display: block; }
}
.main-nav .mod-menu__sub li { display: flex; flex-wrap: wrap; align-items: center; }
.main-nav .mod-menu__sub a, .main-nav .mod-menu__sub li > span:not([class*="icon-"]) {
  flex: 1; display: block; padding: 9px 12px; border-radius: 10px; color: var(--text); font-weight: 600; }
.main-nav .mod-menu__sub a:hover, .main-nav .mod-menu__sub .current > a { background: var(--grad-soft); color: var(--text); }
.main-nav .mod-menu__sub .mod-menu__sub { flex-basis: 100%; }
/* Іконка пункту (поле «Клас іконки посилання»: ico-tag, ico-chat …): типовий макет ядра виводить
   <span class="p-2 pt-0 ico-…"> — малюємо її маскою вітрини замість порожнього блоку з відступами. */
.main-nav .mod-menu a > span[class*="ico-"], .top-nav .mod-menu a > span[class*="ico-"] {
  display: inline-block; flex: none; width: 17px; height: 17px; padding: 0 !important; margin: 0; color: var(--brand);
  background: currentColor; -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
.main-nav .mod-menu .divider > span { color: var(--faint); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }

@media (max-width: 860px) {
  .has-main-nav .nav-burger {
    display: inline-flex; align-items: center; gap: 8px; margin-left: auto; padding: 9px 14px; border-radius: 999px; cursor: pointer;
    font-weight: 700; color: var(--text); box-shadow: inset 0 0 0 1px var(--border-strong); user-select: none; }
  .has-main-nav .nav-burger .ico { width: 18px; height: 18px; color: var(--brand); }
  .nav-toggle:focus-visible ~ .top-row .nav-burger { outline: 2px solid var(--accent); outline-offset: 3px; }
  .nav-toggle:checked ~ .top-row .nav-burger { background: var(--surface-solid); box-shadow: var(--glow); }
  .main-nav-row { display: none; max-height: calc(100vh - 140px); overflow-y: auto; }
  .nav-toggle:checked ~ .main-nav-row { display: block; animation: fade-up .25s var(--ease) both; }
  .main-nav { padding-top: 8px; padding-bottom: 12px; }
  .main-nav .mod-menu { flex-direction: column; align-items: stretch; gap: 2px; }
  .main-nav .mod-menu > li { flex-wrap: wrap; }
  .main-nav .mod-menu > li > a, .main-nav .mod-menu > li > span:not([class*="icon-"]) { flex: 1; border-radius: 12px; }
  .main-nav .mod-menu__toggle-sub { margin-left: 0; padding: 10px 12px; }
  .main-nav .mod-menu__sub { flex-basis: 100%; min-width: 0; margin: 2px 0 6px 12px; box-shadow: inset 2px 0 0 var(--brand); border-radius: 0 12px 12px 0; }
  .main-nav .mod-menu > li.active > a::after { display: none; }
  .main-nav .mod-menu > li.active > a { background: var(--grad-soft); }
}

/* ── хлібні крихти: поточна сторінка ────────────────────────────────────── */
.crumbs .crumb-cur, .crumbs .crumb-txt { padding: 4px 10px; border-radius: 999px; }
.crumbs .crumb-cur { color: var(--text); font-weight: 700; }

/* ── каркас: бічні колонки (як .list-layout вітрини) ───────────────────── */
.tpl-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: start; }
.tpl-layout.has-left { grid-template-columns: 270px minmax(0, 1fr); }
.tpl-layout.has-right { grid-template-columns: minmax(0, 1fr) 300px; }
.tpl-layout.has-left.has-right { grid-template-columns: 250px minmax(0, 1fr) 280px; }
@media (max-width: 1000px) { .tpl-layout.has-left.has-right { grid-template-columns: 250px minmax(0, 1fr); }
                             .tpl-layout.has-left.has-right .tpl-side-right { grid-column: 1 / -1; } }
@media (max-width: 860px) { .tpl-layout, .tpl-layout.has-left, .tpl-layout.has-right, .tpl-layout.has-left.has-right { grid-template-columns: 1fr; gap: 18px; }
                            .tpl-layout .tpl-side-left { order: 2; } }
.tpl-side { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 92px; }
@media (max-width: 860px) { .tpl-side { position: static; } }
.tpl-main { min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.tpl-pos { margin: 0 0 28px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
/* Елементи сітки не ширші за колонку: інакше стрічка брендів (width: max-content) розпирає сторінку. */
.tpl-pos > *, .tpl-main > *, .tpl-side > *, .aur-block { min-width: 0; max-width: 100%; }
.tpl-bottom-a { margin-top: 44px; }
.tpl-bottom-a + .tpl-bottom-b { margin-top: 0; }
.tpl-bottom-b { margin-top: 44px; }
/* top-b / bottom-b — як у Cassiopeia: модулі стають у колонки (картки рівної ширини), на вузькому — один під одним. */
.tpl-top-b, .tpl-bottom-b { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); align-items: start; }

/* ── позиції над шапкою (Cassiopeia: topbar, below-top) і банер на всю ширину ── */
.tpl-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 18px; padding: 7px 20px;
  font-size: .88rem; text-align: center; }
.tpl-strip > * { margin: 0; }
.tpl-strip p { margin: 0; }
.tpl-strip a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.tpl-topbar { position: relative; color: #fff; background: var(--grad); }
.tpl-topbar a:hover { color: #fff; opacity: .85; }
.tpl-below-top { color: var(--muted); background: var(--surface); border-bottom: 1px solid var(--border); }
.tpl-below-top a:hover { color: var(--text); }
.tpl-banner { margin: 0 0 8px; }
.tpl-banner > * { max-width: 100%; }
.tpl-banner img { display: block; width: 100%; height: auto; }
/* Блоки вітрини (hero, CTA…) у банері — по ширині вмісту .wrap (1280 − 2×20), як у main. */
.tpl-banner > section, .tpl-banner > .aur-block { width: calc(100% - 40px); max-width: 1240px; margin: 28px auto 0; }

/* ── обгортка модуля «aurora» (скляна панель) ───────────────────────────── */
.aur-mod {
  padding: clamp(18px, 2.4vw, 28px); border-radius: var(--r-xl); background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--border), var(--shadow); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  animation: fade-up .7s var(--ease) both;
}
.tpl-side .aur-mod { border-radius: var(--r-lg); padding: 20px; }
.aur-mod-title { margin: 0 0 14px; }
.tpl-side .aur-mod-title { font-size: 1.05rem; }
.aur-mod-body > :last-child { margin-bottom: 0; }
/* Блоки вітрини (mod_usednet_blocks) — відступи між секціями як на головній вітрини. */
.aur-block { margin: 0 0 40px; }
.aur-block > .cat-grid + .brand-grid, .aur-block > .trust { margin-top: 0; }
.tpl-pos .aur-block:last-child, .tpl-main .aur-block:last-child { margin-bottom: 8px; }
.aur-mod.aur-plain { padding: 0; background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
/* Списки модулів (меню збоку, останні статті, категорії) — рядки з рискою, як .brand-letter вітрини. */
.aur-mod .mod-menu, .aur-mod .mod-list, .aur-mod .mod-articles, .aur-mod .mod-articlescategories {
  list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.aur-mod .mod-menu li, .aur-mod .mod-list li { border-top: 1px dashed var(--border); }
.aur-mod .mod-menu li:first-child, .aur-mod .mod-list li:first-child { border-top: 0; }
.aur-mod .mod-menu a, .aur-mod .mod-list a { display: block; padding: 8px 2px; color: var(--text); font-weight: 700; }
.aur-mod .mod-menu a:hover, .aur-mod .mod-list a:hover, .aur-mod .mod-menu .current > a { color: var(--accent); }
.aur-mod .mod-menu__sub { list-style: none; padding-left: 14px; }
.aur-mod .mod-menu__toggle-sub { display: none; }

/* ── вміст компонента: типографіка ──────────────────────────────────────── */
.tpl-component { min-width: 0; }
.page-header h1, .page-header h2, .com-content-article > h1, .item-page > h1 {
  font: 700 clamp(1.6rem, 1.1rem + 2vw, 2.5rem)/1.12 var(--f-display); letter-spacing: -.02em; margin: 0 0 14px; text-wrap: balance;
}
.page-header { margin: 0 0 18px; border: 0; padding: 0; }
.tpl-component h2, .tpl-component h3, .tpl-component h4 { font-family: var(--f-display); letter-spacing: -.015em; color: var(--text); }
.tpl-component h2 { font-weight: 700; font-size: clamp(1.25rem, 1rem + 1vw, 1.7rem); line-height: 1.2; margin: 1.6em 0 .6em; }
.tpl-component h3 { font-weight: 700; font-size: 1.2rem; line-height: 1.25; margin: 1.4em 0 .5em; }
.tpl-component h4 { font-weight: 700; font-size: 1.02rem; margin: 1.2em 0 .4em; }
.tpl-component .page-header h2 a, .tpl-component h2 a, .tpl-component h3 a { color: var(--text); }
.tpl-component .page-header h2 a:hover, .tpl-component h2 a:hover, .tpl-component h3 a:hover { color: var(--accent); }

/* Стаття — скляна картка, як .descr вітрини; текст обмежений по ширині для читання. */
.com-content-article, .item-page, .com-contact, .com-tags-tag, .com-finder, .com-users, .com-content-categories,
.com-content-archive, .com-newsfeeds, .com-privacy, .com-contact-featured {
  padding: clamp(22px, 3vw, 40px); border-radius: var(--r-xl); background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--border), var(--shadow); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  animation: fade-up .7s var(--ease) both;
}
.com-content-article__body, .item-page [itemprop="articleBody"], .com-content-category__description {
  max-width: 85ch; font-size: 1rem; line-height: 1.7; }
.tpl-component p { margin: 0 0 1em; }
.tpl-component ul:not([class]), .tpl-component ol:not([class]) { padding-left: 1.3em; margin: 0 0 1em; }
.tpl-component li::marker { color: var(--brand); }
.tpl-component img { height: auto; border-radius: var(--r); }
.tpl-component figure { margin: 0 0 1.2em; }
.tpl-component figcaption { color: var(--muted); font-size: .88rem; margin-top: 6px; }
.tpl-component blockquote { margin: 1.4em 0; padding: 16px 22px; border-radius: var(--r); background: var(--grad-soft);
                            box-shadow: inset 3px 0 0 var(--brand); font-size: 1.05rem; }
.tpl-component blockquote > :last-child { margin-bottom: 0; }
.tpl-component hr { border: 0; height: 1px; background: var(--grad); opacity: .45; margin: 2em 0; }
.tpl-component code, .tpl-component kbd, .tpl-component pre { font-family: var(--f-mono); font-size: .9em; }
.tpl-component code { padding: 2px 6px; border-radius: 6px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--border); }
.tpl-component pre { padding: 16px 18px; border-radius: var(--r); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--border);
                     overflow: auto; }
.tpl-component pre code { padding: 0; background: none; box-shadow: none; }
.tpl-component table:not([class]) { width: 100%; border-collapse: collapse; margin: 0 0 1.2em; font-size: .95rem; }
.tpl-component table:not([class]) th, .tpl-component table:not([class]) td { padding: 10px 12px; border-bottom: 1px dashed var(--border-strong);
                                                                           text-align: left; }
.tpl-component table:not([class]) th { color: var(--muted); font-weight: 700; }
.table { --bs-table-bg: transparent; --bs-table-color: var(--text); --bs-table-border-color: var(--border-strong);
         --bs-table-striped-bg: var(--surface-2); --bs-table-hover-bg: var(--surface-2); }

/* Відомості статті (автор, дата, категорія) — «мета» дрібним сірим, як .facts dt. */
.article-info { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0 0 20px; padding: 12px 0;
                border-top: 1px dashed var(--border-strong); border-bottom: 1px dashed var(--border-strong);
                color: var(--muted); font-size: .88rem; font-weight: 600; }
.article-info dt { display: none; }
.article-info dd { margin: 0; display: inline-flex; align-items: center; gap: 6px; }
.article-info [class^="icon-"], .article-info [class*=" icon-"] { color: var(--brand); }
.icons .dropdown-toggle, .com-content-article .icons .btn { --b-bg: var(--surface); color: var(--text); box-shadow: inset 0 0 0 1px var(--border-strong); }

/* Теги — «пігулки» як .subcats вітрини. */
.tags { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags .list-inline-item { margin: 0; }
.tags a, .tags .btn, a.badge.tag, .tags .badge {
  display: inline-flex; align-items: center; padding: 6px 13px; border-radius: 999px; font: 700 .85rem/1.2 var(--f-body);
  color: var(--text); background: var(--surface); box-shadow: inset 0 0 0 1px var(--border-strong); transition: all .25s var(--ease); }
.tags a:hover { color: #fff; background: var(--grad); box-shadow: 0 10px 24px -10px rgba(47,124,246,.7); transform: translateY(-2px); }

/* «Читати далі» — посилання зі стрілкою, як .trust-link вітрини. */
.readmore { margin: 6px 0 0; }
.readmore a, .readmore .btn { --b-bg: transparent; display: inline-flex; align-items: center; gap: 6px; padding: 0; box-shadow: none;
                              background: none; color: var(--link); font-weight: 800; font-size: .95rem;
                              justify-content: flex-start; text-align: left; white-space: normal; }
.readmore a:hover, .readmore .btn:hover { color: var(--accent); transform: none; box-shadow: none; }
.readmore a::after { content: "→"; transition: transform .25s var(--ease); }
.readmore a:hover::after { transform: translateX(3px); }
.readmore [class^="icon-"], .readmore [class*=" icon-"] { display: none; }

/* ── блог категорії й головна (featured) — картки-плитки ────────────────── */
.blog, .blog-featured { display: flex; flex-direction: column; gap: 26px; }
.blog-items { display: grid; gap: 18px; }
.blog-items.items-leading { grid-template-columns: 1fr; }
.blog-items:not(.items-leading) { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.blog-items.columns-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.blog-items.columns-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.blog-items.columns-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .blog-items.columns-3, .blog-items.columns-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .blog-items.columns-2, .blog-items.columns-3, .blog-items.columns-4 { grid-template-columns: 1fr; } }
.blog-item {
  position: relative; isolation: isolate; display: flex; flex-direction: column; overflow: hidden;
  border-radius: var(--r-lg); background: var(--surface); box-shadow: inset 0 0 0 1px var(--border), var(--shadow-sm);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), background .4s var(--ease);
  animation: rise .7s var(--ease) both;
}
.blog-item:nth-child(2) { animation-delay: .05s; } .blog-item:nth-child(3) { animation-delay: .10s; }
.blog-item:nth-child(4) { animation-delay: .15s; } .blog-item:nth-child(n+5) { animation-delay: .20s; }
.blog-item::before { /* градієнтна рамка на ховер — як у .card вітрини */
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; z-index: 1; pointer-events: none;
  background: var(--grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .4s var(--ease);
}
.blog-item:hover { transform: translateY(-5px); background: var(--surface-solid); box-shadow: var(--shadow-lg); }
.blog-item:hover::before { opacity: 1; }
.blog-item .item-image { margin: 0; overflow: hidden; }
.blog-item .item-image img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 0;
                             transition: transform .6s var(--ease); }
.blog-item:hover .item-image img { transform: scale(1.05); }
.blog-item .item-content { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 22px; }
.blog-item .item-content .page-header h2, .blog-item .item-title { margin: 0 0 10px; font-size: 1.2rem; line-height: 1.25; }
.blog-item .article-info { border: 0; padding: 0; margin-bottom: 12px; }
.blog-item .readmore { margin-top: auto; padding-top: 10px; }
.items-more { padding: 20px 22px; border-radius: var(--r-lg); background: var(--surface); box-shadow: inset 0 0 0 1px var(--border); }
.items-more ol { margin: 0; padding-left: 1.2em; }
.com-content-category-blog__children, .cat-children { padding: 18px 22px; border-radius: var(--r-lg); background: var(--surface);
                                                     box-shadow: inset 0 0 0 1px var(--border); }

/* Перелік статей категорії (таблиця) */
.com-content-category__table { --bs-table-bg: transparent; width: 100%; }
.com-content-category__table th { color: var(--muted); font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; }

/* ── пагінація ядра → .pager вітрини ────────────────────────────────────── */
.com-content-category-blog__navigation, .com-content-category__navigation, .pagination__wrapper {
  display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 36px; }
.pagination__wrapper .text-end, .counter { color: var(--muted); font-weight: 700; font-size: .9rem; }
.pagination { --bs-pagination-bg: transparent; --bs-pagination-border-width: 0; display: flex; flex-wrap: wrap; justify-content: center;
              gap: 8px; margin: 0; padding: 0; list-style: none; }
.pagination .page-item .page-link {
  min-width: 44px; height: 44px; display: inline-grid; place-items: center; padding: 0 14px; border: 0; border-radius: 14px !important;
  font-weight: 700; color: var(--text); background: var(--surface); box-shadow: inset 0 0 0 1px var(--border); transition: all .25s var(--ease);
}
.pagination .page-item a.page-link:hover { background: var(--surface-solid); box-shadow: var(--glow); transform: translateY(-2px); }
.pagination .page-item.active .page-link { color: #fff; background: var(--grad); box-shadow: 0 10px 24px -10px rgba(47,124,246,.7); }
.pagination .page-item.disabled .page-link { opacity: .45; }
.pagenavigation .pagination { justify-content: space-between; }
.pagenavigation .btn, .pagenav a { --b-bg: var(--surface); color: var(--text); box-shadow: inset 0 0 0 1px var(--border-strong); }
.pagenavigation .btn:hover, .pagenav a:hover { color: var(--text); box-shadow: var(--glow); }

/* ── кнопки ядра: основні — градієнт вітрини, другорядні — «скляні» ─────── */
.btn-primary, .btn-success, .btn-info { --b-bg: var(--grad); color: #fff; }
.btn-secondary, .btn-light, .btn-outline-primary, .btn-outline-secondary, .btn-outline-info, .btn-link, .btn-outline-success {
  --b-bg: var(--surface); color: var(--text); box-shadow: inset 0 0 0 1px var(--border-strong);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.btn-secondary:hover, .btn-light:hover, .btn-outline-primary:hover, .btn-outline-secondary:hover, .btn-outline-info:hover,
.btn-link:hover, .btn-outline-success:hover { color: var(--text); --b-bg: var(--surface-solid); box-shadow: var(--glow); }
.btn-danger, .btn-outline-danger { --b-bg: linear-gradient(115deg, #e5484d, #c2255c); color: #fff;
                                    box-shadow: 0 8px 22px -8px rgba(229,72,77,.55); }
.btn-warning, .btn-outline-warning { --b-bg: linear-gradient(115deg, #f2b544, #d6982b); color: #1a1205; }
.btn-sm { padding: 7px 14px; font-size: 13.5px; }
.btn-close { background-color: transparent; box-shadow: none; }

/* ── форми ──────────────────────────────────────────────────────────────── */
.form-control, .form-select, input[type=email], input[type=password], input[type=tel], input[type=url], input[type=number],
input[type=date], textarea {
  width: 100%; padding: 11px 14px; border: 1px solid var(--border-strong); border-radius: 12px;
  background-color: var(--surface-solid); color: var(--text); font: 500 15px/1.3 var(--f-body);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
textarea { min-height: 120px; line-height: 1.5; }
.form-control:focus, .form-select:focus, textarea:focus, input[type=email]:focus, input[type=password]:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(47,124,246,.18); background-color: var(--surface-solid); color: var(--text); }
.form-label, .control-label label, .tpl-component label { font-weight: 700; font-size: .9rem; color: var(--muted); }
.control-group { margin-bottom: 16px; }
.control-group .control-label { margin-bottom: 6px; }
.form-check-input { width: 1.15em; height: 1.15em; border-color: var(--border-strong); background-color: var(--surface-solid); }
.form-check-input:checked { background-color: var(--accent); border-color: var(--accent); }
.form-check-input[type=checkbox].form-switch, .form-switch .form-check-input { border-radius: 999px; }
.input-group > .form-control { border-radius: 12px 0 0 12px; }
.input-group > .btn { border-radius: 0 12px 12px 0; }
.invalid, .form-control.invalid, .form-control-danger { border-color: #e5484d !important; }
fieldset { border: 0; padding: 0; margin: 0 0 18px; }
legend { font: 700 1.1rem/1.3 var(--f-display); margin-bottom: 12px; }
.required, .star { color: #e5484d; }

/* ── системні повідомлення ядра (joomla-alert) ──────────────────────────── */
#system-message-container:empty { display: none; }
#system-message-container { margin: 0 0 18px; }
joomla-alert, .alert {
  position: relative; display: block; margin: 0 0 12px; padding: 14px 44px 14px 18px; border: 0; border-radius: var(--r);
  color: var(--text); background: var(--surface-solid); box-shadow: inset 4px 0 0 var(--accent), var(--shadow);
  animation: fade-up .5s var(--ease) both;
}
joomla-alert[type="success"], .alert-success { box-shadow: inset 4px 0 0 var(--ok), var(--shadow); background: var(--ok-bg); }
joomla-alert[type="warning"], .alert-warning { box-shadow: inset 4px 0 0 var(--ask), var(--shadow); background: var(--ask-bg); }
joomla-alert[type="danger"], joomla-alert[type="error"], .alert-danger, .alert-error {
  box-shadow: inset 4px 0 0 #e5484d, var(--shadow); background: rgba(229,72,77,.10); }
joomla-alert .alert-heading { font: 700 .95rem/1.3 var(--f-display); margin-bottom: 4px; }
joomla-alert .alert-heading [class^="icon-"], joomla-alert .alert-heading [class*=" icon-"] { display: none; }
joomla-alert .alert-wrapper, joomla-alert .alert-message { margin: 0; }
joomla-alert .joomla-alert--close, joomla-alert button[class*="close"] {
  position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; padding: 0; border-radius: 50%;
  background: var(--surface-2); color: var(--muted); box-shadow: inset 0 0 0 1px var(--border); font-size: 18px; line-height: 1; }
joomla-alert .joomla-alert--close:hover { transform: none; color: var(--text); }

/* ── дрібне ─────────────────────────────────────────────────────────────── */
.badge { border-radius: 999px; font-weight: 700; }
.bg-secondary { background: var(--none-bg) !important; color: var(--none) !important; }
.bg-success { background: var(--ok-bg) !important; color: var(--ok) !important; }
.bg-warning { background: var(--ask-bg) !important; color: var(--ask) !important; }
.list-group { --bs-list-group-bg: var(--surface); --bs-list-group-border-color: var(--border); --bs-list-group-color: var(--text); }
.nav-tabs { --bs-nav-tabs-border-color: var(--border-strong); --bs-nav-tabs-link-active-bg: var(--surface-solid);
            --bs-nav-tabs-link-active-color: var(--text); --bs-nav-link-color: var(--muted); }
.dropdown-menu { --bs-dropdown-bg: var(--surface-solid); --bs-dropdown-border-color: var(--border); --bs-dropdown-link-color: var(--text);
                 border-radius: var(--r); box-shadow: var(--shadow-lg); }
.card { --bs-card-bg: var(--surface); --bs-card-border-color: var(--border); --bs-card-cap-bg: transparent; }
.error-debug { margin: 24px 0; padding: 18px; border-radius: var(--r); background: var(--surface); box-shadow: inset 0 0 0 1px var(--border);
               font-size: .85rem; overflow: auto; }

/* ── сайт-візитка: шапка, банер, заклик, плитки, картки, відео ──────────── */
/* Іконки, яких немає у вітрини, — такі самі маски (data: SVG, колір — currentColor). */
.ico-grid { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='7' height='7' rx='1.5'/%3E%3Crect x='14' y='3' width='7' height='7' rx='1.5'/%3E%3Crect x='3' y='14' width='7' height='7' rx='1.5'/%3E%3Crect x='14' y='14' width='7' height='7' rx='1.5'/%3E%3C/svg%3E"); }
.ico-pin { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 6-8 12-8 12s-8-6-8-12a8 8 0 0 1 16 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E"); }
.ico-clock { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E"); }
.ico-play { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5.5v13a1 1 0 0 0 1.5.86l10.5-6.5a1 1 0 0 0 0-1.72L9.5 4.64A1 1 0 0 0 8 5.5z'/%3E%3C/svg%3E"); }

/* Кнопка «Каталог» у шапці — градієнтна «пігулка» серед звичайних пунктів меню. */
.top-link.top-cta { color: #fff; background: var(--grad); background-size: 160% 100%; box-shadow: 0 8px 22px -8px rgba(47,124,246,.55);
                    transition: background-position .5s var(--ease), box-shadow .3s var(--ease), transform .2s var(--ease); }
.top-link.top-cta .ico { color: #fff; }
.top-link.top-cta:hover { color: #fff; background-position: 100% 50%; transform: translateY(-1px);
                          box-shadow: 0 14px 30px -10px rgba(124,92,255,.6); }
/* Мобільний: у вітрини два пункти з іконками, тож вона лишає лише іконки. На візитці пунктів більше й не всі з
   іконками — меню стає окремим рядком-стрічкою з текстом, що гортається пальцем. */
@media (max-width: 720px) {
  .top-nav { order: 4; flex: 1 1 100%; margin: 0 -14px; padding: 2px 14px 4px; flex-wrap: nowrap; overflow-x: auto;
             scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .top-nav::-webkit-scrollbar { display: none; }
  .top-nav .top-link span:not(.ico) { display: inline; }
  .top-nav .top-link { flex: none; padding: 8px 14px; }
  .top-nav .mod-menu { flex-wrap: nowrap; }
  .top-nav .top-cta { order: -1; }
}

/* Банер (модуль «Банер»): кнопки замість пошуку. Друга кнопка — «скляна» на темному тлі банера. */
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 4px; animation: fade-up .8s .24s var(--ease) both; }
.hero-actions .btn .ico { width: 18px; height: 18px; }
.btn-on-dark { --b-bg: rgba(255,255,255,.08); color: #eaf2ff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.22);
               -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.btn-on-dark:hover { --b-bg: rgba(255,255,255,.16); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.35); }
.hero .hero-chips { margin-top: 22px; }

/* Заклик перейти в каталог — смуга в стилі банера вітрини. */
.cta-band {
  position: relative; isolation: isolate; overflow: hidden; display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 18px 28px; padding: clamp(26px, 4vw, 44px) clamp(22px, 4vw, 48px);
  border-radius: var(--r-xl); color: #eaf2ff; box-shadow: var(--shadow-lg);
  background: linear-gradient(140deg, #071226 0%, #0b1d3d 45%, #12123a 100%);
}
.cta-band::before { content: ""; position: absolute; inset: -40%; z-index: -1; filter: blur(30px);
  background: radial-gradient(30% 50% at 15% 40%, rgba(44,179,149,.50), transparent 70%),
              radial-gradient(30% 50% at 85% 60%, rgba(124,92,255,.45), transparent 70%);
  animation: aurora 18s var(--ease) infinite alternate; }
.cta-band .section-title { color: #fff; margin: 0 0 6px; }
.cta-band p { margin: 0; max-width: 60ch; color: #b9c8e2; }
.cta-band-text { flex: 1 1 320px; }

/* Плитки продуктів і послуг (макет «tiles» модуля «Статті») — як плитки розділів вітрини, але з текстом. */
.svc-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.svc-tile {
  --hue: 170; position: relative; isolation: isolate; display: flex; flex-direction: column; gap: 14px; padding: 20px;
  border-radius: var(--r-lg); background: var(--surface); box-shadow: inset 0 0 0 1px var(--border), var(--shadow-sm);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .35s var(--ease); animation: rise .7s var(--ease) both;
}
.svc-tile:nth-child(6n+2) { --hue: 195; } .svc-tile:nth-child(6n+3) { --hue: 215; } .svc-tile:nth-child(6n+4) { --hue: 250; }
.svc-tile:nth-child(6n+5) { --hue: 160; } .svc-tile:nth-child(6n) { --hue: 228; }
.svc-tile:nth-child(2) { animation-delay: .05s; } .svc-tile:nth-child(3) { animation-delay: .10s; }
.svc-tile:nth-child(4) { animation-delay: .15s; } .svc-tile:nth-child(n+5) { animation-delay: .20s; }
.svc-tile::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; z-index: -1; background: var(--grad);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .35s var(--ease); }
.svc-tile::after { content: ""; position: absolute; right: -30px; top: -40px; width: 160px; height: 160px; z-index: -1; opacity: .7;
  background: radial-gradient(circle, hsla(var(--hue), 80%, 55%, .20), transparent 70%); transition: transform .5s var(--ease); }
.svc-tile:hover { transform: translateY(-5px); background: var(--surface-solid); box-shadow: var(--shadow-lg); }
.svc-tile:hover::before { opacity: 1; }
.svc-tile:hover::after { transform: scale(1.5); }
.svc-tile .svc-mono { --hue: inherit; }
.svc-tile:hover .svc-mono { transform: rotate(-8deg) scale(1.08); }
.svc-img { display: block; overflow: hidden; margin: -8px -8px 0; border-radius: calc(var(--r-lg) - 8px); background: var(--img-bg); }
.svc-img img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 0; transition: transform .6s var(--ease); }
.svc-tile:hover .svc-img img { transform: scale(1.05); }
.svc-body { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.svc-title { color: var(--text); font: 700 1.1rem/1.3 var(--f-display); letter-spacing: -.01em; }
.svc-title::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }   /* уся плитка — посилання */
.svc-tile:hover .svc-title { color: var(--text); }
.svc-text { color: var(--muted); font-size: .94rem; }
.svc-more { margin-top: auto; padding-top: 6px; display: inline-flex; align-items: center; gap: 6px; color: var(--link); font-weight: 800; font-size: .92rem; }
.svc-more .ico { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.svc-tile:hover .svc-more .ico { transform: translateX(3px); }

/* Картки новин і вебінарів (макети «cards» / «videos» модуля «Статті») — на основі .blog-item. */
.news-cards:not(.items-leading) { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.news-card .news-link { position: absolute; inset: 0; z-index: 2; border-radius: inherit; }
.news-card .item-image { position: relative; }
.news-card .item-image.no-photo { display: grid; place-items: center; aspect-ratio: 16 / 9; background: var(--img-bg); }
.news-card .item-content { gap: 6px; }
.news-card .item-title { margin: 0; font: 700 1.12rem/1.3 var(--f-display); letter-spacing: -.01em; color: var(--text); }
.news-card p { margin: 4px 0 0; color: var(--muted); font-size: .94rem; }
.news-date { color: var(--faint); font-size: .82rem; font-weight: 700; letter-spacing: .02em; }
.news-more { margin-top: auto; padding-top: 10px; display: inline-flex; align-items: center; gap: 6px; color: var(--link); font-weight: 800; font-size: .92rem; }
.news-more .ico { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.news-card:hover .news-more .ico { transform: translateX(3px); }
.play-badge { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 64px; height: 64px; display: grid; place-items: center;
              border-radius: 50%; color: #fff; background: var(--grad); box-shadow: 0 12px 30px -8px rgba(47,124,246,.7);
              transition: transform .35s var(--ease); }
.play-badge .ico { width: 26px; height: 26px; margin-left: 3px; }
.news-card:hover .play-badge { transform: scale(1.1); }

/* Розділ записів вебінарів (блог категорії): пункт меню → «Параметри сторінки → Клас сторінки» = aur-videos —
   на обкладинках карток той самий значок відтворення, що й у макеті «videos» на головній. */
.aur-videos .blog-item .item-image { position: relative; }
.aur-videos .blog-item .item-image::after {
  content: ""; position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 64px; height: 64px; border-radius: 50%;
  pointer-events: none; transition: transform .35s var(--ease);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M9 6.5v11a1 1 0 0 0 1.5.86l8.5-5.5a1 1 0 0 0 0-1.72l-8.5-5.5A1 1 0 0 0 9 6.5z'/%3E%3C/svg%3E") center / 28px no-repeat,
              var(--grad);
  box-shadow: 0 12px 30px -8px rgba(47,124,246,.7); }
.aur-videos .blog-item:hover .item-image::after { transform: scale(1.1); }

/* Відео в статтях (записи вебінарів): YouTube / Vimeo / власне відео — на всю ширину, 16:9. */
.tpl-component iframe[src*="youtube"], .tpl-component iframe[src*="youtu.be"], .tpl-component iframe[src*="vimeo"],
.tpl-component iframe[src*="video"], .tpl-component video {
  display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; margin: 0 0 1.2em;
  border-radius: var(--r-lg); background: #000; box-shadow: var(--shadow-lg); }

/* Контакти (модуль): рядок без посилання (адреса, графік) і «марка» месенджера замість QR. */
.c-line .c-text { display: block; font-weight: 700; color: var(--text); }
.bot-mark { width: 84px; height: 84px; display: grid; place-items: center; border-radius: 24px; color: #fff; background: var(--grad);
            box-shadow: 0 14px 30px -12px rgba(47,124,246,.7); }
.bot-mark .ico { width: 38px; height: 38px; }

/* ── tmpl=component і сторінка обслуговування ──────────────────────────── */
.tpl-component-only { padding-top: 20px; padding-bottom: 20px; }
.offline-wrap { display: grid; place-items: center; min-height: 100vh; padding-top: 40px; padding-bottom: 40px; }
.offline-card {
  width: min(440px, 100%); display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center;
  padding: clamp(26px, 4vw, 40px); border-radius: var(--r-xl); background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--border), var(--shadow-lg); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  animation: rise .7s var(--ease) both;
}
.offline-card .page-title { font-size: 1.5rem; margin: 6px 0 0; }
.offline-card .muted { margin: 0; }
.offline-image { max-height: 160px; width: auto; border-radius: var(--r); }
.offline-form { width: 100%; display: flex; flex-direction: column; gap: 8px; text-align: left; margin-top: 8px; }
.offline-form label { font-weight: 700; font-size: .88rem; color: var(--muted); margin-top: 6px; }
.offline-form .btn { margin-top: 12px; width: 100%; }

@media print {
  .tpl-side, .crumbs, .pagination__wrapper { display: none !important; }
  .com-content-article, .item-page, .aur-mod, .blog-item { box-shadow: none; background: #fff; }
}

