

/* Start:/bitrix/templates/candys-rise/css/foba-helper.css?177699488130185*/
/* FOBA Helper Styles */

:root {
    --foba-bg: #121212;
    --foba-card-bg: #1e1e1e;
    --foba-text: #e0e0e0;
    --foba-text-muted: #a0a0a0;
    --foba-border: #333;

    /* Cyberpunk Theme */
    --cyber-primary: #00f0ff;
    --cyber-secondary: #ff003c;
    --cyber-glow: 0 0 0.625rem rgba(0, 240, 255, 0.3);

    /* Fantasy Theme */
    --fantasy-primary: #ffd700;
    --fantasy-secondary: #cd853f;
    --fantasy-glow: 0 0 0.625rem rgba(255, 215, 0, 0.3);

    --transition: all 0.3s ease;
}

/* General Layout */
.helper-section {
    padding: 2rem;
    max-width: 87.5rem;
    margin: 0 auto;
    color: var(--foba-text);
    font-family: 'Inter', sans-serif;
}

.helper-header {
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    background: linear-gradient(45deg, #fff, #aaa);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.back-link {
    color: var(--foba-text-muted);
    text-decoration: none;
    font-size: 1.1rem;
    transition: var(--transition);
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    background: rgba(255, 255, 255, 0.05);
}

.back-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

/* Grids */
.grid {
    display: grid;
    gap: 1.5rem;
}

.grid-2 {
    grid-template-columns: repeat(auto-fill, minmax(25rem, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fill, minmax(18.75rem, 1fr));
}

@media (max-width: 48rem) {
    .grid-2 {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }

    .grid-3 {
        grid-template-columns: 1fr;
    }

    .tool-card {
        padding: 1.25rem 0.5rem;
    }

    .card-icon {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }

    .tool-card h3 {
        font-size: 1.1rem;
    }
    
    .tool-card p {
        font-size: 0.85rem;
    }
}

/* Cards (Main Index) */
.tool-card {
    background: var(--foba-card-bg);
    border: 0.062rem solid var(--foba-border);
    border-radius: 0.75rem;
    padding: 2rem;
    text-decoration: none;
    color: var(--foba-text);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.tool-card:hover {
    transform: translateY(-0.312rem);
    border-color: var(--cyber-primary);
    box-shadow: var(--cyber-glow);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.tool-card h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
    color: #fff;
}

.tool-card p {
    margin: 0;
    color: var(--foba-text-muted);
}

/* Keyword Cards */
.keywords-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(21.875rem, 1fr));
    gap: 1.5rem;
}

.keyword-card {
    background: var(--foba-card-bg);
    border: 0.062rem solid var(--foba-border);
    border-radius: 0.5rem;
    padding: 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.keyword-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 0.062rem solid rgba(255, 255, 255, 0.1);
}

.keyword-header h2 {
    margin: 0;
    font-size: 1.4rem;
    color: #fff;
}

/* Setting Badges */
.setting-badge {
    font-size: 0.8rem;
    padding: 0.2rem 0.6rem;
    border-radius: 0.25rem;
    text-transform: uppercase;
    font-weight: bold;
}

.cyberpunk-style .setting-badge {
    background: rgba(0, 240, 255, 0.1);
    color: var(--cyber-primary);
    border: 0.062rem solid var(--cyber-primary);
}

.fantasy-style .setting-badge {
    background: rgba(255, 215, 0, 0.1);
    color: var(--fantasy-primary);
    border: 0.062rem solid var(--fantasy-primary);
}

/* Keyword Meta */
.keyword-meta {
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.meta-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.3rem;
    padding: 0.3rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 0.25rem;
}

.meta-item .label {
    color: var(--foba-text-muted);
}

.meta-item .value {
    color: #fff;
    font-weight: 500;
}

.keyword-description {
    color: var(--foba-text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

/* Ranks */
.ranks-container {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.rank-block {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 0.375rem;
    padding: 0.8rem;
    border-left: 0.188rem solid var(--foba-border);
}

.cyberpunk-style .rank-block {
    border-left-color: var(--cyber-primary);
}

.fantasy-style .rank-block {
    border-left-color: var(--fantasy-primary);
}

.apocalypse-style .setting-badge {
    background: rgba(76, 175, 80, 0.1);
    color: #4caf50;
    border: 0.062rem solid #4caf50;
}

.apocalypse-style .rank-block {
    border-left-color: #4caf50;
}

.rank-block h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    color: #fff;
    opacity: 0.8;
}

.rank-content {
    font-size: 0.9rem;
    color: var(--foba-text);
}

/* Tables */
.table-container {
    overflow-x: auto;
    background: var(--foba-card-bg);
    border-radius: 0.5rem;
    border: 0.062rem solid var(--foba-border);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 50rem;
}

.data-table th,
.data-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 0.062rem solid var(--foba-border);
}

.data-table th {
    background: rgba(0, 0, 0, 0.3);
    color: var(--foba-text-muted);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.data-table tr:last-child td {
    border-bottom: none;
}

.data-table tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.fw-bold {
    font-weight: 700;
    color: #fff;
}

.description-cell {
    font-size: 0.9rem;
    color: var(--foba-text-muted);
    max-width: 25rem;
}

/* Item Cards (Drugs, Scripts, etc.) */
.item-card {
    background: var(--foba-card-bg);
    border: 0.062rem solid var(--foba-border);
    border-radius: 0.5rem;
    padding: 1.5rem;
    transition: var(--transition);
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.item-header h3 {
    margin: 0;
    font-size: 1.2rem;
    color: #fff;
}

.cost-badge {
    background: rgba(40, 167, 69, 0.2);
    color: #28a745;
    padding: 0.2rem 0.6rem;
    border-radius: 0.25rem;
    font-weight: bold;
    font-size: 0.9rem;
}

.rank-badge {
    background: rgba(0, 123, 255, 0.2);
    color: #007bff;
    padding: 0.2rem 0.6rem;
    border-radius: 0.25rem;
    font-weight: bold;
    font-size: 0.8rem;
}

.item-meta {
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.meta-row {
    display: flex;
    justify-content: space-between;
    padding: 0.3rem 0;
    border-bottom: 0.062rem solid rgba(255, 255, 255, 0.05);
}

.item-description {
    font-size: 0.9rem;
    color: var(--foba-text-muted);
    line-height: 1.5;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 0.062rem solid rgba(255, 255, 255, 0.1);
}

/* Sections */
.section-block {
    margin-bottom: 3rem;
}

.section-title {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: #fff;
    border-left: 0.25rem solid var(--cyber-secondary);
    padding-left: 1rem;
}

/* Races */
.races-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.race-card {
    background: var(--foba-card-bg);
    border: 0.062rem solid var(--foba-border);
    border-radius: 0.75rem;
    padding: 2rem;
}

.race-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    border-bottom: 0.062rem solid var(--foba-border);
    padding-bottom: 1rem;
}

.race-header h2 {
    margin: 0;
    font-size: 2rem;
    color: #fff;
}

.race-stats {
    margin-bottom: 2rem;
}

.stat-box {
    background: rgba(0, 0, 0, 0.3);
    padding: 1rem;
    border-radius: 0.5rem;
    text-align: center;
    border: 0.062rem solid rgba(255, 255, 255, 0.05);
}

.stat-box .label {
    display: block;
    font-size: 0.8rem;
    color: var(--foba-text-muted);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.stat-box .value {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--cyber-primary);
}

.data-table tr:last-child td {
    border-bottom: none;
}

.data-table tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.fw-bold {
    font-weight: 700;
    color: #fff;
}

.description-cell {
    font-size: 0.9rem;
    color: var(--foba-text-muted);
    max-width: 25rem;
}

/* Item Cards (Drugs, Scripts, etc.) */
.item-card {
    background: var(--foba-card-bg);
    border: 0.062rem solid var(--foba-border);
    border-radius: 0.5rem;
    padding: 1.5rem;
    transition: var(--transition);
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.item-header h3 {
    margin: 0;
    font-size: 1.2rem;
    color: #fff;
}

.cost-badge {
    background: rgba(40, 167, 69, 0.2);
    color: #28a745;
    padding: 0.2rem 0.6rem;
    border-radius: 0.25rem;
    font-weight: bold;
    font-size: 0.9rem;
}

.rank-badge {
    background: rgba(0, 123, 255, 0.2);
    color: #007bff;
    padding: 0.2rem 0.6rem;
    border-radius: 0.25rem;
    font-weight: bold;
    font-size: 0.8rem;
}

.item-meta {
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.meta-row {
    display: flex;
    justify-content: space-between;
    padding: 0.3rem 0;
    border-bottom: 0.062rem solid rgba(255, 255, 255, 0.05);
}

.item-description {
    font-size: 0.9rem;
    color: var(--foba-text-muted);
    line-height: 1.5;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 0.062rem solid rgba(255, 255, 255, 0.1);
}

/* Sections */
.section-block {
    margin-bottom: 3rem;
}

.section-title {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: #fff;
    border-left: 0.25rem solid var(--cyber-secondary);
    padding-left: 1rem;
}

/* Races */
.races-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.race-card {
    background: var(--foba-card-bg);
    border: 0.062rem solid var(--foba-border);
    border-radius: 0.75rem;
    padding: 2rem;
}

.race-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    border-bottom: 0.062rem solid var(--foba-border);
    padding-bottom: 1rem;
}

.race-header h2 {
    margin: 0;
    font-size: 2rem;
    color: #fff;
}

.race-stats {
    margin-bottom: 2rem;
}

.stat-box {
    background: rgba(0, 0, 0, 0.3);
    padding: 1rem;
    border-radius: 0.5rem;
    text-align: center;
    border: 0.062rem solid rgba(255, 255, 255, 0.05);
}

.stat-box .label {
    display: block;
    font-size: 0.8rem;
    color: var(--foba-text-muted);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.stat-box .value {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--cyber-primary);
}

.race-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(15.625rem, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
    background: rgba(255, 255, 255, 0.02);
    padding: 1.5rem;
    border-radius: 0.5rem;
}

.race-feature h3 {
    color: #fff;
    margin-bottom: 1rem;
}

.feature-content {
    color: var(--foba-text-muted);
    line-height: 1.6;
}

/* Tabs */
.tabs-header {
    display: flex;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 0.062rem solid var(--foba-border);
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 2rem;
    padding-bottom: 0;
}

.tab-btn {
    flex: 1;
    padding: 1.5rem;
    background: none;
    border: none;
    color: var(--foba-text-muted);
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 0.188rem solid transparent;
}

.tab-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.tab-btn.active {
    color: var(--cyber-primary);
    border-bottom-color: var(--cyber-primary);
    background: rgba(0, 240, 255, 0.05);
}

@media (max-width: 48rem) {
    .tab-btn {
        flex: 0 0 auto;
        padding: 1rem;
    }
}

.tab-content {
    opacity: 0;
    animation: fadeIn 0.3s ease forwards;
    display: none;
}

.tab-content.active {
    opacity: 1;
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(0.625rem);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Expandable Content */
.expandable-trigger {
    cursor: pointer;
    position: relative;
    padding-right: 1.25rem;
    -webkit-user-select: none;
    user-select: none;
}

.expandable-trigger::after {
    content: '▼';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.expandable-trigger.active::after {
    transform: translateY(-50%) rotate(180deg);
}

.expandable-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    opacity: 0;
}

.expandable-content.expanded {
    max-height: 62.5rem;
    opacity: 1;
    margin-top: 1rem;
    overflow-y: auto;
}

/* Скроллбар для раскрытых блоков внутри карточек кейвордов */
.keyword-card .expandable-content.expanded {
    max-height: 31.25rem;
}

.expandable-content.expanded::-webkit-scrollbar {
    width: 6px;
}

.expandable-content.expanded::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.expandable-content.expanded::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.expandable-content.expanded::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.35);
}

/* Filterable Items */
.filterable-item {
    animation: fadeIn 0.3s ease;
}

/* Specific Styles */
.cyber-style {
    border-color: rgba(0, 240, 255, 0.3);
}

.cyber-style:hover {
    box-shadow: 0 0 0.938rem rgba(0, 240, 255, 0.1);
}

.demon-style {
    border-color: rgba(255, 0, 60, 0.3);
}

.demon-style:hover {
    box-shadow: 0 0 0.938rem rgba(255, 0, 60, 0.1);
}

/* FOBA Character Form Premium Styles */

.char-form-group {
    margin-bottom: 1.5rem;
}

.char-form-label {
    display: block;
    color: var(--foba-text-muted);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    font-weight: 500;
}

.char-form-input {
    width: 100%;
    padding: 0.8rem 1rem;
    background: rgba(0, 0, 0, 0.4);
    border: 0.062rem solid var(--foba-border);
    border-radius: 0.375rem;
    color: white;
    font-size: 1rem;
    transition: var(--transition);
}

.char-form-input:focus {
    outline: none;
    border-color: var(--cyber-primary);
    box-shadow: 0 0 0.625rem rgba(0, 240, 255, 0.1);
    background: rgba(0, 0, 0, 0.6);
}

.char-form-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.char-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.5rem;
    background: var(--cyber-secondary);
    color: white;
    border: none;
    border-radius: 0.375rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.031rem;
    text-decoration: none;
}

.char-btn:hover {
    background: #ff2a5d;
    box-shadow: 0 0 0.938rem rgba(255, 0, 60, 0.4);
    transform: translateY(-0.125rem);
}

.char-btn-secondary {
    background: transparent;
    border: 0.062rem solid var(--foba-border);
    color: var(--foba-text-muted);
}

.char-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: #fff;
    color: #fff;
    box-shadow: none;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.5rem;
    border-radius: 0.375rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

/* Filters & Sorting */
/* Filters & Sorting */
.filter-controls {
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.filter-primary-row {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
    /* Wrap on very small screens */
}

.search-container {
    flex: 1;
    /* Search takes available space */
    min-width: 200px;
}

.filter-toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: #2a2a2a;
    border: 1px solid var(--foba-border);
    border-radius: 0.375rem;
    color: var(--foba-text-main);
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    white-space: nowrap;
}

.filter-toggle-btn:hover,
.filter-toggle-btn.active {
    background: var(--foba-accent);
    border-color: var(--foba-accent);
    color: #fff;
}

.filter-panel {
    display: none;
    /* Hidden by default */
    background: var(--foba-card-bg);
    border: 1px solid var(--foba-border);
    border-radius: 0.5rem;
    padding: 1.5rem;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.filter-panel.active {
    display: grid;
    /* Visible when active */
    animation: fadeIn 0.3s ease;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-group label {
    font-size: 0.85rem;
    color: var(--foba-text-muted);
    text-transform: uppercase;
}

.foba-input,
.foba-select {
    background: #1a1a1a;
    border: 1px solid var(--foba-border);
    color: #fff;
    padding: 0.8rem;
    border-radius: 0.375rem;
    width: 100%;
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition);
}

.foba-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
    padding-right: 2.5rem;
    cursor: pointer;
}

.foba-input:focus,
.foba-select:focus {
    outline: none;
    border-color: var(--cyber-primary);
    box-shadow: 0 0 0 2px rgba(0, 240, 255, 0.1);
}

.foba-select option {
    background-color: #1a1a1a;
    color: #fff;
    padding: 10px;
}

/* No results message */
.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: var(--foba-text-muted);
    font-size: 1.1rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 0.5rem;
}

/* ============================================
   FOBA DETAIL PAGE — Классовый кейворд
   ============================================ */

/* Шапка */
.foba-detail-header {
    background: var(--foba-card-bg);
    border: 1px solid var(--foba-border);
    border-radius: 0.75rem;
    padding: 2rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.foba-detail-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--cyber-primary), var(--cyber-secondary));
}

