.section-desc {
    color: #aaa;
    margin-bottom: 20px;
}
.filters-section {
    margin-bottom: 20px;
}
.filters-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}
.search-box {
    flex: 1;
    min-width: 200px;
}
.search-box input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #4a4a8a;
    border-radius: 8px;
    background: #1a1a2e;
    color: #e0e0e0;
    font-size: 14px;
}
.search-box input:focus {
    outline: none;
    border-color: #ffd966;
}
.filters-form button,
.clear-btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, #4a4a8a, #2c3e50);
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.2s;
}

.filters-form button:hover,
.clear-btn:hover {
    background: linear-gradient(135deg, #5a5a9a, #3c4e60);
}

.clear-btn {
    display: inline-block;
}
.results-info {
    margin: 15px 0;
    padding: 10px 15px;
    background: rgba(74, 74, 138, 0.2);
    border-left: 4px solid #4a4a8a;
    color: #ffffff;
    font-weight: 600;
}

.no-data {
    color: #dc3545 !important;
    text-align: center;
    padding: 40px;
}
.combine-accordion {
    margin: 20px 0;
}

.accordion-group {
    margin-bottom: 10px;
    border: 1px solid #4a4a8a;
    border-radius: 8px;
    overflow: hidden;
    background: white;
}

.accordion-header {
    background: linear-gradient(135deg, #4a4a8a, #2c3e50);
    color: white;
    padding: 12px 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 600;
}

.accordion-header:hover {
    background: linear-gradient(135deg, #5a5a9a, #3c4e60);
}

.accordion-title {
    flex: 1;
    font-size: 1.1em;
}

.accordion-count {
    font-size: 0.85em;
    opacity: 0.8;
}

.accordion-icon {
    font-size: 1.2em;
    transition: transform 0.2s;
}

.accordion-content {
    display: none;
    padding: 10px;
    background: #fefefe;
}
.group-variant-row {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 12px 20px;
    margin: 10px;
    cursor: pointer;
    border: 1px solid #e0e0e0;
    transition: all 0.2s;
}

.group-variant-row:hover {
    background: #e8e8ff;
    transform: translateX(4px);
}

.variant-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 100%;
}

.variant-name {
    font-weight: bold;
    font-size: 16px;
    color: #4a4a8a;
    word-break: break-word;
}

.variant-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 13px;
    color: #666;
}

.variant-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.variant-count {
    font-weight: 600;
    color: #4a4a8a;
}

.variant-cost {
    color: #e67e22;
}

.variant-select {
    color: #27ae60;
}

.variant-detail {
    margin-left: auto;
    color: #4a4a8a;
    font-weight: 500;
}
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.pagination a {
    display: inline-block;
    padding: 8px 14px;
    background: #1a1a2e;
    border: 1px solid #4a4a8a;
    color: #e0e0e0;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.2s;
}

.pagination a:hover,
.pagination a.active {
    background: #4a4a8a;
    color: white;
}
.breadcrumbs {
    margin-bottom: 20px;
}

.breadcrumbs a {
    color: #4a4a8a;
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}
.variant-block {
    border: 1px solid #4a4a8a;
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
    background: white;
    transition: box-shadow 0.2s;
}

.variant-block:hover {
    box-shadow: 0 4px 12px rgba(74, 74, 138, 0.15);
}

.variant-header {
    background: linear-gradient(135deg, #4a4a8a, #2c3e50);
    color: white;
    padding: 12px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s;
}

.variant-header:hover {
    background: linear-gradient(135deg, #5a5a9a, #3c4e60);
}

.variant-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.variant-icon-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    background: rgba(255,255,255,0.15);
    border-radius: 8px;
    padding: 4px;
}

.variant-icon-img-placeholder {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    background: rgba(255,255,255,0.15);
    border-radius: 8px;
}

.variant-header-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.variant-title {
    font-weight: 700;
    font-size: 1em;
}

.variant-subtitle {
    font-size: 0.75em;
    opacity: 0.8;
}

.variant-icon {
    font-size: 1.2em;
    transition: transform 0.2s;
}

.variant-content {
    display: none;
    padding: 20px;
    background: #fefefe;
    border-top: 1px solid #e0e0e0;
}

/* Стоимость комбинации */
.combine-cost {
    background: #e3f2fd;
    padding: 10px 15px;
    border-radius: 8px;
    color: #1565c0;
    font-weight: bold;
    margin-bottom: 25px;
    display: inline-block;
}
.ingredients-grid,
.results-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 20px 0;
}
.item-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f8f9fa;
    border-radius: 10px;
    padding: 8px 12px;
    border: 1px solid #e0e0e0;
    min-width: 200px;
}

.item-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.item-icon img {
    max-width: 36px;
    max-height: 36px;
    object-fit: contain;
}

.item-details {
    flex: 1;
}

.item-name {
    font-weight: 600;
    color: #333;
    font-size: 0.9em;
}

.item-quantity {
    font-size: 0.8em;
    color: #e67e22;
    font-weight: bold;
}

