/* HostCat: мелкие дополнения к Quark 2 (переключатель языка, подвал). */

.hc-lang { position: relative; margin: 0 .5rem 0 0; }
.hc-lang summary { list-style: none; cursor: pointer; padding: .35rem .6rem; border-radius: var(--q2-radius-sm, 6px); font-size: .85rem; font-weight: 600; white-space: nowrap; }
.hc-lang summary::-webkit-details-marker { display: none; }
.hc-lang summary::after { display: none; }
.hc-lang summary:hover { background: var(--q2-bg-muted); }
.hc-lang ul { position: absolute; right: 0; top: calc(100% + .25rem); z-index: 50; min-width: 180px; list-style: none; margin: 0; padding: .35rem;
  background: var(--q2-bg-elev); border-radius: var(--q2-radius, 8px); box-shadow: var(--q2-shadow-dropdown); }
.hc-lang li { margin: 0; }
.hc-lang a { display: block; padding: .35rem .6rem; border-radius: var(--q2-radius-xs, 4px); text-decoration: none; font-size: .9rem; }
.hc-lang a:hover { background: var(--q2-bg-muted); }
.hc-lang a[aria-current] { font-weight: 700; }
.hc-lang--mobile ul { position: static; box-shadow: none; }
.mobile-actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-start; }

