/* PETRACMS: базовая тема поверх Tabler. Порядок подключения: Tabler → base.css → стиль сайта (перекрывает всё). */
:root, [data-bs-theme=light] {
  --tblr-font-sans-serif: Onest, system-ui, -apple-system, "Segoe UI", sans-serif;
  --tblr-body-bg: #fff;
  --tblr-body-color: #09090b;
  --tblr-secondary: #71717a;
  --tblr-secondary-color: #71717a;
  --tblr-muted: #71717a;
  --tblr-border-color: #e4e4e7;
  --tblr-border-radius: .5rem;
  --tblr-border-radius-lg: .7rem;
  --tblr-primary: #1652f0;
  --tblr-primary-rgb: 22, 82, 240;
  --tblr-primary-fg: #fff;
  --tblr-primary-lt: #eff4ff;
  --tblr-primary-lt-rgb: 239, 244, 255;
  --tblr-link-color: #1652f0;
  --tblr-link-color-rgb: 22, 82, 240;
  --tblr-link-hover-color: #1243c4;
  --tblr-card-border-color: #e8eaee;
  --tblr-bg-surface-tertiary: #f6f7f9;
}
body { background: #f5f5f7; font-feature-settings: "cv11", "ss01"; letter-spacing: -.005em; }
h1, h2, h3, .h1, .h2, .h3, .page-title, .card-title { letter-spacing: -.02em; font-weight: 700; }
.page-body { margin-top: .5rem; }
.page-body .page-header { margin-top: .75rem; }

/* Карточки и формы */
.card { border-radius: 16px; border: 1px solid #e8eaee; box-shadow: none; }
.card-header { border-bottom-color: #f0f0f1; }
.list-group-flush > .list-group-item { border-color: #f0f0f1; }
.form-control, .form-select { border-radius: 6px; border-color: #e4e4e7; }
.form-control:focus, .form-select:focus { border-color: #1652f0; box-shadow: 0 0 0 3px rgba(22, 82, 240, .15); }
.form-check-input:checked { background-color: #1652f0; border-color: #1652f0; }
.progress-bar { background-color: #1652f0; }
.btn { border-radius: 8px; }
.dropdown-menu { border-radius: 10px; border-color: #eceef2; box-shadow: 0 8px 24px rgba(16, 24, 40, .08); padding: .4rem; }
.dropdown-item { border-radius: 6px; padding: .45rem .7rem; }
.dropdown-item.active, .dropdown-item:active { background: #eff4ff; color: #1652f0; }
.table { --tblr-table-hover-bg: #fafafb; }
.table > :not(caption) > * > * { border-bottom-color: #f2f3f5; }

/* Шапка (как .site-nav на seopas.com) */
.navbar.site-nav { --tblr-navbar-border-width: 0; background: #fff; border: 0; box-shadow: none; min-height: 67px; position: sticky; top: 0; z-index: 1030; transition: background-color .3s ease; }
/* при прокрутке (класс is-scrolled ставит layouts/_site_header.php): лёгкая матовость */
.navbar.site-nav.is-scrolled { background: rgba(255, 255, 255, .78); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); }
.site-nav .navbar-brand { gap: 0; font-weight: 700; font-size: 1.25rem; letter-spacing: -.03em; color: #09090b; padding: 0; margin-right: 0; line-height: 1; text-decoration: none; }
@media (min-width: 768px) { .site-nav .navbar-brand { margin-right: 1.5rem; } }
.site-nav .brand-word { display: inline-block; line-height: 1; }
.site-nav .nav-link { color: #3f3f46; font-size: .875rem; font-weight: 400; letter-spacing: -.01em; transition: color .2s ease; }
.site-nav .nav-link:hover, .site-nav .nav-item.active .nav-link { color: #09090b; }
.site-nav .navbar-nav .nav-link.active, .site-nav .navbar-nav .nav-link:hover { background: transparent; color: #09090b; }
.site-nav .nav-link.active { font-weight: 500; }
.site-nav .navbar-toggler { border: 0; }
.site-nav .avatar { background-color: #eff4ff; color: #1652f0; font-weight: 700; }
.navbar-brand:hover { text-decoration: none !important; }
/* Шапка: белая, без рамки, кнопка-«таблетка», мягкое выпадающее меню */
.site-nav .btn-primary { border-radius: 980px; padding: .3rem .9rem; font-size: .8125rem; font-weight: 500; box-shadow: none; }
.site-nav .dropdown > .nav-link .small, .site-nav .dropdown > .nav-link > div > div { font-size: .8125rem; }
.site-nav .dropdown > .nav-link .text-secondary { font-size: .72rem !important; }
.site-nav .nav-link .ti { color: #6e6e73; transition: color .2s ease; }
.site-nav .nav-link:hover .ti, .site-nav .nav-link.active .ti, .site-nav .nav-link.show .ti { color: #09090b; }
/* у пунктов шапки никакой фоновой подсветки (наведение, открытое меню, фокус, активная страница): активный раздел показывает залитая чёрная иконка */
html body .site-nav .navbar-nav .nav-link, html body .site-nav .navbar-nav .nav-link:hover, html body .site-nav .navbar-nav .nav-link:focus, html body .site-nav .navbar-nav .nav-link.show, html body .site-nav .navbar-nav .nav-link.active { background: transparent; box-shadow: none; }
.site-nav .dropdown-menu { border: 0; border-radius: 18px; padding: .5rem; background: #fff; box-shadow: 0 12px 40px rgba(0, 0, 0, .16); font-size: .875rem; }
.site-nav .dropdown-menu .dropdown-item { border-radius: 10px; padding: .5rem .75rem; color: #1d1d1f; }
.site-nav .dropdown-menu .dropdown-item:hover, .site-nav .dropdown-menu .dropdown-item:focus { background: rgba(0, 0, 0, .05); }
.site-nav .dropdown-menu .dropdown-item.active { background: rgba(0, 113, 227, .1); color: #0071e3; }
.site-nav .dropdown-menu .dropdown-divider { margin: .35rem .25rem; border-color: rgba(0, 0, 0, .08); }


/* Подвал (как .site-footer на seopas.com) */
.site-footer { border-top: 1px solid #d2d2d773; margin-top: 2rem; background: transparent; }
.site-footer .brand-word { font-weight: 800; font-size: 1.2rem; letter-spacing: -.03em; color: #09090b; }
.site-footer .navbar-brand { text-decoration: none; }
.site-footer .footer-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 1rem; color: #61616b; }
.site-footer .footer-meta .sep { display: none; }
.site-footer .footer-meta a { color: #61616b; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .22em; text-decoration-color: rgba(97, 97, 107, .35); transition: color .2s ease, text-decoration-color .2s ease; }
.site-footer .footer-meta a:hover { color: #1652f0; text-decoration-color: rgba(22, 82, 240, .5); }
.site-footer .footer-meta [aria-current] { color: #09090b; }
.site-footer .footer-note { color: #a3a8b1; }
@media (min-width: 576px) {
  .site-footer .footer-meta { column-gap: .5rem; }
  .site-footer .footer-meta .sep { display: inline; }
}

/* Левое меню кабинета (как .side-menu на seopas.com) */
.side-card { border: 0; border-radius: 18px; background-color: #fff !important; box-shadow: 0 1px 2px rgba(0, 0, 0, .04); }
.side-menu .nav-link { display: flex; align-items: center; border-radius: 6px; color: #3f3f46; font-weight: 500; padding: .45rem .6rem; white-space: nowrap; font-size: .95rem; }
.side-menu .nav-link:hover { background: #f1f1f4; color: #09090b; }
.side-menu .nav-link.active { background: #e5e5ea; color: #09090b; font-weight: 600; box-shadow: none; }
.side-menu .nav-link .ti { color: #71717a; }
.side-menu .nav-link.active .ti { color: #09090b; }
.side-menu .side-group { font-size: .72rem; letter-spacing: .04em; color: #a1a1aa !important; }

/* Градиентные карточки (кошелёк, плитки) */
.g-card { border: 0; border-radius: 14px; box-shadow: none; }
.g-card .avatar { background: #fff !important; box-shadow: 0 1px 3px rgba(24, 36, 51, .08); }
.g-card .card-header { background: transparent; border-bottom-color: rgba(24, 36, 51, .08); }
.g-card .table { --tblr-table-bg: transparent; }
.g-primary { background: linear-gradient(135deg, #e6efff 0%, #f6f9ff 100%); } .g-primary .avatar { color: #1652f0; }
.g-azure { background: linear-gradient(135deg, #dff4fd 0%, #f4fbfe 100%); } .g-azure .avatar { color: #0b8ac0; }
.g-orange { background: linear-gradient(135deg, #ffeadb 0%, #fff6ef 100%); } .g-orange .avatar { color: #ea580c; }
.g-green { background: linear-gradient(135deg, #e9f8ee 0%, #f7fcf9 100%); } .g-green .avatar { color: #16a34a; }
.g-red { background: linear-gradient(135deg, #fde8e8 0%, #fff6f6 100%); } .g-red .avatar { color: #dc2626; }
.g-purple { background: linear-gradient(135deg, #f0e8fd 0%, #f9f5ff 100%); } .g-purple .avatar { color: #7e3af2; }
.g-teal { background: linear-gradient(135deg, #dcf6f1 0%, #f2fbf9 100%); } .g-teal .avatar { color: #0d9488; }
.g-yellow { background: linear-gradient(135deg, #fff3dc 0%, #fffaf0 100%); } .g-yellow .avatar { color: #d97706; }
.g-gray { background: linear-gradient(135deg, #f1f2f4 0%, #fafafb 100%); } .g-gray .avatar { color: #52525b; }
.page-title { font-size: 1.5rem; }

/* Мобильные: отрицательные поля строки не шире бокового отступа контейнера (иначе страница уезжает вбок на 4px) */
@media (max-width: 1199.98px) {
  .container-xl > .row.g-4, .container-xl > .row.gx-4 { --tblr-gutter-x: 1rem; }
}
/* Кнопка «Установить приложение» в подвале переносит текст и не выезжает за экран */
.site-footer [data-install] { max-width: 100%; --tblr-btn-color: #000; --tblr-btn-bg: transparent; --tblr-btn-border-color: #000; --tblr-btn-hover-color: #fff; --tblr-btn-hover-bg: #000; --tblr-btn-hover-border-color: #000; --tblr-btn-active-color: #fff; --tblr-btn-active-bg: #000; --tblr-btn-active-border-color: #000; display: inline-flex; align-items: center; justify-content: center; border-width: 1px; border-radius: 980px; padding: .6rem 1.35rem; font-size: .9375rem; font-weight: 400; letter-spacing: -.01em; box-shadow: none; transition: background-color .2s ease, color .2s ease; }
.site-footer [data-install] .ti { font-size: 1.5rem; margin-right: .6rem !important; }

/* Вкладки-кнопки: как в админке (белая «капсула» с рамкой, активная — чёрная). Боковые вертикальные списки (flex-column) не затрагиваются */
.nav-pills:not(.flex-column) { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; background: #fff; border: 1px solid #e6e6e2; border-radius: 12px; }
.nav-pills:not(.flex-column) .nav-link { border-radius: 9px; padding: .4rem .85rem; color: #2e2e2b; font-weight: 500; background: transparent; border: 0; }
.nav-pills:not(.flex-column) .nav-link:hover { background: #f3f3f0; color: #0b0b0c; }
.nav-pills:not(.flex-column) .nav-link.active, .nav-pills:not(.flex-column) .show > .nav-link { background: #0b0b0c; color: #fff; }
.nav-pills:not(.flex-column) .nav-link .ti { color: inherit; opacity: .8; }
.card-header .nav-pills { border: 0; padding: 0; background: transparent; }

/* Алерты: как в админке — мягкая заливка, без рамки, круглая иконка слева */
.alert { --al: var(--tblr-secondary); position: relative; padding: 1rem 1.25rem 1rem 3.5rem; min-height: 3.5rem; border: 0; border-radius: 12px; background: color-mix(in srgb, var(--al) 10%, #fff); color: #0b0b0c; box-shadow: none; }
.alert::before { content: "i"; position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--al); color: #fff; font-weight: 700; font-size: .875rem; line-height: 1.5rem; text-align: center; }
.alert-danger { --al: var(--tblr-red); }
.alert-danger::before { content: "!"; }
.alert-warning { --al: var(--tblr-blue); }
.alert-warning::before { content: "!"; }
.alert-info { --al: var(--tblr-info, var(--tblr-azure)); }
.alert-success { --al: var(--tblr-green); }
.alert-success::before { content: "\2713"; }
.alert-secondary { padding-left: 1.25rem; }
.alert-secondary::before { display: none; }
.alert .alert-icon { display: none; }
.alert, .alert .alert-heading, .alert .alert-description { color: #0b0b0c; }
html body .alert a:not(.btn):not(.btn-close), html body .alert .alert-link { color: #2851b6; border-bottom: 1px solid #2851b6; font-weight: 500; text-decoration: none; transition: color .2s ease, border-color .2s ease; }
html body .alert a:not(.btn):not(.btn-close):hover, html body .alert .alert-link:hover { transition-duration: .8s; color: #007bff !important; border-bottom: 1px solid #007bff; text-decoration: none; }
.alert .btn-close { top: 50%; transform: translateY(-50%); padding: 1rem; }

/* Ссылки без классов (обычные <a href>): как в админке — синие с тонкой линией снизу, при наведении плавно ярче. Не затрагиваются: шапка, подвал, меню, вкладки, пагинация, dropdown, алерты, списки, ссылки-картинки */
html body a:not([class]):not(:has(> img)):not(:where(.site-nav, .site-footer, .side-menu, .nav, .pagination, .dropdown-menu, .alert, .btn-list, .list-group, .toast, .navbar) *) {
  color: #2851b6; border-bottom: 1px solid #2851b6; font-weight: 500; text-decoration: none;
  transition: color .2s ease, border-color .2s ease;
}
html body a:not([class]):not(:has(> img)):not(:where(.site-nav, .site-footer, .side-menu, .nav, .pagination, .dropdown-menu, .alert, .btn-list, .list-group, .toast, .navbar) *):hover {
  transition-duration: .8s; color: #007bff !important; border-bottom: 1px solid #007bff; text-decoration: none;
}

/* Бейджи: как в админке — мягкая «таблетка» с точкой слева (цвета те же); бейдж-ссылка без подчёркивания */
.badge { --b: #ececea; --f: #4b4b47; display: inline-flex; align-items: center; gap: .4em; padding: .3em .75em; border: 0; border-radius: 999px; background: var(--b) !important; color: var(--f) !important; font-size: .8125rem; font-weight: 500; letter-spacing: 0; text-transform: none; line-height: 1.3; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.badge.adm-count::before, .badge-notification::before, .badge:empty::before { display: none; }
.badge.bg-green-lt, .badge.bg-lime-lt { --b: #e0f4e5; --f: #17803a; }
.badge.bg-blue-lt, .badge.bg-primary-lt { --b: #e2eafc; --f: #2457c5; }
.badge.bg-azure-lt, .badge.bg-cyan-lt { --b: #ddf1f8; --f: #0e6f8c; }
.badge.bg-indigo-lt { --b: #e6e8fb; --f: #3f48b8; }
.badge.bg-purple-lt { --b: #efe6fb; --f: #6d3bb3; }
.badge.bg-pink-lt { --b: #fbe4f0; --f: #b4256b; }
.badge.bg-red-lt { --b: #fde6e6; --f: #b42318; }
.badge.bg-orange-lt, .badge.bg-yellow-lt { --b: #e3edff; --f: #1d4ed8; }
.badge.bg-teal-lt { --b: #dcf4ee; --f: #0f766e; }
.badge.bg-secondary-lt, .badge.bg-gray, .badge.bg-light, .badge.bg-muted { --b: #ececea; --f: #4b4b47; }
.badge.bg-dark { --b: #0b0b0c; --f: #fff; }
/* Бейджи: сплошные (насыщенная заливка), контурные, контекстные, бейджи-ссылки */
.badge.bg-blue { --b: #206bc4; --f: #fff; }
.badge.bg-azure { --b: #2a8fc9; --f: #fff; }
.badge.bg-indigo { --b: #4263eb; --f: #fff; }
.badge.bg-purple { --b: #ae3ec9; --f: #fff; }
.badge.bg-pink { --b: #d6336c; --f: #fff; }
.badge.bg-red { --b: #d63939; --f: #fff; }
.badge.bg-orange { --b: #e8590c; --f: #fff; }
.badge.bg-yellow { --b: #f59f00; --f: #1b1b1b; }
.badge.bg-lime { --b: #5c940d; --f: #fff; }
.badge.bg-green { --b: #1f8a3b; --f: #fff; }
.badge.bg-teal { --b: #0b8f68; --f: #fff; }
.badge.bg-cyan { --b: #1590a5; --f: #fff; }
.badge.bg-primary { --b: var(--tblr-primary); --f: var(--tblr-primary-fg, #fff); }
.badge.bg-secondary { --b: #6f6f69; --f: #fff; }
.badge.bg-success { --b: #1f8a3b; --f: #fff; }
.badge.bg-danger { --b: #d63939; --f: #fff; }
.badge.bg-warning { --b: #f59f00; --f: #1b1b1b; }
.badge.bg-info { --b: #2a8fc9; --f: #fff; }
.badge.badge-outline { background: transparent !important; color: var(--fo, #4b4b47) !important; box-shadow: inset 0 0 0 1px var(--bo, #b9b9b3); }
.badge.badge-outline.text-blue { --bo: #206bc4; --fo: #206bc4; }
.badge.badge-outline.text-azure { --bo: #2a8fc9; --fo: #2a8fc9; }
.badge.badge-outline.text-indigo { --bo: #4263eb; --fo: #4263eb; }
.badge.badge-outline.text-purple { --bo: #ae3ec9; --fo: #ae3ec9; }
.badge.badge-outline.text-pink { --bo: #d6336c; --fo: #d6336c; }
.badge.badge-outline.text-red { --bo: #d63939; --fo: #d63939; }
.badge.badge-outline.text-orange { --bo: #e8590c; --fo: #e8590c; }
.badge.badge-outline.text-yellow { --bo: #f59f00; --fo: #f59f00; }
.badge.badge-outline.text-lime { --bo: #5c940d; --fo: #5c940d; }
.badge.badge-outline.text-green { --bo: #1f8a3b; --fo: #1f8a3b; }
.badge.badge-outline.text-teal { --bo: #0b8f68; --fo: #0b8f68; }
.badge.badge-outline.text-cyan { --bo: #1590a5; --fo: #1590a5; }
.badge.badge-outline.text-secondary { --bo: #8a8a84; --fo: #55554f; }
a.badge { cursor: pointer; text-decoration: none; transition: background-color .2s ease, color .2s ease, box-shadow .2s ease; }
a.badge:hover { text-decoration: none; }
.badge.bg-orange-lt { --b: #ffe9d6; --f: #b34700; }
.badge.bg-yellow-lt { --b: #fdf3d0; --f: #8a6100; }
.badge.bg-lime-lt { --b: #eaf5d3; --f: #4d7a0a; }
.badge.bg-cyan-lt { --b: #d6f3f7; --f: #0b6a78; }
.badge.bg-azure-lt { --b: #e1effb; --f: #1f6fae; }
a.badge:not(.badge-outline):hover { background: color-mix(in srgb, var(--b) 82%, #000) !important; }
a.badge.badge-outline:hover { background: color-mix(in srgb, var(--bo, #888) 12%, transparent) !important; }
a.badge, a.badge:hover { text-decoration: none; }
/* бейдж внутри вкладки — простой счётчик */
.nav-pills .badge, .nav-pills .badge::before { background: transparent !important; color: inherit !important; opacity: .6; padding: 0; font-weight: 500; }
.nav-pills .badge::before { display: none; }
.nav-pills .badge { margin-left: .4rem !important; }
.nav-pills .badge.badge-notification { position: absolute; top: .4rem; inset-inline-end: .4rem; transform: none; width: .5rem; height: .5rem; min-width: 0; margin: 0 !important; background: var(--tblr-green) !important; opacity: 1; }

/* Цитата: полоса слева и бледная заливка (одинаково на сайте и в админке) */
blockquote, .blockquote { margin: 0 0 1rem; padding: 1rem 1.25rem; border-left: 4px solid #2851b6; background: #f3f6fd; border-radius: 0 8px 8px 0; color: #0b0b0c; font-size: 1rem; }
blockquote > :last-child { margin-bottom: 0; }
blockquote p { margin: 0 0 .4rem; line-height: 1.6; }
blockquote cite, blockquote .blockquote-footer { display: block; font-size: .8125rem; color: #6f6f69; font-style: normal; margin-top: 0; }
blockquote .blockquote-footer::before { content: none; }

/* Счётчик сообщений и уведомлений в шапке: маленький синий бейдж на самой иконке */
.nav-link > .badge[data-nb] { position: absolute; top: .1rem; inset-inline-end: -.15rem; min-width: 1.1rem; height: 1.1rem; padding: 0 .3rem; justify-content: center; font-size: .6875rem; line-height: 1.1rem; box-shadow: 0 0 0 2px #fff; }
.nav-link > .badge[data-nb]::before { display: none; }

/* Линия в выпадающих меню: бледная, с небольшими отступами */
.dropdown-menu .dropdown-divider { border-top-color: #eceef2; opacity: 1; margin: .3rem 0; }

/* Стрелка у выпадающих меню: без обводки */
.dropdown-menu-arrow::before { border: 0; }

/* Справка: выпадающие категории в левом меню */
.side-dd > summary { list-style: none; cursor: pointer; }
.side-dd > summary::-webkit-details-marker { display: none; }
.side-dd .chev { margin-left: auto; transition: transform .2s ease; }
.side-dd[open] > summary .chev { transform: rotate(180deg); }
.side-dd-list { display: flex; flex-direction: column; padding: .15rem 0 .35rem 1.9rem; }
.side-dd-list .nav-link { white-space: normal; font-size: .9rem; }
/* Справка: без синего — активная категория на белой подложке, активный вопрос жирным */
.side-menu .side-dd > summary.active { color: #09090b; }
.side-menu .side-dd > summary.active .ti { color: #71717a; }
.side-menu .side-dd-list .nav-link.active { background: transparent; box-shadow: none; color: #09090b; font-weight: 700; }
/* Справка: длинное название категории переносится, иконка и стрелка остаются у первой строки */
.side-menu .side-dd > summary .ti { flex-shrink: 0; margin-top: .12rem; }
.side-menu .side-dd > summary .chev { margin-left: .5rem; }

/* Справка: левая навигация (cms/views/help/_nav.php). Ссылки с префиксом html body — глобальное правило «ссылки без класса» их не задевает */
.help-nav{--hn-ind:2.375rem}
.help-nav details{border:0;background:none;box-shadow:none}
.help-nav details::before,.help-nav summary::before{content:none}
.help-nav summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:.5rem;padding:.5rem .625rem;border-radius:8px;outline:0;font-weight:600}
.help-nav summary::-webkit-details-marker{display:none}
.help-nav summary:hover{background:#f1f1f4}
.help-nav summary:focus-visible{box-shadow:0 0 0 2px rgba(var(--tblr-primary-rgb),.35)}
.help-nav summary::after{content:"";margin-left:auto;width:.5rem;height:.5rem;border-right:2px solid #9aa3af;border-bottom:2px solid #9aa3af;transform:rotate(45deg);transition:transform .2s;flex:none}
.help-nav details[open]>summary::after{transform:rotate(-135deg)}
.help-body{overflow:hidden}
.help-nav ul{list-style:none;margin:0 0 .25rem;padding:0}
html body .help-nav li a{display:block;padding:.375rem .625rem .375rem var(--hn-ind);border:0;border-radius:8px;color:inherit;text-decoration:none;font-size:.875rem;font-weight:400;line-height:1.35}
html body .help-nav li a:hover{background:#f1f1f4;color:inherit;border:0;text-decoration:none}
html body .help-nav li a.active{background:#f1f1f4;color:#000;font-weight:600;box-shadow:inset 3px 0 0 #1d1d1f;border-radius:4px 8px 8px 4px}
html body .help-nav li.more a{display:flex;align-items:center;gap:.25rem;color:var(--tblr-primary);font-size:.8125rem;font-weight:500}
html body .help-nav li.more a::after{content:"\2192";transition:transform .15s}
html body .help-nav li.more a:hover::after{transform:translateX(3px)}

/* Новости: стиль Apple (cms/views/posts/index.php и show.php). Системный шрифт, светло-серый фон, белые карточки с большим скруглением, крупные заголовки. Всё под .an-page */
.an-page{--an-ink:#1d1d1f;--an-mute:#6e6e73;--an-blue:#0066cc;--an-r:28px;max-width:none;margin:0 auto;padding:.25rem 0 3rem;color:var(--an-ink);font-family:-apple-system,BlinkMacSystemFont,"SF Pro Display","SF Pro Text","Helvetica Neue","Onest",Arial,sans-serif;-webkit-font-smoothing:antialiased}
.an-page a{border:0;text-decoration:none}
.an-head{padding:0 0 1.25rem}
.an-head h1{font-size:clamp(2.5rem,6vw,4rem);line-height:1.05;font-weight:700;letter-spacing:-.035em;margin:0}
.an-lead{max-width:44rem;margin:.9rem 0 0;font-size:1.35rem;line-height:1.4;color:var(--an-mute)}
.an-bar{display:flex;flex-wrap:wrap;align-items:center;gap:.75rem 1.25rem;margin:0 0 1.75rem}
.an-tabs{display:flex;flex-wrap:wrap;gap:.25rem}
.an-tabs a{padding:.4rem .95rem;border-radius:980px;font-size:.95rem;font-weight:500;color:var(--an-ink);transition:background .2s,color .2s}
.an-tabs a:hover{background:rgba(0,0,0,.06)}
.an-tabs a.on{background:var(--an-ink);color:#fff}
.an-search{margin-left:auto;position:relative;display:flex;align-items:center}
.an-search i{position:absolute;left:.8rem;color:var(--an-mute);pointer-events:none}
.an-search input{width:13rem;padding:.45rem .9rem .45rem 2.2rem;border:0;border-radius:980px;background:rgba(0,0,0,.06);font-size:.95rem;color:var(--an-ink);outline:0;transition:width .25s,background .2s,box-shadow .2s}
.an-search input:focus{width:17rem;background:#fff;box-shadow:0 0 0 4px rgba(0,113,227,.25)}
.an-empty{padding:4rem 0;text-align:center;font-size:1.2rem;color:var(--an-mute)}
.an-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1.25rem}
.an-card{display:flex;flex-direction:column;background:#fff;border-radius:var(--an-r);overflow:hidden;transition:transform .35s cubic-bezier(.25,.1,.25,1),box-shadow .35s}
.an-card:hover{transform:translateY(-4px);box-shadow:0 14px 40px rgba(0,0,0,.12)}
.an-img{display:block;aspect-ratio:16/10;overflow:hidden;background:#e8e8ed}
.an-img img,.an-img picture{display:block;width:100%;height:100%;object-fit:cover;transition:transform .6s cubic-bezier(.25,.1,.25,1)}
.an-card:hover .an-img img{transform:scale(1.04)}
.an-text{display:flex;flex-direction:column;flex:1;padding:1.4rem 1.5rem 1.7rem}
.an-meta{display:flex;flex-wrap:wrap;align-items:center;gap:.25rem .75rem;margin-bottom:.6rem;font-size:.75rem;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:var(--an-mute)}
.an-meta time{font-weight:500}
html body .an-page a.an-cat{color:var(--an-mute)}
html body .an-page a.an-cat:hover{color:var(--an-ink)}
.an-text h2,.an-text h3{margin:0 0 .6rem;font-size:1.35rem;line-height:1.2;font-weight:700;letter-spacing:-.018em}
.an-text h2 a,.an-text h3 a{color:var(--an-ink)}
.an-text h2 a::after,.an-text h3 a::after{content:"";position:absolute;inset:0}
.an-card{position:relative}
html body .an-page .an-meta a{position:relative;z-index:1}
.an-text p{margin:0;font-size:1rem;line-height:1.45;color:var(--an-mute);display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.an-noimg .an-text{padding:1.9rem 1.75rem 2rem}
.an-noimg .an-text h2,.an-noimg .an-text h3{font-size:1.6rem}
.an-noimg .an-text p{-webkit-line-clamp:5}
.an-hero.an-noimg{height:auto}
.an-hero.an-noimg .an-text{padding:3rem 3.25rem}
.an-hero.an-noimg h2{font-size:clamp(2rem,4vw,3.2rem)}
.an-hero{flex-direction:row;height:21rem;margin-bottom:1.25rem}
.an-hero .an-img{flex:0 0 44%;aspect-ratio:auto;height:100%}
.an-hero .an-text{justify-content:center;padding:1.75rem 2.25rem}
.an-hero h2{font-size:clamp(1.6rem,2.6vw,2.1rem);line-height:1.1;letter-spacing:-.03em;margin-bottom:1rem}
.an-hero p{font-size:1.05rem;-webkit-line-clamp:3}
html body .an-page a.an-more{position:relative;z-index:1;margin-top:1.25rem;align-self:flex-start;font-size:1.05rem;font-weight:500;color:var(--an-blue)}
.an-more::after{content:" \203A";transition:margin .2s}
.an-more:hover::after{margin-left:.25rem}
.an-pager{display:flex;justify-content:center;flex-wrap:wrap;gap:.35rem;margin-top:2.5rem}
.an-pager a{min-width:2.5rem;height:2.5rem;display:inline-flex;align-items:center;justify-content:center;padding:0 .75rem;border-radius:980px;background:#fff;font-weight:500;color:var(--an-ink);transition:background .2s,color .2s}
.an-pager a:hover{background:rgba(0,0,0,.08)}
.an-pager a.on{background:var(--an-ink);color:#fff}

/* Полная новость */
.an-post{max-width:1040px}
.an-phead{max-width:820px;margin:0 auto;padding:.5rem 0 1.75rem;text-align:center}
.an-phead .an-meta{justify-content:center}
.an-phead h1{margin:0;font-size:clamp(2.1rem,5vw,3.5rem);line-height:1.08;font-weight:700;letter-spacing:-.035em;text-wrap:balance}
.an-by{margin-top:1rem;font-size:.95rem;color:var(--an-mute)}
.an-cover{margin:0 0 2.5rem}
.an-cover img{display:block;width:100%;height:auto;max-height:30rem;object-fit:cover;border-radius:var(--an-r)}
.an-cover figcaption{max-width:820px;margin:.75rem auto 0;font-size:.85rem;color:var(--an-mute);text-align:center}
.an-body{max-width:none;margin:0 0 2rem;padding:3rem 11%;background:#fff;border-radius:var(--an-r);font-size:1.25rem;line-height:1.5;letter-spacing:-.005em}
.an-body>*{margin-top:0;margin-bottom:1.4rem}
.an-body h2,.an-body h3,.an-body h4{margin:2.6rem 0 1rem;font-weight:700;letter-spacing:-.025em;line-height:1.15}
.an-body h2{font-size:2.1rem}
.an-body h3{font-size:1.6rem}
.an-body h4{font-size:1.3rem}
.an-body ul,.an-body ol{padding-left:1.4rem}
.an-body li{margin-bottom:.5rem}
.an-body img{max-width:100%;height:auto;border-radius:20px}
.an-body figure{margin-left:0;margin-right:0}
.an-body figcaption{margin-top:.6rem;font-size:.85rem;color:var(--an-mute);text-align:center}
.an-body table{font-size:1rem}
.an-body pre{border-radius:16px;font-size:.95rem}
.an-body a{color:var(--an-blue)}
.an-tags{max-width:none;margin:0 0 2rem;display:flex;flex-wrap:wrap;gap:.5rem}
.an-tags a{padding:.3rem .8rem;border-radius:980px;background:rgba(0,0,0,.06);font-size:.9rem;color:var(--an-ink);transition:background .2s}
.an-tags a:hover{background:rgba(0,0,0,.12)}
.an-pn{display:grid;grid-template-columns:1fr 1fr;gap:1.25rem;margin-bottom:3.5rem}
.an-pn>*{display:flex;flex-direction:column;gap:.35rem;padding:1.5rem 1.75rem;border-radius:var(--an-r)}
.an-pn a{background:#fff;color:var(--an-ink);transition:transform .35s,box-shadow .35s}
.an-pn a:hover{transform:translateY(-3px);box-shadow:0 12px 32px rgba(0,0,0,.1)}
.an-pn a.r{text-align:right}
.an-pn small{font-size:.8rem;color:var(--an-mute)}
.an-pn b{font-size:1.15rem;line-height:1.25;letter-spacing:-.015em}
.an-rel h2{margin:0 0 1.25rem;font-size:2rem;font-weight:700;letter-spacing:-.03em}

@media (max-width:991.98px){
  .an-grid{grid-template-columns:repeat(2,1fr)}
  .an-hero{flex-direction:column;height:auto}
  .an-hero .an-img{flex:none;height:auto;aspect-ratio:16/9}
  .an-hero .an-text,.an-hero.an-noimg .an-text{padding:1.75rem}
}
@media (max-width:575.98px){
  .an-page{--an-r:22px}
  .an-grid{grid-template-columns:1fr}
  .an-search,.an-search input,.an-search input:focus{width:100%;margin-left:0}
  .an-search{flex:1 0 100%}
  .an-body{font-size:1.1875rem}
  .an-body h2{font-size:1.75rem}
  .an-pn{grid-template-columns:1fr}
  .an-pn a.r{text-align:left}
}
@media (prefers-reduced-motion:reduce){.an-card,.an-img img,.an-pn a{transition:none}.an-card:hover{transform:none}.an-card:hover .an-img img{transform:none}}

/* Контакты (cms/views/contacts.php): форма и справа карточки со способами связи */
.ct-grid{display:grid;grid-template-columns:7fr 5fr;gap:1.25rem;align-items:start}
.ct-side{display:grid;gap:1.25rem}
.ct-card{background:#fff;border-radius:var(--an-r);padding:2rem}
.ct-card h2{margin:0 0 1.25rem;font-size:1.5rem;line-height:1.15;font-weight:700;letter-spacing:-.025em}
.ct-page .form-label{font-size:.875rem;font-weight:500;color:var(--an-mute)}
.ct-page .form-control,.ct-page .form-select{border:1px solid transparent;border-radius:14px;background-color:#f5f5f7;padding:.75rem 1rem;font-size:1rem;box-shadow:none;transition:background-color .2s,box-shadow .2s,border-color .2s}
.ct-page .form-control:focus,.ct-page .form-select:focus{background-color:#fff;border-color:#0071e3;box-shadow:0 0 0 4px rgba(0,113,227,.2)}
.ct-page textarea.form-control{min-height:11rem;resize:vertical}
.ct-note{color:var(--an-mute);font-size:.95rem}
.ct-send{display:flex;flex-wrap:wrap;align-items:center;gap:1rem 1.5rem;margin-top:1.5rem}
.ct-send .btn{border-radius:980px;padding:.7rem 2rem;font-size:1rem;font-weight:500;box-shadow:none}
.ct-hint{flex:1 1 14rem;font-size:.8125rem;line-height:1.4;color:var(--an-mute)}
.ct-row{display:flex;align-items:center;gap:1rem;padding:.9rem 0;color:var(--an-ink)}
.ct-row+.ct-row{border-top:1px solid rgba(0,0,0,.08)}
h2+.ct-row{padding-top:0}
.ct-row:last-child{padding-bottom:0}
.ct-row i{flex:none;display:grid;place-items:center;width:2.75rem;height:2.75rem;border-radius:50%;background:#f5f5f7;font-size:1.35rem;color:var(--an-ink)}
.ct-row span{display:flex;flex-direction:column;min-width:0;font-size:1.05rem;font-weight:500;overflow-wrap:anywhere}
.ct-row small{font-size:.75rem;font-weight:500;letter-spacing:.04em;text-transform:uppercase;color:var(--an-mute)}
html body .an-page a.ct-row:hover span{color:var(--an-blue)}
.ct-steps{list-style:none;counter-reset:s;margin:0;padding:0;display:grid;gap:1rem}
.ct-steps li{counter-increment:s;position:relative;padding-left:2.75rem;line-height:1.45;color:var(--an-ink)}
.ct-steps li::before{content:counter(s);position:absolute;left:0;top:-.05rem;display:grid;place-items:center;width:1.9rem;height:1.9rem;border-radius:50%;background:#f5f5f7;font-size:.875rem;font-weight:600}
@media (max-width:991.98px){.ct-grid{grid-template-columns:1fr}.ct-card{padding:1.5rem}}

/* Публичный профиль (cms/views/profile.php): карточка с аватаром и карточка с данными; строки .ct-row общие с «Контактами» */
.pf-page{max-width:760px;display:grid;gap:1.25rem}
.pf-hero{display:flex;flex-direction:column;align-items:center;text-align:center;padding:3rem 2rem}
.pf-hero .avatar{width:7.5rem;height:7.5rem;font-size:2.75rem}
.pf-hero h1{margin:1.25rem 0 0;font-size:clamp(2rem,5vw,2.75rem);line-height:1.1;font-weight:700;letter-spacing:-.035em}
.pf-login{margin-top:.35rem;font-size:1.05rem;color:var(--an-mute)}
.pf-msg{margin-top:1.5rem;border-radius:980px;padding:.65rem 1.75rem;font-size:1rem;font-weight:500;box-shadow:none}
.pf-about{max-width:34rem;margin:1.75rem 0 0;font-size:1.15rem;line-height:1.5;white-space:pre-line;text-align:left}
.pf-info .ct-row:first-child{padding-top:0}
.pf-info .ct-row:last-child{padding-bottom:0}
@media (max-width:575.98px){.pf-hero{padding:2rem 1.25rem}}

/* Справка (cms/views/help/*): сетка «меню + содержимое», белые карточки, строки-ссылки. Классы hp-*; карточки .ct-card и поля .ct-page общие с «Контактами» */
.hp-page,.ct-page{max-width:none}
.hp-grid{display:grid;grid-template-columns:19rem minmax(0,1fr);gap:1.5rem;align-items:start}
.hp-head{padding-top:0}
.hp-head h1{font-size:clamp(2.25rem,5vw,3.25rem)}
.hp-navcard{padding:.75rem;border-radius:22px}
.hp-page .input-icon .form-control{padding-left:2.6rem}
.hp-toggle{border-radius:980px;--tblr-btn-color:#000;--tblr-btn-border-color:#000;--tblr-btn-hover-color:#fff;--tblr-btn-hover-bg:#000;--tblr-btn-hover-border-color:#000}
.hp-secs{display:grid;grid-template-columns:repeat(2,1fr);gap:1.25rem}
.hp-sec{padding:1.5rem}
.hp-sec h2{display:flex;align-items:center;gap:.8rem;margin:0 0 .75rem;font-size:1.25rem}
.hp-sec h2 i{flex:none;display:grid;place-items:center;width:2.5rem;height:2.5rem;border-radius:50%;background:#f5f5f7;font-size:1.3rem}
.hp-sec h2 a{color:var(--an-ink)}
.hp-list{display:flex;flex-direction:column}
.hp-list a{display:block;padding:.7rem .75rem;margin:0 -.75rem;border-radius:12px;color:var(--an-ink);font-size:1rem;line-height:1.35;transition:background-color .2s}
.hp-list a:hover{background:#f1f1f4}
.hp-sec .hp-list a{color:var(--an-blue)}
.hp-found a{padding:1rem .9rem;display:grid;gap:.25rem}
.hp-found b{font-weight:600;font-size:1.05rem}
.hp-found span{color:var(--an-mute);font-size:.95rem}
.hp-found small{font-size:.75rem;font-weight:500;letter-spacing:.04em;text-transform:uppercase;color:var(--an-mute)}
.hp-article{padding:2.5rem}
.hp-article h1{margin:0 0 1.5rem;font-size:clamp(1.9rem,4vw,2.6rem);line-height:1.1;font-weight:700;letter-spacing:-.03em}
.hp-body{font-size:1.0625rem;line-height:1.6}
.hp-body>*{margin-top:0;margin-bottom:1.1rem}
.hp-body h2,.hp-body h3{margin:2rem 0 .8rem;font-weight:700;letter-spacing:-.02em}
.hp-body img{max-width:100%;height:auto;border-radius:16px}
.hp-body a{color:var(--an-blue)}
.hp-date{margin-top:2rem;font-size:.875rem;color:var(--an-mute)}
@media (max-width:991.98px){.hp-grid{grid-template-columns:1fr}.hp-secs{grid-template-columns:1fr}.hp-article{padding:1.5rem}}

/* Хлебные крошки: один вид на всех публичных страницах (новости, справка, страницы) — мелкие серые, разделитель «›», последняя — тёмная. Разметка стандартная: nav > ol.breadcrumb */
.breadcrumb{--tblr-breadcrumb-divider:"\203A";--tblr-breadcrumb-divider-color:#a1a1a6;--tblr-breadcrumb-item-active-color:#1d1d1f;margin:.25rem 0 1rem;padding:0;font-size:.875rem}
.breadcrumb-item+.breadcrumb-item{padding-left:.5rem}
.breadcrumb-item+.breadcrumb-item::before{padding-right:.5rem}
html body ol.breadcrumb li.breadcrumb-item a{color:#6e6e73;border:0;text-decoration:none;font-weight:400;transition:color .2s}
html body ol.breadcrumb li.breadcrumb-item a:hover{color:#1d1d1f;border:0;text-decoration:none}
.breadcrumb-item.active{color:#1d1d1f}

/* Ссылки в списках справки и заголовках карточек: без подчёркивания (глобальное правило «ссылки без класса» их не касается) */
html body .hp-page .hp-list a,html body .hp-page .hp-list a:hover,html body .hp-page .hp-sec h2 a,html body .hp-page .hp-sec h2 a:hover{border:0;text-decoration:none}
html body .hp-page .hp-list a{color:var(--an-ink)}
html body .hp-page .hp-sec .hp-list a{color:var(--an-blue)}
html body .hp-page .hp-sec h2 a{color:var(--an-ink)}
html body .hp-page .hp-sec h2 a:hover{color:var(--an-blue)}

/* Справка, главная: частые вопросы раскрывающимся списком */
.hp-h2{margin:0 0 1rem;font-size:1.5rem;font-weight:700;letter-spacing:-.025em}
.hp-faq{padding:.5rem 2rem}
.hp-faq details{border-top:1px solid rgba(0,0,0,.08)}
.hp-faq details:first-child{border-top:0}
.hp-faq summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:1rem;padding:1.15rem 0;font-size:1.1rem;font-weight:600;letter-spacing:-.01em}
.hp-faq summary::-webkit-details-marker{display:none}
.hp-faq summary::after{content:"";flex:none;margin-left:auto;width:.55rem;height:.55rem;border-right:2px solid #86868b;border-bottom:2px solid #86868b;transform:rotate(45deg);transition:transform .2s}
.hp-faq details[open]>summary::after{transform:rotate(-135deg)}
.hp-faq details>.hp-body{padding-bottom:.25rem}
html body .hp-page a.hp-more{display:inline-block;margin:0 0 1.25rem;color:var(--an-blue);border:0;text-decoration:none;font-weight:500}
html body .hp-page a.hp-more::after{content:" \203A"}
@media (max-width:575.98px){.hp-faq{padding:.25rem 1.25rem}}

/* Новости: ссылки внутри карточек, тегов, табов и «предыдущая/следующая» без синего и линии (общее правило «ссылки без класса» их не касается) */
html body .an-page :is(.an-text h2, .an-text h3, .an-tags, .an-pn, .an-tabs, .an-pager) a,
html body .an-page :is(.an-text h2, .an-text h3, .an-tags, .an-pn, .an-tabs, .an-pager) a:hover { border: 0; text-decoration: none; font-weight: inherit; }
html body .an-page :is(.an-text h2, .an-text h3, .an-tags, .an-tabs) a { color: var(--an-ink); }
html body .an-page .an-pn a { color: var(--an-ink); }
html body .an-page :is(.an-tabs, .an-pager) a.on { color: #fff; }

/* Новость: тонкая линия прогресса чтения вверху экрана (0 — начало страницы, 100% — конец текста у нижнего края) */
.an-progress{position:fixed;top:0;left:0;right:0;height:3px;z-index:1040;pointer-events:none}
.an-progress i{display:block;height:100%;background:#0071e3;transform:scaleX(0);transform-origin:0 50%;transition:transform .12s linear}
@media (prefers-reduced-motion:reduce){.an-progress i{transition:none}}

@media (max-width:575.98px){.an-body{padding:1.5rem 1.25rem}}