.foba-detail-header.fantasy-accent::before {
    background: linear-gradient(90deg, var(--fantasy-primary), var(--fantasy-secondary));
}

.foba-detail-header.cyberpunk-accent::before {
    background: linear-gradient(90deg, var(--cyber-primary), #ff003c);
}

.foba-detail-title-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.foba-detail-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.05rem;
}

.foba-detail-badge {
    font-size: 0.85rem;
    padding: 0.25rem 0.75rem;
}

.foba-detail-desc {
    color: var(--foba-text-muted);
    font-size: 1rem;
    line-height: 1.6;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Секции */
.foba-section-block {
    margin-bottom: 2.5rem;
}

.foba-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1.25rem;
    padding-left: 1rem;
    border-left: 4px solid var(--cyber-primary);
}

/* Ранги — сетка карточек */
.foba-ranks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
    gap: 1.25rem;
}

.foba-rank-card {
    background: var(--foba-card-bg);
    border: 1px solid var(--foba-border);
    border-radius: 0.5rem;
    overflow: hidden;
    transition: var(--transition);
}

.foba-rank-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.foba-rank-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid var(--foba-border);
}

.foba-rank-card-header h3 {
    margin: 0;
    font-size: 1.15rem;
    color: #fff;
    font-weight: 600;
}