/* Подвал: колонка бренда (логотип, слоган, почта) + три колонки ссылок; внизу одна строка: копирайт слева, оговорка о партнерских ссылках справа. Сброс стилей меню Quark 2 — через #footer. */
#footer .hc-footer { font-size: .9rem; text-align: left; }
.hc-footer__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 1.5rem 2.5rem; padding-bottom: 1.25rem; }
#footer .hc-footer h2, #footer .hc-footer .hc-footer__title { margin: 0 0 .5rem; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--q2-text-muted); }
#footer .hc-footer h2::before { display: none; }
#footer .hc-footer nav { display: block; }
#footer .hc-footer nav ul { display: block; list-style: none; margin: 0; padding: 0; }
#footer .hc-footer nav li { display: block; margin: 0 0 .2rem; padding: 0; line-height: 1.5; }
#footer .hc-footer nav li::marker { content: none; }
#footer .hc-footer nav a { display: inline; padding: 0; margin: 0; color: var(--q2-text); text-decoration: none; }
#footer .hc-footer nav a:hover { color: var(--q2-accent); text-decoration: underline; }
#footer .hc-footer__brand .hc-logo { font-size: 1.1rem; margin-bottom: .5rem; }
#footer .hc-footer__brand .hc-logo img { max-height: 32px; }
#footer .hc-footer__brand p { margin: 0 0 .35rem; line-height: 1.5; color: var(--q2-text-muted); max-width: 30ch; }
#footer .hc-footer__brand p a, #footer .hc-footer__bottom a { color: var(--q2-text); text-decoration: none; }
#footer .hc-footer__brand p a:hover, #footer .hc-footer__bottom a:hover { color: var(--q2-accent); text-decoration: underline; }
.hc-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; padding-top: 1rem; border-top: 1px solid var(--q2-divider, var(--q2-border, #ddd)); font-size: .8rem; color: var(--q2-text-muted); }
.hc-footer__bottom p { margin: 0; }
@media (max-width: 860px) { .hc-footer__grid { grid-template-columns: 1fr 1fr; } .hc-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .hc-footer__grid { gap: 1.25rem 1.5rem; } }

.hc-logo { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--pico-font-family-display, inherit); font-size: 1.35rem; font-weight: 600; text-decoration: none; color: var(--q2-text-strong); }
.hc-logo i { color: var(--q2-accent); }
.hc-logo img, .hc-logo svg { max-height: 40px; width: auto; display: block; }
/* Шапка — только значок без надписи (решение владельца 2026-11-11): Quark 2 задаёт .navbar-brand img высоту 28px — значок крупнее. */
.navbar-brand.funvsearn-logo img { height: 40px; width: 40px; }

/* Полоска 28×3 над каждым h2 из Quark 2 (theme.css, h2::before) — убрана по решению владельца 2026-10-25. */
h2::before { display: none; }


/* Автор статьи базы знаний (partials/blog-item.html.twig) — как .ai-author в карточках сервисов. */
.funvsearn-author { display: flex; gap: .75rem; align-items: flex-start; margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--q2-border, #ddd); }
.funvsearn-author img { border-radius: 50%; flex: none; }
.funvsearn-author p { margin: .25rem 0 0; color: var(--q2-text-muted); font-size: .92rem; }

/* ===== Бренд «Ночное табло» (решение владельца 2026-11-11): розовый Fun и золотой Earn, тёмно-синяя ночь;
   Rubik — заголовки и надпись логотипа (выбор владельца 2026-11-11 вместо Unbounded), Onest — текст (css/fonts.css). Акцент светлой темы — funvsearn.yaml → accent-color (#d42f78). ===== */
:root,
:root[data-theme="light"] {
  --pico-font-family-sans-serif: "Onest", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --pico-font-family-display: "Rubik", "Onest", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --pico-font-size: 14px;   /* как было: при 15px таблица тарифов каталога не помещается (названия хостеров рвутся) */
  --fve-fun: #d42f78;     /* розовый Fun для текста; в значке — переход #f25c9d → #cc2a72 того же оттенка (владелец 2026-11-11) */
  --fve-earn: #a86f00;    /* золотой Earn для текста; в значке — «монета» #ffd659 → #d48f00 */
  --fve-vs-bg: #141a24;   /* плашка VS в логотипе */
  --fve-vs-text: #ffffff;
}
/* Только светлая тема (решение владельца 2026-11-11: вторая тема почти не видна посетителям и удваивает каждую правку).
   Фон — тёплый нейтральный (под розовый и золотой), без голубизны. */
:root[data-theme="light"] {
  --q2-bg: #f7f6f3;
  --q2-bg-elev: #ffffff;
  --q2-bg-muted: #efede8;
  --q2-text: #2a2930;
  --q2-text-strong: #18171d;
  --q2-text-muted: #66636c;
  --q2-nav-bg: rgba(247, 246, 243, 0.92);
  --q2-nav-border: rgba(24, 23, 29, 0.08);
  --q2-divider: rgba(24, 23, 29, 0.1);
  --q2-radius: 10px;
  --q2-radius-md: 10px;
}
/* Заголовки Rubik 700 (как в образце, выбранном владельцем 2026-11-11). Rubik уже Unbounded — размеры чуть крупнее прежних. */
h1, h2, h3, h4, h5, h6 { font-weight: 700; letter-spacing: -0.01em; line-height: 1.2; }
h1 { font-size: clamp(1.75rem, 1.25rem + 1.8vw, 2.45rem); }
h2 { font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.65rem); }
h3 { font-size: 1.15rem; }
/* Ссылки в тексте — цвета текста с тонким розовым подчёркиванием, при наведении розовые: страница не пестрит. */
:root[data-theme="light"] .e-content a:not(.button, [role="button"]),
:root[data-theme="light"] .content a:not(.button, [role="button"]),
:root[data-theme="light"] .page-toc a,
:root[data-theme="light"] .hc-prose a:not(.button, [role="button"], .btn) {
  color: var(--q2-text-strong); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .22em;
  text-decoration-color: color-mix(in srgb, var(--fve-fun) 55%, transparent);
}
:root[data-theme="light"] .e-content a:not(.button, [role="button"]):hover,
:root[data-theme="light"] .content a:not(.button, [role="button"]):hover,
:root[data-theme="light"] .hc-prose a:not(.button, [role="button"], .btn):hover,
:root[data-theme="light"] .page-toc a:hover { color: var(--fve-fun); text-decoration-color: var(--fve-fun); }
/* Подвал: белый, сверху фирменная полоса «две половины» — розовая и золотая. */
:root[data-theme="light"] #footer { position: relative; background: var(--q2-bg-elev); }
#footer::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, #e03f88 0 50%, #f2b11c 50% 100%); }   /* тона заливки значка, не текста */

/* Надпись логотипа «Fun VS Earn» (partials/logo.html.twig): Fun розовый, VS на плашке, Earn золотой. */
.funvsearn-wm { display: inline-flex; align-items: center; gap: .3rem; font-family: var(--pico-font-family-display); font-weight: 700; font-size: 1.2rem; letter-spacing: -0.01em; line-height: 1; }
.funvsearn-wm__fun { color: var(--fve-fun); }
.funvsearn-wm__earn { color: var(--fve-earn); }
.funvsearn-wm__vs { padding: .22rem .32rem .18rem; border-radius: 5px; background: var(--fve-vs-bg); color: var(--fve-vs-text); font-size: .6em; font-weight: 700; letter-spacing: .04em; }
/* Текст статьи — 16px (остальной сайт 14px) */
.e-content, .e-content p, .e-content li { font-size: 16px; }
/* Ширина строки в статье около 68 знаков; таблицы и картинки на всю колонку */
.e-content > p, .e-content > ul, .e-content > ol, .e-content > blockquote { max-width: 68ch; }
/* Дата в обложке статьи читаема на тёмной картинке */
#blog-hero .blog-date, #blog-hero .blog-date i, #blog-hero .blog-date time { color: #fff; opacity: 1; text-shadow: 0 1px 3px rgba(0, 0, 0, .6); }
/* Активный пункт меню: розовый текст и подчёркивание вместо тёмной плашки Quark 2 */
.dropmenu a.active, .dropmenu a.active:hover { background: transparent; color: var(--q2-accent); border-radius: 0; box-shadow: inset 0 -2px 0 var(--q2-accent); }
/* Ссылки подвала в квадратных скобках, как на старом сайте: [ Контакты ] (скобки только в CSS, переводы не меняются) */
#footer .hc-footer nav a::before { content: "[ "; }
#footer .hc-footer nav a::after { content: " ]"; }

/* Поиск по сайту в шапке (partials/site-search.html.twig): компактное поле справа; в мобильном меню — на всю ширину. */
.hc-site-search .search-wrapper .search-input { width: 13rem; margin: 0; padding-block: .35rem; height: auto; font-size: .9rem; }
.hc-site-search form { margin: 0; }
.hc-site-search--mobile { margin: 1rem 0; }
.hc-site-search--mobile .search-wrapper .search-input { width: 100%; }
@media (max-width: 1100px) { .navbar-section.actions .hc-site-search .search-input { width: 9rem; } }

/* Рубрика каталога ИИ (ai-category.html.twig): карточки в 3 колонки (плагин: auto-fill от 260px — 4 колонки);
   описание рубрики шириной ровно в две колонки карточек, чтобы правый край текста совпадал с сеткой. */
.ai-category-list .ai-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ai-category-hero .hc-lead { max-width: calc((100% - 2rem) / 3 * 2 + 1rem); }
@media (max-width: 960px) { .ai-category-list .ai-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ai-category-hero .hc-lead { max-width: 70ch; } }
@media (max-width: 600px) { .ai-category-list .ai-list { grid-template-columns: 1fr; } }

/* Статья с обложкой картинкой под заголовком (funvsearn.yaml → article-cover: inline): заголовок слева, по ширине текста;
   обложка во всю колонку, не растянута, без затемнения, со скруглением. При banner эти классы не выводятся. */
.funvsearn-article-head { text-align: left; margin-bottom: 1.25rem; }
.funvsearn-article-head h1 { max-width: 30ch; margin-bottom: .5rem; line-height: 1.2; }
.funvsearn-cover { margin: 0 0 2rem; }
.funvsearn-cover img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; }

