/* Палітра кольорів винесена в окремий файл theme.css (двошарові токени).
   Щоб змінити гаму глобально — редагуй лише theme.css. */
@import "theme.css";

/* Основні стилі для VOS */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-page);
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* === Sticky header === */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--color-primary);
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.header-nav {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    padding: 10px 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.header-nav a {
    color: var(--text-on-dark);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}

.header-nav a:hover {
    color: #fff;
}

.header-nav a.active {
    color: #fff;
    border-bottom: 2px solid var(--color-accent);
    padding-bottom: 2px;
}

/* Мобільний рядок шапки (назва + бургер) — на десктопі прихований */
.header-bar {
    display: none;
}

/* === Мобільна шапка: меню за кнопкою-бургером === */
@media (max-width: 600px) {
    /* Показуємо мобільний рядок лише коли працює JS (клас js-nav додає header-menu.js).
       Без JS меню лишається звичайним списком посилань — доступним завжди. */
    .site-header.js-nav .header-bar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 4px 0.75rem;
    }

    /* Назва поточної сторінки; довга назва обрізається трикрапкою */
    .current-page-title {
        min-width: 0;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
        color: #fff;
        font-size: 1.05rem;
        font-weight: 600;
    }

    /* Кнопка-бургер: 44×44px — мінімальна зручна зона дотику */
    .nav-toggle {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        width: 44px;
        height: 44px;
        padding: 0;
        border: none;
        background: transparent;
        cursor: pointer;
    }

    .nav-toggle-bar {
        display: block;
        width: 24px;
        height: 2px;
        border-radius: 2px;
        background: var(--text-on-dark);
        transition: transform 0.25s, opacity 0.2s;
    }

    /* У відкритому стані смужки складаються в хрестик */
    .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    /* Меню — вертикальний список, згорнутий за замовчуванням */
    .site-header.js-nav .header-nav {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0 0.75rem;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, padding 0.3s ease;
    }

    .site-header.js-nav .header-nav.open {
        max-height: 320px;
        padding-bottom: 0.5rem;
    }

    .site-header.js-nav .header-nav a {
        font-size: 1rem;
        padding: 0.7rem 0.25rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    }

    .site-header.js-nav .header-nav a:last-child {
        border-bottom: none;
    }

    /* Активний пункт: акцент зліва замість підкреслення */
    .site-header.js-nav .header-nav a.active {
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
        border-left: 3px solid var(--color-accent);
        padding-left: 0.6rem;
    }

    .site-header.js-nav .header-nav a.active:last-child {
        border-bottom: none;
    }
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
    flex: 1;
}

h1 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--color-primary);
}

/* Вступний абзац (опис для користувача) */
.page-intro {
    text-align: center;
    color: #555;
    max-width: 620px;
    margin: -0.5rem auto 1.5rem;
    line-height: 1.6;
}

/* Перемикач складу — випадаючий список «Звання» + підказка */
.search-mode {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.search-mode-label {
    font-size: 0.9rem;
    color: #555;
    font-weight: 600;
}

.mode-select {
    padding: 0.4rem 0.75rem;
    font-size: 0.9rem;
    color: var(--color-primary);
    background: var(--bg-soft);
    border: 1px solid var(--bg-soft-2);
    border-radius: 8px;
    cursor: pointer;
    max-width: 100%;
}

.mode-select:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 1px;
}

/* Іконка-підказка поруч із селектом — інлайн (а не в кутку картки) */
.search-mode .help-icon {
    position: static;
}