.foba-rank-icon {
    font-size: 1.4rem;
}

.foba-rank-card-body {
    padding: 1.25rem;
    color: var(--foba-text);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Ресурсы (Заклинания / Скрипты) */
.foba-resource-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.foba-resource-rank-group {
    background: var(--foba-card-bg);
    border: 1px solid var(--foba-border);
    border-radius: 0.5rem;
    overflow: hidden;
}

.foba-resource-rank-label {
    margin: 0;
    padding: 0.75rem 1.25rem;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid var(--foba-border);
}

.foba-resource-rank-label.spell-accent {
    border-left: 3px solid #9d00ff;
}

.foba-resource-rank-label.script-accent {
    border-left: 3px solid #00e5ff;
}

.foba-resource-list {
    padding: 0.5rem;
}

.foba-resource-item {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.2s ease;
}

.foba-resource-item:last-child {
    border-bottom: none;
}

.foba-resource-item:hover {
    background: rgba(255, 255, 255, 0.03);
}

.foba-resource-name {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.spell-item .foba-resource-name {
    color: #dcb0ff;
}

.script-item .foba-resource-name {
    color: #ccf9ff;
}

.foba-resource-school {
    display: inline-block;
    font-size: 0.75rem;
    padding: 0.1rem 0.5rem;
    border-radius: 0.25rem;
    background: rgba(157, 0, 255, 0.1);
    border: 1px solid rgba(157, 0, 255, 0.3);
    color: #c77eff;
    margin-bottom: 0.35rem;
}

.foba-resource-desc {
    font-size: 0.9rem;
    color: var(--foba-text-muted);
    line-height: 1.5;
    margin-top: 0.25rem;
}

/* Неклассовые кейворды по уровням */
.foba-nck-level-group {
    margin-bottom: 1.5rem;
}

.foba-nck-level-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

.foba-nck-level-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--fantasy-primary);
    margin: 0;
}