/* Строка поиска каталога ИИ (плагин ai-catalog, .ai-searchbar с role="search"). Blades/Pico для [role=search] даёт всем детям
   flex: 1 1 auto (подпись и кнопка растягивались, как поле) и рисует лупу фоном поля, а отступ под неё перебивал плагин —
   значок налезал на текст. Здесь: подпись скрыта для глаз (остаётся для скринридеров), поле занимает всё место, кнопка по
   содержимому, лупа только на кнопке. */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ai-searchbar { display: flex; gap: 0; align-items: stretch; }
.ai-searchbar > label { flex: none; }
.ai-searchbar input[type="search"] { flex: 1 1 auto; width: auto; min-width: 0; background-image: none; padding-inline-start: 1.25rem; border-radius: 5rem 0 0 5rem; }
.ai-searchbar button { flex: 0 0 auto; padding-inline: 1.5rem; }
@media (max-width: 760px) {
  /* На телефоне поле и кнопка тоже в одну строку (плагин ставит их в столбик). */
  .ai-searchbar { flex-direction: row; }
  .ai-searchbar button { padding-inline: 1.1rem; }
}
.ai-count strong { font-weight: 700; }

/* Блок «Популярные статьи» (partials/popular-articles.html.twig) */
.funvsearn-popular { margin: 2.5rem 0; }
.funvsearn-popular h2 { margin-bottom: 1rem; }
.funvsearn-popular-side ul { margin: 0; padding-left: 0; list-style: none; }
.funvsearn-popular-side li { margin: 0 0 .5rem; }