/* Форма пошуку */
.search-form {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.search-form input[type="text"] {
    flex: 1;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 2px solid #ccc;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.2s;
}

.search-form input[type="text"]:focus {
    border-color: var(--color-primary);
}

.search-form button {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    background: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.search-form button:hover {
    background: var(--color-primary-hover);
}

/* Підказка під формою */
.search-hint {
    text-align: center;
    font-size: 0.85rem;
    color: #999;
    margin-top: -1rem;
    margin-bottom: 1.5rem;
}

/* Результати */
#results {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.result-card {
    background: #fff;
    border-radius: 8px;
    padding: 1.25rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Заголовок коду ВОС (для розібраних результатів) */
.result-card .vos-header {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    font-family: 'SF Mono', 'Fira Code', monospace;
}

.result-card .code {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-primary);
}

.result-card .name {
    font-size: 1.1rem;
    margin-top: 0.25rem;
}

.result-card .category {
    font-size: 0.85rem;
    color: #777;
    margin-top: 0.25rem;
}

.result-card .description {
    margin-top: 0.5rem;
    color: #555;
}

/* Бейджі типу */
.type-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.type-badge.enlisted {
    background: var(--type-enlisted-bg);
    color: var(--type-enlisted-fg);
}

.type-badge.officer {
    background: var(--type-officer-bg);
    color: var(--type-officer-fg);
}

.type-badge.general {
    background: var(--type-general-bg);
    color: var(--type-general-fg);
}

/* Розбивка коду (definition list) */
.breakdown {
    margin-top: 1rem;
}

.breakdown dt {
    font-size: 0.8rem;
    color: #888;
    text-transform: uppercase;
    margin-top: 0.75rem;
}

.breakdown dd {
    font-size: 1rem;
    margin-top: 0.15rem;
}

/* Код-компонент */
.component-code {
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-weight: 700;
    color: var(--color-primary);
    background: var(--bg-soft);
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
}

/* Тег профілю (офіцерський склад) */
.profile-tag {
    font-size: 0.7rem;
    color: #888;
    font-style: italic;
}

/* Інформація про розділ */
.section-info {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: #888;
    border-top: 1px solid #eee;
    padding-top: 0.75rem;
}

/* Посилання на нормативний акт */
.normative-source {
    margin-top: 0.75rem;
    font-size: 0.8rem;
    color: #888;
    border-top: 1px solid #eee;
    padding-top: 0.75rem;
}

.normative-source a {
    color: var(--color-link);
    text-decoration: none;
}

.normative-source a:hover {
    text-decoration: underline;
}

/* Міні-картки текстового пошуку */
.result-card.mini {
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: transform 0.1s;
}

.result-card.mini:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.result-card.mini .code {
    font-size: 1rem;
}

.result-card.mini .name {
    font-size: 0.9rem;
}

/* Не знайдено */
.not-found {
    color: var(--color-danger);
    font-style: italic;
}

/* Повідомлення */
.message {
    text-align: center;
    color: #777;
    padding: 2rem 0;
}

.message.error {
    color: var(--color-danger);
}

/* ===== Графічна розшифровка коду ВОС ===== */

.vos-visual-breakdown {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 1.5rem 0 1rem;
}

/* Заголовок: «ВОС —» + блоки цифр */
.vos-code-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.vos-label-prefix {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-primary);
}

.vos-code-parts {
    display: flex;
    gap: 0.5rem;
}

.vos-code-digit {
    display: inline-block;
    font-family: 'SF Mono', 'Fira Code', 'Courier New', monospace;
    font-size: 1.6rem;
    font-weight: 700;
    padding: 0.35rem 0.7rem;
    background: var(--color-primary);
    color: #fff;
    border-radius: 6px;
    letter-spacing: 2px;
    min-width: 2.5rem;
    text-align: center;
}

.vos-code-digit.letter {
    background: var(--digit-letter-bg);
    letter-spacing: 0;
}

/* З'єднувальні лінії — SVG-контейнер */
.vos-connectors {
    position: relative;
    width: 100%;
    height: 40px;
    margin-top: 0.25rem;
}

/* Пояснювальні блоки (підписи) */
.vos-labels {
    display: flex;
    gap: 0.75rem;
    width: 100%;
    margin-top: 0.25rem;
}

.vos-labels.cols-1 {
    justify-content: center;
}

.vos-labels.cols-1 > .vos-label-box {
    max-width: 400px;
}

.vos-labels.cols-2 > .vos-label-box {
    flex: 1;
}

.vos-labels.cols-3 > .vos-label-box {
    flex: 1;
}

.vos-label-box {
    position: relative;
    background: var(--bg-soft);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    border-left: 3px solid var(--color-accent);
    text-align: left;
    width: 100%;
}

.vos-label-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #888;
    letter-spacing: 0.03em;
    margin-bottom: 0.2rem;
}

.vos-label-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-primary);
    line-height: 1.3;
}

.vos-label-detail {
    font-size: 0.8rem;
    color: #666;
    font-style: italic;
    margin-top: 0.2rem;
}

/* Розділювач між графічною схемою та текстом */
.vos-visual-breakdown + .breakdown {
    border-top: 1px solid #eee;
    padding-top: 0.75rem;
}

/* ===== Сторінки контенту (Законодавство, Про проект тощо) ===== */

.back-link {
    color: var(--color-primary);
    text-decoration: none;
}

.back-link:hover {
    text-decoration: underline;
}

.page-title {
    text-align: center;
    color: #555;
    font-size: 1.3rem;
    font-weight: 400;
    margin-bottom: 2rem;
}