/* Фильтры по сеттингу */
.foba-nck-setting-filters {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}

/* Фильтры по типу */
.foba-nck-type-filters {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.foba-nck-filter-btn {
    padding: 0.25rem 0.65rem;
    border-radius: 0.25rem;
    border: 1px solid var(--foba-border);
    background: rgba(0, 0, 0, 0.3);
    color: var(--foba-text-muted);
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.foba-nck-filter-btn:hover {
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.foba-nck-filter-btn.active {
    background: rgba(255, 215, 0, 0.15);
    border-color: var(--fantasy-primary);
    color: var(--fantasy-primary);
}

.foba-nck-setting-filters .foba-nck-filter-btn {
    padding: 0.35rem 0.85rem;
    font-size: 0.85rem;
}

.foba-nck-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
    gap: 0.75rem;
}

.foba-nck-card {
    background: var(--foba-card-bg);
    border: 1px solid var(--foba-border);
    border-radius: 0.375rem;
    padding: 1rem;
    transition: var(--transition);
}

.foba-nck-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

.foba-nck-card.nck-cyber {
    border-left: 3px solid var(--cyber-primary);
}

.foba-nck-card.nck-fantasy {
    border-left: 3px solid var(--fantasy-primary);
}

.foba-nck-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.4rem;
    gap: 0.5rem;
}

.foba-nck-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: #fff;
}

.foba-nck-type {
    font-size: 0.75rem;
    padding: 0.1rem 0.5rem;
    border-radius: 0.25rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--foba-text-muted);
    white-space: nowrap;
}

.foba-nck-desc {
    font-size: 0.85rem;
    color: var(--foba-text-muted);
    line-height: 1.5;
}

/* Ссылка "Подробнее" в карточках */
.keyword-detail-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: auto;
    padding-top: 0.75rem;
    color: var(--cyber-primary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition);
}

.keyword-detail-link:hover {
    color: #fff;
}

.keyword-detail-link::after {
    content: '→';
    transition: transform 0.2s ease;
}

.keyword-detail-link:hover::after {
    transform: translateX(4px);
}

/* Адаптив */
@media (max-width: 48rem) {
    .foba-detail-title {
        font-size: 1.6rem;
    }

    .foba-ranks-grid {
        grid-template-columns: 1fr;
    }

    .foba-nck-grid {
        grid-template-columns: 1fr;
    }
}

/* === Multi-select dropdown (Доступность) === */
.multi-select-wrapper {
    position: relative;
}

.multi-select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    background-image: none;
    padding-right: 0.8rem;
}

.multi-select-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}

.multi-select-arrow {
    font-size: 0.7rem;
    margin-left: 0.5rem;
    transition: transform 0.2s ease;
}

.multi-select-wrapper.open .multi-select-arrow {
    transform: rotate(180deg);
}

.multi-select-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 100;
    background: #1a1a1a;
    border: 1px solid var(--foba-border);
    border-top: none;
    border-radius: 0 0 0.375rem 0.375rem;
    max-height: 220px;
    overflow-y: auto;
    padding: 0.4rem 0;
}

.multi-select-wrapper.open .multi-select-dropdown {
    display: block;
}

.multi-select-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.8rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: #fff;
    text-transform: none;
    transition: background 0.15s ease;
}

.multi-select-option:hover {
    background: rgba(255, 255, 255, 0.08);
}

.multi-select-option input[type="checkbox"] {
    accent-color: var(--cyber-primary);
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.multi-select-clear {
    display: block;
    width: 100%;
    padding: 0.5rem;
    background: rgba(255, 0, 60, 0.1);
    border: none;
    border-top: 1px solid var(--foba-border);
    color: var(--foba-text-muted);
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition);
}

.multi-select-clear:hover {
    background: rgba(255, 0, 60, 0.2);
    color: #fff;
}

.multi-select-dropdown::-webkit-scrollbar {
    width: 6px;
}

.multi-select-dropdown::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.multi-select-dropdown::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}
/* End */