/* ===== Облако игр на главной (home.html.twig) и список игр (games-rating.html.twig), 2026-11-10 ===== */
.fve-cloud { margin: 1.5rem 0 2rem; padding: 1.75rem 1.5rem; background: var(--q2-bg-muted); border: 1px solid var(--q2-divider); border-radius: 16px; }
.fve-cloud__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .55rem 1.1rem; }
.fve-cloud__item { margin: 0; padding: 0; line-height: 1.15; list-style: none; }
.fve-cloud__item::marker { content: none; }
.fve-cloud__item a, .fve-cloud__item span { display: inline-block; padding: .15rem .35rem; border-radius: 8px; color: var(--q2-text-strong); text-decoration: none; transition: color .15s, background-color .15s, transform .15s; }
.fve-cloud__item a:hover, .fve-cloud__item a:focus-visible { color: var(--q2-accent); background: var(--q2-bg-elev); transform: translateY(-1px); }
.fve-cloud__item--1 { font-size: .95rem; font-weight: 400; opacity: .78; }
.fve-cloud__item--2 { font-size: 1.1rem; font-weight: 500; opacity: .88; }
.fve-cloud__item--3 { font-size: 1.35rem; font-weight: 600; }
.fve-cloud__item--4 { font-size: 1.7rem; font-weight: 700; }
.fve-cloud__item--5 { font-size: 2.15rem; font-weight: 700; }
.fve-cloud__item--5 a, .fve-cloud__item--4 a { color: var(--q2-accent); }
.fve-cloud__item--5 a:hover, .fve-cloud__item--4 a:hover { color: var(--q2-text-strong); }
.fve-cloud__note { margin: 1.25rem 0 0; text-align: center; color: var(--q2-text-muted); font-size: .9rem; }
.fve-games { columns: 2 18rem; column-gap: 2rem; padding-left: 1.5rem; }
.fve-games li { break-inside: avoid; margin-bottom: .35rem; }
@media (max-width: 600px) {
  .fve-cloud { padding: 1.25rem .75rem; }
  .fve-cloud__item--5 { font-size: 1.7rem; }
  .fve-cloud__item--4 { font-size: 1.4rem; }
}
/* Текст главной под облаком: все H2 одного размера (у .hc-card > h2:first-child плагина — размер заголовка карточки). */
.fve-about h2 { font-size: 1.6rem; margin: 2rem 0 .75rem; }
.fve-about > h2:first-child { font-size: 1.6rem; margin-top: 0; }

/* Карточка игры (templates/game.html.twig) и раздел «Игры» (templates/games.html.twig), 2026-11-10. */
.fve-game__head { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: flex-start; margin: .5rem 0 1.25rem; }
.fve-game__cover { margin: 0; flex: 0 1 320px; }
.fve-game__cover img { width: 100%; height: auto; border-radius: var(--q2-radius); }
.fve-game__intro { flex: 1 1 18rem; min-width: 0; }
.fve-game__intro h1 { margin: 0 0 .75rem; padding: 0; }
.fve-game__rating { margin: 0 0 .75rem; }
.fve-facts { display: grid; grid-template-columns: max-content 1fr; gap: .5rem 1.5rem; margin: 0 0 1.5rem; padding: 1rem 1.25rem;
  background: var(--q2-bg-muted); border: 1px solid var(--q2-divider); border-radius: 12px; }
.fve-facts > div { display: contents; }
.fve-facts dt { color: var(--q2-text-muted); font-weight: 600; }
.fve-facts dd { margin: 0; color: var(--q2-text-strong); }
.fve-game__hosting { margin: 0 0 1.5rem; }
.fve-game__articles h2, .fve-game__series h2 { font-size: 1.5rem; margin: 2rem 0 .75rem; }
.fve-game-list { list-style: none; margin: 1rem 0; padding: 0; display: grid; gap: .75rem; }
.fve-game-list > li { margin: 0; padding: 1rem 1.25rem; }
@media (max-width: 640px) {
  .fve-facts { grid-template-columns: 1fr; gap: .15rem; }
  .fve-facts dd { margin-bottom: .5rem; }
}

/* Посадочная страница игры: ссылка на карточку игры под заголовком (2026-11-10). */
.fve-game-link { margin: .5rem 0 0; font-weight: 600; }

/* ===== Боковая колонка (#sidebar): статьи об игре, хостинг игровых серверов и др. Строгий вид (владелец 2026-11-11: «люблю более
   строгие вещи»): одинаковые карточки с тонкой рамкой без тени, заголовок — мелкие прописные Onest с линией снизу, пункты — строки
   с тонкими разделителями, без подчёркиваний и «пилюль»; текущая статья — розовая черта слева. ===== */