/* Картки законів */
.law-cards {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.law-card {
    background: #fff;
    border-radius: 8px;
    padding: 1.25rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.law-card-header {
    margin-bottom: 0.75rem;
}

.law-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.law-card-description {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.law-card-changes {
    font-size: 0.85rem;
    color: #555;
    margin-bottom: 1rem;
}

.law-card-changes strong {
    color: var(--color-primary);
}

.law-card-changes a {
    color: var(--color-link);
    text-decoration: none;
}

.law-card-changes a:hover {
    text-decoration: underline;
}

.law-card-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.law-card-links a {
    color: var(--color-link);
    text-decoration: none;
    font-size: 0.9rem;
}

.law-card-links a:hover {
    text-decoration: underline;
}

/* ===== Сторінка «Про проект» ===== */

.about-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.about-section {
    background: #fff;
    border-radius: 8px;
    padding: 1.25rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.about-section h3 {
    font-size: 1.1rem;
    color: var(--color-primary);
    margin-bottom: 0.75rem;
}

.about-section p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.about-section p:last-child {
    margin-bottom: 0;
}

.about-section ul {
    margin-left: 1.25rem;
    color: #555;
    font-size: 0.95rem;
    line-height: 1.8;
}

.about-section a {
    color: var(--color-link);
    text-decoration: none;
}

.about-section a:hover {
    text-decoration: underline;
}

/* Вступний абзац SEO-сторінки розшифровки ВОС */
.seo-lead {
    font-size: 1.02rem;
    color: #444;
    line-height: 1.7;
    margin-bottom: 0.25rem;
}
.seo-lead a {
    color: var(--color-link);
    text-decoration: none;
}
.seo-lead a:hover { text-decoration: underline; }

/* CTA-кнопка (перехід до пошуку) */
.cta-row {
    display: flex;
    justify-content: center;
    margin: 0.5rem 0 0.25rem;
}
/* Вища специфічність (.about-content .cta-button), щоб перекрити
   .about-section a (var(--color-link)) — інакше текст кнопки темний і не видно. */
.about-content .cta-button,
.cta-button {
    display: inline-block;
    background: var(--color-primary);
    color: #fff;
    padding: 0.7rem 1.4rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
}
.about-content .cta-button:hover,
.cta-button:hover {
    background: var(--color-primary-hover);
    color: #fff;
    text-decoration: none;
}

.about-codes {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.about-code-block {
    flex: 1;
    min-width: 250px;
    background: var(--bg-soft);
    border-radius: 8px;
    padding: 1rem;
    border-left: 3px solid var(--color-accent);
}

.about-code-block h4 {
    font-size: 0.9rem;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.about-code-block .code-format {
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.about-code-block ul {
    margin-left: 1rem;
    font-size: 0.85rem;
    line-height: 1.8;
}

.about-sources li {
    margin-bottom: 0.5rem;
}

/* ===== Сторінка «Про автора» — шапка з фото ===== */

.author-intro {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.author-photo {
    flex-shrink: 0;
    width: 240px;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.author-intro-text {
    flex: 1;
}

.author-intro-text p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.author-intro-text p:last-child {
    margin-bottom: 0;
}

/* На вузьких екранах фото стає над текстом і центрується */
@media (max-width: 600px) {
    .author-intro {
        flex-direction: column;
        align-items: center;
    }

    .author-photo {
        width: 200px;
    }

    .author-intro-text {
        text-align: left;
    }
}

/* ===== Сторінка «Про автора» — досягнення ===== */

.achievements-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.achievement-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    background: var(--bg-soft);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    border-left: 3px solid var(--color-accent);
}

.achievement-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    line-height: 1;
    margin-top: 0.15rem;
}

.achievement-icon svg {
    width: 22px;
    height: 22px;
    display: block;
}

.achievement-item strong {
    color: var(--color-primary);
    font-size: 0.95rem;
}

.achievement-item p {
    font-size: 0.85rem;
    color: #666;
    margin: 0.15rem 0 0;
}

/* Соціальні мережі */
.author-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-soft);
    padding: 0.6rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    color: var(--color-primary);
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.2s, transform 0.1s;
}

.social-link:hover {
    background: var(--bg-soft-2);
    transform: translateY(-1px);
}

.social-icon {
    font-size: 1.2rem;
}

/* ===== Футер ===== */

.site-footer {
    margin-top: auto;
    padding: 1.5rem 1rem;
    border-top: 1px solid #ddd;
    text-align: center;
    background: var(--bg-footer);
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.footer-social a {
    color: var(--color-primary);
    text-decoration: none;
    font-size: 0.85rem;
    padding: 4px 10px;
    border-radius: 4px;
    transition: background 0.2s, color 0.2s;
}

.footer-social a:hover {
    background: var(--color-primary);
    color: #fff;
}

.footer-social a svg {
    width: 15px;
    height: 15px;
    vertical-align: -3px;
    margin-right: 5px;
}

.footer-copyright {
    font-size: 0.8rem;
    color: #777;
}

/* ===== Адаптивність ===== */

@media (max-width: 600px) {
    .search-form {
        flex-direction: column;
    }

    .search-form button {
        width: 100%;
    }

    .vos-label-prefix {
        font-size: 1.1rem;
    }

    .vos-code-digit {
        font-size: 1.2rem;
        padding: 0.25rem 0.5rem;
        letter-spacing: 1px;
    }

    .vos-connectors {
        display: none;
    }

    .vos-labels {
        flex-direction: column;
    }

    .vos-labels.cols-1 > .vos-label-box {
        max-width: 100%;
    }
}

/* === Блок заміни ВОС === */
.replacement-notice {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #f6e7e4;
    border: 1px solid #d8a39c;
    border-radius: 8px;
    padding: 14px 18px;
    margin-bottom: 16px;
}

.replacement-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.replacement-text strong {
    display: block;
    margin-bottom: 4px;
    color: #7e201b;
}

.replacement-text p {
    margin: 0;
    color: #6b3a35;
    font-size: 0.95rem;
    line-height: 1.5;
}

.replacement-link {
    color: var(--color-link);
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
}

.replacement-link:hover {
    color: var(--color-primary);
}

/* === Призначення на посади (колонка 3) === */
.position-description {
    position: relative;
    margin-top: 16px;
    padding: 12px 16px;
    background: #f5f0e8;
    border: 1px solid #d4c9a8;
    border-radius: 8px;
}

.position-description h4 {
    font-size: 0.9rem;
    color: #6b5b3e;
    margin-bottom: 6px;
    font-weight: 600;
}

.position-description p {
    font-size: 0.9rem;
    color: #444;
    line-height: 1.5;
    margin: 0;
}

/* === Допустиме призначення за іншими ВОС === */
.appointments-section {
    position: relative;
    margin-top: 20px;
    padding: 16px;
    background: #f0f4e8;
    border: 1px solid #c8d6a5;
    border-radius: 8px;
}

.appointments-section h3 {
    font-size: 1rem;
    color: #3d5a1e;
    margin-bottom: 12px;
}

.appointments-group {
    margin-bottom: 12px;
}

.appointments-group:last-child {
    margin-bottom: 0;
}

.appointments-group h4 {
    font-size: 0.9rem;
    color: #556b2f;
    margin-bottom: 6px;
    font-weight: 600;
}

.appointments-group ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.appointments-group li {
    padding: 4px 0;
    font-size: 0.9rem;
    color: #333;
    border-bottom: 1px solid #dde5cc;
}

.appointments-group li:last-child {
    border-bottom: none;
}

.appointment-link {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    color: #3d5a1e;
    text-decoration: none;
    cursor: pointer;
}

.appointment-link:hover {
    color: #1a3a00;
    text-decoration: underline;
}

.appointment-note {
    font-style: italic;
    color: #666;
}

/* === Блок молодшого лейтенанта запасу === */
.junior-lieutenant-notice {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #e7e6cf;
    border: 1px solid #bcca94;
    border-radius: 8px;
    padding: 14px 18px;
    margin-top: 16px;
}

.junior-lt-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.junior-lt-text {
    color: #3d5a1e;
    font-size: 0.95rem;
    line-height: 1.5;
}

.junior-lt-text strong {
    color: #2f4718;
}

/* === Іконки-підказки (?) та popup === */
.help-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #b0a890;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
    line-height: 1;
    z-index: 1;
}

.help-icon:hover {
    background: #8a7d65;
}

/* Popup overlay */
.help-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.help-popup.hidden {
    display: none;
}

.help-popup-content {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    max-width: 420px;
    width: 90%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    position: relative;
}

.help-popup-close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #999;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
}

.help-popup-close:hover {
    color: #333;
}

.help-popup-text {
    font-size: 0.95rem;
    color: #333;
    line-height: 1.6;
    margin-bottom: 12px;
    padding-right: 20px;
}

.help-popup-link {
    display: inline-block;
    font-size: 0.85rem;
    color: var(--color-link);
    text-decoration: none;
    padding: 6px 12px;
    background: var(--bg-soft);
    border-radius: 6px;
}

.help-popup-link:hover {
    background: var(--bg-soft-2);
    text-decoration: none;
}

/* === Тарифна категорія музичних підрозділів === */
.music-position {
    position: relative;
    margin-top: 16px;
    padding: 12px 16px;
    background: #f5f0e8;
    border: 1px solid #d4c9a8;
    border-radius: 8px;
}

.music-position h4 {
    font-size: 0.9rem;
    color: #6b5b3e;
    margin-bottom: 8px;
    font-weight: 600;
}