/* Информация о заточке */
.slot-icon {
    width: 26px;
    height: 26px;
    vertical-align: middle;
    margin-right: 4px;
}

.upt-info {
    font-size: 0.7em;
    color: #666;
    margin-top: 3px;
}

.upgrades {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 2px;
}

.upgrade-item {
    background: #2c3e50;
    color: #ffd700;
    padding: 1px 6px;
    border-radius: 10px;
    font-size: 0.85em;
    white-space: nowrap;
}

.upt-error {
    color: #dc3545;
    font-weight: bold;
    margin-top: 3px;
    font-size: 0.7em;
}

/* Карточка результата */
.result-card {
    background: white;
    border-radius: 10px;
    padding: 10px;
    border: 1px solid #ddd;
    min-width: 220px;
}

.chance {
    font-size: 0.8em;
    color: #27ae60;
    font-weight: bold;
    margin-top: 8px;
    text-align: center;
}

.result-card.fail-card {
    background: #fff5f5;
    border-color: #dc3545;
}

.fail-chance {
    color: #dc3545 !important;
}

/* Примечание о выборе */
.select-note {
    background: #fff3cd;
    padding: 10px 15px;
    border-radius: 8px;
    margin-top: 20px;
    color: #856404;
    font-weight: 500;
}

/* Слот ингредиента */
.ingredient-slot {
    background: #f5f5f5;
    border-radius: 12px;
    padding: 10px;
    border: 1px solid #e0e0e0;
    min-width: 250px;
}
.ingredient {
    background: #f5f5f5;
    border-radius: 12px;
    padding: 10px;
    border: 1px solid #e0e0e0;
    min-width: 250px;
    color: #4a4a8a;
}
.resultat {
    background: #f5f5f5;
    border-radius: 12px;
    padding: 10px;
    border: 1px solid #e0e0e0;
    min-width: 250px;
    color: #4a4a8a;
}
.slot-title {
    font-weight: 700;
    color: #4a4a8a;
    margin-bottom: 8px;
    padding-bottom: 5px;
    border-bottom: 1px solid #ddd;
    font-size: 0.9em;
}

/* Linked предметы */
.linked-items {
    width: 100%;
}
.linked-slots {
    color: #000;
    font-weight: 700;
}
.linked-title {
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.85em;
    color: #4a4a8a;
}

.linked-quantity {
    font-size: 1.1em;
    color: #e67e22;
    font-weight: 600;
    margin-bottom: 8px;
}

.linked-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-height: 200px;
    overflow-y: auto;
}

.linked-item {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #f0f0f0;
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 0.95em;
    color: #000;
}

.linked-item img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.linked-empty {
    color: #dc3545;
    font-size: 0.8em;
    padding: 10px;
}

.item-error {
    color: #dc3545;
    font-size: 0.8em;
}
.search-box-wrapper {
    width: 100%;
}

.search-box-wrapper .search-box {
    width: 100%;
    margin-bottom: 15px;
}

.search-box-wrapper .search-box input {
    width: 100%;
    padding: 12px 15px;
    background: #1a1a2e;
    border: 2px solid #4a4a8a;
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
    box-sizing: border-box;
}

.search-box-wrapper .search-box input:focus {
    outline: none;
    border-color: #6a6aaa;
    box-shadow: 0 0 10px rgba(74, 74, 138, 0.3);
}

.search-box-wrapper .search-box input::placeholder {
    color: #888;
}
.item-search-results {
    margin-top: 15px;
    width: 100%;
    display: none;
}

.search-results-header {
    padding: 12px 15px;
    background: #4a4a8a;
    color: white;
    border-radius: 8px 8px 0 0;
    font-weight: bold;
    font-size: 1em;
}

.search-results-list {
    border: 1px solid #4a4a8a;
    border-top: none;
    border-radius: 0 0 8px 8px;
    overflow: hidden;
}

.search-result-group {
    padding: 12px 15px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
    transition: background 0.2s;
    background: white;
    display: block;
}

.search-result-group:last-child {
    border-bottom: none;
}

.search-result-group:hover {
    background: #e8e8ff;
}

.result-group-name {
    font-weight: bold;
    color: #4a4a8a;
    margin-bottom: 5px;
    font-size: 1em;
    word-break: break-word;
}

.result-group-meta {
    display: flex;
    gap: 20px;
    font-size: 0.85em;
    color: #666;
    flex-wrap: wrap;
}

.result-group-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Пагинация результатов поиска */
.search-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
    padding: 12px;
    background: #f5f5f5;
    border-radius: 0 0 8px 8px;
    border: 1px solid #4a4a8a;
    border-top: none;
}

.page-btn {
    padding: 6px 12px;
    background: #1a1a2e;
    border: 1px solid #4a4a8a;
    color: #e0e0e0;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9em;
}

.page-btn:hover {
    background: #4a4a8a;
    color: white;
}

.page-btn.active {
    background: #4a4a8a;
    color: white;
    font-weight: bold;
}

/* Выпадающий список подсказок */
.suggestions-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #4a4a8a;
    border-radius: 8px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.suggestion-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 15px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
    transition: background 0.2s;
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}