/* Start:/bitrix/templates/candys-rise/css/foba-helper-ui.css?178929622010101*/
/* Interface-only overrides. Game descriptions and theme colors stay intact. */
.foba-enhanced { --foba-ui-accent:#00d8e8; --foba-accent:#154e55; --foba-text-main:#e8edf0; min-width:0; }
.foba-enhanced *, .rules-sidebar *, .rules-content * { box-sizing:border-box; }
.foba-enhanced [hidden], .rules-sidebar [hidden] { display:none !important; }
.foba-enhanced .filter-controls { display:flex; flex-direction:column; padding:1rem; border:1px solid #363d43; border-radius:12px; background:#191d21; gap:.85rem; margin-bottom:1.25rem; }
.foba-enhanced .filter-primary-row { display:flex; flex-wrap:wrap; align-items:end; gap:.75rem; }
.foba-enhanced .search-container { flex:1 1 17rem; min-width:0; }
.foba-enhanced .foba-input, .foba-enhanced .foba-select { min-height:46px; font:inherit; font-size:1rem; min-width:0; max-width:100%; width:100%; padding:.75rem; border:1px solid #44515d; border-radius:7px; background-color:#11171d; color:#f1f5f9; }
.foba-enhanced .foba-ui-sort { display:flex; flex-direction:column; gap:.35rem; flex:0 1 17rem; min-width:0; font-size:.8rem; color:#bdc7cf; }
.foba-enhanced .filter-toggle-btn { min-height:46px; padding:.7rem 1rem; color:#e8edf0; }
.foba-enhanced .filter-panel { grid-template-columns:repeat(auto-fit,minmax(min(100%,190px),1fr)); padding:1rem; gap:1rem; background:#13171b; border-color:#35414a; }
.foba-enhanced .filter-group label { text-transform:none; font-size:.86rem; line-height:1.4; color:#c4cdd4; }
.foba-ui-summary { display:flex; flex-wrap:wrap; align-items:center; gap:.65rem; outline-offset:5px; }
.foba-ui-count { margin-right:auto; color:#dce7ed; font-size:.94rem; font-variant-numeric:tabular-nums; }
.foba-ui-button, .foba-ui-chip { border:1px solid #46535f; border-radius:7px; padding:.55rem .85rem; background:#242d35; color:#e8f0f5; font:inherit; font-size:.86rem; line-height:1.35; cursor:pointer; min-height:40px; }
.foba-ui-button:hover, .foba-ui-chip:hover { border-color:#00d8e8; background:#17363c; }
.foba-ui-chips { display:flex; flex-wrap:wrap; gap:.4rem; }
.foba-ui-chips:empty { display:none; }
.foba-ui-chip { border-color:#365c65; color:#bcecf0; max-width:100%; overflow-wrap:anywhere; text-align:left; }
.foba-ui-options { display:flex; gap:1rem; }
.foba-ui-check { display:flex; align-items:center; gap:.5rem; min-height:32px; color:#becad2; font-size:.88rem; cursor:pointer; }
.foba-ui-check input { width:18px; height:18px; accent-color:#00aebd; flex:none; }
.foba-enhanced :is(button,a,input,select,[role="button"]):focus-visible, .rules-sidebar :is(button,input,a):focus-visible { outline:2px solid #67e8f9; outline-offset:3px; }
.foba-enhanced .tabs-header, .foba-enhanced .rb-tabs { gap:.5rem; flex-wrap:wrap; margin-bottom:1rem; }
.foba-enhanced .tab-btn, .foba-enhanced .rb-tab { min-height:42px; padding:.65rem .95rem; white-space:normal; line-height:1.35; }
.foba-enhanced .grid-2, .foba-enhanced .keywords-grid { grid-template-columns:repeat(auto-fill,minmax(min(100%,340px),1fr)); gap:1rem; }
.foba-enhanced .filterable-item { min-width:0; overflow-wrap:anywhere; }
.foba-enhanced .tab-content.active { opacity:1; }
.foba-enhanced .item-header { align-items:flex-start; gap:.7rem; }
.foba-enhanced .item-header h3 { min-width:0; line-height:1.3; }
.foba-enhanced .cost-badge { flex-shrink:0; white-space:nowrap; }
.foba-enhanced .item-description { font-size:.98rem; line-height:1.6; }
.foba-enhanced .multi-select-dropdown { max-height:18rem; overflow:auto; overscroll-behavior:contain; z-index:30; }
.foba-enhanced .multi-select-option { min-height:40px; }
.foba-ui-done { display:none; grid-column:1/-1; }
.foba-enhanced .no-results { grid-column:1/-1; padding:2rem 1rem; line-height:1.6; }
.foba-enhanced .no-results p { margin:0 0 1rem; }
.foba-enhanced .expandable-trigger { min-height:40px; display:flex; align-items:center; cursor:pointer; }
.foba-hub.helper-section .grid-2 { grid-template-columns:repeat(auto-fill,minmax(min(100%,240px),1fr)) !important; }
.foba-hub.helper-section .tool-card { text-align:center; padding:1.25rem !important; min-height:150px; }
.foba-hub.helper-section .tool-card :is(h3,p,.card-icon) { text-align:center; }
.foba-hub.helper-section .tool-card h3 { font-size:1.05rem !important; line-height:1.4; }
.foba-hub.helper-section .tool-card p { font-size:.9rem !important; line-height:1.45 !important; }
.foba-hub.helper-section .card-icon { font-size:1.8rem !important; }
.rules-layout { min-width:0; }
.rules-content { min-width:0; overflow-wrap:anywhere; }
.rules-content .rule-text { line-height:1.7; }
.rules-content .chapter-nav { gap:1rem; flex-wrap:wrap; }
.rules-sidebar { overscroll-behavior:contain; }
.rules-sidebar .foba-input { width:100%; box-sizing:border-box; margin-bottom:1rem; font-size:16px; min-height:44px; }
.rules-sidebar .chapter-link { display:block; padding:.65rem .75rem; line-height:1.4; }
.foba-nav-close { display:none; }
@media (max-width:768px) {
  .helper-section.foba-enhanced { padding:1rem .65rem; }
  .foba-enhanced .helper-header { align-items:flex-start; flex-direction:column; gap:.65rem; margin-bottom:1.2rem; }
  .foba-enhanced .page-title { font-size:clamp(1.6rem,6vw,2rem); line-height:1.2; overflow-wrap:anywhere; }
  .foba-enhanced .grid-2, .foba-enhanced .keywords-grid, .foba-enhanced .rb-grid { grid-template-columns:minmax(0,1fr); }
  .foba-enhanced .filter-controls { padding:.8rem; }
  .foba-enhanced .search-container { flex-basis:100%; }
  .foba-enhanced .foba-ui-sort { flex:1 1 10rem; }
  .foba-enhanced .filter-panel { grid-template-columns:minmax(0,1fr); padding:.8rem; }
  .foba-enhanced .foba-ui-done { display:block; width:100%; }
  .foba-enhanced .foba-ui-summary { gap:.55rem; }
  .foba-enhanced .foba-ui-count { flex-basis:100%; }
  .foba-enhanced .tabs-header, .foba-enhanced .rb-tabs { flex-wrap:nowrap; overflow-x:auto; padding-bottom:.5rem; scrollbar-width:thin; }
  .foba-enhanced .tab-btn, .foba-enhanced .rb-tab { flex:0 0 auto; white-space:nowrap; max-width:85vw; }
  .foba-enhanced .item-card, .foba-enhanced .keyword-card, .foba-enhanced .race-card { padding:1rem; }
  .foba-enhanced .multi-select-dropdown { position:static; margin-top:.5rem; box-shadow:none; }
  .foba-hub.helper-section .grid-2 { grid-template-columns:minmax(0,1fr) !important; }
  .foba-hub.helper-section .tool-card { min-height:0; }
  .foba-nav-open { overflow:hidden; }
  .rules-layout { display:block; }
  .rules-content { padding:1rem .75rem !important; }
  .rules-sidebar { width:min(88vw,340px) !important; max-height:100dvh; overflow-y:auto; z-index:1002 !important; }
  .sidebar-overlay { z-index:1001 !important; }
  .foba-nav-close { display:block; margin:0 0 1rem auto; }
  .foba-module-header { gap:.75rem; flex-wrap:wrap; }
  .foba-module-header .foba-title { font-size:1.7rem; }
  .chapter-nav .foba-btn { flex:1; text-align:center; }
  .rb-container.foba-enhanced { width:100%; padding:1rem .65rem; }
  .foba-list.foba-enhanced .scenario-grid { grid-template-columns:minmax(0,1fr); padding:.65rem; }
}
@media (prefers-reduced-motion:reduce) { .foba-enhanced *, .rules-sidebar { animation:none !important; transition:none !important; scroll-behavior:auto !important; } }
@media (prefers-reduced-motion:reduce) { .foba-enhanced .filterable-item { opacity:1; } }

/* Category panels are multi-select filters, distinct from navigation tabs. */
.foba-enhanced .foba-facet { min-width:0; margin:0 0 1rem; padding:.9rem; border:1px solid #343f48; border-radius:10px; background:#151a1e; }
.foba-enhanced .foba-facet-head { display:flex; flex-wrap:wrap; align-items:baseline; gap:.35rem .85rem; margin-bottom:.7rem; }
.foba-enhanced .foba-facet-title { margin:0; color:#e4edf2; font:600 .96rem/1.4 Inter,sans-serif; text-transform:none; }
.foba-enhanced .foba-facet-hint { color:#aebcc6; font-size:.8rem; line-height:1.4; }
.foba-enhanced .foba-facet-options { display:flex; flex-wrap:wrap !important; align-items:stretch; gap:.5rem; padding:0; margin:0; border:0; background:none; overflow:visible; }
.foba-enhanced .foba-facet-choice { display:flex; align-items:center; justify-content:flex-start; flex:0 1 auto; gap:.45rem; min-width:0; max-width:22rem; min-height:44px; margin:0; padding:.6rem .75rem; border:1px solid #465560; border-radius:7px; background:#202930; color:#dce5eb; font:500 .9rem/1.35 Inter,sans-serif; text-align:left; white-space:normal; box-shadow:none; }
.foba-enhanced .foba-facet-choice::after { content:none; }
.foba-enhanced .foba-facet-choice:hover:not([aria-disabled="true"]) { border-color:#7ccbd3; background:#263b43; color:#fff; }
.foba-enhanced .foba-facet-choice.active { border-color:#31d0dd; background:#123e45; color:#d1fbff; }
.foba-enhanced .foba-facet-choice[aria-disabled="true"] { background:#191f24; color:#8897a3; border-color:#303a43; cursor:not-allowed; }
.foba-enhanced .foba-facet-check { display:inline-block; flex:none; width:1em; font-size:.9rem; color:#63eff5; }
.foba-enhanced .foba-facet-check[hidden] { display:inline-block !important; visibility:hidden; }
.foba-enhanced .foba-facet-label { min-width:0; overflow-wrap:anywhere; }
.foba-enhanced .foba-facet-count { flex:none; min-width:2.1em; margin-left:auto; padding:.12rem .35rem; border-radius:4px; color:#b9cad5; background:#11181d; font-size:.75rem; text-align:center; font-variant-numeric:tabular-nums; }
.foba-enhanced .foba-facet-choice.active .foba-facet-count { background:#0b2a30; color:#aff7ff; }
.foba-enhanced .foba-facet-more { width:100%; margin-top:.6rem; min-height:44px; }
.foba-enhanced .filter-primary-row > .filter-toggle-btn { flex:0 0 auto; }
@media(max-width:768px) {
  .foba-enhanced .foba-facet { padding:.75rem; }
  .foba-enhanced .foba-facet-options { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
  .foba-enhanced .foba-facet-choice { max-width:none; width:100%; padding:.6rem .45rem; gap:.3rem; font-size:.84rem; }
  .foba-enhanced .foba-facet-hint { font-size:.76rem; }
  .foba-enhanced .foba-facet-count { padding:.12rem .25rem; min-width:1.7em; }
}
@media(max-width:380px) { .foba-enhanced .foba-facet-options { grid-template-columns:minmax(0,1fr); } }

/* End */


/* Start:/bitrix/templates/candys-rise/css/system-guides-v6.css?179291564810596*/
.cr-wave-guide{--wave-accent:#7cdee9;--wave-tint:#132a30}
.cr-wave-guide[data-wave-system=pf2e],.cr-wave-teaser[data-wave-system=pf2e]{--wave-accent:#9fd5a4;--wave-tint:#18271f}
.cr-wave-guide[data-wave-system=fallout],.cr-wave-teaser[data-wave-system=fallout]{--wave-accent:#b7e78a;--wave-tint:#1b281b}
.cr-wave-guide[data-wave-system=cyberpunk],.cr-wave-teaser[data-wave-system=cyberpunk]{--wave-accent:#ffa2a4;--wave-tint:#2a1c22}
.cr-wave-guide[data-wave-system=coc],.cr-wave-teaser[data-wave-system=coc]{--wave-accent:#9ad5c9;--wave-tint:#162923}
.cr-wave-guide[data-wave-system=dnd],.cr-wave-teaser[data-wave-system=dnd]{--wave-accent:#ead093;--wave-tint:#29251b}
.cr-wave-guide .cr-guide-hero{border-left-color:var(--wave-accent)}
.cr-wave-guide .cr-guide-kicker,.cr-wave-guide .cr-guide-article h2,.cr-wave-guide a,.cr-wave-guide dt{color:var(--wave-accent)}
.cr-wave-guide .cr-guide-hero h1{color:#edf4f7}
.cr-wave-edition{padding:.65rem .9rem;border-radius:8px;background:var(--wave-tint);border:1px solid #3b535f;font-size:.9rem;max-width:75ch}
.cr-wave-guide table{border-collapse:collapse;width:100%;font-size:.95rem}
.cr-wave-guide th,.cr-wave-guide td{border:1px solid #3b535f;padding:.55rem .65rem;text-align:left;vertical-align:top}
.cr-wave-guide th{background:var(--wave-tint);color:var(--wave-accent)}
.cr-wave-guide .table-scroll,.cr-wave-guide .sg-table-wrap{overflow:auto;max-width:100%}
.cr-wave-guide .table-scroll table,.cr-wave-guide .sg-table-wrap table{min-width:30rem}
.cr-wave-guide input,.cr-wave-guide select,.cr-wave-guide button{font:inherit;max-width:100%;color:#edf4f7;background:#0f191e;border:1px solid #69808b;border-radius:8px;padding:.7rem .85rem;min-height:44px}
.cr-wave-guide input[type=number]{width:8rem}.cr-wave-guide label{display:inline-flex;flex-direction:column;gap:.35rem;margin:.4rem .7rem .4rem 0}
.cr-wave-guide button{cursor:pointer;background:var(--wave-tint)}.cr-wave-guide button:hover{border-color:var(--wave-accent)}
.cr-wave-guide :is(a,button,input,select):focus-visible{outline:3px solid var(--wave-accent);outline-offset:3px}
.cr-wave-guide output,.cr-wave-guide [role=status]{display:block;border:1px solid #3b535f;background:var(--wave-tint);border-radius:8px;padding:.85rem;margin-top:.8rem;white-space:pre-line}
.cr-wave-guide .tool-panel,.cr-wave-guide .wave-tool,.cr-wave-guide .sg-tool{background:#10191e;border:1px solid #3b535f;padding:1rem;border-radius:10px}
.cr-wave-guide .sg-fields{display:flex;flex-wrap:wrap;gap:.7rem}.cr-wave-guide .sg-fields label{flex:1 1 9rem;margin:0;min-width:0}.cr-wave-guide .sg-fields+button{margin-top:1rem}.cr-wave-guide .sg-note{background:var(--wave-tint);border-left:3px solid var(--wave-accent);padding:.5rem 1rem;border-radius:8px;margin:1rem 0}
.cr-wave-guide .cr-wave-related{padding:1.25rem 1.5rem;border:1px solid #3b535f;border-left:3px solid #7cdee9;border-radius:12px;background:#162127;margin:1.5rem 0}.cr-wave-guide .cr-wave-related h2{font-size:1.3rem;line-height:1.4;margin:0 0 .6rem;color:#edf4f7}.cr-wave-guide .cr-wave-related p{line-height:1.7;max-width:75ch;color:#bbcbd4}
.cr-wave-guide svg{width:100%;height:auto}.cr-wave-guide .cr-wave-sources{font-size:.9rem;color:#bbcbd4}.cr-wave-sources a{overflow-wrap:anywhere}
.cr-wave-guide pre{max-width:100%;box-sizing:border-box;white-space:pre-wrap;overflow-wrap:anywhere;overflow:auto;font:inherit;line-height:1.6;padding:1rem;border:1px solid #3b535f;border-radius:8px;background:#0f191e;color:#edf4f7}
@media print{.cr-wave-guide pre{color:#111;background:#fff;border-color:#555}}
.cr-wave-teaser{--wave-accent:#7cdee9;--wave-tint:#132a30;display:grid;gap:.7rem;grid-template-columns:minmax(0,1fr) auto;align-items:center;width:100%;padding:1.3rem 1.5rem;margin:1.5rem 0;background:#162127;border:1px solid #3b535f;border-left:3px solid var(--wave-accent);border-radius:12px;font-family:Tektur,sans-serif;box-sizing:border-box}
.cr-wave-teaser h2{margin:0 0 .4rem;color:#edf4f7;font-size:1.4rem;line-height:1.35}.cr-wave-teaser p{margin:0;color:#bbcbd4;line-height:1.6}.cr-wave-teaser a{display:inline-flex;align-items:center;justify-content:center;padding:.75rem 1rem;border:1px solid var(--wave-accent);border-radius:8px;color:var(--wave-accent);text-decoration:none;min-height:44px;box-sizing:border-box;line-height:1.4}
@media(max-width:640px){.cr-wave-teaser{grid-template-columns:1fr;padding:1rem}.cr-wave-teaser a{justify-self:start}.cr-wave-guide table{font-size:.85rem}.cr-wave-guide th,.cr-wave-guide td{padding:.45rem}.cr-wave-guide input[type=number]{width:7rem}.cr-wave-guide .cr-guide-article{overflow-wrap:anywhere}}
@media print{.cr-wave-guide{--wave-accent:#111;--wave-tint:#fff;color:#111}.cr-wave-guide .cr-wave-edition,.cr-wave-guide .tool-panel,.cr-wave-guide output,.cr-wave-guide [role=status]{background:#fff;color:#111}.cr-wave-guide :is(h1,h2,h3,th,td){color:#111!important}.cr-wave-guide button{display:none}.cr-wave-guide table{font-size:9pt}.cr-wave-guide .cr-guide-article>section{break-inside:auto}.cr-wave-guide .table-scroll{overflow:visible}.cr-wave-guide .table-scroll table{min-width:0}}

/* Shared reading controls: native navigation first, clipboard/print enhanced by JS. */
.cr-wave-guide [hidden]{display:none!important}
.cr-wave-guide .cr-wave-reading-tools{display:flex;flex-wrap:wrap;gap:.6rem;align-items:center;max-width:75ch;margin:0 auto 1rem}
.cr-wave-reading-tools>a{display:inline-flex;align-items:center;min-height:44px;box-sizing:border-box;padding:.65rem .85rem;border:1px solid #69808b;border-radius:8px;background:var(--wave-tint);text-decoration:none}
.cr-wave-guide .cr-wave-reading-status{max-width:75ch;margin:0 auto 1rem;font-size:.9rem;box-sizing:border-box}
.cr-wave-guide .cr-wave-reading-status:empty{display:none}
.cr-wave-guide .cr-wave-toc{max-width:75ch;margin:0 auto 1.5rem;border:1px solid #3b535f;border-radius:10px;background:#10191e;scroll-margin-top:9rem}
.cr-wave-toc>summary{cursor:pointer;min-height:48px;box-sizing:border-box;padding:.85rem 1rem;font-weight:700;color:#edf4f7}
.cr-wave-toc>summary span{font-size:.8rem;font-weight:400;color:#bbcbd4;margin-left:.65rem;white-space:nowrap}
.cr-wave-toc>summary:focus-visible{outline:3px solid var(--wave-accent);outline-offset:3px;border-radius:8px}
.cr-wave-guide .cr-wave-toc nav{padding:0 1rem 1rem;border:0;background:transparent;border-radius:0}
.cr-wave-toc ol{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.25rem 1.8rem;margin:0;padding-left:1.5rem}
.cr-wave-guide .cr-wave-toc li+li{margin-top:0}
.cr-wave-toc li{min-width:0;padding-left:.15rem;color:#bbcbd4}
.cr-wave-toc a{display:inline-flex;align-items:center;min-height:44px;line-height:1.45;overflow-wrap:anywhere}
.cr-wave-guide .cr-wave-section-link{display:inline-flex;align-items:center;justify-content:center;vertical-align:middle;width:44px;height:44px;min-height:44px;padding:10px;margin-left:.6rem;background:transparent;border-color:#3b535f;color:var(--wave-accent)}
.cr-wave-guide .cr-wave-section-link svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.cr-wave-guide .cr-wave-share-fallback{max-width:75ch;margin:0 auto 1rem;padding:1rem;box-sizing:border-box;border:1px solid var(--wave-accent);border-radius:10px;background:var(--wave-tint)}
.cr-wave-share-fallback label{display:flex!important;width:100%;margin:0!important;font-weight:600}
.cr-wave-share-fallback input{box-sizing:border-box;width:100%;min-width:0;font-size:.9rem}
.cr-wave-share-fallback p{font-size:.9rem;color:#bbcbd4}
@media(max-width:640px){.cr-wave-toc ol{grid-template-columns:1fr;gap:.1rem}.cr-wave-toc>summary{padding:.75rem}.cr-wave-guide .cr-wave-toc nav{padding:0 .75rem .75rem}.cr-wave-reading-tools{font-size:.85rem}.cr-wave-guide .cr-wave-section-link{margin-left:.35rem}}
@media print{
 body:has(.cr-wave-guide) :is(.site-header,.site-footer,.ds-context-nav,.breadcrumbs-wrapper,.breadcrumbs,.cr-breadcrumbs,.bx-breadcrumb,#site-cookie-notice,#social-promo,.feedback-fab,.feedback-overlay,.global-scroll-top,.ds-page-guide){display:none!important}
 body:has(.cr-wave-guide),body:has(.cr-wave-guide) .site-main{background:#fff!important;color:#111!important;padding-top:0!important}
 body:has(.cr-wave-guide)::before,body:has(.cr-wave-guide)::after{display:none!important}
 .cr-wave-guide :is(.cr-wave-reading-tools,.cr-wave-reading-status,.cr-wave-toc,.cr-wave-share-fallback,.cr-wave-section-link,.cr-wave-related){display:none!important}
 .cr-wave-guide{display:block;max-width:none;font-size:10pt;line-height:1.5}
 .cr-wave-guide .cr-guide-hero,.cr-wave-guide .cr-guide-article{padding:0;border:0;color:#111!important;background:#fff!important}
 .cr-wave-guide .cr-guide-hero{margin-bottom:1rem}.cr-wave-guide .cr-guide-article>section{max-width:none;padding:.7rem 0;break-inside:auto}
 .cr-wave-guide h2,.cr-wave-guide h3{break-after:avoid}.cr-wave-guide .sg-table-wrap{overflow:visible}.cr-wave-guide .sg-table-wrap table{min-width:0}
 .cr-wave-guide :is(p,li,td,th,a,dt,dd,.cr-wave-edition,.cr-wave-sources){color:#111!important}.cr-wave-guide :is(.cr-wave-edition,.sg-note,.sg-tool,.tool-panel,.wave-tool,table,th,td,pre,output,[role=status]){border-color:#888!important;background:#fff!important}
}

.cr-wave-guide[data-wave-tool=encounter] .ce-help{border:1px solid #5d6259;border-radius:8px;padding:0 10px;margin:12px 0;background:var(--wave-tint)}
.cr-wave-guide[data-wave-tool=encounter] .ce-help>summary{min-height:44px;padding:10px 0;box-sizing:border-box;cursor:pointer;line-height:1.5;font-weight:600}
.cr-wave-guide[data-wave-tool=encounter] .ce-quick-links a{flex:1;min-width:0;justify-content:center;font-size:.9rem;line-height:1.4}
.cr-wave-guide[data-wave-tool=encounter] .ce-quick-links{display:flex;flex-wrap:wrap;gap:10px}
.cr-wave-guide[data-wave-tool=encounter] .ce-quick-links a{display:inline-flex;align-items:center;min-height:44px;box-sizing:border-box;border:1px solid var(--wave-accent);border-radius:8px;padding:8px 12px;text-decoration:none}
@media(max-width:640px){.cr-wave-guide[data-wave-tool=encounter] .cr-guide-hero,.cr-wave-guide[data-wave-tool=encounter] .cr-guide-article{padding:12px}.cr-wave-guide[data-wave-tool=encounter] .cr-guide-article>section{padding-left:0;padding-right:0}.cr-wave-guide[data-wave-tool=encounter] #cr-encounter{padding:10px}.cr-wave-guide[data-wave-tool=encounter] #cr-encounter>label>select{width:100%;box-sizing:border-box}.cr-wave-guide[data-wave-tool=encounter] h1{font-size:26px}}
@media print{.cr-wave-guide[data-wave-tool=encounter] .ce-quick-links{display:none}}

/* End */
/* /bitrix/templates/candys-rise/css/foba-helper.css?177699488130185 */
/* /bitrix/templates/candys-rise/css/foba-helper-ui.css?178929622010101 */
/* /bitrix/templates/candys-rise/css/system-guides-v6.css?179291564810596 */