#sidebar .sidebar-content { padding: 1rem 1.15rem .6rem; background: var(--q2-bg-elev); border: 1px solid var(--q2-divider); border-radius: 10px; box-shadow: none; }
#sidebar .sidebar-content h4 { margin: 0; padding-bottom: .65rem; border-bottom: 1px solid var(--q2-divider); font-family: var(--pico-font-family-sans-serif); font-size: .72rem; font-weight: 700; letter-spacing: .1em; line-height: 1.3; color: var(--q2-text-muted); }
#sidebar .sidebar-content ul { margin: 0; padding: 0; list-style: none; }
#sidebar .sidebar-content li { margin: 0; padding: 0; border-bottom: 1px solid var(--q2-divider); }   /* Blades: aside li — поля по бокам */
#sidebar .sidebar-content li:last-child { border-bottom: 0; }
#sidebar .sidebar-content li > a, #sidebar .sidebar-content li > span { display: block; padding: .6rem 0; font-size: .92rem; line-height: 1.4; color: var(--q2-text-strong); text-decoration: none; }
#sidebar .sidebar-content li > a:hover, #sidebar .sidebar-content li > a:focus-visible { color: var(--q2-accent); }
#sidebar .sidebar-content li > [aria-current] { margin-left: -1.15rem; padding-left: calc(1.15rem - 2px); border-left: 2px solid var(--q2-accent); color: var(--q2-text-muted); font-weight: 600; }
#sidebar .sidebar-content .funvsearn-side-list__more > a { display: flex; align-items: center; gap: .4rem; color: var(--q2-accent); font-weight: 600; }
#sidebar .funvsearn-side-list__more i { font-size: .8em; }
/* Хостинг: короткие имена игр строками в две колонки; внизу — ссылка на подбор по всем играм в тонкой рамке. */
.funvsearn-side-earn__games { display: grid; grid-template-columns: 1fr 1fr; column-gap: 1rem; }
#sidebar .funvsearn-side-earn__games li:nth-last-child(2):nth-child(odd) { border-bottom: 0; }
#sidebar .funvsearn-side-earn__games li > a { padding: .5rem 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.funvsearn-side-earn__all { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin: .5rem 0 .55rem; padding: .55rem .8rem; border: 1px solid var(--q2-accent); border-radius: 8px; color: var(--q2-accent); font-size: .88rem; font-weight: 600; text-decoration: none; }
.funvsearn-side-earn__all:hover, .funvsearn-side-earn__all:focus-visible { background: var(--q2-accent); color: var(--q2-accent-contrast); }
.funvsearn-side-earn__all i { font-size: .8em; }

/* Главная: заголовки облаков игр (два облака — хостинг и гайды, 2026-11-10). */
.fve-cloud__title { margin: 0 0 1rem; text-align: center; font-size: 1.25rem; }

/* Шапка: меню сразу за логотипом, поиск и переключатель темы справа (Quark 2 прижимает меню вправо: .desktop-menu justify-content: flex-end —
   между значком и «Игровым хостингом» оставалась пустая полоса; владелец 2026-11-11). */
.desktop-menu { justify-content: flex-start; margin-left: .75rem; }

/* Подбор игрового хостинга (2026-11-11, владелец): в ячейке хостера логотип-ссылка, название под ним целым словом;
   опции тарифа переносятся внутри своей колонки, а не наезжают на «Игры». Шаблон — templates/hosting-catalog/services/game-row.html.twig. */
.hc-plans--game .fve-hoster { flex-direction: column; align-items: center; gap: .3rem; text-align: center; }
.hc-plans--game .fve-hoster__logo { display: block; line-height: 0; border-radius: 9.33%; transition: transform .15s ease, box-shadow .15s ease; }
.hc-plans--game .fve-hoster__logo:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(24,23,29,.18); }
.hc-plans--game .fve-hoster .hc-plan__hoster-name { font-size: .85rem; line-height: 1.25; word-break: normal; overflow-wrap: normal; hyphens: none; }
.hc-plans--game .hc-plan__name, .hc-plans--game .hc-plan__games { min-width: 0; overflow-wrap: break-word; }
.hc-plans--game .hc-plan__name .hc-opt { white-space: normal; }   /* в плагине nowrap — длинная опция вылезала в колонку «Игры» */

/* Глоссарий (2026-11-11): указатель букв — подряд слева (Blades растягивал nav на всю ширину: F слева, H справа). */
.dieg-glossary__index, .dieg-glossary__index ul { justify-content: flex-start; gap: .75rem; }