.suggestion-item:hover {
    background: #e8e8ff;
}

.suggestion-item img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    flex-shrink: 0;
}

.suggestion-item span {
    flex: 1;
    font-weight: 500;
    color: #333;
    word-break: break-word;
    overflow-wrap: break-word;
}

.suggestion-item small {
    flex-shrink: 0;
    color: #888;
    font-size: 0.75em;
}

.suggestion-item.no-results {
    justify-content: center;
    color: #999;
    cursor: default;
}

/* Состояния загрузки/ошибок */
.loading {
    text-align: center;
    padding: 30px;
    color: #aaa;
}

.no-results {
    text-align: center;
    padding: 30px;
    color: #dc3545;
    background: white;
    border: 1px solid #4a4a8a;
    border-radius: 8px;
}

.error {
    text-align: center;
    padding: 30px;
    color: #dc3545;
    background: white;
    border: 1px solid #dc3545;
    border-radius: 8px;
}
/* Пагинация для вариантов на детальной странице */
.variants-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    padding: 15px;
    background: #f5f5f5;
    border-radius: 8px;
    flex-wrap: wrap;
}

.variants-pagination .page-btn {
    padding: 8px 14px;
    background: #1a1a2e;
    border: 1px solid #4a4a8a;
    color: #e0e0e0;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.2s;
    font-size: 0.9em;
}

.variants-pagination .page-btn:hover {
    background: #4a4a8a;
    color: white;
}

.variants-pagination .page-btn.active {
    background: #4a4a8a;
    color: white;
    font-weight: bold;
}
.section-icon {
    background: #4a4a8a;
    color: white;
}
/* Стили для вариантов заточки */
.upt-variants {
    margin-top: 8px;
    padding-top: 5px;
    border-top: 1px dashed #e0e0e0;
}

.upt-variants-title {
    font-size: 0.7em;
    color: #888;
    margin-bottom: 5px;
}

.upt-variants-list {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.upt-variant-item {
    background: #f5f5f5;
    border-radius: 6px;
    padding: 3px 8px;
    font-size: 0.7em;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border: 1px solid #e0e0e0;
}

.upt-any {
    color: #27ae60;
    font-style: italic;
}
.ingred {
    color: #000;
}
.resultat {
    color: #000;
}
/* Компактные требования к заточке */
.item-requirements, .linked-requirements {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
    font-size: 0.85em;
}

.req-slots {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #2c3e50;
    color: #ffd700;
    padding: 5px 12px;
    border-radius: 16px;
    font-size: 0.9em;
    font-weight: 500;
}

.req-upgrades {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #4a4a8a;
    color: white;
    padding: 5px 12px;
    border-radius: 16px;
    font-size: 0.9em;
    font-weight: 500;
}
@media (max-width: 768px) {
    .variants-pagination .page-btn {
        padding: 5px 10px;
        font-size: 0.8em;
    }
}
@media (max-width: 768px) {
    /* Аккордеон */
    .accordion-header {
        padding: 10px 15px;
        flex-wrap: wrap;
    }
    
    .accordion-title {
        font-size: 0.95em;
    }
    
    /* Сетки */
    .ingredients-grid,
    .results-grid {
        flex-direction: column;
    }
    
    .item-card,
    .result-card {
        width: 100%;
        min-width: auto;
    }
    
    /* Пагинация */
    .pagination a {
        padding: 6px 10px;
        font-size: 0.85em;
    }
    
    /* Варианты с иконками */
    .variant-header {
        padding: 10px 15px;
    }
    
    .variant-icon-img,
    .variant-icon-img-placeholder {
        width: 32px;
        height: 32px;
        font-size: 18px;
    }
    
    .variant-title {
        font-size: 0.9em;
    }
    
    .variant-subtitle {
        font-size: 0.7em;
    }
    
    .variant-content {
        padding: 12px;
    }
    
    /* Фильтры */
    .filters-form {
        flex-direction: column;
    }
    
    .filters-form button,
    .clear-btn {
        width: 100%;
    }
    
    /* Поиск по предметам */
    .search-box-wrapper .search-box input {
        padding: 10px 12px;
        font-size: 14px;
    }
    
    .search-results-header {
        padding: 10px 12px;
        font-size: 0.9em;
    }
    
    .search-result-group {
        padding: 10px 12px;
    }
    
    .result-group-name {
        font-size: 0.9em;
    }
    
    .result-group-meta {
        gap: 12px;
        font-size: 0.75em;
    }
    
    .suggestions-dropdown {
        min-width: 250px;
        max-width: calc(100vw - 40px);
    }
    
    .suggestion-item {
        padding: 8px 10px;
        gap: 8px;
    }
    
    .suggestion-item img {
        width: 28px;
        height: 28px;
    }
    
    .suggestion-item span {
        font-size: 0.85em;
    }
    
    .suggestion-item small {
        font-size: 0.7em;
    }
    
    .page-btn {
        padding: 4px 8px;
        font-size: 0.8em;
    }
    
    .search-pagination {
        gap: 5px;
        flex-wrap: wrap;
    }
}